/**
 * =========================================================
 * Denkei Americas — Shared Solution Hub
 * SHARED CORE CSS — 2026-08-19
 * =========================================================
 *
 * Shared visual system for ECG, NetVision, and future Solution Hubs.
 * ECG-specific inline-link selector is retained only as a compatibility alias.
 */

.nda-solution-hub {
    --nda-solution-blue: #1d2088;
    --nda-solution-blue-dark: #10146e;
    --nda-solution-text: #252a34;
    --nda-solution-muted: #5c6677;
    --nda-solution-border: #d9dee7;
    --nda-solution-soft: #f5f7fb;
    --nda-solution-white: #ffffff;
    color: var(--nda-solution-text);
    font-size: 16px;
    line-height: 1.6;
}

.nda-solution-hub *,
.nda-solution-hub *::before,
.nda-solution-hub *::after {
    box-sizing: border-box;
}

.nda-solution-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nda-solution-kicker,
.nda-solution-eyebrow {
    margin: 0 0 9px;
    color: var(--nda-solution-blue);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

.nda-solution-hero {
    padding: 36px 0 28px;
    margin-top: 0 !important;
    background: #fff;
    border-bottom: 1px solid var(--nda-solution-border);
}

.nda-solution-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.nda-solution-hero-copy-block {
    width: 100%;
    max-width: none;
}

.nda-solution-hero h1 {
    max-width: none;
    margin: 0 0 14px;
    color: var(--nda-solution-blue);
    font-size: clamp(38px, 3.2vw, 48px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.nda-solution-hero-lead {
    max-width: 900px;
    margin: 0;
    color: #344054;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 600;
}

/* Hidden intentionally to keep the first view focused on selection. */
.nda-solution-hero-support,
.nda-solution-hero-links {
    display: none !important;
}

.nda-solution-text-link,
.nda-solution-product-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--nda-solution-blue);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
}

.nda-solution-text-link:hover,
.nda-solution-product-link:hover {
    text-decoration: underline;
}

.nda-solution-brand-inline-link,
.nda-ecg-brand-inline-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nda-solution-brand-inline-link:hover,
.nda-ecg-brand-inline-link:hover {
    color: var(--nda-solution-blue);
    text-decoration-thickness: 2px;
}

/* ---------- Selector intro ---------- */

.nda-solution-start-card {
    width: 100%;
    max-width: none;
    margin-top: 8px;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--nda-solution-border);
    border-radius: 0;
    background: transparent;
}

.nda-solution-start-label {
    margin: 0 0 5px;
    color: var(--nda-solution-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
}

.nda-solution-start-card h2 {
    margin: 0 0 4px;
    color: var(--nda-solution-blue);
    font-size: 23px;
    line-height: 1.25;
}

.nda-solution-start-help {
    margin: 0;
    color: var(--nda-solution-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- Desktop selector tabs ---------- */

.nda-solution-tablist {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.nda-solution-tab {
    min-height: 90px;
    padding: 16px;
    border: 1px solid var(--nda-solution-border);
    border-radius: 9px;
    background: var(--nda-solution-white);
    color: #25324a;
    text-align: left;
    text-transform: none !important;
    box-shadow: none;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}

.nda-solution-tab:hover {
    border-color: rgba(29, 32, 136, .38);
    box-shadow: 0 5px 16px rgba(16, 24, 40, .07);
    transform: translateY(-1px);
}

.nda-solution-tab.is-active {
    border: 2px solid var(--nda-solution-blue);
    background: #f3f4ff;
    color: var(--nda-solution-blue);
    box-shadow: 0 4px 12px rgba(29, 32, 136, .08);
}

.nda-solution-tab-title,
.nda-solution-tab-desc {
    display: block;
}

.nda-solution-tab-title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 750;
    text-transform: none !important;
}

.nda-solution-tab-desc {
    margin-top: 7px;
    color: #667085;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    text-transform: none !important;
}

.nda-solution-tab.is-active .nda-solution-tab-desc {
    color: #475467;
}

.nda-solution-tab:focus-visible,
.nda-solution-mobile-trigger:focus-visible,
.nda-solution-product-link:focus-visible,
.nda-solution-text-link:focus-visible,
.nda-solution-brand-inline-link:focus-visible,
.nda-ecg-brand-inline-link:focus-visible {
    outline: 3px solid rgba(29, 32, 136, .24);
    outline-offset: 3px;
}

/* ---------- Solution panels ---------- */

.nda-solution-selector-section {
    padding: 18px 0 52px;
    scroll-margin-top: 110px;
}

.nda-solution-panels {
    margin: 0;
}

.nda-solution-mobile-trigger {
    display: none;
    scroll-margin-top: 110px;
}

.nda-solution-panel {
    padding: 32px 34px 34px;
    border: 1px solid var(--nda-solution-border);
    border-radius: 12px;
    background: var(--nda-solution-white);
    box-shadow: 0 6px 22px rgba(16, 24, 40, .035);
}

.nda-solution-hub.is-enhanced .nda-solution-panel {
    display: none;
}

.nda-solution-hub.is-enhanced .nda-solution-panel.is-active {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .nda-solution-hub.is-enhanced .nda-solution-panel.is-active {
        animation: nda-solution-panel-fade-in 220ms ease;
    }

    @keyframes nda-solution-panel-fade-in {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.nda-solution-selected-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--nda-solution-soft);
    color: #475467;
    font-size: 13px;
}

.nda-solution-selected-label strong {
    color: var(--nda-solution-blue);
}

.nda-solution-solution-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .7fr);
    gap: 42px;
    align-items: start;
}

.nda-solution-solution-copy h2 {
    margin: 0 0 12px;
    color: var(--nda-solution-blue);
    font-size: clamp(27px, 2.4vw, 34px);
    line-height: 1.18;
}

.nda-solution-solution-summary {
    max-width: 760px;
    margin: 0;
    color: #475467;
    font-size: 17px;
    line-height: 1.7;
}

.nda-solution-suitable {
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--nda-solution-soft);
}

