
/* ==========================================================================
   PASTRY CHEF — a Kitchen Academy course page.

   Should read as a modern cookery school, not a recipe site: white ground,
   deep navy type, blush, warm cream, oatmeal, sage, soft terracotta and a
   restrained gold. Playfair for headings, Nunito for body, Caveat used
   sparingly for the handwritten accent.

   No cartoon chefs, no dark restaurant styling, no dense recipe grids.

   Prefix is pc-.
   ========================================================================== */
#page-pastry-chef{
  --pc-navy:#1F3054;
  --pc-blush:#C98A80;
  --pc-blush-d:#8C4C40;
  --pc-blush-l:#F9F0ED;
  --pc-cream:#FBF6EF;
  --pc-oat:#F3ECE1;
  --pc-sage:#5F7350;
  --pc-sage-l:#EDF1EC;
  --pc-terra:#B4694C;
  --pc-terra-l:#F9EDE7;
  /* #A8823C measured 3.55 on white — fine for the 24px bold step numbers as
     large text, but too close to the line to rely on. Deepened one step. */
  --pc-gold:#8C6A2C;
  --pc-line:#EAE1D6;
  background:#ffffff !important;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
}
#page-pastry-chef .pc-wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(18px,4vw,34px); }
#page-pastry-chef .pc-wrap section, #page-pastry-chef .pc-sec{ padding:0 !important; }
#page-pastry-chef .pc-sec{ margin:0 0 clamp(48px,7vw,92px); min-width:0; }
#page-pastry-chef .pc-body{ padding:clamp(20px,3vw,34px) 0 120px; min-width:0; }

/* ---- type ---------------------------------------------------------------- */
#page-pastry-chef .pc-eb{
  font-size:.7rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; margin:0 0 12px;
  color:var(--pc-blush-d) !important; -webkit-text-fill-color:var(--pc-blush-d) !important;
}
/* THE HANDWRITTEN ACCENT IS STILL TEXT. The brand blush measured 2.83 on white
   and 2.52 on the blush panel, well under AA, so the script uses a deepened
   version of the same hue rather than the decorative tint. */
#page-pastry-chef .pc-script{
  font-family:'Caveat','Brush Script MT',cursive; font-size:1.45rem; font-weight:600;
  color:#9A564D !important; -webkit-text-fill-color:#9A564D !important;
}
#page-pastry-chef .pc-h1{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(2rem,4.6vw,3.1rem) !important; font-weight:700 !important; line-height:1.1;
  margin:0 0 10px !important; color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-h2{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(1.4rem,2.9vw,2.05rem) !important; font-weight:700 !important; line-height:1.18;
  margin:0 0 8px !important; color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-h3{
  font-size:1rem !important; font-weight:800 !important; margin:0 !important;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-lead{
  margin:0; font-size:clamp(.98rem,1.5vw,1.06rem); line-height:1.75; max-width:60ch;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-pastry-chef .pc-sub{ margin:8px 0 0; font-size:.89rem; line-height:1.62;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
#page-pastry-chef .pc-hrow{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; flex-wrap:wrap; margin:0 0 24px; }
#page-pastry-chef .pc-note{ margin:14px 0 0; font-size:.81rem; line-height:1.7;
  color:#5D6981 !important; -webkit-text-fill-color:#5D6981 !important; }

/* ---- hero ---------------------------------------------------------------- */
#page-pastry-chef .pc-backbar{
  max-width:1180px; margin:0 auto; padding:14px clamp(18px,4vw,34px) 0;
  display:flex; gap:10px; flex-wrap:wrap;
}
#page-pastry-chef .pc-sr{
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important;
}
#page-pastry-chef .pc-hero{
  display:grid; grid-template-columns:1.02fr .98fr; gap:clamp(26px,4vw,52px);
  align-items:center; padding:clamp(22px,3.5vw,44px) 0 clamp(28px,4vw,52px);
}
#page-pastry-chef .pc-hero-media{ position:relative; min-width:0; }
#page-pastry-chef .pc-hero-img{
  display:block; width:100%; height:auto; border-radius:30px;
  box-shadow:0 26px 60px rgba(31,48,84,.16);
}
#page-pastry-chef .pc-float{
  position:absolute; left:-14px; bottom:-20px; width:min(268px,76%);
  background:#fff !important; border-radius:22px; padding:20px 22px;
  box-shadow:0 20px 46px rgba(31,48,84,.20);
  border:1px solid rgba(234,225,214,.9) !important;
}
#page-pastry-chef .pc-float-k{
  font-size:.62rem; font-weight:800; letter-spacing:.22em; text-transform:uppercase; margin:0 0 8px;
  color:var(--pc-blush-d) !important; -webkit-text-fill-color:var(--pc-blush-d) !important;
}

