/* Gridward shared homepage shell. Only decorative layers fade; text and inputs do not. */
:is(body.gw-home,body.service-page,body.eg-app){
 --gw-page-background:linear-gradient(90deg,#eeefed,#e0e0e0 49%,#cdcdcd);
 --gw-shell-ink:#1c2934;--gw-shell-muted:#273b4b;
 background:var(--gw-page-background);color:var(--gw-shell-ink);
}
/* Align public Login with the actual homepage text navigation. */
:is(body.gw-home,body.service-page) .nav :is(.nav-inner,.nav-links,.nav-actions){align-items:center}
:is(body.gw-home,body.service-page) .nav .gw-login-nav{
 display:block;min-height:44px;
 padding:10px 2px;line-height:1.4;vertical-align:middle;align-self:center;
}
:is(body.gw-home,body.service-page) .nav{
 border-bottom:0!important;box-shadow:none!important;background:var(--gw-page-background)!important;
}
/* One application header across generic, focused evaluation, account and owner shells. */
body.eg-app .gw-unified-header{
 display:flex!important;align-items:center!important;justify-content:flex-end;flex-wrap:wrap;
 gap:12px 22px;padding:16px max(24px,calc((100vw - 1440px)/2));margin:0;
 min-height:88px;max-width:100%;box-sizing:border-box;
 background:var(--gw-page-background)!important;border:0!important;box-shadow:none!important;
 position:relative;top:auto;z-index:20;
}
body.eg-app .gw-unified-header .wordmark{
 display:flex;align-items:center;flex:0 0 auto;margin-right:auto;padding:0;min-height:44px;
 background:none!important;border:0!important;box-shadow:none!important;max-width:13rem;
}
body.eg-app .gw-unified-header .gridward-brand-image{display:block;width:13rem;max-width:100%;height:auto}
body.eg-app .gw-header-menu{margin:0 0 0 auto;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-width:0;max-width:100%;flex:0 1 auto}
body.eg-app .gw-header-menu>.gw-header-menu-toggle{display:none}
body.eg-app .gw-header-menu>.rail{
 display:flex!important;flex-wrap:wrap;justify-content:flex-end;align-items:center;
 gap:4px 14px;margin:0;padding:0;overflow:visible;max-width:100%;
}
body.eg-app .gw-unified-header .rail .rail-link,
body.eg-app .gw-unified-header .rail .rail-link.is-current{
 display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;
 min-height:44px;padding:10px 2px;margin:0;font-size:.8125rem;line-height:1.4;
 font-weight:700;color:#273b4b!important;background:none!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;
 white-space:normal;overflow-wrap:anywhere;text-decoration:none;
 transition:transform 160ms ease,box-shadow 160ms ease,filter 160ms ease,background-color 160ms ease;
}
body.eg-app .gw-unified-header .rail .rail-link[aria-current=page]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em}
body.eg-app .gw-unified-header .masthead-tail{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;min-width:0;max-width:100%;margin:0}
body.eg-app .gw-unified-header .who{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
body.eg-app .gw-unified-header .who-org{font-size:.8125rem;line-height:1.4;color:#273b4b;max-width:14rem;overflow-wrap:anywhere}
body.eg-app .gw-unified-header .avatar{flex:0 0 auto}
body.eg-app .gw-unified-header .logout{display:block;margin:0}
body.eg-app .gw-unified-header .logout button{min-height:44px;margin:0;padding:10px 14px;font-size:.8125rem;line-height:1.4}
/* Every shell uses the homepage page surface. Leave status colors and controls intact. */
body.eg-app :is(main.page,main.free-main,main#main){background:transparent!important;border:0;box-shadow:none;box-sizing:border-box;max-width:100%}
body.eg-app main.page{width:min(100%,1440px);padding:24px 28px 64px;margin-inline:auto}
body.eg-app .eg-report-breadcrumb{background:transparent!important;border:0!important}
body.eg-app :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),
body.service-page :is(.service-card,.compare-card,.guide-card){
 position:relative;isolation:isolate;background:transparent!important;background-image:none!important;
 border-color:transparent!important;border-top-color:transparent!important;box-shadow:none!important;
}
body.eg-app :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)::before,
body.service-page :is(.service-card,.compare-card,.guide-card)::before{
 content:"";position:absolute;inset:-1px;z-index:-1;pointer-events:none;
 border:1px solid #bdbdbd;border-top-color:transparent;border-radius:inherit;
 background:linear-gradient(135deg,#f7f8f4f0,#e8e8e8d9);box-shadow:0 12px 30px #263e5112;
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 96px);
 mask-image:linear-gradient(to bottom,transparent,#000 96px);
}
/* Requested public summary prose stays directly on the background, with no replacement panel. */
body.service-page .service-summary{background:none!important;border:0!important;box-shadow:none!important}
body.service-page .service-summary::before{content:none!important}
/* Focused question shells formerly carried a separate white/blue page surface. */
body.eg-app :is(.eg-evaluation-header,.eg-journey-header,.evaluation-hero,.question-head,.question-header){background:transparent!important;border-top:0!important}
body.eg-app :is(input:not([type=hidden]),select,textarea){border-color:#708b9f;max-width:100%;box-sizing:border-box}
body.eg-app :is(input,select,textarea):focus-visible{outline:3px solid #173f60;outline-offset:3px}
@media(max-width:760px){
 body.eg-app .gw-unified-header{padding:12px 16px;gap:8px 12px;min-height:76px}
 body.eg-app .gw-unified-header .wordmark{max-width:min(12rem,65%)}
 body.eg-app .gw-header-menu{order:2;margin-left:auto;flex:0 1 auto}
 body.eg-app .gw-header-menu>.gw-header-menu-toggle{
  display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;
  color:#273b4b!important;font-size:.875rem;line-height:1.4;background:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;font-weight:700;
 }
 body.eg-app .gw-header-menu>.gw-header-menu-toggle::after{content:" ▾";margin-left:.4em}
 body.eg-app .gw-header-menu[open]>.gw-header-menu-toggle::after{content:" ▴"}
 body.eg-app .gw-header-menu:not([open])>.rail{display:none!important}
 body.eg-app .gw-header-menu[open]{flex-basis:100%}
 body.eg-app .gw-header-menu[open]>.rail{justify-content:flex-end;padding:8px 0;gap:2px 16px}
 body.eg-app .gw-unified-header .masthead-tail{order:3;width:100%;gap:8px;justify-content:space-between}
 body.eg-app .gw-unified-header .who-org{max-width:18rem}
 body.eg-app .gw-unified-header .who .avatar{display:none}
 body.eg-app .gw-header-start{order:3;max-width:100%}
 body.eg-app main.page{padding:16px 16px 48px}
}
@media(prefers-reduced-motion:reduce){
 body.eg-app .gw-unified-header .rail .rail-link{transition:none!important}
 body.eg-app .gw-unified-header .rail .rail-link:is(:hover,:focus-visible,:active){transform:none!important;text-shadow:0 2px 4px #23496738}
}
@media print{
 body.eg-app{background:white!important}
 body.eg-app .gw-unified-header{display:none!important}
 body.eg-app :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)::before{display:none!important}
 body.eg-app main.page{width:100%;padding:0}
}
/* Narrow history/admin/answer tables remain complete records rather than clipped columns. */
@media(max-width:900px){
 body.eg-app table.gw-responsive-table{display:block;width:100%;max-width:100%;min-width:0;table-layout:auto}
 body.eg-app table.gw-responsive-table>thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.eg-app table.gw-responsive-table>tbody{display:block;width:100%;min-width:0}
 body.eg-app table.gw-responsive-table .gw-labelled-row{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;padding:16px 0;border-bottom:1px solid #b9b9b9}
 body.eg-app table.gw-responsive-table .gw-labelled-row>td{display:block;min-width:0!important;width:100%;max-width:100%;padding:8px 0;border:0;white-space:normal;overflow-wrap:anywhere}
 body.eg-app table.gw-responsive-table .gw-labelled-row>td::before{content:attr(data-column-label);display:block;font-size:.8125rem;font-weight:700;color:#273b4b;margin-bottom:4px}
 body.eg-app table.gw-responsive-table .gw-labelled-row>td:empty{display:none}
}
/* Restricted findings use the same enlarged-text behavior as customer reports. */
body.eg-app :is(.finding-head,.chain-entry-head){flex-wrap:wrap;min-width:0}
body.eg-app :is(.finding-head,.chain-entry-head)>*{min-width:0;max-width:100%}
body.eg-app .state{max-width:100%;overflow-wrap:anywhere;flex-wrap:wrap}
body.eg-app .state::before{flex:0 0 6px}
body.eg-app .finding{position:relative;isolation:isolate;background:transparent;border-top-color:transparent;box-shadow:none}
body.eg-app .finding::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:linear-gradient(135deg,#f7f8f4f0,#e8e8e8d9);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 96px);mask-image:linear-gradient(to bottom,transparent,#000 96px)}
body.eg-app .detail-row{grid-template-columns:minmax(0,8.5rem) minmax(0,1fr)}
body.eg-app .detail-row>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){body.eg-app .detail-row{grid-template-columns:minmax(0,1fr);gap:4px}}
@media print{body.eg-app .finding::after{display:none}}
/* Match the approved homepage's actual font stack, retaining original sealed editions. */
body.eg-app{--sans:Inter,ui-sans-serif,-apple-system,system-ui,"Segoe UI",Arial,sans-serif;--serif:Inter,ui-sans-serif,-apple-system,system-ui,"Segoe UI",Arial,sans-serif;font-family:var(--sans)}
body.eg-app :is(h1,h2,h3,h4,h5,h6,legend,.eg-question-title,.eg-question-form,.eg-report-hero,.eg-context h2,button,.btn,input,select,textarea){font-family:var(--sans)}

body.eg-app .chain-entry-state{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* One exact homepage text-navigation interaction, shared by public and app.
   Specificity also defeats the general glass-action hover/focus/current rules.
   Sign out and other glass actions are deliberately outside this selector. */
body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]){
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 text-shadow:0 1px 0 #ffffffb3;transform:none;filter:none;
 transition:transform 160ms ease,box-shadow 160ms ease,filter 160ms ease,background-color 160ms ease!important;
}
body.eg-app .eg-report-breadcrumb a[href]{display:inline-block;max-width:100%;overflow-wrap:anywhere}
body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]):focus-visible{
 outline:3px solid #173f60!important;outline-offset:4px;
 transform:translateY(-1px)!important;filter:drop-shadow(0 3px 3px #23496745);
}
@media(hover:hover) and (pointer:fine){
 body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]):hover:not(:disabled,[aria-disabled="true"]){
  transform:translateY(-1px)!important;filter:drop-shadow(0 3px 3px #23496745);
  color:inherit!important;text-decoration:underline;text-underline-offset:.22em;
 }
}
body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]):active:not(:disabled,[aria-disabled="true"]){
 transform:translateY(1px)!important;filter:drop-shadow(0 1px 1px #23496736);
}
@media(prefers-reduced-motion:reduce){
 body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]){transition:none!important}
 body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]):is(:hover,:focus-visible,:active):not(:disabled,[aria-disabled="true"]){transform:none!important}
}
@media print{
 body.eg-app .eg-report-breadcrumb{display:none!important}
 body:is(.gw-home,.service-page,.eg-app) :is(.nav .nav-links a[href],.nav .gw-login-nav[href],.gw-unified-header .rail a.rail-link[href],.gw-unified-header .gw-header-menu-toggle,.eg-report-breadcrumb a[href]){transform:none!important;filter:none!important}
}

