/* WEB-3 — shared shell: tokens, reset, skip link, mast header, base footer and
   the generic details/summary disclosure (used by home cards and legal
   mobiletoc alike). Every page loads this file first, then home.css or
   legal.css. Rule order within each file preserves the order of the WEB-3
   design package's single style.css, so the cascade is unchanged. */

:root {
  color-scheme: light;
  --page: #FAF9F7;
  --ink: #1A1A1A;
  --ink-2: #5A616E;
  --rule: #D6CEC1;
  --brand: #2F6B5E;
  --on-brand: #FFFFFF;
  --surface: #FFFFFF;
  --sage: #E7F0EB;
  --amber: #FFF1D3;
  --amber-ink: #674506;
  --brick: #F9E8E3;
  --brick-ink: #803A2C;
  --max: 1120px;
  --gutter: 32px;
  --section: 80px;
  --row: 52px;
  --col-gap: 64px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.25,1);
}
:root{--forest:#163e35;--mint:#e3efdc;--lavender:#e9e3f7;--sand:#f4e7ca;--line:#cbcfc4}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2, h3 { line-height: 1.2; text-wrap: balance; }
a { color: var(--brand); text-underline-offset: .2em; }
a, label, summary { -webkit-tap-highlight-color: rgba(47,107,94,.15); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 3; transform: translateY(-160%); background: white; padding: 12px; }
.skip:focus { transform: none; }
footer nav { display: flex; align-items: center; flex-wrap: wrap; }
footer nav a, summary {
  display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px;
}
details { border-top: 1px solid var(--rule); }
summary { cursor: pointer; width: 100%; justify-content: space-between; gap: 12px; font-weight: 620; color: var(--brand); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 7px; height: 7px; flex: none; margin-inline-end: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
footer nav { gap: 4px 22px; padding-block: 18px; }
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  summary:hover { background: var(--sage); }
}
@media (prefers-reduced-motion: no-preference) {
  summary { transition: background-color 120ms ease-out, color 120ms ease-out; }
  summary::after { transition: transform 150ms ease-out; }
}
.frame{width:min(1216px,100%);margin:auto;padding-inline:clamp(20px,5vw,76px)}
.mast,.base{color:var(--forest)}
.mast{background:var(--page);border-bottom:1px solid var(--line)}
.mast .frame,.base .frame{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:14px}
.brandmark{display:inline-flex;align-items:center;gap:9px;font-size:1.15rem;letter-spacing:-.05em;font-weight:760;text-decoration:none;color:inherit;min-height:44px}
.brandmark img{border-radius:10px}.mast nav,.base nav{display:flex;align-items:center;gap:clamp(8px,2vw,30px)}
.mast nav a,.base nav a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:inherit;text-decoration:none}
.mast nav a.current{text-decoration:underline;text-underline-offset:7px}.mast nav a:hover,.base nav a:hover{text-decoration:underline}
.base{background:var(--forest);color:white}.base .frame{padding-block:42px}.base nav{flex-wrap:wrap}
@media(max-width:760px){.base .frame{align-items:flex-start;flex-direction:column}.base nav{gap:8px 18px}.mast nav{font-size:.9rem}}
@media(max-width:420px){.mast .frame{gap:4px;padding-inline:12px}.brandmark{font-size:1rem;gap:4px}.brandmark img{width:27px;height:27px}.mast nav{gap:4px}}