/* ---- buttons -------------------------------------------------------------- */
#page-pastry-chef .pc-b, #pcSheet .pc-b{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:50px; padding:14px 24px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.89rem; font-weight:800; text-align:center;
  background:#fff !important; border:1px solid var(--pc-line) !important;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-b:hover, #pcSheet .pc-b:hover{ background:var(--pc-cream) !important; border-color:var(--pc-blush) !important; }
#page-pastry-chef .pc-b.is-navy, #pcSheet .pc-b.is-navy{
  background:var(--pc-navy) !important; border-color:var(--pc-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}
#page-pastry-chef .pc-b.is-terra, #pcSheet .pc-b.is-terra{
  background:#9C583D !important; border-color:#9C583D !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}
#page-pastry-chef .pc-b.is-sm, #pcSheet .pc-b.is-sm{ min-height:44px; padding:11px 17px; font-size:.82rem; }
#page-pastry-chef .pc-b svg, #pcSheet .pc-b svg{ width:17px; height:17px; flex:none;
  stroke:currentColor; fill:none; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
#page-pastry-chef .pc-b:focus-visible, #pcSheet .pc-b:focus-visible,
#page-pastry-chef .pc-c:focus-visible, #page-pastry-chef .pc-ch:focus-visible,
#page-pastry-chef .pc-fab:focus-visible, #page-pastry-chef .pc-dot:focus-visible,
#page-pastry-chef .pc-save:focus-visible{ outline:3px solid #CF9E3F; outline-offset:3px; }
#page-pastry-chef .pc-acts{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---- panels + cards --------------------------------------------------------- */
#page-pastry-chef .pc-panel{
  background:#fff !important; border:1px solid var(--pc-line) !important; border-radius:26px;
  padding:clamp(20px,3vw,32px); box-shadow:0 3px 18px rgba(31,48,84,.05);
}
#page-pastry-chef .pc-panel.is-cream{ background:var(--pc-cream) !important; border-color:#EFE4D6 !important; }
#page-pastry-chef .pc-panel.is-blush{ background:var(--pc-blush-l) !important; border-color:#F0DFDA !important; }
#page-pastry-chef .pc-panel.is-oat{ background:var(--pc-oat) !important; border-color:#E7DBC9 !important; }
#page-pastry-chef .pc-panel.is-sage{ background:var(--pc-sage-l) !important; border-color:#DFE7DD !important; }
#page-pastry-chef .pc-panel.is-terra{ background:var(--pc-terra-l) !important; border-color:#F0DACF !important; }

#page-pastry-chef .pc-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
#page-pastry-chef .pc-grid.is-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
#page-pastry-chef .pc-grid.is-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
#page-pastry-chef .pc-c{
  background:#fff !important; border:1px solid var(--pc-line) !important; border-radius:22px;
  padding:22px; box-shadow:0 3px 16px rgba(31,48,84,.05);
  display:flex; flex-direction:column; gap:8px; text-align:left; width:100%; min-width:0;
}
#page-pastry-chef button.pc-c{ cursor:pointer; font:inherit;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
#page-pastry-chef button.pc-c:hover{ transform:translateY(-3px); box-shadow:0 16px 38px rgba(31,48,84,.10);
  border-color:var(--pc-blush) !important; }
