/* Right Choice Recovery v1-rebuild chrome: header, mega menu, drawer, footer (bn-9-22 Step 2.2).
   From the library header/footer as rewritten in the approved Layout 1 sample, on site/tokens.css. */

/* utility bar (V2 brand system s.5 styling from home-v5; moved into the shared chrome 2026-11-19, live-site wording
   per operator). Navy, above the sticky header, scrolls away. Uses the page's body font: Jost on V5 pages, Atkinson
   on V4 pages. Under 1100px the two sentences stack; phone (<=760px) drops the links, centres two short lines and
   gives the number a 44px tap target. */
.ubar{background:var(--navy);color:#fff;font:500 14px/1 var(--body)}
.ubar .ubar-in{max-width:calc(1360px + 2*var(--gutter));margin:0 auto;padding:0 var(--gutter);min-height:40px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.ubar p{margin:0}
.ubar a{color:#fff;text-decoration:none}
.ubar a:hover{text-decoration:underline;text-underline-offset:3px}
.ubar a:focus-visible{outline:2px solid var(--teal-light);outline-offset:2px;border-radius:2px}
.ubar .u-l{display:flex;align-items:center;gap:10px;font-weight:600}
.ubar .dot{width:8px;height:8px;border-radius:50%;background:var(--teal-light);flex:none}
.ubar .u-c{opacity:.9;white-space:nowrap}
.ubar .u-ph{font-weight:600;opacity:1}
.ubar .u-r{justify-self:end;display:flex;gap:22px;white-space:nowrap}
.ubar .u-r a:last-child{color:var(--teal-light);font-weight:600}
@media (max-width:1100px){.ubar .u-l{display:none}.ubar .ubar-in{grid-template-columns:1fr auto}.ubar .u-c{justify-self:start}}
@media (max-width:760px){.ubar .ubar-in{grid-template-columns:1fr;justify-items:center;min-height:44px}.ubar .u-r{display:none}.ubar .u-c{justify-self:center;font-size:13px}.ubar .u-ph{display:inline-flex;align-items:center;min-height:44px}}

/* header */
.site-header{position:sticky;top:0;z-index:30;background:var(--white);border-bottom:1px solid var(--line);transition:box-shadow var(--dur-state) var(--ease-state)}
.site-header>.wrap{display:flex;align-items:center;gap:14px;min-height:var(--header-h);max-width:1440px;transition:min-height var(--dur-state) var(--ease-state)}
.site-header.is-condensed{background:var(--warm-white)}
.site-header.is-condensed>.wrap{min-height:var(--header-h-condensed)}
.logo{flex:none;display:block;border-radius:var(--r-btn)}
.logo img{height:64px;width:97px;max-width:none;transition:height var(--dur-state) var(--ease-state),width var(--dur-state) var(--ease-state)}
.site-header.is-condensed .logo img{height:48px;width:73px}
.nav{display:flex;margin-left:auto}
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:0;align-items:center}
.nav-top{display:inline-flex;align-items:center;gap:4px;font:600 16px/1.2 var(--body);color:var(--navy);text-decoration:none;padding:10px 6px;min-height:44px;border-radius:var(--r-btn);white-space:nowrap;background:none;border:0;cursor:pointer}
.nav-top svg{flex:none;width:10px;height:10px;transition:transform var(--dur-state) var(--ease-state)}
.nav-top:hover,.nav-top[aria-expanded="true"]{background:var(--warm-gray-light)}
.nav-top[aria-expanded="true"] svg{transform:rotate(180deg)}
.has-menu{position:static}
.header-actions{display:flex;gap:10px;flex:none}
.menu-btn{display:none;width:48px;height:48px;border-radius:var(--r-btn);border:1.5px solid var(--navy);background:var(--white);color:var(--navy);align-items:center;justify-content:center;cursor:pointer;flex:none}
.menu-btn .i-close,.menu-btn[aria-expanded="true"] .i-open{display:none}
.menu-btn[aria-expanded="true"] .i-close{display:block}
/* The full nav (eight items + Contact + Call) needs about 1340px inside the header. The header wrap tops out at 1440
   (1344 inside), so item spacing above is set to fit; 1360-1439 also drops the header gutter to 24px and tightens the
   buttons, never the type. Below 1360 the drawer takes over. */
@media (min-width:1360px) and (max-width:1439px){
  .site-header>.wrap{gap:12px;padding:0 24px}
  .header-actions{gap:8px}
  .header-actions .btn{padding:0 16px}
}

/* mega panel */
.mega{position:absolute;left:0;right:0;top:100%;background:var(--warm-gray-light)}
.mega[hidden]{display:none}
.mega-inner{max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto;padding:28px var(--gutter) 32px;display:flex;gap:56px}
.mcol{min-width:200px}
.mhead{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:10px}
.mcol ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mcol a{display:block;padding:8px 10px;margin:0 -10px;border-radius:var(--r-btn);text-decoration:none;font-weight:600}
.mcol a:hover{color:var(--plum-hover);text-decoration:underline;text-underline-offset:4px}

/* drawer (below 1360px) */
.drawer{border-top:1px solid var(--line);background:var(--white);max-height:calc(100dvh - var(--header-h));overflow:auto;overscroll-behavior:contain}
.drawer[hidden]{display:none}
.drawer>.wrap>ul{list-style:none;margin:0;padding:8px 0}
.drawer li{border-bottom:1px solid var(--line)}
.drawer summary,.drawer .d-top{display:flex;justify-content:space-between;align-items:center;min-height:52px;font-weight:600;cursor:pointer;text-decoration:none;list-style:none}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary::after{content:"+";font-size:24px;line-height:24px;height:24px;width:24px;text-align:center;color:var(--plum)}
.drawer details[open] summary::after{content:"\2013"}
.drawer details ul{list-style:none;margin:0 0 12px;padding:0 0 0 12px}
.drawer details li{border:0}
.drawer details a{display:flex;align-items:center;min-height:44px;text-decoration:none}
.drawer .mhead{margin:10px 0 2px 12px}
.drawer .ctas{padding:16px 0 20px}
.drawer .ctas .btn{flex:1 1 200px}

@media (max-width:1359px){
  .nav{display:none}
  .header-actions{margin-left:auto}
  .menu-btn{display:inline-flex}
}
@media (min-width:1360px){ .drawer{display:none!important} }
@media (max-width:760px){
  .site-header>.wrap{gap:10px}
  .logo img{height:48px;width:73px}
  .site-header.is-condensed .logo img{height:42px;width:64px}
  .header-actions .btn-outline{display:none}
  .header-actions .btn-call{padding:0 16px}
  .header-actions .btn-call .num{display:none}
}
@media (max-width:359px){ .header-actions .btn-call{padding:0 12px;gap:6px} }

/* footer (chrome dark surface: navy_ink) */
.site-footer{background:var(--navy);color:#fff;padding:72px 0 28px}
.site-footer .cols{display:grid;grid-template-columns:1.25fr 1fr 1fr 1.2fr .9fr;gap:32px}
.site-footer .fhead{font-family:var(--display);font-weight:600;font-size:18px;line-height:1.3;letter-spacing:-0.01em;margin:0 0 14px}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:15px}
.site-footer ul a{display:inline-flex;align-items:center;min-height:32px}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline;text-underline-offset:3px;color:var(--plum-light)}
.site-footer .brand-col p{font-size:15px;margin-top:14px;max-width:34ch}
.site-footer .logo-tile{display:inline-block;background:var(--white);border-radius:var(--r-human);padding:10px 14px}
.site-footer .logo-tile img{height:56px;width:85px}
.site-footer .seals{display:flex;gap:12px;align-items:center;margin-top:14px}
/* the white tile is the link, so the Joint Commission seal can be scaled to its optical size inside it (tokens.css note) */
.site-footer .seals a{display:inline-flex;background:var(--white);border-radius:var(--r-btn);padding:4px;overflow:hidden}
.site-footer .seals img{height:56px;width:auto}
.site-footer .seals img[src$="joint-commission-logo.svg"]{transform:scale(1.47)}
.site-footer .socials{list-style:none;display:flex;gap:10px;margin-top:16px;padding:0}
.site-footer .socials a{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #fff;border-radius:50%;color:#fff}
.site-footer .socials a:hover{background:var(--white);color:var(--navy)}
.site-footer .communities{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:40px}
.site-footer .communities .small{color:#fff;margin-right:6px}
.site-footer .communities img{height:48px;width:48px;background:var(--white);border-radius:50%;padding:4px}
.site-footer .legal{display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:space-between;margin-top:48px;padding-top:22px;border-top:1px solid var(--line-on-dark);font-size:14px}
.site-footer .legal nav{display:flex;flex-wrap:wrap;gap:4px 18px}
.site-footer .legal a{display:inline-flex;align-items:center;min-height:32px}
.site-footer :focus-visible{outline-color:var(--plum-light)}
/* <=1100: the brand block becomes one full-width row, the four link lists sit under it (4 columns, then 2) */
@media (max-width:1100px){
  .site-footer .cols{grid-template-columns:repeat(4,1fr);row-gap:48px}
  .site-footer .brand-col{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:40px;align-items:start}
  .site-footer .brand-col>.logo-tile{grid-row:1/span 2}
  .site-footer .brand-col>p{grid-column:2;margin-top:0}
  .site-footer .brand-col>p+p{margin-top:10px}
  .site-footer .brand-col>.seals{grid-column:3;grid-row:1;margin-top:0}
  .site-footer .brand-col>.socials{grid-column:3;grid-row:2;margin-top:12px}
}
@media (max-width:900px){ .site-footer .cols{grid-template-columns:1fr 1fr} }
@media (max-width:760px){
  .site-footer{padding-top:56px}
  .site-footer .brand-col{display:block}
  .site-footer .brand-col>p{margin-top:14px}
  .site-footer .brand-col>.seals{margin-top:14px}
  .site-footer .brand-col>.socials{margin-top:16px}
  .site-footer .cols{column-gap:20px;row-gap:40px}
  .site-footer ul{gap:0}
  .site-footer ul a,.site-footer .legal a{min-height:44px}
  .site-footer .cols ul a{display:flex}  /* the whole column width is the target, not just the word */
  .site-footer ul a{padding:6px 0;line-height:1.35} /* wrapped two-line items keep a visible gap */
  .site-footer .brand-col a[href^="tel:"]{display:inline-flex;align-items:center;min-height:44px}
  .site-footer .legal{margin-top:36px}
}

/* collapsed panels: hidden from first paint once the head script sets .js (pages add
   <script>document.documentElement.classList.add('js')</script> in <head>); chrome.js then sets hidden */
html.js [data-collapsed]{display:none}
[hidden]{display:none!important}

/* ---- shared forms (site/form-verify*.html, site/popup-contact.html); operator U9.5-forms 2026-11-10 ----
   Practical role: teal_ultra_light fill, 6px corners; inputs white with a 1px navy_ink border (brand-system: never a
   warm_gray_line input border). */
.vform-wrap{background:var(--teal-ultra-light);border-radius:var(--r-practical);padding:clamp(20px,2.4vw,28px)}
.vform-title{font-family:var(--display);font-weight:600;font-size:24px;line-height:1.2;letter-spacing:-0.01em;margin:0;text-wrap:balance}
.vform-sub{font-size:var(--small);margin-top:4px}
.vform .hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.vgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px;align-items:end}
.vgrid--one{grid-template-columns:1fr}
.vform .form-field_label,.vform legend{display:block;font-size:14px;font-weight:600;margin:0 0 4px;padding:0}
.vform .req{font-weight:400;color:var(--muted)}
.vform input,.vform select{width:100%;min-width:0;font:400 16px/1.2 var(--body);min-height:48px;border:1px solid var(--navy);border-radius:var(--r-btn);padding:0 12px;background:var(--white);color:var(--navy)}
.vform input:focus-visible,.vform select:focus-visible{outline:3px solid var(--plum);outline-offset:1px}
.vform fieldset{border:0;margin:0;padding:0;min-width:0}
.vform .full{grid-column:1/-1}
.vform .dob{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px}
.vform .dob label{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.vform-submit{width:100%;margin-top:16px}
.vform-secure{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:10px;font-size:14px;color:var(--muted)}
.vform-status{margin-top:10px;font-weight:600}
@media (max-width:520px){ .vgrid{grid-template-columns:1fr} }
/* Hero variant (every in-page copy of gform_25/26 sits in a hero; the pop-up keeps the roomier spacing above).
   SITE_CONSISTENCY pass 2: at 1440x900 the 630px card set the hero height on most pages and pushed the proof row under
   the fold. Same fields, order, 48px inputs and 16px text; only the spacing between them is tighter: label and caption
   line-height, row gaps and card padding. */
main .vform-wrap{padding:clamp(20px,2vw,24px)}
main .vform-sub{line-height:1.4}
main .vgrid{row-gap:10px;margin-top:12px}
main .vform .form-field_label,main .vform legend{line-height:1.3;margin-bottom:3px}
main .vform .dob label{margin-top:2px;line-height:1.3}
main .vform-submit{margin-top:14px}
main .vform-secure{margin-top:8px;line-height:1.4}

/* pop-up (gform_23) */
.rc-popup{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px}
.rc-popup[hidden]{display:none}
.rc-popup-backdrop{position:absolute;inset:0;background:var(--navy);opacity:.6}
.rc-popup-card{position:relative;width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--white);border-radius:var(--r-held-top) var(--r-held-top) var(--r-held-bottom) var(--r-held-bottom)}
.rc-popup-card .vform-wrap{background:var(--white)}
.rc-popup-x{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--navy);border-radius:var(--r-btn);cursor:pointer;z-index:1}
.rc-popup-x:hover{background:var(--warm-gray-light)}
body.popup-open{overflow:hidden}
.rc-popup-card .vform-title{padding-right:44px}

/* Map facade (client feedback 2026-12-03): fills the map's box until the visitor loads the map; site/chrome.js swaps it
   for the iframe. Same box as the iframe it stands in for (the page's own map wrapper sets the size). */
.map-gate{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:300px;padding:24px;background:var(--teal-ultra-light);color:var(--navy);text-align:center;font:400 var(--small)/1.45 var(--body)}
.map-gate svg{width:32px;height:32px;color:var(--plum)}
.map-gate p{margin:0;max-width:30ch}
.map-gate .map-gate-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:var(--r-btn);border:1.5px solid var(--navy);background:var(--white);color:var(--navy);font:600 var(--label)/1.2 var(--body);cursor:pointer}
.map-gate .map-gate-btn:hover{background:var(--navy);color:#fff}
.map-gate .map-gate-link{color:var(--plum);font-weight:600;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}
