/* ---- the kit: what every figure on the page is made from, so the page reads as one hand ---- */
:root {
  --pub: #0a8fa8; --pub-bg: #e0f5fa; --pub-fg: #06566a;      /* the public record: found outside your own files */
  --lit: var(--brand-azure);                                 /* what is selected, or lit along a line of proof */
  --grey: #c3c9d2;                                           /* a piece of the matter no one is looking at */
}

/* the headline is longer than it was */
h1 { font-size: clamp(48px, 6.7vw, 106px); }
@media (max-width: 1020px) { h1 { font-size: clamp(44px, 13.2vw, 104px); } }

.aud-route { max-width: 30em; margin: 14px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.aud-route a, .aud-route button { color: var(--azure-11); font-weight: 600; }

/* under a section's heading: the part of the film that tells it, and a line for whoever is reading */
.sec-aids { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px; margin-top: 22px; }
.sec-aids:empty { display: none; }
.rl { flex: 1 1 320px; max-width: 34em; padding: 10px 14px 11px; border-left: 3px solid var(--brand-azure); background: var(--sky-3); color: var(--brand-navy); font-size: 15.5px; line-height: 1.45; }
.rl p { margin: 0; }
.rl::before { display: block; margin-bottom: 3px; color: var(--azure-11); font: 700 11px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
html[data-aud="counsel"] .rl::before { content: 'Reading as counsel'; }
html[data-aud="funders"] .rl::before { content: 'Reading as a funder'; }
html[data-aud="investors"] .rl::before { content: 'Reading as an investor'; }
html[data-aud="party"] .rl::before { content: 'Reading as a party'; }

/* lines between figures */
.matter-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .88); color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.matter-strip b { color: var(--azure-11); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.matter-strip span { flex: 1 1 320px; }
.matter-strip i { padding: 3px 8px; border-radius: var(--r-1); background: var(--sky-3); color: var(--azure-12); font: 500 12.5px/1.3 var(--font-mono); font-style: normal; white-space: nowrap; }
.bridge { max-width: 18em; margin: clamp(48px, 7vw, 110px) 0 0; color: var(--brand-navy); font: 800 clamp(30px, 4.6vw, 68px)/1.04 var(--font-display); letter-spacing: -0.04em; text-wrap: balance; }
.after { max-width: 21em; margin: clamp(36px, 5vw, 72px) 0 0; color: var(--brand-navy); font: 800 clamp(25px, 3.4vw, 50px)/1.08 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.after.soft { margin-top: .5em; color: var(--brand-azure-deep); }
.mid { margin: clamp(40px, 5vw, 72px) 0 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.close-pre { max-width: 24em; margin: 0 auto clamp(18px, 3vw, 40px); color: var(--brand-navy); font: 400 italic clamp(20px, 2.3vw, 31px)/1.3 var(--font-serif); text-wrap: balance; }

/* ---- a figure: a framed thing you can work ---- */
.fig { position: relative; margin-top: clamp(26px, 3.6vw, 44px); border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-3); }
.fig + .fig { margin-top: 20px; }
.fig-fb { margin: 0; padding: 22px 24px; color: var(--text-2); }
.is-live > .fig-fb { display: none; }
.fig-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border-bottom: 1px solid var(--border-row); }
.fig-bar .push { margin-left: auto; }
.fig-body { padding: clamp(16px, 2.4vw, 28px); }
.fig-foot { padding: 12px 18px; border-top: 1px solid var(--border-row); background: var(--sky-2); border-radius: 0 0 var(--r-3) var(--r-3); }
.fig-title { margin: 0; color: var(--brand-navy); font: 700 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
/* the one line that says what to do with it */
.fig-hint { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--azure-11); font: 700 12.5px/1.3 var(--font-display); letter-spacing: .04em; }
.fig-hint::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--brand-azure); animation: hint 1.8s var(--ease) 4; }
@keyframes hint { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
.still .fig-hint::before { animation: none; }
.fig-note { margin: 0; color: var(--text-3); font: 500 12.5px/1.45 var(--font-mono); }
.fig-status { margin: 0; color: var(--brand-navy); font: 600 15.5px/1.4 var(--font-display); letter-spacing: -0.01em; }

/* a figure drawn by the field of squares: no frame, the stage shows through, labels and controls sit over it */
.sbox { position: relative; min-height: clamp(440px, 64vh, 700px); margin-top: clamp(22px, 3vw, 40px); }
.sbox.wide { min-height: 92vh; min-height: 92svh; margin-top: clamp(28px, 4vw, 56px); }
.sbox > .fig-fb { padding: 0; }
.sbox-l { position: absolute; left: 0; top: 0; margin: 0; color: var(--brand-navy); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.sbox-card { position: absolute; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .94); box-shadow: var(--shadow-2); }

/* ---- controls ---- */
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--slate-7); border-radius: var(--r-2); background: #ffffff; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-left: 1px solid var(--slate-7); background: #ffffff; color: var(--text-2); font: 600 13.5px/1 var(--font-display); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--sky-3); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--brand-navy); color: #ffffff; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: rgb(255 255 255 / .92); color: var(--text-2); font: 600 13.5px/1.2 var(--font-display); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand-azure); color: var(--azure-11); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: #ffffff; }
.link-btn { padding: 0; border: 0; background: none; color: var(--azure-11); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--azure-12); }