#page-pastry-chef .pc-c-n{ font-size:1rem; font-weight:800;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important; }
#page-pastry-chef .pc-c-d{ font-size:.86rem; line-height:1.6;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
#page-pastry-chef .pc-c-f{ margin-top:auto; padding-top:10px; font-size:.78rem; font-weight:800;
  color:var(--pc-blush-d) !important; -webkit-text-fill-color:var(--pc-blush-d) !important; }
#page-pastry-chef .pc-c-art{
  height:110px; border-radius:16px; margin:0 0 4px; display:flex; align-items:center; justify-content:center;
}
#page-pastry-chef .pc-c-art svg{ width:34px; height:34px; stroke:currentColor; fill:none;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
#page-pastry-chef .t-blush{ background:var(--pc-blush-l) !important; color:#8C4C40; }
#page-pastry-chef .t-cream{ background:var(--pc-cream) !important; color:#8A6B2E; }
#page-pastry-chef .t-oat  { background:var(--pc-oat) !important;   color:#6B5427; }
#page-pastry-chef .t-sage { background:var(--pc-sage-l) !important; color:#41533A; }
#page-pastry-chef .t-terra{ background:var(--pc-terra-l) !important; color:#8A4E2C; }

/* ---- status words -------------------------------------------------------------- */
#page-pastry-chef .pc-st{
  display:inline-flex; align-items:center; gap:5px; align-self:flex-start;
  font-size:.7rem; font-weight:800; padding:4px 11px; border-radius:99px;
  background:var(--pc-sage-l) !important; color:#41533A !important; -webkit-text-fill-color:#41533A !important;
}
#page-pastry-chef .pc-st.is-mid{ background:var(--pc-oat) !important; color:#6B5427 !important; -webkit-text-fill-color:#6B5427 !important; }
#page-pastry-chef .pc-st.is-hard{ background:var(--pc-terra-l) !important; color:#8A4E2C !important; -webkit-text-fill-color:#8A4E2C !important; }
#page-pastry-chef .pc-st.is-done{ background:#E9EEF6 !important; color:#2F4467 !important; -webkit-text-fill-color:#2F4467 !important; }

/* ---- the path ------------------------------------------------------------------ */
#page-pastry-chef .pc-path{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
#page-pastry-chef .pc-step{
  background:#fff !important; border:1px solid var(--pc-line) !important; border-radius:20px;
  padding:20px 16px; cursor:pointer; font:inherit; text-align:left; min-width:0;
  display:flex; flex-direction:column; gap:8px;
  transition:transform .16s ease, box-shadow .16s ease;
}
#page-pastry-chef .pc-step:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(31,48,84,.10); }
#page-pastry-chef .pc-step.is-on{ background:var(--pc-cream) !important; border-color:var(--pc-gold) !important; }
#page-pastry-chef .pc-step-n{
  font-family:'Playfair Display',Georgia,serif; font-size:1.5rem; font-weight:700; line-height:1;
  color:var(--pc-gold) !important; -webkit-text-fill-color:var(--pc-gold) !important;
}
#page-pastry-chef .pc-step-t{ font-size:.88rem; font-weight:800; line-height:1.35;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important; }

/* ---- rails --------------------------------------------------------------------- */
#page-pastry-chef .pc-rail{ display:flex; gap:14px; overflow-x:auto; padding:4px 2px 14px;
  scroll-snap-type:x proximity; min-width:0; max-width:100%; }
#page-pastry-chef .pc-rail > *{ flex:none; width:260px; scroll-snap-align:start; }

/* ---- confidence ---------------------------------------------------------------- */
#page-pastry-chef .pc-dots{ display:flex; gap:6px; }
#page-pastry-chef .pc-dot{
  width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit;
  background:#fff !important; border:2px solid var(--pc-line) !important; padding:0;
  display:flex; align-items:center; justify-content:center;
}
#page-pastry-chef .pc-dot span{ display:block; width:12px; height:12px; border-radius:50%;
  background:#E6DCCC; }
