/* family.css — the shared frame of the .pro family (dipl.pro · corp.pro, and the
   shape locintel.pro already has). Byte-identical in every property; a property
   changes how it looks ONLY through the tokens in its own site.css.

   What is shared (the frame): page anatomy, the apparatus voice (IBM Plex Mono),
   the provenance chips, the fact row, the header skeleton, the colophon.
   What is not (the room): paper, ink, accent, display face, header ground.

   Contract: /canonical/projects/_shared/DESIGN.md. AAA by arithmetic: every text
   token in site.css is declared with its ratio, and nothing here uses opacity
   on text (NAISU-DNA §1.10–11). */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text-face);
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
img,svg{max-width:100%}
a{color:var(--link);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:2px}
h1,h2,h3{font-family:var(--display-face);font-weight:var(--display-weight);color:var(--ink);margin:0;line-height:1.15;text-wrap:balance}
p{margin:0 0 1em}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* skip link: first focusable element on every page */
.skip{position:absolute;left:16px;top:-60px;z-index:100;background:var(--ink);color:var(--paper);
  padding:.7rem 1rem;font:600 15px/1 var(--text-face);text-decoration:none;border-radius:4px}
.skip:focus{top:12px}

/* ——— apparatus: one voice for the paperwork ——— */
.kicker,.mono,.chip,.crumbs,.asof,.colophon .legal{font-family:"IBM Plex Mono",ui-monospace,monospace}
.kicker{display:block;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin:0 0 .6rem}
.asof{font-size:13px;color:var(--mute)}

/* ——— layout ——— */
.wrap{max-width:var(--wrap,1120px);margin:0 auto;padding:0 24px}
.measure{max-width:68ch}
@media (max-width:640px){.wrap{padding:0 16px}}

/* ——— header skeleton: wordmark · nav (≤ 5) · Method last ——— */
.site-head{background:var(--head-bg);color:var(--head-ink);border-bottom:1px solid var(--head-line)}
.site-head .wrap{display:flex;align-items:center;gap:24px;min-height:60px}
.wordmark{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:600;font-size:17px;letter-spacing:-.01em;
  color:var(--head-ink);text-decoration:none;white-space:nowrap;padding:10px 0}
.wordmark b{font-weight:600;color:var(--head-accent)}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.site-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;color:var(--head-ink);
  text-decoration:none;font-size:15px;border-radius:4px}
.site-nav a:hover{text-decoration:underline}
.site-nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--head-accent);border-radius:0;font-weight:600}
.nav-toggle{display:none}
@media (max-width:760px){
  .site-head .wrap{flex-wrap:wrap;gap:0}
  .nav-toggle{display:flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:0 12px;
    background:none;border:1px solid var(--head-line);border-radius:4px;color:var(--head-ink);font:500 15px var(--text-face)}
  .site-nav{flex-basis:100%;margin:0}
  .site-nav[data-open="false"]{display:none}
  .site-nav ul{flex-direction:column;padding:4px 0 12px}
  .site-nav a{padding:0 4px}
  .site-nav a[aria-current="page"]{box-shadow:inset 3px 0 0 var(--head-accent);padding-left:12px}
}

/* ——— page anatomy: crumbs · kicker · h1 · lede ——— */
.crumbs{font-size:13px;color:var(--mute);padding:20px 0 0}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:6px}
.crumbs a{color:var(--mute)}
.page-head{padding:36px 0 28px}
.page-head h1{font-size:clamp(30px,4.6vw,46px);max-width:24ch}
.lede{font-size:19px;line-height:1.55;color:var(--ink);max-width:62ch;margin:16px 0 0}
@media (max-width:640px){.page-head{padding:24px 0 20px}.lede{font-size:17.5px}}

/* ——— sections: one heading, one job ——— */
.section{padding:36px 0;border-top:1px solid var(--line)}
.section>h2,.section-head h2{font-size:clamp(23px,2.6vw,28px);margin:0 0 6px}
.section-head{margin-bottom:20px}
.section-head p{color:var(--mute);margin:6px 0 0;max-width:64ch}

