/* 3060 Recipes: layout and the few site components. Colours, type and lines come only from tokens.css. */
body { background: var(--paper); color: var(--ink); margin: 0; }
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.main > * { min-width: 0; margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--sheet); padding: var(--space-2) var(--space-3); border: var(--line-hair) solid var(--ink); z-index: 2; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); flex-wrap: wrap;
  padding: var(--space-4) 0 0; border-bottom: var(--line-hair) solid var(--ink); }
.nav__home { display: inline-flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-3); color: var(--ink); text-decoration: none;
  font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; }
.nav__home b { font-weight: 600; }
.nav__glyph { width: 20px; height: 20px; color: var(--cobalt); }
.nav__links { display: flex; gap: var(--space-4); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav__links a { padding: 0 0 var(--space-3); margin-bottom: -1px; border-bottom: var(--line-heavy) solid transparent; white-space: nowrap;
  font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }

/* hero and figures */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.hero__title { display: grid; gap: var(--space-4); }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; }
.fig { border-top: var(--line-heavy) solid var(--ink); padding-top: var(--space-2); min-width: 0; }
.fig dt { font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.fig dd { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
.fig dd .ss-px { color: var(--cobalt-text); }
.fig__unit { font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.fig__note { flex-basis: 100%; font: var(--type-data); color: var(--ink-muted); }

/* recipe table */
.rt td { vertical-align: top; }
.rt a b { font-weight: 700; }
.rt .sub { display: block; color: var(--ink-muted); }
.rt .by { font: var(--type-label); letter-spacing: .1em; color: var(--ink-muted); }
.rt .how { display: block; max-width: 22rem; color: var(--ink-muted); }
.speed { font-weight: 600; color: var(--ink); }
.vs { display: block; margin-top: var(--space-1); }
.vs svg { display: block; margin-left: auto; }
.vs__t { fill: var(--cobalt); }
.vs__s { fill: var(--ink); }
.vs__x { display: block; font: var(--type-label); letter-spacing: .06em; color: var(--ink-muted); }
@media (max-width: 720px) {
  .rt thead { display: none; }
  .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; box-sizing: border-box; }
  .rt tr { border-bottom: var(--line-hair) solid var(--ink); padding: var(--space-3) 0; }
  .rt td { border: 0; padding: var(--space-1) 0; text-align: left; white-space: normal; }
  .rt td.num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); }
  .rt td[data-l]:not(:first-child)::before { content: attr(data-l); min-width: 5.5rem; font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
  .rt .vs { flex-basis: 100%; }
  .rt .vs svg { margin-left: 0; }
}

/* key-value table */
.kv th { width: 9rem; vertical-align: top; padding-top: var(--space-2); }
.kv td { overflow-wrap: anywhere; }

/* speed plate */
.bars { display: block; max-width: 100%; height: auto; }
.bars .t { fill: var(--cobalt); }
.bars .s { fill: var(--ink); }
.bars .ax { stroke: var(--ink); stroke-width: 1; fill: none; }
.bars .lb { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.bars .mu { fill: var(--ink-muted); }
.bars .val { fill: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.chartkey { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; }
.k { display: inline-block; width: 16px; height: 8px; margin-left: var(--space-2); }
.k:first-child { margin-left: 0; }
.k--t { background: var(--cobalt); } .k--s { background: var(--ink); height: 4px; } .k--c { width: 1px; height: 16px; background: var(--ink); }

/* command block */
.cmd .ss-code__label { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.cmd__note { text-transform: none; letter-spacing: .02em; }
.copy { border: 0; background: none; padding: 0; cursor: pointer; font: var(--type-label); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-text); }
.copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* findings */
.fds { list-style: none; margin: 0; padding: 0; border-top: var(--line-hair) solid var(--ink); }
.fd { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: var(--line-hair) solid var(--rule); }
.fd__meta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); font: var(--type-data); color: var(--ink-muted); }
.fd__meta .ss-pill { white-space: normal; height: auto; }
.fd__main { min-width: 0; }
.fd h3 { margin: 0; font: var(--type-h3); text-wrap: balance; }
.fd h3 a { color: var(--ink); text-decoration: none; }
.fd h3 a:hover { color: var(--cobalt-text); text-decoration: underline; text-underline-offset: 3px; }
.fd p { margin: var(--space-2) 0 0; font: var(--type-body); max-width: 46rem; }
.fd .fd__rec { font: var(--type-label); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 640px) { .fd { grid-template-columns: minmax(0, 1fr); } .fd__meta { flex-direction: row; align-items: center; flex-wrap: wrap; } }
.fds:not(:has(.fd)) li { padding: var(--space-3) 0; border-bottom: var(--line-hair) solid var(--rule); }
.finding-title { margin: 0; font: var(--type-h1); letter-spacing: -.01em; text-wrap: balance; max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; color: var(--ink-muted); }

/* credits */
.creds { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--line-hair) solid var(--ink); }
.cr { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: var(--line-hair) solid var(--rule); }
.cr h3 { margin: 0; font: var(--type-h3); }
.cr__body { min-width: 0; display: grid; gap: var(--space-2); max-width: 46rem; }
.cr__body p { margin: 0; }
.cr__links { font: var(--type-small); overflow-wrap: anywhere; }
@media (max-width: 640px) { .cr { grid-template-columns: minmax(0, 1fr); } }
.thx { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); max-width: 46rem; }
.thx b { font-weight: 700; }

