/* Static recipe, Creami collection, editorial guide and calculator pages. */
.static-main {
  min-height: 62vh;
  --paper: var(--bg);
  --panel: var(--surface);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --line-soft: var(--border);
  --label: var(--text);
  --sans: var(--font-body);
  --serif: var(--font-display);
  --mint: var(--surface-tint);
  --mint-2: var(--surface-raised);
  --good: var(--success);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: var(--accent); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.creami-hub-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg) 0%, var(--surface-tint) 100%);
  padding: clamp(32px, 6vw, 78px) 0;
}
.creami-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.creami-hub-grid h1 { max-width: 780px; margin: 12px 0 18px; font-family: var(--font-display); font-size: clamp(44px, 6.3vw, 78px); font-weight: 650; letter-spacing: -.045em; line-height: .98; }
.creami-hub-grid .hero-support { max-width: 680px; margin: 0; color: var(--text-muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.creami-hub-image { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-xl); }
.creami-hub-image img { width: 100%; height: 100%; object-fit: cover; }
.creami-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.creami-proof span { border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent); padding: 8px 11px; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.creami-browser { padding-top: clamp(36px, 6vw, 72px); }
.family-strip { margin-bottom: 10px; }
.creami-quick-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 36px; }
.creami-quick-links a { color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.creami-quick-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.creami-family { content-visibility: visible; contain-intrinsic-size: auto; }
.creami-family[hidden], [data-creami-card][hidden] { display: none !important; }
.family-description { max-width: 670px; margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card { display: flex; min-height: 230px; flex-direction: column; text-decoration: none; }
.resource-card h3 { margin: 10px 0 8px; color: var(--text); font-family: var(--font-display); font-size: 27px; line-height: 1.04; }
.resource-card p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.resource-link { margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 13px; font-weight: 850; }

.source-content { padding-bottom: clamp(54px, 8vw, 96px); }
.source-content .wrap,
.source-content .wrap-article,
.source-content .wrap-narrow { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.source-content .wrap-article { max-width: 820px; }
.source-content .wrap-narrow { max-width: 760px; }
.source-content .crumbs { display: flex; align-items: center; gap: 8px; padding-top: 22px; color: var(--text-muted); font-size: 13px; }
.source-content .crumbs a { color: var(--accent); font-weight: 750; text-decoration: none; }
.source-content .display { max-width: 820px; font-family: var(--font-display); font-weight: 650; letter-spacing: -.04em; line-height: 1.02; }
.source-content .deck { max-width: 790px; margin: 0; color: var(--text-muted); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.65; }
.source-content .rp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-muted); font-size: 12px; }
.source-content .prose { color: var(--text); font-size: 17px; line-height: 1.78; }
.source-content .prose > p,
.source-content .prose > ul,
.source-content .prose > ol { margin: 1em 0; }
.source-content .prose h2 { margin: 2.1em 0 .65em; font-family: var(--font-display); font-size: clamp(29px, 4vw, 42px); letter-spacing: -.03em; line-height: 1.08; }
.source-content .prose h3 { margin: 1.7em 0 .55em; font-family: var(--font-display); font-size: clamp(22px, 3vw, 29px); line-height: 1.15; }
.source-content .prose a,
.source-content .text-link { color: var(--accent); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-content .prose li { margin: .45em 0; }
.source-content .pullwrap,
.source-content .note,
.source-content .swapbox { margin: 28px 0; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface-tint); padding: 20px 22px; }
.source-content .pullwrap .pq { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 3vw, 28px); font-weight: 600; line-height: 1.35; }
.source-content .note.mint { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.source-content .cite { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.source-content .table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.source-content table { width: 100%; min-width: 620px; border-collapse: collapse; }
.source-content th,
.source-content td { border-bottom: 1px solid var(--border); padding: 13px 15px; text-align: left; vertical-align: top; }
.source-content th { background: var(--surface-tint); color: var(--text); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.source-content tr:last-child td { border-bottom: 0; }
.source-content .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.source-content .card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 20px; color: var(--text); text-decoration: none; }
.source-content .card:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.source-content .card h2,
.source-content .card h3 { margin: 8px 0; font-family: var(--font-display); line-height: 1.08; }
.source-content .card .desc { color: var(--text-muted); line-height: 1.55; }
.source-content .fam { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.source-content .macro-row { flex-wrap: wrap; }
.source-content .macro { border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 800; }
.source-content .macro small { color: var(--text-muted); font-size: 9px; font-weight: 700; }
.source-content .btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); padding: 9px 15px; color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; }
.source-content .btn.ghost { background: transparent; color: var(--accent); }
.source-content .btn.small { min-height: 36px; padding: 7px 12px; }
.source-content .rp-cols { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 26px; align-items: start; }
.source-content .rp-sticky { position: sticky; top: calc(var(--header-height) + 22px); }
.source-content .panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 20px; }
.source-content .panel h2,
.source-content .panel h3 { margin-top: 0; font-family: var(--font-display); }
.source-content .ings { display: grid; gap: 4px; }
.source-content .ings .g { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 850; }
.source-content .ings .nrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-bottom: 1px solid var(--border); padding: 11px 4px; cursor: pointer; }
.source-content .ings .nrow.done { opacity: .52; text-decoration: line-through; }
.source-content .scaler { display: inline-flex; align-items: center; gap: 8px; }
.source-content .scaler .srv { min-width: 90px; text-align: center; }
.source-content .steps { padding-left: 0; list-style: none; counter-reset: step; }
.source-content .steps li { position: relative; min-height: 36px; margin: 14px 0; padding-left: 44px; counter-increment: step; }
.source-content .steps li::before { position: absolute; left: 0; top: -2px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); content: counter(step); font-size: 12px; font-weight: 900; }
.source-content .faq { display: grid; gap: 10px; }
.source-content .faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.source-content .faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; }
.source-content .faq-a { border-top: 1px solid var(--border); padding: 2px 18px 16px; color: var(--text-muted); line-height: 1.65; }
.source-content .cal { padding-top: 28px; }
.source-content .cal label,
.source-content .panel label { display: block; color: var(--text); font-size: 13px; font-weight: 800; }
.source-content .cal input,
.source-content .cal select,
.source-content .panel input,
.source-content .panel select { width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 9px 11px; color: var(--text); font: inherit; }
.source-content .cw { max-width: 820px; }
.source-content .nrow,
.source-content .nnote { display: grid; gap: 12px; }
.source-content .nlabel { color: var(--text-muted); font-size: 12px; font-weight: 750; }
.source-content .sv { color: var(--accent); font-size: clamp(24px, 4vw, 42px); font-weight: 900; }
.source-content .nt { color: var(--text-muted); }
.calculator-stat { display: flex; min-width: 145px; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-tint); padding: 14px; }
.calculator-stat strong { font-family: var(--font-display); font-size: 28px; }
.calculator-stat span { color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
#costOut { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#cOut .is-saving { color: var(--success); font-weight: 850; }
.static-main .calc-note { margin-top: 12px; color: var(--text-muted); font-size: .86rem; line-height: 1.65; }

.creami-home-feature { border-block: 1px solid var(--border); background: var(--surface-tint); padding: clamp(34px, 6vw, 72px) 0; }
.creami-home-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); gap: clamp(30px, 6vw, 76px); align-items: center; }
.creami-home-copy h2 { max-width: 680px; margin: 10px 0 14px; font-family: var(--font-display); font-size: clamp(35px, 5vw, 58px); letter-spacing: -.04em; line-height: 1.02; }
.creami-home-copy > p { max-width: 680px; margin: 0; color: var(--text-muted); font-size: 17px; line-height: 1.65; }
.creami-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.creami-home-actions a { text-decoration: none; }
.creami-home-image { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-xl); }
.creami-home-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.creami-home-image:hover img { transform: scale(1.025); }

