/* ==========================================================================
   Cook Without a Recipe — stylesheet

   Palette is cast iron on a steel bench: ash-green neutrals, a steel blue at
   the cold end of the heat ladder and an ember orange at the hot end. Both
   themes are defined token-level on :root, so a colour is never declared only
   inside a media query.

   Type: Bricolage Grotesque (display), Newsreader (body), IBM Plex Mono (every
   number — temperatures, grams, ratios, timers).
   ========================================================================== */

:root {
  --ground:    #E7E9E4;
  --surface:   #F3F5F0;
  --surface-2: #DCDFD7;
  --line:      #C6CABF;
  --line-soft: #D6DACF;
  --ink:       #171A16;
  --ink-2:     #4E554C;
  --ink-3:     #767F73;
  --ember:     #C33C14;
  --ember-ink: #A5330F;
  --flame:     #B57A1B;
  --steel:     #35657A;
  --leaf:      #436D38;
  --on-accent: #FBFCFA;
  --tint:      rgba(195, 60, 20, .09);
  --tint-2:    rgba(53, 101, 122, .10);
  --tint-3:    rgba(67, 109, 56, .11);
  --shadow:    0 1px 2px rgba(23,26,22,.06), 0 10px 26px -18px rgba(23,26,22,.5);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --headh: 57px;
  --shelfh: 38px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:#101210; --surface:#191C18; --surface-2:#232720;
    --line:#343A31; --line-soft:#292E26;
    --ink:#E9EBE4; --ink-2:#A9B0A4; --ink-3:#848C7F;
    --ember:#FF6E3C; --ember-ink:#FF8557; --flame:#EFAC50; --steel:#6FAAC0; --leaf:#8CC077;
    --on-accent:#14160F;
    --tint:rgba(255,110,60,.12); --tint-2:rgba(111,170,192,.13); --tint-3:rgba(140,192,119,.13);
    --shadow:0 1px 2px rgba(0,0,0,.45), 0 12px 30px -20px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"] {
  --ground:#101210; --surface:#191C18; --surface-2:#232720;
  --line:#343A31; --line-soft:#292E26;
  --ink:#E9EBE4; --ink-2:#A9B0A4; --ink-3:#848C7F;
  --ember:#FF6E3C; --ember-ink:#FF8557; --flame:#EFAC50; --steel:#6FAAC0; --leaf:#8CC077;
  --on-accent:#14160F;
  --tint:rgba(255,110,60,.12); --tint-2:rgba(111,170,192,.13); --tint-3:rgba(140,192,119,.13);
  --shadow:0 1px 2px rgba(0,0,0,.45), 0 12px 30px -20px rgba(0,0,0,.9);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.022em; line-height: 1.07; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--ember-ink); }
button { font: inherit; color: inherit; }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.lbl { font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hint { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }
.note { font-size: .92rem; color: var(--ink-2); }
.note b { font-family: var(--f-display); color: var(--ink); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: .4rem; z-index: 99; background: var(--ember); color: var(--on-accent); padding: .4rem .7rem; border-radius: 6px; }

/* ==========================================================================
   Masthead + running-timer strip
   ========================================================================== */
/* Site switcher for the four sites in this folder. Sticky above the masthead
   and at real link size — the first version was 11px at 72% opacity, which read
   as decorative chrome rather than navigation, and scrolled away besides. */
.shelf {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: var(--ground);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.shelf-in { display: flex; align-items: center; gap: 1.05rem; min-height: var(--shelfh); overflow-x: auto; scrollbar-width: none; }
.shelf-in::-webkit-scrollbar { display: none; }
.shelf-lbl {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ground) 50%, transparent); flex: none;
}
.shelf-in a, .shelf-here {
  font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: -0.01em;
  white-space: nowrap; flex: none; padding-block: .5rem;
}
.shelf-in a {
  color: var(--ground); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ground) 40%, transparent);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.shelf-in a:hover { color: var(--flame); text-decoration-color: var(--flame); }
.shelf-here { color: var(--ember); }
.shelf-here::before { content: "\25CF "; font-size: .6em; vertical-align: .28em; }
.shelf-in a:focus-visible { outline-color: var(--ground); }

/* At 375px the four names need more width than there is, which clipped the last
   one. Dropping the label and trimming the longest name keeps all four in view. */