/* Lift the evaluation links by a whole CSS pixel without resampling the label.
   Animate the painted shadow and keep the shared focus outline. */
:is(body.gw-home #offers .service-link,body.eg-app .eg-product-grid a.btn){
 position:relative;top:0;
 transform:none!important;filter:none!important;
 backdrop-filter:none;-webkit-backdrop-filter:none;
 transition:box-shadow 160ms ease,border-color 160ms ease,background-color 160ms ease!important;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 :is(body.gw-home #offers .service-link,body.eg-app .eg-product-grid a.btn):hover:not(:active){top:-1px}
}
@media (prefers-reduced-motion:no-preference){
 :is(body.gw-home #offers .service-link,body.eg-app .eg-product-grid a.btn):active{top:1px}
}
@media (prefers-reduced-motion:reduce){
 :is(body.gw-home #offers .service-link,body.eg-app .eg-product-grid a.btn){transition:none!important}
}
@media print{
 :is(body.gw-home #offers .service-link,body.eg-app .eg-product-grid a.btn):is(:hover,:active){top:0}
}

/* Wrap the family controls as a row instead of breaking the Readiness label. */
.eg-app .eg-context .eg-family-links{min-inline-size:0}
.eg-app .eg-context .eg-family-links a{
 flex:1 0 auto;white-space:nowrap;overflow-wrap:normal;word-break:normal;
}
