/* V2.2 Warm Sand preview: muted sand, oat and coffee. Six main sections. Theme-only; no engine, route or access changes. */
:root:has(.section-view:not(.hidden)){
  --bg-canvas:#dcd2c0;
  --bg-surface:#ece5d8;
  --bg-elevated:#e3d5c3;
  --bg-hud:#ece5d8;
  --text-main:#302b24;
  --text-primary:var(--text-main);
  --text-muted:#5c5144;
  --text-dim:#64594c;
  --border-subtle:#c7b8a2;
  --border-strong:#786a55;
  --accent:#785039;
  --accent-button:#80543d;
  --accent-fg:#fff;
  --accent-soft:#e3d5c3;
  --accent-warm:#785039;
  --profit:#1d6546;
  --warn:#824a0d;
  --danger:#943d35;
  --shadow-card:none;
  --photo-radius:16px;
  --thumb-radius:12px;
  --font-sans:"Be Vietnam Pro",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",monospace;
}
body:has(.section-view:not(.hidden)){
  font-family:var(--font-sans); color:var(--text-main);
  background:var(--bg-canvas);
}
body:has(.section-view:not(.hidden)) :is(.brand-header,.nav-shell){
  background:var(--bg-canvas);
  border-color:var(--border-subtle);
  backdrop-filter:none;
}
body:has(.section-view:not(.hidden)) .nav-shell {max-width:1440px;min-height:76px;}
body:has(.section-view:not(.hidden)) .wordmark{color:var(--text-main);letter-spacing:-.07em;font-size:25px;}
body:has(.section-view:not(.hidden)) .wordmark small{font:500 9px/1.3 var(--font-sans);letter-spacing:.11em;}
body:has(.section-view:not(.hidden)) .primary-nav .nav-pill{
  font-size:14px;letter-spacing:-.015em;background:transparent;border-color:transparent;font-weight:500;
}
body:has(.section-view:not(.hidden)) .primary-nav .nav-pill.studio-card{
  background:transparent;border-bottom:2px solid var(--accent);color:var(--accent);
}
body:has(#section-home:not(.hidden)) .primary-nav .lab-nav{
  background:transparent;color:var(--text-main);border:1px solid var(--border-strong);border-radius:4px;
}
body:has(#section-home:not(.hidden)) .primary-nav .lab-nav:hover{background:var(--accent-soft);color:var(--accent)}
body:has(.section-view:not(.hidden)) .nav-dot{display:none;}
body:has(.section-view:not(.hidden)) .account-btn{
  color:var(--text-main);border:1px solid var(--border-strong);background:var(--bg-surface);border-radius:4px;min-height:44px;
}
body:has(.section-view:not(.hidden)) :is(.solid-button,.btn-primary){color:var(--accent-fg);background:var(--accent-button);border-color:var(--accent-button);border-radius:4px;}
body:has(.section-view:not(.hidden)) :is(.solid-button,.btn-primary):hover{background:#73412a;border-color:#73412a;color:var(--accent-fg);}
body:has(.section-view:not(.hidden)) .outline-button{border-color:var(--border-strong);background:var(--bg-surface);color:var(--text-main);border-radius:4px;}
body:has(.section-view:not(.hidden)) .outline-button:hover{border-color:var(--accent);color:var(--accent);}
body:has(.section-view:not(.hidden)) .kicker{font-family:var(--font-sans);text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;}
body:has(.section-view:not(.hidden)) :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
body:has(.section-view:not(.hidden)) .site-footer{
  --footer-ink:#ece5d8;--footer-muted:#dcd2c0;--footer-gold:#e8b99d;--footer-line:#756b5b;background:#302b24;
}
body:has(.section-view:not(.hidden)) .site-footer-group h2{color:var(--footer-ink);letter-spacing:0;font-size:14px;}
body:has(.section-view:not(.hidden)) :is(.demo-dialog,.lab3-dialog,.member-dialog,.cloud-dialog){
  background:var(--bg-surface);border-color:var(--border-strong);color:var(--text-main);
}
/* Editorial — one opening message, image-led storytelling, real sample canvas. */
#section-home.home9{max-width:1440px;padding:46px 48px 86px;}
#section-home .home9-hero{grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:clamp(28px,4.5vw,72px);align-items:center;}
#section-home .home9-intro{padding:16px 0 24px;}
#section-home .home9-kicker{display:block;}
#section-home h1{font-family:var(--font-sans);font-size:clamp(43px,4.25vw,69px);line-height:1.17;letter-spacing:-.055em;font-weight:700;margin:18px 0 24px;max-width:650px;}
#section-home h1 em{color:var(--accent);}
#section-home .home9-lead{font-size:17px;line-height:1.75;max-width:500px;}
#section-home .home9-actions{gap:20px;margin-top:26px;}
#section-home .home9-main-cta{min-height:54px;min-width:0;gap:22px;padding:14px 20px;box-shadow:none;font-size:15px;font-weight:650;}
#section-home .home9-main-cta:hover{transform:none;}
#section-home .home9-arrow{height:20px;width:20px;}
#section-home .home9-how-link{font-size:14px;font-weight:600;color:var(--text-main);}
#section-home .home9-assurance{font-size:13px;color:var(--text-muted);margin-top:20px;}
.demo-editorial-photo{margin:0;min-width:0;position:relative;}
.demo-editorial-photo img{width:100%;height:clamp(360px,37vw,540px);object-fit:cover;object-position:center;}
.demo-editorial-photo figcaption{margin-top:10px;font-size:12px;letter-spacing:0;color:var(--text-muted);}
.demo-lab-showcase{display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:clamp(30px,6vw,96px);align-items:center;margin-top:88px;padding-top:48px;border-top:1px solid var(--border-subtle);}
#section-home .home9-how{margin:0;}
#section-home .home9-how-heading{display:block;margin-bottom:20px;}
#section-home .home9-how-heading h2,#section-home .heading-row h2,#section-home .home9-about h2,#section-home .home9-final h2{font-size:clamp(30px,3.3vw,46px);line-height:1.2;letter-spacing:-.045em;font-weight:700;}
#section-home .home9-how-heading p{margin-top:14px;line-height:1.7;font-size:15px;}
#section-home .home9-steps{display:flex;flex-direction:column;gap:0;border:0;background:none;}
#section-home .home9-step{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:14px;row-gap:4px;padding:16px 0;background:none;border-bottom:1px solid var(--border-subtle);}
#section-home .home9-icon{display:block;grid-row:span 2;margin:0;}
#section-home .home9-icon svg{width:26px;height:26px;}
#section-home .home9-icon span{display:none;}
#section-home .home9-step h3{font-size:16px;letter-spacing:-.02em;margin:0;}
#section-home .home9-step p{grid-column:2;font-size:14px;line-height:1.6;}
#section-home .demo-lab-link{margin-top:14px;}
#section-home .home9-preview{background:var(--bg-surface);border-color:var(--border-subtle);border-radius:6px;}
#section-home .home9-preview-header{font:600 13px/1.4 var(--font-sans);letter-spacing:0;color:var(--text-main);}
#section-home .home9-preview-header>span:first-child i{display:none;}
#section-home .home9-live{color:var(--profit);}
#section-home .home9-live i{background:var(--profit);}
#section-home .home9-stage{height:clamp(320px,29vw,425px);}
#section-home .home9-stage-top,#section-home .home9-stage-label{font-family:var(--font-sans);font-size:11px;letter-spacing:0;}
#section-home .home9-samples button{font-size:13px;min-height:44px;border-color:var(--border-subtle);border-radius:4px;}
#section-home .home9-samples button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);}
#section-home .home9-preview-foot small{font-size:12px;}
#section-home .editorial-section{margin-top:76px;}
#section-home .recipe-v2,#section-home .explore-feature{background:transparent;}
#section-home .recipe-open img,#section-home .explore-feature img{aspect-ratio:1.35;}
#section-home .recipe-info,#section-home .explore-feature>div{padding:17px 22px 8px 0;}
#section-home .recipe-info h3,#section-home .explore-feature h3{font-size:22px;line-height:1.3;letter-spacing:-.025em;}
#section-home .recipe-arrow,#section-home .arrow-circle{right:0;}
#section-home .recipe-lab{background:transparent;color:var(--accent);text-align:left;border:0;border-bottom:1px solid var(--border-subtle);margin:5px 0 0;padding:12px 0;}
#section-home .recipe-lab:hover{background:transparent;color:var(--accent);text-decoration:underline;}
#section-home .home9-about{margin-top:84px;background:var(--bg-elevated);border:0;}
#section-home .home9-about>div{padding:32px 42px;}
#section-home .home9-final{padding:32px 0 0;background:none;border:0;border-top:1px solid var(--border-subtle);margin-top:64px;}
/* Free lab — approachable tool with stronger separation between content and controls. */
#section-rnd .lab4-wrap{max-width:1320px;padding-top:28px;}
#section-rnd .lab4-head h1{font-size:clamp(32px,3.8vw,48px);font-weight:700;letter-spacing:-.045em;}
#section-rnd .lab8-steps{background:var(--bg-surface);border-color:var(--border-subtle);padding:6px;gap:6px;}
#section-rnd .lab8-steps button[aria-current=step]{background:var(--accent-soft);border-color:var(--accent);color:var(--text-main);}
#section-rnd .lab8-step-num{background:var(--bg-elevated);border-color:var(--border-subtle);color:var(--text-muted);}
#section-rnd .lab8-steps button[aria-current=step] .lab8-step-num{background:var(--accent);border-color:var(--accent);color:var(--accent-fg);}
#section-rnd .lab8-steps button.is-complete .lab8-step-num{background:var(--accent-soft);border-color:var(--border-subtle);color:var(--accent);}
#section-rnd .lab8-steps button:not(:disabled):hover{background:var(--accent-soft);}
#section-rnd .lab8-eyebrow,#section-rnd .lab4-section-title h2{font-size:12px;letter-spacing:0;}
#section-rnd .lab8-intro h2,#section-rnd .lab8-studio-toolbar h2{font-size:clamp(23px,2.4vw,32px);font-weight:650;}
#section-rnd .lab8-glass{background:var(--bg-surface);border-color:var(--border-subtle);border-radius:6px;}
#section-rnd .lab8-glass:hover,#section-rnd .lab8-glass[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);box-shadow:none;}
#section-rnd .lab8-glass svg{filter:none;}
#section-rnd .lab8-glass svg [stroke]{stroke:#786a55;}
#section-rnd .lab8-glass-name>span{font-family:var(--font-sans);}
#section-rnd .lab8-check{background:var(--bg-elevated);border-color:var(--border-strong);}
#section-rnd .lab8-glass[aria-pressed=true] .lab8-check{color:var(--accent-fg);background:var(--accent);border-color:var(--accent);}
#section-rnd .lab8-selection-basket,#section-rnd .lab8-basket-empty{background:var(--bg-canvas);border-color:var(--border-subtle);}
#section-rnd .lab8-selection-basket h3 span,#section-rnd .lab8-basket-glass{color:var(--text-main);}
#section-rnd .lab8-selection-basket h3 span{background:var(--accent-soft);}
#section-rnd .lab8-glass-mini{border-color:var(--border-subtle);}
#section-rnd .lab8-pro-toggle{background:var(--bg-surface);border-color:var(--border-strong);border-radius:5px;}
#section-rnd .lab8-switch{background:var(--border-strong);}
#section-rnd .lab8-switch i,#section-rnd .lab8-pro-toggle[aria-pressed=true] .lab8-switch i{background:var(--bg-surface);}
#section-rnd .lab8-pro-toggle[aria-pressed=true] .lab8-switch{background:var(--accent);}
#section-rnd .lab4-editor,#section-rnd .lab4-preview,#section-rnd .lab8-setup{border-radius:6px;}
#section-rnd .lab4-section-title h2{color:var(--text-dim);}
#section-rnd .lab4-section-title h2 span{font-size:21px;font-weight:650;letter-spacing:-.025em;}
#section-rnd .lab4-name input,#section-rnd .lab4-qty-group{background:var(--bg-surface);border-color:var(--border-strong);}
#section-rnd .lab4-qty-group{min-height:44px;}
#section-rnd .lab4-step:hover{background:var(--accent-soft);}
#section-rnd .lab4-step{min-height:42px;}
#section-rnd .lab3-row-action{color:var(--text-muted);}
#section-rnd .lab3-row-action:hover{color:var(--danger);}
#section-rnd .lab3-live{color:var(--profit);font-size:12px;letter-spacing:0;}
#section-rnd .lab3-live i{background:var(--profit);box-shadow:none;}
#section-rnd .lab4-picker,#section-rnd .lab4-picker-body,#section-rnd .lab8-taste-peek,#section-rnd .lab4-advice,#section-rnd .lab3-advice{background:var(--accent-soft);border-color:var(--border-subtle);}
#section-rnd .lab4-picker>summary b,#section-rnd .lab4-advice-text>strong,#section-rnd .lab3-advice>strong{color:var(--text-main);}
#section-rnd .lab4-picker>summary small,#section-rnd .lab3-advice p{color:var(--text-muted);}
#section-rnd .lab4-picker-body{background:var(--bg-surface);}
#section-rnd .lab3-add,#section-rnd .lab3-segment button.chosen,#section-rnd .lab3-mix-row button.chosen,#section-rnd .lab3-option,#section-rnd .lab-idea-tabs button.chosen{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);}
#section-rnd .lab3-add:hover,#section-rnd .lab3-option:hover{background:var(--accent);color:var(--accent-fg);}
#section-rnd .lab3-mix-row button{min-height:44px;}
#section-rnd .lab3-mix-row button:not(.chosen),#section-rnd .lab3-segment,#section-rnd .lab3-search,#section-rnd .lab3-chem>div,#section-rnd .lab3-op-grid>div,#section-rnd .lab3-compare,#section-rnd .lab4-toolbox .lab3-extra,#section-rnd .lab5-wrap #v3-layer-list .lab3-layer,#section-rnd .lab-idea-tabs,#section-rnd .lab-idea-query,#section-rnd .lab-idea-panel{background:var(--bg-canvas);border-color:var(--border-subtle);}
#section-rnd .lab3-volume-track,#section-rnd .lab3-taste-track,#section-rnd .rd-meter{background:var(--bg-elevated);}
#section-rnd .lab3-taste-track i,#section-rnd .rd-meter i{background:var(--accent);}
#section-rnd .lab3-taste-track em,#section-rnd .lab3-taste-legend span:last-child i{background:var(--text-main);box-shadow:none;}
#section-rnd .lab3-layer-arrows button,#section-rnd .lab3-qty input,#section-rnd .lab3-num,#section-rnd .lab3-amber,#section-rnd .lab5-target-note{background:var(--accent-soft);border-color:var(--border-subtle);}
#section-rnd .lab3-warning b,#section-rnd .lab4-alerts>summary>span:first-child::before{background:#faeee1;color:var(--warn);border-color:#dcbd98;}
#section-rnd .lab3-no-warning b{background:#e4f1e8;color:var(--profit);border-color:#b8d9c5;}
#section-rnd .lab4-alerts>summary,#section-rnd .lab3-match small.lab3-missing{color:var(--warn);}
#section-rnd .rd-notebook,#section-rnd .rd-decor,#section-rnd .rd-suggestion{background:var(--bg-surface);border-color:var(--border-subtle);}
#section-rnd .rd-decor-options button{background:var(--accent-soft);border-color:var(--border-subtle);}
body:has(#section-rnd:not(.hidden)) :is(.lab3-field input,.lab3-field select,.lab3-lib-filter select,.lab3-op-grid select,.lab3-op-grid input,.rd-basket-qty input,#v3-guide-content){background:var(--bg-surface);border-color:var(--border-strong);color:var(--text-main);font-size:14px;}
#section-rnd .lab3-glass-tools button{color:#fff;border-color:#ffffff66;background:#242422d9;min-height:44px;min-width:44px;}
#section-rnd .lab3-viewport{border-color:var(--border-subtle);}
/* Preserve rendering colors, overlays, published data, and state. Only UI surfaces are re-themed. */
@media(max-width:1100px){
  #section-home.home9{padding-inline:28px;}
  #section-home .home9-hero{gap:28px;}
  #section-home h1{font-size:clamp(38px,4.7vw,58px);}
  .demo-lab-showcase{gap:30px;}
}
@media(max-width:760px){
  #section-home.home9{padding:26px 18px 50px;}
  #section-home .home9-hero,.demo-lab-showcase{grid-template-columns:1fr;gap:23px;}
  #section-home .home9-intro{padding:4px 0 0;}
  #section-home h1{font-size:clamp(36px,9.3vw,52px);margin:13px 0 16px;}
  #section-home .home9-lead{font-size:16px;}
  #section-home .home9-actions{align-items:center;gap:8px 13px;margin-top:20px;}
  #section-home .home9-main-cta{flex:0 1 auto;}
  #section-home .home9-how-link{max-width:none;flex:0 1 auto;padding:8px 0;min-height:44px;}
  .demo-editorial-photo img{height:auto;aspect-ratio:1.4;}
  .demo-lab-showcase{margin-top:42px;padding-top:27px;}
  #section-home .home9-stage{height:clamp(280px,72vw,380px);}
  #section-home .editorial-section,#section-home .home9-about,#section-home .home9-final{margin-top:44px;}
  #section-home .home9-about>div{padding:23px;}
  #section-home .home9-step{padding-block:13px;}
  #section-rnd .lab4-wrap{padding-top:18px;}
  #section-rnd .lab8-steps{padding:4px;}
  #section-rnd .lab8-steps button{min-height:64px;}
}
@media(prefers-reduced-motion:reduce){
  #section-home *,#section-rnd *{scroll-behavior:auto!important;transition:none!important;}
}

/* Account and auxiliary Lab tools remain readable without changing their behavior. */
body:has(.section-view:not(.hidden)) :is(.cloud-save-box,.member-plans,.cloud-recipe){
  background:var(--bg-surface);border-color:var(--border-subtle);
}
body:has(.section-view:not(.hidden)) :is(.cloud-save-box small,.cloud-recipe small,.cloud-list-heading span){color:var(--text-muted);}
#section-rnd .rnd-pro-entry button{background:var(--bg-surface);border-color:var(--border-strong);}
#section-rnd .rd-axis small,#section-rnd .lab8-glass>small,#section-rnd .lab4-disclosure>summary small{font-size:12px;}
#section-rnd .lab4-preview-foot,#section-rnd .lab4-preview-foot span:last-child{font-size:12px;}

/* V2.1 — consistent light editorial surfaces and gently rounded photography.
   Only main-site sections; separate admin, staff and plans pages are unchanged.
   Canvas pixels and overlay contrast remain unchanged. */
.editorial-page :is(.demo-editorial-photo,.hero-photo,.about-editorial,.certificate-editorial) img{
  border-radius:var(--photo-radius);
}
.editorial-page :is(.recipe-open,.article-open,.course-v2,.explore-feature,.portfolio-grid,.home9-about) img{
  border-radius:var(--thumb-radius);
}
.editorial-page :is(.recipe-v2,.article-v2,.article-featured,.course-v2,.portfolio-grid article,.explore-feature){
  border-radius:var(--thumb-radius);
}
#section-home .home9-about,#section-home .home9-preview{border-radius:var(--photo-radius);}
#section-home .home9-about>img{border-radius:var(--photo-radius);}
#section-home .home9-stage,#section-rnd .lab4-preview .lab3-viewport{
  border-radius:var(--thumb-radius);overflow:hidden;
}
#section-home .home9-assurance b{color:var(--profit);}
body:has(.section-view:not(.hidden)) .filter-row button.selected{border-color:var(--accent);}
body:has(.section-view:not(.hidden)) .search-field{border-radius:6px;color:var(--text-main);}
body:has(.section-view:not(.hidden)) .release-soon{background:var(--accent-soft);border-color:var(--border-subtle);}
#section-home .academy-v2{background:var(--bg-elevated);border-radius:var(--photo-radius);}
#section-home .academy-v2 p{color:var(--text-muted);}
/* Learning preview reading surfaces must remain legible with the shared tokens. */
#section-certificates #course-workspace,
#section-certificates :is(.learn-side,.learn-nav,.learn-quiz,.learn-choice){
  background:var(--bg-surface);border-color:var(--border-subtle);
}
#section-certificates :is(.learn-banner,.learn-practice,.learn-feedback,.learn-nav.active,.learn-nav:hover){
  background:var(--accent-soft);border-color:var(--accent);
}
#section-certificates :is(.learn-banner p,.learn-message,.learn-reading .learn-summary){color:var(--text-main);}
#section-certificates .learn-section{border-color:var(--border-subtle);}
#section-certificates .learn-complete{color:var(--profit);}