@media (max-width: 560px) {
  .shelf-lbl, .s-long { display: none; }
  .shelf-in { gap: .95rem; }
  .shelf-in a, .shelf-here { font-size: .78rem; }
}

.masthead {
  position: sticky; top: calc(var(--shelfh) + env(safe-area-inset-top)); z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mast-in { display: flex; align-items: center; gap: 1.2rem; min-height: var(--headh); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; flex: none; }
.brand svg { flex: none; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: .96rem; letter-spacing: -0.03em; white-space: nowrap; }
.sitenav { display: flex; gap: .2rem; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sitenav::-webkit-scrollbar { display: none; }
.navlink {
  font-family: var(--f-display); font-weight: 700; font-size: .88rem; letter-spacing: -0.01em;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: .42rem .6rem; border-radius: 6px;
}
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--tint); color: var(--ember-ink); }

/* On a phone the full wordmark eats half the bar and pushes two of the four
   nav links out of sight. Below 560px it becomes "Cook" — which is the app's
   short_name anyway — and all four pages stay reachable without a sideways
   swipe. */
@media (max-width: 560px) {
  .brand-rest { display: none; }
  .navlink { padding: .42rem .48rem; font-size: .85rem; }
  .mast-in { gap: .6rem; }
}

.tstrip { position: sticky; top: calc(var(--shelfh) + var(--headh) + env(safe-area-inset-top)); z-index: 45; border-bottom: 1px solid var(--line); background: var(--surface); }
.tstrip[hidden] { display: none; }
.tstrip-in { display: flex; align-items: center; gap: .55rem; padding-block: .42rem; overflow-x: auto; scrollbar-width: none; }
.tstrip-in::-webkit-scrollbar { display: none; }
.tstrip .lbl { flex: none; }
.tstrip-list { display: flex; gap: .5rem; }
.tpill {
  display: inline-flex; align-items: baseline; gap: .45rem; flex: none;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem;
  background: var(--ground); text-decoration: none; color: inherit;
  font-family: var(--f-mono); font-size: .78rem;
}
.tpill b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tpill.done { border-color: var(--ember); background: var(--tint); color: var(--ember-ink); }

/* ==========================================================================
   Page scaffold
   ========================================================================== */
.page { padding-block: clamp(2rem, 5vw, 3.4rem) clamp(2.5rem, 6vw, 4rem); }
.pagehead { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.pagehead .lbl { display: block; margin-bottom: .7rem; }
.pagehead h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 20ch; }
.pagehead p { margin-top: .8rem; color: var(--ink-2); max-width: 62ch; font-size: 1.06rem; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.8rem); max-width: 16ch; }
.hero h1 .hot { color: var(--ember); }
.hero p.lede { margin-top: 1rem; font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--ink-2); max-width: 56ch; }

.stack { display: flex; flex-direction: column; gap: clamp(1.3rem, 3vw, 2rem); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; align-items: start; }

.blockhead { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.blockhead h2 { font-size: 1.28rem; }
.blockhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 1.1rem 1.1rem 1.25rem; }
.card > h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.card > .sub { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }

.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.seccard {
  display: flex; flex-direction: column; gap: .35rem;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  padding: 1.05rem 1.1rem 1.2rem; text-decoration: none; color: inherit;
}
.seccard:hover { border-color: var(--ember); }
.seccard .lbl { color: var(--ember-ink); }
.seccard h3 { font-size: 1.18rem; }
.seccard p { font-size: .93rem; color: var(--ink-2); }
.seccard .go { margin-top: auto; padding-top: .7rem; font-family: var(--f-mono); font-size: .74rem; color: var(--ember-ink); }

.pagenav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line); }
.pagenav a { text-decoration: none; color: inherit; display: block; max-width: 22rem; }
.pagenav a:hover h4 { color: var(--ember-ink); }
.pagenav .lbl { display: block; margin-bottom: .2rem; }
.pagenav h4 { font-size: 1.02rem; }
.pagenav .r { text-align: right; margin-left: auto; }

/* ==========================================================================
   Controls
   ========================================================================== */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; cursor: pointer; border-radius: 5px; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; padding: .3rem .62rem; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ember); color: var(--on-accent); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--line); background: var(--ground); cursor: pointer; border-radius: 999px; padding: .35rem .72rem; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--ember); color: var(--ember-ink); }
.chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--on-accent); }

.numin { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 1.1rem; font-weight: 600; background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .42rem .55rem; width: 100%; }
.numin::-webkit-outer-spin-button, .numin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numin[type=number] { -moz-appearance: textfield; }
select.numin { font-size: .93rem; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: .3rem; }

