/* Guides (Baking School). Loaded after /blog/blog.css, which supplies the nav,
   footer, type and the post layout these pages share with the blog. */

.guide-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.guide-kicker a { border-bottom: 2px solid var(--orange); }
.guide-kicker span { opacity: 0.55; }

/* Scrolling table wrapper */
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2rem 0; width: 0; min-width: 100%; }
.g-scroll table { margin: 0; min-width: 540px; }
.post-body td.ph { font-weight: 600; white-space: nowrap; }

/* pH range chart */
.ph-chart { margin: 2rem 0 1rem; background: var(--cream); border-radius: 6px; padding: 1.25rem 1.25rem 1rem; }
.ph-row { display: grid; grid-template-columns: 9.5rem 1fr 4.6rem; gap: 0.75rem; align-items: center; padding: 0.32rem 0; font-size: 0.92rem; }
.ph-row .nm { line-height: 1.2; }
.ph-row .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-track { position: relative; height: 14px; border-radius: 999px; background: rgba(26, 23, 20, 0.07); }
.ph-track::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 71.43%; width: 1px; background: rgba(26, 23, 20, 0.35); }
.ph-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; min-width: 10px; }
.ph-bar.acid { background: var(--orange); }
.ph-bar.mid { background: var(--ink); }
.ph-bar.base { background: var(--blue); }
.ph-axis { display: grid; grid-template-columns: 9.5rem 1fr 4.6rem; gap: 0.75rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-bottom: 0.5rem; }
.ph-axis .ticks { display: flex; justify-content: space-between; }
.ph-group { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.55; margin: 0.9rem 0 0.2rem; }
.ph-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.8rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(26, 23, 20, 0.12); }
.ph-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; }
@media (max-width: 600px) {
  .ph-chart { padding: 1rem 0.85rem 0.85rem; }
  .ph-row, .ph-axis { grid-template-columns: 6.6rem 1fr 3.9rem; gap: 0.5rem; }
  .ph-row { font-size: 0.82rem; }
}

/* Print / download button */
.g-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.g-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.92rem; transition: background 0.2s; }
.g-btn:hover { background: var(--orange); color: var(--ink); }
.g-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.g-btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Sidebar lesson list */
.sb-lessons ol { list-style: none; margin: 0; padding: 0; }
.sb-lessons li { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.6rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid rgba(26, 23, 20, 0.12); font-size: 0.95rem; line-height: 1.3; }
.sb-lessons li:first-child { border-top: none; }
.gl-num { font-family: "bettoni-variable", 'Fraunces', serif; font-size: 1.05rem; opacity: 0.5; }
.sb-lessons li.is-current { font-weight: 600; }
.sb-lessons li.is-current .gl-num { color: var(--orange); opacity: 1; }
.sb-lessons li.is-soon span { opacity: 0.55; }
.sb-lessons li em { font-style: normal; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.15em; margin-left: 0.3rem; }
.sb-lessons a:hover { color: var(--orange); }
.sb-lessons .all { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid var(--orange); }

/* Previous / next lesson */
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0 0; }
.lesson-nav a { display: block; background: var(--cream); border-radius: 6px; padding: 1.1rem 1.25rem; font-family: "bettoni-variable", 'Fraunces', serif; font-size: 1.15rem; line-height: 1.25; }
.lesson-nav a:hover { background: var(--yellow); }
.lesson-nav small { display: block; font-family: 'Inter Tight', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.6; margin-bottom: 0.35rem; }
.lesson-nav .ln-next { grid-column: 2; text-align: right; }
.g-backhub { display: inline-block; margin-top: 2.5rem; font-weight: 600; border-bottom: 2px solid var(--orange); }

/* FAQ */
.g-faq h3 { margin-top: 1.75rem; }