#page-pastry-chef .pc-dot.is-on span{ background:var(--pc-sage); }
#page-pastry-chef .pc-dot.is-on{ border-color:#C7D3C2 !important; }

/* ---- save ---------------------------------------------------------------------- */
#page-pastry-chef .pc-save{
  min-height:44px; padding:10px 15px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.8rem; font-weight:800; display:inline-flex; align-items:center; gap:7px;
  background:#fff !important; border:1px solid var(--pc-line) !important;
  color:var(--pc-blush-d) !important; -webkit-text-fill-color:var(--pc-blush-d) !important;
}
#page-pastry-chef .pc-save.is-on{ background:var(--pc-blush-l) !important; border-color:var(--pc-blush) !important; }
#page-pastry-chef .pc-save svg{ width:15px; height:15px; stroke:currentColor;
  fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
#page-pastry-chef .pc-save.is-on svg{ fill:currentColor; }

/* ---- glossary + search ------------------------------------------------------------ */
#page-pastry-chef .pc-i{
  width:100%; box-sizing:border-box; min-height:50px; padding:13px 18px; border-radius:999px;
  font:inherit; font-size:.95rem; min-width:0;
  background:#fff !important; border:1px solid var(--pc-line) !important;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-i:focus{ outline:none; border-color:var(--pc-blush) !important;
  box-shadow:0 0 0 3px rgba(201,138,128,.28); }
#page-pastry-chef .pc-rows{ display:flex; flex-direction:column; gap:9px; }
#page-pastry-chef .pc-row{
  display:flex; align-items:flex-start; gap:14px; width:100%; text-align:left;
  background:#fff !important; border:1px solid var(--pc-line) !important; border-radius:18px;
  padding:14px 18px; min-height:56px;
}
#page-pastry-chef .pc-row-n{ font-size:.93rem; font-weight:800; flex:0 0 150px;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important; }
#page-pastry-chef .pc-row-d{ font-size:.87rem; line-height:1.6; flex:1;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }

/* ---- chips ------------------------------------------------------------------------ */
#page-pastry-chef .pc-chips{ display:flex; gap:9px; flex-wrap:wrap; }
#page-pastry-chef .pc-ch{
  min-height:44px; padding:11px 16px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.81rem; font-weight:700; text-align:left;
  background:#fff !important; border:1px solid var(--pc-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-pastry-chef .pc-ch:hover{ background:var(--pc-cream) !important; }
#page-pastry-chef .pc-answer{
  margin:18px 0 0; padding:20px 22px; border-radius:20px;
  background:#fff !important; border:1px solid var(--pc-line) !important;
  font-size:.92rem; line-height:1.72;
  color:#3D4A64 !important; -webkit-text-fill-color:#3D4A64 !important;
}

/* ---- floating help ------------------------------------------------------------------ */
#page-pastry-chef .pc-fab{
  position:fixed; right:22px; z-index:1900;
  bottom:calc(24px + env(safe-area-inset-bottom,0px));
  display:inline-flex; align-items:center; gap:9px;
  min-height:56px; padding:16px 24px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.89rem; font-weight:800;
  background:#9C583D !important; border:0 !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
  box-shadow:0 16px 38px rgba(156,88,61,.36);
}
#page-pastry-chef .pc-fab svg{ width:18px; height:18px; stroke:currentColor; fill:none;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ---- sheet ---------------------------------------------------------------------------- */
#pcSheet{
  position:fixed; inset:0; z-index:9550; display:none; align-items:center; justify-content:center; padding:16px;
  background:rgba(20,28,44,.48); font-family:'Nunito',system-ui,sans-serif;
}
#pcSheet.is-open{ display:flex; }
#pcSheet .pc-box{
  width:100%; max-width:620px; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:#fff !important; border-radius:28px; padding:26px clamp(18px,4vw,30px) 28px;
  box-shadow:0 28px 68px rgba(20,28,44,.3);
}
#pcSheet .pc-box-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 10px; }
#pcSheet .pc-box-t{
  font-family:'Playfair Display',Georgia,serif !important; font-size:1.36rem !important; font-weight:700 !important;
  margin:0 !important; color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#pcSheet .pc-box-x{
  flex:none; width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit; font-size:1.05rem;
  background:#F5F1EC !important; border:1px solid #EAE1D6 !important;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#pcSheet .pc-box-b{ font-size:.93rem; line-height:1.75;
  color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#pcSheet .pc-box-b > p{ margin:0 0 14px; color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#pcSheet .pc-box-b ol, #pcSheet .pc-box-b ul{ margin:0 0 14px; padding-left:20px; }
