:root {
  --bg:#f4f2ed;
  --surface:#ffffff;
  --surface-soft:#faf9f6;
  --text:#171918;
  --muted:#68706c;
  --line:#d9ddd9;
  --accent:#0b6f66;
  --accent-soft:#e9f4f1;
  --hover:#eef5f3;
  --mark:#fff2a8;
  --radius:16px;
  --content:1320px;
  --card-gap:18px;
  --card-pad:16px;
  --columns:3;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--accent);text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}

.site-head{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:12px max(22px,calc((100vw - var(--content))/2));
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.system-brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-home{border:0;background:transparent;color:inherit;padding:0;text-align:left;cursor:pointer}

.system-logo-img{width:39px;height:39px;object-fit:contain;display:block;filter:drop-shadow(0 2px 8px #0aa6ff33)}
.system-copy{line-height:1.05}
.system-copy b{font-size:12px;letter-spacing:.12em}
.system-copy small{display:block;color:var(--muted);font-size:10px;margin-top:4px;letter-spacing:.04em}
.menu{display:flex;align-items:center;gap:5px}
.menu a,.menu button{
  border:0;background:transparent;color:var(--muted);
  padding:8px 10px;border-radius:999px;font-weight:700;font-size:13px;
}
.menu a:hover,.menu button:hover{background:var(--hover);color:var(--text)}
.menu .nav-favorite.active{background:var(--accent);color:#fff;box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 45%,transparent)}
.menu .nav-favorite.active #favCount{background:#ffffff24;color:#fff}
.mode-banner{display:none;max-width:var(--content);margin:18px auto 0;padding:0 22px}
.mode-banner.active{display:block}
.mode-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 10px 30px #17201c0b}
.mode-card b{font:700 26px/1 Georgia,serif}
.mode-card span{color:var(--muted);font-size:13px}
.mode-card button{border:1px solid var(--line);background:var(--surface-soft);border-radius:999px;padding:8px 11px;font-weight:800}
body.favorites-mode .hero{display:none}
body.favorites-mode .upcoming{display:none}
body.favorites-mode .section#about{display:none}
.menu-toggle{display:none;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:7px 10px;font-size:18px}
@media(max-width:760px){
  .menu-toggle{display:block}
  .menu{display:none;position:absolute;right:14px;top:58px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 48px #0003;padding:8px;min-width:160px;z-index:80}
  .menu.open{display:grid}
  .menu a,.menu button{display:block;text-align:left;width:100%}
}

.hero{
  position:relative;
  min-height:clamp(500px,62vw,720px);
  display:flex;
  align-items:flex-end;
  background-image:
    linear-gradient(90deg,rgba(10,15,14,.78) 0%,rgba(10,15,14,.56) 34%,rgba(10,15,14,.12) 62%,rgba(10,15,14,.02) 100%),
    url("world-table-hero.jpg");
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line);
}
.hero-grid{width:min(var(--content),calc(100% - 44px));margin:auto;padding:68px 0 54px;display:block}
.hero-copy{max-width:670px;color:#fff}
.hero .eyebrow{color:#ffffff;text-shadow:0 1px 10px #000b;font-size:14px}
.hero h1{color:#fff;text-shadow:0 2px 20px #0004}
.hero p{color:#ffffff;text-shadow:0 1px 12px #000b;font-size:21px;font-weight:650}
.hero .source-note{color:#ffffff;text-shadow:0 1px 12px #000b;font-size:15px;opacity:.98}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hero-actions a,.hero-actions button{border-radius:999px;padding:11px 16px;font-weight:800}
.hero-primary{background:#f7f5ef;color:#17201c;border:1px solid #fff}
.hero-secondary{background:#10201a99;color:#fff;border:1px solid #ffffff66;backdrop-filter:blur(10px)}

.hero .eyebrow{font:800 11px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.14em;color:var(--accent)}
.hero h1{font:700 clamp(48px,7vw,92px)/.93 Georgia,serif;margin:.12em 0 .18em;letter-spacing:-.035em}
.hero p{max-width:800px;color:var(--muted);font-size:18px;margin:0}
.hero .source-note{margin-top:12px;font-size:12px;color:var(--muted)}

.explore-shell{max-width:var(--content);margin:18px auto 20px;padding:0 22px}
.explore-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 10px 28px #17201c0b}
.explore-toggle .copy{text-align:left}
.explore-toggle b{display:block;font-size:15px}
.explore-toggle small{display:block;color:var(--muted);font-weight:600;margin-top:2px}
.explore-toggle .chev{font-size:20px;transition:transform .18s ease}
.explore-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
.explore-panel{display:none;margin-top:10px}
.explore-panel.open{display:block}
.filterdeck{
  max-width:var(--content);margin:0;padding:0;
}
.filterpanel{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px;box-shadow:0 12px 34px #17201c0b;
}
.searchrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.searchrow input{
  width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface-soft);color:var(--text);outline:none;
}
.searchrow input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.primary{border:0;background:var(--accent);color:white;border-radius:10px;padding:10px 14px;font-weight:800}

.facets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px}
.facets label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.04em}
.facet-label{display:flex;align-items:center;gap:6px}
.facet-icon{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--accent);font-size:14px;line-height:1}
.facet-icon.bars{font-size:9px;letter-spacing:-1px}
.facets select{
  width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface-soft);color:var(--text);
}

.quickbar{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.quickbar strong{font-size:12px;color:var(--muted);padding-top:6px}
.filters{display:flex;gap:6px;flex-wrap:wrap}
.filters button{
  background:var(--surface-soft);color:var(--text);border:1px solid var(--line);
  border-radius:999px;padding:6px 9px;font-size:12px;font-weight:700
}
.filters button:hover,.filters button.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 35%,var(--line));color:var(--accent)}

.filter-status{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px;color:var(--muted);font-size:12px}
.activefilters{min-width:0}
.activefilters b{color:var(--text)}
.meta{white-space:nowrap}

.cards{
  max-width:var(--content);margin:auto;padding:0 22px 64px;
  display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:var(--card-gap)
}
@media(max-width:1100px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:700px){
  .cards{grid-template-columns:1fr !important;padding-left:14px;padding-right:14px}
  .card{max-width:none;width:100%}
}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 12px 30px #17201c08}
.media{position:relative;aspect-ratio:16/10;background:#d7dedb;background-size:cover;background-position:center}.ai-image-badge{position:absolute;left:8px;bottom:8px;padding:3px 7px;border-radius:999px;background:rgba(18,24,23,.82);color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;backdrop-filter:blur(3px)}
.cb{padding:var(--card-pad)}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.tag{font-size:10px;border:1px solid var(--line);border-radius:999px;padding:3px 6px;background:var(--surface-soft)}
.tag.active-tag{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.cb h2{font:700 27px/1.05 Georgia,serif;margin:.5em 0 .26em}
.cb p{color:var(--muted);margin:.35em 0 1em}
.detail{width:100%;text-align:left;background:transparent;color:var(--accent);padding:0;border:0;font-weight:800}
.favbtn{position:absolute;right:10px;top:10px;width:36px;height:36px;border-radius:999px;border:1px solid #ffffff99;background:#ffffffdd;color:#1b241f;font-size:18px;font-weight:900;display:grid;place-items:center}
.card{position:relative}
.favbtn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
#favCount{display:inline-block;min-width:18px;text-align:center;font-size:10px;margin-left:3px;border-radius:999px;background:var(--accent-soft);color:var(--accent);padding:1px 5px}
mark{background:var(--mark);color:inherit;border-radius:3px;padding:0 .08em}

.show-more-wrap{max-width:var(--content);margin:-34px auto 54px;padding:0 22px;text-align:center}
.show-more{min-width:190px}
.show-more[hidden]{display:none}
.upcoming{max-width:var(--content);margin:0 auto 54px;padding:0 22px}
.upcoming-box{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:22px}
.upcoming-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.future-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface-soft)}
.future-card b{display:block;margin-bottom:5px}
.future-card p{margin:0;color:var(--muted);font-size:13px}
.about-dialog{width:min(820px,94vw)}
.about-modal-body>.eyebrow,.about-modal-body>h2{display:none}
.about-modal-body{color:var(--text)}
.provenance{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.provenance summary{cursor:pointer;padding:14px 16px;font-weight:800}
.prov-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--line)}
.prov-grid>div{padding:13px 16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;gap:5px}
.prov-grid b{font-size:11px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.prov-grid code{font-size:11px;word-break:break-all}
@media(max-width:700px){.prov-grid{grid-template-columns:1fr}.prov-grid>div{border-right:0}}
.section{max-width:1000px;margin:auto;padding:56px 22px;border-top:1px solid var(--line)}
.footer-link{border:0;background:transparent;color:var(--accent);padding:0;text-align:left;font-weight:800;font-size:12px}
.footer-link:hover{text-decoration:underline}
.topbtn{position:fixed;right:20px;bottom:20px;z-index:25;border:0;background:var(--accent);color:white;width:42px;height:42px;border-radius:999px;font-weight:900}

dialog{width:min(900px,94vw);max-height:min(84vh,900px);border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);padding:0;box-shadow:0 30px 90px #0005}
dialog::backdrop{background:#17201c99;backdrop-filter:blur(2px)}
.modal{padding:26px}
.modal-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.modal h2{font:700 clamp(36px,5vw,54px)/1 Georgia,serif;margin:0}
.modal .close{border:0;background:var(--accent);color:white;border-radius:9px;padding:9px 12px;font-weight:800}
.modal-summary{color:var(--muted);font-size:16px;margin:16px 0 22px}
.detail-layout{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);gap:26px}
.detail-photo{position:sticky;top:0;align-self:start}
.detail-photo .photo{aspect-ratio:4/3;border-radius:14px;border:1px solid var(--line);background:#d7dedb center/cover no-repeat}
.detail-photo .caption{margin-top:8px;color:var(--muted);font-size:11px}.ai-image-note{font-weight:700;color:var(--muted)}
.cols{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px}
.cols h3{margin:0 0 10px}
.cols li{margin-bottom:7px}

.settings{position:fixed;right:18px;top:66px;z-index:70;width:min(330px,calc(100vw - 36px));background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 22px 60px #0003;display:none}
.settings.open{display:block}
.settings h3{margin:0 0 4px}
.settings p{margin:0 0 14px;color:var(--muted);font-size:12px}
.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.setting-grid label{display:grid;gap:5px;font-size:11px;font-weight:800;color:var(--muted)}
.setting-grid select,.setting-grid input[type="color"]{width:100%;height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);color:var(--text);padding:5px}
.setting-check{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:12px}

@media(max-width:1000px){
  :root{--columns:2}
  .hero{min-height:560px;background-position:62% center}
  .hero-grid{padding:58px 0 42px}
}
@media(max-width:760px){
  .facets{grid-template-columns:1fr 1fr}
  .quickbar{grid-template-columns:1fr}
  .menu a{display:none}
  .cols{grid-template-columns:1fr}
  .detail-layout{grid-template-columns:1fr}
  .detail-photo{position:static}
  .upcoming-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  :root{--columns:1}
  .searchrow{grid-template-columns:1fr}
  .facets{grid-template-columns:1fr}
  .hero{min-height:620px;background-position:68% center}
  .hero-grid{width:min(100% - 28px,var(--content));padding:70px 0 34px}
  .hero h1{font-size:52px}
  .hero p{font-size:16px}
  .hero .source-note{display:none}
  .system-copy small{display:none}
}

/* V0.3.3 responsive grid hardening */
@media (min-width: 1201px){
  .cards{grid-template-columns:repeat(var(--columns),minmax(0,1fr)) !important}
}
@media (min-width: 721px) and (max-width: 1200px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .filterpanel{padding:14px}
  .facets{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width: 720px){
  .cards{grid-template-columns:minmax(0,1fr) !important;padding-left:14px;padding-right:14px}
  .card{width:100%;max-width:none}
  .facets{grid-template-columns:1fr !important}
  .quickbar{grid-template-columns:1fr !important}
  .filter-status{align-items:flex-start}
  .hero{min-height:560px;background-position:68% center}
}


/* LIVE V1.0.1 — final cascade corrections */
.hero .eyebrow{
  color:#fff !important;
  font:800 13px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace !important;
  letter-spacing:.14em !important;
  text-shadow:0 1px 10px rgba(0,0,0,.78) !important;
}
.hero p{
  color:#fff !important;
  font-size:21px !important;
  line-height:1.45 !important;
  font-weight:600 !important;
  text-shadow:0 1px 12px rgba(0,0,0,.82) !important;
  opacity:1 !important;
}
.hero .source-note{
  color:#f7faf9 !important;
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:500 !important;
  text-shadow:0 1px 11px rgba(0,0,0,.82) !important;
  opacity:1 !important;
}
.facet-label{
  font-size:12px !important;
  gap:8px !important;
  min-height:30px;
}
.facet-icon{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  border-radius:8px !important;
  font-size:18px !important;
  font-weight:900 !important;
  border-width:1.5px !important;
  box-shadow:0 2px 8px rgba(11,111,102,.08);
}
.facet-icon.bars{
  font-size:11px !important;
  letter-spacing:0 !important;
}
@media(max-width:720px){
  .hero p{font-size:18px !important}
  .hero .source-note{display:block !important;font-size:13px !important}
  .facet-icon{width:28px !important;height:28px !important;min-width:28px !important;font-size:17px !important}
}

@media(max-width:520px){.facets{grid-template-columns:1fr}}

/* ═══════════ V1.2.0 ═══════════ */

/* Auto-fit columns (restored) */
.cards--auto{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important}

/* Card typography now scales with Density + Canvas settings */
.cb h2{font-size:calc(var(--card-fs,16px)*1.7)}
.cb p{font-size:var(--card-fs,16px)}
.tag{font-size:calc(var(--card-fs,16px)*.66)}
.detail{font-size:var(--card-fs,16px)}

/* Book button sits next to the heart */
.bookbtn{position:absolute;right:54px;top:10px;width:36px;height:36px;border-radius:999px;border:1px solid #ffffff99;background:#ffffffdd;color:#1b241f;display:grid;place-items:center;padding:0}
.bookbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bookbtn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
#bookCount{display:inline-block;min-width:18px;text-align:center;font-size:10px;margin-left:3px;border-radius:999px;background:var(--accent-soft);color:var(--accent);padding:1px 5px}
.menu .nav-book.has{color:var(--accent)}
body.favorites-mode .bookpromo{display:none}

/* ─── Footer ─── */
.site-footer{position:relative;margin-top:36px;border-top:1px solid var(--line);color:var(--muted);
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 8%,var(--bg)) 0,var(--surface) 170px)}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:3px;
  background:linear-gradient(90deg,transparent,var(--accent) 16%,var(--accent) 84%,transparent)}
.footer-in{max-width:var(--content);margin:0 auto;padding:48px 22px 0}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.3fr 1fr;gap:42px}
.fcol{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.fcol h4{width:100%;margin:0 0 4px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--text)}
.fcol p,.fcol a,.fcol .footer-link{margin:0;font-size:14px;line-height:1.55}
.fcol p{color:var(--muted)}
.fcol a{font-weight:700;font-size:13.5px}
@media(min-width:1100px){.fcol a{white-space:nowrap}}
@media(max-width:1099px){.fcol a{overflow-wrap:anywhere}}
.footer-link{font-size:14px}
.fbrand .footer-logo{display:flex;align-items:center;gap:11px}
.footer-logo img{width:36px;height:36px;object-fit:contain;display:block}
.footer-logo span{font-weight:800;font-size:13px;letter-spacing:.12em;color:var(--text)}
.footer-bottom{display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin-top:40px;padding:17px 0 28px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
@media(min-width:900px){.footer-bottom span:last-child{margin-right:58px}}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;gap:34px 30px}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}.footer-in{padding-top:38px}}

/* ─── Promo band ─── */
.bookpromo{max-width:var(--content);margin:30px auto 8px;padding:0 22px}
.bp-in{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;padding:38px 44px;border:1px solid var(--line);border-radius:22px;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0,color-mix(in srgb,var(--accent) 16%,var(--surface)),var(--surface) 62%)}
.bp-copy .eyebrow{font:800 12px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.14em;color:var(--accent)}
.bp-copy h2{margin:.25em 0 .35em;font:700 clamp(30px,3.4vw,44px)/1.05 Georgia,serif;letter-spacing:-.02em;color:var(--text)}
.bp-copy p{margin:0 0 20px;font-size:17px;color:var(--muted);max-width:52ch}
.bp-actions{display:flex;gap:10px;flex-wrap:wrap}
.bp-actions .primary{border-radius:999px;padding:12px 20px;font-size:15px}
.bp-ghost{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:12px 18px;font-size:15px;font-weight:700}
.bp-ghost:hover{background:var(--hover)}
.bp-copy small{display:block;margin-top:14px;color:var(--muted);font-size:13px}
.bp-shelf{display:flex;justify-content:center;align-items:flex-end;min-height:290px}
.bp-shelf .bk-mini{margin:0 -14px;transition:transform .25s ease}
.bp-shelf .bk-mini:nth-child(1){transform:rotate(-7deg) translateY(14px)}
.bp-shelf .bk-mini:nth-child(2){transform:translateY(-8px);z-index:2}
.bp-shelf .bk-mini:nth-child(3){transform:rotate(6deg) translateY(10px)}
.bp-shelf:hover .bk-mini:nth-child(1){transform:rotate(-10deg) translate(-10px,14px)}
.bp-shelf:hover .bk-mini:nth-child(3){transform:rotate(9deg) translate(10px,10px)}
.bp-in>*{min-width:0}
@media(max-width:860px){.bp-in{grid-template-columns:minmax(0,1fr);padding:30px 24px}.bp-shelf{min-height:250px;order:-1;overflow:hidden;padding:6px 0 4px}}
@media(max-width:560px){.bp-in{padding:24px 18px}.bp-shelf .bk-mini:nth-child(3){display:none}.bp-shelf .bk-mini{margin:0 -10px}.bp-copy p{font-size:16px}}
.upcoming-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important}

/* ─── Cookbook pages (A4). Shared by preview + print. Colours are explicit so the site theme never leaks in. ─── */
.bk-page{--ink:#26231f;--ac:#0b6f66;position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:210mm;height:297mm;overflow:hidden;
  background:#fffdf8;color:var(--ink);font-family:var(--bk-body,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif);line-height:1.4;text-align:left}
.bk-page *{box-sizing:border-box}
.bk-page h2,.bk-page h3,.bk-page p,.bk-page ul,.bk-page ol{margin:0;padding:0}
.bk-serif,.bk-page h2,.bk-cover .bk-ct,.bk-ded .bk-dt,.bk-toc h2,.bk-about h2{font-family:var(--bk-head,Georgia,"Times New Roman",serif)}

/* cover */
.bk-cover{align-items:center;justify-content:center;color:var(--ink)}
.bk-cover .bk-plate{position:relative;width:76%;padding:64px 44px 58px;text-align:center;background:var(--plate,#fdf8ee);outline:2px solid var(--ac);outline-offset:-14px;box-shadow:0 14px 40px rgba(0,0,0,.18)}
.bk-cover.bk-bare .bk-plate{background:transparent;box-shadow:none;outline:none;color:var(--ink)}
.bk-cover .bk-ct{font-weight:700;line-height:1.08;letter-spacing:-.01em;overflow-wrap:anywhere}
.bk-cover .bk-rule{width:84px;height:3px;background:var(--ac);margin:26px auto 20px}
.bk-cover .bk-ca{font-size:21px;font-style:italic;font-family:var(--bk-head,Georgia,serif)}
.bk-cover .bk-cf{position:absolute;left:0;right:0;bottom:34px;text-align:center;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);opacity:.82}
.bk-cover.bk-photo-cover{background:#1b1b1b;color:#fff;justify-content:flex-end;align-items:stretch}
.bk-cover .bk-cimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bk-cover .bk-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 25%,rgba(0,0,0,.78) 100%)}
.bk-photo-cover .bk-ptext{position:relative;padding:0 64px 92px;color:#fff}
.bk-photo-cover .bk-ct{font-weight:700;line-height:1.05;text-shadow:0 2px 18px rgba(0,0,0,.55)}
.bk-photo-cover .bk-rule{background:#f0d9a8}
.bk-photo-cover .bk-ca{color:#f6e7c4;font-size:22px;font-style:italic;font-family:var(--bk-head,Georgia,serif)}
.bk-photo-cover .bk-cf{color:#fff;bottom:40px}

/* dedication */
.bk-ded{align-items:center;justify-content:center;text-align:center;padding:0 110px}
.bk-ded .bk-orn{font-size:26px;color:var(--ac);letter-spacing:.5em;margin-bottom:34px}
.bk-ded .bk-dt{font-size:25px;line-height:1.55;font-style:italic;white-space:pre-line;overflow-wrap:anywhere}
.bk-ded .bk-orn.b{margin:34px 0 0}

/* contents */
.bk-toc{padding:74px 70px 0}
.bk-toc h2{font-size:38px;font-weight:700;padding-bottom:14px;border-bottom:3px solid var(--ac);margin-bottom:26px}
.bk-toc .bk-tl{columns:2;column-gap:44px;column-fill:auto;height:820px}
.bk-toc .bk-ti{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:10px;break-inside:avoid;padding:var(--tpad,7px) 0;font-size:var(--tfs,15px);line-height:1.25}
.bk-toc .bk-tx{display:flex;flex-direction:column;min-width:0;max-width:19em}
.bk-toc .bk-tt{font-weight:600}
.bk-toc .bk-tc{font-size:.76em;color:#7a746a}
.bk-toc .bk-td{border-bottom:1.5px dotted #b9b2a4;margin-bottom:.45em;min-width:14px}
.bk-toc .bk-tn{font-variant-numeric:tabular-nums;font-weight:700;margin-bottom:.1em}

/* recipe page */
.bk-hero{position:relative;flex:0 0 auto;background:#e9e3d6;overflow:hidden}
.bk-hero img{display:block;width:100%;height:100%;object-fit:cover}
.bk-hero .bk-tag{position:absolute;left:0;bottom:0;padding:8px 18px 8px 56px;background:var(--ac);color:#fff;font-size:12.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.bk-hero.noimg{display:flex;align-items:flex-end}
.d1 .bk-hero{height:420px}.d2 .bk-hero{height:372px}.d3 .bk-hero{height:326px}.d4 .bk-hero{height:284px}.d5 .bk-hero{height:244px}.d6 .bk-hero{height:206px}.d7 .bk-hero{height:176px}
.bk-hero.noimg{height:150px!important}
.bk-rbody{flex:1;min-height:0;padding:30px 56px 0;overflow:hidden}
.bk-kick{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ac);margin-bottom:6px}
.bk-rbody h2{font-size:38px;line-height:1.06;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.bk-rbody h2.long{font-size:31px}
.bk-sum{margin-top:10px;font-family:var(--bk-head,Georgia,serif);font-style:italic;font-size:15.5px;line-height:1.45;color:#5b554b}
.bk-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 4px;padding:9px 0;border-top:1px solid #d9d2c3;border-bottom:1px solid #d9d2c3;font-size:13.5px;font-weight:600;color:var(--ink)}
.bk-cols{display:grid;grid-template-columns:34% 1fr;gap:34px;margin-top:16px}
.bk-cols h3{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--ac);padding-bottom:7px;border-bottom:2px solid var(--ac);margin-bottom:10px}
.bk-ing ul{list-style:none}
.bk-ing li{padding:3px 0 3px 15px;position:relative;border-bottom:1px solid #eee7d8}
.bk-ing li::before{content:"";position:absolute;left:0;top:.78em;width:6px;height:6px;border-radius:50%;background:var(--ac)}
.bk-met ol{list-style:none;counter-reset:s}
.bk-met li{counter-increment:s;position:relative;padding:0 0 9px 30px}
.bk-met li::before{content:counter(s);position:absolute;left:0;top:.05em;width:21px;height:21px;border-radius:50%;background:var(--ac);color:#fff;font-size:11.5px;font-weight:700;display:grid;place-items:center;line-height:1}
.d1 .bk-ing,.d1 .bk-met{font-size:17px}.d2 .bk-ing,.d2 .bk-met{font-size:16px}.d3 .bk-ing,.d3 .bk-met{font-size:15px}.d4 .bk-ing,.d4 .bk-met{font-size:14px}.d5 .bk-ing,.d5 .bk-met{font-size:13px}.d6 .bk-ing,.d6 .bk-met{font-size:12.2px}.d7 .bk-ing,.d7 .bk-met{font-size:11.4px}
.d1 .bk-sum{font-size:17px}.d2 .bk-sum{font-size:16.5px}.d3 .bk-sum{font-size:15.5px}.d4 .bk-sum,.d5 .bk-sum{font-size:15px}.d6 .bk-sum,.d7 .bk-sum{font-size:14px}
.d1 .bk-met li{line-height:1.55;padding-bottom:12px}.d2 .bk-met li{line-height:1.52;padding-bottom:11px}.d3 .bk-met li{line-height:1.5;padding-bottom:10px}.d4 .bk-met li{line-height:1.46;padding-bottom:9px}.d5 .bk-met li,.d6 .bk-met li,.d7 .bk-met li{line-height:1.4;padding-bottom:7px}
.d1 .bk-ing li{padding-top:5px;padding-bottom:5px}.d2 .bk-ing li{padding-top:4px;padding-bottom:4px}
.bk-foot{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 56px;height:48px;border-top:1px solid #d9d2c3;font-size:12px;color:#8a8376}
.bk-foot span:last-child{font-weight:700;color:var(--ink)}

/* about / attribution page */
.bk-about{padding:96px 84px 0}
.bk-about h2{font-size:34px;border-bottom:3px solid var(--ac);padding-bottom:14px;margin-bottom:26px}
.bk-about p{font-size:15px;line-height:1.62;margin-bottom:15px;color:#3b372f}
.bk-about b{color:var(--ink)}
.bk-about .bk-lic{margin-top:22px;padding:16px 20px;border-left:4px solid var(--ac);background:#f5efe2;font-size:14px}

/* mini covers (promo shelf + swatches) */
.bk-mini{position:relative;width:170px;height:240px;overflow:hidden;border-radius:3px 9px 9px 3px;box-shadow:-5px 0 0 rgba(0,0,0,.22),0 16px 36px rgba(0,0,0,.28);flex:0 0 auto}
.bk-mini .bk-page{position:absolute;left:0;top:0;transform:scale(.2157);transform-origin:0 0;pointer-events:none}

/* ─── Studio dialog ─── */
dialog.bk-dlg{width:min(1520px,97vw);height:min(94vh,1020px);max-height:none;border-radius:18px;overflow:hidden;padding:0}
dialog.bk-dlg::backdrop{background:#0c1413b8;backdrop-filter:blur(3px)}
.bk-shell{display:flex;flex-direction:column;height:100%;background:var(--bg);color:var(--text)}
.bk-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.bk-bar h2{font:700 24px/1.1 Georgia,serif;margin:0}
.bk-bar-t span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.bk-bar-a{display:flex;gap:8px;flex-wrap:wrap}
.bk-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 16px;font-size:14px;font-weight:700}
.bk-btn:hover{background:var(--hover)}
.bk-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.bk-btn-primary:hover{background:color-mix(in srgb,var(--accent) 86%,#000)}
.bk-btn:disabled{opacity:.45;cursor:not-allowed}
.bk-btn.sm{padding:6px 11px;font-size:13px}
.bk-sharebar{display:none;gap:8px;align-items:center;padding:10px 20px;background:var(--accent-soft);border-bottom:1px solid var(--line)}
.bk-sharebar.open{display:flex}
.bk-sharebar input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:8px 11px;font-size:13px}
.bk-msg{display:none;padding:9px 20px;background:#fff1e8;color:#8a3b12;font-size:14px;border-bottom:1px solid #f0cdb5}
.bk-msg.open{display:block}
.bk-main{flex:1;min-height:0;display:grid;grid-template-columns:392px 1fr}
.bk-side{overflow:auto;background:var(--surface);border-right:1px solid var(--line);padding:6px 20px 24px}
.bk-sec{padding:16px 0 18px;border-bottom:1px solid var(--line)}
.bk-sec:last-child{border-bottom:0}
.bk-sec h3{margin:0 0 12px;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--text);display:flex;justify-content:space-between;align-items:center}
.bk-sec h3 em{font-style:normal;color:var(--muted);font-weight:600;letter-spacing:0;text-transform:none;font-size:13px}
.bk-covers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.bk-sw{border:2px solid transparent;border-radius:12px;padding:3px;background:none;cursor:pointer;text-align:center;color:var(--muted);font-size:11.5px;font-weight:700}
.bk-sw .sw{display:block;height:58px;border-radius:8px;border:1px solid rgba(0,0,0,.12);background-size:cover;background-position:center}
.bk-sw span.l{display:block;margin-top:5px}
.bk-sw:hover{background:var(--hover)}
.bk-sw.sel{border-color:var(--accent);color:var(--text)}
.bk-fld[hidden]{display:none}
.bk-fld{display:grid;gap:5px;margin-bottom:12px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bk-fld input,.bk-fld textarea,.bk-fld select{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);padding:10px 12px;font:inherit;font-size:15px;font-weight:500;letter-spacing:0;text-transform:none;outline:none}
.bk-fld textarea{min-height:84px;resize:vertical;line-height:1.45}
.bk-fld input:focus,.bk-fld textarea:focus,.bk-fld select:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.bk-rtools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.bk-list{display:grid;gap:7px}
.bk-row{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.bk-th{width:46px;height:46px;border-radius:9px;background:#e6e0d3 center/cover no-repeat}
.bk-rt{min-width:0}
.bk-rt b{display:block;font-size:14.5px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk-rt small{display:block;color:var(--muted);font-size:12.5px}
.bk-rb{display:flex;gap:4px}
.bk-rb button{width:28px;height:28px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;font-size:13px;line-height:1;padding:0}
.bk-rb button:hover:not(:disabled){background:var(--hover)}
.bk-rb button:disabled{opacity:.3}
.bk-empty{padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:14px;line-height:1.55;background:var(--surface-soft)}
.bk-stage{overflow:auto;background:color-mix(in srgb,var(--text) 7%,var(--bg))}
.bk-tools{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 24px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.bk-seg{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:var(--surface)}
.bk-seg button{border:0;background:transparent;padding:6px 14px;font-size:13px;font-weight:700;color:var(--muted)}
.bk-seg button.on{background:var(--accent);color:#fff}
.bk-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--bkcell,300px),1fr));gap:30px 26px;padding:26px 24px 40px;align-items:start}
.bk-fig{margin:0}
.bk-pv{position:relative;width:100%;aspect-ratio:210/297;background:#fff;overflow:hidden;box-shadow:0 2px 4px rgba(0,0,0,.12),0 14px 34px rgba(0,0,0,.18);border-radius:2px}
.bk-pv .bk-page{position:absolute;left:0;top:0;transform:scale(var(--s,.38));transform-origin:0 0}
.bk-fig figcaption{margin-top:9px;text-align:center;font-size:13px;color:var(--muted)}
@media(max-width:940px){
  dialog.bk-dlg{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  .bk-main{display:block;overflow:auto}
  .bk-side{overflow:visible;border-right:0}
  .bk-stage{overflow:visible}
  .bk-covers{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:520px){.bk-covers{grid-template-columns:repeat(3,1fr)}.bk-bar h2{font-size:20px}}

/* ═══════════ V1.3.0 ═══════════ */
/* Bundled fonts: all SIL Open Font Licence 1.1 (Playfair Display, Source Sans 3, Lora, Nunito). Used only for cookbook pages. */
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/playfair-display-latin-400-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/playfair-display-latin-ext-400-italic.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/playfair-display-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/playfair-display-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:700;font-display:swap;src:url("fonts/playfair-display-latin-700-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:700;font-display:swap;src:url("fonts/playfair-display-latin-ext-700-italic.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lora";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/lora-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lora";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/lora-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lora";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/lora-latin-400-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lora";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/lora-latin-ext-400-italic.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lora";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/lora-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lora";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/lora-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/nunito-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/nunito-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/nunito-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/nunito-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/nunito-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

.bk-f-editorial{--bk-head:"Playfair Display",Georgia,serif;--bk-body:"Source Sans 3","Segoe UI",system-ui,sans-serif}
.bk-f-friendly{--bk-head:Lora,Georgia,serif;--bk-body:Nunito,"Segoe UI",system-ui,sans-serif}

/* cook's note on a recipe page */
.bk-note{margin:12px 0 0;padding:9px 14px 10px;border-left:4px solid var(--ac);background:#f5efe2;border-radius:0 8px 8px 0;font-size:14px;line-height:1.42;color:#3b372f}
.bk-note b{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ac);margin-bottom:3px}
.bk-note p{font-style:italic}

/* toast (lives in the top layer so it shows above open dialogs) */
#toast{position:fixed;inset:auto auto 26px 50%;margin:0;border:0;transform:translate(-50%,16px);max-width:min(560px,92vw);padding:12px 18px;border-radius:12px;background:#17201d;color:#fff;font-size:15px;line-height:1.4;box-shadow:0 12px 40px #0006;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:2000}
#toast.on{opacity:1;transform:translate(-50%,0)}

/* welcome card */
.welcome{position:fixed;right:22px;bottom:84px;z-index:900;width:min(390px,calc(100vw - 44px));background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:22px 24px 16px;box-shadow:0 18px 60px #0003;opacity:0;transform:translateY(14px);transition:opacity .3s,transform .3s}
.welcome.on{opacity:1;transform:none}
.welcome[hidden]{display:none}
.welcome h3{margin:0 0 6px;font:700 21px/1.2 Georgia,serif;padding-right:22px}
.welcome p{margin:0 0 15px;color:var(--muted);font-size:15px;line-height:1.5}
.wel-btns{display:grid;gap:8px}
.wel-btns button{border-radius:999px;padding:11px 18px;font-size:15px;font-weight:800}
.wel-btns .primary{border:0}
.wel-rem{display:flex;gap:9px;align-items:center;margin-top:13px;font-size:14px;color:var(--muted);cursor:pointer}
.wel-rem input{width:16px;height:16px;accent-color:var(--accent)}
.wel-x{position:absolute;top:10px;right:12px;border:0;background:none;font-size:17px;line-height:1;color:var(--muted);padding:6px}

/* vegetarian filter */
.vegtoggle{display:flex;align-items:center;gap:11px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:15px;font-weight:800;cursor:pointer;flex-wrap:wrap}
.vegtoggle input{width:19px;height:19px;accent-color:var(--accent)}
.vegtoggle small{font-weight:500;color:var(--muted);font-size:13.5px}

/* country chip */
.tag.tag-country{display:inline-flex;align-items:center;gap:5px;background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 35%,var(--line));font-weight:800;font-size:calc(var(--card-fs,16px)*.8)}
.tag-country svg{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.mcountry{display:flex;width:fit-content;align-items:center;gap:6px;margin:0 0 12px;padding:5px 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:14px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line))}
.mcountry svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mcountry+*{margin-top:0}

/* ─── growth strip ─── */
.growmeter{max-width:var(--content);margin:26px auto 0;padding:0 22px}
.growmeter+.bookpromo{margin-top:18px}
.gm-in{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:16px 22px 18px}
.gm-top{display:flex;align-items:baseline;gap:8px 22px;flex-wrap:wrap;margin-bottom:11px}
.gm-count{font:700 21px/1.2 Georgia,serif}
.gm-count span{color:var(--accent)}
.gm-note{color:var(--muted);font-size:15px;flex:1;min-width:220px}
.gm-link{font-weight:800;color:var(--accent);text-decoration:none;font-size:14.5px;white-space:nowrap}
.gm-link:hover{text-decoration:underline}
.gm-bar{height:12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 13%,var(--line));overflow:hidden}
.gm-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 65%,#8fe0d0));transition:width 1.1s cubic-bezier(.2,.8,.2,1)}
.gm-month{margin-top:10px;font-size:14.5px;color:var(--muted)}
.gm-month b{color:var(--text)}
.gm-month[hidden]{display:none}
body.favorites-mode .growmeter{display:none}
@media(prefers-reduced-motion:reduce){.gm-fill{transition:none}}
@media(max-width:560px){.growmeter{padding:0 14px}.gm-in{padding:14px 16px 16px}.gm-count{font-size:19px}}

/* ─── About: same container and card style as every other section ─── */
.about-wrap{max-width:var(--content);margin:0 auto 54px;padding:0 22px}
.about-box{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:26px 28px}
.about-copy{flex:1 1 320px;min-width:0}
.about-copy h2{margin:.25em 0 .35em;font:700 30px/1.1 Georgia,serif}
.about-copy p{margin:0;color:var(--muted);font-size:16px;line-height:1.55;max-width:64ch}
/* section labels use the same teal mono style as the cookbook band */
.upcoming .eyebrow,.about-box .eyebrow{font:800 12px ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.14em!important;color:var(--accent)!important;text-shadow:none!important}
.future-card strong{font-weight:800;color:var(--text)}
body.favorites-mode .about-wrap{display:none}

/* ─── Recipe pop-up: wider, title on its own row, actions below ─── */
#dlg{width:min(calc(var(--content,1320px)*.86),96vw);max-width:none;max-height:min(90vh,1000px)}
#dlg .modal{padding:28px 32px 30px}
#dlg .modal-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 18px;flex-wrap:nowrap}
#dlg .modal h2{overflow-wrap:anywhere;hyphens:auto;min-width:0;font-size:clamp(34px,4.4vw,56px)}
#dlg .modal-head .close{margin-top:6px}
#dlg .modal-acts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;justify-content:flex-start;flex-shrink:1}
#dlg .modal-summary{margin:16px 0 24px}
#dlg .vegbadge{display:flex;width:fit-content;margin-top:12px}
#dlg .vegextra{margin-top:8px}
#dlg .detail-layout{grid-template-columns:minmax(300px,.85fr) minmax(0,2.15fr);gap:32px}
#dlg .cols{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:32px}
@media(max-width:1000px){
  #dlg{width:94vw;max-height:92vh}
  #dlg .detail-layout{grid-template-columns:1fr;gap:20px}
  #dlg .detail-photo{position:static}
  #dlg .detail-photo .photo{aspect-ratio:auto;width:100%;height:clamp(200px,36vw,340px)}
}
@media(max-width:640px){
  #dlg{width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}
  #dlg .modal{padding:0 18px 28px}
  #dlg .modal-head{position:sticky;top:0;z-index:4;background:var(--surface);padding:12px 0 10px;border-bottom:1px solid var(--line)}
  #dlg .modal h2{font-size:clamp(26px,8vw,34px)}
  #dlg .modal-head .close{margin-top:2px}
  #dlg .cols{grid-template-columns:1fr;gap:22px}
}

/* ─── Share dialog ─── */
.sh-card{display:flex;gap:16px;align-items:center;margin:4px 0 18px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.sh-cover{position:relative;flex:0 0 auto;width:72px;height:102px;overflow:hidden;border-radius:3px 7px 7px 3px;box-shadow:-3px 0 0 rgba(0,0,0,.2),0 8px 18px rgba(0,0,0,.25)}
.sh-cover .bk-page{position:absolute;left:0;top:0;transform:scale(.0907);transform-origin:0 0;pointer-events:none}
.sh-meta{min-width:0}
.sh-meta b{display:block;font:700 19px/1.2 Georgia,serif;overflow-wrap:anywhere}
.sh-meta span{display:block;color:var(--muted);font-size:14px;margin-top:3px}
#shUrl{font-size:13.5px;text-overflow:ellipsis}
.sh-copy{gap:7px;white-space:nowrap;transition:background .2s,border-color .2s}
.sh-copy .tick{display:none}
.sh-copy.done{background:#1f8a4c;border-color:#1f8a4c;animation:shpop .38s ease}
.sh-copy.done .tick{display:inline-block}
.sh-copy.done svg:not(.tick){display:none}
@keyframes shpop{0%{transform:scale(.95)}55%{transform:scale(1.07)}100%{transform:scale(1)}}
.sh-note{margin:10px 0 14px;font-size:13.5px;line-height:1.5;color:var(--muted);min-height:20px}
.sh-actions{display:flex;gap:8px;flex-wrap:wrap}
.sh-fb-mode{display:flex;align-items:center;gap:8px;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.35;cursor:pointer}
.sh-fb-mode input{width:16px;height:16px;accent-color:var(--accent)}
.sh-fb-mode span{opacity:.8}
.sh-actions .bk-btn[hidden]{display:none}
.sh-mode{display:block;margin-top:14px;font-size:13.5px;text-align:left}
.sh-mode[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.sh-copy.done{animation:none}}

/* ─── Hero buttons: one shape, three roles, on the same tokens as the rest of the site ─── */
.hero-copy{max-width:840px}
.hero-actions{gap:12px;margin-top:26px}
.hero-actions .hbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 22px;border-radius:999px;font-size:16px;font-weight:800;letter-spacing:.01em;line-height:1;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}
.hero-actions .hbtn svg{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hero-actions .hero-primary{background:var(--accent);color:#fff;border:1px solid color-mix(in srgb,var(--accent) 55%,#fff);box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 50%,transparent)}
.hero-actions .hero-primary:hover{background:color-mix(in srgb,var(--accent) 86%,#000);transform:translateY(-2px)}
.hero-actions .hbtn-light{background:#fff;color:#17201c;border:1px solid #fff;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.hero-actions .hbtn-light:hover{background:#f4f2ed;transform:translateY(-2px)}
.hero-actions .hbtn-glass{background:rgba(12,22,19,.58);color:#fff;border:1px solid rgba(255,255,255,.55);backdrop-filter:blur(10px)}
.hero-actions .hbtn-glass:hover{background:rgba(12,22,19,.74);border-color:#fff;transform:translateY(-2px)}
.hero-actions .hbtn:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:560px){.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .hbtn{width:100%}}
@media(prefers-reduced-motion:reduce){.hero-actions .hbtn{transition:none}.hero-actions .hbtn:hover{transform:none}}

/* ─── Header navigation: hover, focus and "has items" states on the same tokens ─── */
.menu a,.menu button{font-size:14px;padding:8px 13px;transition:background .15s ease,color .15s ease}
.menu a:hover,.menu button:hover{background:var(--accent-soft);color:var(--accent)}
.menu a:focus-visible,.menu button:focus-visible,.menu-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.menu .nav-book.has{background:var(--accent-soft);color:var(--accent)}

/* ─── Share dialog: recipe photo ─── */
.sh-cover img{display:block;width:100%;height:100%;object-fit:cover}
.sh-ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--accent-soft),color-mix(in srgb,var(--accent) 35%,var(--surface)))}
.setting-block{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.setting-block label{display:grid;gap:6px;font-size:13px;font-weight:700}
.setting-block select{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);color:var(--text);padding:9px 10px;font:inherit;font-size:14px}
.setting-block small{display:block;margin-top:8px;color:var(--muted);font-size:12.5px;line-height:1.4}
.vegextra{margin-top:6px;font-size:13px;color:var(--muted)}
.vegnote{display:none;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 44px);max-width:calc(var(--content) - 44px);margin:12px auto 0;padding:10px 16px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--accent-soft);border-radius:12px;font-size:15px}
.vegnote.on{display:flex}
.vegnote button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 13px;font-weight:700;font-size:13.5px}
.vegbadge{display:inline-block;margin-top:10px;padding:5px 12px;border-radius:999px;font-size:13.5px;font-weight:700;color:var(--text)}
.vegbadge.strict{background:color-mix(in srgb,#2e9e5b 18%,var(--surface));border:1px solid #2e9e5b66}
.vegbadge.tagged{background:color-mix(in srgb,#c9a227 18%,var(--surface));border:1px solid #c9a22766;border-radius:12px;line-height:1.35}

/* recipe pop-up actions */
.modal-acts{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;flex-shrink:0;justify-content:flex-end}
.modal-head h2{min-width:0}
@media(max-width:700px){.modal-head{flex-wrap:wrap}.modal-acts{flex-wrap:wrap;flex-shrink:1}}
.mact{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;display:inline-flex;gap:7px;align-items:center}
.mact svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mact:hover{background:var(--hover)}
.mact.on{background:var(--accent);border-color:var(--accent);color:#fff}
.mact.fav.on svg{fill:currentColor}

/* studio additions */
.bk-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.bk-msg.open{display:flex;align-items:center;justify-content:space-between;gap:14px}
.bk-chk{display:flex;gap:10px;align-items:flex-start;margin:2px 0 14px;font-size:14.5px;line-height:1.4;cursor:pointer}
.bk-chk input{margin-top:3px;width:17px;height:17px;accent-color:var(--accent);flex:0 0 auto}
.bk-chk small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px;font-weight:400}
.bk-item{border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);overflow:hidden}
.bk-item .bk-row{border:0;border-radius:0;background:none}
.bk-item.bad{border-color:#d6a089;background:color-mix(in srgb,#d6803a 10%,var(--surface))}
.bk-why{padding:0 12px 10px 66px;font-size:12.5px;color:#a24d14;line-height:1.4}
.bk-noteed{padding:0 10px 10px}
.bk-noteed textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:8px 10px;font:inherit;font-size:14px;line-height:1.4;resize:vertical;min-height:62px;outline:none}
.bk-noteed textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.bk-nc{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-top:3px}
.bk-nc .err{color:#b3361f;font-weight:700}
.bk-rb button.has{color:var(--accent);border-color:var(--accent)}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 13px;font-size:13.5px;font-weight:700}
.chip em{font-style:normal;color:var(--muted);font-weight:600;margin-left:4px}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.chip.on em{color:#ffffffcc}
.chip:hover:not(.on){background:var(--hover)}

/* finish / submit dialog */
dialog.sub-dlg{width:min(580px,94vw);max-height:92vh;border-radius:18px;padding:0;overflow:auto}
dialog.sub-dlg::backdrop,dialog.terms-dlg::backdrop{background:#0c1413b8;backdrop-filter:blur(3px)}
.sub-in{padding:24px 26px 22px}
.sub-in[hidden]{display:none}
.sub-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sub-in h2{margin:0;font:700 27px/1.1 Georgia,serif}
.sub-lead{color:var(--muted);margin:8px 0 18px;font-size:15.5px;line-height:1.5}
.sub-sugg{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:-4px 0 16px;font-size:13px;color:var(--muted)}
.sub-status{margin:6px 0 16px;padding:11px 14px;border-radius:12px;background:var(--surface-soft);border:1px solid var(--line);font-size:14.5px;line-height:1.45}
.sub-status.strict{background:color-mix(in srgb,#2e9e5b 14%,var(--surface));border-color:#2e9e5b66}
.sub-status.veg{background:color-mix(in srgb,#c9a227 14%,var(--surface));border-color:#c9a22766}
.sub-msg{display:none;margin:4px 0 12px;padding:10px 14px;border-radius:10px;background:#fff1e8;color:#8a3b12;font-size:14px;line-height:1.4}
.sub-msg.open{display:block}
.sub-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:10px}
.sub-linkrow{display:flex;gap:8px}
.sub-linkrow input{flex:1;min-width:0}
.sub-in code{background:var(--surface-soft);border:1px solid var(--line);padding:2px 8px;border-radius:7px;font-size:14px;word-break:break-all}
.linklike{border:0;background:none;color:var(--accent);font:inherit;font-weight:700;text-decoration:underline;padding:0;cursor:pointer}

/* gallery + viewer */
.bk-shell>.bk-stage{flex:1;min-height:0}
.bk-bar-t h2{margin:0}
.bk-bar-t>span{display:block}
.gl-filters{display:flex;gap:8px;flex-wrap:wrap;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.gl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:28px 24px;padding:26px 24px 44px;align-items:start}
.gl-card{display:flex;flex-direction:column;gap:11px}
.gl-cover{border:0;background:none;padding:0;cursor:pointer;display:block;text-align:left}
.gl-cover .bk-pv{box-shadow:-5px 0 0 rgba(0,0,0,.2),0 12px 30px rgba(0,0,0,.22);border-radius:2px 8px 8px 2px;transition:transform .2s}
.gl-cover:hover .bk-pv{transform:translateY(-4px)}
.gl-info h3{margin:0;font:700 18px/1.2 Georgia,serif}
.gl-info p{margin:3px 0 7px;color:var(--muted);font-size:14px}
.gl-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.gl-report{font-size:13px;color:var(--muted);text-decoration:underline;margin-left:auto}
.vbadge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:800;color:var(--text)}
.vbadge.strict{background:color-mix(in srgb,#2e9e5b 18%,var(--surface));border:1px solid #2e9e5b66}
.vbadge.veg{background:color-mix(in srgb,#c9a227 18%,var(--surface));border:1px solid #c9a22766}
.vnote{color:var(--muted);font-size:13px;margin-left:6px}

/* community terms */
dialog.terms-dlg{width:min(720px,94vw);max-height:88vh;border-radius:18px;padding:0;overflow:auto}
.terms-in{padding:24px 28px 28px}
.terms-in h2{font:700 29px/1.15 Georgia,serif;margin:0 0 4px}
.terms-in h3{margin:22px 0 6px;font-size:16px}
.terms-in p,.terms-in li{font-size:15.5px;line-height:1.62}
.terms-in ul{margin:6px 0 0 20px;padding:0}
.terms-in li{margin-bottom:5px}
.terms-v{color:var(--muted);font-size:13.5px}
.terms-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}

/* ─── Promo band, larger, with real cookbook mockups ─── */
.bookpromo{margin:36px auto 12px}
.bp-in{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:56px;padding:64px 60px;border-radius:28px}
.bp-copy .eyebrow{font-size:13px}
.bp-copy h2{font-size:clamp(34px,4.2vw,58px);line-height:1.02;margin:.3em 0 .4em}
.bp-copy p{font-size:clamp(17px,1.5vw,20px);line-height:1.55;max-width:46ch;margin-bottom:28px}
.bp-actions{gap:12px}
.bp-actions{align-items:center}
.bp-actions .primary,.bp-ghost{padding:14px 22px;font-size:15.5px}
.bp-link{border:0;background:none;color:var(--accent);font-weight:800;font-size:15.5px;padding:14px 6px;cursor:pointer}
.bp-link:hover{text-decoration:underline}
.bp-copy small{font-size:14px;margin-top:18px}
.bp-shelf{display:flex;justify-content:center;align-items:flex-end;min-height:420px;padding:10px 0 6px}
.bp-book{border:0;background:none;padding:0;cursor:pointer;width:clamp(124px,14.6vw,206px);flex:0 0 auto;margin:0 -14px;transition:transform .3s ease;display:block;position:relative}
.bp-book .bk-pv{box-shadow:-7px 0 0 rgba(0,0,0,.22),0 26px 50px rgba(0,0,0,.34);border-radius:3px 12px 12px 3px}
.bp-book:nth-child(1){transform:rotate(-7deg) translateY(24px);z-index:1}
.bp-book:nth-child(2){transform:rotate(-1deg) translateY(-10px);z-index:3}
.bp-book:nth-child(3){transform:rotate(6deg) translateY(20px);z-index:2}
.bp-shelf:hover .bp-book:nth-child(1){transform:rotate(-10deg) translate(-16px,24px)}
.bp-shelf:hover .bp-book:nth-child(3){transform:rotate(9deg) translate(16px,20px)}
.bp-book:hover{transform:translateY(-16px) rotate(0)!important;z-index:6}
@media(max-width:980px){.bp-in{grid-template-columns:minmax(0,1fr);padding:40px 30px;gap:30px}.bp-shelf{order:-1;min-height:320px}.bp-book{width:clamp(120px,24vw,190px)}}
@media(max-width:560px){.bp-in{padding:28px 18px}.bp-shelf{min-height:250px}.bp-book{width:31vw;margin:0 -10px}}

/* ─── Coming soon cards ─── */
.future-card{position:relative}
.upcoming-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px}
@media(max-width:980px){.upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.upcoming-grid{grid-template-columns:minmax(0,1fr)!important}}
.fc-ic.duo{width:auto;padding:0 13px;display:inline-flex;gap:9px;align-items:center}
.fc-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--accent-soft);color:var(--accent);margin-bottom:12px}
.future-card b{display:block;font-size:18px;margin-bottom:6px}
.future-card p{font-size:15px;line-height:1.55}
.fc-link{display:inline-block;margin-top:10px;font-weight:800;color:var(--accent);text-decoration:none;font-size:14.5px}
.fc-link:hover{text-decoration:underline}
.fc-link[hidden]{display:none}

/* ─── Buy me a coffee (in the site's own style) ─── */
.coffee{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;font-weight:800;font-size:14px;line-height:1;text-decoration:none;
  color:#5a3a12;background:linear-gradient(180deg,#fff4dc,#f6dfb2);border:1px solid #e0c58e;box-shadow:0 2px 0 #e0c58e;transition:transform .15s,box-shadow .15s}
.coffee svg{flex:0 0 auto}
.coffee:hover{transform:translateY(-1px);box-shadow:0 3px 0 #e0c58e}
.coffee.soon{opacity:.72;cursor:default;pointer-events:none;box-shadow:none}
.coffee.small{padding:6px 12px;font-size:13px;margin-left:6px}
.fcol .coffee{margin-top:6px;color:#5a3a12;font-size:14px}
body[data-theme="dark"] .coffee{color:#f6dfb2;background:#3a2c14;border-color:#6b5428;box-shadow:0 2px 0 #6b5428}

/* ─── After Finish ─── */
.done-keep{margin:12px 0 4px;font-size:14.5px;line-height:1.5;color:var(--muted)}
.done-keep b{color:var(--text)}
.done-coffee{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);display:flex;align-items:center;flex-wrap:wrap}


/* ─── status badges ─── */
.fc-badge{position:absolute;top:14px;right:14px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:999px;line-height:1.2}
.fc-badge.soon{background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.fc-badge.done{background:color-mix(in srgb,#2e9e5b 18%,var(--surface));border:1px solid #2e9e5b66;color:var(--text)}
.future-card.done{border-color:#2e9e5b66;background:color-mix(in srgb,#2e9e5b 5%,var(--surface-soft,var(--surface)))}
.newtag{font-style:normal;font-size:10px;font-weight:900;letter-spacing:.08em;background:#e8590c;color:#fff;border-radius:999px;padding:2px 7px;line-height:1.3;margin-left:2px}
.delivered-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 4px}
.delivered-strip b{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-right:6px}
.dchip{border:1px solid #2e9e5b66;background:color-mix(in srgb,#2e9e5b 10%,var(--surface));border-radius:999px;padding:6px 13px;font-size:13.5px;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.mact .newtag{margin-left:2px}
.mact.on .newtag{background:#fff;color:#e8590c}
@media(max-width:1000px){.modal-head{flex-wrap:wrap}.modal-acts{flex-wrap:wrap;flex-shrink:1;justify-content:flex-start}}

@media(max-width:560px){.welcome{left:12px;right:12px;bottom:72px;width:auto}.sub-in{padding:20px 18px}}


/* V1.5.4 cumulative polish: public provenance badges + confirmation modals */
.origin-badge{display:inline-block;margin:0 7px 5px 0;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;vertical-align:middle}
.origin-badge.system{background:color-mix(in srgb,var(--accent) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));color:var(--text)}
.origin-badge.community{background:color-mix(in srgb,#2e9e5b 15%,var(--surface));border:1px solid #2e9e5b55;color:var(--text)}
.finish-confirm-card{max-width:620px}
.finish-confirm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.finish-confirm-actions .bk-btn{justify-content:center}
@media(max-width:640px){.finish-confirm-actions .bk-btn{width:100%}}


/* ─── Support The World Table ─── */
.support-band{max-width:var(--content);margin:54px auto 10px;padding:0 22px}
.support-band-in{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  overflow:hidden;border:1px solid var(--line);border-radius:26px;
  background:var(--surface);box-shadow:0 24px 70px rgba(25,36,31,.12)
}
.support-band-image{min-height:420px;background:var(--surface-soft);overflow:hidden}
.support-band-image img{width:100%;height:100%;min-height:420px;display:block;object-fit:cover;object-position:center}
.support-band-copy{display:flex;flex-direction:column;justify-content:center;padding:44px 46px}
.support-kicker{
  font:800 11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.14em;color:var(--accent);margin-bottom:13px
}
.support-band h2{margin:0 0 16px;font:700 clamp(31px,3.8vw,50px)/1.04 Georgia,serif;letter-spacing:-.025em;color:var(--text)}
.support-band-copy>p{margin:0 0 18px;color:var(--muted);font-size:16.5px;line-height:1.62}
.support-points{display:flex;flex-wrap:wrap;gap:8px;margin:1px 0 22px}
.support-points span{
  display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;
  border:1px solid var(--line);border-radius:999px;background:var(--bg);
  color:var(--text);font-size:12.5px;font-weight:750
}
.support-cta{align-self:flex-start;padding:12px 19px!important;font-size:15px!important}
.support-small{margin:13px 0 0!important;font-size:12.5px!important;line-height:1.55!important;max-width:58ch}
body[data-theme="dark"] .support-band-in{box-shadow:0 24px 70px rgba(0,0,0,.26)}
@media(max-width:900px){
  .support-band-in{grid-template-columns:1fr}
  .support-band-image,.support-band-image img{min-height:330px;max-height:430px}
  .support-band-copy{padding:32px 30px 36px}
}
@media(max-width:560px){
  .support-band{margin-top:36px;padding:0 14px}
  .support-band-in{border-radius:20px}
  .support-band-image,.support-band-image img{min-height:245px;max-height:300px}
  .support-band-copy{padding:26px 20px 28px}
  .support-band h2{font-size:32px}
  .support-cta{width:100%;justify-content:center}
}

/* Public release marker / contribution CTA */
.site-version{color:var(--accent);font-weight:900}
.menu .nav-add-recipe{background:var(--accent-soft);color:var(--accent)}
.menu .nav-add-recipe:hover{background:var(--accent);color:#fff}
.footer-link[href]{display:block;width:max-content}

/* V1.6.2 Git publication bridge */
.origin-badge.licensed{background:color-mix(in srgb,#b36b00 14%,var(--surface));border:1px solid #b36b0055;color:var(--text)}
.recipe-source{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));font-size:13px;line-height:1.5;color:var(--muted)}
.recipe-source b{color:var(--text)}
.recipe-source a{font-weight:800;color:var(--accent);text-decoration:none;white-space:nowrap}
.recipe-source a:hover{text-decoration:underline}

/* V1.6.3-H1 contribution presentation hardening */
.origin-badge.v2{background:color-mix(in srgb,var(--accent) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));color:var(--muted);font-size:10px;letter-spacing:.08em;padding:2px 7px}
.recipe-source-foot{grid-column:1/-1;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.55;color:var(--muted)}
.recipe-source-foot .source-label{font-weight:850;color:var(--text)}
.recipe-source-foot b{color:var(--text)}
.recipe-source-foot a{font-weight:750;color:var(--accent);text-decoration:none}
.recipe-source-foot a:hover{text-decoration:underline}
.recipe-source-foot details{margin-top:7px}
.recipe-source-foot summary{cursor:pointer;font-weight:750;color:var(--muted)}
.recipe-source-foot details>div{margin-top:7px;padding:9px 11px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--line)}
.brand-ingredient{font-weight:900;color:var(--text)}
#dlg .detail-layout.has-products{grid-template-columns:minmax(250px,.72fr) minmax(0,1.55fr) minmax(190px,.55fr);gap:24px}
#dlg .detail-layout.has-products .cols{gap:24px}
.featured-products-col{align-self:start;border:1px solid var(--line);border-radius:14px;padding:14px;background:linear-gradient(145deg,var(--surface-soft),var(--surface));min-width:0}
.featured-products-col h3{margin:4px 0 5px;font:700 22px/1.08 Georgia,serif}
.fp-kicker{font:800 9px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;color:var(--accent)}
.fp-intro,.fp-note{margin:0;color:var(--muted);font-size:10.5px;line-height:1.45}
.fp-card{margin-top:10px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.fp-card>b{display:block;font-size:11.5px;line-height:1.25;margin-top:7px}
.fp-card>small{display:block;color:var(--muted);font-size:9.5px;line-height:1.35;margin-top:2px}
.fp-card>span{display:inline-block;margin-top:6px;padding:3px 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:8.5px;font-weight:900;letter-spacing:.03em}
.fp-pack{height:84px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;border:1px solid #0001;box-shadow:inset 0 0 0 1px #fff7;text-align:center;padding:8px}
.fp-pack .fp-brand{font-weight:950;letter-spacing:.03em;font-size:12px;line-height:1}
.fp-pack small{font-size:8.5px;margin-top:5px;opacity:.78}
.fp-pack.jar{margin:0 17%;border-radius:17px 17px 12px 12px;background:#f6f0d7;color:#1b456f;border-color:#cfc9af}
.fp-pack.jar:before{content:"";position:absolute;left:11%;right:11%;top:0;height:11px;background:#315f91;border-radius:8px 8px 2px 2px}
.fp-pack.jar.red:before{background:#ba3f37}
.fp-pack.tin{margin:0 20%;border-radius:5px;background:#e96128;color:#171717;border:4px solid #222}
.fp-pack.tin:after{content:"";position:absolute;inset:9px 7px;border:1px solid #f4b083;pointer-events:none}
.fp-note{margin-top:12px;padding-top:9px;border-top:1px solid var(--line)}
@media(max-width:1180px){#dlg .detail-layout.has-products{grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr)}#dlg .detail-layout.has-products .featured-products-col{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}.featured-products-col>.fp-kicker,.featured-products-col>h3,.featured-products-col>.fp-intro,.featured-products-col>.fp-note{grid-column:1/-1}.fp-card{margin-top:0}}
@media(max-width:1000px){#dlg .detail-layout.has-products{grid-template-columns:1fr}.featured-products-col{position:static}}


/* V1.6.3-H3 final freeze: compact Featured Products + browser-local shopping list */
#dlg .detail-layout.has-products{grid-template-columns:minmax(250px,.68fr) minmax(0,1.42fr) minmax(235px,.62fr);gap:22px}
.featured-products-col{padding:13px;background:linear-gradient(160deg,var(--surface),var(--surface-soft));box-shadow:0 10px 28px rgba(20,35,29,.05)}
.featured-products-col h3{font-size:23px;margin:4px 0 4px}
.fp-intro{font-size:10.5px;margin-bottom:10px}
.fp-cards{display:grid;gap:8px}
.fp-card{position:relative;margin:0;padding:8px;display:grid;grid-template-columns:62px minmax(0,1fr) 20px;gap:9px;align-items:center;cursor:pointer}
.fp-card:hover{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.fp-card .fp-pack{grid-column:1;height:66px;width:62px;margin:0!important;border-radius:10px!important;padding:7px}
.fp-card .fp-pack.jar:before{height:8px}
.fp-card .fp-pack .fp-brand{font-size:9.5px}
.fp-card .fp-pack small{font-size:7px;margin-top:4px}
.fp-card .fp-copy{grid-column:2;display:block;min-width:0}
.fp-card .fp-copy>b{display:block;font-size:11.5px;line-height:1.25;margin:0}
.fp-card .fp-copy>small{display:block;color:var(--muted);font-size:8.8px;line-height:1.35;margin-top:3px}
.fp-used{display:inline-block;margin-top:5px;padding:3px 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:900;letter-spacing:.025em}
.fp-pick{grid-column:3;grid-row:1;align-self:start;justify-self:end}
.fp-pick input,.fp-selectbar input,.shopping-row input{accent-color:var(--accent)}
.fp-selectbar{display:flex;justify-content:flex-start;padding:9px 2px 7px;margin-top:8px;border-top:1px solid var(--line);font-size:10.5px;font-weight:800}
.fp-selectbar label{display:flex;gap:6px;align-items:center;cursor:pointer}
.fp-add-list{width:100%;border:0;border-radius:10px;background:var(--accent);color:#fff;font-weight:850;font-size:10.5px;padding:10px 9px;cursor:pointer}
.fp-add-list:hover{filter:brightness(.94)}
.shopping-list{margin-top:9px;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--accent) 6%,var(--surface));overflow:hidden}
.shopping-list>summary{list-style:none;cursor:pointer;padding:9px 10px;font-size:10.5px;font-weight:900;color:var(--text);display:flex;align-items:center;justify-content:space-between}
.shopping-list>summary::-webkit-details-marker{display:none}
.shopping-list>summary:after{content:"⌄";color:var(--accent);font-size:14px;margin-left:auto}
.shopping-list[open]>summary:after{content:"⌃"}
.shopping-list>summary span{margin-left:6px;margin-right:8px;min-width:18px;height:18px;border-radius:999px;display:inline-grid;place-items:center;background:var(--accent);color:#fff;font-size:8px}
.shopping-body{padding:0 10px 10px}
.shopping-items{display:grid;gap:5px;max-height:190px;overflow:auto;padding:7px 0;border-top:1px solid color-mix(in srgb,var(--accent) 16%,var(--line))}
.shopping-row{display:grid;grid-template-columns:16px 1fr;gap:7px;align-items:start;font-size:9.8px;line-height:1.3;cursor:pointer}
.shopping-empty{font-size:9.5px;color:var(--muted);margin:2px 0 6px}
.shopping-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}
.shopping-actions button{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:8.8px;font-weight:800;padding:7px 5px;cursor:pointer}
.shopping-actions button:hover{border-color:var(--accent);color:var(--accent)}
.shopping-actions button.quiet{grid-column:1/-1;background:transparent;color:var(--muted);padding:5px;border-style:dashed}
.fp-note{margin-top:10px;font-size:8.7px;line-height:1.4}
@media(max-width:1180px){
  #dlg .detail-layout.has-products{grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr)}
  #dlg .detail-layout.has-products .featured-products-col{grid-column:1/-1;display:block}
  .fp-cards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
}
@media(max-width:700px){
  .fp-cards{grid-template-columns:1fr}
  .shopping-actions{grid-template-columns:1fr}
  .shopping-actions button.quiet{grid-column:auto}
}


/* V1.6.4B1.2 — Search 2.0 */
.search2-shell{margin-top:20px;margin-bottom:22px}
.explore-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 12px;padding:0 4px}
.explore-head h2{font:700 clamp(28px,3.4vw,42px)/1.02 Georgia,serif;margin:3px 0 5px;letter-spacing:-.02em}
.explore-head p{margin:0;color:var(--muted);font-size:14px}
.search-summary{display:grid;gap:1px;min-width:138px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);color:var(--accent);text-align:right}
.search-summary b{font-size:13px}.search-summary span{font-size:11px;color:var(--muted)}
.search2-panel{position:relative;padding:12px;border-radius:16px;overflow:visible}
.search2-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.search2-box{position:relative;display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);transition:border-color .16s ease,box-shadow .16s ease}
.search2-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.search2-icon{width:23px;height:23px;margin-left:13px;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--text);flex:0 0 auto}
.search2-box input{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:13px 44px 13px 11px!important;font-size:16px;min-height:50px}
.search2-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.more-filters-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:148px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--text);font-weight:800;cursor:pointer}
.more-filters-btn .chev{font-size:16px;transition:transform .16s ease}.more-filters-btn[aria-expanded="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.more-filters-btn[aria-expanded="true"] .chev{transform:rotate(180deg)}
.more-filters-btn .sliders{font-size:16px;transform:rotate(90deg)}
.more-filters-panel{display:none;margin-top:10px;padding:2px 2px 0;border-top:1px solid var(--line)}.more-filters-panel.open{display:block}
.filter-status-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.filter-clear-all{border:0;background:transparent;color:var(--accent);font-weight:800;padding:5px 2px;cursor:pointer}.filter-clear-all[hidden]{display:none}
.active-filter-pills{display:flex;gap:7px;flex-wrap:wrap;padding:10px 2px 0}.active-filter-pills[hidden]{display:none}
.active-filter-pills button{border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;cursor:pointer}.active-filter-pills button span{margin-left:4px}
.search-assist{position:absolute;z-index:25;left:12px;right:168px;top:72px;background:var(--surface);border:1px solid var(--line);border-radius:0 0 14px 14px;box-shadow:0 18px 40px #17201c22;overflow:hidden}.search-assist[hidden]{display:none}
.assist-kicker{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;padding:10px 12px 5px}
.assist-suggestions{padding:0 7px 6px}.assist-suggestions button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--text);text-align:left;padding:7px 8px;border-radius:8px;cursor:pointer}.assist-suggestions button:hover{background:var(--surface-soft)}
.assist-recipes{border-top:1px solid var(--line);padding:0 7px 7px}.assist-recipes-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.assist-recipes-head button{border:0;background:transparent;color:var(--accent);font-weight:800;cursor:pointer;padding:8px 5px}
.assist-recipe{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;padding:8px 6px;cursor:pointer;color:var(--text)}.assist-recipe:first-of-type{border-top:0}.assist-recipe:hover{background:var(--surface-soft)}
.assist-thumb{width:48px;height:42px;border-radius:8px;background-size:cover;background-position:center;background-color:var(--surface-soft)}.assist-recipe-copy{display:grid;gap:1px}.assist-recipe-copy b{font-size:14px}.assist-recipe-copy small{color:var(--muted);font-size:11px}.assist-arrow{font-size:23px;color:var(--muted);padding-right:5px}
.search-no-results{display:grid;gap:2px;padding:16px}.search-no-results span{color:var(--muted);font-size:12px}
.search-attention{animation:searchPanelPulse .8s ease}@keyframes searchPanelPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 35%,transparent)}45%{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 12%,transparent)}100%{box-shadow:0 12px 34px #17201c0b}}
@media(max-width:760px){.explore-head{align-items:flex-start}.search-summary{display:none}.search2-row{grid-template-columns:1fr}.more-filters-btn{min-height:44px}.search-assist{left:12px;right:12px;top:124px}.filter-status-actions{justify-content:flex-start}.explore-head h2{font-size:30px}}
@media(max-width:520px){.explore-head{display:block}.search2-shell{padding:0 14px}.search2-panel{padding:9px}.search-assist{left:9px;right:9px;top:120px}.assist-recipe{grid-template-columns:42px minmax(0,1fr) auto}.assist-thumb{width:42px;height:38px}}
@media(prefers-reduced-motion:reduce){.search-attention{animation:none}.more-filters-btn .chev{transition:none}}

/* V1.6.4B1.3 — final surface polish before Phase A freeze */
.search2-search-col{position:relative;min-width:0}
.search2-box{cursor:text}
.search2-box input{flex:1 1 auto!important;width:100%!important;min-width:0!important;outline:none!important;-webkit-appearance:none;appearance:none}
.search2-box input:focus,.search2-box input:focus-visible{outline:none!important;box-shadow:none!important}
.search2-box input::-webkit-search-decoration,.search2-box input::-webkit-search-cancel-button,.search2-box input::-webkit-search-results-button,.search2-box input::-webkit-search-results-decoration{-webkit-appearance:none}
.search2-actions{display:flex;gap:8px;align-items:stretch}
.search2-row{grid-template-columns:minmax(0,1fr) auto}
.search-assist{left:0;right:0;top:calc(100% - 1px);border-radius:0 0 14px 14px}
.filter-clear-all.top-clear{display:inline-flex;align-items:center;justify-content:center;min-width:96px;padding:0 15px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:850;cursor:pointer}
.filter-clear-all.top-clear:hover{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.filter-clear-all.top-clear[hidden]{display:none}
.search-summary{min-width:126px;text-align:center;align-self:center;padding:9px 13px}
.collection-empty{grid-column:1/-1;padding:34px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.collection-empty h2{margin:0 0 8px}.collection-empty p{color:var(--muted);margin:0 0 12px}.collection-empty .detail{width:auto}
.vegnote{margin-bottom:18px}
button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 72%,#fff);outline-offset:2px}
.filters button:focus-visible,.active-filter-pills button:focus-visible,.more-filters-btn:focus-visible,.filter-clear-all:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.close:hover,.close:focus-visible,#bkClose:hover,#bkClose:focus-visible,#subClose:hover,#subClose:focus-visible,#vwClose:hover,#vwClose:focus-visible,#glClose:hover,#glClose:focus-visible,#finishExitX:hover,#finishExitX:focus-visible,#shClose:hover,#shClose:focus-visible,#doneClose:hover,#doneClose:focus-visible{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 15%,transparent)}
@media(max-width:760px){
  .search2-row{grid-template-columns:1fr}
  .search2-actions{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .search-assist{top:calc(100% - 1px)}
  .filter-clear-all.top-clear{min-height:44px}
}
@media(max-width:430px){.search2-actions{grid-template-columns:1fr}.filter-clear-all.top-clear{width:100%}}

.bk-hero{position:relative}.bk-ai-note{position:absolute;right:10px;bottom:10px;background:rgba(255,255,255,.88);color:#333;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.03em}


/* ═══════════ V1.6.5E · hero + cookbook exemplar pass ═══════════ */
.nav-account{display:inline-flex!important;align-items:center;gap:6px}
.nav-account .nav-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Remembered edition chip uses the existing vegetarian preference system. */
.hero-pref-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:0 0 16px}
.edition-pill{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid #ffffff7a;background:#f2f6efee;color:#183c2c;
  border-radius:999px;padding:8px 13px;font-weight:850;font-size:13px;
  box-shadow:0 7px 24px #0002;backdrop-filter:blur(10px)
}
.edition-pill svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.edition-pill.is-veg{background:#dff0df;color:#235e39;border-color:#dff0df}
.edition-chevron{font-size:14px;line-height:1;margin-left:2px}
.edition-saved{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:12.5px;font-weight:750;text-shadow:0 1px 8px #000a}
.edition-saved svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){
  .hero-pref-row{gap:8px;margin-bottom:12px}
  .edition-pill{padding:7px 11px;font-size:12px}
  .edition-saved{font-size:11.5px}
}

/* Account placeholder: no provider secrets, no local password UI. */
dialog.account-dlg{width:min(520px,92vw);border:1px solid var(--line);border-radius:20px;padding:0;background:var(--surface);color:var(--text);box-shadow:0 28px 90px #0005}
dialog.account-dlg::backdrop{background:#10161299;backdrop-filter:blur(5px)}
.account-in{padding:24px}
.account-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.account-top h2{margin:3px 0 0;font:700 30px/1.1 Georgia,serif}
.account-in>p{color:var(--muted);font-size:15px;line-height:1.55}
.account-in>small{display:block;color:var(--muted);font-size:12.5px;margin-top:12px}
.account-providers{display:grid;gap:9px;margin-top:18px}
.account-providers button{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);padding:11px 12px;text-align:left;color:var(--text)}
.account-providers button:disabled{opacity:.72;cursor:not-allowed}
.provider-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid var(--line);font-weight:900;color:#4267b2}
.provider-mark.fb{background:#4267b2;color:#fff}
.account-providers small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}

/* Real full-bleed cover image for sample/prefilled books. */
.bk-cover-asset{display:block;background:#fff}
.bk-cover-asset .bk-cover-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bk-cover-asset .bk-cover-fallback{display:none;position:absolute;inset:0;place-items:center;padding:70px;text-align:center;font:700 54px/1.05 Georgia,serif;color:#2a2a26;background:#f5efe4}
.bk-cover-asset.asset-error .bk-cover-fallback{display:grid}

/* Expanded cookbook CTA with real clickable sample covers. */
.bookpromo{margin:34px auto 14px}
.bp-in{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(390px,1.12fr) minmax(235px,.68fr);
  gap:34px;align-items:center;
  padding:46px 44px;border-radius:25px;
  background:linear-gradient(115deg,#f6fbff 0%,color-mix(in srgb,var(--accent) 8%,var(--surface)) 54%,var(--surface) 100%);
}
.bp-copy h2{font-size:clamp(33px,3.35vw,49px);margin:.26em 0 .35em}
.bp-copy p{font-size:16.5px;line-height:1.55;max-width:48ch;margin-bottom:22px}
.bp-shelf-wrap{min-width:0;text-align:center}
.bp-shelf{
  display:flex;align-items:flex-end;justify-content:center;
  min-height:330px;padding:18px 4px 5px;overflow:visible
}
.bp-book{
  width:clamp(128px,11.2vw,176px);margin:0 -9px;
  border:0;background:transparent;padding:0;cursor:pointer;position:relative;
  transition:transform .25s ease,filter .25s ease;filter:drop-shadow(0 18px 22px #0003)
}
.bp-book img{display:block;width:100%;height:auto;aspect-ratio:1055/1491;object-fit:cover;border-radius:3px 8px 8px 3px;background:#fff}
.bp-book:nth-child(1){transform:rotate(-6deg) translateY(13px);z-index:1}
.bp-book:nth-child(2){transform:translateY(-9px);z-index:3}
.bp-book:nth-child(3){transform:rotate(6deg) translateY(12px);z-index:2}
.bp-book:hover,.bp-book:focus-visible{transform:translateY(-18px) rotate(0)!important;z-index:6;filter:drop-shadow(0 24px 30px #0004);outline:none}
.bp-book:focus-visible img{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 45%,transparent)}
.bp-shelf-note{color:var(--muted);font-size:12px;font-weight:750;margin-top:4px}
.bp-features{display:grid;gap:13px}
.bp-feature{display:grid;grid-template-columns:38px 1fr;align-items:start;gap:11px}
.bp-feature>svg{width:32px;height:32px;padding:6px;border-radius:10px;background:var(--accent-soft);color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bp-feature span{display:block;min-width:0}
.bp-feature b{display:block;font-size:14px;line-height:1.25;color:var(--text)}
.bp-feature small{display:block;margin-top:3px;color:var(--muted);font-size:12.5px;line-height:1.35}

@media(max-width:1120px){
  .bp-in{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:28px;padding:38px 30px}
  .bp-features{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:6px}
  .bp-shelf{min-height:300px}
  .bp-book{width:clamp(122px,17vw,170px)}
}
@media(max-width:760px){
  .bp-in{grid-template-columns:1fr;padding:28px 20px;gap:23px}
  .bp-shelf-wrap{order:-1}
  .bp-shelf{min-height:250px;overflow:hidden;padding-top:12px}
  .bp-book{width:min(30vw,154px);margin:0 -7px}
  .bp-features{grid-column:auto;grid-template-columns:1fr;gap:10px}
  .bp-copy h2{font-size:34px}
}
@media(max-width:480px){
  .bp-shelf{min-height:214px}
  .bp-book{width:31vw;margin:0 -6px}
  .bp-copy h2{font-size:30px}
  .bp-actions{display:grid;grid-template-columns:1fr}
  .bp-actions .primary,.bp-ghost,.bp-link{width:100%;text-align:center}
}

/* Mobile menu remains compact; account is simply another menu item there. */
@media(max-width:760px){.nav-account{display:flex!important}}


/* ═══════════ V1.6.5E1 · recipe actions + custom cover hotfix ═══════════ */
.card{position:relative}
.favbtn,.bookbtn{
  z-index:8!important;
  color:#203129!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(38,58,48,.22)!important;
  box-shadow:0 2px 9px rgba(0,0,0,.14);
}
.favbtn svg,.bookbtn svg{
  display:block!important;width:19px!important;height:19px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
.favbtn.active,.bookbtn.active{background:var(--accent)!important;color:#fff!important;border-color:var(--accent)!important}
.favbtn.active svg{fill:currentColor!important}
.favbtn:hover,.bookbtn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.18)}
.mact svg{display:block}

/* User-supplied finished cover image. */
.bk-owncover{
  margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:13px;
  background:var(--surface-soft);display:grid;gap:10px
}
.bk-owncover-copy b{display:block;font-size:14px}
.bk-owncover-copy small{display:block;margin-top:4px;color:var(--muted);font-size:11.5px;line-height:1.45}
.bk-owncover-actions{display:flex;gap:7px;flex-wrap:wrap}
.bk-owncover-state{display:grid;grid-template-columns:54px 1fr;align-items:center;gap:10px;padding:8px;border-radius:10px;background:var(--surface)}
.bk-owncover-state img{width:54px;height:76px;object-fit:cover;border-radius:5px;border:1px solid var(--line)}
.bk-owncover-state span{min-width:0}
.bk-owncover-state b{display:block;font-size:12.5px}
.bk-owncover-state small{display:block;color:var(--muted);font-size:10.5px;margin-top:3px;line-height:1.35}
.bk-custom-sw{background-size:cover!important;background-position:center!important}

/* Slightly stronger visual weight in the two right-hand cookbook columns. */
@media(min-width:1121px){
  .bp-in{grid-template-columns:minmax(0,.96fr) minmax(440px,1.22fr) minmax(275px,.76fr)}
  .bp-book{width:clamp(145px,12vw,188px)}
  .bp-feature b{font-size:15px}
  .bp-feature small{font-size:13px}
  .bp-feature>svg{width:35px;height:35px}
}


/* ═══════════ V1.6.5E2 · cookbook CTA layout repair ═══════════ */
/*
  Desktop/tablet:
    [ copy ][ clickable sample books ]
    [      3 compact feature cells       ]

  Mobile:
    copy
    books
    features stacked vertically

  This deliberately removes the unstable third desktop column introduced in E.
*/
@media(min-width:761px){
  .bp-in{
    grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;
    grid-template-areas:"copy shelf" "features features";
    gap:28px 42px!important;
    align-items:center!important;
    padding:40px 42px 30px!important;
  }
  .bp-copy{grid-area:copy;align-self:center;min-width:0}
  .bp-shelf-wrap{grid-area:shelf;align-self:center;min-width:0}
  .bp-features{
    grid-area:features!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    padding-top:18px!important;
    border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent);
    min-width:0;
  }
  .bp-shelf{
    min-height:270px!important;
    padding:10px 4px 2px!important;
    overflow:visible!important;
  }
  .bp-book{
    width:clamp(118px,10.2vw,154px)!important;
    margin:0 -6px!important;
  }
  .bp-copy h2{
    font-size:clamp(34px,3vw,46px)!important;
    line-height:1.02;
  }
  .bp-copy p{
    font-size:16px!important;
    max-width:47ch;
  }
  .bp-feature{
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    padding:11px 13px;
    border-radius:13px;
    background:color-mix(in srgb,var(--surface) 78%,transparent);
    min-width:0;
  }
  .bp-feature>svg{width:31px!important;height:31px!important}
  .bp-feature b{font-size:14px!important}
  .bp-feature small{font-size:12px!important}
}

/* Narrow tablet keeps the same hierarchy but makes the shelf calmer. */
@media(min-width:761px) and (max-width:980px){
  .bp-in{
    gap:24px 26px!important;
    padding:32px 26px 26px!important;
  }
  .bp-shelf{min-height:235px!important}
  .bp-book{
    width:clamp(105px,13vw,134px)!important;
    margin:0 -6px!important;
  }
  .bp-copy h2{font-size:clamp(31px,4.2vw,39px)!important}
  .bp-copy p{font-size:14.5px!important}
}

/* Mobile: one predictable vertical stack, no side columns. */
@media(max-width:760px){
  .bp-in{
    grid-template-columns:1fr!important;
    grid-template-areas:"copy" "shelf" "features"!important;
    padding:26px 18px!important;
    gap:22px!important;
  }
  .bp-copy{grid-area:copy;min-width:0}
  .bp-shelf-wrap{
    grid-area:shelf!important;
    order:initial!important;
    min-width:0;
  }
  .bp-features{
    grid-area:features!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding-top:4px;
  }
  .bp-shelf{
    min-height:220px!important;
    padding:6px 0 2px!important;
    overflow:visible!important;
  }
  .bp-book{
    width:min(29vw,132px)!important;
    margin:0 -5px!important;
  }
  .bp-feature{
    padding:9px 4px;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:9px!important;
  }
  .bp-feature>svg{width:30px!important;height:30px!important}
  .bp-copy h2{font-size:32px!important;line-height:1.03}
  .bp-copy p{font-size:15px!important}
  .bp-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:9px!important;
  }
  .bp-actions .primary,.bp-ghost{
    width:auto!important;
    flex:1 1 180px;
    text-align:center;
  }
  .bp-actions .bp-link{
    width:100%!important;
    text-align:left!important;
  }
}
@media(max-width:430px){
  .bp-shelf{min-height:194px!important}
  .bp-book{width:30vw!important;margin:0 -5px!important}
  .bp-copy h2{font-size:29px!important}
}


/* ═══════════ V1.6.5E3 · compact cookbook CTA ═══════════ */
/*
  Target: the accepted low-profile mockup.
  Desktop = copy | books | features.
  Tablet = copy/books + compact feature row.
  Mobile = all three sections stacked vertically.
*/
.bookpromo{margin:28px auto 14px!important}
@media(min-width:1050px){
  .bp-in{
    display:grid!important;
    grid-template-columns:minmax(0,1.05fr) minmax(330px,.92fr) minmax(245px,.72fr)!important;
    grid-template-areas:"copy shelf features"!important;
    gap:28px!important;
    align-items:center!important;
    min-height:0!important;
    padding:28px 34px!important;
  }
  .bp-copy{grid-area:copy!important;align-self:center!important;min-width:0}
  .bp-shelf-wrap{grid-area:shelf!important;align-self:center!important;min-width:0}
  .bp-features{
    grid-area:features!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:13px!important;
    padding:0!important;
    border:0!important;
    align-self:center!important;
  }
  .bp-copy h2{
    margin:.22em 0 .35em!important;
    font-size:clamp(32px,2.7vw,43px)!important;
    line-height:1.02!important;
    max-width:14ch;
  }
  .bp-copy p{
    margin:0 0 18px!important;
    max-width:39ch!important;
    font-size:14.5px!important;
    line-height:1.48!important;
  }
  .bp-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:9px!important;
  }
  .bp-actions .primary,.bp-actions .bp-ghost{
    width:auto!important;
    padding:11px 17px!important;
    font-size:13px!important;
  }
  .bp-shelf{
    min-height:225px!important;
    padding:4px 0!important;
    overflow:visible!important;
  }
  .bp-book{
    width:clamp(108px,9.2vw,138px)!important;
    margin:0 -5px!important;
  }
  .bp-book:nth-child(1){transform:rotate(-5deg) translateY(8px)!important}
  .bp-book:nth-child(2){transform:translateY(-5px)!important}
  .bp-book:nth-child(3){transform:rotate(5deg) translateY(8px)!important}
  .bp-feature{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    padding:0!important;
    background:transparent!important;
    border-radius:0!important;
    min-width:0;
  }
  .bp-feature>svg{
    width:32px!important;height:32px!important;padding:6px!important;
    border-radius:9px!important;
  }
  .bp-feature b{font-size:13px!important;line-height:1.2!important}
  .bp-feature small{font-size:11.5px!important;line-height:1.3!important;margin-top:2px!important}
}

/* Tablet: keep it compact without forcing the narrow third column. */
@media(min-width:761px) and (max-width:1049px){
  .bp-in{
    grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)!important;
    grid-template-areas:"copy shelf" "features features"!important;
    gap:20px 26px!important;
    padding:26px 28px!important;
  }
  .bp-copy{grid-area:copy!important}
  .bp-shelf-wrap{grid-area:shelf!important}
  .bp-features{
    grid-area:features!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
    padding-top:14px!important;
    border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
  }
  .bp-copy h2{font-size:34px!important;line-height:1.02!important;margin:.2em 0 .32em!important}
  .bp-copy p{font-size:14px!important;line-height:1.45!important;margin-bottom:16px!important}
  .bp-shelf{min-height:210px!important;padding:2px 0!important}
  .bp-book{width:clamp(100px,13vw,128px)!important;margin:0 -5px!important}
  .bp-feature{padding:8px 9px!important;background:color-mix(in srgb,var(--surface) 76%,transparent)!important}
}

/* Mobile: copy, then books, then the three feature rows. */
@media(max-width:760px){
  .bp-in{
    grid-template-columns:1fr!important;
    grid-template-areas:"copy" "shelf" "features"!important;
    gap:18px!important;
    padding:22px 18px!important;
  }
  .bp-copy{grid-area:copy!important}
  .bp-shelf-wrap{grid-area:shelf!important}
  .bp-features{
    grid-area:features!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:0!important;
    border:0!important;
  }
  .bp-copy h2{font-size:29px!important;line-height:1.02!important;margin:.18em 0 .32em!important}
  .bp-copy p{font-size:14px!important;line-height:1.45!important;margin:0 0 15px!important}
  .bp-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
  .bp-actions .primary,.bp-actions .bp-ghost{width:auto!important;flex:1 1 160px!important}
  .bp-shelf{min-height:190px!important;padding:0!important;overflow:visible!important}
  .bp-book{width:min(29vw,122px)!important;margin:0 -5px!important}
  .bp-feature{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    gap:9px!important;
    padding:5px 0!important;
    background:transparent!important;
  }
  .bp-feature>svg{width:30px!important;height:30px!important}
}


/* ═══════════ V1.6.5E4 · photo-cover typography controls ═══════════ */
.bk-cover-layout{
  margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:13px;
  background:var(--surface-soft)
}
.bk-cover-layout[hidden]{display:none!important}
.bk-cover-layout-head{margin-bottom:10px}
.bk-cover-layout-head b{display:block;font-size:14px}
.bk-cover-layout-head small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:3px}
.bk-cover-layout-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bk-cover-layout-grid .bk-fld{margin:0}
.bk-cover-custom-colour{grid-column:1/-1}
.bk-cover-custom-colour input[type=color]{
  width:100%;height:42px;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--surface)
}
@media(max-width:520px){.bk-cover-layout-grid{grid-template-columns:1fr}}

.bk-cover.bk-photo-cover{
  position:relative;display:block!important;overflow:hidden;background:#171a18;color:var(--cover-text,#fff)
}
.bk-photo-cover .bk-cimg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block
}
.bk-photo-vignette{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.07),transparent 32%,transparent 68%,rgba(0,0,0,.12))
}
.bk-photo-textblock{
  position:absolute;left:52px;right:52px;z-index:2;
  color:var(--cover-text,#fff);
  padding:22px 26px;border-radius:15px;
  background:color-mix(in srgb,var(--cover-panel,#101412) var(--cover-panel-pct,55%),transparent);
  backdrop-filter:blur(1.5px);
  text-align:center
}
.bk-photo-textblock .bk-ct{color:inherit;text-shadow:0 2px 14px rgba(0,0,0,.28)}
.bk-photo-textblock .bk-rule{width:72px;height:2px;margin:16px auto;background:currentColor;opacity:.62}
.bk-photo-textblock .bk-ca{
  color:inherit;font-size:22px;font-style:italic;
  font-family:var(--bk-head,Georgia,serif);text-shadow:0 2px 10px rgba(0,0,0,.22)
}
.bk-photo-pos-top .bk-photo-title{top:64px;bottom:auto}
.bk-photo-pos-bottom .bk-photo-title{bottom:86px;top:auto}
.bk-photo-pos-centre .bk-photo-title{top:50%;bottom:auto;transform:translateY(-50%)}
.bk-photo-pos-split .bk-photo-title{top:64px;bottom:auto}
.bk-photo-pos-split .bk-photo-author{top:auto;bottom:86px;padding-top:18px;padding-bottom:18px}
.bk-photo-pos-split .bk-photo-author .bk-ca{font-size:24px}
.bk-photo-cover .bk-cf{
  z-index:3;color:var(--cover-text,#fff)!important;text-shadow:0 1px 8px rgba(0,0,0,.55)
}


/* ═══════════ V1.6.5E5 · accepted cookbook CTA + advanced book controls ═══════════ */

.bp-free{
  display:inline-flex;align-items:center;gap:7px;
  margin:3px 0 16px;
  color:var(--accent);
  font:900 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.11em
}
.bp-free span{opacity:.45}

/* The accepted CTA: compact top row plus one feature strip. */
@media(min-width:1050px){
  .bookpromo{margin:28px auto 14px!important}
  .bp-in{
    display:grid!important;
    grid-template-columns:minmax(0,.82fr) minmax(500px,1.18fr)!important;
    grid-template-areas:"copy shelf" "features features"!important;
    gap:18px 34px!important;
    align-items:center!important;
    padding:30px 38px 22px!important;
    min-height:0!important
  }
  .bp-copy{grid-area:copy!important}
  .bp-shelf-wrap{grid-area:shelf!important;min-width:0}
  .bp-features{
    grid-area:features!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    padding-top:18px!important;
    border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)!important
  }
  .bp-copy h2{
    max-width:12ch!important;
    margin:.18em 0 .28em!important;
    font-size:clamp(35px,3.25vw,50px)!important;
    line-height:1.01!important
  }
  .bp-copy p{
    max-width:38ch!important;margin:0 0 12px!important;
    font-size:14.5px!important;line-height:1.46!important
  }
  .bp-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important}
  .bp-actions .primary,.bp-actions .bp-ghost{
    width:auto!important;padding:11px 17px!important;font-size:13px!important
  }
  .bp-shelf{
    height:250px!important;min-height:250px!important;
    position:relative!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    overflow:visible!important;padding:0 8px!important
  }
  .bp-world-book{
    position:absolute!important;
    width:128px!important;
    margin:0!important;
    border:0!important;background:transparent!important;padding:0!important;
    cursor:pointer!important;
    filter:drop-shadow(0 16px 22px rgba(0,0,0,.22))!important;
    transition:transform .16s ease,filter .16s ease!important;
    transform-origin:50% 55%!important
  }
  .bp-world-book img{
    display:block;width:100%;height:auto;aspect-ratio:1055/1491;
    object-fit:cover;border-radius:3px 8px 8px 3px
  }
  .bp-world-book:nth-child(1){left:7%;transform:rotate(-7deg) scale(.90)!important;z-index:1}
  .bp-world-book:nth-child(2){left:25%;transform:rotate(-3deg) scale(.96)!important;z-index:2}
  .bp-world-book:nth-child(3){left:43%;transform:rotate(0deg) scale(1.02)!important;z-index:4}
  .bp-world-book:nth-child(4){left:61%;transform:rotate(3deg) scale(.96)!important;z-index:2}
  .bp-world-book:nth-child(5){left:79%;transform:rotate(7deg) scale(.90)!important;z-index:1}
  .bp-world-book:hover,.bp-world-book:focus-visible{
    transform:translateY(-7px) rotate(0deg) scale(1.10)!important;
    z-index:20!important;
    filter:drop-shadow(0 22px 30px rgba(0,0,0,.30))!important;
    outline:none!important
  }
  .bp-feature{
    display:grid!important;grid-template-columns:38px 1fr!important;
    gap:10px!important;align-items:center!important;
    padding:8px 26px!important;background:transparent!important;border-radius:0!important
  }
  .bp-feature+.bp-feature{border-left:1px solid color-mix(in srgb,var(--line) 78%,transparent)}
  .bp-feature>svg{width:34px!important;height:34px!important}
  .bp-feature b{font-size:14px!important}.bp-feature small{font-size:12px!important}
}
@media(min-width:761px) and (max-width:1049px){
  .bp-in{
    grid-template-columns:minmax(0,.86fr) minmax(370px,1.14fr)!important;
    grid-template-areas:"copy shelf" "features features"!important;
    padding:26px!important;gap:18px 24px!important
  }
  .bp-shelf{height:220px!important;min-height:220px!important;position:relative!important;overflow:visible!important}
  .bp-world-book{position:absolute!important;width:112px!important;margin:0!important}
  .bp-world-book:nth-child(1){left:4%;transform:rotate(-7deg) scale(.88)!important}
  .bp-world-book:nth-child(2){left:23%;transform:rotate(-3deg) scale(.94)!important}
  .bp-world-book:nth-child(3){left:42%;transform:scale(1)!important;z-index:4}
  .bp-world-book:nth-child(4){left:61%;transform:rotate(3deg) scale(.94)!important}
  .bp-world-book:nth-child(5){left:80%;transform:rotate(7deg) scale(.88)!important}
  .bp-world-book:hover,.bp-world-book:focus-visible{transform:translateY(-6px) scale(1.08)!important;z-index:20!important}
  .bp-world-book img{width:100%;display:block;aspect-ratio:1055/1491;object-fit:cover;border-radius:3px 7px 7px 3px}
  .bp-features{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .bp-in{
    grid-template-columns:1fr!important;
    grid-template-areas:"copy" "shelf" "features"!important;
    gap:17px!important;padding:23px 18px!important
  }
  .bp-shelf{grid-area:shelf!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;min-height:0!important;height:auto!important;padding:6px 0!important;overflow:visible!important}
  .bp-world-book{position:relative!important;width:100%!important;margin:0!important;transform:none!important}
  .bp-world-book img{display:block;width:100%;aspect-ratio:1055/1491;object-fit:cover;border-radius:2px 5px 5px 2px}
  .bp-world-book:hover,.bp-world-book:focus-visible{transform:translateY(-4px) scale(1.04)!important;z-index:10!important}
  .bp-features{grid-area:features!important;grid-template-columns:1fr!important;gap:7px!important}
  .bp-feature{padding:7px 0!important}
}

/* Studio Basic / Advanced tabs */
.bk-mode-tabs{
  position:sticky;top:0;z-index:6;
  display:grid;grid-template-columns:1fr 1fr;gap:4px;
  padding:10px 10px 8px;background:var(--surface);border-bottom:1px solid var(--line)
}
.bk-mode-tabs button{
  border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);
  padding:8px 10px;font-size:11px;font-weight:850
}
.bk-mode-tabs button.on{background:var(--accent);border-color:var(--accent);color:#fff}
.bk-mode-pane[hidden]{display:none!important}
.bk-help{display:block;color:var(--muted);font-size:10.5px;line-height:1.4;margin-top:5px}
.bk-legal-preview{
  padding:11px;border-radius:11px;background:#f8f5ed;border:1px solid #e4d9c5;
  color:#62553e;font-size:10.5px;line-height:1.45;margin-bottom:10px
}
.bk-legal-preview b{display:block;color:#42382b;margin-bottom:3px}
.bk-rights-status{
  margin-top:9px;padding:9px 10px;border-radius:10px;background:var(--surface-soft);
  color:var(--muted);font-size:10.5px;line-height:1.4
}

/* Advanced book pages */
.bk-titlepage,.bk-preface,.bk-rights-page{
  padding:72px 64px;background:#fffdf9;color:#242522;position:relative
}
.bk-titlepage{display:grid;place-items:center;text-align:center}
.bk-titlepage-k{font:800 12px/1 system-ui;letter-spacing:.18em;color:var(--ac);margin-bottom:18px}
.bk-titlepage h1{font:700 54px/1.04 Georgia,serif;margin:0 0 15px}
.bk-titlepage p{font:italic 22px/1.35 Georgia,serif;color:#5d5b55}
.bk-titlepage-isbn{margin-top:36px;color:#777168;font-size:13px}
.bk-preface h2,.bk-rights-page h2{
  font:700 34px/1.1 Georgia,serif;border-bottom:2px solid var(--ac);padding-bottom:12px;margin:0 0 28px
}
.bk-preface p,.bk-rights-page p{font:16px/1.65 Georgia,serif;color:#403f3b}
.bk-preface-note{margin-top:36px;padding:14px;border-left:3px solid var(--ac);background:#f7f5ef;color:#68645b;font-size:13px}
.bk-front-page-no{position:absolute;bottom:28px;right:40px;color:#8b877e;font-size:12px}
.bk-rights-page .bk-lic{margin-top:24px;padding:15px;background:#f6f2e9;border:1px solid #e4dac5;font-size:12px;line-height:1.55}

.bk-back-cover{position:relative;overflow:hidden;background:#25372f;color:var(--back-text,#fff)}
.bk-back-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bk-back-shade{position:absolute;inset:0;background:rgba(0,0,0,.10)}
.bk-back-copy{
  position:absolute;left:54px;right:54px;bottom:70px;
  padding:24px 28px;border-radius:15px;
  color:var(--back-text,#fff);
  background:color-mix(in srgb,var(--back-panel,#171a18) var(--back-op,55%),transparent)
}
.bk-back-copy p{font:18px/1.5 Georgia,serif;margin:0}
.bk-back-isbn{margin-top:20px;font:700 13px/1.3 ui-monospace,monospace;letter-spacing:.04em}

/* Better colour inputs inside Studio */
.bk-cover-custom-colour input[type=color]{
  width:100%;height:42px;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--surface)
}


/* ═══════════ V1.6.5E5.1 · world sample Gallery staging hotfix ═══════════ */
.gl-card.selected{
  position:relative;
  z-index:3;
  border-color:color-mix(in srgb,var(--accent) 68%,var(--line))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent),0 18px 38px rgba(0,0,0,.13)!important;
}
.gl-card.selected::before{
  content:"Selected from homepage";
  position:absolute;top:8px;left:8px;z-index:7;
  padding:5px 8px;border-radius:999px;
  background:var(--accent);color:#fff;
  font:800 9px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.03em;
  box-shadow:0 3px 10px rgba(0,0,0,.16);
}


/* ═══════════ V1.6.5F · gallery density + optional publishing CTA ═══════════ */

/* E5.1 selection chrome is intentionally retired. */
.gl-card.selected{border-color:initial!important;box-shadow:none!important}
.gl-card.selected::before{content:none!important;display:none!important}

/* Gallery controls */
.gl-filters{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px 18px!important
}
.gl-filter-chips{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.gl-density{
  display:flex;align-items:center;gap:4px;margin-left:auto;padding:3px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);
  white-space:nowrap
}
.gl-density>span{
  padding:0 6px 0 7px;color:var(--muted);font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.06em
}
.gl-density button{
  border:0;background:transparent;border-radius:999px;padding:6px 9px;
  font-size:10.5px;font-weight:800;color:var(--muted)
}
.gl-density button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 5px #00000010}

.gl-grid[data-density="spacious"]{
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;
  gap:34px 30px!important;padding:30px 28px 48px!important
}
.gl-grid[data-density="comfortable"]{
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;
  gap:26px 22px!important;padding:24px 22px 42px!important
}
.gl-grid[data-density="compact"]{
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;
  gap:18px 16px!important;padding:20px 18px 36px!important
}
.gl-grid[data-density="compact"] .gl-card{gap:7px}
.gl-grid[data-density="compact"] .gl-info h3{font-size:15.5px}
.gl-grid[data-density="compact"] .gl-info p{font-size:12px;margin:2px 0 5px}
.gl-grid[data-density="compact"] .origin-badge,
.gl-grid[data-density="compact"] .vbadge{font-size:10px;padding:3px 7px}
.gl-grid[data-density="compact"] .gl-actions{gap:5px}
.gl-grid[data-density="compact"] .bk-btn.sm{padding:6px 9px;font-size:10px}
.gl-grid[data-density="compact"] .gl-report{font-size:10.5px}
.gl-grid[data-density="spacious"] .gl-info h3{font-size:20px}
.gl-grid[data-density="spacious"] .gl-info p{font-size:14.5px}

/* Separate, low-pressure publishing CTA */
.publishing-teaser{max-width:var(--content);margin:14px auto 8px;padding:0 22px}
.publishing-teaser-in{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;
  padding:18px 22px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));
  border-radius:16px;
  background:linear-gradient(100deg,color-mix(in srgb,var(--accent) 6%,var(--surface)),var(--surface) 72%)
}
.publishing-teaser .eyebrow{
  color:var(--accent);font:800 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.13em
}
.publishing-teaser h2{
  margin:5px 0 5px;font:700 clamp(21px,2.1vw,30px)/1.08 Georgia,serif;
  letter-spacing:-.015em
}
.publishing-teaser p{margin:0;max-width:72ch;color:var(--muted);font-size:13px;line-height:1.48}
.publishing-teaser-actions{
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:235px
}
.publishing-teaser-btn{
  border:1px solid var(--line);background:var(--surface);color:var(--text);
  border-radius:999px;padding:10px 14px;font-size:12px;font-weight:850
}
.publishing-teaser-btn:hover{background:var(--hover)}
.publishing-teaser-actions span{font-size:10.5px;color:var(--muted)}
.publish-teaser-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.publish-teaser-grid>div{
  padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)
}
.publish-teaser-grid b{display:block;font-size:13px}
.publish-teaser-grid small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}
.publish-teaser-note{
  padding:11px 12px;border-radius:10px;background:#fff8ea;border:1px solid #ead9bb;color:#6d5b3f
}

@media(max-width:760px){
  .gl-filters{align-items:flex-start!important}
  .gl-density{width:100%;margin-left:0;justify-content:center}
  .gl-grid[data-density="spacious"],
  .gl-grid[data-density="comfortable"],
  .gl-grid[data-density="compact"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:18px 14px 34px!important
  }
  .publishing-teaser-in{grid-template-columns:1fr;gap:13px;padding:16px}
  .publishing-teaser-actions{align-items:flex-start;min-width:0}
  .publish-teaser-grid{grid-template-columns:1fr}
}


/* ═══════════ V1.6.5F1 · header + cookbook CTA visual hotfix ═══════════ */

/* Product header */
.site-head{
  min-height:68px;
  padding-top:10px!important;
  padding-bottom:10px!important;
  gap:24px!important;
}
.world-table-brand{gap:11px!important;flex:0 0 auto}
.world-table-brand .system-logo-img{
  width:38px!important;height:38px!important;
  filter:drop-shadow(0 2px 7px rgba(10,120,120,.16))!important;
}
.world-table-brand .system-copy b{
  display:block;
  font:700 23px/1 Georgia,"Times New Roman",serif!important;
  letter-spacing:-.015em!important;
  color:var(--text)
}
.world-table-brand .system-copy small{
  margin-top:3px!important;
  font-size:9px!important;
  line-height:1.1!important;
  letter-spacing:.12em!important;
  text-transform:uppercase;
  color:var(--muted)
}

.menu{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:15px!important;
  min-width:0
}
.menu-primary,.menu-utility{display:flex;align-items:center;gap:4px}
.menu-primary{min-width:0}
.menu-utility{padding-left:10px;border-left:1px solid var(--line)}
.menu a,.menu button{
  padding:8px 9px!important;
  font-size:12.5px!important;
  white-space:nowrap
}
.menu .nav-add-recipe{
  background:var(--accent-soft)!important;
  color:var(--accent)!important;
  padding-left:13px!important;padding-right:13px!important
}
.nav-icon-label{display:inline-flex!important;align-items:center!important;gap:6px!important}
.nav-icon-label .nav-icon{width:17px;height:17px}
.nav-icon-label #favCount,.nav-book #bookCount{
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  display:inline-grid;place-items:center;
  background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:850
}
.nav-more-wrap{position:relative}
.nav-more-btn{display:inline-flex!important;align-items:center!important;gap:4px!important}
.nav-more-menu{
  display:none;position:absolute;right:0;top:calc(100% + 8px);
  width:178px;padding:6px;
  border:1px solid var(--line);border-radius:12px;
  background:var(--surface);box-shadow:0 18px 50px rgba(0,0,0,.16);
  z-index:120
}
.nav-more-menu.open{display:grid}
.nav-more-menu button{
  width:100%;text-align:left!important;border-radius:8px!important;
  padding:9px 10px!important
}

/* Hero: clean continuation below the header, no content overlap. */
@media(min-width:761px){
  .hero{min-height:clamp(410px,38vw,520px)!important;align-items:center!important}
  .hero-grid{padding:48px 0 42px!important}
  .hero-copy{max-width:760px!important}
  .hero h1{
    white-space:nowrap;
    font-size:clamp(54px,5.9vw,82px)!important;
    line-height:.96!important;
    margin:.12em 0 .16em!important
  }
  .hero p{font-size:19px!important}
  .hero .source-note{font-size:13.5px!important;max-width:68ch}
  .hero-actions{margin-top:19px!important}
}

/* Cookbook card: approved classic two-column top + four-cell feature strip. */
.bookpromo{
  border-radius:24px!important;
  box-shadow:0 16px 42px rgba(22,40,33,.07)!important
}
@media(min-width:1050px){
  .bp-in{
    grid-template-columns:minmax(420px,.82fr) minmax(600px,1.18fr)!important;
    grid-template-areas:"copy shelf" "features features"!important;
    gap:18px 42px!important;
    padding:34px 40px 24px!important
  }
  .bp-copy{align-self:center}
  .bp-copy h2{
    max-width:13ch!important;
    font-size:clamp(40px,3.5vw,55px)!important;
    line-height:.99!important;
    margin:.16em 0 .26em!important
  }
  .bp-copy p{
    max-width:42ch!important;
    font-size:15.5px!important;
    line-height:1.46!important;
    margin-bottom:10px!important
  }
  .bp-free{margin:4px 0 17px!important}
  .bp-shelf{
    height:286px!important;min-height:286px!important;
    padding:0 6px!important
  }
  .bp-world-book{width:142px!important}
  .bp-world-book:nth-child(1){left:3%!important}
  .bp-world-book:nth-child(2){left:22%!important}
  .bp-world-book:nth-child(3){left:41%!important}
  .bp-world-book:nth-child(4){left:60%!important}
  .bp-world-book:nth-child(5){left:79%!important}
  .bp-features{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    padding-top:18px!important
  }
  .bp-feature{padding:9px 22px!important}
  .bp-feature b{font-size:13.5px!important}
  .bp-feature small{font-size:11.5px!important}
}

/* Tablet keeps two upper columns; feature strip becomes 2x2. */
@media(min-width:761px) and (max-width:1049px){
  .bp-in{
    grid-template-columns:minmax(0,.86fr) minmax(360px,1.14fr)!important;
    grid-template-areas:"copy shelf" "features features"!important;
    padding:28px!important;gap:18px 24px!important
  }
  .bp-features{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bp-feature:nth-child(3){border-left:0!important}
}

/* Publishing is banked for later; it is intentionally not shown in F1. */
.publishing-teaser{display:none!important}

/* Mobile header remains a single menu sheet. */
@media(max-width:760px){
  .site-head{min-height:60px;padding:8px 14px!important}
  .world-table-brand .system-logo-img{width:32px!important;height:32px!important}
  .world-table-brand .system-copy b{font-size:18px!important}
  .world-table-brand .system-copy small{font-size:8px!important}
  .menu{
    display:none!important;
    position:absolute!important;right:14px!important;top:58px!important;
    width:min(290px,calc(100vw - 28px));padding:8px!important;
    background:var(--surface)!important;border:1px solid var(--line)!important;
    border-radius:14px!important;box-shadow:0 18px 48px #0003!important
  }
  .menu.open{display:grid!important}
  .menu-primary,.menu-utility{display:grid!important;gap:2px!important}
  .menu-utility{padding:6px 0 0!important;margin-top:6px;border-left:0!important;border-top:1px solid var(--line)}
  .menu a,.menu button{width:100%!important;text-align:left!important;justify-content:flex-start!important}
  .nav-more-menu{
    position:static!important;width:auto!important;margin-top:2px!important;
    box-shadow:none!important;border:0!important;background:var(--surface-soft)!important
  }
  .nav-more-menu.open{display:grid!important}
  .hero h1{white-space:normal!important}
  .bp-features{grid-template-columns:1fr!important}
}


/* ═══════════ V1.6.5F1.1 · World Table logo + cookbook shelf tightening ═══════════ */

/* Header: give the detailed World Table chef/globe mark enough room to read. */
@media(min-width:761px){
  .site-head{
    min-height:78px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
  .world-table-brand .system-logo-img{
    width:54px!important;
    height:54px!important;
    object-fit:contain!important;
    flex:0 0 54px!important;
  }
  .world-table-brand .system-copy b{
    font-size:24px!important;
  }
  .world-table-brand .system-copy small{
    font-size:9.5px!important;
    letter-spacing:.07em!important;
    text-transform:none!important;
    white-space:nowrap!important;
  }
}

/* Mobile was already accepted: only swap the artwork, keep proportions modest. */
@media(max-width:760px){
  .world-table-brand .system-logo-img{
    width:36px!important;
    height:36px!important;
    object-fit:contain!important;
  }
}

/* The visible card is .bp-in. Do not add another shadow/container outside it. */
.bookpromo{
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* Keep one clean card surface and close the excess air around the five books. */
.bp-in{
  box-shadow:0 14px 34px rgba(22,40,33,.055)!important;
}

@media(min-width:1050px){
  .bp-in{
    padding-top:28px!important;
    padding-bottom:21px!important;
    gap:10px 38px!important;
  }
  .bp-shelf-wrap{
    align-self:stretch!important;
    display:flex!important;
    align-items:center!important;
  }
  .bp-shelf{
    width:100%!important;
    height:238px!important;
    min-height:238px!important;
    padding:0!important;
    align-self:center!important;
  }
  .bp-world-book{
    width:164px!important;
  }
  .bp-world-book:nth-child(1){left:1%!important}
  .bp-world-book:nth-child(2){left:20%!important}
  .bp-world-book:nth-child(3){left:39%!important}
  .bp-world-book:nth-child(4){left:58%!important}
  .bp-world-book:nth-child(5){left:77%!important}
  .bp-world-book:hover,.bp-world-book:focus-visible{
    transform:translateY(-6px) rotate(0deg) scale(1.07)!important;
  }
  .bp-features{
    padding-top:13px!important;
  }
}

/* Tablet: same principle, without disturbing the accepted mobile stack. */
@media(min-width:761px) and (max-width:1049px){
  .bp-in{
    padding-top:24px!important;
    padding-bottom:20px!important;
    gap:13px 22px!important;
  }
  .bp-shelf{
    min-height:212px!important;
    height:212px!important;
    padding:0!important;
  }
  .bp-world-book{
    width:122px!important;
  }
}

/* The support section can explain optional support once; the sole action is in the footer. */
.support-band-copy .support-small{
  margin-top:6px!important;
}


/* ═══════════ V1.6.5F1.2 · presentation wrap copy hierarchy ═══════════ */

/* Header subtitle approved copy. Keep it understated beneath the product name. */
.world-table-brand .system-copy small{
  letter-spacing:.035em!important;
  text-transform:none!important;
}

/* Final cookbook CTA headline hierarchy. */
.bp-title{
  margin:0 0 18px!important;
  max-width:none!important;
  font-family:Georgia,"Times New Roman",serif!important;
  letter-spacing:-.025em!important;
}
.bp-title-main,
.bp-title-sub{
  display:block;
}
.bp-title-main{
  font-size:clamp(39px,3vw,49px);
  line-height:.98;
  font-weight:500;
  white-space:nowrap;
}
.bp-title-main strong{
  font-weight:800;
  letter-spacing:-.035em;
}
.bp-title-sub{
  margin-top:6px;
  font-size:clamp(35px,2.7vw,45px);
  line-height:1;
  font-weight:500;
  white-space:nowrap;
}
.bp-title-heart{
  width:.78em;
  height:.78em;
  margin-left:.12em;
  vertical-align:-.08em;
  fill:var(--accent);
  stroke:var(--accent);
  stroke-width:1.15;
}

.bp-copy p{
  margin-top:0!important;
}

/* Give the enlarged covers breathing room without reintroducing the big blank shelf. */
@media(min-width:1050px){
  .bp-in{
    grid-template-columns:minmax(430px,.80fr) minmax(620px,1.20fr)!important;
    gap:12px 34px!important;
  }
  .bp-copy{
    padding-right:10px;
  }
  .bp-shelf{
    height:244px!important;
    min-height:244px!important;
  }
  .bp-world-book{
    width:168px!important;
  }
  .bp-world-book:nth-child(1){left:0%!important}
  .bp-world-book:nth-child(2){left:19%!important}
  .bp-world-book:nth-child(3){left:38%!important}
  .bp-world-book:nth-child(4){left:57%!important}
  .bp-world-book:nth-child(5){left:76%!important}
}

/* Tablet keeps the same hierarchy but avoids line collisions. */
@media(min-width:761px) and (max-width:1049px){
  .bp-title-main{font-size:36px}
  .bp-title-sub{font-size:32px}
  .bp-title-main,.bp-title-sub{white-space:normal}
}

/* Mobile stays compact and stacked. */
@media(max-width:760px){
  .bp-title{
    margin-bottom:13px!important;
  }
  .bp-title-main{
    font-size:34px;
    white-space:normal;
  }
  .bp-title-sub{
    margin-top:3px;
    font-size:30px;
    white-space:normal;
  }
}


/* ═══════════ V1.6.5F1.3 · cookbook page inspection lightbox ═══════════ */

#vwPages .bk-pv{
  cursor:zoom-in;
  outline:none;
}
#vwPages .bk-pv:focus-visible{
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 42%,transparent),
             0 2px 4px rgba(0,0,0,.12),
             0 14px 34px rgba(0,0,0,.18);
}

dialog.page-lightbox{
  width:100vw;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:#101514;
  color:#fff;
}
dialog.page-lightbox::backdrop{
  background:#060908eF;
  backdrop-filter:blur(4px);
}
.page-lightbox-shell{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 42%,rgba(255,255,255,.055),transparent 42%),
    #101514;
}
.page-lightbox-topbar{
  position:absolute;
  z-index:20;
  left:0;
  right:0;
  top:0;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 12px 8px 18px;
  background:linear-gradient(180deg,rgba(10,14,13,.96),rgba(10,14,13,.78));
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
}
.page-lightbox-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#e9efec;
  font-size:13px;
  font-weight:750;
}
.page-lightbox-controls{
  display:flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
}
.page-lightbox-controls button{
  width:38px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:700 21px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
}
.page-lightbox-controls button:hover,
.page-lightbox-controls button:focus-visible{
  background:rgba(255,255,255,.16);
  outline:none;
}
.page-lightbox-controls output{
  min-width:58px;
  text-align:center;
  color:#dce5e1;
  font:700 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums;
}
.page-lightbox-controls .page-position{
  min-width:46px;
  color:#f4f7f5;
}
.page-lightbox-controls .page-nav-btn{
  font-size:27px;
}
.page-lightbox-controls button:disabled{
  opacity:.32;
  cursor:default;
  background:rgba(255,255,255,.04);
}
.page-control-sep{
  width:1px;
  height:24px;
  margin:0 3px;
  background:rgba(255,255,255,.15);
}
.page-lightbox-controls .page-fit-btn svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.page-lightbox-controls .page-lightbox-close{
  margin-left:5px;
  width:42px;
  font-size:25px;
  background:rgba(255,255,255,.12);
}
.page-lightbox-stage{
  position:absolute;
  inset:0;
  overflow:hidden;
  touch-action:none;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.page-lightbox-stage.dragging{
  cursor:grabbing;
}
.page-lightbox-page{
  position:absolute;
  left:0;
  top:0;
  width:210mm;
  height:297mm;
  transform-origin:0 0;
  will-change:transform;
  outline:none;
  filter:drop-shadow(0 24px 54px rgba(0,0,0,.42));
}
.page-lightbox-page>.bk-page{
  position:absolute;
  inset:0;
  transform:none!important;
  transform-origin:0 0!important;
  box-shadow:none!important;
  pointer-events:none;
}
.page-lightbox-help{
  position:absolute;
  z-index:10;
  left:50%;
  bottom:13px;
  transform:translateX(-50%);
  max-width:calc(100vw - 28px);
  padding:7px 11px;
  border-radius:999px;
  background:rgba(8,12,11,.72);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.72);
  font:600 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  white-space:nowrap;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

@media(max-width:680px){
  .page-lightbox-topbar{
    padding-left:10px;
  }
  .page-lightbox-label{
    display:none;
  }
  .page-lightbox-controls{
    margin-left:auto;
  }
  .page-lightbox-controls button{
    width:36px;
    height:34px;
  }
  .page-lightbox-controls{
    gap:3px;
  }
  .page-lightbox-controls button{
    width:34px;
    height:34px;
  }
  .page-lightbox-controls output{
    min-width:43px;
  }
  .page-lightbox-controls .page-position{
    min-width:38px;
    font-size:11px;
  }
  .page-control-sep{
    margin:0 1px;
  }
  .page-lightbox-help{
    font-size:10px;
    bottom:9px;
  }
}


/* ═══════════ V1.6.5F1.4 · recipe-card whole-surface interaction ═══════════ */

.recipe-card-target{
  cursor:pointer;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background-color .16s ease;
  touch-action:pan-y;
  -webkit-tap-highlight-color:transparent;
}

.recipe-card-target:focus-visible{
  outline:none;
  border-color:color-mix(in srgb,var(--accent) 66%,var(--line));
  box-shadow:
    0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent),
    0 14px 34px rgba(23,32,28,.10);
}

/* Only true mouse/trackpad-style pointers receive hover lift. */
@media(hover:hover) and (pointer:fine){
  .recipe-card-target:hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb,var(--accent) 32%,var(--line));
    box-shadow:0 17px 38px rgba(23,32,28,.11);
  }
  .recipe-card-target .favbtn,
  .recipe-card-target .bookbtn,
  .recipe-card-target .detail{
    cursor:pointer;
  }
}

/* Press feedback disappears as soon as a swipe/scroll is detected. */
.recipe-card-target.is-pressing{
  transform:scale(.996);
  border-color:color-mix(in srgb,var(--accent) 32%,var(--line));
  box-shadow:0 9px 22px rgba(23,32,28,.08);
}

/* Slightly more tolerant targets without visually inflating the icons. */
.recipe-card-target .favbtn,
.recipe-card-target .bookbtn{
  width:40px;
  height:40px;
  top:8px;
  z-index:3;
}
.recipe-card-target .favbtn{right:8px}
.recipe-card-target .bookbtn{right:56px}

/* Touch/tablet target size follows the common 44px minimum. */
@media(pointer:coarse){
  .recipe-card-target .favbtn,
  .recipe-card-target .bookbtn{
    width:44px;
    height:44px;
    top:8px;
  }
  .recipe-card-target .favbtn{right:8px}
  .recipe-card-target .bookbtn{right:60px}
  .recipe-card-target .favbtn svg,
  .recipe-card-target .bookbtn svg{
    pointer-events:none;
  }
  .recipe-card-target.is-pressing{
    transform:scale(.994);
  }
}

/* Prevent sticky desktop-style hover feedback on touch-only devices. */
@media(hover:none){
  .recipe-card-target:hover{
    transform:none;
  }
  .recipe-card-target.is-pressing{
    transform:scale(.994);
  }
}


/* ═══════════ V1.6.5F1.5 · food-led industry footer ═══════════ */

.site-footer{
  position:relative;
  margin-top:44px;
  border-top:0;
  color:var(--muted);
  overflow:hidden;
  background:
    radial-gradient(circle at 14% -18%,color-mix(in srgb,#d6a94e 14%,transparent),transparent 28%),
    radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--accent) 11%,transparent),transparent 30%),
    linear-gradient(180deg,
      color-mix(in srgb,#f1e7d5 72%,var(--surface)) 0,
      color-mix(in srgb,#f8f4eb 82%,var(--surface)) 46%,
      var(--surface) 100%);
}
.site-footer::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:4px;
  background:linear-gradient(90deg,
    color-mix(in srgb,#b8862f 72%,var(--accent)),
    var(--accent) 48%,
    color-mix(in srgb,#b8862f 72%,var(--accent)));
}
.site-footer::after{
  content:"";
  position:absolute;
  inset:4px 0 auto;
  height:120px;
  pointer-events:none;
  opacity:.22;
  background:
    radial-gradient(circle at 16px 18px,color-mix(in srgb,var(--accent) 17%,transparent) 0 1px,transparent 1.5px) 0 0/32px 32px;
  mask-image:linear-gradient(to bottom,#000,transparent);
}
.footer-table-edge{
  position:relative;
  z-index:1;
  max-width:var(--content);
  margin:0 auto;
  padding:22px 22px 0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  color:color-mix(in srgb,#a66f20 68%,var(--accent));
}
.footer-table-edge span{
  height:1px;
  background:linear-gradient(90deg,transparent,currentColor);
}
.footer-table-edge span:last-child{
  background:linear-gradient(90deg,currentColor,transparent);
}
.footer-table-edge i{
  font-style:normal;
  font-size:13px;
}

.footer-in{
  position:relative;
  z-index:2;
  max-width:var(--content);
  margin:0 auto;
  padding:28px 22px 0;
}

.footer-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  padding:0 0 28px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 80%,#cfa24d);
}
.footer-world-brand{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  gap:18px;
  min-width:0;
}
.footer-world-brand img{
  width:82px;
  height:82px;
  object-fit:contain;
  filter:drop-shadow(0 7px 15px rgba(75,55,25,.10));
}
.footer-kicker{
  margin-bottom:5px;
  color:var(--accent);
  font:900 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.15em;
}
.footer-world-brand h2{
  margin:0;
  color:var(--text);
  font:700 clamp(27px,2.45vw,38px)/1.04 Georgia,"Times New Roman",serif;
  letter-spacing:-.025em;
}
.footer-world-brand p{
  margin:7px 0 0;
  max-width:64ch;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}
.footer-stats{
  flex:0 0 auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-stats span{
  display:grid;
  gap:1px;
  min-width:104px;
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--line) 72%,#c99a47);
  border-radius:13px;
  background:color-mix(in srgb,var(--surface) 84%,#fff7e7);
  color:var(--muted);
  font-size:11px;
  box-shadow:0 5px 16px rgba(77,55,26,.035);
}
.footer-stats b{
  color:var(--text);
  font:800 14px/1.15 system-ui,-apple-system,"Segoe UI",sans-serif;
}

.footer-grid{
  display:grid;
  grid-template-columns:.86fr .86fr 1.35fr 1.18fr;
  gap:44px;
  padding:34px 0 36px;
}
.fcol{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  min-width:0;
}
.fcol h4{
  width:100%;
  margin:0 0 6px;
  padding:0 0 10px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 82%,#c99a47);
  color:var(--text);
  font-size:11px;
  font-weight:900;
  letter-spacing:.135em;
  text-transform:uppercase;
}
.fcol p,.fcol a,.fcol .footer-link{
  margin:0;
  font-size:13.5px;
  line-height:1.52;
}
.fcol p{color:var(--muted)}
.fcol a,.footer-link{
  color:color-mix(in srgb,var(--accent) 88%,#173c35);
  font-weight:750;
}
.footer-link{
  padding:1px 0;
  cursor:pointer;
}
.fcol a:hover,.footer-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}
.footer-admin{
  margin-top:5px!important;
  color:var(--muted)!important;
  font-size:11.5px!important;
  font-weight:650!important;
}
.footer-support{
  padding:15px 16px 16px;
  margin-top:-15px;
  border:1px solid color-mix(in srgb,#c99a47 34%,var(--line));
  border-radius:16px;
  background:linear-gradient(145deg,
    color-mix(in srgb,#fff3db 50%,var(--surface)),
    color-mix(in srgb,var(--accent) 4%,var(--surface)));
}
.footer-support h4{
  border-color:color-mix(in srgb,#c99a47 34%,var(--line));
}
.footer-support .coffee{
  margin-top:5px;
  box-shadow:none;
}

.footer-bottom{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.8fr);
  gap:26px 44px;
  margin-top:0;
  padding:20px 0 28px;
  border-top:1px solid color-mix(in srgb,var(--line) 82%,#c99a47);
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}
.footer-legal-primary,
.footer-legal-source{
  display:grid;
  gap:2px;
}
.footer-legal-primary strong{
  color:var(--text);
  font-size:12px;
}
.footer-legal-source{
  text-align:right;
  justify-items:end;
}

@media(max-width:1050px){
  .footer-intro{
    align-items:flex-start;
    flex-direction:column;
  }
  .footer-stats{
    justify-content:flex-start;
  }
  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:32px 38px;
  }
  .footer-support{margin-top:0}
  .footer-bottom{
    grid-template-columns:1fr;
    gap:10px;
  }
  .footer-legal-source{
    text-align:left;
    justify-items:start;
  }
}
@media(max-width:620px){
  .footer-table-edge{padding-top:16px}
  .footer-in{padding-top:22px}
  .footer-world-brand{
    grid-template-columns:64px minmax(0,1fr);
    gap:14px;
  }
  .footer-world-brand img{
    width:64px;
    height:64px;
  }
  .footer-world-brand h2{
    font-size:27px;
  }
  .footer-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .footer-stats span:last-child{
    grid-column:1/-1;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:28px;
    padding-top:30px;
  }
  .footer-bottom{
    padding-bottom:24px;
  }
}


/* ═══════════ V1.6.5F1.5.1 · stable card icon controls ═══════════ */

/* Once a recipe card is hovered, heart/book actions should not make the
   surface or the icon hop. State colour is enough feedback. */
.recipe-card-target .favbtn,
.recipe-card-target .bookbtn{
  transform:none!important;
  transition:
    background-color .12s ease,
    color .12s ease,
    border-color .12s ease,
    box-shadow .12s ease!important;
}
.recipe-card-target .favbtn:hover,
.recipe-card-target .bookbtn:hover,
.recipe-card-target .favbtn:active,
.recipe-card-target .bookbtn:active{
  transform:none!important;
}


/* ═══════════ V1.6.5F1.6 · approved centred-chef footer ═══════════ */

:root{
  --footer-bg:#f4eee2;
  --footer-surface:#fbf7ef;
  --footer-text:#17201d;
  --footer-muted:#69726d;
  --footer-line:#cdbb96;
  --footer-gold:#b4863f;
  --footer-leaf:#778568;
}

/* Coffee belongs to the dedicated support CTA, not the footer. */
.support-band-copy .support-coffee{
  align-self:flex-start;
  margin:1px 0 4px;
  padding:11px 18px;
}
.support-band-copy .support-small{
  margin-top:12px!important;
}

/* Strong, explicit themed support treatment. */
body[data-theme="paper"] .support-band-in,
body[data-theme="light"] .support-band-in{
  background:var(--surface);
}
body[data-theme="dark"] .support-band-in{
  background:var(--surface);
  border-color:var(--line);
}

/* Footer is fully tokenised for Paper / Light / Dark. */
.site-footer{
  position:relative;
  isolation:isolate;
  margin-top:44px;
  overflow:hidden;
  border-top:0;
  color:var(--footer-muted);
  background:
    radial-gradient(circle at 50% 0,
      color-mix(in srgb,var(--footer-gold) 7%,transparent) 0,
      transparent 28%),
    var(--footer-bg);
}
.site-footer::before{
  content:none!important;
}
.site-footer::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.22;
  background:
    radial-gradient(circle at 12% 30%,color-mix(in srgb,var(--footer-leaf) 10%,transparent),transparent 22%),
    radial-gradient(circle at 88% 32%,color-mix(in srgb,var(--footer-leaf) 9%,transparent),transparent 22%);
}

/* Clear stylised line break between page content and footer. */
.footer-break{
  max-width:var(--content);
  margin:0 auto;
  padding:25px 22px 0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  color:var(--footer-gold);
}
.footer-break span{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--footer-line));
}
.footer-break span:last-child{
  background:linear-gradient(90deg,var(--footer-line),transparent);
}
.footer-break i{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  font-style:normal;
  font-size:12px;
}

/* Chef feature block. Foliage is inline SVG, so no extra PNG is required. */
.footer-chef-stage{
  position:relative;
  max-width:var(--content);
  height:255px;
  margin:0 auto -6px;
  overflow:hidden;
}
.footer-foliage{
  position:absolute;
  left:50%;
  bottom:18px;
  width:min(920px,88vw);
  height:auto;
  transform:translateX(-50%);
  color:var(--footer-leaf);
  opacity:.28;
}
.footer-foliage path{
  fill:none;
  stroke:currentColor;
  stroke-width:4;
  stroke-linecap:round;
}
.footer-foliage ellipse{
  fill:currentColor;
  stroke:none;
}
.footer-chef-rule{
  position:absolute;
  left:22px;
  right:22px;
  bottom:48px;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent 0,
    var(--footer-line) 9%,
    var(--footer-line) 39%,
    transparent 44%,
    transparent 56%,
    var(--footer-line) 61%,
    var(--footer-line) 91%,
    transparent 100%
  );
}
.footer-chef{
  position:absolute;
  z-index:2;
  left:50%;
  bottom:-6px;
  width:278px;
  height:278px;
  transform:translateX(-50%);
  object-fit:contain;
  filter:drop-shadow(0 12px 21px color-mix(in srgb,var(--footer-text) 13%,transparent));
}
.footer-chef-gem{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:31px;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  color:var(--footer-gold);
  background:var(--footer-bg);
  font-size:15px;
}

.footer-in{
  position:relative;
  z-index:2;
  max-width:var(--content);
  margin:0 auto;
  padding:0 22px;
}

/* Four clean columns under the centred chef. */
.footer-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:19px 0 34px;
  border-bottom:1px solid var(--footer-line);
}
.fcol{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  padding:0 34px;
  color:var(--footer-muted);
}
.fcol:first-child{padding-left:8px}
.fcol:last-child{padding-right:8px}
.fcol+.fcol::before{
  content:"";
  position:absolute;
  left:0;
  top:1px;
  bottom:0;
  width:1px;
  background:linear-gradient(180deg,transparent,var(--footer-line) 15%,var(--footer-line) 85%,transparent);
}
.footer-col-head{
  width:100%;
  display:grid;
  grid-template-columns:34px 1fr;
  align-items:center;
  gap:10px;
  margin-bottom:5px;
  padding-bottom:10px;
  border-bottom:1px solid color-mix(in srgb,var(--footer-line) 82%,transparent);
}
.footer-col-head svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:var(--footer-gold);
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.fcol h4{
  width:auto;
  margin:0;
  padding:0;
  border:0;
  color:var(--footer-text);
  font:800 16px/1.1 Georgia,"Times New Roman",serif;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.fcol p,.fcol a,.fcol .footer-link{
  margin:0;
  font-size:13.5px;
  line-height:1.5;
}
.fcol a,.fcol .footer-link{
  color:color-mix(in srgb,var(--accent) 88%,var(--footer-text));
  font-weight:720;
}
.footer-link{
  padding:1px 0;
  border:0;
  background:transparent;
  text-align:left;
}
.fcol a:hover,.footer-link:hover{
  color:var(--footer-text);
  text-decoration:underline;
  text-underline-offset:3px;
}
.footer-support{
  margin:0;
  padding-top:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.footer-support h4{
  border:0;
}

/* Copyright / source-rights line remains deliberately separated. */
.footer-bottom{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.8fr);
  gap:11px 44px;
  margin:0;
  padding:18px 0 26px;
  border-top:0;
  color:var(--footer-muted);
  font-size:11.5px;
  line-height:1.5;
}
.footer-legal-primary,
.footer-legal-source{
  display:grid;
  gap:2px;
}
.footer-legal-primary strong{
  color:var(--footer-text);
  font-size:12px;
}
.footer-legal-source{
  text-align:right;
  justify-items:end;
}
.footer-utility{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-top:4px;
  padding-top:9px;
  border-top:1px solid color-mix(in srgb,var(--footer-line) 60%,transparent);
}
.footer-utility .footer-link,
.footer-utility .footer-admin{
  margin:0!important;
  color:var(--footer-muted)!important;
  font-size:10.5px!important;
  font-weight:650!important;
}

/* Dark theme gets the same composition, not a pale footer pasted onto it. */
body[data-theme="dark"] .site-footer{
  box-shadow:inset 0 1px 0 var(--footer-line);
}
body[data-theme="dark"] .footer-chef{
  filter:
    drop-shadow(0 13px 23px rgba(0,0,0,.35))
    saturate(.92)
    brightness(.94);
}
body[data-theme="dark"] .footer-col-head svg{
  color:var(--footer-gold);
}
body[data-theme="dark"] .coffee{
  color:#f6dfb2;
  background:#3a2c14;
  border-color:#6b5428;
  box-shadow:0 2px 0 #6b5428;
}

/* Tablet keeps the chef centrepiece, then moves to a clean 2×2 grid. */
@media(max-width:1050px){
  .footer-chef-stage{
    height:235px;
  }
  .footer-chef{
    width:250px;
    height:250px;
  }
  .footer-foliage{
    width:min(800px,96vw);
  }
  .footer-grid{
    grid-template-columns:1fr 1fr;
    row-gap:34px;
  }
  .fcol{
    padding:0 28px;
  }
  .fcol:first-child{padding-left:14px}
  .fcol:nth-child(3){padding-left:14px}
  .fcol:nth-child(3)::before{display:none}
  .fcol:nth-child(3),
  .fcol:nth-child(4){
    padding-top:2px;
  }
  .footer-bottom{
    grid-template-columns:1fr;
    gap:10px;
  }
  .footer-legal-source{
    text-align:left;
    justify-items:start;
  }
  .footer-utility{
    justify-content:flex-start;
  }
}

/* Mobile becomes a single editorial stack without shrinking the touch targets. */
@media(max-width:620px){
  .site-footer{
    margin-top:34px;
  }
  .footer-break{
    padding:18px 14px 0;
  }
  .footer-chef-stage{
    height:210px;
    margin-bottom:0;
  }
  .footer-chef{
    width:208px;
    height:208px;
    bottom:-4px;
  }
  .footer-foliage{
    width:620px;
    max-width:135vw;
    bottom:13px;
    opacity:.24;
  }
  .footer-chef-rule{
    left:14px;
    right:14px;
    bottom:40px;
  }
  .footer-chef-gem{
    bottom:26px;
  }
  .footer-in{
    padding:0 18px;
  }
  .footer-grid{
    grid-template-columns:1fr;
    padding:10px 0 24px;
    row-gap:0;
  }
  .fcol,
  .fcol:first-child,
  .fcol:nth-child(3),
  .fcol:last-child{
    padding:22px 4px;
  }
  .fcol+.fcol::before{
    left:0;
    right:0;
    top:0;
    bottom:auto;
    width:auto;
    height:1px;
    background:linear-gradient(90deg,transparent,var(--footer-line) 12%,var(--footer-line) 88%,transparent);
  }
  .fcol:nth-child(3)::before{
    display:block;
  }
  .footer-col-head{
    grid-template-columns:38px 1fr;
    padding-bottom:9px;
  }
  .footer-col-head svg{
    width:31px;
    height:31px;
  }
  .fcol h4{
    font-size:17px;
  }
  .fcol a,.fcol .footer-link{
    min-height:34px;
    display:flex;
    align-items:center;
    width:100%;
    font-size:14px;
  }
  .footer-bottom{
    padding:17px 0 24px;
    font-size:11px;
  }
  .footer-utility{
    flex-wrap:wrap;
  }
  .support-band-copy .support-coffee{
    width:100%;
    justify-content:center;
  }
}


/* ═══════════ V1.6.5F1.6.1 · clean footer surface + social strip ═══════════ */

/* Remove the broad radial washes/halo. Decoration is now only the intentional
   SVG foliage + fine rules, so Paper/Light/Dark remain clean and predictable. */
.site-footer{
  background:var(--footer-bg)!important;
}
.site-footer::after{
  content:none!important;
  display:none!important;
}
.footer-chef{
  filter:none!important;
}
body[data-theme="dark"] .footer-chef{
  filter:none!important;
}

.footer-social-label{
  margin-top:4px;
  color:var(--footer-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.footer-socials{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
}
.footer-social{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--footer-line);
  border-radius:50%;
  color:var(--footer-text)!important;
  background:var(--footer-surface);
  text-decoration:none!important;
  transition:transform .12s ease,border-color .12s ease,background-color .12s ease;
}
.footer-social svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#footerFacebook svg path{
  fill:currentColor;
  stroke:none;
}
.footer-social:hover{
  transform:translateY(-1px);
  border-color:var(--footer-gold);
  background:color-mix(in srgb,var(--footer-gold) 8%,var(--footer-surface));
}
.footer-social.is-disabled{
  opacity:.38;
  cursor:default;
}
.footer-social.is-disabled:hover{
  transform:none;
  border-color:var(--footer-line);
  background:var(--footer-surface);
}
@media(pointer:coarse){
  .footer-social{
    width:44px;
    height:44px;
  }
}


/* ═══════════ V1.6.5F1.6.2 · footer finish / no-gradient pass ═══════════ */

/* Remove the remaining visual wash under the support CTA. */
.support-band-in,
body[data-theme="dark"] .support-band-in{
  box-shadow:none!important;
}

/* Coffee is a solid, token-aware pill now: no gradient, no raised shadow. */
.coffee,
body[data-theme="dark"] .coffee{
  background:var(--surface-soft)!important;
  color:var(--text)!important;
  border:1px solid var(--footer-gold)!important;
  box-shadow:none!important;
  transform:none!important;
  transition:
    background-color .12s ease,
    border-color .12s ease,
    color .12s ease!important;
}
.coffee:hover{
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

/* Footer surface is intentionally flat in every theme. */
.site-footer{
  background:var(--footer-bg)!important;
  box-shadow:none!important;
}
.site-footer::before,
.site-footer::after{
  content:none!important;
  display:none!important;
}

/* Give the divider and chef feature a deliberate visual pause. */
.footer-break{
  margin:0 auto 38px!important;
  padding-top:26px!important;
}
.footer-break span,
.footer-break span:last-child{
  background:var(--footer-line)!important;
}

/* No faded/gradient rules: solid, restrained lines only. */
.footer-chef-rule{
  background:none!important;
}
.footer-chef-rule::before,
.footer-chef-rule::after{
  content:"";
  position:absolute;
  top:0;
  height:1px;
  width:calc(50% - 150px);
  background:var(--footer-line);
}
.footer-chef-rule::before{left:0}
.footer-chef-rule::after{right:0}

.fcol+.fcol::before{
  background:var(--footer-line)!important;
  opacity:.78;
}

/* One consistent hover language for all three social controls. */
.footer-social{
  color:var(--footer-text)!important;
  background:var(--footer-surface)!important;
  border-color:var(--footer-line)!important;
  box-shadow:none!important;
}
.footer-social:hover{
  color:#fff!important;
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  transform:none!important;
}
.footer-social.is-disabled{
  opacity:.45;
}
.footer-social.is-disabled:hover{
  opacity:.7;
  color:var(--accent)!important;
  background:var(--footer-surface)!important;
  border-color:var(--accent)!important;
  transform:none!important;
}

/* Bottom utility now sits above the separator; all ownership/source text
   then lives together below it, left aligned. */
.footer-bottom{
  display:block!important;
  padding:0 0 26px!important;
  color:var(--footer-muted);
}
.footer-utility{
  display:flex!important;
  align-items:center;
  justify-content:flex-start!important;
  gap:7px;
  margin:0!important;
  padding:14px 0 12px!important;
  border:0!important;
}
.footer-utility .footer-link,
.footer-utility .footer-admin{
  min-height:0!important;
  width:auto!important;
  display:inline-flex!important;
  align-items:center;
  margin:0!important;
  padding:0!important;
  color:var(--footer-muted)!important;
  font-size:10.5px!important;
  font-weight:650!important;
}
.footer-legal{
  display:grid;
  gap:3px;
  padding-top:15px;
  border-top:1px solid var(--footer-line);
  text-align:left;
  justify-items:start;
  color:var(--footer-muted);
  font-size:11.5px;
  line-height:1.5;
}
.footer-legal strong{
  color:var(--footer-text);
  font-size:12px;
}

/* Retire the split legal layout from the previous pass. */
.footer-legal-primary,
.footer-legal-source{
  display:none!important;
}

/* Tablet/mobile retain the same spacing intent without becoming oversized. */
@media(max-width:1050px){
  .footer-break{
    margin-bottom:34px!important;
  }
}
@media(max-width:620px){
  .footer-break{
    margin-bottom:30px!important;
    padding-top:20px!important;
  }
  .fcol+.fcol::before{
    background:var(--footer-line)!important;
  }
  .footer-utility{
    flex-wrap:wrap;
    padding-top:12px!important;
  }
  .footer-legal{
    padding-top:13px;
    font-size:11px;
  }
}


/* ═══════════ V1.6.5F1.6.4 · social-launch polish ═══════════ */

/* In Dark theme the copy remains on the darker side while the book artwork
   sits against the subtly lighter end of the card. */
body[data-theme="dark"] .bp-in{
  background:linear-gradient(
    105deg,
    var(--surface) 0%,
    color-mix(in srgb,var(--accent) 8%,var(--surface)) 52%,
    color-mix(in srgb,#ffffff 13%,var(--surface)) 100%
  )!important;
}

/* Mobile stacks the shelf first, so the lighter zone moves to the top. */
@media(max-width:760px){
  body[data-theme="dark"] .bp-in{
    background:linear-gradient(
      180deg,
      color-mix(in srgb,#ffffff 13%,var(--surface)) 0%,
      color-mix(in srgb,var(--accent) 7%,var(--surface)) 42%,
      var(--surface) 72%
    )!important;
  }
}

/* Two hero actions only: give them enough room on touch screens without
   recreating the previous four-button wall. */
@media(max-width:620px){
  .hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    max-width:360px;
  }
  .hero-actions .hbtn{
    width:100%;
    justify-content:center;
  }
}


/* ═══════════ V1.6.5F1.6.4.1 · Cookbook Studio Start over ═══════════ */

.bk-btn-reset{
  border-color:color-mix(in srgb,#a84b3f 48%,var(--line));
  color:color-mix(in srgb,#a84b3f 78%,var(--text));
  background:var(--surface);
}
.bk-btn-reset:hover{
  border-color:#a84b3f;
  color:#fff;
  background:#a84b3f;
}

@media(max-width:760px){
  .bk-bar-a{width:100%}
  .bk-bar-a .bk-btn{flex:1 1 auto}
  .bk-bar-a .bk-btn-reset{
    order:4;
    flex-basis:100%;
  }
}


/* ═══════════ V1.6.5F1.6.4.2 · social-share reliability + icons ═══════════ */

.sh-actions .bk-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.sh-action-icon{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sh-fb-icon{
  fill:currentColor;
  stroke:none;
}
.sh-facebook:hover,
.sh-facebook:focus-visible{
  border-color:#1877f2;
  background:#1877f2;
  color:#fff;
}
.sh-x:hover,
.sh-x:focus-visible{
  border-color:var(--text);
  background:var(--text);
  color:var(--surface);
}


/* ═══════════ V1.6.5F1.6.4.6.2.11 · Mobile UX + Add Recipe alignment ═══════════ */
.setting-mobile{
  margin-top:14px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface-soft)
}
.setting-mobile>b{display:block;font-size:13px}
.setting-mobile>small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.setting-mobile .setting-check{margin-top:9px}

.mobile-book-nav{
  display:none;align-items:center;justify-content:center;gap:12px;
  padding:10px 12px;border-top:1px solid var(--line);background:var(--surface)
}
.mobile-book-nav>div{min-width:120px;text-align:center;display:grid;gap:1px}
.mobile-book-nav b{font-size:13px}
.mobile-book-nav small{font-size:10px;color:var(--muted)}
.mobile-book-nav button{min-width:44px;min-height:40px;font-size:24px;line-height:1}
.mobile-book-nav[hidden]{display:none!important}

@media(max-width:760px){
  body.mobile-hero-crop .hero{
    min-height:540px!important;
    background-image:
      linear-gradient(180deg,rgba(8,13,12,.12) 0%,rgba(8,13,12,.25) 42%,rgba(8,13,12,.78) 100%),
      url("world-table-hero-mobile.jpg")!important;
    background-size:cover!important;
    background-position:center center!important;
  }
  body.mobile-hero-crop .hero-grid{
    align-self:stretch;display:flex!important;align-items:flex-end!important;
    padding-top:34px!important;padding-bottom:30px!important
  }
  body.mobile-hero-crop .hero-copy{max-width:100%!important}
  body.mobile-hero-crop .hero h1{font-size:clamp(42px,13vw,58px)!important}
  body.mobile-hero-crop .hero .source-note{max-width:42ch}

  body.mobile-search-simple .quickbar{display:none!important}
  body.mobile-search-simple .more-filters-panel{padding-top:4px!important}
  body.mobile-search-simple .filter-status{margin-top:10px!important}
  body.mobile-search-simple .more-filters-btn #moreFiltersLabel{font-size:0}
  body.mobile-search-simple .more-filters-btn #moreFiltersLabel::after{content:"Filters";font-size:14px}

  body.mobile-book-swipe #viewDlg .bk-stage{
    overflow:hidden!important;min-height:0!important;touch-action:pan-x!important
  }
  body.mobile-book-swipe #vwPages{
    display:flex!important;grid-template-columns:none!important;
    gap:0!important;padding:14px 0 12px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;scroll-behavior:smooth;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:none
  }
  body.mobile-book-swipe #vwPages::-webkit-scrollbar{display:none}
  body.mobile-book-swipe #vwPages .bk-fig{
    flex:0 0 100%!important;width:100%!important;
    scroll-snap-align:start;scroll-snap-stop:always;
    padding:0 16px;display:grid;justify-items:center;box-sizing:border-box
  }
  body.mobile-book-swipe #vwPages .bk-pv{
    width:min(84vw,420px)!important;max-width:420px!important
  }
  body.mobile-book-swipe #vwPages figcaption{
    width:min(84vw,420px);margin-top:8px
  }
  body.mobile-book-swipe #vwMobileNav{display:flex}
}

@media(max-width:430px){
  body.mobile-hero-crop .hero{min-height:510px!important}
  body.mobile-book-swipe #vwPages .bk-pv,
  body.mobile-book-swipe #vwPages figcaption{width:min(88vw,380px)!important}
}
