/* inner.css (2026-11-12): one style for every page.
   The disease, university, A–Z, about, privacy, terms, shortlist, 404 and map pages are still drawn by ui.css. Loaded after it,
   this file gives them the hospital and city pages' look (city.css, hosp.css, home.css): white page, Newsreader headings,
   ink and link colours, hairlines instead of navy bands and shadowed panels, the same page bar (search + breadcrumb) and width.
   It only re-maps ui.css tokens and overrides surfaces; it changes no content. Colour values are home.css's. */

/* page and width: the same 1296px column and gutter as the header, hospital and city pages */
body.cv, body.inst, body.doc, body.hxp { background: var(--page); color: var(--ink); }
main.wrap { max-width: 1296px; padding-left: var(--gut); padding-right: var(--gut); }
:where(main) a:not([class]) { color: var(--link); }

/* page bar: search + breadcrumb, as on hospital and city pages (home.css .pbar, city.css .crumb) */
.pbar { border-bottom: var(--bw) solid var(--hair); background: var(--page); }
.pbar-in { max-width: 1296px; margin: 0 auto; padding: var(--s-4) var(--gut); display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.pbar .sf { position: relative; flex: 0 1 480px; max-width: 560px; }
.pbar .sf-row { display: flex; }
.pbar .sf-in { position: relative; flex: 1; display: flex; align-items: center; border: var(--bw-2) solid var(--ink); border-right: 0; background: var(--page); border-radius: var(--r-m) 0 0 var(--r-m);  }
.pbar .sf-in svg { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--ink-2); pointer-events: none; }
.pbar .sf input { width: 100%; height: 42px; border: 0; padding: 0 var(--s-3) 0 var(--s-9); font: inherit; font-size: var(--fs-body); background: transparent; color: var(--ink); border-radius: 0; box-shadow: none; }
.pbar .sf input:focus { outline: none; }
.pbar .sf-in:focus-within { box-shadow: inset 0 0 0 1px var(--link); border-color: var(--link); }
.pbar .sf button[type=submit] { height: 46px; padding: 0 var(--s-5); border: 0; background: var(--ink); color: var(--page); font-weight: 700; font-size: var(--fs-body); cursor: pointer; border-radius: 0 var(--r-m) var(--r-m) 0; }
.pbar ul.results { z-index: 45; border: var(--bw-2) solid var(--ink); border-radius: var(--r-m); padding: 0; }
.pbar ul.results li a { border-radius: 0; border-bottom: var(--bw) solid var(--hair); }
.pbar ul.results li a[aria-selected="true"], .pbar ul.results li a:hover { background: var(--hl-soft); }
.pbar ul.results b { color: var(--link); }
.pbar .crumb { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: var(--fs-meta); color: var(--ink-2); }
.pbar .crumb a { color: var(--link); }
.pbar .crumb > span[aria-current] { color: var(--ink-2); }
.pbar .crumb svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 759px) { .pbar .crumb { display: none; } .pbar .sf { flex: 1 1 100%; } }

/* headings: Newsreader, regular weight, as on hospital and city pages */
main h1, main h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
:lang(zh) main h1, :lang(zh) main h2 { font-weight: 600; letter-spacing: 0; }
.chero h1, .ihero h1, .doc .ihero h1, .inst .ihero h1, .chero.band h1 { font: 500 var(--fs-hero)/var(--lh-tight) var(--display); letter-spacing: -.5px; color: var(--ink); max-width: 20em; }
:lang(zh) .chero h1, :lang(zh) .ihero h1, :lang(zh) .doc .ihero h1, :lang(zh) .inst .ihero h1, :lang(zh) .chero.band h1 { font-weight: 600; letter-spacing: 0; line-height: var(--lh-head); }
.chero h1 .zh, .chero.band h1 .zh, .ihero .zh.big, .inst .ihero .zh.big { font-family: var(--display); color: var(--ink-2); font-weight: 400; }
.cv .patient h2, .cv .keystudies h2, .cv .nextsteps h2, .inst .cond h2, .inst .contact h2, .inst .nextsteps h2, .home .azh, .lh, .overview h2, .azh,
.cv .explore h2, .cv main h2, .doc .acc > details > summary { font-family: var(--display); font-weight: 500; font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: -.3px; }
:lang(zh) .cv main h2, :lang(zh) .inst .cond h2, :lang(zh) .azh, :lang(zh) .doc .acc > details > summary { font-weight: 600; letter-spacing: 0; }
.doc .acc > details > summary { font-size: var(--fs-h3); }

