/* halden.css — page layout on top of tokens.css. No hand-typed hexes; every colour is a token. */

.page[hidden] { display: none; }
.brand { font: 590 14px/21px var(--ln-font); color: var(--ln-text); text-decoration: none; letter-spacing: 0; }
.mk-h1 .line { display: block; }


/* LIGHT L1: the base takes the product's temperature — 2–3% toward umber for food. A temperature, not a hue; no other token is touched. */
:root { --ln-bg: #0d0b09; }

/* ── header extras ── */
.nav-toggle { display: none; border: 0; background: transparent; padding: 0; color: var(--ln-text-2); cursor: pointer; }
.task-brand { font-size: 14px; line-height: 21px; }

/* ── proof (Ledger): the four days straight on the page, the menu card the only surface ── */
.sched-ledger .ledger-row { grid-template-columns: 300px minmax(0, 1fr); }
.sched-ledger .ledger-row .day small { display: inline-block; margin-left: 16px; font: 400 15px/24px var(--ln-font); letter-spacing: 0; color: var(--ln-text-quiet); font-variant-numeric: tabular-nums; }
.sched-ledger .ledger-row.lit-row .day small { color: var(--ln-text-3); }
.sched-ledger .ledger-row .fig-value { text-wrap: pretty; }
.sched-ledger .ledger-row .fig-value .note { display: block; }
.sched-ledger .ledger-row:first-child { padding-top: 0; }     /* the menu card's top aligns with the first day */
.menu-head { font: 510 13px/19.5px var(--ln-font); color: var(--ln-text-3); padding: 0 0 4px; }
.menu-ledger .ledger-row:last-child { border-bottom: 0; }
.menu-ledger .ledger-link { color: inherit; text-decoration: none; }   /* a loaf row is for sale like the others: secondary, not lit */
.menu-ledger .ledger-link:hover, .menu-ledger .ledger-link:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ln-text-3); }

/* one chapter section, two rows (L7: .mk-section carries the rhythm; .mk-chapter is only the grid) */
.chapter-body { display: flex; flex-direction: column; align-items: flex-start; }
.chapter-row { margin-top: 96px; }
.mk-closing.keyline { margin-top: 0; padding-top: 128px; }
.mk-footer.foot-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 76px 48px; }
.mk-footer.foot-line .foot-note { margin: 0; font: 400 13px/28px var(--ln-font); color: var(--ln-text-3); }
.mk-footer.foot-line .foot-note a { display: inline; height: auto; margin: 0; color: var(--ln-text); }

/* ── task page ── */
.task-header { position: sticky; top: 0; z-index: 10; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--ln-line); background: var(--ln-bg); font: 510 12px/14px var(--ln-font); }
.task-header .scope { color: var(--ln-text-3); }
.task-canvas { max-width: 560px; margin: 0 auto; padding: 40px 16px 96px; }
.task-canvas .description { margin-top: 4px; }
fieldset { border: 0; margin: 32px 0 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font: 510 12px/14px var(--ln-font); color: var(--ln-text-3); }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ln-text-2); cursor: pointer; }
.choice + .choice { margin-top: 2px; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:hover { background: var(--ln-group); }
.choice:has(input:checked) { background: var(--ln-selected); color: var(--ln-text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ln-blue); outline-offset: 2px; }
.radio-mark { width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ln-text-3); display: grid; place-items: center; }
.choice:has(input:checked) .radio-mark { box-shadow: inset 0 0 0 1.5px var(--ln-text); }
.choice:has(input:checked) .radio-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ln-text); }
.choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.choice-name { font: 510 13px/19.5px var(--ln-font); }
.choice-sub { font: 400 12px/16.8px var(--ln-font); color: var(--ln-text-3); }
.choice-price { font: 510 13px/19.5px var(--ln-font); color: var(--ln-text); font-variant-numeric: tabular-nums; }
.loaf-choice { min-height: 56px; padding: 6px 12px; gap: 16px; align-items: baseline; }
.loaf-choice .radio-mark { align-self: baseline; margin-bottom: 2px; }
.loaf-choice .loaf-name { flex: 1; min-width: 0; font: 510 28px/1.1 var(--ln-font); letter-spacing: -0.022em; color: var(--ln-text-2); }   /* every loaf for sale shares one colour; the chosen one is strong */
.loaf-choice:has(input:checked) .loaf-name { color: var(--ln-text); }
.loaf-choice .fig-value { font: 400 15px/24px var(--ln-font); color: var(--ln-text-3); font-variant-numeric: tabular-nums; }
.loaf-choice:has(input:checked) .fig-value { color: var(--ln-text-2); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper .hit-target { border: 0; background: transparent; padding: 0; color: var(--ln-text-2); cursor: pointer; }
.stepper .hit-target:disabled { color: var(--ln-text-quiet); cursor: default; }
.field.qty { width: 56px; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.field.qty::-webkit-outer-spin-button, .field.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-note { margin-left: 8px; font: 400 12px/16.8px var(--ln-font); color: var(--ln-text-3); }
.field.name { width: 100%; }
.field.invalid { border-color: var(--ln-red); }
.error { margin: 6px 0 0; font: 400 12px/16.8px var(--ln-font); color: var(--ln-red); }
.fieldnote { margin: 8px 0 0; font: 400 12px/16.8px var(--ln-font); color: var(--ln-text-3); }
.total { margin-top: 40px; display: flex; flex-direction: column; }
.task-canvas .task-primary-action { margin-top: 16px; }
#order-done .props { margin-top: 24px; }
#order-done .prop .k { width: 96px; }
.done-actions { display: flex; gap: 8px; margin-top: 40px; }
.done-actions .secondary-action { text-decoration: none; }

/* ── phone ── */
@media (max-width: 767px) {
  .mk-nav a:not(.mk-cta) { display: none; }
  .nav-toggle { display: inline-grid; }
  .sched-ledger .ledger-row { grid-template-columns: 1fr; row-gap: 2px; }
  .sched-ledger .ledger-row .day small { margin-left: 10px; font-size: 13px; }
  .chapter-row { margin-top: 64px; }
  .mk-closing.keyline { padding-top: 64px; }
  .mk-footer.foot-line { flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 23px 48px; }
  .loaf-choice .loaf-name { font-size: 24px; }
  .task-header { height: 60px; }
  .field.name, .field.qty { height: 44px; }
  .done-actions .secondary-action { min-height: 44px; }
}

/* in-page targets clear the fixed header */
#week, #menu, #visit, #order { scroll-margin-top: 88px; }