/* Homepage journey — the product itself is the opening experience. */
body:has(#section-home:not(.hidden)) .account-btn{background:var(--accent-button);color:var(--accent-fg);border-color:var(--accent-button);font-weight:700}
body:has(#section-home:not(.hidden)) .account-btn:hover{background:#73412a}
#section-home .demo-lab-showcase{margin-top:0;padding-top:0;border-top:0;gap:clamp(28px,3.6vw,60px)}
#section-home .home9-how-heading h1{text-wrap:balance;font-size:clamp(33px,3.5vw,54px);line-height:1.14;letter-spacing:-.05em;margin:13px 0 15px}
#section-home .demo-lab-link{display:inline-flex;align-items:center;margin-top:24px}
#section-home .home9-assurance{margin-top:10px}
#section-home .home-journey-account{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:clamp(24px,5vw,72px);align-items:center;background:#724a35;color:#fff8ed;border-radius:var(--photo-radius);margin-top:clamp(46px,6vw,84px);padding:clamp(26px,4.5vw,62px)}
#section-home .home-journey-kicker{display:block;font-size:13px;font-weight:650;color:#f1d3bd}
#section-home .home-journey-account h2,#section-home .home-journey-section h2{font-family:var(--font-sans);font-size:clamp(30px,3.3vw,46px);line-height:1.19;letter-spacing:-.045em;font-weight:700;margin:12px 0 16px}
#section-home .home-journey-account p{font-size:15px;line-height:1.75;color:#f8ebdf;max-width:590px}
#section-home .home-journey-account-action{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
#section-home .home-journey-signin{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;background:#f6e7d4;color:#35271f;border:1px solid #f6e7d4;min-height:58px;border-radius:6px;padding:16px 20px;font-size:clamp(16px,1.6vw,22px);font-weight:750}
#section-home .home-journey-signin:hover{background:#fff2e1}
#section-home .home-journey-signin:focus-visible{outline-color:#fff2e1}
#section-home .home-journey-account-action small{font-size:13px;line-height:1.6;color:#f8ebdf}
#section-home .home-journey-section{margin-top:clamp(48px,6.5vw,92px)}
#section-home .home-journey-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
#section-home .home-journey-section p{font-size:15px;line-height:1.75;color:var(--text-muted);max-width:640px}
#section-home .home-journey-link{display:inline-flex;align-items:center;gap:10px;color:var(--accent);font-weight:700;font-size:15px;min-height:44px;flex-shrink:0;text-decoration:none}
#section-home .home-journey-link:hover{text-decoration:underline}
#section-home .home-journey-learning{display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);align-items:center;gap:clamp(22px,4vw,56px);background:var(--bg-elevated);padding:clamp(18px,2.6vw,36px);border-radius:var(--photo-radius)}
#section-home .home-journey-learning>img{display:block;width:100%;aspect-ratio:1.4;object-fit:cover;border-radius:var(--photo-radius)}
#section-home .home-journey-topics{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:20px 0 15px}
#section-home .home-journey-topics li{border:1px solid var(--border-strong);border-radius:5px;color:var(--text-main);padding:8px 12px;font-size:13px;font-weight:600}
@media(max-width:760px){
  #section-home .demo-lab-showcase{gap:23px}
  #section-home .home-journey-account,#section-home .home-journey-learning{grid-template-columns:minmax(0,1fr)}
  #section-home .home-journey-heading{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:16px}
  #section-home .home-journey-learning>img{aspect-ratio:1.65}
}

/* Home copy: group the three customer intentions without adding another section. */
#section-home .home-journey-audiences{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:0}
#section-home .home-journey-audiences li{padding:12px 0;border-bottom:1px solid #fff8ed26}
#section-home .home-journey-audiences li:last-child{border-bottom:0;padding-bottom:0}
#section-home .home-journey-audiences strong{display:block;font-size:16px;color:#fff8ed;font-weight:700;margin-bottom:3px}
#section-home .home-journey-audiences p{margin:0;font-size:14px;line-height:1.65}
#section-home .home9-assurance b{color:var(--accent)}

/* Seasonal editorial collections: native horizontal scrolling, with optional controls. */
#section-home .home-journey-account h2,#section-home #home-library-title{text-wrap:balance}
#section-home .home-seasonal{min-width:0}
#section-home .home-seasonal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
#section-home .home-seasonal-label{font-weight:600;color:var(--text-muted);font-size:14px}
#section-home .home-seasonal-controls{display:flex;gap:8px}
#section-home .home-seasonal-controls button,#section-home .home-collection-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border-strong);border-radius:50%;background:transparent;color:var(--text-main);flex:none}
#section-home .home-seasonal-controls button:not(:disabled):hover,#section-home .home-collection-close:hover{background:var(--accent-soft);color:var(--accent)}
#section-home .home-seasonal-controls button:disabled{opacity:.36;cursor:default}
#section-home .home-seasonal-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#section-home .home-seasonal-track{--gap:clamp(14px,2vw,28px);display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * var(--gap))/3);gap:var(--gap);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;padding:4px 0 12px}
#section-home .home-collection-card{scroll-snap-align:start;display:block;min-width:0;text-align:left;border:0;border-radius:var(--photo-radius);background:transparent;color:var(--text-main);padding:0}
#section-home .home-collection-card img{width:100%;height:auto;aspect-ratio:1.35;object-fit:cover;border-radius:var(--photo-radius);display:block}
#section-home .home-collection-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0 4px}
#section-home .home-collection-caption strong{display:block;font-size:clamp(17px,1.8vw,23px);font-weight:700;line-height:1.2;color:var(--text-main)}
#section-home .home-collection-caption small{display:block;font-size:13px;line-height:1.55;color:var(--text-muted);margin-top:5px}
#section-home .home-collection-caption svg{color:var(--accent);flex:none}
#section-home .home-collection-card:hover strong{color:var(--accent)}
#section-home :is(.home-seasonal-track,.home-collection-card,.home-seasonal-controls button,.home-collection-close,.home-collection-recipe):focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
#section-home .home-collection-dialog{position:fixed;inset:0;width:min(92vw,580px);max-width:min(92vw,580px);max-height:85dvh;margin:auto;padding:clamp(20px,4vw,32px);border:1px solid var(--border-strong);border-radius:var(--photo-radius);overflow:auto;background:var(--bg-surface);color:var(--text-main)}
#section-home .home-collection-dialog::backdrop{background:#21191199}
#section-home .home-collection-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
#section-home .home-collection-dialog-header h2{font-size:clamp(25px,3.5vw,34px);line-height:1.2;margin:8px 0 0;font-weight:700;letter-spacing:-.035em}
#section-home .home-collection-close{font-size:26px;line-height:1}
#section-home .home-collection-recipes{display:grid;gap:12px}
#section-home .home-collection-recipe{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;border:1px solid var(--border-subtle);border-radius:var(--thumb-radius);text-align:left;color:var(--text-main);background:var(--bg-canvas);padding:10px}
#section-home .home-collection-recipe:hover{border-color:var(--accent)}
#section-home .home-collection-recipe img{width:76px;aspect-ratio:1;object-fit:cover;border-radius:8px;flex:none}
#section-home .home-collection-recipe strong{display:block;font-size:15px;line-height:1.45}
#section-home .home-collection-recipe small{display:block;color:var(--text-muted);font-size:12px;margin-top:3px}
#section-home .home-collection-recipe .home9-arrow{flex:none;margin-left:auto;color:var(--accent)}
@media(max-width:1000px){#section-home .home-seasonal-track{grid-auto-columns:calc((100% - var(--gap))/2)}}
@media(max-width:600px){#section-home .home-seasonal-track{grid-auto-columns:86%}}

/* Hero: put the actual Lab experience first, with ingredient discovery alongside it. */
#section-home .demo-lab-showcase{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;column-gap:clamp(20px,2.4vw,36px);row-gap:clamp(18px,2vw,28px)}
#section-home .home9-product,#section-home .home9-how{min-width:0}
#section-home .home9-product .home9-how-heading{margin-bottom:clamp(18px,2.1vw,30px)}
#section-home .home9-product .home9-how-heading h1{text-wrap:balance;margin-bottom:0}
#section-home .home9-how-copy{font-size:clamp(17px,1.65vw,24px);line-height:1.55;font-weight:500;color:var(--text-main);margin:0 0 18px}
#section-home .home9-preview-foot{gap:12px;padding-top:12px}
#section-home .home9-preview-foot small{flex:1;min-width:0}
#section-home .home9-create-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:11px 16px;font-size:14px;font-weight:750;border-radius:6px;flex:none;box-shadow:none}
#section-home .home9-create-cta svg{width:18px;height:18px;flex:none}
#section-home .home9-ingredient-search{margin-top:24px;min-width:0}
#section-home .home9-ingredient-search label{display:block;font-size:16px;font-weight:700;margin:0 0 10px;color:var(--text-main)}
#section-home .home9-search-field{display:flex;align-items:center;gap:10px;min-width:0;padding:5px 5px 5px 13px;border:1px solid var(--border-strong);background:var(--bg-surface);border-radius:8px}
#section-home .home9-search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}
#section-home .home9-search-field>svg{width:20px;height:20px;flex:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;fill:none}
#section-home .home9-search-field input{width:100%;min-width:0;flex:1;font:inherit;font-size:14px;color:var(--text-main);background:transparent;border:0;outline:0;padding:10px 0;box-shadow:none}
#section-home .home9-search-field input::placeholder{color:var(--text-muted);opacity:1}
#section-home .home9-search-field button{background:var(--accent-button);color:var(--accent-fg);font-size:13px;font-weight:700;white-space:nowrap;padding:10px 14px;min-height:44px;border-radius:5px;flex:none}
#section-home .home9-search-field button:hover{background:#73412a}
#section-home .home9-search-results{border:1px solid var(--border-subtle);border-radius:8px;background:var(--bg-surface);margin-top:10px;padding:12px}
#section-home .home9-search-results[hidden]{display:none}
#section-home .home9-search-results p{font-size:13px;line-height:1.5;color:var(--text-muted);margin:0}
#section-home #home-ingredient-matches{display:grid;gap:3px}
#section-home .home9-search-result{display:flex;align-items:center;text-align:left;justify-content:space-between;gap:10px;min-height:44px;padding:8px 0;border-top:1px solid var(--border-subtle);color:var(--text-main);font-size:14px;font-weight:650}
#section-home .home9-search-result:first-child{margin-top:8px}
#section-home .home9-search-result:hover{color:var(--accent)}
#section-home .home9-search-result span{color:var(--accent);flex:none}
@media(max-width:900px){
  #section-home .demo-lab-showcase{grid-template-columns:minmax(0,1fr);gap:28px}
  #section-home .home9-how-copy{margin-bottom:12px}
}
@media(max-width:480px){
  #section-home .home9-preview-foot{flex-direction:column;align-items:stretch}
  #section-home .home9-create-cta{width:100%}
  #section-home .home9-search-field{gap:7px;padding-left:9px}
  #section-home .home9-search-field button{padding-inline:10px;font-size:12px}
  #section-home .home9-search-field input{font-size:13px}
}

/* Compact product masthead, followed by two coherent panels with equal visual weight.
   Their height is determined by content, not oversized individual guide steps. */
#section-home .home9-product{grid-column:1/-1}
#section-home .home9-product .home9-how-heading{margin:0;text-align:center}
#section-home .home9-product .home9-how-heading h1{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:clamp(31px,3.5vw,50px);
  max-width:none;
  line-height:1.12;
  letter-spacing:-.04em;
  text-wrap:balance;
}
#section-home .home9-product .home9-how-heading h1 em{
  font-style:italic;
  font-size:.72em;
  font-weight:550;
  line-height:1.2;
  letter-spacing:-.025em;
  color:var(--accent);
}
#section-home .home9-preview{
  display:flex;
  flex-direction:column;
  align-self:stretch;
}
#section-home .home9-preview-header,#section-home .home9-preview-controls{flex:none}
#section-home .home9-stage{
  flex:1;
  height:auto;
  min-height:clamp(280px,24vw,365px);
}
#section-home #home9-canvas{position:absolute;inset:0;width:100%;height:100%}
#section-home .home9-how{
  display:flex;
  flex-direction:column;
  padding:clamp(20px,2.45vw,34px);
  border:1px solid var(--border-subtle);
  border-radius:var(--photo-radius);
  background:var(--bg-surface);
}
#section-home .home9-how-copy{
  font-size:clamp(19px,1.65vw,24px);
  line-height:1.4;
  font-weight:650;
  letter-spacing:-.025em;
  margin:0 0 13px;
  text-wrap:pretty;
}
#section-home .home9-steps{flex:none}
#section-home .home9-step{
  grid-template-columns:36px minmax(0,1fr);
  align-content:start;
  padding-block:clamp(13px,1.2vw,18px);
}
#section-home .home9-step h3{font-size:clamp(17px,1.3vw,20px);line-height:1.35}
#section-home .home9-step p{font-size:clamp(14px,1.13vw,16px);line-height:1.55}
#section-home .home9-icon svg{width:30px;height:30px}
#section-home .home9-ingredient-search{margin-top:auto;padding-top:20px}
#section-home .home9-search-field{background:var(--bg-canvas);min-height:58px}
#section-home .home9-assurance{margin-top:10px;margin-bottom:0}
@media(max-width:900px){
  #section-home .home9-stage{flex:none;height:clamp(280px,52vw,420px)}
  #section-home .home9-how{padding:clamp(18px,3.5vw,28px)}
  #section-home .home9-product .home9-how-heading h1{font-size:clamp(21px,5.5vw,46px)}
}
@media(max-width:480px){
  #section-home .home9-stage{height:clamp(250px,76vw,330px);min-height:250px}
  #section-home .home9-search-field{flex-wrap:wrap}
  #section-home .home9-search-field button{flex:0 0 100%}
}

