/* Shared by the how-to pages. Tokens and components match public/index.html. */
:root {
  --page: #F7F2EC; --cream: #FBF7F1; --white: #FFFFFF; --ink: #1C1917; --ink-soft: #44403C;
  --muted: #7B7165; --faint: #A89A82; --line: #E7E0D5; --terra: #C4653A; --terra-dark: #8E3F1F;
  --terra-light: #F5E6DE; --plum: #5B3A5E; --plum-light: #EDE4EE; --olive: #5E6930; --olive-light: #EDF0E1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: 'Inter', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; }
h1, h2, h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.3px; margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.ht-narrow { max-width: 820px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--terra-dark); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

nav { position: sticky; top: 0; z-index: 50; background: rgba(247,242,236,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(28,25,23,0.14); }
.brand .name { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.ht-hero { padding: 40px 0 28px; }
.crumbs { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--terra-dark); }
.ht-hero h1 { font-size: 54px; line-height: 1.02; margin: 14px 0 0; text-wrap: balance; }
.ht-hero .lede { font-size: 19px; color: var(--ink-soft); margin: 20px 0 0; text-wrap: pretty; }
@media (max-width: 600px) { .ht-hero h1 { font-size: 38px; } .ht-hero .lede { font-size: 17px; } }

.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 13px; padding: 6px 18px 11px 12px; }
.store-btn:hover { background: #000; }
.store-btn > span { line-height: 1.2; }
.store-btn .sb-sub { font-size: 11px; opacity: 0.7; line-height: 1; }
.store-btn .sb-main { font-size: 16px; font-weight: 600; line-height: 1.15; }

main { padding-bottom: 40px; }
.ht-sec { margin-top: 48px; }
.ht-sec h2 { font-size: 34px; line-height: 1.08; }
.ht-sec > p, .ht-box p { font-size: 16.5px; color: var(--ink-soft); margin: 14px 0 0; }
.ht-formula { font-family: 'Instrument Serif', Georgia, serif; font-size: 23px !important; color: var(--ink) !important; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }

.ht-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ht-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.ht-step.has-shot { grid-template-columns: 44px 1fr 210px; }
.ht-step-n { font-family: 'Instrument Serif', Georgia, serif; font-size: 38px; line-height: 1; color: var(--terra); }
.ht-step h3 { font-size: 22px; }
.ht-step p { font-size: 15.5px; color: var(--ink-soft); margin: 6px 0 0; }
.ht-shot { margin: 0; }
.ht-shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(28,25,23,0.10); background: var(--cream); }
@media (max-width: 700px) {
  .ht-step, .ht-step.has-shot { grid-template-columns: 36px 1fr; }
  .ht-step-n { font-size: 32px; }
  .ht-shot { grid-column: 1 / -1; max-width: 260px; margin: 6px auto 0; }
}
.ht-shot figcaption { margin-top: 9px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.ht-step.has-pair { grid-template-columns: 44px 1fr; }
.ht-pair { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 18px; margin-top: 4px; }
.ht-share-help { margin-top: 18px; }
.ht-share-help h3 { font-size: 26px; color: var(--plum); }
.ht-box p.ht-plat { margin: 20px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--plum); }
.ht-mini { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: mini; }
.ht-mini li { counter-increment: mini; }
.ht-box .ht-mini p { margin: 10px 0 0; font-size: 15px; }
.ht-mini p::before { content: counter(mini) ". "; font-weight: 700; color: var(--plum); }
@media (max-width: 700px) {
  .ht-pair { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ht-pair .ht-shot, .ht-mini .ht-shot { grid-column: auto; max-width: none; margin: 0; }
  .ht-mini { grid-template-columns: 1fr 1fr; }
}

.sz-group { font-size: 28px; margin: 34px 0 0; }
.sz-dish { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-top: 16px; scroll-margin-top: 80px; }
.sz-photo { margin: 0; position: sticky; top: 84px; }
.sz-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
.sz-body h3 { font-size: 26px; display: flex; gap: 10px; align-items: baseline; }
.sz-n { font-family: 'Instrument Serif', Georgia, serif; color: var(--terra); }
.sz-body h4 { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--terra-dark); }
.sz-body > p { font-size: 15.5px; color: var(--ink-soft); margin: 8px 0 0; }
.sz-body > p.sz-meta { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.sz-ings { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.sz-ings li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sz-ings li span:last-child { color: var(--muted); white-space: nowrap; }
.sz-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.sz-steps b { color: var(--ink); font-weight: 600; }
.sz-tip { margin: 6px 0 0; background: var(--terra-light); border-radius: 10px; padding: 8px 11px; font-size: 14px; }
.sz-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0 !important; }
.sz-btn { display: inline-flex; align-items: center; background: var(--terra); color: #fff !important; font-weight: 600; font-size: 15px; border-radius: 12px; padding: 10px 16px; }
.sz-btn:hover { background: var(--terra-dark); }
.sz-open span { flex: 1 1 220px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .sz-dish { grid-template-columns: 1fr; padding: 16px; }
  .sz-photo { position: static; max-width: 420px; }
}
.ht-box { background: var(--plum-light); border-radius: 20px; padding: 22px 24px; }
.ht-box h2 { font-size: 26px; color: var(--plum); }
.ht-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ht-list li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink-soft); }
.ht-list li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--olive-light); box-shadow: inset 0 0 0 4px var(--olive-light), inset 0 0 0 7px var(--olive); }
.ht-notes li::before { background: var(--terra-light); box-shadow: inset 0 0 0 4px var(--terra-light), inset 0 0 0 7px var(--terra); }
.ht-rules { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.ht-rules b { color: var(--ink); }

.ht-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.ht-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ht-table.ht-wide { min-width: 560px; }
.ht-table th, .ht-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ht-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; background: var(--cream); }
.ht-table tfoot td { font-weight: 600; background: var(--cream); }
.ht-table tfoot tr:last-child td { color: var(--terra-dark); border-bottom: 0; }
.ht-wide td:not(:first-child), .ht-wide th:not(:first-child) { white-space: nowrap; }
.ht-dim { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

.faq { margin-top: 14px; }
details { border-top: 1px solid var(--line); padding: 2px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 18px; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--terra); }
details[open] summary::after { content: '–'; }
details .ans { padding: 0 40px 20px 0; font-size: 15.5px; color: var(--ink-soft); }