/* ——— the provenance chip: three tiers, two absences. Same words everywhere. ——— */
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;letter-spacing:.04em;
  padding:2px 8px;border-radius:3px;border:1px solid currentColor;white-space:nowrap;line-height:1.5;vertical-align:middle}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.chip.official{color:var(--t-official)}
.chip.secondary{color:var(--t-secondary)}
.chip.derived{color:var(--t-derived);border-style:dashed}
.chip.derived::before{background:none;border:1.5px solid currentColor;width:5px;height:5px}
.chip.absent{color:var(--mute);border-style:dotted}
.chip.absent::before{display:none}

/* ——— the fact row: label · value · provenance. The grid is the gestalt. ——— */
.facts{display:grid;grid-template-columns:minmax(150px,220px) 1fr;margin:0;border-top:1px solid var(--line)}
.facts>dt,.facts>dd{margin:0;padding:14px 0;border-bottom:1px solid var(--line)}
.facts>dt{color:var(--mute);font-size:15px;padding-right:20px}
.facts>dd .v{font-size:17px}
.facts>dd .src{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;font-size:14px;color:var(--mute)}
.facts>dd .src a{color:var(--mute)}
.facts .none{color:var(--mute);font-style:italic}
@media (max-width:640px){
  .facts{grid-template-columns:1fr}
  .facts>dt{border-bottom:0;padding:14px 0 2px;font-size:14px}
  .facts>dd{padding-top:0}
}
details.quote{margin-top:6px;font-size:14px;color:var(--mute)}
details.quote summary{cursor:pointer;min-height:28px;display:inline-flex;align-items:center}
details.quote blockquote{margin:6px 0 0;padding:8px 12px;border-left:3px solid var(--line);font-style:italic}

/* ——— cards: common region for things that are siblings ——— */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:20px}
.card h3{font-size:19px;margin:0 0 8px;line-height:1.3}
.card p{font-size:15.5px;margin:0 0 .6em}
.card .meta{font-size:14px;color:var(--mute)}

/* ——— buttons and fields ——— */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;
  background:var(--btn-bg);color:var(--btn-ink);border:0;border-radius:5px;font:600 16px var(--text-face);
  text-decoration:none;cursor:pointer}
.btn:hover{background:var(--btn-bg-hover)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line-strong)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600;font-size:15px}
.field .hint{font-size:14px;color:var(--mute)}
select,input[type=search],input[type=email]{font:16px var(--text-face);color:var(--ink);background:var(--panel);
  min-height:48px;padding:0 12px;border:1px solid var(--line-strong);border-radius:5px;width:100%}

/* ——— tables: scroll inside their own region, never the page ——— */
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
table.data{border-collapse:collapse;width:100%;font-size:15px}
table.data th,table.data td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
table.data thead th{font:500 12px "IBM Plex Mono",monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);background:var(--paper)}
table.data tbody tr:last-child>*{border-bottom:0}

/* ——— the note: a stated limit, set as method, not as fine print ——— */
.note{border-left:3px solid var(--line-strong);padding:4px 0 4px 14px;color:var(--ink);font-size:15.5px;max-width:68ch}

/* ——— the sibling line: one link, one reason (02-structure, link map rule 2) ——— */
.sibling{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;padding:16px 18px;border:1px solid var(--line);
  border-radius:6px;background:var(--panel);font-size:15.5px}
.sibling .kicker{margin:0}

/* ——— colophon: identical structure on every .pro ——— */
.colophon{margin-top:56px;background:var(--foot-bg);color:var(--foot-ink);font-size:15px}
.colophon a{color:var(--foot-ink)}
.colophon .wrap{padding-top:36px;padding-bottom:28px}
.colophon .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.colophon h2{font:500 12px "IBM Plex Mono",monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--foot-mute);margin:0 0 10px}
.colophon ul{list-style:none;margin:0;padding:0}
.colophon li{margin:0 0 4px}
.colophon li a{display:inline-block;padding:4px 0}
.colophon .accuracy{font-family:var(--display-face);font-size:18px;margin:32px 0 0;padding-top:20px;border-top:1px solid var(--foot-line);max-width:60ch}
.colophon .legal{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:16px;font-size:13px;color:var(--foot-mute)}
.colophon .legal a{color:var(--foot-mute)}

