/* The Pastry School — theme V3 (2026-11-08): sage green #8B9E70, deep olive #313415, light grey rounded cards,
   floating green bottom bar, Montserrat light + black titles (last word bold), EB Garamond for short intros.
   Montserrat / EB Garamond come from Google Fonts; bundled Outfit / Libre Bodoni are the offline fallbacks. */
:root{--ps-green:#8B9E70;--ps-deep:#313415;--ps-label:#4F6B3F;--ps-card:#F0F0F0;--ps-field:#F4F4F4;
  --ps-brown:#8B9E70;--ps-olive:#8B9E70;--ps-olive-dark:#313415;--ps-bronze:#4F6B3F;--ps-ink:#111111;
  --font-sans:"Montserrat","Outfit",ui-sans-serif,system-ui,sans-serif;--font-display:"Montserrat","Outfit",ui-sans-serif,system-ui,sans-serif;
  --color-berry:#8B9E70;--color-gold:#4F6B3F;--color-cream:#F0F0F0;--card:#F0F0F0;--line:#E6E6E6}
html body{font-family:"Montserrat","Outfit",ui-sans-serif,system-ui,sans-serif!important;background:#fff!important;color:#111!important}
button,input,select,textarea{font-family:inherit}

/* Titles */
html body h1{font-family:"Montserrat","Outfit",ui-sans-serif,system-ui,sans-serif!important;font-style:normal!important;font-weight:200!important;letter-spacing:-.03em!important;color:#111!important;line-height:1.05!important}
html body h1 b.ps-strong{font-weight:900!important;letter-spacing:-.02em}
html body h1.ps-one-word{font-weight:800!important;letter-spacing:-.02em!important}
html body h1.ps-titled::after{content:"";display:block;width:44px;height:3px;border-radius:2px;background:var(--ps-green);margin-top:12px}
html body .font-display:not(h1),html body h2.font-display,html body h3.font-display{font-family:"Montserrat","Outfit",sans-serif!important;font-style:normal!important;font-weight:700!important;letter-spacing:-.01em}
html body .italic.font-display:not(h1){font-style:normal!important}
html body .tracking-widest.uppercase,html body .section-heading,html body .eyebrow,html body .kicker,html body .chapter-index{color:var(--ps-label)!important;font-weight:600!important;letter-spacing:.2em!important}
html body .lead,html body .ps-lead{font-family:"EB Garamond","Libre Bodoni",Georgia,serif!important;font-size:1.08em}

/* Actions */
html body .bg-berry,html body .bg-gold,html body .ps-action,html body #ps-save,html body .ps-tabs button[aria-pressed="true"],html body .ps-tabs button.active{background-color:var(--ps-green)!important;color:#fff!important;font-weight:700!important;border-color:transparent!important;border-radius:16px!important}
html body .bg-ink{background-color:var(--ps-deep)!important}
html body .text-berry,html body .text-gold{color:var(--ps-label)!important}
html body a:hover{color:var(--ps-label)}
html body button:focus-visible,html body a:focus-visible,html body input:focus-visible,html body textarea:focus-visible,html body select:focus-visible{outline:2px solid var(--ps-deep)!important;outline-offset:2px}

/* Cards: light grey, rounded, no border */
html body .card,html body .chapter-card,html body .mine-card,html body .ps-choice,html body .psx-mould,html body #eh-library-intro{background:var(--ps-card)!important;border-color:transparent!important;border-radius:24px!important;box-shadow:none!important}
html body .chapter-card img{border-radius:18px 18px 0 0}
html body .chapter-card:hover{box-shadow:0 10px 24px rgba(0,0,0,.06)!important}
html body .card .glyph{background:#fff!important;color:var(--ps-deep)!important;border-radius:16px!important}
html body .card .chev{color:var(--ps-deep)!important}
html body .status{color:var(--ps-label)!important;border-color:#E3E3E3!important}
html body .status::before{background:var(--ps-green)!important}
html body .psx-mould summary{color:#111!important}
html body .psx-side{background:#fff;border-color:transparent!important;border-radius:18px!important}

/* Fields */
html body .ps-field input,html body .ps-field textarea,html body input[type="number"],html body input[type="text"],html body input[type="search"],html body select,html body textarea{background-color:var(--ps-field)!important;border-color:transparent!important;border-radius:14px!important}

/* Floating green bottom bar */
html body nav#ps-unified-nav{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:auto!important;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px)) 12px!important;
  background:var(--ps-green)!important;border:0!important;border-radius:30px!important;padding:6px!important;box-shadow:0 12px 30px rgba(49,52,21,.22)!important}
html body nav#ps-unified-nav .ps-nav-inner{gap:2px!important}
html body nav#ps-unified-nav .ps-nav-inner>a{background:transparent!important;color:#fff!important;height:60px!important;min-height:60px!important;max-height:60px!important;border-radius:24px!important;font-weight:600!important}
html body nav#ps-unified-nav .ps-nav-inner>a.active,html body nav#ps-unified-nav .ps-nav-inner>a[aria-current="page"]{background:var(--ps-deep)!important;color:#fff!important;box-shadow:0 6px 14px rgba(0,0,0,.22)!important}
body:has(#ps-unified-nav){padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important}

/* Home: green welcome panel with the photo in a circle */
html body .hero{background:var(--ps-green)!important;border:0!important;border-radius:32px!important;color:#fff!important;min-height:330px!important;align-items:flex-start!important}
html body .hero::after,html body .hero:after{display:none!important}
html body .hero .hero-photo{left:auto!important;top:auto!important;right:16px!important;bottom:16px!important;width:150px!important;height:150px!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;border:5px solid rgba(255,255,255,.9)!important;box-shadow:0 14px 30px rgba(0,0,0,.18)}
html body .hero .hero-copy,html body .hero h1,html body .hero p,html body .hero .section-heading,html body .hero .eyebrow,html body .hero [class*="kicker"]{color:#fff!important}
html body .hero h1.ps-titled::after{background:#fff}
@media (max-width:480px){html body .hero .hero-copy{width:100%!important;padding:26px 20px 180px!important}html body .hero h1{font-size:28px!important}html body .hero p{max-width:60%!important}}

/* Boards */
html body .back-btn{border-radius:14px!important;border-color:transparent!important;background:var(--ps-card)!important}

/* Tools hub and generic secondary blocks */
html body[data-tool] .tool-card{background:var(--ps-card)!important;border-color:transparent!important;border-radius:24px!important}
html body[data-tool] .tool-card>a strong{font-family:"Montserrat","Outfit",sans-serif!important;font-weight:700!important;font-size:19px!important;letter-spacing:-.01em}
html body[data-tool] .tool-card .eh-tool-icon{background:#fff;border-radius:16px}
html body[data-tool] .tool-card .eh-tool-icon svg{stroke:var(--ps-deep)!important}
html body[data-tool] .tool-card>button{background:#fff!important;border-color:transparent!important;border-radius:14px!important}
html body .border.border-line.bg-paper,html body .border.border-line.bg-cream,html body a.border.border-line,html body button.border.border-line{background-color:var(--ps-card)!important;border-color:transparent!important;border-radius:16px!important}
html body label.border.border-line{background-color:var(--ps-card)!important;border-color:transparent!important;border-radius:16px!important}
@media (max-width:380px){html body nav#ps-unified-nav{inset:auto 8px calc(10px + env(safe-area-inset-bottom,0px)) 8px!important;left:8px!important;right:8px!important;padding:4px!important}
 html body nav#ps-unified-nav .ps-nav-inner>a.ps-long{font-weight:500!important;font-size:8.4px!important;letter-spacing:-.04em!important}}
/* Books: compact horizontal cards — cover left, text and a real button right */
html body #list{gap:28px!important}
html body #list h3{font-size:20px!important;margin:0!important}
html body #list article{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:16px!important;align-items:center!important;padding:14px!important;border-radius:22px!important}
html body #list article img{width:92px!important;height:122px!important;object-fit:cover!important;border-radius:10px!important;background:#fff!important;box-shadow:0 8px 18px rgba(0,0,0,.14)}
html body #list article h4{font-weight:700!important;font-size:16px!important;line-height:1.25!important}
html body #list article p{font-size:13px!important;line-height:1.4!important}
html body #list article a{display:inline-flex!important;align-items:center!important;gap:8px!important;margin-top:12px!important;padding:10px 16px!important;border-radius:22px!important;background:var(--ps-green)!important;color:#fff!important;font-weight:700!important;font-size:13px!important;border:0!important}
html body #list article a::after{content:"→";font-weight:700}
/* Home: carousel of cut-out creations on the green panel */
html body .hero.ps-has-carousel{flex-direction:column!important;align-items:stretch!important;min-height:0!important;padding-bottom:14px!important}
html body .hero.ps-has-carousel .hero-photo{display:none!important}
html body .hero.ps-has-carousel .hero-copy{width:100%!important;padding:26px 22px 6px!important}
html body .hero.ps-has-carousel p{max-width:100%!important}
.ps-carousel{position:relative;width:100%;box-sizing:border-box;padding:0 14px}
.ps-carousel-stage{position:relative;height:clamp(210px,62vw,300px);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.ps-carousel-stage img{position:absolute;inset:0;margin:auto;max-width:88%;max-height:100%;width:auto;height:auto;object-fit:contain;opacity:0;transform:translateY(10px) scale(.97);transition:opacity .8s ease,transform .8s ease;filter:drop-shadow(0 18px 20px rgba(30,35,15,.32));pointer-events:none}
.ps-carousel-stage img.on{opacity:1;transform:none}
.ps-carousel-dots{display:flex;justify-content:center;gap:6px;padding:8px 0 4px}
.ps-carousel-dots span{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.5);transition:width .3s ease,background .3s ease}
.ps-carousel-dots span.on{width:18px;background:#fff}
@media (prefers-reduced-motion:reduce){.ps-carousel-stage img,.ps-carousel-dots span{transition:none}}
/* 2026-11-09: Recette tabs as one segmented row */
html body .ps-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;background:var(--ps-card);padding:6px;border-radius:20px}
html body .ps-tabs button{min-width:0!important;margin:0!important;padding:12px 6px!important;border:0!important;border-radius:16px!important;background:transparent;color:var(--ps-deep);font-weight:700;font-size:15px;overflow-wrap:anywhere}
html body #ps-outcome{border:0!important;border-radius:24px;background:var(--ps-card)!important}
/* 2026-11-09: Board of the day */
html body #ps-today{display:flex;align-items:center;gap:14px;margin:18px 0 6px;padding:12px;border-radius:24px;background:var(--ps-card);color:var(--ps-deep);text-decoration:none}
html body #ps-today img{flex:0 0 auto;width:84px;height:112px;object-fit:cover;border-radius:14px;background:#fff;box-shadow:0 6px 16px rgba(49,52,21,.14)}
html body #ps-today .ps-today-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
html body #ps-today .ps-today-k{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--ps-label)}
html body #ps-today strong{font-size:18px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
html body #ps-today small{font-size:13px;color:#6b6b6b}
html body #ps-today .ps-today-go{flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:var(--ps-green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700}
html body .ps-tabs button{overflow-wrap:normal!important;word-break:normal!important;hyphens:none}
@media(max-width:420px){html body .ps-tabs button{font-size:13px!important;padding:12px 2px!important;letter-spacing:-.01em}}
/* 2026-11-25: My library (personal PDFs / notes) */
html body .psl{margin:28px 0 8px;padding:22px 18px;border-radius:24px;background:var(--ps-card)}
html body .psl-intro{margin:8px 0 16px;color:#555;line-height:1.5}
html body .psl-add{display:inline-flex;align-items:center;gap:8px;padding:13px 20px;border-radius:999px;background:var(--ps-green);color:#fff;font-weight:700;cursor:pointer}
html body .psl-add input{position:absolute;width:1px;height:1px;opacity:0}
html body .psl-msg{min-height:1.2em;margin:10px 0 6px;font-size:14px;color:var(--ps-label)}
html body .psl-search{width:100%;margin:6px 0 12px;padding:12px 16px;border-radius:16px;border:0;background:#fff;font:inherit}
html body .psl-list{display:grid;gap:10px}
html body .psl-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:#fff}
html body .psl-ico{flex:0 0 auto;width:46px;height:56px;border-radius:10px;background:var(--ps-deep);color:#fff;display:flex;align-items:center;justify-content:center;font:800 12px/1 Montserrat,sans-serif;letter-spacing:.06em}
html body .psl-meta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .psl-meta strong{font-weight:700;overflow-wrap:anywhere}
html body .psl-meta small{color:#777;font-size:12px}
html body .psl-open,html body .psl-yes{padding:10px 14px;border-radius:999px;border:0;background:var(--ps-green);color:#fff;font-weight:700}
html body .psl-del,html body .psl-no{padding:10px 12px;border-radius:999px;border:1px solid #ddd;background:#fff;color:#7a1c12;font-weight:600}
html body .psl-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#fdecea;color:#7a1c12;font-size:14px}
html body .psl-empty,html body .psl-used,html body .psl-note{color:#777;font-size:13px;margin:6px 2px}
html.psl-lock,html.psl-lock body{overflow:hidden}
html body .psl-reader{position:fixed;inset:0;z-index:10000;background:#2b2b2b;overflow:auto;-webkit-overflow-scrolling:touch}
html body .psl-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--ps-deep);color:#fff}
html body .psl-name{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .psl-close{padding:9px 14px;border-radius:999px;border:0;background:#fff;color:var(--ps-deep);font-weight:700}
html body .psl-z{width:40px;height:40px;border-radius:50%;border:0;background:var(--ps-green);color:#fff;font-size:22px;font-weight:700}
html body .psl-info{display:block;padding:8px 12px;color:#ddd;font-size:13px}
html body .psl-pages{padding:0 8px 90px}
html body .psl-page{position:relative;margin:0 auto 12px;background:#fff;max-width:max-content}
html body .psl-page canvas{display:block}
html body .psl-pno{position:absolute;top:6px;right:8px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:11px}
html body .psl-img{display:block;width:100%;height:auto;margin:0 auto;background:#fff}