#pcSheet .pc-box-b li{ margin:0 0 8px; }
#pcSheet .pc-k{
  font-size:.66rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; margin:18px 0 6px;
  color:#8C4C40 !important; -webkit-text-fill-color:#8C4C40 !important; }
#pcSheet .pc-box-f{ display:flex; gap:11px; justify-content:flex-end; flex-wrap:wrap; margin:22px 0 0; }
#pcSheet .pc-opts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
#pcSheet .pc-opt{
  min-height:52px; border-radius:16px; cursor:pointer; font:inherit; padding:14px;
  background:#fff !important; border:1px solid #EAE1D6 !important;
  font-size:.87rem; font-weight:800;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important;
}
#pcSheet .pc-opt:hover{ background:#FBF6EF !important; border-color:#C98A80 !important; }

/* ---- footer -------------------------------------------------------------------------- */
#page-pastry-chef .pc-foot{
  text-align:center; padding:clamp(42px,6vw,80px) clamp(20px,5vw,60px);
  border-radius:36px; background:var(--pc-blush-l) !important;
}
#page-pastry-chef .pc-foot-p{
  margin:0 auto; max-width:38ch; font-size:clamp(1.05rem,2vw,1.28rem); line-height:1.95;
  font-family:'Playfair Display',Georgia,serif;
  color:var(--pc-navy) !important; -webkit-text-fill-color:var(--pc-navy) !important;
}
#page-pastry-chef .pc-foot-c{
  margin:24px 0 0; font-size:.8rem; font-weight:800; letter-spacing:.2em; text-transform:uppercase;
  color:var(--pc-blush-d) !important; -webkit-text-fill-color:var(--pc-blush-d) !important;
}

/* ---- toast ---------------------------------------------------------------------------- */
#pcToast{
  position:fixed; left:50%; bottom:96px; transform:translate(-50%,14px); z-index:9750;
  background:#1F3054 !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
  padding:14px 24px; border-radius:999px; font-family:'Nunito',system-ui,sans-serif;
  font-size:.87rem; font-weight:700; opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s; max-width:calc(100vw - 32px); text-align:center;
}
#pcToast.on{ opacity:1; transform:translate(-50%,0); }

/* ---- responsive ------------------------------------------------------------------------ */
@media (max-width:1020px){
  #page-pastry-chef .pc-hero{ grid-template-columns:1fr; }
  #page-pastry-chef .pc-hero-media{ order:-1; }
  #page-pastry-chef .pc-float{ left:auto; right:14px; bottom:-16px; }
  #page-pastry-chef .pc-path{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  #page-pastry-chef .pc-grid.is-4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  #page-pastry-chef .pc-grid.is-3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px){
  #page-pastry-chef .pc-path{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  #page-pastry-chef .pc-grid.is-4, #page-pastry-chef .pc-grid.is-3{ grid-template-columns:1fr; }
  #page-pastry-chef .pc-acts .pc-b{ flex:1 1 auto; }
  #page-pastry-chef .pc-float{ position:static; width:auto; margin:16px 0 0; }
  #page-pastry-chef .pc-hero-img{ border-radius:24px; }
  #page-pastry-chef .pc-fab{ right:16px; bottom:calc(84px + env(safe-area-inset-bottom,0px)); }
  #page-pastry-chef .pc-row{ flex-direction:column; gap:4px; }
  #page-pastry-chef .pc-row-n{ flex:none; }
}