/* Deterministic Creami formula wizard. */
.creami-wizard-page { --wizard-error: #9d2c1d; }
.creami-wizard-page [hidden] { display: none !important; }
html[data-theme="dark"] .creami-wizard-page { --wizard-error: #ffad94; }
.wizard-intro { border-bottom: 1px solid var(--border); background: linear-gradient(145deg, var(--bg), var(--surface-tint)); padding: clamp(28px, 5vw, 66px) 0 clamp(34px, 6vw, 74px); }
.wizard-intro h1 { max-width: 900px; margin: 12px 0 16px; font-family: var(--font-display); font-size: clamp(42px, 6.4vw, 76px); font-weight: 650; letter-spacing: -.045em; line-height: .98; }
.wizard-deck { max-width: 760px; margin: 0; color: var(--text-muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.wizard-method-note { max-width: 850px; margin-top: 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: color-mix(in srgb, var(--surface) 84%, transparent); padding: 16px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.wizard-method-note strong { color: var(--text); }
.wizard-lab { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 58px); align-items: start; padding-block: clamp(34px, 6vw, 72px); }
.wizard-form,
.wizard-empty,
.wizard-result { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.wizard-form { padding: clamp(18px, 2.6vw, 30px); }
.wizard-form-heading { margin-bottom: 28px; }
.wizard-form-heading h2,
.wizard-empty h2,
.wizard-result-header h2,
.wizard-how h2 { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; }
.wizard-form-heading h2 { font-size: 36px; }
.wizard-form-heading p,
.wizard-empty p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.wizard-field { min-width: 0; margin: 0; border: 0; border-top: 1px solid var(--border); padding: 23px 0 0; }
.wizard-field + .wizard-field { margin-top: 23px; }
.wizard-field legend,
.wizard-text-field > label { display: flex; align-items: baseline; gap: 8px; padding: 0; color: var(--text); font-size: 15px; font-weight: 850; }
.wizard-text-field > label span { color: var(--text-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.wizard-help { margin: 4px 0 11px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.wizard-options { display: grid; gap: 8px; }
.wizard-options-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard-flavor-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard-mixin-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard-option { display: flex; min-width: 0; min-height: 54px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); padding: 10px 11px; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
.wizard-option:hover { border-color: color-mix(in srgb, var(--accent) 54%, var(--border)); }
.wizard-option:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent); }
.wizard-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--focus-ring) 45%, transparent); outline-offset: 2px; }
.wizard-option:has(input[aria-invalid="true"]) { border-color: var(--wizard-error); }
.wizard-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.wizard-option span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.wizard-option strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.wizard-option small { color: var(--text-muted); font-size: 10px; line-height: 1.25; }
.wizard-text-field input { width: 100%; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg); padding: 11px 13px; color: var(--text); font: inherit; }
.wizard-text-field input:focus-visible { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--focus-ring) 38%, transparent); outline-offset: 1px; }
.wizard-text-field input[aria-invalid="true"] { border-color: var(--wizard-error); }
.wizard-input-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--text-muted); font-size: 10px; }
.wizard-input-meta output { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.wizard-error { margin: 8px 0 0; color: var(--wizard-error); font-size: 12px; font-weight: 750; line-height: 1.45; }
.wizard-submit { width: 100%; min-height: 50px; margin-top: 26px; }
.wizard-form-note { margin: 10px 4px 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.wizard-output-column { position: sticky; top: calc(var(--header-height) + 22px); min-width: 0; }
.wizard-empty { min-height: 460px; padding: clamp(24px, 4vw, 42px); }
.wizard-empty h2 { max-width: 520px; font-size: clamp(34px, 4vw, 50px); }
.wizard-empty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.wizard-empty-grid span { display: block; min-height: 78px; border: 1px solid var(--border); border-radius: var(--radius-md); background: linear-gradient(105deg, var(--surface-raised), var(--surface), var(--surface-raised)); }
.wizard-result { scroll-margin-top: 5rem; overflow: hidden; }
.wizard-result-header { border-bottom: 1px solid var(--border); background: var(--surface-tint); padding: clamp(22px, 3.2vw, 34px); }
.wizard-result-header h2 { margin-top: 12px; font-size: clamp(34px, 4.2vw, 54px); }
.wizard-result-header p { max-width: 650px; margin: 0; color: var(--text-muted); line-height: 1.6; }
.wizard-status-badge { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 9px; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.wizard-status-badge[data-status="ai-applied"] { border-color: var(--accent-subtle-border); background: var(--accent-subtle); color: var(--accent); }
.wizard-result-section { padding: clamp(21px, 3vw, 30px); }
.wizard-result-section + .wizard-result-section { border-top: 1px solid var(--border); }
.wizard-result-section h3,
.wizard-ai h3,
.wizard-ai-result h3 { margin: 0; font-family: var(--font-display); font-size: clamp(23px, 2.5vw, 29px); line-height: 1.1; }
.wizard-result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wizard-result-heading > span { flex: 0 0 auto; color: var(--text-muted); font-size: 11px; font-weight: 750; }
.wizard-table-wrap { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); }
.wizard-ingredients { width: 100%; border-collapse: collapse; }
.wizard-ingredients th,
.wizard-ingredients td { border-bottom: 1px solid var(--border); padding: 11px 13px; text-align: left; }
.wizard-ingredients th { background: var(--surface-tint); color: var(--text-muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wizard-ingredients th:last-child,
.wizard-ingredients td:last-child { width: 76px; text-align: right; }
.wizard-ingredients tbody tr:last-child td { border-bottom: 0; }
.wizard-ingredients td { font-size: 13px; line-height: 1.45; }
.wizard-amount { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 850; white-space: nowrap; }
.wizard-phase { display: inline-block; margin-left: 5px; border-radius: 999px; background: var(--surface-raised); padding: 2px 5px; color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.wizard-batch-note { display: grid; gap: 3px; margin-top: 12px; border-left: 3px solid var(--accent); padding-left: 11px; font-size: 11px; }
.wizard-batch-note span { color: var(--text-muted); }
.wizard-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wizard-stat { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); padding: 11px; }
.wizard-stat strong { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.wizard-stat span { margin-top: 4px; color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.wizard-fine-print { margin: 10px 0 0; color: var(--text-muted); font-size: 10px; }
.wizard-diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wizard-diagnostic { border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--food-subtle) 56%, var(--surface)); padding: 11px; }
.wizard-diagnostic-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; }
.wizard-diagnostic-top strong { color: var(--success); font-variant-numeric: tabular-nums; }
.wizard-range { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.wizard-steps { margin: 17px 0 0; padding: 0; list-style: none; counter-reset: wizard-step; }
.wizard-steps li { position: relative; min-height: 34px; margin: 14px 0; padding-left: 43px; counter-increment: wizard-step; font-size: 13px; line-height: 1.6; }
.wizard-steps li::before { position: absolute; left: 0; top: -2px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--accent-subtle); color: var(--accent); content: counter(wizard-step); font-size: 11px; font-weight: 900; }
.wizard-ai-result { margin: 0 clamp(21px, 3vw, 30px) clamp(21px, 3vw, 30px); border: 1px solid var(--accent-subtle-border); border-radius: var(--radius-lg); background: var(--accent-subtle); padding: 18px; }
.wizard-ai-result h3 { margin-top: 10px; }
.wizard-ai-result p { margin: 8px 0; color: var(--text-muted); font-size: 13px; }
.wizard-ai-result small { display: block; margin-top: 10px; color: var(--text-muted); }
.wizard-accents { display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-accent { border: 1px solid var(--accent-subtle-border); border-radius: 999px; background: var(--surface); padding: 4px 8px; color: var(--accent); font-size: 10px; font-weight: 850; }
.wizard-notes { background: var(--surface-tint); }
.wizard-notes ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.wizard-notes li + li { margin-top: 6px; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--border); padding: 20px clamp(21px, 3vw, 30px); }
.wizard-actions button { min-height: 44px; }
.wizard-action-status { width: 100%; color: var(--text-muted); font-size: 11px; }
.wizard-ai { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border-top: 1px solid var(--border); background: var(--surface-tint); padding: clamp(21px, 3vw, 30px); }
.wizard-ai h3 { margin-top: 6px; }
.wizard-ai p { max-width: 560px; margin: 7px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.wizard-ai button { min-height: 44px; }
.wizard-ai-status { grid-column: 1 / -1; margin: 0 !important; color: var(--text) !important; font-weight: 700; }
.wizard-how { padding-bottom: clamp(56px, 8vw, 96px); }
.wizard-how h2 { font-size: clamp(34px, 4.6vw, 52px); }
.wizard-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wizard-how-grid article { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 21px; box-shadow: var(--shadow-sm); }
.wizard-how-grid article > span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.wizard-how-grid h3 { margin: 10px 0 7px; font-family: var(--font-display); font-size: 25px; line-height: 1.08; }
.wizard-how-grid p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.wizard-related { margin: 20px 0 0; color: var(--text-muted); }
.wizard-related a { color: var(--accent); font-weight: 800; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .creami-hub-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 34px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-content .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #costOut { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-lab { grid-template-columns: 1fr; max-width: 760px; }
  .wizard-output-column { position: static; }
  .wizard-empty { min-height: 320px; }
}

@media (max-width: 767px) {
  .creami-home-grid { display: flex; flex-direction: column-reverse; gap: 22px; }
  .creami-home-image { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
  .creami-home-copy h2 { font-size: clamp(34px, 10vw, 46px); }
  .creami-home-copy > p { font-size: 15px; }
  .creami-home-actions { display: grid; grid-template-columns: 1fr; }
  .creami-home-actions a { width: 100%; }
  .creami-hub-hero { padding-top: 22px; }
  .creami-hub-grid { display: flex; flex-direction: column-reverse; gap: 22px; }
  .creami-hub-grid h1 { margin-top: 8px; font-size: clamp(39px, 12vw, 54px); }
  .creami-hub-image { width: calc(100% + 32px); border-inline: 0; border-radius: 0; }
  .creami-proof { gap: 6px; }
  .creami-proof span { font-size: 10px; }
  .family-strip { margin-inline: -16px; padding-inline: 16px; }
  .creami-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .creami-quick-links a { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; }
  .resource-grid,
  .source-content .grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .source-content .wrap,
  .source-content .wrap-article,
  .source-content .wrap-narrow { width: calc(100% - 32px); }
  .source-content .display { font-size: clamp(35px, 11vw, 48px) !important; }
  .source-content .prose { font-size: 16px; }
  .source-content .table-scroll { width: calc(100% + 16px); margin-right: -16px; border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); }
  .source-content .rp-cols { grid-template-columns: 1fr; }
  .source-content .rp-sticky { position: static; }
  .source-content .panel { padding: 16px; }
  #costOut { grid-template-columns: 1fr 1fr; }
  .wizard-intro { padding-top: 22px; }
  .wizard-intro h1 { font-size: clamp(40px, 12vw, 54px); }
  .wizard-method-note { padding: 14px; }
  .wizard-lab { width: calc(100% - 32px); padding-top: 28px; }
  .wizard-form { padding: 17px; border-radius: var(--radius-lg); }
  .wizard-options-two,
  .wizard-options-three,
  .wizard-flavor-options,
  .wizard-mixin-options { grid-template-columns: 1fr; }
  .wizard-option { min-height: 48px; }
  .wizard-result,
  .wizard-empty { border-radius: var(--radius-lg); }
  .wizard-result-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .wizard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-diagnostic-grid { grid-template-columns: 1fr; }
  .wizard-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .wizard-action-status { grid-column: 1 / -1; }
  .wizard-ai { grid-template-columns: 1fr; }
  .wizard-ai button { width: 100%; }
  .wizard-how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  #costOut { grid-template-columns: 1fr; }
}

@media print {
  .creami-proof,
  .creami-quick-links,
  .resource-grid,
  .footer-nav { display: none !important; }
  .source-content .wrap,
  .source-content .wrap-article,
  .source-content .wrap-narrow { width: 100%; max-width: none; }
  .source-content .rp-sticky { position: static; }
  .wizard-intro,
  .wizard-form,
  .wizard-empty,
  .wizard-how,
  .wizard-ai,
  .wizard-actions,
  .site-header,
  .site-footer { display: none !important; }
  .wizard-lab { display: block; width: 100%; max-width: none; padding: 0; }
  .wizard-output-column { position: static; }
  .wizard-result { border: 0; box-shadow: none; }
  .wizard-result-header,
  .wizard-result-section { break-inside: avoid; padding: 14px 0; }
}
