/* Copyright © 2026 Miss Icecream Co., Ltd. All Rights Reserved. */
*{box-sizing:border-box}
body.flowchart-page{margin:0;padding:28px 18px 50px;background:#f4f3e9;background-image:radial-gradient(ellipse at 15% 0, #e6efdd 0,transparent 58%);color:#24382b;font-family:'Sarabun',sans-serif;line-height:1.65}
.sheet{max-width:920px;margin:auto}
a{color:#315e43}.page-nav,.version-nav,.actions,.print-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.page-nav{justify-content:space-between;margin-bottom:18px}
.page-nav a,.route-link,.button,.print-toolbar a,.print-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid #c9d8c4;border-radius:99px;background:#fffdf8;color:#315e43;font:600 14px 'Sarabun',sans-serif;text-decoration:none;cursor:pointer}
.page-nav .topbar{margin:0}.hero{padding:26px 30px 24px;border:1px solid #d4dec9;border-radius:24px;background:rgba(255,253,248,.92)}
.eyebrow{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.13em;color:#52734a}
.hero h1{margin:0;font-size:clamp(29px,4vw,42px);line-height:1.3;font-weight:700;letter-spacing:-.03em}.hero h1 span{color:#ba574f}
.intro{margin:10px 0 18px;font-size:16px;color:#566253}.version-nav{border-top:1px solid #e1e5d8;padding-top:16px;font-size:14px}.version-nav>*{border-radius:99px;padding:8px 14px}.version-nav [aria-current]{background:#315e43;color:white;font-weight:600}.version-nav a{text-decoration:none;border:1px solid #ccd9c4;background:white}
.base-picker{padding:22px 0 16px}.base-picker h2{margin:0 0 10px;font-size:17px}.base-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.base-buttons button{min-height:76px;padding:12px 16px;border:1px solid #d2dac8;border-radius:16px;background:#fffdf8;color:#354532;font:600 17px 'Sarabun',sans-serif;text-align:left;cursor:pointer}.base-buttons small{display:block;margin-top:3px;font-size:13px;font-weight:400;color:#5c6c56}.base-buttons [aria-pressed=true]{background:#315e43;border-color:#315e43;color:#fff;box-shadow:0 4px 15px -10px #315e43}.base-buttons [aria-pressed=true] small{color:#e4eedc}
#base-status{font-size:14px;color:#52734a;margin:10px 0 0}.phase-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px}.phase-nav a{padding:7px 12px;background:#e6eddd;border-radius:10px;text-decoration:none;font-size:13px;color:#315e43}
.flow-phase{scroll-margin-top:16px;margin-bottom:32px}.phase-title{display:flex;gap:12px;align-items:center;font-size:20px;margin:0 0 16px;line-height:1.4}.phase-title span{white-space:nowrap;font-size:12px;background:#dfe8d2;padding:5px 10px;border-radius:99px;color:#466140}
.flow-step{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);gap:18px;margin:0 0 20px;--tone:#426743;--tint:#f5f8ef;--edge:#d6e2cc;break-inside:avoid}.flow-step.warm{--tone:#9b5e2d;--tint:#fff8ef;--edge:#ead4b7}.flow-step.blend{--tone:#5f6b36;--tint:#f7f8ea;--edge:#dce2bf}.flow-step.cool{--tone:#396e82;--tint:#f0f8fb;--edge:#c9e0e7}.flow-step.finish{--tone:#855869;--tint:#fcf4f6;--edge:#e7d4dd}
.step-number{position:relative;z-index:1;display:grid;width:46px;height:46px;place-items:center;border-radius:50%;background:var(--tone);color:white;font:600 21px 'Fraunces','Sarabun',serif;line-height:1;border:1px solid var(--tone)}
.flow-step:not(:last-child)::before{content:'';position:absolute;left:22px;top:47px;bottom:-20px;border-left:2px solid #becdbb}.flow-step:not(:last-child)::after{content:'';position:absolute;left:18px;bottom:-13px;width:9px;height:9px;border-right:2px solid #8ca285;border-bottom:2px solid #8ca285;transform:rotate(45deg)}
.step-card{min-width:0;padding:20px 23px;background:#fffdfb;border:1px solid var(--edge);border-top:4px solid var(--tone);border-radius:16px;box-shadow:0 6px 20px -18px #435d45}.step-card h3{margin:0 0 10px;color:var(--tone);font-size:21px;line-height:1.4}.step-card ul{padding-left:21px;margin:0;font-size:16px}.step-card ul+ul{margin-top:9px}.step-card li{padding-left:2px;margin:5px 0}.step-card li::marker{color:var(--tone)}.step-card b{color:#263f32;font-weight:700}
.base-note{border:1px dashed var(--tone);border-radius:10px;padding:9px 12px;margin-top:12px;background:var(--tint)}.base-note strong{display:block;color:var(--tone);font-size:14px;margin-bottom:3px}.base-note p{margin:0}.start-note{margin:0 0 8px;font-size:14px;font-weight:600;color:var(--tone)}
.ingredient-notes{margin:16px 0 0 64px;background:#fff9ed;border:1px solid #e5d4b3;border-radius:14px;padding:12px 18px;color:#624c30;font-size:15px}.ingredient-notes summary{font-weight:600;cursor:pointer;min-height:32px}.ingredient-notes p{margin:12px 0 4px}.actions{justify-content:center;margin:28px 0}.button.primary{background:#315e43;border-color:#315e43;color:white}.source-note{text-align:center;font-size:12px;color:#65705e}.site-footer{max-width:920px;margin:28px auto 0;text-align:center;font-size:12px;color:#65705e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ba574f;outline-offset:4px}
body.reading-large .step-card ul,body.reading-large .ingredient-notes{font-size:18px}
body.high-contrast .step-card,body.high-contrast .hero{background:white;color:#111}
/* The separate A4 overview follows the two-page vertical chart in the book. */
.print-toolbar{max-width:800px;margin:0 auto 14px;justify-content:center}.print-toolbar button{background:#315e43;border-color:#315e43;color:white}.print-intro{max-width:800px;margin:0 auto 20px;text-align:center;font-size:14px;color:#5c6c56}
.paper{width:194mm;min-height:281mm;margin:0 auto 24px;padding:8mm;background:white;box-shadow:0 6px 30px -20px #566253;color:#26382d;overflow-wrap:break-word}
body.flowchart-page .paper-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #d8ded2;padding-bottom:2mm;margin-bottom:3mm;text-align:left}.paper-heading span{font-size:8pt;color:#52734a}body.print-overview .paper-heading h1{font-size:15pt!important;margin:0;line-height:1.3}.paper-heading p{margin:0;font-size:8pt;text-align:right;line-height:1.5}
.paper .flow-step{grid-template-columns:9mm minmax(0,1fr);gap:3mm;margin-bottom:3mm}.paper .step-number{width:9mm;height:9mm;font:700 12pt 'Sarabun',sans-serif}.paper .flow-step:not(:last-child)::before{left:4.4mm;top:9mm;bottom:-3mm}.paper .flow-step:not(:last-child)::after{left:3.4mm;bottom:-1.8mm;width:2mm;height:2mm}.paper .step-card{padding:2mm 3mm;border-width:1px;border-top-width:2px;border-radius:3mm;box-shadow:none}.paper .step-card h3{font-size:11.5pt;margin-bottom:1mm;line-height:1.3}.paper .step-card ul{font-size:9.5pt;line-height:1.4;padding-left:4mm}.paper .step-card li{margin:.5mm 0;padding-left:0}.paper .base-note{margin-top:1.5mm;padding:1mm 2mm;border-radius:2mm}.paper .base-note strong{font-size:8.5pt;margin:0}.paper .base-note p,.paper .small-note{font-size:8.5pt;line-height:1.4;margin:1mm 0 0}.paper .base-note ul{font-size:8.5pt;line-height:1.4}
.route-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2mm;margin-top:1.5mm}.route-branch{padding:1.5mm 2mm;border:1px solid #d5ddd0;border-radius:2mm;background:#f4f7ef}.route-branch h4{font-size:8.5pt;background:#315e43;color:white;border-radius:99px;display:inline-block;padding:.7mm 2mm;margin:0 0 1mm;line-height:1.3}.route-branch ul{font-size:9pt!important}.continuation{margin:0 0 0 12mm;font-size:9pt;color:#566253}.legend{margin:4mm 0 0 12mm;border:1px solid #d4ddcc;border-radius:3mm;padding:2mm 3mm;font-size:9pt;line-height:1.5}.paper-footer{margin:3mm 0 0 12mm;font-size:7pt;color:#65705e}
@media(max-width:760px){body.flowchart-page{padding:18px 12px 36px}.hero{padding:22px 20px}.base-buttons button{padding:11px 13px;font-size:16px}.flow-step{grid-template-columns:38px minmax(0,1fr);gap:12px}.step-number{width:38px;height:38px;font-size:18px}.flow-step:not(:last-child)::before{left:18px;top:39px}.flow-step:not(:last-child)::after{left:14px}.step-card{padding:16px 18px}.step-card h3{font-size:19px}.ingredient-notes{margin-left:50px}.phase-title{font-size:18px}.paper{width:194mm}.print-overview{overflow-x:auto}.print-intro{text-align:left}}
@media(max-width:430px){.page-nav a{font-size:12px;padding:8px 12px}.hero{padding:20px 16px}.hero h1 span{display:block}.intro{font-size:15px}.base-buttons{grid-template-columns:1fr}.base-buttons button{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px}.base-buttons small{font-size:12px;margin:0}.flow-step{grid-template-columns:30px minmax(0,1fr);gap:10px}.step-number{width:30px;height:30px;font-size:16px}.flow-step:not(:last-child)::before{left:14px;top:31px}.flow-step:not(:last-child)::after{left:10px}.step-card{padding:14px 15px}.step-card ul{font-size:16px;line-height:1.75}.phase-title{align-items:start;gap:8px}.ingredient-notes{margin-left:40px;padding:12px 14px}.version-nav>*{font-size:13px}.phase-nav{gap:6px}.phase-nav a{font-size:12px}}
@media print{
 @page{size:A4 portrait;margin:8mm}
 body.flowchart-page{padding:0;background:white;color:#111}
 .page-nav,.topbar,.hero,.base-picker,.phase-nav,.actions,.site-footer,.source-note,.print-toolbar,.print-intro,.tools-bottom-nav{display:none!important}
 .sheet{width:100%;max-width:none}.flow-phase{margin-bottom:4mm}.flow-step{break-inside:avoid}.ingredient-notes{break-inside:avoid}
 .paper{width:100%;height:281mm;min-height:0;margin:0;padding:3mm 2mm;box-shadow:none;break-after:page;page-break-after:always}
 .paper:last-child{break-after:auto;page-break-after:auto}
 .paper .flow-step:last-child{margin-bottom:0}.paper .paper-heading{display:flex!important}
}