/* ---- a page: a document, shown as a document ---- */
.pg { position: relative; padding: 16px 18px 18px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff; box-shadow: var(--shadow-2); color: var(--text); font: 400 14.5px/1.5 var(--font-serif); }
.pg-ref { display: block; margin: 0 0 4px; color: var(--azure-11); font: 500 11.5px/1.3 var(--font-mono); }
.pg-t { display: block; margin: 0; color: var(--brand-navy); font: 700 14.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.pg-meta { display: block; margin: 2px 0 10px; padding: 0 0 9px; border-bottom: 1px solid var(--border-row); color: var(--text-3); font: 400 12.5px/1.4 var(--font-ui); }
.pg p { margin: 0 0 8px; }
.pg p:last-child { margin-bottom: 0; }
.pg-ln { display: block; height: 7px; margin: 8px 0; background: var(--slate-4); }           /* a line of a page not quoted */
.pg-ln:nth-child(3n) { width: 82%; } .pg-ln:nth-child(4n) { width: 64%; } .pg-ln:nth-child(5n) { width: 91%; }
/* the marker: it runs across the words when its page or the mark itself is given .on */
mark.hl { padding: 1px 0; background: linear-gradient(var(--azure-4), var(--azure-4)) no-repeat 0 55% / 0% 86%; color: inherit; transition: background-size .7s var(--ease), box-shadow .2s; }
.on > mark.hl, .on mark.hl, mark.hl.on { background-size: 100% 86%; }
mark.hl.adv { background-image: linear-gradient(var(--adv-bg), var(--adv-bg)); }
mark.hl.open { background-image: linear-gradient(var(--open-bg), var(--open-bg)); }
mark.hl.ok { background-image: linear-gradient(var(--ok-bg), var(--ok-bg)); }
mark.hl.pub { background-image: linear-gradient(var(--pub-bg), var(--pub-bg)); }
mark.hl.lit { box-shadow: 0 0 0 2px var(--lit); }

/* ---- rows of label and value; a large figure; the small square marks ---- */
.kv { display: grid; grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--border-row); }
.kv dt, .kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border-row); }
.kv dt { padding-right: 16px; color: var(--text-3); font: 700 11.5px/1.5 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.kv dd { color: var(--brand-navy); font-size: 15.5px; line-height: 1.4; }
.num { display: block; color: var(--brand-navy); font: 800 clamp(28px, 3.2vw, 46px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.num-l { display: block; margin-top: 6px; color: var(--text-3); font: 700 11.5px/1.25 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.sq { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--brand-azure); vertical-align: baseline; }
.sq.navy { background: var(--brand-navy); } .sq.sky { background: var(--brand-sky); } .sq.grey { background: var(--slate-7); } .sq.ok { background: var(--ok); }
.sq.open { border: 2px solid var(--open); background: #ffffff; }
.sq.adv { border: 1px solid var(--adv); background: repeating-linear-gradient(135deg, var(--adv) 0 2px, #ffffff 2px 4px); }
.sq.pub { border: 2px solid var(--pub); background: #ffffff; }
.sq.lead { border: 2px dashed var(--pub); background: #ffffff; }
.tagk { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font: 600 12px/1.25 var(--font-display); white-space: nowrap; }
.tagk.ok { color: var(--ok-fg); } .tagk.open { color: var(--open-fg); } .tagk.adv { color: var(--adv-fg); } .tagk.pub { color: var(--pub-fg); }
.rule { display: inline-block; padding: 1px 8px; border: 1px solid var(--slate-6); border-radius: 999px; background: var(--slate-3); color: var(--slate-12); font: 500 12px/1.5 var(--font-mono); white-space: nowrap; }

/* ---- small layouts ---- */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* where an answer is shown on this page */
.q-go { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; color: var(--azure-11); font: 700 14px/1.2 var(--font-display); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.q-go::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.qa.live .q-go { display: flex; width: fit-content; margin: 18px 0 0; color: var(--brand-sky-pale); font-size: 15px; }
.qa.live .q-go:hover { color: #ffffff; }
/* a reader's route through the page */
.route { margin: 0; padding: 0; list-style: none; counter-reset: rt; border-top: 1px solid var(--border-row); }
.route li { counter-increment: rt; border-bottom: 1px solid var(--border-row); }
.route a { position: relative; display: block; padding: 11px 26px 11px 34px; color: var(--brand-navy); font: 600 15.5px/1.35 var(--font-display); text-decoration: none; }
.route a::before { content: counter(rt); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; background: var(--brand-azure); color: #ffffff; font: 700 12px/22px var(--font-display); text-align: center; }
.route a::after { content: ''; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--azure-11); border-bottom: 2px solid var(--azure-11); transform: rotate(45deg); opacity: .5; transition: opacity .15s, transform .15s; }
.route a:hover { color: var(--azure-11); background: var(--sky-2); }
.route a:hover::after { opacity: 1; transform: translateY(3px) rotate(45deg); }
.who-panel .route li::before { content: none; }
.who-panel .route li { padding: 0; }

/* on a phone, the lines a reader is meant to read are 14 px at least; small capitals labels and references keep their size */
@media (max-width: 640px) {
  .fig-hint, .fig-note { font-size: 14px; }
  .fig-status { font-size: 15px; }
}

/* a segmented control clips what overflows it, so its focus ring is drawn inside the button */
.seg button:focus-visible { outline-offset: -4px; }
.seg button[aria-pressed="true"]:focus-visible, .seg button[aria-selected="true"]:focus-visible { outline-color: #ffffff; }
/* on the narrowest phones a segmented control takes the full width and its choices share it, wrapping their words */
@media (max-width: 400px) {
  .fig .seg, .sbox .seg { display: flex; width: 100%; overflow: visible; }
  .fig .seg button, .sbox .seg button { flex: 1 1 0; min-width: 0; padding: 6px 8px; white-space: normal; line-height: 1.2; }
}