.nda-solution-suitable h3 {
    margin: 0 0 10px;
    color: #344054;
    font-size: 16px;
}

.nda-solution-suitable ul {
    margin: 0;
    padding-left: 20px;
}

.nda-solution-suitable li {
    margin-bottom: 6px;
    color: #475467;
    font-size: 15px;
    line-height: 1.45;
}

/* ---------- Recommended product cards ---------- */

.nda-solution-products-heading {
    margin-top: 31px;
    padding-top: 25px;
    border-top: 1px solid var(--nda-solution-border);
}

.nda-solution-products-heading h3 {
    margin: 0 0 18px;
    color: #344054;
    font-size: 21px;
    line-height: 1.3;
}

.nda-solution-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nda-solution-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    min-height: 195px;
    overflow: hidden;
    border: 1px solid var(--nda-solution-border);
    border-radius: 10px;
    background: var(--nda-solution-white);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.nda-solution-product-card:not(.is-unlinked):hover,
.nda-solution-product-card:not(.is-unlinked):focus-within {
    border-color: rgba(29, 32, 136, .42);
    box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
}

.nda-solution-product-card.is-unlinked {
    opacity: .82;
}

@media (prefers-reduced-motion: reduce) {
    .nda-solution-product-card {
        transition: none;
    }

    .nda-solution-product-card:not(.is-unlinked):hover,
    .nda-solution-product-card:not(.is-unlinked):focus-within {
        transform: none;
    }
}

.nda-solution-product-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--nda-solution-blue);
    color: var(--nda-solution-white);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.nda-solution-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 195px;
    padding: 18px;
    background: #fafbfc;
    border-right: 1px solid var(--nda-solution-border);
}

.nda-solution-product-media img {
    display: block;
    width: 100%;
    max-width: 135px;
    max-height: 140px;
    object-fit: contain;
}

.nda-solution-product-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.nda-solution-product-title {
    margin: 0 0 9px;
    color: #1d2939;
    font-size: 17px;
    line-height: 1.4;
}

.nda-solution-product-fit {
    margin: 0 0 16px;
    color: var(--nda-solution-muted);
    font-size: 15px;
    line-height: 1.55;
}

.nda-solution-product-link {
    margin-top: auto;
    font-size: 15px;
}

.nda-solution-product-link.is-disabled {
    color: #98a2b3;
    cursor: default;
    text-decoration: none;
}

/* ---------- Selection guidance ---------- */

.nda-solution-guidance {
    padding: 48px 0;
    background: var(--nda-solution-soft);
    border-top: 1px solid var(--nda-solution-border);
    border-bottom: 1px solid var(--nda-solution-border);
}

.nda-solution-guidance-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
}

.nda-solution-guidance h2,
.nda-solution-bottom-cta h2 {
    margin: 0 0 11px;
    color: var(--nda-solution-blue);
    font-size: clamp(27px, 2.6vw, 36px);
    line-height: 1.2;
}