/* Three equally weighted audiences and a single horizontal conversion strip. */
#section-home .home-journey-account{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:clamp(24px,2.7vw,38px);
  padding:clamp(26px,3.5vw,52px);
}
#section-home .home-journey-account h2{margin:0 0 clamp(24px,2.5vw,36px);text-wrap:wrap}
#section-home .home-journey-audiences{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
#section-home .home-journey-audiences li{
  padding:0 clamp(18px,2.3vw,32px);
  border-bottom:0;
  border-inline-end:1px solid #fff8ed26;
  min-width:0;
}
#section-home .home-journey-audiences li:first-child{padding-inline-start:0}
#section-home .home-journey-audiences li:last-child{padding-inline-end:0;border-inline-end:0}
#section-home .home-journey-audiences strong{font-size:clamp(16px,1.55vw,22px);margin-bottom:10px;line-height:1.3}
#section-home .home-journey-audiences p{font-size:clamp(14px,1.04vw,16px);line-height:1.65}
#section-home .home-journey-account-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,.57fr);
  align-items:center;
  gap:clamp(24px,4vw,56px);
  padding-top:clamp(20px,2.5vw,32px);
  border-top:1px solid #fff8ed26;
}
#section-home .home-journey-account-action small{order:-1;max-width:680px;font-size:clamp(14px,1.14vw,17px)}
#section-home .home-journey-signin{min-height:58px}
@media(max-width:800px){
  #section-home .home-journey-audiences{grid-template-columns:minmax(0,1fr)}
  #section-home .home-journey-audiences li{
    padding:14px 0;
    border-inline-end:0;
    border-bottom:1px solid #fff8ed26;
  }
  #section-home .home-journey-audiences li:first-child{padding-top:0}
  #section-home .home-journey-audiences li:last-child{border-bottom:0}
  #section-home .home-journey-audiences strong{margin-bottom:5px}
  #section-home .home-journey-account-action{grid-template-columns:minmax(0,1fr);gap:16px}
}