/* ---- Hub page ---------------------------------------------------------- */
.hub { max-width: 860px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.hub-intro { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.1rem; line-height: 1.6; }
.hub-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 3rem; }
.hub-how div { background: var(--cream); border-radius: 6px; padding: 1.1rem 1.2rem; font-size: 0.95rem; line-height: 1.45; }
.hub-how strong { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-size: 1.2rem; font-weight: 400; margin-bottom: 0.25rem; }
.lessons { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.lesson { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 1.25rem; align-items: center; padding: 1.4rem 0.25rem; border-bottom: 1px solid rgba(26, 23, 20, 0.18); }
.lesson .num { font-family: "bettoni-variable", 'Fraunces', serif; font-size: 2.4rem; line-height: 1; opacity: 0.35; }
.lesson h2 { font-family: "bettoni-variable", 'Fraunces', serif; font-variation-settings: "opsz" 40, "wght" 110; font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.3rem; }
.lesson p { margin: 0; font-size: 0.98rem; line-height: 1.5; opacity: 0.8; }
.lesson .read { margin-top: 0.45rem; font-size: 0.88rem; opacity: 1; }
.lesson .read a { border-bottom: 1px solid rgba(26, 23, 20, 0.35); }
.lesson .read a:hover { color: var(--orange); border-color: var(--orange); }
.lesson .tag { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1.5px solid rgba(26, 23, 20, 0.3); white-space: nowrap; opacity: 0.6; }
.lesson.is-live .num { color: var(--orange); opacity: 1; }
.lesson.is-live .tag { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }
.lesson.is-live h2 a:hover { color: var(--orange); }
.lesson.is-live:hover .tag { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.hub-news { margin-top: 3rem; background: var(--cream); border-radius: 8px; padding: 2rem 1.75rem; text-align: center; }
.hub-news h2 { font-family: "bettoni-variable", 'Fraunces', serif; font-variation-settings: "opsz" 40, "wght" 110; font-size: 1.7rem; font-weight: 400; margin: 0 0 0.4rem; }
.hub-news p { margin: 0 0 1.1rem; }
.hub-news form { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 460px; margin: 0 auto; }
.hub-news input { flex: 1 1 220px; padding: 0.85rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font: inherit; }
.hub-news button { padding: 0.85rem 1.5rem; border: none; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; }
.hub-news button:hover { background: var(--orange); color: var(--ink); }
.hub-news .sb-newsletter-msg { flex: 1 1 100%; font-size: 0.9rem; min-height: 1.2em; }
@media (max-width: 700px) {
  .hub-how { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
  .lesson .num { font-size: 1.8rem; align-self: start; }
  .lesson .tag { grid-column: 2; justify-self: start; }
  .lesson h2 { font-size: 1.35rem; }
  .lesson-nav { grid-template-columns: 1fr; }
  .lesson-nav .ln-next { grid-column: 1; text-align: left; }
}

/* Links styled as buttons/cards inside the article keep their own colors */
.post-body a.g-btn { color: var(--paper); border-bottom: none; text-decoration: none; }
.post-body a.g-btn:hover { color: var(--ink); }
.post-body a.g-btn.ghost { color: var(--ink); border: 1.5px solid var(--ink); }
.post-body a.g-btn.ghost:hover { border-color: var(--ink); }
.post-body a.g-btn.ghost:hover { color: var(--paper); }
.post-body .lesson-nav a { color: var(--ink); border-bottom: none; text-decoration: none; }
.post-body a.g-backhub { color: var(--ink); text-decoration: none; }

/* Phones: let chart tables wrap to the screen instead of scrolling sideways */
@media (max-width: 600px) {
  .g-scroll table { min-width: 0; font-size: 0.86rem; }
  .g-scroll th, .g-scroll td { padding: 0.6rem 0.5rem; }
  .g-scroll th:first-child, .g-scroll td:first-child { padding-left: 0.6rem; }
}

/* ---- Interactive lesson tools ----------------------------------------- */
.g-tool, .g-who { background: var(--cream); border-radius: 10px; padding: 1.4rem 1.4rem 1.5rem; margin: 2rem 0; }
.g-tool-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); margin-bottom: 0.4rem; }
.post-body .g-tool h3, .post-body .g-who h3 { margin: 0 0 1rem; }
.post-body .g-who-q { margin: 0 0 0.9rem; font-size: 1rem; }
.g-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-chip { font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; padding: 0.6rem 0.95rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; -webkit-tap-highlight-color: transparent; }
.g-chip:hover { background: rgba(26, 23, 20, 0.08); }
.g-chip:active { transform: scale(0.96); }
.g-chip.is-on { background: var(--ink); color: var(--paper); }
.g-chip:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* What do you bake? */
.g-who-tip { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--paper); border-left: 3px solid var(--orange); border-radius: 4px; font-size: 0.98rem; line-height: 1.5; }
.g-js .g-who-tip { display: none; }
.g-js[data-bake="all"] [data-who-tip="all"], .g-js[data-bake="vegan"] [data-who-tip="vegan"],
.g-js[data-bake="gf"] [data-who-tip="gf"], .g-js[data-bake="both"] [data-who-tip="both"] { display: block; }
.for-vegan, .for-gf { transition: background 0.2s; border-radius: 3px; }
[data-bake="vegan"] .for-vegan, [data-bake="both"] .for-vegan,
[data-bake="gf"] .for-gf, [data-bake="both"] .for-gf { background: var(--yellow); padding: 0.1em 0.3em; }