.big { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2rem, 5.5vw, 2.7rem); color: var(--ember); }
.big u { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: .2rem; }

.btn { border: 1px solid var(--ember); background: var(--ember); color: var(--on-accent); cursor: pointer; border-radius: 6px; padding: .42rem .85rem; font-family: var(--f-display); font-weight: 700; font-size: .87rem; text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: none; color: var(--ember-ink); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }

/* ==========================================================================
   Install / offline
   ========================================================================== */
.install { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 1.15rem 1.15rem 1.3rem; }
.install h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.install > p { font-size: .94rem; color: var(--ink-2); max-width: 58ch; }
.installrow { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1rem; }
.installrow .hint { max-width: 42ch; line-height: 1.6; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .9rem 1.6rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.howto h4 { font-size: .92rem; margin-bottom: .15rem; }
.howto p { font-size: .87rem; color: var(--ink-2); }
.howto kbd { font-family: var(--f-mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 .28rem; }
.installed-flag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .74rem; color: var(--leaf); }

/* the install pitch is pointless once you are already inside the installed app */
@media (display-mode: standalone) {
  .install { display: none; }
}

/* ==========================================================================
   Search
   ========================================================================== */
.searchwrap { position: relative; }
.searchwrap svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
#q { width: 100%; padding: .88rem .9rem .88rem 2.6rem; font-family: var(--f-display); font-size: 1.05rem; font-weight: 500; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
#q::placeholder { color: var(--ink-3); font-weight: 500; }
#q:focus { border-color: var(--ember); }
.results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); margin-top: 1rem; }
.results[hidden] { display: none; }
.res { display: grid; grid-template-columns: 5.6rem minmax(0,1fr); gap: .9rem; align-items: baseline; padding: .7rem .95rem; border: 0; border-top: 1px solid var(--line-soft); background: none; text-align: left; width: 100%; text-decoration: none; color: inherit; }
.res:first-child { border-top: 0; }
.res:hover { background: var(--tint); }
.res b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .84rem; font-weight: 600; color: var(--ember-ink); white-space: nowrap; }
.res span { font-size: .95rem; }
.res span i { display: block; font-style: normal; font-size: .68rem; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-top: .15rem; }
.nores { padding: 1rem .95rem; color: var(--ink-3); font-size: .92rem; }

/* ==========================================================================
   Timers
   ========================================================================== */
