@layer reference-panels, gridward-surfaces;
/* One continuous horizontal page gradient, with translucent blue reading surfaces. */
:root {
  --gw-page-left: #16294e;
  --gw-page-middle: #29477c;
  --gw-page-right: #41669a;
  --gw-layered-page: linear-gradient(90deg, var(--gw-page-left), var(--gw-page-middle) 58%, var(--gw-page-right));
  --gw-surface: linear-gradient(90deg, #9bb1d4ed, #c1d2e9ed);
  --gw-surface-inner: linear-gradient(90deg, #adbfdeeb, #d3e0f2eb);
  --gw-glass: linear-gradient(90deg, #142e70, #2e558a);
  --gw-control-hover: linear-gradient(90deg, #10275f, #254b81);
  --gw-accent: #527bbb;
  --gw-ink: #13253b;
  --gw-muted: #263d57;
  --gw-text-blue: #133965;
  --gw-on-dark: #fff;
  --gw-on-dark-muted: #f0f5fc;
  --gw-paper: #c5d5ec;
}

@media screen {
  html:has(:is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked)))) {
    background: var(--gw-layered-page);
  }

  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) {
    --gw-page-background: var(--gw-layered-page);
    --eg-glass: var(--gw-surface);
    background: var(--gw-layered-page) !important;
    margin: 0;
    min-height: 100vh;
  }

  :is(body.gw-home,body.service-page) .nav,
  body.eg-app .gw-unified-header,
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
    color: var(--gw-on-dark);
    background: var(--gw-layered-page) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  :is(body.gw-home,body.service-page) .nav .nav-links.open {
    background: var(--gw-layered-page) !important;
    border: 0 !important;
  }

  :is(body.gw-home,body.service-page) .nav :is(.nav-links a:not(.nav-cta),.gw-login-nav,.menu),
  body.eg-app .gw-unified-header :is(.rail .rail-link,.gw-workspace-resources a,.who-org,.gw-header-menu-toggle) {
    color: var(--gw-on-dark) !important;
  }

  :is(body.gw-home,body.service-page) .nav :is(.nav-links a:not(.nav-cta),.gw-login-nav,.menu),
  body.eg-app .gw-unified-header :is(.rail .rail-link,.gw-workspace-resources a,.gw-header-menu-toggle) {
    background: transparent !important;
    border-color: transparent !important;
  }

  :is(body.gw-home,body.service-page) .nav .logo,
  body.eg-app .gw-unified-header .wordmark,
  body.eg-professional-edition > header img,
  body.gw-home .gw-inline-brand img {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  :is(body.gw-home,body.service-page) .nav .logo img,
  body.eg-app :is(.wordmark img,.gw-receipt-brand),
  :is(body.service-page,body.gw-home) :is(.gw-growth-mark,.gw-policy-brand),
  body.eg-professional-edition > header img {
    filter: none !important;
    box-shadow: none !important;
  }
  :is(body.gw-home,body.service-page) .nav .logo img {
    height: auto;
    object-fit: contain;
  }

  :is(body.gw-home,body.service-page)
    :is(.nav-cta,.nav .gw-nav-app,.btn.primary,.hero-services-link,.gw-system-detail summary,.eg-offerings .service-link,.eg-offerings .glass-button,.gw-offer-action),
  body.eg-app:not(:has(#print-mode:checked))
    :is(a.btn:not(.ghost),button.btn:not(.ghost),.eg-conversation-actions button,.eg-context a,.eg-question-shell details > summary,.eg-secondary-navigation > summary,.gw-header-start,.logout button) {
    color: #fff !important;
    background: var(--gw-glass) !important;
    border-color: transparent !important;
    box-shadow: none;
  }

  :is(body.gw-home,body.service-page)
    :is(.nav-cta,.nav .gw-nav-app,.btn.primary,.hero-services-link,.eg-offerings .service-link,.eg-offerings .glass-button):is(:hover,:focus-visible,:active),
  body.eg-app:not(:has(#print-mode:checked))
    :is(a.btn:not(.ghost),button.btn:not(.ghost),.eg-conversation-actions button,.eg-context a,.eg-question-shell details > summary,.eg-secondary-navigation > summary):is(:hover,:focus-visible,:active) {
    color: #fff !important;
    background: var(--gw-control-hover) !important;
  }

  body.gw-home > main > :is(.hero,.section,.final,.gw-system-detail,.gw-inline-section,.gw-career-banner),
  body.service-page .service-main > :is(.service-hero,.service-section,.section),
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) footer {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.gw-home .hero { overflow: hidden; }
  body.gw-home .hero .gw-atmosphere::after {
    background: linear-gradient(90deg,#16294e 8%,#16294ee0 30%,#29477c55 74%,#41669a19) !important;
  }

  body.gw-home .hero .gw-glass.gw-front {
    background: linear-gradient(135deg,#527bbb,#34598e 50%,#1b3260);
    border-color: #527bbb;
  }
  body.gw-home .hero .gw-clean-mark {
    display: block;
    width: min(112px,56%);
    height: auto;
    flex: none;
    background: none;
    filter: none;
    box-shadow: none;
  }

  @media (max-width: 780px) {
    body.gw-home .hero .gw-clean-mark { width: min(84px,56%); }
  }

  body.gw-home > main > :is(.section,.final) > .container,
  body.gw-home :is(.eg-offerings > .service-grid > .service-card,.gw-system-detail .system-panel),
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card),
  body.service-page > main:not(.service-main),
  :is(.gw-policy-document,.gw-receipt),
  body.eg-app:not(:has(#print-mode:checked)) > main {
    color: var(--gw-ink);
    background: var(--gw-surface) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .service-hero > .container,
  body.eg-app:not(:has(#print-mode:checked)) :is(.eg-section-heading,.eg-report-hero,.page-head,.gw-result-heading) {
    background: linear-gradient(90deg,#172e59,#305482) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.gw-home :is(.service-card,.home-guide-card,.gw-method-button,.person,.faq-item,.offer-comparison-tier,.gw-inline-film,.gw-inline-tile),
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan,.journey-list li,.domain-list li,.work-steps > li),
  body.eg-app:not(:has(#print-mode:checked)) :is(.card,.panel,.empty,.eg-context,.eg-executive-brief,.eg-risk-card,.eg-priority-card,.eg-next-panel,.offering-card,.gtm-card,.evaluation-card,.eg-saved-card,.eg-product-card,.eg-next-step,.report-section,.report-panel,.metric-card,.summary-card,.eg-question-shell,.eg-secondary-navigation,.eg-question-shell details,.eg-question-shell .choice,.gw-receipt) {
    border: 0 !important;
    box-shadow: none !important;
  }

  body.gw-home :is(.service-card,.home-guide-card,.gw-method-button,.offer-comparison-tier),
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan),
  body.eg-app:not(:has(#print-mode:checked)) :is(.card,.panel,.eg-context,.eg-risk-card,.eg-priority-card,.eg-question-shell,.eg-secondary-navigation,.eg-question-shell details,.eg-question-shell .choice,.eg-report-section,.report-section,.gw-receipt) {
    background: var(--gw-surface-inner) !important;
  }

  :is(body.gw-home,body.service-page) :is(.section > .container,.service-card,.compare-card,.guide-card)::before,
  body.eg-app :is(.card,.panel,.eg-context,.eg-risk-card,.eg-priority-card,.eg-product-card,.report-section)::before {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.gw-home :is(.faq-item,.arch-row,.person,.gw-career-item),
  body.service-page :is(.service-section,.compare-table th,.compare-table td,.compare-plan li),
  body.eg-app:not(:has(#print-mode:checked)) :is(.eg-priority-card .eg-owner-line,.gw-responsive-table td,.gw-responsive-table .gw-labelled-row) {
    border-color: transparent !important;
  }

  body.gw-home :is(.gw-career-banner,.gw-career-item strong,.gw-career-item small,.gw-career-motion,#career-banner-disclaimer),
  body.gw-home .eg-offerings > :is(.intro-strip,.engagement-foot) :is(p,strong,a),
  body.gw-home .eg-offerings > :is(p,.small),
  body.gw-home .eg-engagement-note :is(p,a),
  body.service-page .service-section .service-actions .text-link,
  body.service-page .service-main > :is(.service-section,.section) > .container > :is(h2,h3,p,ul,ol),
  body.service-page .service-main > .service-section > .container > :is(p,ul,ol) :is(a,li,strong),
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) footer,
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) footer :is(a,p,span,small,.company-profile) {
    color: #fff !important;
  }

  body.eg-app:not(.eg-professional-edition):not(:has(#print-mode:checked)) > main#main:not(.page) {
    padding-inline: clamp(.75rem,3vw,2rem);
  }
  body.eg-app:not(:has(#print-mode:checked)) .eg-question-shell .choice { color: var(--gw-ink); }
  body.eg-app:not(:has(#print-mode:checked)) .eg-question-shell .choice:has(input:checked) {
    background: var(--gw-glass) !important;
    color: #fff !important;
  }
  body.eg-app:not(:has(#print-mode:checked)) :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
    background-color: var(--gw-paper);
    color: var(--gw-ink);
  }

  :is(body.gw-home,body.service-page) footer .company-profile { background: transparent !important; }
  body.eg-app.eg-evaluation-surface > footer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 1rem;
  }
}

@media print {
  :is(.gw-policy-document,.gw-receipt,body.eg-professional-edition > header) { border: 0 !important; }
  :is(.gw-receipt,.gw-policy-document,.eg-report-hero) {
    background: #e7effa !important;
    color: #13253b !important;
    box-shadow: none !important;
  }
  body.eg-professional-edition > header img { filter: none; box-shadow: none; }
}

/* Fade the same blue down through the page. Screen treatment leaves print styles intact. */
@media screen {
  :root {
    --gw-header-fade: 94px;
    --gw-panel-bottom-radius: 24px;
    --gw-logo-field: linear-gradient(90deg,
      color-mix(in srgb, var(--gw-page-middle) 61%, white),
      color-mix(in srgb, var(--gw-page-right) 61%, white));
    --gw-panel-field: linear-gradient(90deg,
      color-mix(in srgb, var(--gw-page-middle) 66%, white),
      color-mix(in srgb, var(--gw-page-right) 61%, white));
  }

  :is(body.gw-home,body.service-page) .nav,
  body.eg-app .gw-unified-header,
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
    isolation: isolate;
    background: transparent !important;
    backdrop-filter: none !important;
    color: var(--gw-ink);
  }
  :is(body.gw-home,body.service-page) .nav::before,
  body.eg-app .gw-unified-header::before,
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header::before {
    content: "";
    position: absolute;
    inset: 0 0 calc(-1 * var(--gw-header-fade));
    z-index: -1;
    pointer-events: none;
    background: var(--gw-logo-field);
    mask-image: linear-gradient(180deg,
      #000 calc(100% - var(--gw-header-fade)),#0009 calc(100% - 56px),#0003 calc(100% - 22px),transparent);
    border: 0 !important;
    box-shadow: none !important;
  }
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header { position: relative; }

  :is(body.gw-home,body.service-page) .nav :is(.nav-links a:not(.nav-cta),.gw-login-nav,.menu),
  body.eg-app .gw-unified-header :is(.rail .rail-link,.gw-workspace-resources a,.who-org,.gw-header-menu-toggle) {
    color: var(--gw-ink) !important;
  }
  :is(body.gw-home,body.service-page) .nav .nav-links.open {
    background: var(--gw-logo-field) !important;
    box-shadow: none !important;
  }

  /* Keep the wordmark on a lighter shade and place white navigation over deeper blue. */
  :is(body.gw-home,body.service-page) .nav::before {
    --gw-logo-blue: color-mix(in srgb,var(--gw-page-middle) 61%,white);
    background: linear-gradient(90deg,
      var(--gw-logo-blue) max(27%,calc((100% - 1120px) / 2 + 206px)),
      var(--gw-page-middle) max(40%,calc((100% - 1120px) / 2 + 395px)),
      var(--gw-page-right));
  }
  :is(body.gw-home,body.service-page) .nav :is(.nav-links a:not(.nav-cta),.gw-login-nav,.menu) {
    color: #fff !important;
  }
  :is(body.gw-home,body.service-page) .nav .nav-links.open {
    background: var(--gw-layered-page) !important;
  }

  @media (max-width: 1280px) {
    :is(body.gw-home,body.service-page) .nav::before {
      background: linear-gradient(180deg,transparent 49px,var(--gw-page-middle) 64px),
                  linear-gradient(90deg,var(--gw-logo-blue) 56%,var(--gw-page-middle) 77%,var(--gw-page-right));
    }
  }

  body.gw-home .hero .gw-atmosphere {
    mask-image: linear-gradient(180deg,transparent,#000 52px);
  }

  /* Let the light reading surfaces emerge before their first line of text. */
  body.gw-home > main > :is(.section,.final) > .container,
  body.gw-home :is(.eg-offerings > .service-grid > .service-card,.gw-system-detail .system-panel),
  body.service-page .service-hero .service-summary,
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card),
  body.service-page > main:not(.service-main),
  :is(.gw-policy-document,.gw-receipt),
  body.eg-app:not(:has(#print-mode:checked)) > main {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.gw-home > main > :is(.section,.final) > .container::before,
  body.gw-home :is(.eg-offerings > .service-grid > .service-card,.gw-system-detail .system-panel)::before,
  body.service-page .service-hero .service-summary::before,
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card)::before,
  body.service-page > main:not(.service-main)::before,
  :is(.gw-policy-document,.gw-receipt)::before,
  body.eg-app:not(:has(#print-mode:checked)) > main::before {
    content: "" !important;
    position: absolute;
    inset: -43px 0 -16px;
    z-index: -1;
    pointer-events: none;
    background: var(--gw-panel-field) !important;
    mask-image: linear-gradient(180deg,transparent,#0007 24px,#000 55px,#000 calc(100% - 26px),transparent),
                linear-gradient(90deg,transparent,#000a 14px,#000 27px,#000 calc(100% - 27px),#000a calc(100% - 14px),transparent);
    mask-composite: intersect;
    border: 0 !important;
    border-radius: 0 0 var(--gw-panel-bottom-radius) var(--gw-panel-bottom-radius) !important;
    box-shadow: none !important;
  }

  body.gw-home :is(.home-guide-card,.gw-method-button,.gw-method-copy,.offer-comparison-tier,.gw-inline-film,.gw-inline-card),
  body.service-page :is(.compare-plan,.journey-list li,.domain-list li,.work-steps > li),
  body.eg-app:not(:has(#print-mode:checked)) :is(.card,.panel,.eg-context,.eg-risk-card,.eg-priority-card,.eg-question-shell,.eg-secondary-navigation,.eg-question-shell details,.eg-question-shell .choice,.eg-report-section,.report-section,.gw-receipt) {
    background: linear-gradient(180deg,transparent,#c5d6eeaa 16px,#c5d6ee77 84%,transparent) !important;
    border: 0 !important;
    border-radius: 0 0 var(--gw-panel-bottom-radius) var(--gw-panel-bottom-radius) !important;
    box-shadow: none !important;
  }
  body.gw-home .gw-method-copy :is(h3,p,strong) { color: var(--gw-ink); }

  /* The two offer columns share one continuous fade. */
  body.gw-home .eg-offerings > .service-grid {
    position: relative;
    isolation: isolate;
  }
  body.gw-home .eg-offerings > .service-grid::before {
    content: "";
    position: absolute;
    inset: -44px -12px -14px;
    z-index: -1;
    pointer-events: none;
    background: var(--gw-panel-field);
    mask-image: linear-gradient(180deg,transparent,#0006 26px,#000 53px,#000 calc(100% - 25px),transparent),
                linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);
    mask-composite: intersect;
    border-radius: 0 0 var(--gw-panel-bottom-radius) var(--gw-panel-bottom-radius);
  }
  body.gw-home .eg-offerings > .service-grid > .service-card {
    background: transparent !important;
  }
  body.gw-home .eg-offerings > .service-grid > .service-card::before { content: none !important; }

  body.service-page .service-hero > .container,
  body.eg-app:not(:has(#print-mode:checked)) :is(.eg-section-heading,.eg-report-hero,.page-head,.gw-result-heading) {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.service-page .service-hero > .container::before,
  body.eg-app:not(:has(#print-mode:checked)) :is(.eg-section-heading,.eg-report-hero,.page-head,.gw-result-heading)::before {
    content: "";
    position: absolute;
    inset: -12px 0 -12px;
    z-index: -1;
    pointer-events: none;
    background: var(--gw-layered-page);
    mask-image: linear-gradient(180deg,transparent,#000 20px,#000 calc(100% - 20px),transparent),
                linear-gradient(90deg,transparent,#000 15px,#000 calc(100% - 15px),transparent);
    mask-composite: intersect;
    border: 0 !important;
    border-radius: 0 0 var(--gw-panel-bottom-radius) var(--gw-panel-bottom-radius) !important;
    box-shadow: none !important;
  }

  body.gw-home .gw-inline-film {
    background: linear-gradient(180deg,transparent,#254578 30px,#254578 calc(100% - 24px),transparent) !important;
  }

  body.eg-app:not(:has(#print-mode:checked)) .eg-question-shell .choice:has(input:checked) {
    background: var(--gw-glass) !important;
    color: #fff !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app) :is(a[href],button,summary,input,textarea,select,[tabindex]):focus-visible {
    outline: 3px solid #1754a2 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white,0 0 0 6px white !important;
  }
}

/* Final rollout layer, November 17 2026.
   One full-width horizontal blue from header to footer, a paler header that fades into the page,
   light blue surfaces that fade vertically, no structural borders. Screen only; print styles unchanged. */
@media screen {
  :root {
    --gwf-page: linear-gradient(90deg, var(--gw-page-left), var(--gw-page-middle) 58%, var(--gw-page-right));
    --gwf-nav-start: #45628f;
    --gwf-nav-end: #4b6b9c;
    --gwf-logo-blue: color-mix(in srgb, var(--gw-page-middle) 61%, white);
    --gwf-card: linear-gradient(180deg, #d3dff1, #c3d3ec 55%, #b6c9e6f0 calc(100% - 20px), #b6c9e600);
    --gwf-chip: #c9d8ee;
    --gwf-field: #dbe6f5;
    --gwf-field-line: #47689e;
  }

  /* 1. One continuous page gradient behind every layer, header to footer. */
  html:has(:is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked)))),
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) {
    background: var(--gwf-page) !important;
    background-attachment: scroll !important;
  }
  body.gw-404 { background: var(--gwf-page) !important; color: #fff; }
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) :is(footer,footer > *,.footer,.company-profile) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* 2. Paler header. The wordmark keeps its pale field; navigation sits on a lighter blue
        that still holds white labels above 4.5:1, then the whole band fades into the page. */
  :is(body.gw-home,body.service-page) .nav::before {
    background: linear-gradient(90deg,
      var(--gwf-logo-blue) max(27%,calc((100% - 1120px) / 2 + 206px)),
      var(--gwf-nav-start) max(40%,calc((100% - 1120px) / 2 + 395px)),
      var(--gwf-nav-end)) !important;
  }
  body.eg-app .gw-unified-header,
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header { position: relative; }
  body.eg-app .gw-unified-header::before,
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header::before {
    background: linear-gradient(90deg,
      var(--gwf-logo-blue) 250px, var(--gwf-nav-start) 430px, var(--gwf-nav-end)) !important;
  }
  :is(body.gw-home,body.service-page) .nav :is(.nav-links a:not(.nav-cta),.gw-login-nav,.menu),
  body.eg-app .gw-unified-header :is(.rail .rail-link,.gw-workspace-resources a,.who-org,.who,.gw-header-menu-toggle),
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header > span {
    color: #fff !important;
  }
  body.eg-app .gw-unified-header .rail .rail-link.is-current,
  body.eg-app .gw-unified-header .gw-workspace-resources a[aria-current] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  :is(body.gw-home,body.service-page) .nav .nav-links.open,
  body.eg-app .gw-unified-header .gw-header-menu[open] > .rail {
    background: linear-gradient(90deg, var(--gwf-nav-start), var(--gwf-nav-end)) !important;
  }
  @media (max-width: 1280px) {
    :is(body.gw-home,body.service-page) .nav::before {
      background: linear-gradient(180deg, transparent 49px, var(--gwf-nav-start) 64px),
                  linear-gradient(90deg, var(--gwf-logo-blue) 56%, var(--gwf-nav-start) 77%, var(--gwf-nav-end)) !important;
    }
  }
  @media (max-width: 900px) {
    body.eg-app .gw-unified-header::before,
    body.eg-professional-edition:not(:has(#print-mode:checked)) > header::before {
      background: linear-gradient(180deg, transparent 56px, var(--gwf-nav-start) 70px),
                  linear-gradient(90deg, var(--gwf-logo-blue) 58%, var(--gwf-nav-start) 80%, var(--gwf-nav-end)) !important;
    }
  }

  /* Hero artwork fades out on every side instead of ending on a hard rounded edge. */
  body.gw-home .hero .gw-atmosphere {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    mask-image: linear-gradient(180deg, transparent, #000 52px, #000 calc(100% - 90px), transparent),
                linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 60px), transparent);
    mask-composite: intersect;
  }

  /* 3. Light blue surfaces that fade vertically. Replaces every remaining white or neutral box. */
  body :is(.artifact,.tier,.journey-card,.sys-node,.bench,.pv,.pv-side,.xf-card,.cvc-item,.tier-commit,.home-guide-card,.journey-loop,.tl-metric,.gw-discovery-panel,.service-credit,.modal-card),
  body.gw-home :is(.offer-comparison-tier,.gw-method-copy,.gw-inline-card),
  body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan,.compare-table,.journey-list li,.domain-list li,.work-steps > li,.system-panel),
  body.eg-app:not(:has(#print-mode:checked)) :is(.card,.panel,.empty,.notice,.eg-context,.eg-executive-brief,.eg-risk-card,.eg-priority-card,.eg-next-panel,.offering-card,.gtm-card,.evaluation-card,.eg-saved-card,.eg-product-card,.eg-next-step,.report-section,.report-panel,.metric-card,.summary-card,.eg-question-shell,.eg-secondary-navigation:not(:is(summary)),.report-qualification,.report-feedback,.eg-recorded-answer,.item-block,.gw-receipt,.gw-policy-document) {
    background: var(--gwf-card) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  body.eg-app:not(:has(#print-mode:checked)) .eg-question-shell :is(details:not(:has(> summary)),.choice:not(:has(input:checked))) {
    background: linear-gradient(180deg, #dbe6f5, #c9d8ee) !important;
    border-color: transparent !important;
  }
  #sessionModal .modal-card { background: linear-gradient(180deg, #dbe6f5, #c3d3ec) !important; }

  /* Inner rows of a surface stay on the surface: no second box. */
  body :is(.pv-head,.pv-flag,.pv-gauge-col,.pv-bars-col,.pv-maturity,.cvc-join,.mono,.data-row,.deliverable,.report-status,.hint,.gw-stage-description),
  body.eg-app:not(:has(#print-mode:checked)) :is(.evaluation-save-bar,.eg-context-note,.eg-company-mark,details:not([class]):not(:has(> summary.btn))) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /* Small labels keep a quiet solid light blue. */
  body :is(.domain-chip,.tag,.ai-label,.pv-chip,.chip,.dev-flag),
  body.eg-app :is(.avatar,.eg-priority-order) {
    background: var(--gwf-chip) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /* Links that were styled as white pills read as links on the surface. */
  body.gw-home .home-guide-link {
    background: transparent !important;
    color: var(--gw-text-blue) !important;
    border-color: transparent !important;
    text-decoration: underline;
  }
  a.website-skip { background: var(--gwf-chip) !important; color: var(--gw-ink) !important; }

  /* Form fields: lighter blue with a clear edge, since a field needs a visible boundary. */
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked)))
    :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button]),select,textarea) {
    background: var(--gwf-field) !important;
    color: var(--gw-ink) !important;
    border: 1px solid var(--gwf-field-line) !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app) :is(input,select,textarea)::placeholder { color: #3d5677; opacity: 1; }

  /* Remove section borders, dividers and card outlines. Hero and film artwork keep their drawn lines. */
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked)))
    :is(section,article,aside,header,footer,nav,main,div,details,summary,fieldset,p,li,ul,ol,table,thead,tbody,tr,th,td,dl,dt,dd,span,a,label,button,figure,blockquote):not(:is(.gw-orbit,.gw-glass,.gw-inline-frame,.gw-inline-core,[class*="gw-inline-s"],.boardroom-switch,.boardroom-switch *,[role=progressbar],[role=progressbar] *,.eg-progress,.eg-progress *,.gw-stage *,.pv-gauge-col *)) {
    border-color: transparent !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) hr {
    border: 0 !important;
    height: 2.5rem;
    background: none !important;
  }
  /* Tables lose their rules, so rows alternate quietly for scanning. */
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked))) tbody tr:nth-child(even) > :is(td,th) {
    background-color: #ffffff2e;
  }

  /* 4. Readability on every surface and control. */
  :is(body.gw-home,body.service-page,body.eg-app:not(:has(#print-mode:checked)))
    :is(.home-guide-card,.offer-comparison-tier,.artifact,.tier,.bench,.pv,.xf-card,.cvc-item,.service-credit,.card,.panel,.notice,.report-section,.item-block,.gw-receipt,.gw-policy-document)
    :is(a:not(.btn,.nav-cta,.service-link,.glass-button,.gw-offer-action,.home-guide-link)) {
    color: var(--gw-text-blue) !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app)
    :is(.nav-cta,.btn.primary,a.btn:not(.ghost),button.btn:not(.ghost),.service-link,.glass-button,.gw-offer-action):is(:hover,:focus-visible) {
    color: #fff !important;
    background: var(--gw-control-hover) !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app) :is(a[href],button,summary,input,textarea,select,[tabindex]):focus-visible {
    outline: 3px solid #0f2357 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px #fff !important;
  }
}

/* Final rollout, second pass: silver glass controls become light blue; panels fade on every side. */
@media screen {
  :root, body {
    --gw-glass-rest: linear-gradient(180deg, #dbe6f5, #c3d3ec) !important;
    --gw-glass-hover: linear-gradient(180deg, #e6eef9, #cfdcf0) !important;
    --gw-glass-edge: transparent !important;
    --gw-glass-ink: #13253b !important;
    --gw-glass-shadow: none !important;
  }
  body.gw-home .home-guide-link { text-decoration: none !important; }
  body.gw-home .home-guide-link :is(h3,p) { color: var(--gw-ink) !important; }
  body.gw-home .home-guide-link :is(.home-guide-cta,span:last-child) { text-decoration: underline; }

  body.gw-home > main > :is(.section,.final) > .container::before,
  body.eg-app:not(:has(#print-mode:checked)) > main::before {
    inset: -88px calc(-1 * min(72px, 4vw)) -72px !important;
    border-radius: 0 !important;
    mask-image: linear-gradient(180deg, transparent, #0008 44px, #000 88px, #000 calc(100% - 72px), transparent),
                linear-gradient(90deg, transparent, #000 min(72px, 4vw), #000 calc(100% - min(72px, 4vw)), transparent) !important;
    mask-composite: intersect !important;
  }
  :is(body.gw-home,body.service-page,body.eg-app) :is(.card,.panel,.home-guide-card,.offer-comparison-tier,.artifact,.bench,.pv,.notice,.report-section,.item-block,.gw-receipt,.gw-policy-document,.eg-question-shell) {
    border-bottom-left-radius: var(--gw-panel-bottom-radius, 24px);
    border-bottom-right-radius: var(--gw-panel-bottom-radius, 24px);
  }
}

@media screen {
  html body.eg-app .gw-unified-header nav.rail a.rail-link:is(.is-current,[aria-current]),
  html body.eg-app .gw-unified-header .gw-workspace-resources a[aria-current],
  html :is(body.gw-home,body.service-page) .nav .nav-links a[aria-current]:not(.nav-cta) {
    color: #fff !important;
    opacity: 1 !important;
  }
}

/* Readability pass: dark ink on light surfaces, white on the blue page. */
@media screen {
  :root {
    --gw-panel-field: linear-gradient(90deg,
      color-mix(in srgb, var(--gw-page-middle) 56%, white),
      color-mix(in srgb, var(--gw-page-right) 54%, white));
  }

  /* Service-page sections sit on the blue page: everything outside a light card reads white. */
  body.service-page .service-main > :is(.section,.service-section) > .container
    :is(h1,h2,h3,h4,h5,h6,p,li,td,th,dt,dd,span,small,strong,b,em,label,caption,div,figcaption,a)
    :not(:is(.gwf-light *,.btn,.btn *,button,button *,summary,summary *,.service-link,.service-link *,.glass-button,.glass-button *,
             .service-summary *,.service-card *,.compare-card *,.guide-card *,.compare-plan *,.compare-table *,.journey-list li *,.journey-list li,
             .domain-list li,.domain-list li *,.work-steps > li,.work-steps > li *,.system-panel *,.artifact *,.tier *,.journey-card *,.sys-node *,.bench *,
             .pv *,.pv,.xf-card *,.cvc-item *,.service-credit *,.tl-metric *,.gw-discovery-panel *,.journey-loop *,.domain-chip,.tag,.pv-chip,.chip)) {
    color: #fff !important;
  }

  /* Light panels and cards: dark ink. */
  :is(body.gw-home > main > :is(.section,.final) > .container,
      body.service-page > main:not(.service-main),
      body.eg-app:not(:has(#print-mode:checked)) > main,
      .gw-receipt, .gw-policy-document,
      body :is(.artifact,.tier,.journey-card,.sys-node,.bench,.pv,.xf-card,.cvc-item,.tier-commit,.home-guide-card,.journey-loop,.tl-metric,.gw-discovery-panel,.service-credit),
      body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan,.compare-table,.journey-list li,.domain-list li,.work-steps > li,.system-panel))
    :is(h1,h2,h3,h4,h5,h6,p,li,td,th,dt,dd,span,small,strong,b,em,label,caption,div,figcaption,blockquote)
    :not(:is(.btn,.btn *,button,button *,summary,summary *,.nav-cta,.nav-cta *,.glass-button,.glass-button *,.service-link,.service-link *,.gw-offer-action,.gw-offer-action *,
             .eg-report-hero,.eg-report-hero *,.eg-section-heading,.eg-section-heading *,.page-head,.page-head *,.gw-result-heading,.gw-result-heading *,
             .gw-inline-film,.gw-inline-film *,.gw-stage,.gw-stage *,.hero,.hero *,.service-hero,.service-hero *,.choice:has(input:checked),.choice:has(input:checked) *,
             .eg-context a,.eg-context a *,.eg-family-links a,.eg-family-links a *,.eg-context-return,.eg-context-return *,
             .dev-flag,.gw-system-detail .system-panel *,.eg-offerings > .intro-strip *,.eg-offerings > .engagement-foot *,.gw-career-banner,.gw-career-banner *,
             [class*="score-ring"] *,[class*="gauge"] *,.eg-score *)) {
    color: var(--gw-ink) !important;
  }
  :is(body.gw-home > main > :is(.section,.final) > .container,
      body.service-page > main:not(.service-main),
      body.eg-app:not(:has(#print-mode:checked)) > main,
      body :is(.artifact,.tier,.bench,.pv,.home-guide-card,.service-credit),
      body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan,.compare-table))
    :is(.muted,.small,.tiny,.eg-section-note,.eg-context-caption,.eg-eyebrow,.eg-report-company,.eg-save-explanation,.item-id,.saved,.finding-id,.eyebrow,.index,.role,.step-num,.section-copy,.method-note,.home-guide-note,.experience-disclaimer,.service-note,.guide-byline,.discover-legal,.discover-quiet,th,caption)
    :not(:is(.btn *,button *,summary *,.eg-report-hero *,.eg-section-heading *,.page-head *,.gw-result-heading *,.hero *,.service-hero *,.choice:has(input:checked) *)) {
    color: var(--gw-muted) !important;
  }
  :is(body.gw-home > main > :is(.section,.final) > .container,
      body.service-page > main:not(.service-main),
      body.eg-app:not(:has(#print-mode:checked)) > main,
      body :is(.artifact,.tier,.bench,.pv,.home-guide-card,.service-credit),
      body.service-page :is(.service-summary,.service-card,.compare-card,.guide-card,.compare-plan,.compare-table))
    a:not(:is(.btn,.nav-cta,.service-link,.glass-button,.gw-offer-action,.home-guide-link,.eg-context a,.eg-family-links a,.eg-context-return,
              .eg-report-hero *,.eg-section-heading *,.page-head *,.gw-result-heading *,.hero *,.service-hero *,.gw-inline-film *,.choice *,summary *)) {
    color: var(--gw-text-blue) !important;
  }
  body.gw-home .home-guide-link .text-link { color: var(--gw-text-blue) !important; }
  body.gw-home .gw-career-motion,
  body.gw-home .gw-motion button { background: var(--gwf-chip) !important; color: var(--gw-ink) !important; }
}

@media screen {
  :root { --gwf-card: linear-gradient(180deg, #d6e2f3, #c8d7ee 55%, #bccde8f2 calc(100% - 14px), #bccde800); }
  body :is(.gw-policy-document,.gw-receipt) {
    background: linear-gradient(180deg, #d6e2f3, #c8d7ee) !important;
    box-shadow: 0 2.5rem 3rem -1.5rem #bccde866 !important;
  }
}

@media screen {
  body.eg-app:not(:has(#print-mode:checked)) > main::before { bottom: -20px !important; }
  html body.gw-home .offer-comparison > summary.service-link { background: var(--gw-glass) !important; color: #fff !important; }
  html body.gw-home button.gw-career-motion { background: var(--gwf-chip) !important; color: var(--gw-ink) !important; }
  html body.service-page .service-hero :is(.guide-byline,.service-hero-grid > div > p) { color: #fff !important; }
  html body.service-page .service-hero .service-summary :is(p,li,span,strong,small,h2,h3,.service-note) { color: var(--gw-ink) !important; }
  html body.service-page .service-main > .service-section > .container > a.text-link { color: #fff !important; }
}

/* Specificity boost (the :not(#gwf) adds ID weight) for rules older !important styles were overriding. */
@media screen {
  html:not(#gwf) body.service-page :is(.journey-list > li,.domain-list > li,.work-steps > li),
  html:not(#gwf) body.service-page :is(.journey-list > li,.domain-list > li,.work-steps > li) :is(p,span,strong,small,a,em,b) {
    color: var(--gw-ink) !important;
  }
  html:not(#gwf) body.gw-home .offer-comparison > summary.service-link { background: var(--gw-glass) !important; color: #fff !important; }
  html:not(#gwf) body.gw-home button.gw-career-motion { background: var(--gwf-chip) !important; color: var(--gw-ink) !important; }
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) > main :is(.card,.panel,.notice,.item-block,.eg-next-panel) a:not(.btn) { color: var(--gw-text-blue) !important; }
  html:not(#gwf) body.gw-home > main > :is(.section,.final) > .container :is(.home-guide-note,.method-note,.experience-disclaimer) { color: var(--gw-ink) !important; }
}

@media screen {
  /* Controls inside the dark heading bands stay light-on-dark. */
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) :is(.page-head,.eg-report-hero,.eg-section-heading,.gw-result-heading) :is(a,button):not(:is(.btn.primary,.nav-cta)) {
    background: #ffffff24 !important;
    color: #fff !important;
  }
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) :is(.page-head,.eg-report-hero,.eg-section-heading,.gw-result-heading) :is(a,button):not(:is(.btn.primary,.nav-cta)):is(:hover,:focus-visible) {
    background: #ffffff3d !important;
  }
}

@media screen {
  /* Panel fades extend past the content edge; never let them create sideways scrolling. */
  html:has(:is(body.gw-home,body.service-page,body.eg-app)),
  :is(body.gw-home,body.service-page,body.eg-app) { overflow-x: clip; }
}

@media screen {
  /* Disclosure wrappers never draw their own box; open panels use the light surface. */
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) :is(details.professional-details,details.gw-professional-details,details.offer-disclosure,details.consultative-details) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) :is(details.professional-details,details.gw-professional-details)[open] > :not(summary) {
    background: var(--gwf-card) !important;
    color: var(--gw-ink) !important;
    border-radius: 0 0 var(--gw-panel-bottom-radius, 24px) var(--gw-panel-bottom-radius, 24px);
  }
}

@media screen {
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) :is(.timeline-entry,.history-entry,.eg-history-card) {
    background: var(--gwf-card) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* Review pass, 17 November: surfaces a step bluer so none reads as near-white; the next-step panel uses it in every report. */
@media screen {
  :root { --gwf-card: linear-gradient(180deg, #c9d8ee, #b9cbe7 55%, #aec3e2f2 calc(100% - 14px), #aec3e200); }
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) .eg-next-panel {
    background: linear-gradient(180deg, #c3d3ec, #b2c6e4 60%, #a9bedf) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
    box-shadow: 0 2rem 2.5rem -1.5rem #a9bedf59 !important;
  }
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) .eg-next-panel > *,
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) .eg-next-panel :is(div,section,aside) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* Review pass: expanded panels and remaining labels. */
@media screen {
  /* The revenue operating system panel is a dark feature panel: white text throughout. */
  html:not(#gwf) body.gw-home .gw-system-detail .system-panel {
    background: linear-gradient(180deg, #1b3566, #24467c 70%, #24467c00) !important;
    border-radius: 0 0 24px 24px;
  }
  html:not(#gwf) body.gw-home .gw-system-detail .system-panel :is(h2,h3,h4,p,span,small,strong,b,div,li,summary,.step-num,.live,.system-caption,.gw-stage-description) {
    color: #fff !important;
  }
  html:not(#gwf) body.gw-home .gw-system-detail .system-panel :is(.gw-stage-detail,.flow-row) { background: transparent !important; }

  /* Opened offer details on the homepage cards read on a light surface. */
  html:not(#gwf) body.gw-home .eg-offerings :is(.information-body,.offer-disclosure[open] > :not(summary),.offer-comparison[open] > :not(summary)) {
    background: linear-gradient(180deg, #c9d8ee, #b9cbe7) !important;
    border-radius: 0 0 18px 18px;
    padding: .75rem 1rem;
  }
  html:not(#gwf) body.gw-home .eg-offerings :is(.information-body,.offer-disclosure[open] > :not(summary)) :is(p,li,span,strong,small,h4,h5,.offer-price,.offer-comparison-price) {
    color: var(--gw-ink) !important;
  }
  html:not(#gwf) body.gw-home .eg-offerings :is(.information-body,.offer-disclosure[open] > :not(summary)) a:not(:is(.btn,.service-link,.glass-button,.gw-offer-action)) {
    color: var(--gw-text-blue) !important;
  }
  html:not(#gwf) body.gw-home .eg-engagement-note { color: #fff !important; }

  /* Development identity switcher (never shown in production): keep it legible anyway. */
  html:not(#gwf) body.eg-app footer.foot form.persona :is(label,span:not(.dev-flag)) { color: #fff !important; }
  html:not(#gwf) body.eg-app .dev-flag { background: #c9d8ee !important; color: #13253b !important; }
}
@media screen {
  html:not(#gwf) body.gw-home .gw-system-detail .system-panel::before,
  html:not(#gwf) body.gw-home .gw-system-detail .system-panel::after { content: none !important; background: none !important; }
}
@media screen {
  html:not(#gwf):not(#gwf-dev) body.eg-app footer .dev-flag { color: #13253b !important; background: #c9d8ee !important; }
  html:not(#gwf):not(#gwf-dev) body.eg-app footer form :is(label,label *) { color: #fff !important; }
  html:not(#gwf) body.gw-home > main > .section > .container > p:not([class]) { color: var(--gw-ink) !important; }
}

/* Downloadable Professional report: header and controls (this report embeds the same stylesheet). */
@media screen {
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
    background: linear-gradient(90deg, var(--gwf-logo-blue) 250px, var(--gwf-nav-start) 430px, var(--gwf-nav-end)) !important;
  }
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) > header::before { content: none !important; }
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) > header > span { color: #fff !important; }
  @media (max-width: 700px) {
    html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
      background: linear-gradient(90deg, var(--gwf-logo-blue) 55%, var(--gwf-nav-start) 80%, var(--gwf-nav-end)) !important;
    }
  }
  html:not(#gwf):not(#gwf-report) body.eg-professional-edition:not(:has(#print-mode:checked)) :is(label.boardroom-switch,.report-nav a,main details > summary) {
    background: linear-gradient(180deg, #dbe6f5, #c3d3ec) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  html:not(#gwf):not(#gwf-report) body.eg-professional-edition:not(:has(#print-mode:checked)) :is(label.boardroom-switch,.report-nav a,main details > summary):is(:hover,:focus-visible) {
    background: linear-gradient(180deg, #e6eef9, #cfdcf0) !important;
  }
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) #report-approval {
    background: linear-gradient(180deg, #c9d8ee, #b9cbe7) !important;
    color: var(--gw-ink) !important;
    border-color: transparent !important;
  }
}
@media screen {
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) > main::before { top: 0 !important; }
  html:not(#gwf) body.eg-professional-edition:not(:has(#print-mode:checked)) .eg-section-note { color: var(--gw-ink) !important; }
}
@media screen {
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) .eg-next-panel::before,
  html:not(#gwf) body.eg-app:not(:has(#print-mode:checked)) .eg-next-panel::after { content: none !important; background: none !important; }
}
@media screen {
  html:not(#gwf) body.gw-home .tl-row::after { background: #c9d8ee !important; }
}

/* Paint fades on independent background layers. Interactive content keeps its
   own stacking, pointer handling and focus indicators. Print has its own palette. */
@layer gridward-surfaces {
  @media screen {
    body:not(:has(#print-mode:checked)) {
      --surface-radius: clamp(18px, 2.5vw, 32px);
      --surface-side: clamp(10px, 2vw, 32px);
      --surface-fill: linear-gradient(180deg, #c9d9ef, #bdcfe9 55%, #aec4e2);
      --surface-mask: linear-gradient(90deg, transparent, #000 var(--surface-side),
                        #000 calc(100% - var(--surface-side)), transparent),
                      linear-gradient(180deg, transparent, #000 15px,
                        #000 calc(100% - 24px), transparent);
    }

    :is(.gw-home,.service-page) .nav,
    .eg-app:not(:has(#print-mode:checked)) .gw-unified-header,
    .eg-professional-edition:not(:has(#print-mode:checked)) > header {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      overflow: visible !important;
      isolation: isolate;

      &::before {
        content: "" !important;
        position: absolute;
        inset: 0 0 -4rem !important;
        pointer-events: none;
        z-index: -1;
        background: linear-gradient(90deg, #98aecb, #496795 56%, #45658f) !important;
        mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 4.5rem),
                       #000c calc(100% - 3rem), #0005 calc(100% - 1.5rem), transparent) !important;
        border: 0 !important;
        box-shadow: none !important;
      }
    }

    /* The caption is outside the data rows. Keep the table's structural
       display and paint the backing on its block wrapper. */
    .service-page .commercial-desktop .gwc-table {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }
    .service-page .gwc-table caption { color: #162d48 !important; }

    :is(.gw-home,.service-page,.eg-app,.eg-professional-edition):not(:has(#print-mode:checked))
      :is(.commercial-desktop,.gwc-card,.gwc-terms,.service-summary,.service-card,
          .compare-card,.guide-card,.compare-plan,.journey-list > li,.domain-list > li,.work-steps > li,
          .artifact,.tier,.journey-card,.sys-node,.bench,.pv,.pv-side,.xf-card,.cvc-item,
          .tier-commit,.home-guide-card,.journey-loop,.tl-metric,.gw-discovery-panel,
          .service-credit,.offer-comparison-tier,.gw-method-copy,.card,.panel,.empty,
          .notice,.eg-context,.eg-executive-brief,.eg-risk-card,.eg-priority-card,.eg-next-panel,
          .offering-card,.gtm-card,.evaluation-card,.eg-saved-card,.eg-product-card,.eg-next-step,
          .report-section,.eg-report-section,.report-panel,.metric-card,.summary-card,.eg-question-shell,
          .report-qualification,.report-feedback,.eg-recorded-answer,.item-block,.gw-receipt,.gw-policy-document,
          .timeline-entry,.history-entry,.eg-history-card,#report-approval) {
      position: relative;
      isolation: isolate;
      background: transparent !important;
      border-color: transparent !important;
      border-bottom-left-radius: var(--surface-radius) !important;
      border-bottom-right-radius: var(--surface-radius) !important;
      &:not(:focus-visible) { box-shadow: none !important; }
      &::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        pointer-events: none;
        z-index: -1 !important;
        inset: -10px -6px -12px !important;
        background: var(--surface-fill) !important;
        mask-image: var(--surface-mask) !important;
        mask-composite: intersect !important;
        border: 0 !important;
        border-radius: 12px 12px var(--surface-radius) var(--surface-radius) !important;
        box-shadow: none !important;
      }
    }
  }
}

@layer gridward-surfaces {
  @media screen {
    html:has(.nav,.gw-unified-header,.eg-professional-edition):not(:has(#print-mode:checked)) {
      scroll-padding-top: calc(var(--gw-header-height, 6rem) + 12px);
    }
    html:root body:not(:has(#print-mode:checked)) > :is(nav.nav,header.gw-unified-header,header.gw-document-header),
    html:root body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
      position: sticky !important;
      top: 0 !important;
      z-index: 65 !important;
      /* The blue behind the labels is opaque. Only the strip below it fades. */
      --gw-nav-paint: linear-gradient(90deg, #829ab8 0%, #344f78 28%, #284978 67%, #365c8b 100%);
      background: var(--gw-nav-paint) !important;
      &::before {
        content: "" !important;
        inset: 100% 0 auto !important;
        height: 14px;
        background: var(--gw-nav-paint) !important;
        mask-image: linear-gradient(to bottom, #000, #0009 38%, transparent) !important;
      }
      :is(a,button,summary,.who,.who-org,.avatar,.rail-link,.gw-header-start),
      :is(a,button,summary) :is(span,b,strong) {
        color: white !important;
        -webkit-text-fill-color: currentColor;
      }
      :is(.menu,.gw-header-menu-toggle,.logout button,.avatar,.gw-header-start) {
        background: #244675 !important;
      }
    }
    html:root body.eg-app > aside[aria-label="Preview environment"],
    body.eg-app dialog {
      color: #152d50 !important;
      background: linear-gradient(160deg,#d0dff1,#b5cbe5) !important;
      border-color: transparent !important;
      border-radius: 0 0 var(--surface-radius) var(--surface-radius);
    }
    body:is(.service-page,.gw-home,.eg-app):not(:has(#print-mode:checked)) > :is(footer,.foot) {
      background: linear-gradient(180deg,transparent,#23467940 28%,#18365c80) !important;
      border: 0 !important;
      box-shadow: none !important;
    }
    @media (max-width:760px) {
      html:root body:not(:has(#print-mode:checked)) > :is(nav.nav,header.gw-unified-header) {
        --gw-nav-paint: linear-gradient(90deg,#506982,#354f76 46%,#315381);
        overflow: visible !important;
      }
    }
  }
}
/* Screen surfaces use the two sRGB samples from the homepage reference.
   The first cascade layer owns important paint rules across legacy templates. */
@layer reference-panels {
 @media screen {
  body:not(:has(#print-mode:checked)) {
    --reference-panel: linear-gradient(90deg, #192d53, #3e6297);
    --reference-edge: #8bb5e5;
    --gwf-card: var(--reference-panel);
    --surface-fill: var(--reference-panel);
    --surface-mask: none;
  }
  body:not(:has(#print-mode:checked)) :is(
    .commercial-desktop,.gwc-card,.gwc-terms,.service-summary,.service-card,.compare-card,.guide-card,
    .compare-plan,.compare-table,.journey-list > li,.domain-list > li,.work-steps > li,.artifact,.tier,
    .journey-card,.sys-node,.bench,.pv,.pv-side,.xf-card,.cvc-item,.tier-commit,.home-guide-card,
    .journey-loop,.tl-metric,.gw-discovery-panel,.service-credit,.offer-comparison-tier,.gw-method-copy,
    .card,.panel,.empty,.notice,.eg-context,.eg-executive-brief,.eg-risk-card,.eg-priority-card,
    .eg-next-panel,.offering-card,.gtm-card,.evaluation-card,.eg-saved-card,.eg-product-card,.eg-next-step,
    .report-section,.eg-report-section,.report-panel,.metric-card,.summary-card,.eg-question-shell,
    .report-qualification,.report-feedback,.eg-recorded-answer,.item-block,.gw-receipt,.gw-policy-document,
    .timeline,.tl-row,.timeline-entry,.history-entry,.eg-history-card,#report-approval,.person,.faq-item,.modal-card,
    .system-panel,.information-body,.offer-comparison-grid,.eg-secondary-navigation,.eg-report-hero,
    .eg-section-heading,.page-head,.gw-result-heading,.gw-method-button,.gw-inline-film,.gw-inline-card,
    .intro-strip,.boardroom-switch,.eg-question-shell .choice,fieldset,.service-hero > .container,
    .eg-professional-edition main > section,.gw-home main > .section > .container,.gw-home main > .final > .container) {
    background: var(--reference-panel) !important;
    border: 1px solid var(--reference-edge) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: white !important;
    &::before { background: none !important; box-shadow: none !important; mask-image: none !important; }
    :where(h1,h2,h3,h4,h5,h6,p,li,td,th,dt,dd,small,strong,b,em,label,legend,caption,div,span,a,summary,figcaption,blockquote) {
      color: white !important;
    }
    :is(.btn,.glass-button,.service-link,button,summary,.chip,.domain-chip,.tag,.pv-chip,.dev-flag,.eg-priority-order,.badge) {
      background: #233e69 !important;
      color: white !important;
    }
    :is(.score-ring,[class*="score-ring"],[class*="gauge-center"],.eg-score-dial) :is(span,strong,small,div) { color: #152d50 !important; }
    :is(input,select,textarea,option) { color: #152d50 !important; }
    .choice:has(input:checked) { outline: 2px solid #c5e3ff; }
    :focus-visible { outline: 3px solid #c5e3ff !important; outline-offset: 2px; }
  }
  body:not(:has(#print-mode:checked)) .eg-report-company { color: #fff !important; }
  body:is(.eg-app,.eg-professional-edition):not(:has(#print-mode:checked)) main details > summary { background: var(--reference-panel) !important; color: #fff !important; border: 1px solid var(--reference-edge) !important; border-radius: 12px !important; box-shadow: none !important; }
  body:not(:has(#print-mode:checked)) :is(.service-grid,.eg-offerings,.commercial-desktop .gwc-table) { background: transparent !important; box-shadow:none !important; }
  body:not(:has(#print-mode:checked)) :is(.service-grid,.eg-offerings,main)::before { content:none !important; }
  body:not(:has(#print-mode:checked)) > :is(nav.nav,header.gw-unified-header,header.gw-document-header),
  body.eg-professional-edition:not(:has(#print-mode:checked)) > header {
    overflow:visible !important; border:0 !important; box-shadow:none !important;
    &::before {
      content:"" !important; display:block !important; position:absolute !important;
      inset:100% 0 auto !important; height:32px !important; pointer-events:none;
      background:var(--gw-nav-paint) !important;
      mask-image:linear-gradient(180deg,#000,transparent) !important;
    }
  }
 }
}

@layer preview {
  @media screen {
    body details > summary { position: relative !important; list-style: none !important; padding-inline-end: 2.9rem !important; }
    body details > summary::-webkit-details-marker { display: none !important; }
    body details > summary::marker { content: "" !important; }
    body details > summary::after, body #toggleBooking > span[aria-hidden], body .gw-header-menu-toggle::after {
      content: "" !important; display: inline-block !important; box-sizing: border-box !important;
      width: 1.5rem !important; height: 1.5rem !important; padding: 0 !important; border: 0 !important;
      border-radius: .45rem !important; font-size: 0 !important;
      background: #193553 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .95rem no-repeat !important;
      transition: transform .15s ease, rotate .15s ease !important; vertical-align: middle !important;
    }
    body details > summary::after { position: absolute !important; inset: 50% .65rem auto auto !important; transform: translateY(-50%) !important; transform-origin: center !important; }
    body details[open] > summary::after { transform: translateY(-50%) rotate(180deg) !important; transform-origin: center !important; }
    body .gw-header-menu-toggle[aria-expanded=true]::after, body #toggleBooking[aria-expanded=true] > span[aria-hidden] { rotate: 180deg !important; }
    body summary .gw-stage-more { display:none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    body details > summary::after, body .gw-header-menu-toggle::after, body #toggleBooking > span[aria-hidden] { transition:none !important; }
  }
}
@layer preview {
  body a.gw-guide-home { left:24px !important; right:auto !important; }
  body a.gw-guide-home[hidden] { display:none !important; }
  @media (max-width:640px) { body a.gw-guide-home { left:16px !important; } }
}