/* pH dial */
.dial-stage { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
.dial-bake { width: 150px; height: auto; display: block; }
.dial-bake path[data-dial-top] { transition: fill 0.25s; }
.dial-num { font-family: "bettoni-variable", 'Fraunces', serif; font-size: 3.2rem; line-height: 1; }
.dial-num span { font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.6; }
.dial-num b { font-weight: 400; font-variant-numeric: tabular-nums; }
.dial-word { font-weight: 600; margin-top: 0.3rem; }
.g-dial.is-bad .dial-word { color: #B3261E; }
.g-dial input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 1rem 0 0; background: transparent; cursor: pointer; }
.g-dial input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #F1E6CF 60%, var(--blue)); }
.g-dial input[type="range"]::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #F1E6CF 60%, var(--blue)); }
.g-dial input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 2px 6px rgba(26, 23, 20, 0.3); }
.g-dial input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 2px 6px rgba(26, 23, 20, 0.3); }
.dial-ends { display: flex; justify-content: space-between; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; }
.dial-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.2rem 0 0; }
.dial-facts div { background: var(--paper); border-radius: 6px; padding: 0.7rem 0.85rem; }
.dial-facts dt { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.6; }
.dial-facts dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }

/* Bakery photo strip */
.g-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0 2.5rem; }
.g-shots figure { margin: 0; }
.post-body .g-shots img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: 0; display: block; }
.g-shots figcaption { margin-top: 0.45rem; font-size: 0.9rem; line-height: 1.3; }
.g-shots figcaption strong { display: block; }
.g-shots figcaption span { color: var(--orange); font-weight: 600; }

/* Chart bars grow in */
.ph-bar { transform-origin: left center; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph-chart.is-waiting .ph-bar { transform: scaleX(0); }

/* Ingredient groups */
.g-groups { margin: 1.5rem 0 2.5rem; }
.g-panel { margin-bottom: 2.5rem; }
.post-body .g-panel h3 { margin: 0 0 0.6rem; }
.g-panel .g-scroll { margin: 1rem 0; }

/* What went wrong? */
.fix-card { margin-top: 1.2rem; background: var(--paper); border-radius: 8px; padding: 1.2rem 1.2rem 1rem; }
.post-body .fix-card h3 { margin: 0 0 0.9rem; }
.fix-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fix-tag { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.4rem; }
.fix-ph .fix-tag { color: var(--orange); }
.fix-other .fix-tag { opacity: 0.6; }
.post-body .fix-card p, .post-body .fix-card li { font-size: 0.96rem; line-height: 1.5; }
.post-body .fix-card p { margin: 0 0 0.6rem; }
.post-body .fix-card ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.post-body .fix-card li { margin-bottom: 0.3rem; }
.post-body .fix-links { margin: 0.6rem 0 0; padding-top: 0.8rem; border-top: 1px solid rgba(26, 23, 20, 0.12); font-size: 0.9rem; }
.g-js .fix-card { animation: g-rise 0.25s ease-out; }
@keyframes g-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Recipe builder box */
.post-body a.g-app { display: block; margin: 2rem 0; padding: 1.3rem 1.4rem; border-radius: 10px; background: var(--ink); color: var(--paper); border: 0; text-decoration: none; transition: transform 0.2s; }
.post-body a.g-app:hover { transform: translateY(-2px); color: var(--paper); }
.g-app-label { display: block; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--yellow); margin-bottom: 0.45rem; }
.g-app strong { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin-bottom: 0.35rem; }
.g-app span:not(.g-app-label) { display: block; font-size: 0.96rem; line-height: 1.5; opacity: 0.88; }
.g-app em { display: inline-block; margin-top: 0.8rem; font-style: normal; font-weight: 600; color: var(--orange); }