.nda-solution-guidance-copy {
    max-width: 500px;
    margin: 0;
    color: var(--nda-solution-muted);
    font-size: 16px;
}

.nda-solution-input-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: nda-solution-input;
}

.nda-solution-input-list li {
    position: relative;
    min-height: 96px;
    padding: 17px 16px 16px 50px;
    border: 1px solid var(--nda-solution-border);
    border-radius: 9px;
    background: var(--nda-solution-white);
    counter-increment: nda-solution-input;
}

.nda-solution-input-list li::before {
    content: counter(nda-solution-input);
    position: absolute;
    top: 17px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--nda-solution-blue);
    color: var(--nda-solution-white);
    font-size: 12px;
    font-weight: 800;
}

.nda-solution-input-list strong,
.nda-solution-input-list span {
    display: block;
}

.nda-solution-input-list strong {
    margin-bottom: 4px;
    color: #344054;
    font-size: 15.5px;
}

.nda-solution-input-list span {
    color: var(--nda-solution-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* ---------- Bottom CTA ---------- */

.nda-solution-bottom-cta {
    padding: 52px 0 62px;
}

.nda-solution-bottom-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding: 32px 34px;
    border-radius: 12px;
    background: var(--nda-solution-blue);
}

.nda-solution-bottom-cta .nda-solution-kicker,
.nda-solution-bottom-cta h2,
.nda-solution-bottom-cta p {
    color: var(--nda-solution-white);
}

.nda-solution-bottom-cta p {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: .92;
}

.nda-solution-bottom-cta .nda-solution-cta {
    margin: 0 !important;
    background: var(--nda-solution-white) !important;
    color: var(--nda-solution-blue) !important;
    border-color: var(--nda-solution-white) !important;
}

/* ---------- Hide duplicate page/post chrome on the Hub page ---------- */

body:has(.nda-solution-hub) .breadcrumbs,
body:has(.nda-solution-hub) .breadcrumb,
body:has(.nda-solution-hub) .page-breadcrumbs,
body:has(.nda-solution-hub) .rank-math-breadcrumb,
body:has(.nda-solution-hub) .entry-header,
body:has(.nda-solution-hub) .entry-meta,
body:has(.nda-solution-hub) .post-meta,
body:has(.nda-solution-hub) .article-inner > header,
body:has(.nda-solution-hub) .blog-post-inner > header {
    display: none !important;
}

body:has(.nda-solution-hub) .article-inner,
body:has(.nda-solution-hub) .blog-post-inner,
body:has(.nda-solution-hub) .entry-content,
body:has(.nda-solution-hub) .page-inner,
body:has(.nda-solution-hub) .nda-solution-hub {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body:has(.nda-solution-hub) main#main,
body:has(.nda-solution-hub) #content {
    padding-top: 0 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .nda-solution-hero h1 {
        white-space: normal;
    }

    .nda-solution-tablist {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nda-solution-solution-intro,
    .nda-solution-guidance-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nda-solution-product-grid {
        grid-template-columns: 1fr;
    }

    .nda-solution-bottom-cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nda-solution-shell {
        width: min(100% - 28px, 1180px);
    }

    .nda-solution-hero {
        padding: 28px 0 22px;
    }

    .nda-solution-hero h1 {
        font-size: 32px;
        white-space: normal;
    }

    .nda-solution-hero-lead {
        font-size: 17px;
    }

    .nda-solution-start-card {
        padding-top: 18px;
    }

    .nda-solution-start-card h2 {
        font-size: 21px;
    }

    .nda-solution-start-help {
        font-size: 14px;
    }

    .nda-solution-tablist {
        display: none;
    }

    .nda-solution-selector-section {
        padding: 18px 0 42px;
    }

    .nda-solution-mobile-trigger {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 9px;
        padding: 15px 16px;
        border: 1px solid var(--nda-solution-border);
        border-radius: 9px;
        background: var(--nda-solution-white);
        color: #344054;
        text-align: left;
        cursor: pointer;
    }

    .nda-solution-mobile-trigger strong,
    .nda-solution-mobile-trigger small {
        display: block;
    }

    .nda-solution-mobile-trigger strong {
        font-size: 16px;
        line-height: 1.3;
    }

    .nda-solution-mobile-trigger small {
        margin-top: 3px;
        color: var(--nda-solution-muted);
        font-size: 13px;
        line-height: 1.3;
    }

    .nda-solution-mobile-trigger.is-active {
        background: var(--nda-solution-blue);
        color: var(--nda-solution-white);
        border-color: var(--nda-solution-blue);
        border-radius: 9px 9px 0 0;
    }

    .nda-solution-mobile-trigger.is-active small {
        color: rgba(255, 255, 255, .8);
    }

    .nda-solution-mobile-icon {
        flex: 0 0 auto;
        font-size: 22px;
        line-height: 1;
    }

    .nda-solution-panel {
        padding: 20px 15px 22px;
        border-radius: 0 0 9px 9px;
    }

    .nda-solution-solution-copy h2 {
        font-size: 27px;
    }

    .nda-solution-solution-summary {
        font-size: 16px;
    }

    .nda-solution-products-heading {
        margin-top: 26px;
        padding-top: 22px;
    }

    .nda-solution-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nda-solution-product-card {
        display: block;
        min-height: 0;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
    }

    .nda-solution-product-media {
        min-height: 150px;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--nda-solution-border);
        background: #fafbfc;
    }

    .nda-solution-product-media img {
        width: auto;
        max-width: 190px;
        max-height: 135px;
        margin: 0 auto;
        object-fit: contain;
    }

    .nda-solution-product-body {
        display: block;
        padding: 18px 18px 20px;
    }

    .nda-solution-product-title {
        margin: 0 0 9px;
        font-size: 17px;
        line-height: 1.35;
    }

    .nda-solution-product-fit {
        margin: 0 0 15px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .nda-solution-product-link {
        display: inline-flex;
        margin-top: 0;
        font-size: 15px;
    }

    .nda-solution-product-badge {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 6px 9px;
        border-radius: 6px;
        font-size: 11px;
        line-height: 1.2;
    }

    .nda-solution-input-list {
        grid-template-columns: 1fr;
    }

    .nda-solution-guidance {
        padding: 40px 0;
    }

    .nda-solution-bottom-cta {
        padding: 40px 0 48px;
    }

    .nda-solution-bottom-cta-inner {
        padding: 25px 20px;
    }
}

@media (max-width: 420px) {
    .nda-solution-product-media {
        min-height: 135px;
        padding: 16px;
    }

    .nda-solution-product-media img {
        max-width: 165px;
        max-height: 120px;
    }

    .nda-solution-product-body {
        padding: 16px;
    }

    .nda-solution-product-title {
        font-size: 16.5px;
    }
}


/* ==========================================================
   SOLUTION HUB — WIDE DESKTOP SHELL
   2026-09-25
   Follow the wider Denkei page canvas.
   ========================================================== */

@media screen and (min-width: 850px) {

    .nda-solution-shell {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

}



/* ==========================================================
   SOLUTION HUB — WIDTH NORMALIZATION v1
   2026-09-25

   Page canvas:
   - controlled globally by non-home layout

   Content hierarchy:
   - interactive hub: wide
   - guidance inner content: max 1500px
   - technical / decision support: max 1600px
   - readable prose remains independently constrained
   ========================================================== */

@media screen and (min-width: 850px) {

    /* ------------------------------------------------------
       Shared selection guidance
       Keep the background band wide, but stop cards/text
       from stretching across the entire ultra-wide canvas.
       ------------------------------------------------------ */

    .nda-solution-guidance > .nda-solution-shell {
        width: 100%;
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Shared CTA should visually align with technical content. */

    .nda-solution-bottom-cta > .nda-solution-shell {
        width: 100%;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }


    /* ------------------------------------------------------
       DC Power technical / SEO content
       Replace the legacy 1180px content calculation.
       ------------------------------------------------------ */

    .nda-dc-power-section {
        padding-left: max(32px, calc((100% - 1600px) / 2)) !important;
        padding-right: max(32px, calc((100% - 1600px) / 2)) !important;
    }

    .nda-dc-power-final-cta {
        width: calc(100% - 64px) !important;
        max-width: 1600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

}



/* ==========================================================
   SOLUTION HUB — HERO TEXT NORMALIZATION
   2026-09-25
   Let Hero text wrap naturally on the new 1600px canvas.
   ========================================================== */

@media screen and (min-width: 850px) {

    .nda-solution-hero-lead {
        max-width: 1100px;
    }

    /* Ignore legacy manually-inserted line breaks in Hero copy. */
    .nda-solution-hero-lead br {
        display: none;
    }

}