/* heroes: no navy band; white with a hairline below, like the hospital page hero */
.band, .chero.band, .doc .ihero, .inst .ihero { background: none; border-image: none; color: var(--ink); }
.chero.band, .doc .ihero, .inst .ihero { padding: var(--s-9) 0 var(--s-8); margin: 0 0 var(--s-2); border-bottom: var(--bw) solid var(--hair); }
.chero.band .lede, .doc .ihero .lede { color: var(--ink-2); font-size: var(--fs-lede); line-height: var(--lh-body); max-width: 36em; }
.inst main > .crumbs, .cv .crumbs { border-image: none; }
.doc .ihero .three div, .doc .ihero .three div:first-child { border-top: var(--bw-2) solid var(--ink); }
.doc .ihero .filterbox input { border: var(--bw) solid var(--ink); border-radius: var(--r-m); }
.doc .ihero .warnbox { color: var(--warn) !important; background: var(--hl-soft); }

/* sections: no shadowed white panels on grey; open sections divided by hairlines (hospital and city pages) */
.panel, .cv .explore .ex-list, .cv .patient, .cv .keystudies, .cv .nextsteps, .inst .cond, .inst .contact, .inst .nextsteps, .doc .acc > details {
  background: none; box-shadow: none; border: 0; border-radius: 0; border-top: var(--bw) solid var(--hair); padding-left: 0; padding-right: 0;
}
@media (min-width: 760px) {
  .panel, .cv .explore .ex-list, .cv .patient, .cv .keystudies, .cv .nextsteps, .inst .cond, .inst .contact, .inst .nextsteps, .doc .acc > details { padding-left: 0; padding-right: 0; }
}
.inst .cond > header { background: none; color: var(--ink); border-radius: 0; padding-left: 0; padding-right: 0; }
.inst .cond > header a, .inst .cond > header h2 { color: var(--ink); }
.inst .cond > header .zh { color: var(--ink-2); }

/* buttons: ink fill or hairline outline, 8px corners */
main .btn { border-radius: var(--r-m); }
main .btn.pri { background: var(--ink); color: var(--page); border-color: var(--ink); }

/* prose width on reference pages */
.doc .acc p, .doc .acc li, .doc .defs dd { max-width: 46em; }

/* numbers and links that were tuned for the navy band */
.wfig b, .ch-stats b { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.ch-stats { border-top-color: var(--hair); }
.ch-stats li.recd b { color: var(--rec); }
.waffle.wb .on { fill: var(--link); }
.doc .ihero a, .doc .ihero .linkrow a, .chero.band .defsrc a, .ch-stats .note a { color: var(--link); }
.svccta { background: none; color: var(--ink); border: var(--bw) solid var(--hair); border-radius: var(--r-m); }
.svccta span { color: var(--ink); }

/* university pages: the disease header was a navy strip bled to the panel edges; now a plain heading on the hairline */
.inst .cond { margin-top: 0; padding-top: var(--s-8); padding-bottom: var(--s-8); }
.inst .cond > header, .inst .cond > header { margin: 0 0 var(--s-6); padding: 0; }
@media (min-width: 760px) { .inst .cond > header { margin: 0 0 var(--s-6); padding: 0; } }
.inst .cond > header h2 a { color: var(--ink); text-decoration: none; } .inst .cond > header h2 a:hover { color: var(--link); text-decoration: underline; }

/* map page: its own workspace and colours stay; only the headings take the shared serif */
.hx h1 { font: 500 var(--fs-h2)/var(--lh-tight) var(--display); letter-spacing: -.3px; }
.hx-view h2 { font: 500 var(--fs-h3)/var(--lh-head) var(--display); letter-spacing: -.2px; }
:lang(zh) .hx h1, :lang(zh) .hx-view h2 { font-weight: 600; letter-spacing: 0; }
