/* Innowave Studio: the integration layer between the kit CSS (fonts, tokens, base and components: verbatim
   copies of design-kit/css) and the site's own rules. Load last. Every rule exists for one of three reasons:
   a live link or text must stay exactly as it is (design-kit/seo/parity_check.py), a build gate needs a
   structure (G27 catalog figures, G29 the citation band), or the kit's markup meets the site's markup.
   It adds no colour, size or motion that the design guide does not already define. */

/* ---- headlines are one colour, whole (DESIGN-GUIDE 3.1, 2.3 and 3.3; owner 2026-11-26): a mark inside a
   title or heading (live content keeps its <strong>, <em> or link) takes the heading's weight, upright
   style and colour, with no fill or underline; a link in a heading shows its underline on hover and focus */
:is(h1,h2,h3,h4,h5,h6) :is(em,i,strong,b,mark,u,a,.hl){font-style:normal;font-weight:inherit;color:inherit;background:none;text-decoration:none}
:is(h1,h2,h3,h4,h5,h6) a:is(:hover,:focus-visible){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* ---- arrows: the glyph is drawn here, so it never becomes part of a link's text */
.ag::before,.btn .ar::before{content:"\2192"}
.pq cite a .ag{margin-left:.35em}

/* ---- figure numbers: "Fig. 001 / " before a caption whose text must stay the catalog caption (G27) */
[data-fig]::before{content:attr(data-fig) " / "}

/* ---- Fig. 001: the catalog figure; the grid reference and the view control sit beside its caption */
.hero .fig{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:baseline}
.hero .fig .frame{grid-column:1/-1}
.hero .fig .figcap{grid-column:1;grid-row:2;display:block}
.hero .fig .figctl{grid-column:2;grid-row:2;display:flex;gap:16px;align-items:center;padding:14px 0 0;color:var(--ink-2)}

/* ---- the citation band: the seven outlets sit in one marked group (G29); logo files keep their alt */
.cited-o{display:contents}
.cited .o img{display:inline-block;height:15px;width:auto;vertical-align:middle}

/* ---- Sheet 101, services index: the title is the link; it covers the row */
.idx li{position:relative;display:grid;grid-template-columns:1fr;gap:6px 24px;padding:28px 0;align-items:start;transition:padding .5s var(--ease),background .4s}
.idx li:hover,.idx li:focus-within{padding-left:18px;padding-right:18px;background:var(--paper-2)}
.idx li>a.h3t,.idx li>a.h3t:hover{display:block;padding:0;background:none}
.idx li>a.h3t::after{content:"";position:absolute;inset:0}
.idx li:hover .h3t .ga,.idx li:focus-within .h3t .ga{opacity:1;transform:none}

/* ---- Sheet 201, asset grid: the 3:2 crop is on the picture, so the caption reads under the photo (6.9);
   the title link covers the card */
.acard{position:relative}
.acard figure.cimg{aspect-ratio:auto;overflow:visible;background:none}
.acard figure.cimg picture{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--paper-2)}
.acard .t::before{content:"";position:absolute;inset:0}

/* ---- Fig. 301: the band photo is a catalog figure; its caption row keeps the reference's two columns */
.bfig{margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,calc(var(--max) - 2 * var(--pad))) minmax(0,1fr);column-gap:var(--pad)}
.bfig .bleed{grid-column:1/-1;grid-row:1}
.bleed picture{position:absolute;inset:0;display:block}
.bfig .bcap-l,.bfig .bcap-r{grid-column:2;grid-row:2;padding-top:14px;color:var(--muted-lake)}
.bfig .bcap-l{width:20ch}
.bfig .bcap-r{padding-left:calc(20ch + 24px)}