/* skills */
.sk { display: grid; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: var(--line-hair) solid var(--rule); }
.sk__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); }
.sk h3 { margin: 0; font: var(--type-h3); }
.sk h3 code { font: inherit; font-family: var(--font-mono); }
.sk p { margin: 0; max-width: 46rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); padding-top: var(--space-4); border-top: var(--line-hair) solid var(--ink); }
.steps > li > div { min-width: 0; display: grid; gap: var(--space-3); }
.steps > li > div > * { margin: 0; }
.steps h3 { font: var(--type-h3); }
.steps p { max-width: 46rem; }
.steps__n { color: var(--cobalt-text); }

/* support */
.sup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.sup > * { min-width: 0; }
.sup__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sup__btns .ss-button { display: inline-flex; align-items: center; text-decoration: none; }
a.ss-button { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .sup { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { align-items: flex-start; }
.foot__cols { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.foot__col { display: grid; gap: var(--space-1); align-content: start; font: var(--type-small); }
.foot__col .ss-label { color: var(--ink-muted); margin-bottom: var(--space-1); }
.foot__lic { flex-basis: 100%; color: var(--ink-muted); margin: 0; }
.also { color: var(--ink-muted); }

/* component sheet */
.variant { display: grid; gap: var(--space-2); }
.variant > .ss-label { margin: 0; color: var(--ink-muted); text-transform: none; letter-spacing: .02em; }
.variant > .ss-label b { color: var(--ink); letter-spacing: .14em; text-transform: uppercase; }
.variant__box { border: var(--line-hair) dashed var(--rule); padding: var(--space-4); display: grid; gap: var(--space-4); min-width: 0; }
.variant__box > * { min-width: 0; margin: 0; }
.sup__text { display: grid; gap: var(--space-4); }
.sup__btns { margin: 0; }
.bars--narrow { display: none; }
@media (max-width: 640px) { .bars--wide { display: none; } .bars--narrow { display: block; } }
.fd-x { margin: 0 0 var(--space-2); font: var(--type-h3); }

/* ---------- type voices: Hopscotch for titles, Tick 35 for word labels, Stem 7 replaces Spire ---------- */
@font-face { font-family: "Hopscotch"; src: url("fonts/Hopscotch-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tick 35"; src: url("fonts/Tick35-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
:root { --font-heading: "Hopscotch", "Hoop", system-ui, sans-serif; --font-tick: "Tick 35", "IBM Plex Mono", ui-monospace, monospace; }

/* titles */
.ss-mast { font-family: var(--font-heading); font-weight: 400; font-synthesis: none; text-transform: none; letter-spacing: 0; }
.ss-mast__c { font-family: var(--font-pixel); font-size: 72px; line-height: 80px; -webkit-font-smoothing: none; }
.ss-mast--m { line-height: 56px; }
.ss-mast--m .ss-mast__c { font-size: 32px; line-height: 40px; margin-top: var(--space-2); }
@media (max-width: 560px) { .ss-mast__c { font-size: 48px; line-height: 56px; } .ss-mast--m .ss-mast__c { font-size: 32px; line-height: 40px; } }
.ss-chapter h2, .finding-title, .ss-prose h1, .ss-prose h2 { font-family: var(--font-heading); font-weight: 400; font-synthesis: none; letter-spacing: 0; }
.ss-chapter h2 { line-height: 40px; }
.fd h3, .cr h3, .sk h3, .steps h3, .fd-x { font-family: var(--font-heading); font-weight: 400; font-synthesis: none; line-height: 28px; }
.sk h3 code { font-family: var(--font-heading); }

/* word labels in Tick 35, 16 px only (2 px per cell); numbers stay in Plex Mono or Stem 7 */
.ss-chapter__label, .nav__home, .nav__links a, .foot__col > .ss-label {
  font: 400 16px/16px var(--font-tick); letter-spacing: 0; -webkit-font-smoothing: none; font-synthesis: none; }

/* support alternatives */
.sup-bench { display: grid; gap: var(--space-6); }
.sup-bench > * { margin: 0; min-width: 0; }
.sup-bench .ss-table td b { font-weight: 600; color: var(--ink); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.door { display: grid; gap: var(--space-3); align-content: start; border-top: var(--line-heavy) solid var(--ink); padding-top: var(--space-4); min-width: 0; }
.door > * { margin: 0; }
.door h3 { font: 400 32px/40px var(--font-heading); }
.door__list { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.door__list li { padding-top: var(--space-2); border-top: var(--line-hair) solid var(--rule); }
@media (max-width: 760px) { .doors { grid-template-columns: minmax(0, 1fr); } }
.proof { display: grid; gap: var(--space-6); }
.proof > * { margin: 0; }
.proof__ask { font: var(--type-lead); max-width: 46rem; }
.letter { display: grid; gap: var(--space-6); max-width: 40rem; }
.letter > * { margin: 0; }
.letter .ss-prose p { font: var(--type-lead); }
