/* =========================================================================
   Dharti Namkeen & Sweets — main.css
   Single shared stylesheet. Design tokens + all component styles.
   No preprocessor, no framework. System font stack (PLAN.md §4/§6, decision 6).
   ========================================================================= */

/* ---------- 1. Design tokens ---------------------------------------- */
:root {
  /* Colour: deep maroon primary, saffron-gold accent, warm cream background.
     All text/background pairings verified to WCAG AA (4.5:1). */
  --color-maroon-900: #3a0d10;
  --color-maroon-800: #4d1116;
  --color-maroon-700: #6b1620;
  --color-maroon-600: #861c28;
  --color-gold-600:   #b3791a;
  --color-gold-500:   #c98a1f;
  --color-gold-100:   #f6e6c6;
  --color-cream-50:   #fffaf2;
  --color-cream-100:  #fdf3e2;
  --color-cream-200:  #f7e8ce;
  --color-charcoal-900: #211a17;
  --color-charcoal-700: #40332e;
  --color-charcoal-500: #6b5c54;
  --color-white:      #ffffff;
  --color-success:    #1e6b3a;
  --color-danger:     #a3241b;
  --color-focus:      #0b5fff;

  --color-bg:        var(--color-cream-50);
  --color-surface:   var(--color-white);
  --color-surface-2: var(--color-cream-100);
  --color-text:      var(--color-charcoal-900);
  --color-text-muted:var(--color-charcoal-500);
  --color-primary:   var(--color-maroon-700);
  --color-primary-strong: var(--color-maroon-900);
  --color-accent:    var(--color-gold-600);
  --color-border:    #e7d8bd;

  /* Type: warm serif headings, legible sans body — system stack (no CDN). */
  --font-head: Georgia, "Noto Serif", "Noto Serif Gujarati", "Shruti", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Shruti", Arial, sans-serif;

  --fs-100: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --fs-200: clamp(0.925rem, 0.9rem + 0.12vw, 1rem);
  --fs-300: clamp(1.05rem, 1rem + 0.2vw, 1.125rem);
  --fs-400: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-500: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  --fs-600: clamp(2.1rem, 1.7rem + 1.8vw, 3rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(58, 13, 16, 0.08), 0 1px 2px rgba(58, 13, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(58, 13, 16, 0.12);
  --shadow-lg: 0 16px 40px rgba(58, 13, 16, 0.18);

  --max-width: 1180px;
  --header-h: 68px;
  --bottom-bar-h: 60px;
}

/* ---------- 2. Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
img, picture { max-width: 100%; display: block; }
img { height: auto; }
/* Every inline <svg> in this codebase is a decorative icon (see the ICON
   set in tools/build-pages.mjs) — give them all a sane default size instead
   of the browser's replaced-element default (which renders huge unless the
   svg happens to sit inside a flex container that blockifies it). Specific
   contexts (category cards, mobile bar, social links) override by size
   below with a more specific selector. */
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; color: var(--color-primary-strong); }
h1 { font-size: var(--fs-600); }
h2 { font-size: var(--fs-500); }
h3 { font-size: var(--fs-400); }
h4 { font-size: var(--fs-300); }
p { max-width: 68ch; }
ul, ol { padding-left: 1.25em; }
a { color: var(--color-primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--color-maroon-900); }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* Visible focus ring everywhere, including keyboard-only. */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}
a[lang="gu"], span[lang="gu"] { font-family: var(--font-head); }

/* ---------- 3. Layout utilities --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--color-surface-2); }
.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-head p { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  margin-bottom: var(--space-2);
}
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-primary-strong);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

/* No-JS-safe base: header nav is visible by default; JS enhances it. */
.js .nav-list { display: none; }
.js .nav-list.is-open { display: flex; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }

/* ---------- 4. Header / nav -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-cream-50);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-300);
  color: var(--color-primary-strong);
  text-decoration: none;
  padding-block: var(--space-2);
}
.brand:hover { color: var(--color-primary-strong); }
.brand__logo { width: auto; height: 44px; flex: none; }
.brand__text-gu { display: block; font-size: var(--fs-100); font-weight: 400; color: var(--color-text-muted); }

.nav-toggle {
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-primary-strong);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  flex-direction: column;
  gap: var(--space-1);
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--color-cream-50);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-5) var(--space-5);
}
.nav-list a {
  display: block;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  font-weight: 600;
  color: var(--color-charcoal-900);
  border-radius: var(--radius-sm);
}
.nav-list a:hover { background: var(--color-surface-2); }
.nav-list a[aria-current="page"] { color: var(--color-primary); }
.nav-list details { border-bottom: 1px dashed var(--color-border); }
.nav-list details > summary {
  padding: var(--space-3) var(--space-2);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav-list details > summary::-webkit-details-marker { display: none; }
.nav-list .subnav { list-style: none; padding-left: var(--space-4); margin-bottom: var(--space-2); }
.nav-list .subnav a { font-weight: 500; }

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .js .nav-list { display: flex; }
  .nav-toggle { display: none !important; }
  .nav-list {
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0; box-shadow: none;
    padding: 0;
    gap: var(--space-2);
  }
  .nav-list a { padding: var(--space-2) var(--space-3); }
  .nav-list details { border: 0; position: relative; }
  .nav-list details > summary { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
  .nav-list details > summary:hover { background: var(--color-surface-2); }
  .nav-list .subnav {
    position: absolute;
    top: 100%; left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    min-width: 220px;
    z-index: 10;
  }
  .nav-cta { display: inline-flex; margin-left: var(--space-3); }
}

/* ---------- 5. Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-strong); color: var(--color-white); }
.btn--accent { background: var(--color-accent); color: var(--color-maroon-900); }
.btn--accent:hover { background: var(--color-gold-500); color: var(--color-maroon-900); }
.btn--ghost { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: var(--color-white); }
.btn--sm { min-height: 38px; padding: var(--space-2) var(--space-4); font-size: var(--fs-200); }
.btn--block { width: 100%; }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--color-cream-100), var(--color-cream-50));
  border-bottom: 1px solid var(--color-border);
}
.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; padding-block: var(--space-8); }
}
.hero h1 { margin-bottom: var(--space-3); }
.hero__gu { display: block; font-size: var(--fs-400); color: var(--color-primary); font-weight: 400; margin-top: var(--space-1); }
.hero__lede { font-size: var(--fs-300); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.hero__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Open-now badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--fs-200);
  font-weight: 700;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.status-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-text-muted); flex: none; }
.status-badge[data-status="open"] { background: #e7f4ec; border-color: #bfe3cb; color: var(--color-success); }
.status-badge[data-status="open"] .status-badge__dot { background: var(--color-success); }
.status-badge[data-status="closed"] { background: #f8e9e7; border-color: #eec7c2; color: var(--color-danger); }
.status-badge[data-status="closed"] .status-badge__dot { background: var(--color-danger); }

/* ---------- 7. Trust strip ---------------------------------------------- */
.trust-strip { background: var(--color-primary-strong); color: var(--color-cream-100); }
.trust-strip__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  padding-block: var(--space-5);
  text-align: center;
}
.trust-strip__list li { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); font-size: var(--fs-200); }
.trust-strip strong { font-family: var(--font-head); font-size: var(--fs-400); color: var(--color-gold-100); }
.trust-strip a { color: var(--color-gold-100); }

/* ---------- 8. Cards ------------------------------------------------------ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card__media { aspect-ratio: 4 / 3; background: var(--color-surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__title { font-size: var(--fs-300); margin: 0; }
.card__gu { font-size: var(--fs-200); color: var(--color-text-muted); font-weight: 400; }
.card__desc { color: var(--color-text-muted); font-size: var(--fs-200); }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: auto; }
.tag {
  display: inline-block;
  font-size: var(--fs-100);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--color-gold-100);
  color: var(--color-maroon-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag--veg { background: #e2f3e5; color: var(--color-success); }
.tag--seasonal { background: #fdeacb; color: #8a5a00; }

.category-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.category-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.category-card__icon { color: var(--color-primary); }
.category-card__icon svg { width: 44px; height: 44px; }
.category-card h3 { color: var(--color-primary-strong); margin: 0; }
.category-card p { color: var(--color-text-muted); font-size: var(--fs-200); margin: 0; }

/* ---------- 9. Outlet cards ------------------------------------------------ */
.outlet-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.outlet-card h3 { margin: 0; }
.outlet-card dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); font-size: var(--fs-200); }
.outlet-card dt { color: var(--color-text-muted); font-weight: 600; }
.outlet-card dd { margin: 0; }
.outlet-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

.hours-table caption { text-align: left; font-weight: 700; margin-bottom: var(--space-2); }
.hours-table td, .hours-table th { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); text-align: left; font-size: var(--fs-200); }
.hours-table tr[data-today="true"] td, .hours-table tr[data-today="true"] th { font-weight: 700; color: var(--color-primary); }

/* Click-to-load map */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.map-embed img { width: 100%; height: 100%; object-fit: cover; }
.map-embed__cta {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(33, 26, 23, 0.45);
  border: 0; cursor: pointer;
}
.map-embed__cta span {
  background: var(--color-white);
  color: var(--color-primary-strong);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 10. Reviews ---------------------------------------------------- */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: var(--color-gold-600); font-size: var(--fs-300); letter-spacing: 2px; margin-bottom: var(--space-2); }
.review-card p { color: var(--color-text); font-style: italic; }
.review-card footer { margin-top: var(--space-3); font-size: var(--fs-200); color: var(--color-text-muted); font-weight: 600; }
.rating-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; text-decoration: none; }

/* ---------- 11. Gallery / lightbox ----------------------------------------- */
.gallery-grid {
  columns: 1;
  gap: var(--space-4);
}
@media (min-width: 640px) { .gallery-grid { columns: 2; } }
@media (min-width: 960px) { .gallery-grid { columns: 3; } }
.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  width: 100%;
}
.gallery-grid__item img { width: 100%; border-radius: var(--radius-md); transition: transform 0.2s ease; }
.gallery-grid__item:hover img { transform: scale(1.02); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(33, 26, 23, 0.9);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-5);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { max-width: min(90vw, 900px); max-height: 85vh; }
.lightbox__figure img { max-height: 75vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox__caption { color: var(--color-cream-100); text-align: center; margin-top: var(--space-3); font-size: var(--fs-200); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
}
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }

/* ---------- 12. Info panels / contact form ----------------------------- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.panel--muted { border-left-color: var(--color-border); background: var(--color-surface-2); }
.panel--narrow { max-width: 44rem; margin-inline: auto; }
.panel h3 { margin-top: 0; }

.form { max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.form .field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 600; font-size: var(--fs-200); }
.field input,
.field textarea {
  font: inherit;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:hover,
.field textarea:hover { border-color: var(--color-accent); }
.field input:focus,
.field textarea:focus {
  background: var(--color-surface);
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
/* Web3Forms honeypot — kept out of sight and out of the tab order so real
   visitors never see or fill it, but bots that fill every field will. */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-200); }
.form-note:empty { display: none; }
.form-note--success { color: var(--color-success); font-weight: 600; }
.form-note--error { color: var(--color-danger); font-weight: 600; }
/* No-JS fallback: Web3Forms redirects back to #sent on success; :target
   reveals this without any script running. The JS enhancement in
   contact-form.js intercepts the submit instead, so this never shows when
   JS is available. */
#sent { display: none; }
#sent:target { display: block; }

/* ---------- 13. FAQ --------------------------------------------------------- */
.faq-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 var(--space-5) var(--space-4); color: var(--color-text-muted); margin: 0; max-width: none; }

/* ---------- 14. Filter (namkeen page) ---------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.filter-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-200);
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.filter-chip[aria-pressed="true"] { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.filter-bar { display: none; }
.js .filter-bar { display: flex; }
[hidden] { display: none !important; }

/* ---------- 15. Footer --------------------------------------------------------- */
.site-footer { background: var(--color-primary-strong); color: var(--color-cream-100); }
.site-footer a { color: var(--color-gold-100); }
.site-footer h2, .site-footer h3 { color: var(--color-white); font-size: var(--fs-300); }
.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--fs-100);
  color: var(--color-gold-100);
}
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-4); padding: 0; }
.social-links { display: flex; gap: var(--space-3); }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
}
.social-links svg { width: 20px; height: 20px; }

/* ---------- 16. Sticky mobile action bar --------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(58,13,16,0.12);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: var(--bottom-bar-h);
  text-decoration: none;
  color: var(--color-primary-strong);
  font-size: var(--fs-100);
  font-weight: 700;
}
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar a:nth-child(2) { background: var(--color-primary); color: var(--color-white); }
body { padding-bottom: calc(var(--bottom-bar-h) + var(--space-3)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 17. Data-TBC marker ------------------------------------------------ */
/* Any fact not yet confirmed by the owner (PLAN.md §11.2) is wrapped so it stays
   visually flagged in every preview build until removed. */
[data-tbc] { border-bottom: 2px dotted var(--color-danger); }
[data-tbc]::after {
  content: " [TBC]";
  font-size: 0.75em;
  font-weight: 700;
  color: var(--color-danger);
  vertical-align: super;
}

/* ---------- 18. Misc pages (privacy/terms/404) --------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-6); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text); }
.prose ul { margin-top: var(--space-2); }

.not-found {
  text-align: center;
  padding-block: var(--space-8);
}
.not-found__code { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 6rem); color: var(--color-accent); }

.breadcrumbs { font-size: var(--fs-100); color: var(--color-text-muted); padding-block: var(--space-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--space-1); color: var(--color-border); }
.breadcrumbs a { color: var(--color-text-muted); }

.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); border-left: 2px solid var(--color-border); }
.timeline li { padding-left: var(--space-5); position: relative; }
.timeline li::before {
  content: "";
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-cream-50);
}
.timeline strong { display: block; color: var(--color-primary); font-family: var(--font-head); }

/* ---------- 19. Spacing / layout utilities ------------------------------------- */
/* Small set used to avoid inline `style=` attributes anywhere in the markup,
   which the CSP in _headers forbids (PLAN.md §7.2). */
.u-m-0 { margin: 0; }
.u-mt-xs { margin-top: var(--space-2); }
.u-mt-sm { margin-top: var(--space-3); }
.u-mt-md { margin-top: var(--space-4); }
.u-mt-lg { margin-top: var(--space-6); }
.u-mb-md { margin-bottom: var(--space-4); }
.u-mx-auto { margin-inline: auto; }
.u-muted { color: var(--color-text-muted); }
.u-align-start { align-items: start; }
.u-justify-between { justify-content: space-between; }
.u-justify-center { justify-content: center; }
.u-square { aspect-ratio: 1 / 1; }
.u-max-48 { max-width: 48ch; }
.panel--primary { border-left-color: var(--color-primary); }
.category-card__cta { color: var(--color-accent); font-weight: 700; font-size: var(--fs-200); }
