/* Shared header polish + dark mode for the storefront and the content pages.
   Light mode keeps the approved olive design; everything dark lives under html[data-theme="dark"]. */
:root{--hd-bg:rgba(246,242,233,.94);--hd-line:#d8d1c3;--hd-border:#cdbf9f;--hd-ctl:#fffdf7;--hd-fg:#203a32;--hd-hover:#ece4d3;--hd-on-bg:#203a32;--hd-on-fg:#fff}
html[data-theme="dark"]{--hd-bg:rgba(17,24,21,.92);--hd-line:#2b3a33;--hd-border:#3a4c43;--hd-ctl:#1b2722;--hd-fg:#e9e4d6;--hd-hover:#22312b;--hd-on-bg:#2f6a56;--hd-on-fg:#fff;color-scheme:dark}
html:not([data-theme="dark"]){color-scheme:light}

/* ---------------------------------------------------------------- header */
.top{background:var(--hd-bg);border-bottom-color:var(--hd-line);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);transition:box-shadow .25s ease,background-color .25s}
@media(min-width:801px){
  .top{position:sticky;top:0;z-index:60}
  .top .mast{transition:padding .25s ease}
  .top .brand .logo{transition:height .25s ease}
  .top.is-scrolled{box-shadow:0 8px 26px rgba(20,32,27,.14)}
  .top.is-scrolled .mast{padding-top:8px;padding-bottom:8px}
  .top.is-scrolled .brand .logo{height:38px}
  .editorial-aside{top:140px!important}
  [id]{scroll-margin-top:130px}
}
.tools{gap:12px;font-size:13px;flex-wrap:wrap;justify-content:flex-end}
.tools a,.tools button{color:var(--hd-fg)}
.citybox select{height:38px;border:1px solid var(--hd-border);background:var(--hd-ctl);color:var(--hd-fg);border-radius:99px;padding:0 14px;font-size:13px;max-width:160px}
.cartlink{height:38px;padding:0 14px 0 10px;border:1px solid var(--hd-border);border-radius:99px;background:var(--hd-ctl);color:var(--hd-fg);font-size:13px;font-weight:700;transition:background-color .15s,border-color .15s,transform .15s}
.cartlink:hover{background:var(--hd-hover);transform:translateY(-1px)}
.tools .cartlink b{background:var(--hd-on-bg);color:var(--hd-on-fg);min-width:22px;height:22px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;margin-inline-start:2px}
.hd-lang{display:inline-flex;height:38px;border:1px solid var(--hd-border);border-radius:99px;overflow:hidden;background:var(--hd-ctl)}
.hd-lang a{display:inline-flex;align-items:center;padding:0 13px;font-size:13px;font-weight:700;color:var(--hd-fg);transition:background-color .15s}
.hd-lang a:hover{background:var(--hd-hover)}
.hd-lang a[aria-current]{background:var(--hd-on-bg);color:var(--hd-on-fg)}
.hd-theme{width:38px;height:38px;flex:none;border:1px solid var(--hd-border)!important;border-radius:50%!important;background:var(--hd-ctl)!important;color:var(--hd-fg)!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s,transform .25s}
.hd-theme:hover{background:var(--hd-hover)!important;transform:rotate(18deg)}
.hd-theme svg{width:18px;height:18px}
.hd-theme .i-sun{display:none}
html[data-theme="dark"] .hd-theme .i-sun{display:block}
html[data-theme="dark"] .hd-theme .i-moon{display:none}
.nav{flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;gap:6px!important;padding:0 0 12px!important;font-size:14px!important;scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x proximity}
.nav::-webkit-scrollbar{display:none}
.nav a{flex:none;scroll-snap-align:start;padding:7px 14px!important;border-radius:99px;border-bottom:0!important;color:var(--hd-fg);transition:background-color .15s,color .15s}
.nav a:hover{background:var(--hd-hover);text-decoration:none!important}
.nav a[aria-current]{background:var(--hd-on-bg);color:var(--hd-on-fg);border-bottom:0!important}
@media(max-width:800px){.tools{gap:8px}.hd-lang a{padding:0 10px}.cartlink{padding:0 10px 0 8px}.mast{gap:10px!important}}
html.theme-anim,html.theme-anim *{transition:background-color .3s ease,color .3s ease,border-color .3s ease!important}

/* ---------------------------------------------------------------- dark mode */
html[data-theme="dark"] body{background:#111815;color:#e9e4d6}
html[data-theme="dark"] ::selection{background:#3c6b5a;color:#fff}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible{outline-color:#e2a57a}
html[data-theme="dark"] .mark{border-color:#e9e4d6}
/* borders */
html[data-theme="dark"] .section,html[data-theme="dark"] .brandlogos,html[data-theme="dark"] .pn,html[data-theme="dark"] .chapter,html[data-theme="dark"] .editorial-block,html[data-theme="dark"] .editorial-mag,html[data-theme="dark"] .cartrow,html[data-theme="dark"] .editorial-aside a{border-color:#2f3f37}
/* secondary text */
html[data-theme="dark"] .muted,html[data-theme="dark"] .crumbs,html[data-theme="dark"] .crumb,html[data-theme="dark"] .local-meta,html[data-theme="dark"] .artnote,html[data-theme="dark"] .image-note,html[data-theme="dark"] .launchnote,html[data-theme="dark"] .sectionhead span,html[data-theme="dark"] .updated-editorial .tile small,html[data-theme="dark"] .maggrid p,html[data-theme="dark"] .cuisinelist small,html[data-theme="dark"] .dishpage .price s{color:#a8a493}
html[data-theme="dark"] .editorial-block p,html[data-theme="dark"] .dishpage .desc{color:#d6d0c0}
html[data-theme="dark"] .local-meta .distance,html[data-theme="dark"] .editorial-lead,html[data-theme="dark"] .updated-editorial .editorial-block h3,html[data-theme="dark"] .editorial-block a,html[data-theme="dark"] .page-nav a,html[data-theme="dark"] .dishpage h1,html[data-theme="dark"] .dishpage .price,html[data-theme="dark"] .carttotal strong,html[data-theme="dark"] .empty-state strong,html[data-theme="dark"] .groupheading{color:#f0ead9}
/* accent text (terracotta lightened for contrast) */
html[data-theme="dark"] .shophead a,html[data-theme="dark"] .plain,html[data-theme="dark"] .cu-arrow,html[data-theme="dark"] .morec summary,html[data-theme="dark"] .cat.active strong,html[data-theme="dark"] .tile .count,html[data-theme="dark"] .chapter span,html[data-theme="dark"] .maggrid span,html[data-theme="dark"] .updated-editorial .editorial-block h2 .sectionno,html[data-theme="dark"] [style*="color:#9b542f"]{color:#e2a57a!important}
html[data-theme="dark"] .eyebrow{color:#e2a57a}
/* surfaces */
html[data-theme="dark"] .meal,html[data-theme="dark"] .cuisine,html[data-theme="dark"] .feature,html[data-theme="dark"] .maggrid a,html[data-theme="dark"] .updated-editorial .tile,html[data-theme="dark"] .frm,html[data-theme="dark"] dialog,html[data-theme="dark"] .pager a,html[data-theme="dark"] .pager span,html[data-theme="dark"] .cuisinelist a,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .dishpage .meta span,html[data-theme="dark"] [style*="background:#fffdf7"]{background:#18221e!important;border-color:#2f3f37!important;color:#e9e4d6}
html[data-theme="dark"] .updated-editorial .tile{color:#e9e4d6}
html[data-theme="dark"] .updated-editorial .tile svg{stroke:#e2a57a}
html[data-theme="dark"] .brandlogos figure{background:#f6f2e9}
html[data-theme="dark"] .local-status,html[data-theme="dark"] .previewbar,html[data-theme="dark"] .updated-editorial .notice,html[data-theme="dark"] .legal-note,html[data-theme="dark"] .review-note{background:#22302a;color:#e6d9c3;border-color:#c97a52}
html[data-theme="dark"] .foodphoto,html[data-theme="dark"] .cartrow .foodphoto,html[data-theme="dark"] .dishpage .foodphoto,html[data-theme="dark"] .cd-ph{background:#26332d}
html[data-theme="dark"] .foodphoto.noimg .fallback{color:#d6d0c0}
html[data-theme="dark"] .cuisine .foodphoto.noimg{background:repeating-linear-gradient(135deg,#222e28,#222e28 8px,#27342d 8px,#27342d 9px);color:#cfc8b6}
html[data-theme="dark"] .editorial-placeholder{background:linear-gradient(125deg,#26332d,#1c2823)!important;color:#e9e4d6}
html[data-theme="dark"] .identity-art{background:radial-gradient(circle at 50% 50%,#2b3d34,#16211c);color:#e9e4d6}
html[data-theme="dark"] .dishlinks button,html[data-theme="dark"] .dishlinks a{background:#22302a;border-color:#34463d;color:#e0dac9}
html[data-theme="dark"] .dishlinks button:hover,html[data-theme="dark"] .dishlinks a:hover{background:#2b3c34}
html[data-theme="dark"] .cuisinelist a:hover,html[data-theme="dark"] a.tile:hover,html[data-theme="dark"] .maggrid a:hover{border-color:#e2a57a!important}
/* forms */
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .shopintro input,html[data-theme="dark"] .citybox select,html[data-theme="dark"] .filters select,html[data-theme="dark"] .frm input,html[data-theme="dark"] .frm select,html[data-theme="dark"] .frm textarea,html[data-theme="dark"] .updated-editorial input,html[data-theme="dark"] .cartrow input,html[data-theme="dark"] .dishpage .buy input,html[data-theme="dark"] [style*="background:#fff;"],html[data-theme="dark"] [style$="background:#fff"]{background:#1f2c27!important;color:#ece6d6!important;border-color:#3a4c43!important}
html[data-theme="dark"] .shopintro form{background:#1f2c27;color:#ece6d6}
html[data-theme="dark"] ::placeholder{color:#8f8b7c}
html[data-theme="dark"] .citybox select{background:#1b2722!important}
/* buttons that were dark green on light surfaces */
html[data-theme="dark"] .add,html[data-theme="dark"] .editorial-cta,html[data-theme="dark"] .frm button,html[data-theme="dark"] .flash button,html[data-theme="dark"] .pager .on,html[data-theme="dark"] .cd-count,html[data-theme="dark"] .cd-go,html[data-theme="dark"] .cd-fab,html[data-theme="dark"] .cd-empty a,html[data-theme="dark"] .cd-alert button:not(.alt){background:#2f6a56!important;border-color:#2f6a56!important;color:#fff!important}
html[data-theme="dark"] .add:hover,html[data-theme="dark"] .cd-go:hover,html[data-theme="dark"] .cd-fab:hover{background:#38806a!important}
html[data-theme="dark"] .btnline,html[data-theme="dark"] .launch-actions a,html[data-theme="dark"] .joinband a{border-color:#e2a57a;color:#e9e4d6;background:none}
html[data-theme="dark"] .launch-actions a:hover{background:#2f6a56;color:#fff}
html[data-theme="dark"] .joinband a{border-color:#3a4c43}
html[data-theme="dark"] .primary{background:#e3c69c;color:#203a32}
/* alerts */
html[data-theme="dark"] .flash,html[data-theme="dark"] .ok{background:#1b2f25;color:#cfe6d6;border-color:#4f9a6c}
html[data-theme="dark"] .flash.err,html[data-theme="dark"] .err{background:#33211b;color:#f2cdbb;border-color:#c97a52}
/* dark-green blocks stay dark; just soften them against the darker page */
html[data-theme="dark"] .hero,html[data-theme="dark"] .shophero,html[data-theme="dark"] .eventband,html[data-theme="dark"] .footer{background:#183029}
html[data-theme="dark"] .copy{border-top-color:#35544a}
/* cart drawer */
html[data-theme="dark"] .cd{--cd-bg:#18221e;--cd-line:#2f3f37;--cd-muted:#a8a493;--cd-green:#e9e4d6}
html[data-theme="dark"] .cd-panel{background:#18221e;box-shadow:8px 0 40px rgba(0,0,0,.55)}
html[data-theme="dark"] .cd-x{background:#26332d;color:#e9e4d6}
html[data-theme="dark"] .cd-x:hover{background:#2f3f37}
html[data-theme="dark"] .cd-family{background:#1d2823}
html[data-theme="dark"] .cd-foot{background:#1b2621;box-shadow:0 -10px 24px rgba(0,0,0,.35)}
html[data-theme="dark"] .cd-step{background:#1f2c27;border-color:#3a4c43}
html[data-theme="dark"] .cd-step button:hover:not(:disabled){background:#2b3c34}
html[data-theme="dark"] .cd-sum,html[data-theme="dark"] .cd-sum strong,html[data-theme="dark"] .cd-tot,html[data-theme="dark"] .cd-name,html[data-theme="dark"] .cd-head h2{color:#f0ead9}
html[data-theme="dark"] .cd-del{color:#f0a283}
html[data-theme="dark"] .cd-del:hover{background:#3a251d}
html[data-theme="dark"] .cd-alert{background:#33211b;border-color:#6b3d2a;color:#f2cdbb}
html[data-theme="dark"] .cd-alert button.alt{color:#e9e4d6;border-color:#e9e4d6}
html[data-theme="dark"] .cd-sub a{color:#e9c79d}
html[data-theme="dark"] .cd-row.flash{animation-name:cd-flash-dark}
html[data-theme="dark"] .cd-fab b{border-color:#111815}
@keyframes cd-flash-dark{0%{background:#244034}100%{background:transparent}}
html[data-theme="dark"] .inst-lang a,html[data-theme="dark"] .inst-lang button{background:#1f2c27;color:#e9e4d6;border-color:#3a4c43}
html[data-theme="dark"] .inst-lang a[aria-current],html[data-theme="dark"] .inst-lang button[aria-pressed=true]{background:#2f6a56;color:#fff}
@media print{.hd-lang,.hd-theme{display:none!important}}