/* small inline links still get a 24px target (WCAG 2.5.8); inline text is exempt from 2.5.5 */
.crumbs a,.src a,.asof a{display:inline-block;padding:3px 0}

/* ——— the combobox: the family's country picker (combobox.js). Never native <select> chrome. ——— */
.cbx{position:relative}
.cbx-field{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 10px 0 14px;background:var(--panel);
  border:1px solid var(--line-strong);border-radius:10px;transition:border-color .15s,box-shadow .15s}
.cbx-field:hover{border-color:var(--ink)}
.cbx.is-open .cbx-field,.cbx-field:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px var(--cbx-ring,rgba(20,33,61,.14))}
.cbx-flag{font-size:22px;line-height:1;display:none}
.cbx.has-flag .cbx-flag{display:block}
.cbx input{flex:1;min-width:0;border:0;background:transparent;font:500 17px var(--text-face);color:var(--ink);padding:12px 0;outline:none}
.cbx input::placeholder{color:var(--mute);font-weight:400;opacity:1}
.cbx:has(input:focus-visible) .cbx-field{outline:3px solid var(--focus);outline-offset:2px}
.cbx-clear{border:0;background:none;color:var(--mute);font-size:22px;line-height:1;width:32px;height:32px;border-radius:50%;cursor:pointer}
.cbx-clear:hover{background:var(--line);color:var(--ink)}
.cbx-caret{width:28px;height:28px;display:grid;place-items:center;cursor:pointer}
.cbx-caret::before{content:"";width:8px;height:8px;border-right:2px solid var(--mute);border-bottom:2px solid var(--mute);transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.cbx.is-open .cbx-caret::before{transform:translateY(2px) rotate(225deg)}
.cbx-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 6px);max-height:min(360px,55vh);overflow:auto;margin:0;padding:6px;list-style:none;
  background:var(--panel);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 24px 60px -24px rgba(16,28,50,.45);overscroll-behavior:contain}
.cbx-group{font:500 11.5px "IBM Plex Mono",monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);padding:12px 10px 6px;position:sticky;top:-6px;background:var(--panel)}
.cbx-opt{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:8px;cursor:pointer;color:var(--ink);font-size:16px}
.cbx-opt.is-active{background:var(--cbx-active,#EEF0F6)}
.cbx-opt[aria-selected="true"]{font-weight:600}
.cbx-opt[aria-selected="true"]::after{content:"✓";margin-left:auto;color:var(--ink)}
.cbx-opt.is-disabled{cursor:default;color:var(--mute)}
.cbx-oflag{font-size:20px;width:26px;text-align:center}
.cbx-olabel{flex:1;min-width:0}
.cbx-ometa,.cbx-onote{font:500 12px "IBM Plex Mono",monospace;color:var(--mute);letter-spacing:.04em}
.cbx-opt[aria-selected="true"] .cbx-ometa{display:none}
.cbx-empty{padding:14px 10px;color:var(--mute)}

/* ——— the passport booklet: a role, not a fact. One light cover for every country —
   the shape says "passport", the flag says whose. Cover colours are not held as data,
   so none is implied. The flag sits bare on the light cover (Mike, 9 Oct: no inner
   outline); the booklet's outline holds ≥ 3:1 against any ground it sits on. ——— */
.pp{position:relative;display:inline-grid;place-items:center;width:26px;height:34px;border-radius:2px 5px 5px 2px;flex:none;vertical-align:middle;
  background:linear-gradient(90deg,#C9D0DE 0 4px,#F2F4F8 4px);border:1.5px solid #4A5568}
.pp::after{content:"";position:absolute;left:9px;right:5px;bottom:4px;height:2px;border-radius:1px;background:#4A5568}
.pp i{font-style:normal;font-size:16px;line-height:1;transform:translate(1.5px,-3px)}
.pp.lg{width:34px;height:44px}.pp.lg i{font-size:22px}.pp.lg::after{left:12px;right:6px;bottom:6px}
.cbx .cbx-flag .pp,.cbx-oflag .pp{transform:translateY(-1px)}