/* Soda and acid */
.calc-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; font-weight: 600; }
.calc-in input { width: 5.5rem; font: inherit; font-size: 1.3rem; font-weight: 600; text-align: right; padding: 0.4rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0 0.8rem; }
.calc-out div { background: var(--paper); border-radius: 6px; padding: 0.8rem 0.9rem; }
.calc-out b { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-weight: 400; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-out span { font-size: 0.85rem; opacity: 0.75; }
.post-body .calc-note { margin: 0; font-size: 0.9rem; opacity: 0.8; }

/* Quiz */
.quiz-q { padding: 1rem 0; border-top: 1px solid rgba(26, 23, 20, 0.14); }
.post-body .quiz-q p { margin: 0 0 0.7rem; font-weight: 600; }
.quiz-why { margin-top: 0.7rem; font-size: 0.94rem; }
.g-js .quiz-why { display: none; }
.g-js .quiz-q.is-done .quiz-why { display: block; }
.g-chip.is-right { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
.g-chip.is-wrong { background: #B3261E; border-color: #B3261E; color: #fff; }
.g-chip:disabled { cursor: default; opacity: 1; }
.quiz-score { margin-top: 0.4rem; padding: 0.9rem 1rem; background: var(--yellow); border-radius: 6px; font-weight: 600; }

@media (max-width: 600px) {
  .g-tool, .g-who { padding: 1.15rem 1rem 1.25rem; margin-left: -0.25rem; margin-right: -0.25rem; }
  .dial-stage { grid-template-columns: 112px 1fr; }
  .dial-bake { width: 112px; }
  .dial-num { font-size: 2.6rem; }
  .g-shots { grid-template-columns: repeat(2, 1fr); }
  .fix-cols { grid-template-columns: 1fr; gap: 0.6rem; }
  .g-chip { font-size: 0.85rem; padding: 0.55rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-bar, .g-chip, .g-app, .dial-bake path { transition: none !important; }
  .g-js .fix-card { animation: none; }
}

/* What to buy */
.g-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
.g-buy > div { background: var(--cream); border-radius: 8px; padding: 1rem 1rem 1.1rem; border: 2px solid transparent; }
.g-buy > div.is-pick { border-color: var(--orange); background: var(--paper); }
.g-buy-price { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.3rem; }
.g-buy strong { display: block; line-height: 1.25; margin-bottom: 0.4rem; }
.post-body .g-buy p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.g-buy em { display: inline-block; margin-top: 0.7rem; font-style: normal; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); }
.g-qa { scroll-margin-top: 110px; }
.g-qa .comment-owner-badge { margin-left: 0.5rem; }
@media (max-width: 720px) { .g-buy { grid-template-columns: 1fr; } }

/* Oven lesson */
.oven-read { margin-top: 1.1rem; }
.oven-read .dial-num span { margin-left: 0.2rem; font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.g-oven input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--yellow), var(--orange) 55%, #8C2B12); }
.g-oven input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--yellow), var(--orange) 55%, #8C2B12); }
.oven-table td, .oven-table th { white-space: nowrap; }
.oven-table tr.is-key td { background: var(--yellow); font-weight: 600; }
.g-pan .calc-in + .calc-in { margin-top: 0.7rem; }
.g-pan select { font: inherit; font-weight: 600; max-width: 100%; padding: 0.5rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.post-body .g-shots figcaption a { border: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Internal temperature lesson */
.g-tool select { font: inherit; font-weight: 600; max-width: 100%; padding: 0.5rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.done-row { margin-top: 0.8rem; }
.calc-in > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.g-chip.done-unit { padding: 0.5rem 0.8rem; min-width: 3.2rem; }
.done-verdict { margin: 1rem 0 0.8rem; padding: 1rem 1.1rem; border-radius: 8px; background: var(--paper); border-left: 5px solid rgba(26, 23, 20, 0.25); }
.done-verdict b { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: 0.25rem; }
.done-verdict span { font-size: 0.95rem; }
.done-verdict.is-wait { border-left-color: var(--orange); }
.done-verdict.is-done { border-left-color: #2E7D4F; background: #E7F2EA; }
.done-verdict.is-over { border-left-color: #B3261E; background: #FBEAE8; }
.g-core input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #F1E6CF, var(--yellow) 45%, var(--orange) 80%, #8C2B12); }
.g-core input[type="range"]::-moz-range-track { background: linear-gradient(90deg, #F1E6CF, var(--yellow) 45%, var(--orange) 80%, #8C2B12); }
.temp-table td:nth-child(-n+4), .temp-table th { white-space: nowrap; }
.temp-table td:first-child { white-space: normal; min-width: 9rem; }
.temp-table td:last-child { min-width: 14rem; }

/* Storage lesson */
.g-keep .calc-in select { flex: 1 1 12rem; min-width: 0; width: 100%; text-overflow: ellipsis; }
.g-keep input[type="date"] { font: inherit; font-weight: 600; padding: 0.45rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
.keep-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1rem 0 0.8rem; }
.keep-out > div { background: var(--paper); border-radius: 6px; padding: 0.8rem 0.9rem; border-top: 4px solid #2E7D4F; }
.keep-out > div.is-no { border-top-color: #B3261E; }
.keep-where { display: block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.6; }
.keep-out b { display: block; font-family: "bettoni-variable", 'Fraunces', serif; font-weight: 400; font-size: 1.45rem; line-height: 1.15; margin: 0.2rem 0 0.25rem; }
.keep-out > div.is-no b { color: #B3261E; }
.keep-out span:not(.keep-where) { font-size: 0.85rem; line-height: 1.35; display: block; }
.keep-table td:first-child { min-width: 11rem; }
.keep-table td:not(:first-child), .keep-table th { min-width: 6.5rem; }
@media (max-width: 600px) { .keep-out { grid-template-columns: 1fr; } }

/* Cups to grams lesson */
.g-conv .calc-in select { min-width: 0; max-width: 100%; }
.g-conv .calc-in:first-of-type select { flex: 1 1 12rem; width: 100%; }
.g-conv .calc-in > span { flex-wrap: wrap; justify-content: flex-end; }
.conv-out .conv-wide { grid-column: 1 / -1; }
.cup-table td, .cup-table th { white-space: nowrap; }
.cup-table td:first-child { white-space: normal; min-width: 10rem; }
.scoop-bar { position: relative; height: 22px; margin: 1.2rem 0 0.4rem; background: var(--paper); border-radius: 999px; overflow: hidden; }
.scoop-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 75%; background: var(--orange); border-radius: 999px; transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s; }
.scoop-bar .scoop-mark { position: absolute; left: 75%; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.g-scoop.is-good .scoop-bar i { background: #2E7D4F; }
.g-scoop.is-over .scoop-bar i { background: #B3261E; }
@media (prefers-reduced-motion: reduce) { .scoop-bar i { transition: none; } }

/* ---- Baking School account (school.js) ---------------------------------- */
.g-school { margin: 2.5rem 0; }
.hub .g-school { margin: 0 0 2.5rem; }
.g-school:empty { display: none; }
.g-school h3 { font-family: "bettoni-variable", 'Fraunces', serif; font-variation-settings: "opsz" 40, "wght" 110; font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.g-school p { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.5; }
.school-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.6rem; }
.school-form input { flex: 1 1 220px; min-width: 0; padding: 0.85rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; }
.school-form button { padding: 0.85rem 1.5rem; border: none; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; }
.school-form button:hover { background: var(--orange); color: var(--ink); }
.school-form button:disabled { opacity: 0.6; cursor: default; }
.g-school .school-msg { font-weight: 600; margin: 0 0 0.6rem; }
.g-school .school-msg:empty { display: none; }
.g-school .school-small { font-size: 0.85rem; opacity: 0.75; margin: 0.9rem 0 0; }
.school-link { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-bottom: 1px solid currentColor; }
.school-bar { height: 12px; border-radius: 999px; background: var(--paper); overflow: hidden; margin: 0.4rem 0 0.5rem; }
.school-bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); transition: width 0.4s; }
.g-school .school-count { font-weight: 600; font-size: 0.92rem; }
.school-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.g-school a.g-btn, .school-print a.g-btn { color: var(--paper); border-bottom: none; text-decoration: none; }
.g-school a.g-btn:hover, .school-print a.g-btn:hover { color: var(--ink); }
.g-school a.g-btn.ghost { color: var(--ink); border: 1.5px solid var(--ink); }
.g-school a.g-btn.ghost:hover { color: var(--paper); }
.g-school button.g-btn { border: 0; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.school-grad { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: center; margin-top: 1.4rem; padding: 1.1rem; background: var(--paper); border-radius: 8px; }
.school-grad strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.g-school .school-grad p { font-size: 0.94rem; margin: 0 0 0.7rem; }
.g-school .school-grad p:last-child { margin: 0; }
.school-badge { width: 100%; height: auto; display: block; filter: grayscale(1); opacity: 0.35; }
.school-grad.is-earned .school-badge { filter: none; opacity: 1; }
.school-print { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
div.school-print { margin: 0 0 1.4rem; }
.school-print:empty { display: none; }
.school-print-note { font-size: 0.88rem; opacity: 0.75; }
.lesson.is-done .num { color: #2E7D4F; opacity: 1; }
.lesson.is-done .tag, .lesson.is-live.is-done:hover .tag { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
.sb-lessons li.is-done .gl-num { color: #2E7D4F; opacity: 1; }
.sb-lessons li.is-done > a::after, .sb-lessons li.is-done > span::after { content: " \2713"; color: #2E7D4F; font-weight: 600; }
.post-body .quiz-intro { margin: -0.3rem 0 0.9rem; font-size: 0.94rem; opacity: 0.8; }
.quiz-again { margin-top: 0.8rem; }
@media (max-width: 520px) { .school-grad { grid-template-columns: 5.5rem 1fr; } }
