/* ==========================================================================
   MenuPriceHub — core stylesheet
   Mobile-first, no framework, light + dark, optimised for ad layouts.
   ========================================================================== */

:root {
  --brand: #c8391f;
  --brand-dark: #a52d16;
  --brand-tint: #fdf1ee;
  --accent: #0f7b6c;

  --bg: #ffffff;
  --bg-alt: #f7f6f4;
  --bg-sunken: #efedea;
  --surface: #ffffff;
  --border: #e3e0db;
  --border-strong: #cfcbc4;

  --text: #1c1a18;
  --text-muted: #605a54;
  --text-faint: #8b847c;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 26, 24, .06), 0 8px 24px rgba(28, 26, 24, .06);
  --shadow-sm: 0 1px 2px rgba(28, 26, 24, .07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;

  --wrap: 1180px;
  --content: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #f2704f;
    --brand-dark: #ff8a6a;
    --brand-tint: #2a1a15;
    --accent: #4dbfab;

    --bg: #16151a;
    --bg-alt: #1d1c22;
    --bg-sunken: #24232a;
    --surface: #1d1c22;
    --border: #33313b;
    --border-strong: #45424f;

    --text: #eceaf0;
    --text-muted: #a8a3b2;
    --text-faint: #7d7889;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

:root[data-theme="dark"] {
  --brand: #f2704f;
  --brand-dark: #ff8a6a;
  --brand-tint: #2a1a15;
  --accent: #4dbfab;

  --bg: #16151a;
  --bg-alt: #1d1c22;
  --bg-sunken: #24232a;
  --surface: #1d1c22;
  --border: #33313b;
  --border-strong: #45424f;

  --text: #eceaf0;
  --text-muted: #a8a3b2;
  --text-faint: #7d7889;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); margin-top: 2em; }
h3 { font-size: 1.18rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--content); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.12rem; color: var(--text);
  letter-spacing: -.02em; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; flex: none;
}
.nav { display: none; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text-muted); font-size: .93rem; font-weight: 600;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
@media (min-width: 900px) { .nav { display: flex; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }

.icon-btn {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer; font-size: 15px; padding: 0;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }

/* mobile menu */
.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--bg); padding-top: 10px; padding-bottom: 16px;
}
.mobile-nav.open { display: block; }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.open { display: none; } }
.mobile-nav a {
  display: block; padding: 10px 4px; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- search ---------- */

.search-box { position: relative; width: 100%; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 42px;
  font-size: 1rem; font-family: inherit; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  outline: none;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search-box::before {
  content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; opacity: .55; pointer-events: none;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow);
  max-height: 340px; overflow-y: auto; display: none;
}
.search-results.show { display: block; }
.search-results a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 11px 15px; color: var(--text); border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.active { background: var(--bg-alt); text-decoration: none; }
.search-results .r-cat { font-size: .78rem; color: var(--text-faint); white-space: nowrap; }
.search-empty { padding: 16px; color: var(--text-muted); font-size: .93rem; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(170deg, var(--brand-tint), var(--bg) 78%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 44px; text-align: center;
}
.hero h1 { margin-bottom: .35em; }
.hero p.lede {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 620px; margin: 0 auto 26px;
}
.hero .search-box { max-width: 560px; margin: 0 auto; text-align: left; }
.hero-stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 26px; color: var(--text-muted); font-size: .87rem;
}
.hero-stats b { display: block; font-size: 1.4rem; color: var(--text); line-height: 1.2; }

/* ---------- cards / grids ---------- */

.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .92rem; font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  text-decoration: none; border-color: var(--brand);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 1.04rem; }
.card p { margin: 0; font-size: .87rem; color: var(--text-muted); line-height: 1.5; }
.card .meta { margin-top: 10px; font-size: .8rem; color: var(--text-faint); display: flex; gap: 10px; flex-wrap: wrap; }
.card .meta span { display: inline-flex; align-items: center; gap: 4px; }

.cat-card { display: flex; gap: 13px; align-items: flex-start; }
.cat-card .emoji { font-size: 1.5rem; line-height: 1.2; flex: none; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-sunken); color: var(--text-muted);
  font-size: .76rem; font-weight: 600; letter-spacing: .01em;
}
.pill.brand { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- alphabet index ---------- */

.alpha-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.alpha-bar a {
  min-width: 34px; text-align: center; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 8px;
  font-weight: 700; font-size: .85rem; color: var(--text-muted); background: var(--surface);
}
.alpha-bar a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.alpha-group { margin-bottom: 30px; }
.alpha-group h3 {
  margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border);
  font-size: 1.3rem; scroll-margin-top: 80px;
}