/* PhaCheLab | Warm Sand editorial refinement (2026-12-03)
   Existing product, visual identity and routes retained. Impeccable typeset/audit,
   Hallmark quality floor and Unslop (Damir Sokolovsky, CC BY 4.0) informed this pass.
   The user's approved centered title and smaller upright second line are intentional. */

:root{
  --font-sans:"Be Vietnam Pro",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --type-caption:.8125rem;
  --type-control:.875rem;
  --type-body:1rem;
  --type-card:clamp(1.0625rem,1.55vw,1.375rem);
  --type-section:clamp(1.625rem,2.65vw,2.5rem);
  --type-page:clamp(2rem,4.1vw,3.75rem);
  --weight-regular:400;--weight-medium:500;--weight-heading:600;
  --space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
  --control-radius:6px;
  --ink-on-coffee:#fff8ed;
  --on-coffee-line:#fff8ed26;
}
html:has(.section-view),body:has(.section-view){overflow-x:clip}
body:has(.section-view:not(.hidden)){
  font-family:var(--font-sans);
  font-size:var(--type-body);
  line-height:1.65;
  accent-color:var(--accent);
}
body:has(.section-view:not(.hidden)) :is(button,input,select,textarea){font-family:var(--font-sans)}
body:has(.section-view:not(.hidden)) :is(input[type=number],.tabular-nums,.lab8-step-num,.lab3-num,.lab4-qty-group,.lab8-glass-name>span){font-variant-numeric:tabular-nums}
body:has(.section-view:not(.hidden)) :is(h1,h2,h3){min-width:0;overflow-wrap:break-word}
body:has(.section-view:not(.hidden)) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body:has(.section-view:not(.hidden)) .site-footer :is(a,button):focus-visible{outline-color:var(--footer-gold)}
body:has(.section-view:not(.hidden)) ::selection{background:var(--accent);color:var(--accent-fg)}
/* Do not fade readable content away during local navigation. */
body:has(.section-view:not(.hidden)) .section-view{animation:none}
body:has(.section-view:not(.hidden)) .primary-nav .nav-pill{font-size:var(--type-control);font-weight:var(--weight-medium);letter-spacing:0;min-height:44px;display:flex;align-items:center}
body:has(.section-view:not(.hidden)) .wordmark{letter-spacing:-.04em}
body:has(.section-view:not(.hidden)) .wordmark small{letter-spacing:.06em}
body:has(.section-view:not(.hidden)) .account-btn{font-weight:var(--weight-medium);border-radius:var(--control-radius)}
/* The Lab action, not account registration, leads the homepage. */
body:has(#section-home:not(.hidden)) .account-btn{background:var(--bg-surface);color:var(--text-main);border-color:var(--border-strong);font-weight:var(--weight-medium)}
body:has(#section-home:not(.hidden)) .account-btn:hover{background:var(--accent-soft);color:var(--accent)}
body:has(.section-view:not(.hidden)) :is(.solid-button,.outline-button,.btn-primary){font-weight:var(--weight-heading);letter-spacing:0;border-radius:var(--control-radius)}
body:has(.section-view:not(.hidden)) .site-footer-group h2{font-weight:var(--weight-heading);font-size:var(--type-control);text-transform:none}
body:has(.section-view:not(.hidden)) .site-footer-wordmark{letter-spacing:-.04em}

.editorial-page :is(.page-title h1,.about-editorial h1,.certificate-editorial h1){
  font-family:var(--font-sans);
  font-size:var(--type-page);
  line-height:1.18;
  font-weight:var(--weight-heading);
  letter-spacing:-.03em;
  margin:0 0 var(--space-4);
  text-wrap:balance;
}
.editorial-page :is(.about-editorial,.certificate-editorial,.article-featured .article-open,.contact-v2){grid-template-columns:repeat(2,minmax(0,1fr))}
.editorial-page .article-featured .article-open{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.editorial-page :is(.page-title,.about-editorial,.certificate-editorial) p{font-size:var(--type-body);line-height:1.7;max-width:65ch}
.editorial-page :is(.page-title>.kicker,.about-editorial>div>.kicker,.certificate-editorial>div>.kicker,.course-v2>div>.kicker){display:none}
.editorial-page .section-index{font-size:var(--type-caption);letter-spacing:0;text-transform:none;font-weight:var(--weight-medium)}
.editorial-page :is(.heading-row h2,.academy-v2 h2,.contact-v2 h2,.home9-about h2){font-size:var(--type-section);font-weight:var(--weight-heading);line-height:1.3;letter-spacing:-.025em}
.editorial-page :is(.recipe-info h3,.article-open h3,.course-v2 h3,.portfolio-grid h3,.explore-feature h3,.journey-grid h3){
  font-size:var(--type-card);font-weight:var(--weight-heading);letter-spacing:-.01em;line-height:1.4;
}
.editorial-page .article-featured h3{font-size:clamp(1.375rem,2.35vw,2rem);line-height:1.35;letter-spacing:-.025em;text-wrap:pretty}
.editorial-page :is(.recipe-info p,.course-v2 p,.portfolio-grid p,.article-featured p,.journey-grid p){font-size:var(--type-body);line-height:1.65}
.editorial-page :is(.recipe-info .kicker,.article-open .kicker){font-size:var(--type-caption);font-weight:var(--weight-medium);letter-spacing:0}
.editorial-page .filter-row button{min-height:44px;border-radius:var(--control-radius);font-weight:var(--weight-medium)}
.editorial-page .filter-row button.selected{font-weight:var(--weight-heading)}
.editorial-page .search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.editorial-page .search-field input{font-size:var(--type-body)}
.editorial-page .recipe-lab{min-height:44px}
.editorial-page :is(.recipe-open,.article-open):focus-visible{outline-offset:-3px}

/* First viewport: one centered, two-line masthead; the drink itself supplies color. */
#section-home.home9{padding-top:clamp(24px,2.3vw,32px)}
#section-home .home9-product .home9-how-heading .kicker{display:none}
#section-home .home9-product .home9-how-heading h1{
  font-family:var(--font-sans);font-size:clamp(1.375rem,3.35vw,3rem);font-weight:var(--weight-heading);
  line-height:1.25;letter-spacing:-.03em;gap:var(--space-2);margin:0
}
#section-home .home9-product .home9-how-heading h1 span{max-width:100%;text-wrap:balance}
#section-home .home9-product .home9-how-heading h1 em{
  font-family:inherit;font-size:max(1rem,.55em);font-weight:var(--weight-regular);font-style:normal;line-height:1.25;letter-spacing:0
}
#section-home .demo-lab-showcase{row-gap:var(--space-6)}
#section-home .home9-how{padding:clamp(20px,2vw,28px)}
#section-home .home9-how-copy{font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:var(--weight-heading);line-height:1.5;letter-spacing:0;margin:0 0 var(--space-2)}
#section-home .home9-step{padding-block:var(--space-3);column-gap:var(--space-3);row-gap:4px}
#section-home .home9-step h3{font-size:var(--type-body);font-weight:var(--weight-heading);letter-spacing:0;line-height:1.5}
#section-home .home9-step p{font-size:var(--type-control);line-height:1.65}
#section-home .home9-icon svg{width:28px;height:28px}
#section-home .home9-preview-header,#section-home .home9-live{font-size:var(--type-caption);font-weight:var(--weight-medium)}
#section-home .home9-live i{box-shadow:none}
#section-home .home9-stage{min-height:clamp(260px,23vw,340px)}
#section-home .home9-stage-top,#section-home .home9-stage-label{font-size:var(--type-caption)}
#section-home #home9-recipe-name{font-size:clamp(1.25rem,1.8vw,1.625rem);font-weight:var(--weight-heading);line-height:1.3;letter-spacing:-.015em}
#section-home .home9-samples button{font-size:var(--type-caption);font-weight:var(--weight-medium);border-radius:var(--control-radius)}
#section-home .home9-preview-foot small{font-size:var(--type-caption);line-height:1.6}
#section-home .home9-create-cta{font-size:var(--type-control);font-weight:var(--weight-heading)}
#section-home .home9-ingredient-search{padding-top:var(--space-4)}
#section-home .home9-ingredient-search label{font-size:var(--type-body);font-weight:var(--weight-medium);margin-bottom:var(--space-2)}
#section-home .home9-search-field{min-height:56px}
#section-home .home9-search-field input{font-size:var(--type-body)}
#section-home .home9-search-field button{font-size:var(--type-control);font-weight:var(--weight-heading);border-radius:var(--control-radius)}
#section-home .home9-assurance{font-size:var(--type-caption);line-height:1.6;margin-top:var(--space-2)}
#section-home :is(.home-journey-account h2,.home-journey-section h2,.home-contact h2){font-size:var(--type-section);font-weight:var(--weight-heading);line-height:1.3;letter-spacing:-.025em}
#section-home .home-journey-audiences strong,#section-home .home-collection-caption strong{font-size:var(--type-card);font-weight:var(--weight-heading);letter-spacing:0;line-height:1.4}
#section-home :is(.home-journey-account p,.home-journey-section p){font-size:var(--type-body);line-height:1.65}
#section-home .home-journey-account :is(button,a):focus-visible{outline-color:var(--ink-on-coffee)}
#section-home .home-journey-signin{font-size:var(--type-body);font-weight:var(--weight-heading)}
#section-home .home-collection-caption small,#contact-fields .contact-consent{font-size:var(--type-caption)}
#section-home .home-contact :is(input,textarea,select){font-size:var(--type-body)}

/* Operate mode: readable controls, compact headings, and clear selected states.
   Canvas, ingredient colors, meter values and positioning remain untouched. */
#section-rnd .lab4-head h1{font-size:clamp(1.875rem,3.1vw,2.75rem);font-weight:var(--weight-heading);line-height:1.25;letter-spacing:-.025em}
#section-rnd .lab4-head p{font-size:var(--type-body)}
#section-rnd :is(.lab8-intro h2,.lab8-studio-toolbar h2){font-weight:var(--weight-heading);letter-spacing:-.015em;line-height:1.35;font-size:clamp(1.375rem,2.1vw,1.875rem)}
#section-rnd .lab8-steps button b{font-size:var(--type-control);font-weight:var(--weight-heading)}
#section-rnd .lab8-steps button small{font-size:var(--type-caption);line-height:1.45}
#section-rnd .lab8-steps button:disabled:not([aria-current]){opacity:1;color:var(--text-muted)}
#section-rnd .lab8-glass-name b{font-weight:var(--weight-heading);font-size:var(--type-body)}
#section-rnd .lab8-glass-name>span{font-size:var(--type-caption);font-weight:var(--weight-medium)}
#section-rnd .lab8-glass>small{font-size:var(--type-caption);line-height:1.55}
#section-rnd .lab8-eyebrow{font-weight:var(--weight-medium);letter-spacing:0}
#section-rnd .lab4-section-title h2 span{font-weight:var(--weight-heading);letter-spacing:0}
#section-rnd .lab3-dialog :is(h2,h3),#section-certificates .learn-reading :is(h2,h3){font-weight:var(--weight-heading);line-height:1.4;letter-spacing:-.015em}
#section-certificates .learn-reading{line-height:1.75}
#section-certificates .learn-reading p{max-width:70ch}
#section-rnd .lab8-steps button small{overflow-wrap:break-word}

@media(max-width:900px){
  body:has(.section-view:not(.hidden)) .mobile-menu{min-width:44px;min-height:44px}
  body:has(.section-view:not(.hidden)) .primary-nav.menu-open{gap:4px}
  #section-home .home9-product .home9-how-heading h1{font-size:clamp(1.375rem,4.6vw,2.5rem)}
  #section-home .home9-stage{min-height:260px;height:clamp(260px,52vw,400px)}
  #section-home .home9-ingredient-search input{font-size:1rem}
  .editorial-page .search-field input{font-size:1rem}
  #section-rnd :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:1rem}
}
@media(max-width:640px){
  .editorial-page :is(.about-editorial,.certificate-editorial,.article-featured .article-open,.contact-v2){grid-template-columns:minmax(0,1fr)}
  .editorial-page .page-title{margin-bottom:var(--space-6)}
  body:has(.section-view:not(.hidden)) .nav-shell{min-height:64px}
  body:has(.section-view:not(.hidden)) .wordmark{font-size:22px}
  body:has(.section-view:not(.hidden)) .wordmark small{font-size:8px}
  #section-home .home9-product .home9-how-heading h1{font-size:clamp(1.375rem,5.4vw,2rem)}
  #section-home .home9-stage-top,#section-home .home9-stage-label{font-size:.75rem}
  #section-rnd .lab8-steps button small{font-size:.75rem}
}
@media(max-width:360px){
  body:has(.section-view:not(.hidden)) .nav-shell{padding-inline:12px;gap:8px}
  body:has(.section-view:not(.hidden)) .wordmark{font-size:20px}
  body:has(.section-view:not(.hidden)) .account-btn{font-size:.75rem;padding-inline:8px}
  body:has(.section-view:not(.hidden)) .account-btn span{margin-left:2px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body:has(.section-view:not(.hidden)) :is(.section-view,.article-open img,.recipe-open img,.explore-feature img,.nav-pill){animation:none;transition:none}
}


/* Home library: two levels of editorial emphasis, aligned introduction and seasonal toolbar. */
#section-home #home-library{
  box-sizing:border-box;min-width:0;
  border:1px solid var(--border-subtle);border-radius:var(--photo-radius);
  padding:clamp(16px,2.4vw,32px);background:var(--bg-canvas);box-shadow:none;
}
#section-home #home-library .home-journey-heading{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px;
  margin-bottom:clamp(28px,3vw,44px);
}
#section-home #home-library .home-journey-heading>div{min-width:0}
#section-home #home-library .home-journey-heading .kicker{
  display:block;font-size:.875rem;font-weight:500;line-height:1.5;letter-spacing:0;
  color:var(--accent);margin:0 0 12px;
}
#section-home #home-library-title{
  font-size:clamp(1.75rem,3.15vw,2.75rem);line-height:1.24;font-weight:600;
  letter-spacing:-.025em;margin:0 0 16px;text-wrap:balance;
}
#section-home #home-library-title .home-library-title-main{display:block}
#section-home #home-library-title .home-library-title-count{color:var(--accent);font-weight:700;white-space:nowrap}
#section-home #home-library-title .home-library-title-sub{
  display:block;color:var(--accent);font-size:clamp(1.25rem,2vw,1.75rem);
  line-height:1.35;font-weight:500;letter-spacing:-.01em;margin-top:8px;
}
#section-home #home-library .home-journey-heading p{max-width:65ch;font-size:1rem;line-height:1.65;margin:0}
#section-home #home-library .home-journey-link{font-size:1rem;font-weight:600;min-height:44px}
#section-home #home-library .home-seasonal-toolbar{align-items:center;gap:16px;margin-bottom:16px}
#section-home #home-library .home-seasonal-label{
  font-size:clamp(1rem,1.5vw,1.25rem);font-weight:600;line-height:1.4;
  letter-spacing:-.01em;color:var(--text-main);margin:0;text-wrap:balance;
}
#section-home #home-library .home-seasonal-controls{flex-shrink:0}
#section-home #home-library .home-collection-caption{padding:16px 0 4px}
#section-home #home-library .home-collection-caption strong{font-size:clamp(1.125rem,1.6vw,1.375rem);font-weight:600;line-height:1.4}
#section-home #home-library .home-collection-caption small{font-size:.875rem;line-height:1.55;margin-top:4px}
@media(max-width:760px){
  #section-home #home-library .home-journey-heading{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:28px}
  #section-home #home-library .home-journey-link{justify-self:start}
  #section-home #home-library-title{margin-bottom:12px}
}

