/* Tasca components: components/bundle.css from the Tasca design system (https://claude.ai/artifact/Xzdp3L3cKxyTfWHMPD9qdJ).
   Unchanged except its Google Fonts import, replaced by the local copies in assets/fonts.css. */

body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); }

/* Root: wrap every Tasca page or panel in .ts-site; put data-theme="dark|light" on it to pick a theme. */
.ts-site { container-type: inline-size; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 24px; }
.ts-site *, .ts-site *::before, .ts-site *::after { box-sizing: border-box; }
.ts-site button { font: inherit; }
.ts-site :focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* SiteHeader + ThemeSwitch */
.ts-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 3px double var(--frame); }
.ts-header__nav { display: flex; gap: var(--space-4); font-size: 13px; line-height: 18px; }
.ts-header__nav a { color: var(--ink-muted); text-decoration: none; }
.ts-header__nav a:hover { color: var(--ink); }
.ts-header__logo { font-family: var(--font-display); font-size: 28px; line-height: 32px; color: var(--ink); text-decoration: none; text-align: center; }
.ts-theme { justify-self: end; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--frame); border-radius: var(--radius-full); }
.ts-theme button { appearance: none; border: 0; margin: 0; padding: 0; width: 34px; height: 28px; border-radius: var(--radius-full); display: grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer; }
.ts-theme button:hover { background: var(--surface-hover); }
.ts-theme button[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent-fill); }
.ts-theme svg { width: 16px; height: 16px; }

/* RecipeHero */
.ts-page { max-width: var(--layout-max); margin: 0 auto; padding: 0 var(--space-5); }
.ts-hero { text-align: center; padding: var(--space-6) 0 0; }
.ts-kicker { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.ts-title { margin: var(--space-2) 0 var(--space-3); font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 40px; color: var(--ink); text-wrap: balance; }
.ts-lede { margin: 0 auto var(--space-3); max-width: var(--layout-measure); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ts-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Photo */
.ts-photo { position: relative; margin: 0; overflow: hidden; background: var(--surface-photo); color: var(--ink-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); padding: 0 var(--space-6); text-align: center; font-size: 12px; line-height: 16px; }
.ts-photo svg { width: 26px; height: 26px; }
.ts-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-photo--framed::after { content: ""; position: absolute; inset: var(--space-3); border: 1px solid var(--frame); pointer-events: none; }
.ts-photo--hero { margin-top: var(--space-5); height: var(--size-hero-phone); }
.ts-photo--step { margin-top: var(--space-3); aspect-ratio: 16 / 10; }

/* ServingsStepper + UnitToggle */
.ts-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); padding: var(--space-5) 0 var(--space-3); }
.ts-stepper, .ts-units { display: inline-flex; align-items: center; border: 1px solid var(--frame); background: var(--surface); }
.ts-stepper button, .ts-units button { appearance: none; border: 0; margin: 0; background: transparent; color: var(--ink); height: var(--size-control); cursor: pointer; }
.ts-stepper button { width: var(--size-control); padding: 0; font-size: 20px; line-height: 1; }
.ts-units button { padding: 0 var(--space-4); font-size: 13px; line-height: 18px; font-weight: 600; }
.ts-stepper button:hover, .ts-units button:hover { background: var(--surface-hover); }
.ts-units button[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent-fill); }
.ts-stepper output { min-width: 96px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; }

/* Recipe body */
.ts-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: var(--space-3) 0 var(--space-7); }
.ts-heading { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 28px; color: var(--ink); }

/* IngredientList */
.ts-ingredients { list-style: none; margin: 0; padding: 0; }
.ts-ingredient label { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px dotted var(--rule); cursor: pointer; }
.ts-ingredient input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ts-ingredient__qty { flex: 0 0 auto; max-width: 45%; text-align: right; font-weight: 600; color: var(--accent); }
.ts-ingredient input:checked ~ span { text-decoration: line-through; color: var(--ink-muted); }
.ts-ingredient label:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.ts-note { margin: var(--space-3) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* TipNote */
.ts-tip { margin: var(--space-4) 0 0; padding: var(--space-3); border: 1px solid var(--frame); font-size: 14px; line-height: 21px; }
.ts-tip__label { margin-right: 6px; font-weight: 600; color: var(--accent); }

/* MethodStep */
.ts-method { list-style: none; margin: 0; padding: 0; counter-reset: ts-step; }
.ts-step { counter-increment: ts-step; display: grid; grid-template-columns: var(--size-badge) minmax(0, 1fr); gap: var(--space-3); padding: 0 0 var(--space-5); }
.ts-step::before { content: counter(ts-step); width: var(--size-badge); height: var(--size-badge); border-radius: var(--radius-full); background: var(--accent-fill); color: var(--on-accent-fill); display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 16px; font-variant-numeric: tabular-nums; }
.ts-step__text { margin: 0; padding-top: 4px; }
.ts-q { font-weight: 600; color: var(--accent); }

/* The one breakpoint: layout-split (520px) */
@container (max-width: 519.98px) {
  .ts-header { grid-template-columns: minmax(0, 1fr) auto; }
  .ts-header__nav { display: none; }
  .ts-header__logo { text-align: left; }
}
@container (min-width: 520px) {
  .ts-title { font-size: 50px; line-height: 52px; }
  .ts-photo--hero { height: var(--size-hero); }
  .ts-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

/* Preview scaffolding (design-system cards only) */
.ts-demo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ts-demo-stack { display: grid; }
.ts-demo { padding: var(--space-5); }
.ts-demo-label { margin: 0 0 var(--space-3); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.ts-demo-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