.timers { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .95rem; }
.timer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem 1rem; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: .7rem .8rem .8rem; background: var(--ground); }
.timer.done { border-color: var(--ember); background: var(--tint); }
.timer .tname { font-family: var(--f-display); font-weight: 700; font-size: .93rem; }
.timer .tleft { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.timer.done .tleft { color: var(--ember); }
.timer .tbtns { display: flex; gap: .35rem; }
.tbtn { border: 1px solid var(--line); background: var(--surface); cursor: pointer; border-radius: 6px; padding: .32rem .6rem; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); }
.tbtn:hover { border-color: var(--ember); color: var(--ember-ink); }
.tbar { grid-column: 1 / -1; height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--flame); border-radius: 2px; }
.timer.done .tbar i { background: var(--ember); }
.newtimer { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.newtimer input[type=text] { font-family: var(--f-body); font-size: .95rem; background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .55rem; flex: 1 1 9rem; min-width: 0; }
.newtimer input[type=number] { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .95rem; font-weight: 600; width: 4.2rem; background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .5rem; }

/* ==========================================================================
   Tiles
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .6rem; }
.tile { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: .85rem .9rem .95rem; text-align: left; display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--ember); }
.tile b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 1.34rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.tile span { font-size: .84rem; color: var(--ink-2); line-height: 1.42; }
.tile:nth-child(4n+1) b { color: var(--steel); }
.tile:nth-child(4n+2) b { color: var(--leaf); }
.tile:nth-child(4n+3) b { color: var(--flame); }
.tile:nth-child(4n+4) b { color: var(--ember); }

.nextup { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 10px; padding: .9rem 1rem; }
.nextup .lbl { display: block; margin-bottom: .15rem; }
.nextup b { font-family: var(--f-display); font-size: 1.05rem; }
.nextup p { font-size: .9rem; color: var(--ink-2); max-width: 48ch; }

/* ==========================================================================
   Heat ladder
   ========================================================================== */
.ladderwrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 1.2rem; align-items: start; }
@media (max-width: 800px) { .ladderwrap { grid-template-columns: 1fr; } }
.ladder { display: grid; grid-template-columns: 46px 12px minmax(0,1fr); grid-template-rows: 40fr 30fr 30fr 30fr 20fr 15fr 15fr 10fr; height: clamp(440px, 62vh, 640px); column-gap: 9px; }
.axis { grid-column: 1; grid-row: 1 / -1; position: relative; }
.axis span { position: absolute; right: 0; transform: translateY(-50%); font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .68rem; color: var(--ink-3); letter-spacing: -0.02em; }
.rail-g { grid-column: 2; grid-row: 1 / -1; border-radius: 6px; background: linear-gradient(to top, var(--steel) 0%, color-mix(in srgb, var(--steel) 45%, var(--flame)) 42%, var(--flame) 68%, var(--ember) 100%); }
.rung { grid-column: 3; border: 1px solid var(--line); border-left: 3px solid var(--line); background: var(--surface); border-radius: 0 8px 8px 0; text-align: left; padding: .25rem .75rem; margin-bottom: 3px; cursor: pointer; display: flex; align-items: center; gap: .6rem; overflow: hidden; transition: background .15s, border-color .15s, transform .15s; }
.rung:last-of-type { margin-bottom: 0; }
.rung:hover { border-left-color: var(--ember); transform: translateX(2px); }
.rung[aria-pressed="true"] { background: var(--tint); border-color: color-mix(in srgb, var(--ember) 40%, var(--line)); border-left-color: var(--ember); }
.rung .rt { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .72rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.rung[aria-pressed="true"] .rt { color: var(--ember-ink); }
.rung .rn { font-family: var(--f-display); font-weight: 700; font-size: .87rem; line-height: 1.15; letter-spacing: -0.015em; }

.bandpanel { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 1.1rem 1.1rem 1.2rem; box-shadow: var(--shadow); }
.bandpanel .p-range { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-ink); }
.bandpanel h3 { font-size: 1.2rem; margin: .35rem 0 .55rem; }
.bandpanel .p-body { font-size: .98rem; color: var(--ink-2); }
.marks { list-style: none; margin: .95rem 0 0; padding: 0; }
.marks li { display: grid; grid-template-columns: 5.8rem minmax(0,1fr); gap: .8rem; padding-block: .52rem; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.marks li b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.marks li span { color: var(--ink-2); }
.p-do { margin-top: 1rem; padding: .8rem .9rem; background: var(--tint-2); border-left: 3px solid var(--steel); border-radius: 0 7px 7px 0; font-size: .92rem; }
.p-do b { display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); margin-bottom: .2rem; }

.pull { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.pullout { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 2rem; border-top: 1px solid var(--line); padding-top: .95rem; }
.pullout .arrowto { font-family: var(--f-mono); color: var(--ink-3); font-size: 1.3rem; padding-bottom: .3rem; }
.pullout .final { color: var(--ink); }

/* ==========================================================================
   Salt / ratios
   ========================================================================== */
.rows { list-style: none; margin: .8rem 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .44rem; border-top: 1px dashed var(--line); font-size: .93rem; color: var(--ink-2); }
.rows li b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.parts { display: flex; flex-direction: column; gap: .5rem; margin-top: .95rem; }
.part { display: grid; grid-template-columns: minmax(0,1fr) 7.8rem 2.2rem; gap: .5rem; align-items: center; }
.part label { font-size: .95rem; }
.part label em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); display: block; letter-spacing: .05em; }
.part .u { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }

/* ==========================================================================
   Learn
   ========================================================================== */