.ht-related { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ht-related a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; }
.ht-related a:hover { border-color: var(--terra); color: var(--terra-dark); }

.cta-band { background: var(--plum); color: #fff; margin-top: 40px; }
.cta-band .wrap { padding: 64px 32px; text-align: center; }
.cta-band h2 { font-size: 42px; color: #fff; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.78); margin: 12px auto 0; max-width: 460px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .store-btn { background: rgba(255,255,255,0.12); }
.cta-band .store-btn:hover { background: rgba(255,255,255,0.2); }

footer { background: var(--ink); color: rgba(251,247,241,0.6); padding: 40px 0; font-size: 13.5px; }
footer .f-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand .name { color: var(--cream); }
footer a:hover { color: var(--cream); }
footer .f-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .f-guides { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(251,247,241,0.12); }
footer .f-guides span { color: rgba(251,247,241,0.85); font-weight: 600; }
.lang-menu { position: relative; border: 0; padding: 0; }
.lang-menu:last-child { border: 0; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; line-height: 1; color: var(--ink-soft); background: transparent; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--terra); color: var(--terra-dark); }
.lang-menu summary svg:last-child { transition: transform .15s ease; }
.lang-menu[open] summary svg:last-child { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(28,25,23,0.16); }
.lang-list a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-list a:hover { background: var(--page); color: var(--terra-dark); }
.lang-list a[aria-current] { background: var(--terra-light); color: var(--terra-dark); font-weight: 600; }
:lang(ja) em, :lang(ko) em, :lang(zh) em, :lang(th) em, :lang(hi) em, :lang(bn) em { font-style: normal; }
:lang(ko) { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
@media (max-width: 560px) { .lang-list { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 88px); } }

/* Calculators (tool_*.py). Macro colours are the app's: protein #3A6EC4, fat #C4862A, carbs = plum. */
.ht-link { color: var(--terra-dark); text-decoration: underline; text-underline-offset: 3px; }
.kc-hero { padding-bottom: 22px; }
.kc { scroll-margin-top: 80px; }
.kc-form, .kc-result { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px 22px; box-shadow: 0 24px 48px -30px rgba(28,25,23,0.35); }
.kc-top { display: flex; align-items: center; gap: 14px; }
.kc-count { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--terra-dark); white-space: nowrap; }
.kc-progress { flex: 1; height: 5px; background: var(--terra-light); border-radius: 5px; overflow: hidden; }
.kc-progress span { display: block; height: 100%; width: 25%; background: var(--terra); border-radius: 5px; transition: width .35s ease; }
.kc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.kc-step + .kc-step { margin-top: 30px; }
.kc-js .kc-step { display: none; margin: 0; }
.kc-js .kc-step.is-on { display: block; animation: kc-in .28s ease; }
@keyframes kc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kc-step legend { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; line-height: 1.08; padding: 0; margin-top: 18px; outline: none; float: left; width: 100%; }
.kc-step legend + * { clear: both; }
.kc-hint { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.kc-opts { display: grid; gap: 10px; margin-top: 18px; }
.kc-two { grid-template-columns: 1fr 1fr; }
.kc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-opt { position: relative; display: block; cursor: pointer; }
.kc-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kc-card-in { display: flex; align-items: center; gap: 14px; height: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--cream); transition: border-color .15s, background .15s, box-shadow .15s; }
.kc-opt:hover .kc-card-in { border-color: #D9CBB9; }
.kc-opt input:checked + .kc-card-in { border-color: var(--terra); background: var(--terra-light); box-shadow: inset 0 0 0 1px var(--terra); }
.kc-opt input:focus-visible + .kc-card-in { outline: 3px solid rgba(196,101,58,0.35); outline-offset: 2px; }
.kc-card-in svg { flex: none; color: var(--terra-dark); }
.kc-card-in b { display: block; font-size: 16px; font-weight: 600; }
.kc-card-in small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.kc-txt { min-width: 0; }
.kc-card-in em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--terra-dark); white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.kc-center .kc-card-in { flex-direction: column; justify-content: center; gap: 8px; padding: 18px 12px 16px; text-align: center; }
.kc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.kc-one { grid-template-columns: minmax(0, 260px); }
.kc-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.kc-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; background: var(--cream); overflow: hidden; }
.kc-stepper:focus-within { border-color: var(--terra); }
.kc-stepper button { flex: none; width: 50px; border: 0; background: transparent; font: 400 24px/1 'Inter', sans-serif; color: var(--terra-dark); cursor: pointer; }
.kc-stepper button:hover { background: var(--terra-light); }
.kc-in { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 9px 0 8px; min-width: 0; }
.kc-in input { width: 3.4ch; min-width: 0; border: 0; padding: 0; background: transparent; font: 400 32px/1 'Instrument Serif', Georgia, serif; text-align: right; color: var(--ink); }
.kc-in input:focus { outline: none; }
.kc-in input[aria-invalid="true"] { color: #B3261E; }
.kc-in span { font-size: 14px; color: var(--muted); }
.kc-err { margin: 8px 0 0; font-size: 13.5px; color: #B3261E; }
.kc-err:empty { display: none; }
.kc-nav { display: none; }
.kc-js .kc-nav { display: flex; gap: 10px; margin-top: 26px; }
.kc-next { margin-left: auto; border: 0; border-radius: 13px; padding: 14px 28px; background: var(--terra); color: #fff; font: 600 16px 'Inter', sans-serif; cursor: pointer; box-shadow: 0 10px 20px -12px rgba(196,101,58,0.9); }
.kc-next:hover { background: var(--terra-dark); }
.kc-ghost { border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 18px; background: var(--white); color: var(--ink); font: 600 15px 'Inter', sans-serif; cursor: pointer; }
.kc-ghost:hover { border-color: var(--terra); color: var(--terra-dark); }
.kc-privacy { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.kc-privacy svg { flex: none; }
.kc-noscript { margin: 14px 0 0; font-size: 15px; color: var(--plum); }

.kc-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--terra-dark); outline: none; }
.kc-kcal { margin: 8px 0 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 82px; line-height: 0.92; color: var(--terra); font-variant-numeric: tabular-nums; }
.kc-kcal small { font-family: 'Inter', sans-serif; font-size: 20px; color: var(--muted); }
.kc-goal { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-soft); }
.kc-split { display: grid; gap: 3px; height: 10px; margin-top: 22px; border-radius: 999px; overflow: hidden; }
.kc-sp { background: #3A6EC4; } .kc-sf { background: #C4862A; } .kc-sc { background: var(--plum); }
.kc-macros { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kc-macros li { border-radius: 16px; padding: 13px 14px 12px; background: var(--cream); border-top: 4px solid; }
.kc-macros span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.kc-macros b { display: block; margin-top: 4px; font: 400 36px/1.02 'Instrument Serif', Georgia, serif; font-variant-numeric: tabular-nums; }
.kc-macros em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.kc-mp { border-color: #3A6EC4 !important; } .kc-mp b { color: #3A6EC4; }
.kc-mf { border-color: #C4862A !important; } .kc-mf b { color: #A86E1C; }
.kc-mc { border-color: var(--plum) !important; } .kc-mc b { color: var(--plum); }
.kc-meals { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.kc-flags { margin-top: 14px; padding: 2px 16px; background: var(--plum-light); border-radius: 14px; }
.kc-flags p { margin: 10px 0; font-size: 14px; color: var(--plum); }
.kc-how-t { margin-top: 28px; font-size: 28px; }
.kc-how { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: how; }
.kc-how li { position: relative; padding: 14px 16px 14px 54px; border: 1px solid var(--line); border-radius: 16px; counter-increment: how; }
.kc-how li::before { content: counter(how); position: absolute; left: 18px; top: 11px; font: 400 32px/1 'Instrument Serif', Georgia, serif; color: var(--terra); }
.kc-how b { display: block; font-size: 15px; font-weight: 600; }
.kc-how code { display: block; margin-top: 7px; padding: 9px 11px; overflow-x: auto; background: var(--cream); border-radius: 10px; font: 500 15px/1.6 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
.kc-how span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.kc-how a { margin-left: 2px; font-weight: 600; color: var(--terra-dark); }
.kc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.kc-status { font-size: 13.5px; color: var(--olive); }
.kc-app { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 22px; align-items: start; margin-top: 26px; padding: 24px 24px 0; background: var(--plum); color: #fff; border-radius: 22px; overflow: hidden; }
.kc-app-text { padding-bottom: 24px; }
.kc-app h3 { font-size: 30px; color: #fff; }
.kc-app p { margin: 8px 0 0; font-size: 15px; color: rgba(255,255,255,0.82); }
.kc-app .store-btn { background: rgba(255,255,255,0.14); }
.kc-app .store-btn:hover { background: rgba(255,255,255,0.24); }
.kc-app figure { margin: 4px 0 0; height: 250px; overflow: hidden; }
.kc-app img { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; box-shadow: 0 12px 34px rgba(0,0,0,0.35); }

.kc-flow { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.kc-flow li { position: relative; padding: 16px 16px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; counter-increment: flow; }
.kc-flow li::before { content: counter(flow); display: block; font: 400 32px/1 'Instrument Serif', Georgia, serif; color: var(--terra); }
.kc-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; z-index: 1; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--terra); color: #fff; font-size: 13px; }
.kc-flow b { display: block; margin-top: 6px; font-weight: 600; }
.kc-flow span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.kc-flow em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--terra-dark); }
.kc-ref { font-size: 0.72em; line-height: 0; white-space: nowrap; }
.kc-ref a { color: var(--terra-dark); font-weight: 600; }
.kc-sources { margin: 16px 0 0; padding-left: 26px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.kc-sources li { scroll-margin-top: 90px; padding: 2px 4px; border-radius: 8px; }
.kc-sources li:target { background: var(--terra-light); }
.kc-sources a { color: var(--terra-dark); overflow-wrap: anywhere; }
.kc-promo { display: grid; gap: 6px; padding: 22px 24px; border-radius: 20px; background: var(--terra-light); border: 1px solid #EFD3C4; }
.kc-promo:hover { border-color: var(--terra); }
.kc-promo-t { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; line-height: 1.1; color: var(--ink); }
.kc-promo span:not(.kc-promo-t) { font-size: 15.5px; color: var(--ink-soft); }
.kc-promo b { margin-top: 6px; color: var(--terra-dark); }
@media (max-width: 760px) {
  .kc-flow { grid-template-columns: 1fr 1fr; }
  .kc-flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .kc-form, .kc-result { padding: 20px 16px 18px; border-radius: 22px; }
  .kc-step legend { font-size: 29px; }
  .kc-three { grid-template-columns: 1fr; }
  .kc-three .kc-card-in { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; gap: 14px; }
  .kc-three .kc-card-in small { margin: 0 0 0 auto; }
  .kc-fields { grid-template-columns: 1fr; }
  .kc-one { grid-template-columns: 1fr; }
  .kc-card-in { padding: 13px 14px; gap: 12px; }
  .kc-kcal { font-size: 66px; }
  .kc-macros { gap: 7px; }
  .kc-macros li { padding: 11px 10px 10px; }
  .kc-macros b { font-size: 29px; }
  .kc-macros em { font-size: 11.5px; }
  .kc-how li { padding: 13px 13px 13px 44px; }
  .kc-how li::before { left: 14px; font-size: 28px; }
  .kc-how code { font-size: 14px; }
  .kc-app { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 18px 16px 0; }
  .kc-app h3 { font-size: 25px; }
  .kc-app figure { height: 190px; }
  .kc-app .hero-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-js .kc-step.is-on { animation: none; }
  .kc-progress span { transition: none; }
}