/* ---- Sheet 401, featured cases: the counter follows the text and takes the kicker row's right end */
.caselist li{position:relative}
.caselist .cnt{position:absolute;right:0;top:20px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.caselist li.on .cnt{right:0}

/* ---- Sheet 401, case index: kicker, title and note stay in reading order; the kicker shows with the note */
.cidx .row .n{grid-column:1;grid-row:1}
.cidx .row a.t{grid-column:2;grid-row:1}
.cidx .row .loc{grid-column:3;grid-row:1}
.cidx .row .x{grid-column:4;grid-row:1}
.cidx .row .ck{display:none;grid-column:2/-1;grid-row:2;color:var(--ink-2);padding-top:6px}
.cidx li.open .row .ck{display:block}
.cidx .row p{grid-column:2/-1;grid-row:3;padding-left:0;margin:6px 0 4px}

/* ---- Sheet 701, guides: the number sits beside the link; the link covers the row */
.glist li{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;border-bottom:1px solid var(--rule)}
.glist li .n{color:var(--ink-2);padding-top:16px}
.glist li>a{grid-template-columns:minmax(0,1fr) 20px;border-bottom:0}
.glist li>a::after{content:"";position:absolute;inset:0}
.glist li:hover>a{color:var(--accent)}
.glist li:hover .a,.glist li:focus-within .a{opacity:1;transform:none}

/* ---- Fig. 851: the portrait's picture fills its frame */
.vfig .ph picture{display:block;height:100%}

/* ---- header: between 1101 and 1240 px the nine nav items and the button do not fit at 15 px with
   22 px gaps (the row overflowed); nothing wraps (6.1), so the row tightens there */
@media (min-width:1101px) and (max-width:1240px){
  .top .wrap{gap:18px}
  .nav{gap:15px;font-size:14px}
  .nav .btn.sm{padding:0 12px}
}
/* the open Site plans menu stays inside the viewport; on a short screen it scrolls inside its box */
.mega{max-height:calc(100vh - 80px);overflow:auto}

/* ---- touch targets of 44 px (gate G24) with the drawn circles unchanged */
.nav-mobile summary{padding-top:13px;padding-bottom:13px}
.cidx .row{grid-template-columns:34px minmax(0,1fr) auto 44px;padding:3px 0}
.cidx .x,.cidx .x:hover,.cidx li.open .x{width:44px;height:44px;border:0;background:none;position:relative}
.cidx .x::before{content:"";position:absolute;inset:9px;border:1px solid var(--rule);border-radius:50%;transition:background .3s,border-color .3s}
.cidx .x:hover::before{border-color:var(--ink)}
.cidx li.open .x::before{background:var(--meadow);border-color:var(--meadow)}
.cidx .x span{position:relative}
.dcX,.dcX:hover{width:44px;height:44px;border:0;right:-8px;top:4px}
.dcX::before{content:"";position:absolute;inset:8px;border:1px solid var(--rule);border-radius:50%;transition:border-color .3s}
.dcX:hover::before{border-color:var(--ink)}
.dcX span{position:relative}
@media (max-width:1100px){
  .seg button{padding:17px 14px}
  /* body text reads at 16 px on tablets and phones (gate G24); desktop keeps the guide's Body S */
  .more li p,.caselist p,.cidx p{font-size:16px}
}
/* the home map's state and metro pages (owner ruling of 2026-11-30, src/lib/homemap.mjs): the smaller dot
   (the reference's r 3.8) as a ring, so it never reads as an asset class; the legend's key the same ring */
.map .dot.pg circle.c{r:3.8;fill:var(--paper);stroke:var(--ink-2);stroke-width:1.3}
.map .legend i.pgk{background:var(--paper);box-shadow:inset 0 0 0 1.3px var(--ink-2)}
/* on phones the Fig. 302 caption wraps instead of running off under its ellipsis */
@media (max-width:700px){
  .plan .pc>span:first-child{white-space:normal}
}

/* at 1100 px and below every split is one column (DESIGN-GUIDE 4.1); the kit's review pass re-sets the
   desktop columns after its own phone rule, so the reference keeps two squeezed columns on phones */
@media (max-width:1100px){
  .split .l,.split .r{grid-column:1/-1}
}
@media (max-width:700px){
  .hero .fig{grid-template-columns:minmax(0,1fr)}
  .hero .fig .figctl{grid-column:1;grid-row:3;padding:12px var(--pad) 0}
  .caselist .cnt{top:16px}
  .cidx .row{grid-template-columns:28px minmax(0,1fr) 44px}
  .cidx .row .x{grid-column:3}
  .bfig .bcap-l{width:auto}
  .bfig .bcap-r{grid-row:3;padding:6px 0 0}
}
