/* Tekfile site — direction "The well-kept board" (taste-skill seed 1272218540), brand palette and type kept.
   Grid arithmetic: 12 columns, 8px gaps, 16px outer margins (8px on phones). Tiles are flat filled
   rectangles, square corners, separated only by the 8px gap in the board colour. One ink, one accent. */
/* each face self-hosted from site/assets/fonts (OFL, licences beside the files) */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/site/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/site/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 700; font-display: swap; src: url('/site/assets/fonts/noto-sans-arabic-arabic-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/site/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); } /* taste-skill-ignore: mono only for the literal citation tags in <code>, required by the brief */

:root {
  --board: #dfe3e6;      /* the page ground: the board the tiles sit on */
  --tile: #f4f5f6;       /* one step lighter */
  --paper: #ffffff;      /* picture tiles and the document fragments */
  --ink: #15191d;
  --ink-2: #454d54;      /* secondary notes only */
  --accent: #0f4c5c;     /* petrol: the action, the recommended offer, the citation chips */
  --accent-tint: #dbe8eb;
  --on-ink: #f4f5f6;
  --gap: 8px;
  --m: 16px;
  --in: 24px;           /* tile padding = the second text edge */
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; /* taste-skill-ignore: citation <code> chips only */
  /* five type steps */
  --t-small: 14px;
  --t-body: 16px;
  --t-state: clamp(20px, 1.6vw, 23px);
  --t-head: clamp(30px, 3.8vw, 54px);
  --t-mark: clamp(34px, 3.6vw, 52px);
  --t-display: clamp(60px, 9vw, 132px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--board); color: var(--ink);
  font: 400 var(--t-body)/1.45 var(--sans); font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* citation chips: the literal tag stays in the text so scripts/check_citations.py can read it */
code.ref, a.ref code {
  font-family: var(--mono); font-size: var(--t-small); line-height: 1.3; color: var(--accent);
  background: var(--accent-tint); padding: 0 5px; white-space: nowrap; display: inline-block; margin: 1px 0; max-width: 100%;
}
a.ref { text-decoration: none; }
a.ref:hover code { background: var(--accent); color: var(--paper); }
.ink code.ref, .ink a.ref code { background: #22303a; color: #cfe3e8; }

.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--m); }
.tile { background: var(--tile); padding: 16px 20px; min-width: 0; }
.ink { background: var(--ink); color: var(--on-ink); }
.paper { background: var(--paper); }
.pic { padding: 0; overflow: hidden; background: var(--paper); }
.pic img { width: 100%; height: 100%; object-fit: contain; }
section { margin-top: 28px; }
section.intro { margin-top: var(--gap); }
section > .board + .board { margin-top: var(--gap); }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--paper); font: 600 var(--t-body)/1.2 var(--sans); text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #0b3a47; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.ink .btn { background: var(--accent); }
.tlink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
.tlink:hover { color: var(--accent); }
.ink .tlink:hover { color: #9fd0dc; }

/* ---------- hero: the text cell and the kit, each piece once ---------- */
.hero { padding-top: var(--m); }
.kitset { grid-column: 8 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.frame { margin: 0; background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.frame svg { display: block; width: 100%; height: auto; background: var(--paper); }
.frame figcaption { margin-top: auto; }
svg.kit { display: block; }
.frame.k-plate { grid-column: 1 / 3; grid-row: 1; }
.frame.k-qr { grid-column: 3; grid-row: 1; }
.frame.k-plate svg { padding: 10px 14px 4px; }
.frame.k-qr svg { width: 100%; padding: 10px; }
.frame figcaption { padding: 5px 10px; font-size: 13px; line-height: 1.3; color: var(--ink); }
.frame:nth-child(4n+1) figcaption { background: #c6ced3; }
.frame:nth-child(4n+2) figcaption { background: var(--accent-tint); }
.frame:nth-child(4n+3) figcaption { background: #e8e2d4; }
.frame:nth-child(4n+4) figcaption { background: #d3dccf; }
.cell {
  grid-column: 1 / 8; background: var(--ink); color: var(--on-ink); padding: 28px 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.cell .act { margin-top: auto; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: var(--t-state); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 24px; height: 28px; flex: none; }
.cell h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.0; max-width: 24ch; }
.cell .lead { font-size: 21px; line-height: 1.38; max-width: 50ch; }
.cell .sub { max-width: 62ch; }
.cell .act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cell nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: var(--t-body); }
.cell nav .btn { margin-right: 6px; }

/* ---------- intro: statement tiles ---------- */
.intro .a { grid-column: 1 / 9; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; background: var(--tile); color: var(--ink); }
.intro .a { container-type: inline-size; overflow: hidden; }
.intro .a h2 { font-size: min(var(--t-display), 9cqw); line-height: 0.88; text-transform: uppercase; letter-spacing: -0.035em; }
.intro .a .asof { margin-top: 14px; font-size: var(--t-small); color: var(--ink-2); }
.intro .b { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.intro .b .n { font-size: var(--t-display); font-weight: 600; line-height: 0.86; letter-spacing: -0.04em; }
.intro .d { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: 22px 28px; background: var(--paper); }
.intro .d blockquote { grid-column: 1 / 5; margin: 0; font-size: var(--t-state); line-height: 1.35; }
.intro .d blockquote p + p { margin-top: 14px; font-size: var(--t-body); }
.intro .d .txt { grid-column: 6 / 13; font-size: 17px; line-height: 1.42; display: grid; gap: 12px; }

/* ---------- what changes: giant heading, filled bar rows ---------- */
.changes .head { grid-column: 1 / 13; container-type: inline-size; padding: 0 var(--in); }
.changes h2 { font-size: var(--t-head); line-height: 1.0; }
.bars { grid-column: 1 / 13; width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 6px; }
.bars th, .bars td { background: var(--tile); text-align: left; vertical-align: top; padding: 12px 16px; }
.bars thead th { background: transparent; padding: 4px 20px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.bars tbody th { width: 19%; font-size: 18px; line-height: 1.2; }
.bars td.what { width: 58%; line-height: 1.4; font-size: 15.5px; }
.bars td.src { width: 23%; }
.bars tbody tr:nth-child(even) th, .bars tbody tr:nth-child(even) td { background: #eceef0; }

/* ---------- live check ---------- */
.live .head { padding: 0 var(--in); grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.live h2 { grid-column: 1 / 8; font-size: var(--t-head); line-height: 1.0; }
.live .head p { grid-column: 8 / 13; }
.panel { grid-column: 1 / 13; display: grid; grid-template-columns: 66fr 34fr; gap: var(--gap); }
.panel .out { background: var(--paper); padding: 20px 24px; max-height: 440px; overflow: auto; overscroll-behavior: contain; }
.panel .ctl { background: var(--tile); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ctl fieldset { border: 0; margin: 0; padding: 0; }
.ctl .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; }
.ctl .row > span, .ctl legend { font-size: var(--t-body); font-weight: 600; }
.ctl legend { padding: 0; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 6px; background: var(--paper); font-size: var(--t-small); font-weight: 600; transition: background-color .15s; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctl select { width: 100%; min-height: 48px; font: 400 var(--t-body) var(--sans); padding: 10px 12px; border: 0; background: var(--paper); color: var(--ink); }
.sw { position: relative; width: 56px; height: 32px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; background: #b9c1c7; transition: background-color .18s; }
.sw i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; background: var(--paper); transition: transform .18s var(--ease); }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(24px); }
.sw input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctl .more { margin-top: auto; padding-top: 18px; }
.live .note { grid-column: 1 / 13; padding: 14px var(--in) 0; color: var(--ink-2); }

[data-ui] .gt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
[data-ui] .gt-h b { font-size: 19px; }
[data-ui] .gt-h span { font-size: 14px; color: var(--ink-2); }
[data-ui] table { width: 100%; border-collapse: collapse; }
[data-ui] th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 600; padding: 9px 8px; border-bottom: 1px solid var(--ink); }
[data-ui] td { padding: 8px 8px; border-bottom: 1px solid #d5dade; vertical-align: top; font-size: 15px; }
[data-ui] td.m { white-space: nowrap; font-weight: 600; width: 54px; }
[data-ui] tr[hidden] { display: none; }
[data-ui] tr.on td { animation: rowin .35s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Saudi Arabia: large marks on tiles ---------- */
.ksa .head { padding: 0 var(--in); grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: 10px; }
.ksa h2 { grid-column: 1 / 7; font-size: var(--t-head); line-height: 1.0; }
.ksa .head p { grid-column: 6 / 13; font-size: 19px; line-height: 1.42; }
.ksa .t { grid-column: span 3; padding-top: 16px; padding-bottom: 14px; font-size: 15px; line-height: 1.4; }
.ksa .t .mk { font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ksa .t.ink .mk { color: var(--paper); }
.ksa .t .refs { margin-top: 8px; }
.ksa .t p { margin-top: 10px; }
.ksa .t summary { list-style: none; display: grid; gap: 2px; }
.ksa .t summary::-webkit-details-marker { display: none; }
.ksa .t .gist { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.ksa .t.ink .gist { color: #b8c2c9; }
@media (min-width: 701px) { .ksa .t summary { pointer-events: none; } }

/* ---------- pricing: plans as a large table ---------- */
.price .wrap { grid-column: 1 / 13; background: var(--tile); }
.ptab { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptab th, .ptab td { text-align: left; vertical-align: top; padding: 12px 16px; line-height: 1.42; }
.ptab thead th { padding-top: 22px; }
.ptab thead th:first-child { width: 19%; }
.ptab thead th h2 { font-size: var(--t-mark); line-height: 1.0; }
.ptab .pn { display: block; font-size: var(--t-state); font-weight: 600; line-height: 1.15; }
.ptab .pp { display: block; font-size: var(--t-state); font-weight: 400; line-height: 1.15; margin-top: 6px; }
.ptab .pp small { font-size: var(--t-body); }
.ptab tbody th { font-size: 18px; font-weight: 600; line-height: 1.25; }
.ptab tbody tr:nth-child(odd) > * { background: #eaedef; }
.ptab .rec { background: var(--accent-tint) !important; }
.ptab tfoot td { padding-bottom: 22px; }
.ptab .vat { color: var(--ink-2); font-size: var(--t-small); }

/* ---------- about: not a notified body ---------- */
.about .head { padding: 0 var(--in); grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about h2 { grid-column: 1 / 13; font-size: var(--t-head); line-height: 1.0; }
.about .head p { grid-column: 1 / 8; font-size: 18px; line-height: 1.42; margin-top: 10px; }
.about .head .chips { grid-column: 8 / 13; margin-top: 10px; align-self: end; }
.about .photo { grid-column: 1 / 9; position: relative; margin-top: 16px; background: var(--paper); }
.about .photo .docfrag { padding: 24px 380px 24px 28px; min-height: 100%; }
.about .photo .over { position: absolute; top: 0; right: 0; width: 340px; background: var(--paper); padding: 22px 24px; display: grid; gap: 10px; }
.about .photo .over h3 { font-size: var(--t-state); line-height: 1.2; }
.about .side { grid-column: 9 / 13; margin-top: 16px; display: grid; grid-template-rows: 1fr auto; gap: var(--gap); }
.about .lang { background: var(--ink); color: var(--paper); padding: 24px; aspect-ratio: auto; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.about .lang b { font-size: var(--t-mark); line-height: 0.95; letter-spacing: -0.03em; }
.about .facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.about .facts div { background: var(--tile); padding: 18px 20px; }
.about .facts dt { font-size: var(--t-small); color: var(--ink-2); }
.about .facts dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- contact: three-cell bar ---------- */
.contact { background: var(--ink); color: var(--on-ink); padding: 36px 0; display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.contact h2 { font-size: var(--t-mark); line-height: 1.0; padding: 0 calc(var(--m) + var(--in)); align-self: end; }
.contact .lead { padding: 12px calc(var(--m) + var(--in)) 0; max-width: 46ch; font-size: var(--t-body); line-height: 1.45; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 var(--m) 0 0; grid-column: 2; grid-row: 1 / 3; }
.cells a { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; background: #262d33; color: var(--on-ink); text-decoration: none; font-size: var(--t-state); line-height: 1.25; transition: background-color .18s, transform .18s var(--ease); }
.cells a small { font-size: var(--t-small); color: #b8c2c9; margin-bottom: 6px; }
.cells a:hover { background: #323b43; transform: translateY(-2px); }
.cells a.go { background: var(--paper); color: var(--ink); font-weight: 600; }
.cells a.go small { color: var(--ink-2); font-weight: 400; }
.cells a.go:hover { background: var(--accent-tint); }

/* ---------- footer of tiles ---------- */
footer { margin-top: var(--gap); padding-bottom: var(--m); }
footer .board > * { min-height: 128px; }
footer .s1 { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; }
footer .s1 p:first-child { font-size: var(--t-state); line-height: 1.3; }
footer .s1 small, footer small { font-size: 13px; color: var(--ink-2); }
footer .s2 { grid-column: 4 / 6; }
footer .s2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer .s3 { grid-column: 6 / 8; display: flex; flex-direction: column; justify-content: space-between; }
footer .s4 { grid-column: 8 / 10; display: flex; flex-direction: column; justify-content: flex-end; }
footer .s4 a { font-size: var(--t-body); word-break: break-all; }
footer .big { grid-column: 10 / 13; min-height: 128px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
footer .big span { font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.8; }

/* ---------- check page ---------- */
.ck { padding-top: var(--m); }
.ck .bar { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 12px 24px; }
.ck .bar nav { display: flex; gap: 22px; }
.ck .intro-t { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 22px; min-height: 640px; }
.ck .intro-t h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.0; }
.ck .intro-t .lead { font-size: var(--t-state); line-height: 1.38; }
.ck .intro-t ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ck .intro-t .pic-sm { margin-top: auto; background: var(--paper); }
.ck form { grid-column: 6 / 13; background: var(--tile); padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; }
.f { display: grid; gap: 6px; }
.f.full { grid-column: 1 / 3; }
.f label, .f legend { font-weight: 600; font-size: var(--t-body); padding: 0; }
.f label span, .f legend span { font-weight: 400; color: var(--ink-2); }
.f input[type=text], .f input[type=email], .f textarea {
  width: 100%; font: 400 var(--t-body)/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid #aab3ba; padding: 12px 14px; min-height: 48px; border-radius: 0;
}
.f textarea { min-height: 120px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.f .hint { font-size: var(--t-small); color: var(--ink-2); }
.f fieldset { border: 0; margin: 0; padding: 0; }
.f .seg span { background: var(--paper); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen honeypot, not a rule */
.ck .msg { grid-column: 1 / 3; font-size: var(--t-body); min-height: 1.5em; }
.ck .msg.err { color: #9b2a16; font-weight: 600; }
.ck .done { grid-column: 1 / 3; background: var(--paper); padding: 24px; display: grid; gap: 10px; }
.ck .done h2 { font-size: var(--t-state); }
.ck .priv { grid-column: 1 / 3; font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }
.ck .refs-t { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ck .refs-t > div { background: var(--tile); padding: 22px 24px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.ck .refs-t h2 { font-size: var(--t-state); line-height: 1.2; }

/* ---------- motion layer ---------- */
.js .rv > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in > * { opacity: 1; transform: none; }
.js .rv.in > *:nth-child(2) { transition-delay: .07s; } .js .rv.in > *:nth-child(3) { transition-delay: .14s; }
.js .rv.in > *:nth-child(4) { transition-delay: .21s; } .js .rv.in > *:nth-child(5) { transition-delay: .28s; }
.js .rv.in > *:nth-child(6) { transition-delay: .35s; } .js .rv.in > *:nth-child(n+7) { transition-delay: .42s; }
.js .kitset .frame { animation: rise .9s var(--ease) both; }
.js .kitset .frame:nth-child(2) { animation-delay: .06s; } .js .kitset .frame:nth-child(3) { animation-delay: .12s; }
.js .kitset .frame:nth-child(4) { animation-delay: .18s; } .js .kitset .frame:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .cell { grid-column: 1 / 13; }
  .bars tr { display: grid; grid-template-columns: 2fr 1fr; margin-bottom: 6px; }
  .bars thead { display: none; }
  .bars tbody th { grid-column: 1 / 3; width: auto; padding-bottom: 4px; }
  .bars td.what, .bars td.src { width: auto; padding-top: 4px; }
  .kitset { grid-column: 1 / 13; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 0.8fr); align-items: stretch; }
  .frame.k-qr svg { width: 100%; }
  .frame.k-plate, .frame.k-qr { grid-column: auto; grid-row: auto; }
  .ck .refs-t { grid-template-columns: minmax(0, 1fr); }

  .intro .d blockquote { grid-column: 1 / 13; }
  .intro .d .txt { grid-column: 1 / 13; }
  .live h2, .live .head p { grid-column: 1 / 13; }
  .panel { grid-template-columns: 1fr; }
  .ksa .t { grid-column: span 6; }
  .ksa h2, .ksa .head p { grid-column: 1 / 13; }
  .about .photo { grid-column: 1 / 13; }
  .about .photo .docfrag { padding-right: 32px; }
  .about .photo .over { position: static; width: auto; }
  .about .side { grid-column: 1 / 13; margin-top: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .about .head p, .about .head .chips { grid-column: 1 / 13; }
  footer .s1 { grid-column: 1 / 7; } footer .s2 { grid-column: 7 / 13; }
  footer .s3 { grid-column: 1 / 7; } footer .s4 { grid-column: 7 / 13; }
  footer .big { grid-column: 1 / 13; }
  .ck .intro-t, .ck form { grid-column: 1 / 13; }
  .ck .intro-t { min-height: 0; }
}

/* ---------- phone: its own board, two columns ---------- */
@media (max-width: 700px) {
  :root { --gap: 6px; --m: 14px; --in: 20px; --t-state: 20px; --t-head: 30px; --t-mark: 30px; --t-display: 16vw; }
  code.ref, a.ref code { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
  section { margin-top: 28px; }
  .cell { padding: 22px 20px; gap: 14px; }
  .wordmark { font-size: 7vw; }
  .cell h1 { font-size: var(--t-head); }
  .cell .lead { font-size: var(--t-state); }
  .cell .act .btn { width: 100%; justify-content: center; margin-right: 0; }
  /* the kit as one strip: five pieces side by side, swiped, nothing repeated */
  .kitset { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .kitset .frame { flex: none; width: 62%; scroll-snap-align: start; }
  .kitset .frame.k-plate { width: 70%; }
  .kitset .frame.k-qr { width: 34%; }
  .board { grid-template-columns: 1fr 1fr; }
  .board > * { grid-column: 1 / 3 !important; }
  .tile { padding: 20px; }
  .intro .a { min-height: 0; padding-top: 48px; }
  .intro .b { grid-row: auto; min-height: 0; gap: 12px; }
  .intro .b .n { font-size: var(--t-display); }
  .intro .d { padding: 20px; }
  .intro .d .txt { font-size: var(--t-body); }
  .changes h2 { font-size: var(--t-head); }
  .bars { display: none !important; }
  .ch-m { display: block; margin-top: 8px; }
  .ksa .t { position: relative; padding: 12px 30px 12px 14px; }
  .ksa .t summary::after { top: 14px; right: -18px; }
  .ksa .t .mk { font-size: 20px; }
  .ksa .t details[open] { grid-column: auto; }
  .ksa .t:has(details[open]) { grid-column: 1 / 3 !important; }
  .ksa .t p, .ksa .t .refs { font-size: 16px; }
  .ksa .head p, .about .head p { font-size: var(--t-body); }
  .live .head p { font-size: var(--t-body); }
  .contact { display: block; padding: 32px 0; }
  .cells { padding: 20px var(--m) 0; }

  .panel { min-height: 0; }
  .panel .out { padding: 16px; order: 1; } .panel .ctl { padding: 16px; order: 0; }
  [data-ui] .gt-h { flex-direction: column; gap: 2px; }
  [data-ui] thead { display: none; }
  [data-ui] tr { display: grid; grid-template-columns: 44px 1fr; border-bottom: 1px solid #d5dade; padding: 8px 0; }
  [data-ui] tr[hidden] { display: none; }
  [data-ui] td { font-size: 14px; padding: 2px 4px; border: 0; }
  [data-ui] td:last-child { grid-column: 2; }
  .ksa .t { grid-column: span 1 !important; min-height: 0; margin-top: 0; }

  .ptab, .ptab thead, .ptab tbody, .ptab tfoot, .ptab tr, .ptab th, .ptab td { display: block; width: 100% !important; }
  .ptab thead tr:first-child th:not(:first-child) { display: none; }
  .ptab tbody tr, .ptab tfoot tr { display: none; }
  .plans-m { display: grid !important; gap: 6px; }
  .about .photo .over { position: static; width: 100%; }
  .about .photo .docfrag { padding: 20px; }
  .about .side { grid-template-columns: 1fr; }
  .cells { grid-template-columns: 1fr; }
  .cells a { min-height: 72px; }
  footer .board > * { min-height: 0; }
  footer .big { display: none; }
  footer .s2, footer .s3 { grid-column: span 1 !important; }
  footer .s1, footer .s4 { padding-top: 16px; padding-bottom: 16px; }

  .ck form { grid-template-columns: 1fr; padding: 20px; }
  .f.full, .ck .msg, .ck .done, .ck .priv { grid-column: 1 / 2; }
  .ck .refs-t { grid-template-columns: 1fr; }
  .ck .bar { flex-wrap: wrap; gap: 10px; }
}
.plans-m { display: none; grid-column: 1 / 13; }
.plans-m .pm { background: var(--tile); padding: 20px; display: grid; gap: 12px; }
.plans-m .pm.rec { background: var(--accent-tint); }
.plans-m .pm h3 { font-size: var(--t-state); line-height: 1.1; }
.plans-m .pm .pp { font-size: var(--t-state); }
.plans-m dl { margin: 0; display: grid; gap: 10px; }
.plans-m dt { color: var(--ink-2); font-size: 15px; }
.plans-m dd { margin: 2px 0 0; }
.plans-m .btn { justify-content: center; }
.ck .fields { display: contents; }
.ck .fields[hidden] { display: none; }
.ck .done[hidden] { display: none; }
fieldset.f { border: 0; margin: 0; padding: 0; min-width: 0; }
.f .btn { justify-self: start; }
@media (max-width: 700px) {
  section.intro { margin-top: var(--gap); }
  .about .lang { min-height: 0; gap: 10px; }
  .about .lang b { font-size: 30px; }
  .f .btn { justify-self: stretch; justify-content: center; }
}

.ck .only-narrow { display: none; align-self: flex-start; }
.ck form h2 { grid-column: 1 / -1; font-size: var(--t-state); }
.ck .refs-t > div { min-width: 0; }
.ck .refs-t .pic { min-height: 0; aspect-ratio: 16 / 9; }
.ck .refs-t .pic img { object-fit: contain; padding: 10px; }
.ck a.tlink { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .ck .only-narrow { display: inline-flex; } }
/* tablets and phones: entrances move but never hide content, so a reveal that does not fire leaves nothing invisible */
@media (max-width: 1100px) { .js .rv > * { opacity: 1; } }
.plans-m > .vat { padding: 8px var(--in) 0; }

/* document fragments (data-ui): an excerpt of a Gap Audit and of an EU declaration */
[data-ui].frag { background: var(--paper); padding: 24px; }
[data-ui] .st { font-weight: 600; white-space: nowrap; }
[data-ui] .st.part { color: #7a5200; }
[data-ui] .st.miss { color: #9b2a16; }
[data-ui] .ft { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
[data-ui] dl { margin: 6px 0 0; }
[data-ui] dt { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
[data-ui] dd { margin: 2px 0 0; font-size: 17px; }
.price .extra { grid-column: 1 / 5; display: grid; grid-template-columns: 1fr; gap: var(--gap); align-content: start; }
.price .extra .vat-d { font-size: var(--t-small); color: var(--ink-2); }
.price .gf { grid-column: 5 / 13; }
@media (max-width: 1100px) { .price .extra { grid-column: 1 / 13; grid-template-columns: 1fr 1fr 1.4fr; } .price .gf { grid-column: 1 / 13; } }
.price .extra p { background: var(--tile); padding: 18px var(--in); }
.price .gapfrag { grid-column: 1 / 13; }
@media (max-width: 700px) { .price .extra { grid-template-columns: 1fr; } }
.ksa .t code.ref, .ksa .t a.ref code { white-space: normal; }
/* the one-page checklist excerpt on /check */
[data-ui].ckl ul { list-style: none; margin: 8px 0 0; padding: 0; }
[data-ui].ckl li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #d5dade; font-size: 15px; }
[data-ui].ckl li::before { content: ''; width: 16px; height: 16px; border: 1.5px solid var(--ink); margin-top: 3px; }
.ck .gapfrag { grid-column: 1 / 13; }
/* folds: phone-only lists (.ch-m, plan details) and the KSA tiles closed by site.js on phones */
.ch-m { display: none; grid-column: 1 / 13; }
details.fold > summary { cursor: pointer; }
details.fold:not([open]) > :not(summary) { display: none; }
.ch-m details { background: var(--tile); margin-top: 6px; }
.ch-m details:nth-child(even) { background: #eceef0; }
.ch-m summary { padding: 12px 44px 12px 16px; font-size: 18px; font-weight: 600; line-height: 1.25; list-style: none; position: relative; }
.ch-m summary::-webkit-details-marker, .plans-m summary::-webkit-details-marker { display: none; }
.ch-m summary::after, .plans-m summary::after, .ksa .t summary::after { content: '+'; position: absolute; right: 16px; top: 12px; font-size: 22px; font-weight: 400; line-height: 1; }
.ch-m details[open] summary::after, .plans-m details[open] summary::after, .ksa .t details[open] summary::after { content: '−'; }
.ch-m details > p { padding: 0 16px 12px; font-size: 16px; line-height: 1.45; }
.ch-m details > p.src { padding-bottom: 6px; }
.ch-m details > p:last-child { padding-bottom: 14px; }
.plans-m summary { list-style: none; position: relative; padding: 10px 36px 10px 0; font-weight: 600; }
.plans-m summary::after { right: 0; top: 8px; }
.plans-m details dl { padding-bottom: 6px; }
@media (min-width: 701px) { .ksa .t summary::after { content: none !important; } }
@media (max-width: 700px) { .ch-m { display: block; margin-top: 8px; } }
@media (max-width: 700px) {
  .gapfrag tr { grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 6px; }
  .gapfrag td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .gapfrag td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gapfrag td:nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
  .gapfrag td:nth-child(4) { grid-column: 3; grid-row: 1; }
  .gapfrag td:nth-child(5) { display: none; }
  .price .extra p, .plans-m > .vat { font-size: 14px; }
  .intro .a { padding-top: 32px; }
  .intro .a h2 { font-size: 11cqw; }
  .intro .b { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 16px; }
  .intro .b .n { font-size: 20vw; }
  .intro .b span:last-child { padding-bottom: 6px; }
  .intro .d .txt { font-size: 16px; }
  .ctl .row { min-height: 44px; }
}
/* the two document fragments fold on phones only; on wider screens the summary is hidden and the fold stays open */
.frag-fold > summary { list-style: none; position: relative; }
.frag-fold > summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) { .frag-fold > summary { display: none; } }
@media (max-width: 700px) {
  .frag-fold { background: var(--paper); }
  .frag-fold > summary { padding: 14px 44px 14px 16px; font-weight: 600; }
  .frag-fold > summary::after { content: '+'; position: absolute; right: 16px; top: 11px; font-size: 22px; font-weight: 400; }
  .frag-fold[open] > summary::after { content: '−'; }
  .frag-fold[open] > summary { padding-bottom: 0; }
  .about .photo .docfrag { min-height: 0; }
  .kitset .frame { width: 50%; } .kitset .frame.k-plate { width: 58%; } .kitset .frame.k-qr { width: 30%; }
  .cell .lead { font-size: 18px; }
  .panel .out { max-height: 320px; }
  .cells a { min-height: 60px; padding: 12px 18px; }
}
@media (max-width: 1100px) { .about .photo .docfrag { min-height: 0; } }
@media (max-width: 700px) {
  .about .side { grid-template-columns: 1fr 1fr; }
  .about .facts { grid-template-columns: 1fr; }
  .ctl .row > span { font-size: 15px; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cells a.go { grid-column: 1 / 3; }
  .cells a { font-size: 17px; overflow-wrap: anywhere; }
  .intro .d blockquote { font-size: 18px; }
  footer .s1 p:first-child { font-size: 17px; }
}
@media (max-width: 700px) {
  section { margin-top: 24px; }
  section.intro { margin-top: var(--gap); }
  footer small, footer .s1 small { font-size: 13px; }
  .contact .lead { font-size: 15px; }
}
/* the launch note and its two chips sit in the narrow first column of the price table */
.ptab tfoot td:first-child code.ref { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; }
/* the deadline block ends on citation chips: give the next heading room so the chips read as the end of the text above */
section.changes, section.price { margin-top: 56px; }
@media (max-width: 1100px) { .ptab thead th:first-child { width: 27%; } }
@media (max-width: 1100px) {
  .contact { display: block; padding: 32px 0; }
  .cells { padding: 20px var(--m) 0; }
}
@media (max-width: 700px) {
  .cells a:first-child { grid-column: 1 / 3; }
  .cells a.go { grid-column: auto; }
  .cells a { font-size: 16px; }
}
[data-ui].ckl code.ref { white-space: normal; }