.progbar { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.progbar .track { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progbar .track i { display: block; height: 100%; background: var(--leaf); border-radius: 3px; transition: width .25s ease; }
.progbar .n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.progbar button { border: 0; background: none; cursor: pointer; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 0 0 1px; }
.progbar button:hover { color: var(--ember-ink); border-bottom-color: var(--ember); }

.moves { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.move { border-top: 1px solid var(--line-soft); }
.move:first-child { border-top: 0; }
.mrow { display: flex; align-items: center; gap: .5rem; }
.mrow:hover { background: var(--tint); }
.mhead { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 2.1rem minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: .85rem .5rem .85rem .95rem; background: none; border: 0; cursor: pointer; text-align: left; }
.mhead .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.mhead h4 { font-size: 1rem; }
.mhead .caret { color: var(--ink-3); transition: transform .18s ease; }
.move.open .mhead .caret { transform: rotate(90deg); }
.mrow .tick { flex: none; margin-right: .95rem; }
.mbody { padding: 0 .95rem 1.1rem 3.8rem; }
.mbody[hidden] { display: none; }
.mbody p.what { font-size: .96rem; color: var(--ink-2); max-width: 62ch; }
.cues { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.5rem; margin-top: .75rem; }
.cue { font-size: .9rem; }
.cue b { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .05rem; }
.cue.good b { color: var(--leaf); }
.cue.bad b { color: var(--ember-ink); }
.cue span { color: var(--ink-2); }

.tick { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .28rem .58rem .28rem .44rem; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.tick i { width: 12px; height: 12px; border: 1.5px solid var(--ink-3); border-radius: 3px; display: block; position: relative; }
.tick:hover { border-color: var(--leaf); color: var(--leaf); }
.tick[aria-pressed="true"] { color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 50%, var(--line)); background: var(--tint-3); }
.tick[aria-pressed="true"] i { background: var(--leaf); border-color: var(--leaf); }
.tick[aria-pressed="true"] i::after { content: ""; position: absolute; left: 3px; top: .4px; width: 3.2px; height: 6.4px; border: solid var(--surface); border-width: 0 1.7px 1.7px 0; transform: rotate(42deg); }
@media (max-width: 560px) {
  .mrow { flex-wrap: wrap; }
  .mhead { flex: 1 1 100%; grid-template-columns: 1.9rem minmax(0,1fr) auto; padding-bottom: .5rem; }
  .mrow .tick { margin: 0 .95rem .85rem 2.8rem; }
  .mbody { padding-left: 1rem; }
}

.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: .85rem; }
.dial { border: 1px solid var(--line); border-radius: 10px; padding: .85rem .9rem .95rem; background: var(--surface); }
.dial h4 { font-size: 1rem; margin-bottom: .25rem; }
.dial p { font-size: .89rem; color: var(--ink-2); }
.dial .rule { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed var(--line); font-family: var(--f-mono); font-size: .75rem; line-height: 1.55; color: var(--ink); }

.weeks { list-style: none; margin: 0; padding: 0; }
.week { display: grid; grid-template-columns: 4.6rem minmax(0,1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line-soft); }
.week:first-child { border-top: 0; }
.week .wk { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: .25rem; }
.week h4 { font-size: 1rem; margin-bottom: .2rem; }
.week p { font-size: .9rem; color: var(--ink-2); }
.week .drills { font-size: .86rem; color: var(--ink-2); border-left: 2px solid var(--flame); padding-left: .65rem; margin-top: .45rem; }
.week .drills b { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); display: block; }

details.disc { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
details.disc > summary { cursor: pointer; padding: .85rem 1rem; font-family: var(--f-display); font-weight: 700; font-size: .97rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details.disc > summary::-webkit-details-marker { display: none; }
details.disc > summary::after { content: "+"; font-family: var(--f-mono); color: var(--ink-3); }
details.disc[open] > summary::after { content: "\2013"; }
details.disc .discbody { padding: 0 1rem 1.1rem; }
.kitlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: .85rem 1.5rem; }
.kitlist h5 { font-size: .94rem; margin: 0 0 .12rem; }
.kitlist h5 em { font-style: normal; font-family: var(--f-mono); font-size: .64rem; color: var(--ink-3); letter-spacing: .05em; margin-left: .35rem; }
.kitlist p { font-size: .87rem; color: var(--ink-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.sitefoot { border-top: 1px solid var(--line); background: var(--surface); padding-block: clamp(2rem, 5vw, 3rem); padding-bottom: calc(clamp(2rem, 5vw, 3rem) + env(safe-area-inset-bottom)); }
.footgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.8rem; }
.sitefoot h4 { font-family: var(--f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .65rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { padding-block: .2rem; font-size: .92rem; color: var(--ink-2); }
.sitefoot li b { color: var(--ink); font-family: var(--f-display); font-weight: 700; }
.sitefoot li a { color: var(--ink-2); text-decoration: none; }
.sitefoot li a:hover { color: var(--ember-ink); }
.colophon { font-size: .88rem; color: var(--ink-3); max-width: 42ch; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rung:hover { transform: none; }
}