/* ---------- article layout ---------- */

.layout { display: block; padding-top: 30px; padding-bottom: 50px; }
@media (min-width: 1040px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
}
.sidebar { display: none; }
@media (min-width: 1040px) {
  .sidebar { display: block; position: sticky; top: 78px; }
}
.sidebar-box {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
}
.sidebar-box h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.sidebar-box ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.sidebar-box li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.sidebar-box li:last-child { border-bottom: 0; }

.breadcrumbs { font-size: .85rem; color: var(--text-faint); margin: 0 0 14px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { margin: 0 6px; opacity: .5; }

.page-title { margin-bottom: .3em; }
.byline {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: .87rem; color: var(--text-muted);
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border);
}

.lede { font-size: 1.08rem; color: var(--text-muted); }

/* fact table */
.facts {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 22px 0 28px;
}
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: .92rem;
}
@media (min-width: 620px) { .facts div:nth-child(odd) { border-right: 1px solid var(--border); } }
.facts dt, .facts .k { color: var(--text-muted); }
.facts .v { font-weight: 650; text-align: right; }

/* menu price tables */
.menu-section { margin: 0 0 34px; scroll-margin-top: 78px; }
.menu-section h2 { margin-top: 0; }
.menu-note {
  font-size: .91rem; color: var(--text-muted); background: var(--bg-alt);
  border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin: 0 0 14px;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.price {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
table.price th {
  text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); font-weight: 700;
  padding: 11px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
table.price th:last-child { text-align: right; }
table.price td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.price tr:last-child td { border-bottom: 0; }
table.price tr:hover td { background: var(--bg-alt); }
table.price .item-name { font-weight: 600; }
table.price .item-desc { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
table.price .price-cell {
  text-align: right; white-space: nowrap; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--brand-dark);
}
:root[data-theme="dark"] table.price .price-cell { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) table.price .price-cell { color: var(--brand); }
}

/* jump nav */
.jump-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 30px;
}
.jump-nav strong { width: 100%; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.jump-nav a {
  font-size: .87rem; font-weight: 600; padding: 5px 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted);
}
.jump-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* tips */
.tips { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.tips h2, .tips h3 { margin-top: 0; }
.tips ul { margin: 0; padding-left: 20px; }
.tips li { margin-bottom: 9px; }
.tips li:last-child { margin-bottom: 0; }

/* faq */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--surface); overflow: hidden;
}
.faq summary {
  padding: 14px 18px; font-weight: 650; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--text-faint); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--bg-alt); }
.faq .faq-body { padding: 0 18px 16px; color: var(--text-muted); font-size: .96rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* disclaimer */
.disclaimer {
  font-size: .85rem; color: var(--text-muted);
  background: var(--bg-alt); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); padding: 13px 16px; margin: 26px 0;
}
.disclaimer strong { color: var(--text); }

/* related */
.related-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.related-list a {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .93rem;
}
.related-list a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- ads ---------- */

.ad-slot {
  margin: 28px 0; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.ad-slot ins { display: block; width: 100%; }
.ad-label {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-faint); margin-bottom: 4px;
}
.ad-placeholder {
  width: 100%; min-height: 100px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); display: grid; place-items: center;
  color: var(--text-faint); font-size: .82rem; background: var(--bg-alt);
}
.ad-sidebar { min-height: 250px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 40px 0 28px; margin-top: 40px; font-size: .92rem;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { color: var(--text-muted); font-size: .9rem; max-width: 42ch; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: .84rem;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------- cookie notice ---------- */

.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px 18px; font-size: .88rem; color: var(--text-muted);
  display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 650; font-size: .9rem;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); }
.btn.ghost:hover { background: var(--bg-alt); color: var(--text); }

/* ---------- prose (guides, legal) ---------- */

.prose h2 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brand); color: var(--text-muted); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }

/* ---------- misc ---------- */

.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.toc h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.toc ol { margin: 0; padding-left: 20px; font-size: .95rem; }
.toc li { margin-bottom: 5px; }

.notfound { text-align: center; padding-top: 70px; padding-bottom: 70px; }
.notfound h1 { font-size: 4rem; margin-bottom: .1em; color: var(--brand); }

.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted);
  display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); font-size: 17px;
}
.back-to-top.show { display: grid; }

@media print {
  .site-header, .site-footer, .ad-slot, .cookie-bar, .back-to-top, .jump-nav, .sidebar { display: none !important; }
  body { font-size: 12pt; }
}