/* Homepage section labels are navigation cues, not fine print. */
#section-home #home9-preview-title,
#section-home #home-library .home-journey-heading .kicker,
#section-home #home-learning>div>.kicker,
#section-home #home-contact .home-contact-intro>.kicker{
  font-size:clamp(1rem,1.3vw,1.125rem);font-weight:600;line-height:1.4;letter-spacing:0;
}

/* Shared public taxonomy: section labels are intentionally larger than card metadata. */
:root:has(.section-view:not(.hidden)){color-scheme:light;--type-label:clamp(1rem,1.3vw,1.125rem)}
body:has(.section-view:not(.hidden)) .site-footer-group h2,
.editorial-page .section-index,
#section-rnd :is(.lab8-intro,.lab8-studio-toolbar) .lab8-eyebrow,
#section-rnd :is(.rd-notebook-head,.lab3-dialog-head) .kicker,
#section-backstage .about-next .kicker,
#section-certificates .cert-secondary .kicker,
#section-home .home-collection-dialog-header .kicker{
  font-size:var(--type-label);font-weight:600;line-height:1.4;letter-spacing:0;
}
.editorial-page .section-index{color:var(--text-muted)}
#section-backstage .about-next{border-radius:var(--photo-radius)}
#section-backstage .about-next h2{font-size:var(--type-section);font-weight:600;line-height:1.3;letter-spacing:-.025em}
#section-certificates .cert-secondary h3{font-size:var(--type-card);font-weight:600;line-height:1.4}
@media(max-width:640px){.editorial-page .heading-row{flex-wrap:wrap;gap:8px}}
