/* ============================================================
   CARRIGAN CHICKEN COMPANY
   cccc-0102 -- Contemporary Geocities editorial
   Playfair Display + DM Mono + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:         #f3eaf9;
  --bg2:        #e9ccfc;
  --surface:    #faf5ff;
  --text:       #2b2d42;
  --muted:      #7a6896;
  --line:       #e1b7ff;
  --line-dark:  #c49ae0;
  --accent:     #7b4fe0;
  --accent-dk:  #5c35c0;
  --accent-lt:  #e6c1ff;
  --gold:       #8b6914;
  --gold-lt:    #f4f1bb;
  --navy:       #2b2d42;
  --good:       #00b87a;
  --good-lt:    #84ffc9;
  --mid:        #9a6a00;
  --bad:        #c94040;
  --lilac:      #eca0ff;
  --mint:       #84ffc9;
  --periwinkle: #aab2ff;
  --shadow:     3px 3px 0 rgba(43,45,66,.07);
  --shadow-md:  5px 5px 0 rgba(43,45,66,.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-serif:   'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

.wrap { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
main { padding: 1.75rem 0 3rem; }

.stack-sm > * + * { margin-top: .6rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

/* ── PAGE BACKGROUNDS ───────────────────────────────── */

/* Default body bg */
.public-body {
  background-color: var(--bg);
  background-image: none;
}

/* Visits page */
.page-visits-bg {
  background-color: var(--bg);
  background-image: none;
  min-height: 80vh;
  padding-bottom: 3rem;
}

/* Visit receipt page */
.page-visit-bg {
  background-color: var(--bg);
  background-image: none;
  min-height: 80vh;
  padding: 1.5rem 0 4rem;
}

/* ── PUBLIC HEADER ──────────────────────────────────── */
.public-body .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .75rem 0;
}

.site-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.site-title:hover { text-decoration: none; color: var(--accent-lt); }

.site-stamp {
  width: 42px;
  height: 42px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
}
.site-stamp img { width: 32px; height: 32px; display: block; }

.site-title-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-title-main {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-body);
}
.site-title-sub-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: 2px;
}
.site-title-tag {
  font-size: 1.08rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 1px 5px;
  font-family: var(--font-body);
}
.site-title-sub {
  font-size: 1.08rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.nav { display: flex; gap: 0; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: .48rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border-left: 1px solid rgba(255,255,255,.12);
}
.nav a:first-child { border-left: none; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }

/* ── ADMIN COLOR OVERRIDES ──────────────────────────── */
/* Admin is intentionally dull: readable, functional, no flair */
.admin-body {
  --bg:        #f0f0f0;
  --bg2:       #e4e4e4;
  --surface:   #ffffff;
  --text:      #111111;
  --muted:     #555555;
  --line:      #cccccc;
  --line-dark: #999999;
  --accent:    #1a56db;
  --accent-dk: #1042a8;
  --gold:      #b45309;
  --gold-lt:   #fef3c7;
  --navy:      #1e2532;
  --good:      #15803d;
  --mid:       #b45309;
  --bad:       #b91c1c;
  --shadow:     2px 2px 0 rgba(0,0,0,.10);
  --shadow-md:  3px 3px 0 rgba(0,0,0,.14);

  background: var(--bg);
  background-image: none;
  color: var(--text);
}

/* Kill all the wild public-site effects in admin */
.admin-body .score-good,
.admin-body .score-mid,
.admin-body .score-bad { text-shadow: none; }
.admin-body .journal-score { box-shadow: none; }
.admin-body .journal-restaurant {
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #1e2532;
  border-bottom: 3px solid #1e2532;
  box-shadow: none;
}

.admin-topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .7rem 0;
}

.admin-badge-wrap { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  background: var(--accent);
  color: #fff;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.admin-site-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.admin-site-title:hover { color: #cbd5e1; text-decoration: none; }

.admin-site-stamp {
  width: 46px;
  height: 46px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-3deg);
}
.admin-site-stamp img { width: 36px; height: 36px; display: block; }

.admin-site-title-text { display: flex; flex-direction: column; line-height: 1.2; }
.admin-site-title-main {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.admin-site-title-sub {
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.admin-top-actions { display: flex; gap: .5rem; }

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .38rem 1rem;
  background: #e8ddd0;
  border: none;
  color: #5c4a2a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.top-action-btn:hover {
  background: #d4c7b0;
  color: #3e3018;
  text-decoration: none;
  box-shadow: none;
}

/* ── ADMIN NAV SIDEBAR ──────────────────────────────── */
.admin-nav-bar {
  position: fixed;
  left: 0;
  top: 54px;
  bottom: 0;
  width: 172px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #1e2532;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: .6rem 0;
  margin: 0;
  z-index: 20;
  box-shadow: none;
}

.admin-nav-pill {
  display: block;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  letter-spacing: .05em;
  font-family: var(--font-body);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-nav-pill:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.nav-ico {
  display: inline-block;
  width: 1.4em;
  margin-right: .3em;
  text-align: center;
  font-style: normal;
  opacity: .85;
}

.admin-nav-pill-bot {
  color: #a5b4fc !important;
  border-top: 1px solid rgba(165,180,252,.2);
  margin-top: .4rem;
}
.admin-nav-pill-bot:hover { background: rgba(165,180,252,.15); color: #c7d2fe !important; }

.admin-nav-pill-primary {
  background: #1a56db;
  color: #fff !important;
  font-weight: 700;
  margin: .4rem .65rem .65rem;
  padding: .5rem .8rem;
  text-align: center;
  border-bottom: none;
  letter-spacing: .08em;
}
.admin-nav-pill-primary:hover { background: #1042a8; color: #fff !important; }

.admin-nav-version {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 172px;
  padding: .45rem 1.1rem;
  font-size: .65rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.25);
  letter-spacing: .08em;
  background: #1e2532;
  border-top: 1px solid rgba(255,255,255,.06);
  z-index: 21;
}

/* Offset main content for sidebar */
.admin-body main.wrap,
.admin-body .ew,
.admin-body .rw,
.admin-body .cp,
.admin-body .c-wrap,
.admin-body .v3-page {
  margin-left: 180px;
  padding-right: 1rem;
}
.admin-body main.wrap {
  max-width: 1220px;
  width: calc(100% - 180px - 1.5rem);
  padding-left: .5rem;
}

/* ── TREE NAV (Mockup 1 toggle) ────────────────────── */
/* Hide the inactive nav */
.nav-classic .admin-nav-tree { display: none; }
.nav-tree .admin-nav-bar { display: none; }

/* Tree sidebar layout */
.admin-nav-tree {
  position: fixed;
  left: 0;
  top: 54px;
  bottom: 0;
  width: 220px;
  overflow-y: auto;
  background: #1e2532;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: .7rem 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.tree-action {
  display: block;
  margin: 0 .75rem .7rem;
  padding: .55rem 0;
  text-align: center;
  background: #c8b99a;
  color: #1e2532;
  border-radius: 6px;
  font-weight: 700;
  font-size: .75rem;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .12s;
}
.tree-action:hover { background: #baa87e; text-decoration: none; color: #1e2532; }

.tree-group { margin-bottom: 2px; }

.tree-group-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.tree-group-head:hover { color: rgba(255,255,255,.75); }

.tree-arrow {
  font-size: .5rem;
  transition: transform .2s;
  display: inline-block;
}
.tree-arrow.open { transform: rotate(90deg); }

.tree-group-items { }
.tree-group-items.tree-collapsed { display: none; }

.tree-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem .45rem 1.7rem;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .12s;
  cursor: pointer;
}
.tree-item:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.tree-item.tree-active {
  border-left-color: #c8b99a;
  color: #fff;
  background: rgba(200,185,154,.1);
}

.tree-item-bot { color: #a5b4fc !important; }
.tree-item-bot:hover { color: #c7d2fe !important; background: rgba(165,180,252,.12); }

/* Tree nav offsets */
.nav-tree .admin-nav-version { width: 220px; }
.nav-tree.admin-body main.wrap,
.nav-tree.admin-body .ew,
.nav-tree.admin-body .rw,
.nav-tree.admin-body .cp,
.nav-tree.admin-body .c-wrap,
.nav-tree.admin-body .v3-page,
.nav-tree .vl-page,
.nav-tree .dash-page {
  margin-left: 228px;
}
.nav-tree.admin-body main.wrap {
  width: calc(100% - 228px - 1.5rem);
}

/* ── ADMIN RESPONSIVE (mobile) ──────────────────────── */
@media (max-width: 768px) {
  .admin-nav-bar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: .2rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    bottom: auto;
  }
  .admin-nav-bar::-webkit-scrollbar { display: none; }
  .admin-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,.06);
    padding: .5rem .75rem;
    font-size: .7rem;
    flex-shrink: 0;
  }
  .admin-nav-pill-primary {
    margin: .2rem .4rem;
    flex-shrink: 0;
  }
  .admin-nav-pill-bot { margin-top: 0; border-top: none; }
  .admin-nav-version {
    position: static;
    width: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    font-size: .6rem;
    border-top: none;
    background: transparent;
    opacity: .5;
  }
  .admin-body main.wrap,
  .admin-body .ew,
  .admin-body .rw,
  .admin-body .cp,
  .admin-body .c-wrap,
  .admin-body .v3-page {
    margin-left: 0 !important;
    width: 100% !important;
    padding-right: .5rem;
  }
  .admin-body main.wrap {
    padding-left: .5rem;
  }
  /* Hide tree nav on mobile, fall back to classic horizontal */
  .admin-nav-tree { display: none !important; }
  .nav-tree .admin-nav-bar { display: flex !important; }
  #nav-style-toggle { display: none !important; }
  /* Shrink topbar on mobile */
  .admin-site-title-sub { display: none; }
  .admin-site-title-main { font-size: .82rem; }
  .admin-topbar-row { padding: .45rem .75rem !important; }
  .admin-site-stamp { display: none; }
  /* Hide icon labels in nav to save space - keep icons only */
  .nav-ico { width: auto; margin-right: .1em; }
  /* Two action buttons side by side */
  .admin-top-actions { display: flex; gap: .35rem; }
  .top-action-btn { font-size: .65rem; padding: .25rem .5rem; }
}

/* ── PANELS / SURFACES ──────────────────────────────── */
.hero, .panel, .card, .table-wrap, .flash,
.stat-card, .kpi-box, .visit-form-section,
.mini-stat, .note-box, .sticky-actions {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--shadow-md);
  padding: 1.1rem;
}
.hero { border-top: 4px solid var(--accent); }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
.eyebrow {
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
}

h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  font-family: var(--font-display);
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.meta, .muted, .subtle, .notice, .helper-line { color: var(--muted); }
.notice { border-left: 4px solid var(--accent); padding-left: .8rem; font-style: italic; }

/* ── GRIDS ──────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.kpi-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem; }
.stats-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.stats-strip-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }

/* ── PILLS / CHIPS / SCORES ─────────────────────────── */
.pills, .admin-actions, .small-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.pill, .score, .chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1px solid var(--line-dark);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-body);
}
.score { background: #e8f5ee; color: var(--good); border-color: #9fcfb0; }
.chip  { background: var(--bg2); color: var(--muted); }
.pill-primary { background: var(--accent); color: #fff; border-color: var(--accent-dk); }
.pill-primary:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.admin-body .pill-primary { background: #1a56db; color: #fff; border-color: #1042a8; }
.admin-body .pill-primary:hover { background: #1042a8; }

.score-good { color: var(--good); font-weight: 700; }
.score-mid  { color: var(--mid);  font-weight: 700; }
.score-bad  { color: var(--bad);  font-weight: 700; }

/* ── FORMS ──────────────────────────────────────────── */
.form-grid, .visit-editor-grid, .dish-rows, .timeline { display: grid; gap: .85rem; }

label { display: grid; gap: .3rem; font-weight: 500; font-size: .99rem; font-family: var(--font-body); }

input, select, textarea, button {
  font: inherit;
  padding: .68rem .82rem;
  border: 2px solid var(--line-dark);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
}
input::placeholder, textarea::placeholder { color: #b0a898; }
textarea { min-height: 110px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 rgba(201,79,26,.12);
}

button {
  cursor: pointer;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line-dark);
  letter-spacing: .04em;
  font-family: var(--font-body);
}
button:hover { background: var(--bg2); }
button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
button.primary:hover { background: var(--accent); border-color: var(--accent); }
button.secondary { background: #1b6e3f; color: #fff; border-color: #1b6e3f; }
button.secondary:hover { background: #134f2d; border-color: #134f2d; }
button.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
button.danger:hover { background: #8c1010; border-color: #8c1010; }

/* ── FLASH ──────────────────────────────────────────── */
.flash { border-left: 6px solid #1b6e3f; }
.flash-success { border-left-color: var(--good); }
.flash-warning { border-left-color: var(--gold); }
.flash-danger  { border-left-color: var(--bad); }

/* ── TABLES ─────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65rem .75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  border-top: none;
  font-family: var(--font-body);
}
tr:hover td { background: #faf7f2; }

/* ── SECTION HEADS ──────────────────────────────────── */
.section-head, .subpanel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── KPI / STATS ────────────────────────────────────── */
.stat-number, .kpi-value { font-size: 2rem; font-weight: 900; color: var(--text); font-family: var(--font-display); }
.kpi-label, .mini-stat-label {
  font-size: .97rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
}
.mini-stat-value { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); }

/* ── MISC ────────────────────────────────────────────── */
.timeline-item { border-left: 4px solid var(--accent); padding-left: 1rem; }
.inline-form { display: inline; }
.table-actions { white-space: nowrap; }
.full-width-form { width: 100%; }
.form-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.multi-select { min-height: 130px; }
.section-divider { border-top: 2px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.utility-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.quick-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.topline-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.table-caption { padding: 0 0 .6rem; color: var(--muted); font-size: 1.02rem; }
.full-width-table { overflow: auto; }
.full-width-table table { min-width: 900px; }
.recent-visits-wrap .table-wrap { padding: 0; overflow: auto; }
.recent-visits-wrap table { min-width: 920px; }
.row-tight { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.note-box { background: var(--gold-lt); border-color: var(--line-dark); border-left: 4px solid var(--gold); }
.kbd { display: inline-flex; align-items: center; padding: .15rem .4rem; background: var(--bg2); border: 1px solid var(--line-dark); font-size: 1.08rem; font-weight: 600; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: .72rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 1.1rem;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
}
.hero-cta:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; color: #fff; }

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: .72rem 1.2rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 1.1rem;
  border: 2px solid var(--text);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
}
.hero-cta-secondary:hover { background: var(--bg2); text-decoration: none; }

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border: 2px solid var(--text);
  border-bottom: none;
  padding: .9rem;
  box-shadow: 0 -4px 0 rgba(0,0,0,.1);
}

.card-link { color: inherit; text-decoration: none; }
.card-link:hover .card { transform: translateY(-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.14); }
.card { transition: transform .12s ease, box-shadow .12s ease; }

.chicken-hero { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chicken-hero img { width: 80px; height: 80px; border: 2px solid var(--text); display: block; }
.admin-mascot-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-mascot-card img { width: 64px; height: 64px; border: 2px solid var(--line-dark); display: block; }

/* ── DISH ROW (admin) ───────────────────────────────── */
.dish-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr .8fr .7fr 1fr auto;
  gap: .75rem;
  align-items: end;
  padding: 1rem;
  border: 2px solid var(--line);
  background: var(--bg);
}
.dish-row-full { grid-column: 1 / -1; }
.inline-fields { display: grid; grid-template-columns: 1.5fr .7fr .9fr 1.2fr auto; gap: .75rem; align-items: end; }
.inline-fields-restaurant { display: grid; grid-template-columns: 1.6fr 1.2fr 1.2fr 1.4fr auto; gap: .75rem; align-items: end; }
.inline-fields-city { display: grid; grid-template-columns: 1.3fr .7fr .9fr 1.2fr auto; gap: .75rem; align-items: end; }

/* ── HOMEPAGE MASTHEAD ──────────────────────────────── */
.home-masthead {
  border-bottom: 3px solid var(--navy);
  padding: 3.5rem 0 3rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}


.home-masthead-inner {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-kicker {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #f5c842;
  font-weight: 600;
  margin-bottom: .6rem;
  font-family: var(--font-body);
}

.home-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
  color: #fff;
  font-family: var(--font-display);
}

.home-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.home-stats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  font-family: var(--font-body);
}
.home-stat-dot { color: #f5c842; }

/* Homepage two-col layout */
.home-layout {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--navy);
  padding-bottom: .6rem;
  margin-bottom: 0;
}
.feed-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: var(--font-body);
}
.feed-all-link {
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
}
.feed-all-link:hover { color: var(--accent-dk); text-decoration: none; }

/* ── JOURNAL LIST ───────────────────────────────────── */
.journal-list { list-style: none; margin: 0; padding: 0; }

.journal-dateline {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .35rem;
}
.journal-date {
  font-size: .87rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  font-family: var(--font-body);
}
.journal-meal, .journal-city {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--font-body);
}
.journal-city a { color: var(--muted); }
.journal-city a:hover { color: var(--accent); }

.journal-dish-count {
  font-size: 1.1rem;
  color: var(--good);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: #e8f5ee;
  border: 1px solid #9fcfb0;
  padding: .1rem .45rem;
  font-family: var(--font-body);
}

.journal-main {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.journal-restaurant {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-family: var(--font-display);
}
.journal-restaurant:hover { color: var(--accent); text-decoration: none; }

.journal-score {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  padding: .12rem .55rem;
  border: 2px solid currentColor;
  line-height: 1.3;
  font-family: var(--font-mono);
}

.journal-people {
  font-size: .87rem;
  color: var(--muted);
  margin-top: .25rem;
  font-family: var(--font-body);
}
.journal-people a { color: var(--muted); border-bottom: 1px solid var(--line-dark); }
.journal-people a:hover { color: var(--accent); text-decoration: none; }

.journal-notes {
  margin-top: .45rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  font-family: var(--font-body);
}

/* visit-entry extras on visits.php */
.visit-entry { position: relative; }
.visit-receipt-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--accent);
}
.visit-receipt-link:hover { text-decoration: none; color: var(--accent-dk); border-color: var(--accent-dk); }

/* ── VISITS PAGE MASTHEAD ───────────────────────────── */
.visits-masthead {
  border-bottom: 3px solid var(--navy);
  padding: 2.5rem 0 2rem;
  background: var(--navy);
  margin-bottom: 0;
}

.visits-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.0;
  margin: .4rem 0 .5rem;
}

.visits-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  font-family: var(--font-display);
}

.visits-feed-wrap {
  padding: 2rem 0 3rem;
}

.visits-journal .journal-restaurant { font-size: 1.6rem; }

/* ── SIDEBAR ────────────────────────────────────────── */
.home-sidebar { position: sticky; top: 5rem; }

.sidebar-block {
  border: 2px solid var(--navy);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}
.sidebar-block:last-child { margin-bottom: 0; }

.sidebar-heading {
  font-size: .97rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--navy);
  font-family: var(--font-body);
}

.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li + li { border-top: 1px solid var(--line); }
.sidebar-links a {
  display: block;
  padding: .48rem 0;
  font-size: 1.02rem;
  color: var(--text);
  font-family: var(--font-body);
}
.sidebar-links a:hover { color: var(--accent); text-decoration: none; }

.sidebar-score-key { list-style: none; margin: 0; padding: 0; font-size: 1.1rem; }
.sidebar-score-key li {
  padding: .32rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-body);
}
.sidebar-score-key li:first-child { border-top: none; }
.sidebar-score-key span { font-weight: 700; margin-right: .4rem; font-family: var(--font-mono); }

/* ── RECEIPT (visit.php) ────────────────────────────── */
.visit-page-layout {
  max-width: 740px;
  margin: 0 auto;
}

.visit-breadcrumb {
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  font-family: var(--font-body);
}
.visit-breadcrumb a { color: var(--muted); }
.visit-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.visit-breadcrumb span { color: var(--line-dark); }

.receipt-card {
  background: #fff;
  box-shadow: 8px 8px 0 rgba(26,39,68,.15), 0 0 0 1px rgba(26,39,68,.1);
  position: relative;
}

/* Torn paper effect -- zigzag top and bottom */
.receipt-torn-top {
  height: 16px;
  background:
    linear-gradient(135deg, #fff 25%, transparent 25%) -8px 0,
    linear-gradient(225deg, #fff 25%, transparent 25%) -8px 0,
    linear-gradient(315deg, #fff 25%, transparent 25%),
    linear-gradient(45deg,  #fff 25%, transparent 25%);
  background-size: 16px 16px;
  background-color: var(--bg);
  margin-bottom: -1px;
}
.receipt-torn-bottom {
  height: 16px;
  background:
    linear-gradient(135deg, var(--bg) 25%, transparent 25%) -8px 0,
    linear-gradient(225deg, var(--bg) 25%, transparent 25%) -8px 0,
    linear-gradient(315deg, var(--bg) 25%, transparent 25%),
    linear-gradient(45deg,  var(--bg) 25%, transparent 25%);
  background-size: 16px 16px;
  background-color: #fff;
  margin-top: -1px;
}

/* Receipt masthead */
.receipt-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
  background: var(--navy);
  color: #fff;
}

.receipt-store-name {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.receipt-store-meta {
  font-size: 1.08rem;
  color: rgba(255,255,255,.7);
  margin-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--font-body);
}
.receipt-store-meta a { color: rgba(255,255,255,.7); }
.receipt-store-meta a:hover { color: #f5c842; text-decoration: none; }

.receipt-score-hero {
  text-align: right;
  flex-shrink: 0;
}
.receipt-score-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}
.receipt-score-num.score-good { color: #5ede9a; }
.receipt-score-num.score-mid  { color: #f5c842; }
.receipt-score-num.score-bad  { color: #f07070; }
.receipt-score-denom {
  font-size: 1rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
}

/* Receipt subheader */
.receipt-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.75rem;
  background: rgba(26,39,68,.06);
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  flex-wrap: wrap;
}

.receipt-subheader-left {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.receipt-day {
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-family: var(--font-body);
}
.receipt-date-full {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
}
.receipt-meal-badge {
  font-size: .93rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  font-family: var(--font-body);
  font-weight: 600;
}

.receipt-people {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* Receipt rule */
.receipt-rule {
  border: none;
  border-top: 1px dashed var(--line-dark);
  margin: 0 1.75rem;
}

/* Receipt body */
.receipt-body {
  padding: .75rem 1.75rem;
  font-family: var(--font-mono);
}

.receipt-course { margin-bottom: .5rem; }
.receipt-course:last-child { margin-bottom: 0; }

.receipt-course-label {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: .25rem;
  margin-bottom: .4rem;
  margin-top: .85rem;
  font-family: var(--font-body);
}
.receipt-course:first-child .receipt-course-label { margin-top: 0; }

.receipt-dish {
  padding: .35rem 0;
  border-bottom: 1px dotted var(--line);
}
.receipt-dish:last-child { border-bottom: none; }

.receipt-dish-main {
  display: flex;
  align-items: baseline;
  gap: .55rem;
}
.receipt-dish-name {
  flex: 1;
  font-size: 1.02rem;
}
.receipt-dish-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-dark);
  margin-bottom: .22rem;
  min-width: 20px;
}
.receipt-dish-price {
  font-size: 1.02rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}
.receipt-dish-detail {
  font-size: .89rem;
  color: var(--muted);
  padding-left: 1.6rem;
  margin-top: .15rem;
  line-height: 1.4;
}
.receipt-dish-detail::before { content: '> '; color: var(--accent); }
.receipt-dish-review { font-style: italic; }

/* Dish score badge */
.dscore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  font-size: .87rem;
  font-weight: 500;
  border: 1px solid currentColor;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.dscore-good { color: var(--good); }
.dscore-mid  { color: var(--mid); }
.dscore-bad  { color: var(--bad); }

/* Receipt totals */
.receipt-totals-block {
  padding: .85rem 1.75rem;
  font-family: var(--font-mono);
}
.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .97rem;
  padding: .1rem 0;
  color: var(--muted);
}
.receipt-total-final {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-top: 2px solid var(--navy);
  margin-top: .4rem;
  padding-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Receipt notes */
.receipt-notes-block {
  padding: .85rem 1.75rem 1rem;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--muted);
  font-family: var(--font-display);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  background: rgba(192,128,32,.04);
}

.visit-page-footer-links {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.visit-page-footer-links a { color: var(--accent); font-weight: 600; }

/* ── ADMIN VISITS ───────────────────────────────────── */
.qcr-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr auto;
  gap: .75rem;
  align-items: start;
}

fieldset.visit-form-section {
  border: 2px solid var(--line);
  padding: 1rem;
  margin: 0;
}
fieldset.visit-form-section:focus-within { border-color: var(--line-dark); }

.vfs-legend {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0 .4rem;
  color: var(--navy);
  font-family: var(--font-body);
}
.vfs-optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.vfs-legend-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .5rem;
}

.visit-money-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}

.dish-row-v2 {
  border: 2px solid var(--line);
  background: var(--bg);
  margin-bottom: .6rem;
}
.dish-row-v2:last-child { margin-bottom: 0; }

.dish-row-top {
  display: grid;
  grid-template-columns: .9fr 1.4fr 1.5fr .7fr .6fr auto;
  gap: .6rem;
  align-items: end;
  padding: .75rem .75rem .5rem;
  border-bottom: 1px solid var(--line);
}

.dish-row-bottom { padding: .5rem .75rem .65rem; }
.dish-row-bottom label { font-size: 1.1rem; }
.dish-row-bottom textarea { min-height: 60px; font-size: .99rem; padding: .5rem .7rem; }

.dish-row-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.dish-field-remove { display: flex; align-items: flex-end; padding-bottom: 2px; }
.dish-field-remove button { padding: .6rem .75rem; font-size: 1rem; }

.visits-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 1.25rem;
}
.visits-page-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-family: var(--font-display);
}

.row-editing td { background: #fff8f0 !important; }

/* ── SITE FOOTER BAR ────────────────────────────────── */
.site-footer-bar {
  border-top: 3px solid var(--navy);
  background: var(--navy);
  padding: .7rem 0;
  margin-top: 2rem;
}
.site-footer-inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .97rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
  font-family: var(--font-body);
}
.site-footer-release {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  font-family: var(--font-mono);
}
.site-footer-sep { color: rgba(255,255,255,.2); }
.site-footer-bar a { color: rgba(255,255,255,.5); }
.site-footer-bar a:hover { color: #fff; text-decoration: none; }

/* ── COLLAPSIBLE QCR ────────────────────────────────── */
.qcr-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: .7rem 0;
}
.qcr-toggle::-webkit-details-marker { display: none; }
.qcr-toggle-label {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .04em;
  font-family: var(--font-body);
}
.qcr-toggle-hint {
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 400;
}
.qcr-toggle-arrow { font-size: 1.1rem; color: var(--muted); transition: transform .15s; }
details[open] .qcr-toggle-arrow { transform: rotate(90deg); }
.qcr-body { padding-top: .75rem; border-top: 1px solid var(--line); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
}

@media (max-width: 1100px) {
  .grid-2, .grid-3, .stat-grid, .kpi-row, .dish-row,
  .inline-fields, .inline-fields-restaurant, .inline-fields-city,
  .stats-strip, .stats-strip-4, .row-tight,
  .dish-row-top, .visit-money-row, .qcr-grid,
  .dish-row-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CITY CARDS -- cities.php
   ============================================================ */

.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: .5rem;
}

.city-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.city-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 3px solid var(--navy);
  box-shadow: 6px 6px 0 rgba(26,39,68,.18);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.city-card-link:hover .city-card {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0 rgba(26,39,68,.22);
  text-decoration: none;
}

/* The decorative background layer */
.city-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Content sits above the bg */
.city-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 100%);
}

.city-card-icon {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2.5rem;
  line-height: 1;
  opacity: .85;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.city-card-body { flex: 1; }

.city-card-vibe {
  font-size: .93rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-bottom: .2rem;
  font-family: var(--font-body);
}

.city-card-name {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.0;
  margin: 0 0 .2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.city-card-location {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-body);
}

.city-card-stats {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  align-items: flex-end;
}

.city-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.city-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: var(--font-display);
}
.city-stat-num.score-good { color: #5ede9a; }
.city-stat-num.score-mid  { color: #f5c842; }
.city-stat-num.score-bad  { color: #f07070; }

.city-stat-label {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  font-family: var(--font-body);
  margin-top: 1px;
}

/* ── MAUI -- tropical ocean waves ── */
.city-maui {
  background-color: #0077b6;
}
.city-maui .city-card-bg {
  background:
    /* sun */
    radial-gradient(circle at 75% 30%, rgba(255,220,60,.35) 0%, transparent 45%),
    /* deep water */
    linear-gradient(180deg, #023e8a 0%, #0096c7 40%, #00b4d8 65%, #48cae4 85%, #90e0ef 100%);
}
/* Wave pattern overlay */
.city-maui .city-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 28px,
      rgba(255,255,255,.07) 28px,
      rgba(255,255,255,.07) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 18px,
      rgba(255,255,255,.04) 18px,
      rgba(255,255,255,.04) 19px
    );
}

/* ── SEATTLE -- rain and grey greens ── */
.city-seattle {
  background-color: #2d4a3e;
}
.city-seattle .city-card-bg {
  background:
    /* overcast sky glow */
    radial-gradient(ellipse at 30% 0%, rgba(180,200,200,.25) 0%, transparent 55%),
    /* forest gradient */
    linear-gradient(160deg, #1a3a2e 0%, #2d4a3e 35%, #3a5c4a 60%, #4a7060 100%);
}
/* Rain dots */
.city-seattle .city-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent 0px,
      transparent 12px,
      rgba(180,220,210,.08) 12px,
      rgba(180,220,210,.08) 13px
    );
}

/* ── AUSTIN -- terracotta desert heat ── */
.city-austin {
  background-color: #8b3a1a;
}
.city-austin .city-card-bg {
  background:
    /* blazing sun */
    radial-gradient(circle at 80% 20%, rgba(255,200,50,.4) 0%, transparent 50%),
    /* desert gradient */
    linear-gradient(160deg, #5c1a0a 0%, #8b3a1a 30%, #c05a20 60%, #d4784a 85%, #e8a060 100%);
}
/* Heat shimmer lines */
.city-austin .city-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -30deg,
      transparent 0px,
      transparent 20px,
      rgba(255,255,255,.04) 20px,
      rgba(255,255,255,.04) 21px
    );
}

/* ── DEFAULT (any future city) ── */
.city-default {
  background-color: var(--navy);
}
.city-default .city-card-bg {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6b 100%);
}

/* ============================================================
   cccc-0105 -- NEW PAGE DESIGNS
   ============================================================ */

/* ── CITIES PAGE ── */
.cities-page { background: var(--bg); }

.cities-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.cities-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 40px);
  pointer-events: none;
}
.cities-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.cities-hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  font-family: var(--font-body);
}
.cities-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: #fff;
  margin: .15rem 0 .25rem;
  line-height: 1;
}
.cities-hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-body);
}
.cities-hero-stats {
  display: flex;
  gap: 1.5rem;
}
.cities-hero-stat {
  text-align: center;
}
.cities-hero-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-body);
  display: block;
  line-height: 1;
}
.cities-hero-stat-lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
  font-family: var(--font-body);
}

.cities-body {
  padding: 1.5rem 0 2.5rem;
}

/* Featured (first/top) city card */
.city-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}
.city-featured {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 3px solid var(--navy);
  box-shadow: 6px 6px 0 rgba(26,39,68,.18);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.city-featured-link:hover .city-featured {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0 rgba(26,39,68,.22);
  text-decoration: none;
}
.city-featured-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 100%);
}
.city-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: .3rem .7rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  z-index: 2;
}
.city-featured-body { flex: 1; }
.city-featured-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
  margin: 0 0 .2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Country section headers */
.cities-country-section { margin-bottom: .5rem; }
.cities-country-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}
.cities-country-flag { font-size: 1.3rem; line-height: 1; }
.cities-country-name {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text);
  font-family: var(--font-body);
}
.cities-country-cnt {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-body);
}

/* Rank badge on cards */
.city-card-rank {
  position: absolute;
  top: .75rem;
  left: .9rem;
  font-size: .7rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.4);
  padding: .15rem .4rem;
  z-index: 2;
  backdrop-filter: blur(4px);
  letter-spacing: .03em;
}

/* "Recent" badge */
.city-card-new-badge {
  position: absolute;
  top: .75rem;
  right: .9rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .2rem .45rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  z-index: 2;
}

/* Top restaurant line on cards */
.city-card-top-rest {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-body);
  margin-top: .15rem;
}

@media (max-width: 700px) {
  .cities-hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cities-hero-stats { gap: 1rem; flex-wrap: wrap; }
  .city-featured { min-height: 200px; }
  .city-featured-content { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem 1.2rem; }
}

/* ── VISIT PAGE REDESIGN ───────────────────────────────── */

/* Navigation breadcrumb bar */
.vp-nav {
  background: var(--navy);
  padding: .6rem 0;
  border-bottom: 3px solid var(--accent);
}
.vp-nav-inner {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.vp-nav-inner a {
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .2rem .1rem;
}
.vp-nav-inner a:hover { color: #fff; text-decoration: none; }
.vp-nav-sep { color: rgba(255,255,255,.3); font-size: .8rem; }

/* Visit header */
.vp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--line);
}
.vp-header-main { flex: 1; }
.vp-header-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1;
  margin: 0 0 .5rem;
}
.vp-header-details {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}
.vp-header-date {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
}
.vp-header-meal {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  padding: .2rem .5rem;
  font-family: var(--font-body);
}
.vp-meal-lunch    { background: #e6faf2; color: var(--good); }
.vp-meal-dinner   { background: var(--bg2); color: var(--accent); }
.vp-meal-brunch   { background: #fef3cd; color: #856404; }
.vp-meal-breakfast { background: #fef3cd; color: #856404; }
.vp-header-loc {
  font-size: .9rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.vp-header-loc a { color: var(--muted); border-bottom: 1px solid var(--line); text-decoration: none; }
.vp-header-loc a:hover { color: var(--accent); }
.vp-header-people {
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font-body);
  margin-top: .25rem;
}
.vp-header-people a { color: var(--accent); text-decoration: none; font-weight: 600; }
.vp-header-people a:hover { text-decoration: underline; }

/* Score block */
.vp-header-score {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  flex-shrink: 0;
}
.vp-header-score.score-good { background: var(--good); }
.vp-header-score.score-mid  { background: var(--mid); }
.vp-header-score.score-bad  { background: var(--bad); }
.vp-header-score-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-body);
  line-height: 1;
}
.vp-header-score-sub {
  font-size: .8rem;
  opacity: .7;
  font-family: var(--font-body);
}

/* Body - stacked cards */
.vp-body {
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.vp-card {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.vp-card-head {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--muted);
  padding: .75rem 1.1rem;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-body);
  margin: 0;
  background: var(--bg);
}
.vp-notes-text {
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font-body);
  padding: .85rem 1.1rem;
  line-height: 1.6;
}
.vp-photo { margin: 0; }
.vp-photo img { width: 100%; display: block; border: 2px solid var(--text); box-shadow: var(--shadow-md); }

/* Override old vzine styles when inside new layout */
.vp-card .vzine-dishes { padding: .5rem 1.1rem; }
.vp-card .vzine-course-head { font-size: .82rem; }
.vp-card .vzine-dish-row { font-size: .95rem; }
.vp-card .vzine-totals { border-top-color: var(--line); padding: .7rem 1.1rem .8rem; }

.vp-footer-link {
  text-align: center;
  padding: .5rem 0;
}
.vp-footer-link a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-body);
}
.vp-footer-link a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 700px) {
  .vp-header { flex-direction: column; gap: .75rem; }
  .vp-header-details { flex-direction: column; align-items: flex-start; gap: .25rem; }
}

/* Dark mode */
[data-theme="dark"] .vp-nav { background: #120e1c; }
[data-theme="dark"] .vp-header { border-bottom-color: var(--line-dark); }
[data-theme="dark"] .vp-card { border-color: var(--line-dark); }
[data-theme="dark"] .vp-card-head { background: var(--bg2); border-bottom-color: var(--line-dark); }

/* ── VISITS TIMELINE (Option B) ── */
.visits-tl-page { background: var(--bg-cream, #faf6ef); }

.visits-tl-header {
  background: var(--navy);
  padding: 2rem 0 1.75rem;
  border-bottom: 4px solid var(--accent);
}
.visits-tl-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: .95;
  margin: .3rem 0 .4rem;
}
.visits-tl-count {
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  font-family: var(--font-body);
}

.visits-filter-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.tl-filter-btn {
  display: inline-block;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none;
}
.tl-filter-btn:hover { color: var(--text); text-decoration: none; }
.tl-filter-btn.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.tl-people {
  font-size: .8rem;
  color: #8a7f74;
  font-family: var(--font-body);
  margin-top: .15rem;
}
.tl-people a { color: #8a7f74; border-bottom: 1px solid #c8bfb2; text-decoration: none; }
.tl-people a:hover { color: var(--accent); }

.visits-tl-wrap { padding: 1.75rem 0 2.5rem; }

.tl-month-group { margin-bottom: 2rem; }

.tl-month-label {
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  border-bottom: 2px solid var(--navy);
  padding-bottom: .35rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}

.tl-items { }

.tl-item {
  display: grid;
  grid-template-columns: 52px 20px 1fr;
  gap: 0 .85rem;
  padding: .1rem 0;
}

.tl-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: .85rem;
}
.tl-day-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #c8bfb2;
  font-family: var(--font-display);
  line-height: 1;
}
.tl-day-name {
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b8afa8;
  font-family: var(--font-body);
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tl-dot {
  width: 13px;
  height: 13px;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: .9rem;
  z-index: 1;
  position: relative;
}
.tl-dot.score-good { background: var(--score-good, #1b6e3f); }
.tl-dot.score-mid  { background: var(--score-mid, #8a6200); }
.tl-dot.score-bad  { background: var(--score-bad, #b81a1a); }
.tl-line {
  flex: 1;
  width: 2px;
  background: #d8d0c0;
  margin-top: 2px;
}
.tl-item:last-child .tl-line { display: none; }

.tl-content {
  padding: .75rem 0 1rem;
  border-bottom: 1px solid #e0d8cc;
}
.tl-item:last-child .tl-content { border-bottom: none; }

.tl-meta-row {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .93rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a7f74;
  margin-bottom: .2rem;
  font-family: var(--font-body);
}
.tl-sep { color: #c8bfb2; }
.tl-city a { color: #8a7f74; text-decoration: none; border-bottom: 1px solid #c8bfb2; }
.tl-city a:hover { color: var(--accent); }
.tl-meal { font-weight: 600; }

.tl-name-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.tl-restaurant {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-dark, #1a1410);
  text-decoration: none;
  line-height: 1.1;
}
.tl-restaurant:hover { color: var(--accent); text-decoration: none; }

.tl-score-blk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-weight: 900;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  color: #fff;
  flex-shrink: 0;
}
.tl-score-blk.score-good { background: var(--score-good, #1b6e3f); }
.tl-score-blk.score-mid  { background: var(--score-mid, #8a6200); }
.tl-score-blk.score-bad  { background: var(--score-bad, #b81a1a); }

.tl-notes {
  font-size: .95rem;
  color: #8a7f74;
  font-family: var(--font-body);
  border-left: 3px solid #d0c8b8;
  padding-left: .65rem;
  margin-top: .35rem;
  line-height: 1.5;
}

/* ── VISIT ZINE HYBRID (C layout / A width / B styling) ── */
.visit-zine-wrap { padding: 1.5rem 0 2.5rem; }

.visit-zine-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fdfaf5;
  border: 3px solid var(--navy);
  box-shadow: 5px 7px 0 rgba(26,39,68,.11), 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  position: relative;
}

/* Thermal receipt tear edges */
.vzine-tear {
  height: 13px;
  flex-shrink: 0;
}
.vzine-tear-top {
  background: radial-gradient(circle at 10px 0, #f8f3e8 7.5px, #fdfaf5 7.5px) 0 0 / 20px 13px repeat-x;
}
.vzine-tear-bottom {
  background: radial-gradient(circle at 10px 13px, #f8f3e8 7.5px, #fdfaf5 7.5px) 0 0 / 20px 13px repeat-x;
  border-top: 1px dashed rgba(180,160,120,.4);
}

/* Top block */
.vzine-top {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-bottom: 3px solid var(--navy);
}
.vzine-top-left {
  padding: 1.3rem 1.4rem 1.2rem;
  border-right: 3px solid var(--navy);
}
.vzine-stamp-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}
.vzine-stamp {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--accent-lt);
  color: var(--navy);
  padding: .2rem .5rem;
  display: inline-block;
  font-weight: 600;
  font-family: var(--font-body);
}
.vzine-meal {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .2rem .55rem;
  display: inline-block;
}
.vzine-meal-lunch  { background: var(--good-lt, #84ffc9); color: #1a4a38; }
.vzine-meal-dinner { background: var(--lilac, #eca0ff);   color: #4a1a60; }
.vzine-name {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: .95;
  color: var(--navy);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.vzine-location {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a7f74;
  font-family: var(--font-body);
  margin-top: .15rem;
}
.vzine-location a { color: #8a7f74; border-bottom: 1px solid #c8bfb2; text-decoration: none; }
.vzine-location a:hover { color: var(--accent); }
.vzine-people {
  font-size: .87rem;
  color: #8a7f74;
  margin-top: .25rem;
  font-family: var(--font-body);
}

.vzine-top-right {
  background: var(--bad, #b81a1a);
  min-width: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  gap: 0;
}
.vzine-top-right.score-good { background: var(--good); }
.vzine-top-right.score-mid  { background: var(--mid); }
.vzine-top-right.score-bad  { background: var(--bad); }

.vzine-score-big {
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -.02em;
}
.vzine-score-sub {
  font-size: .62rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .15em;
  text-align: center;
  margin-top: .05rem;
  padding-top: .3rem;
  border-top: 1px solid rgba(255,255,255,.2);
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Score bar */
.vzine-score-bar-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.4rem;
  background: #f0ead9;
  border-bottom: 2px solid var(--navy);
}
.vzine-score-bar-lbl {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8a7f74;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
}
.vzine-score-track {
  flex: 1;
  height: 7px;
  background: #d8d0c0;
}
.vzine-score-fill { height: 100%; }
.vzine-score-fill.score-good { background: var(--score-good, #1b6e3f); }
.vzine-score-fill.score-mid  { background: var(--score-mid, #8a6200); }
.vzine-score-fill.score-bad  { background: var(--score-bad, #b81a1a); }
.vzine-score-num {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: var(--font-mono);
}
.vzine-score-num.score-good { color: var(--score-good, #1b6e3f); }
.vzine-score-num.score-mid  { color: var(--score-mid, #8a6200); }
.vzine-score-num.score-bad  { color: var(--score-bad, #b81a1a); }

/* Dishes */
.vzine-dishes { padding: .5rem 1.4rem .75rem; }
.vzine-course { margin-bottom: .2rem; }
.vzine-course-head {
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1.5px solid #d4cbbf;
  padding-bottom: .3rem;
  margin: 1.5rem 0 .5rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.vzine-course:first-child .vzine-course-head { margin-top: .5rem; }
.vzine-dish-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr 58px;
  gap: 0 .45rem;
  align-items: start;
  padding: .4rem 0;
  margin-top: 1rem;
  border-bottom: 1px dotted rgba(200,190,175,.5);
  font-size: 1rem;
  font-family: var(--font-mono);
}
.vzine-dish-row:last-child { border-bottom: none; }
.vzine-dish-name { font-family: var(--font-mono); overflow-wrap: break-word; line-height: 1.4; padding-top: .05rem; }
.vzine-dish-qty { font-size: .75em; font-weight: 700; color: #8a7460; letter-spacing: .03em; margin-left: .2em; }
.vzine-dish-price { white-space: nowrap; display: flex; justify-content: flex-end; align-items: baseline; padding-top: .05rem; color: #5a4a3a; }
.vzine-dish-price .price-dollar { flex-shrink: 0; }
.vzine-dish-price .price-amount { min-width: 4.8ch; text-align: right; }
/* Dish score badges inside visit dishes */
.vzine-dishes .rp-dish-badge {
  width: 1.5rem;
  height: 1.5rem;
  font-size: .68rem;
}
/* Override bars width inside the tight grid */
[data-dish-style="bars"] .vzine-dishes .rp-dish-badge { width: 4rem; }
[data-dish-style="stars"] .vzine-dishes .rp-dish-badge { width: auto; font-size: .7rem; }
/* Widen the grid column when bars or stars are active */
[data-dish-style="bars"] .vzine-dish-row { grid-template-columns: 4rem 1fr 58px; }
[data-dish-style="stars"] .vzine-dish-row { grid-template-columns: auto 1fr 58px; }

.vzine-dish-ingredients,
.vzine-dish-note {
  font-size: .84rem;
  font-style: normal;
  font-family: var(--font-body);
  padding-left: 2rem;
  margin-top: .2rem;
  margin-bottom: .2rem;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  line-height: 1.45;
}
.vzine-dish-ingredients { color: #5a5060; }
.vzine-dish-note        { color: var(--navy); }
.vzine-dish-detail-lbl {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .45;
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-body);
}

/* Totals */
.vzine-totals {
  border-top: 2px solid var(--navy);
  padding: .7rem 1.4rem .8rem;
}
.vzine-totals-head {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .4rem;
  font-family: var(--font-body);
}
.vzine-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .97rem;
  font-family: var(--font-mono);
  color: #6b6057;
  padding: .1rem 0;
  border-bottom: 1px dashed #cec8be;
}
.vzine-total-row:last-child { border-bottom: none; }
.vzine-total-final {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  border-bottom: none;
  padding-top: .3rem;
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Notes */
.vzine-notes {
  border-top: 2px solid var(--navy);
  padding: .75rem 1.4rem .8rem;
  background: rgba(43,45,66,.025);
}
.vzine-notes-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: .3rem;
}
.vzine-notes-text {
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ── RESTAURANTS RANKED (Option B) ── */
.rests-rank-page { background: #fff; }
.rests-rank-header {
  border-bottom: 3px solid var(--navy);
  padding: 1.75rem 0 1.25rem;
}
.rests-rank-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  font-family: var(--font-display);
  line-height: .95;
}
.rests-rank-wrap { padding: 0 0 2rem; }
.rests-rank-list { list-style: none; }

.rests-rank-item { border-bottom: 1px solid #e0d8cc; }
.rests-rank-item:last-child { border-bottom: none; }

.rests-rank-link {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text-dark, #1a1410);
}
.rests-rank-link:hover { background: #faf6ef; text-decoration: none; }
.rests-rank-link:hover .rests-rank-name { color: var(--accent); }

.rests-rank-num {
  font-size: 2rem;
  font-weight: 900;
  color: #d8d0c0;
  font-family: var(--font-display);
  text-align: center;
  line-height: 1;
}
.rests-rank-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.15;
}
.rests-rank-sub {
  font-size: .97rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a7f74;
  margin-top: .15rem;
  font-family: var(--font-body);
}
.rests-rank-score {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  min-width: 52px;
  text-align: right;
}
.rests-rank-score.score-good { color: var(--score-good, #1b6e3f); }
.rests-rank-score.score-mid  { color: var(--score-mid, #8a6200); }
.rests-rank-score.score-bad  { color: var(--score-bad, #b81a1a); }

/* ── RESTAURANT PROFILE (Redesign) ─────────────────────── */
.rp {
  background: var(--bg);
  /* Break out of the <main class="wrap"> container for full-width hero */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Hero */
.rp-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  padding: 2.5rem 0 0;
  position: relative;
  overflow: hidden;
}
.rp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,.03) 20px,
    rgba(255,255,255,.03) 40px
  );
  pointer-events: none;
}
.rp-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.rp-hero-text { flex: 1; }
.rp-hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.55);
  font-family: var(--font-body);
  margin-bottom: .25rem;
}
.rp-hero-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: #fff;
  line-height: .95;
  margin: 0 0 .5rem;
}
.rp-hero-loc {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  margin-bottom: .7rem;
}
.rp-hero-loc a { color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.3); text-decoration: none; }
.rp-hero-loc a:hover { color: #fff; text-decoration: none; }
.rp-hero-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.rp-pill {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .2rem .6rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-body);
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.rp-pill-link:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

/* Hero score ring */
.rp-hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: .3rem;
}
.rp-score-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}
.rp-score-ring.score-good { border-color: var(--good-lt, #84ffc9); background: rgba(0,184,122,.2); }
.rp-score-ring.score-mid  { border-color: var(--gold-lt, #f4f1bb); background: rgba(154,106,0,.2); }
.rp-score-ring.score-bad  { border-color: #fba09d; background: rgba(201,64,64,.2); }
.rp-score-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-body);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.rp-score-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  font-family: var(--font-body);
}

/* Stats strip at bottom of hero */
.rp-stats-strip {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}
.rp-stat {
  flex: 1;
  text-align: center;
  padding: .85rem .5rem;
  background: rgba(0,0,0,.15);
  border-right: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
}
.rp-stat:last-child { border-right: none; }
.rp-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
  display: block;
}
.rp-stat-num.score-good { color: var(--good-lt, #84ffc9); }
.rp-stat-num.score-mid  { color: var(--gold-lt, #f4f1bb); }
.rp-stat-num.score-bad  { color: #fba09d; }
.rp-stat-lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  font-family: var(--font-body);
  margin-top: .15rem;
  display: block;
}

/* Body - stacked cards */
.rp-body {
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.rp-card {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
}
.rp-card-head {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--muted);
  padding: .75rem 1.1rem;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-body);
  margin: 0;
  background: var(--bg);
}

/* Dish list */
.rp-dishes { padding: 0; }
.rp-dish {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.rp-dish:last-child { border-bottom: none; }
.rp-dish-alt { background: rgba(0,0,0,.02); }
/* ── Dish Score Palette Variables ── */
:root {
  --ds-1: #f35b04; --ds-1t: #fff;
  --ds-2: #f18701; --ds-2t: #fff;
  --ds-3: #f7b801; --ds-3t: #2b2d42;
  --ds-4: #7678ed; --ds-4t: #fff;
  --ds-5: #3d348b; --ds-5t: #fff;
  --ds-star: #f7b801;
}
[data-dish-color="tropical"] {
  --ds-1: #ff1654; --ds-1t: #fff;
  --ds-2: #f3ffbd; --ds-2t: #2b2d42;
  --ds-3: #b2dbbf; --ds-3t: #2b2d42;
  --ds-4: #70c1b3; --ds-4t: #fff;
  --ds-5: #247ba0; --ds-5t: #fff;
  --ds-star: #70c1b3;
}
[data-dish-color="dusty"] {
  --ds-1: #735d78; --ds-1t: #fff;
  --ds-2: #b392ac; --ds-2t: #fff;
  --ds-3: #d1b3c4; --ds-3t: #2b2d42;
  --ds-4: #e8c2ca; --ds-4t: #4a2a3a;
  --ds-5: #f7d1cd; --ds-5t: #4a2a3a;
  --ds-star: #b392ac;
}
[data-dish-color="lavender"] {
  --ds-1: #ffd8be; --ds-1t: #8a4500;
  --ds-2: #ffeedd; --ds-2t: #8a5a00;
  --ds-3: #f8f7ff; --ds-3t: #5a58a0;
  --ds-4: #b8b8ff; --ds-4t: #3d348b;
  --ds-5: #9381ff; --ds-5t: #fff;
  --ds-star: #9381ff;
}
[data-dish-color="beach"] {
  --ds-1: #ff6f69; --ds-1t: #fff;
  --ds-2: #ffcc5c; --ds-2t: #5a3e00;
  --ds-3: #ffeead; --ds-3t: #6b5a00;
  --ds-4: #96ceb4; --ds-4t: #1a3d2a;
  --ds-5: #88d8b0; --ds-5t: #1a3d2a;
  --ds-star: #ffcc5c;
}
[data-dish-color="neon"] {
  --ds-1: #ee4035; --ds-1t: #fff;
  --ds-2: #f37736; --ds-2t: #fff;
  --ds-3: #fdf498; --ds-3t: #5a5000;
  --ds-4: #7bc043; --ds-4t: #fff;
  --ds-5: #0392cf; --ds-5t: #fff;
  --ds-star: #7bc043;
}
[data-dish-color="midnight"] {
  --ds-1: #1e1f26; --ds-1t: #d0e1f9;
  --ds-2: #283655; --ds-2t: #d0e1f9;
  --ds-3: #4d648d; --ds-3t: #fff;
  --ds-4: #d0e1f9; --ds-4t: #283655;
  --ds-5: #63ace5; --ds-5t: #fff;
  --ds-star: #63ace5;
}
[data-dish-color="clay"] {
  --ds-1: #924622; --ds-1t: #fff;
  --ds-2: #9e7967; --ds-2t: #fff;
  --ds-3: #e6c2b2; --ds-3t: #5a2e10;
  --ds-4: #f7e8e1; --ds-4t: #5a2e10;
  --ds-5: #c05a20; --ds-5t: #fff;
  --ds-star: #c05a20;
}
[data-dish-color="candy"] {
  --ds-1: #fe4a49; --ds-1t: #fff;
  --ds-2: #fed766; --ds-2t: #6b5a00;
  --ds-3: #2ab7ca; --ds-3t: #fff;
  --ds-4: #e6e6ea; --ds-4t: #3a3a4a;
  --ds-5: #f4b6c2; --ds-5t: #6a2030;
  --ds-star: #2ab7ca;
}
[data-dish-color="forest"] {
  --ds-1: #0e9aa7; --ds-1t: #fff;
  --ds-2: #3da4ab; --ds-2t: #fff;
  --ds-3: #f6cd61; --ds-3t: #5a4a00;
  --ds-4: #fe8a71; --ds-4t: #fff;
  --ds-5: #4a4e4d; --ds-5t: #fff;
  --ds-star: #f6cd61;
}

/* Dish badge base */
.rp-dish-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* Score colors (shared by circles, squares, blocks) */
.rp-dish-badge[data-score="1"] { background: var(--ds-1); color: var(--ds-1t); }
.rp-dish-badge[data-score="2"] { background: var(--ds-2); color: var(--ds-2t); }
.rp-dish-badge[data-score="3"] { background: var(--ds-3); color: var(--ds-3t); }
.rp-dish-badge[data-score="4"] { background: var(--ds-4); color: var(--ds-4t); }
.rp-dish-badge[data-score="5"] { background: var(--ds-5); color: var(--ds-5t); }
.rp-dish-badge[data-score=""]  { background: none; border: 2px solid var(--line); color: var(--muted); }

/* ── Shape: Circles (default) ── */
.rp-dish-badge { width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; }

/* ── Shape: Squares ── */
[data-dish-style="squares"] .rp-dish-badge { width: 24px; height: 24px; border-radius: 0; font-size: .75rem; }

/* ── Shape: Stars (JS replaces content) ── */
[data-dish-style="stars"] .rp-dish-badge {
  width: auto; height: auto; border-radius: 0; background: none !important;
  gap: 1px; font-size: .82rem;
}
[data-dish-style="stars"] .rp-dish-badge .dish-star-on { color: var(--ds-star); }
[data-dish-style="stars"] .rp-dish-badge .dish-star-off { color: var(--line); }

/* ── Shape: Bars (JS replaces content) ── */
[data-dish-style="bars"] .rp-dish-badge {
  width: 80px; height: auto; border-radius: 0; background: none !important;
  gap: .35rem; font-size: .78rem; font-weight: 800;
}
[data-dish-style="bars"] .rp-dish-badge .dish-bar-num { width: 14px; text-align: right; }
[data-dish-style="bars"] .rp-dish-badge[data-score="1"] .dish-bar-num { color: var(--ds-1); }
[data-dish-style="bars"] .rp-dish-badge[data-score="2"] .dish-bar-num { color: var(--ds-2); }
[data-dish-style="bars"] .rp-dish-badge[data-score="3"] .dish-bar-num { color: var(--ds-3); }
[data-dish-style="bars"] .rp-dish-badge[data-score="4"] .dish-bar-num { color: var(--ds-4); }
[data-dish-style="bars"] .rp-dish-badge[data-score="5"] .dish-bar-num { color: var(--ds-5); }
[data-dish-style="bars"] .rp-dish-badge .dish-bar-track {
  flex: 1; height: 7px; background: var(--line); border-radius: 3px; overflow: hidden;
}
[data-dish-style="bars"] .rp-dish-badge .dish-bar-fill { height: 100%; border-radius: 3px; }
[data-dish-style="bars"] .rp-dish-badge[data-score="1"] .dish-bar-fill { background: var(--ds-1); width: 20%; }
[data-dish-style="bars"] .rp-dish-badge[data-score="2"] .dish-bar-fill { background: var(--ds-2); width: 40%; }
[data-dish-style="bars"] .rp-dish-badge[data-score="3"] .dish-bar-fill { background: var(--ds-3); width: 60%; }
[data-dish-style="bars"] .rp-dish-badge[data-score="4"] .dish-bar-fill { background: var(--ds-4); width: 80%; }
[data-dish-style="bars"] .rp-dish-badge[data-score="5"] .dish-bar-fill { background: var(--ds-5); width: 100%; }
[data-dish-style="bars"] .rp-dish-badge[data-score=""] { width: 80px; }

/* ── Shape: Blocks ── */
[data-dish-style="blocks"] .rp-dish-badge {
  width: auto; height: auto; border-radius: 0; padding: .2rem .5rem; font-size: .78rem;
}
.rp-dish-body { flex: 1; min-width: 0; }
.rp-dish-name { font-size: 1rem; font-weight: 600; font-family: var(--font-display); display: block; color: var(--text); }
.rp-dish-ingr { font-size: .84rem; color: var(--muted); font-family: var(--font-body); display: block; margin-top: .1rem; }
.rp-dish-review { font-size: .84rem; color: var(--text); font-family: var(--font-body); display: block; margin-top: .15rem; line-height: 1.4; }
.rp-dish-price { font-size: .95rem; font-weight: 600; font-family: var(--font-body); white-space: nowrap; color: var(--muted); align-self: center; }

/* Visit history (matches visits.php timeline) */
.rp-visits { padding: .5rem 1.1rem; }
.rp-visit {
  display: grid;
  grid-template-columns: 48px 18px 1fr;
  gap: 0 .75rem;
  padding: .1rem 0;
}
.rp-visit-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: .75rem;
}
.rp-visit-day {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--muted);
  font-family: var(--font-display);
  line-height: 1;
}
.rp-visit-dow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-family: var(--font-body);
}
.rp-visit-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.rp-visit-dot {
  width: 13px;
  height: 13px;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: .85rem;
  z-index: 1;
}
.rp-visit-dot.score-good { background: var(--score-good, #1b6e3f); }
.rp-visit-dot.score-mid  { background: var(--score-mid, #8a6200); }
.rp-visit-dot.score-bad  { background: var(--score-bad, #b81a1a); }
.rp-visit-line {
  flex: 1;
  width: 2px;
  background: var(--line);
  margin-top: 2px;
}
.rp-visit:last-child .rp-visit-line { display: none; }
.rp-visit-content {
  padding: .65rem 0 .9rem;
  border-bottom: 1px solid var(--line);
}
.rp-visit:last-child .rp-visit-content { border-bottom: none; }
.rp-visit-meta {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-family: var(--font-body);
  margin-bottom: .15rem;
}
.rp-visit-name-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.rp-visit-receipt-link {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  text-decoration: none;
}
.rp-visit-receipt-link:hover { color: var(--accent); text-decoration: none; }
.rp-visit-score-blk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 900;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #fff;
  flex-shrink: 0;
}
.rp-visit-score-blk.score-good { background: var(--score-good, #1b6e3f); }
.rp-visit-score-blk.score-mid  { background: var(--score-mid, #8a6200); }
.rp-visit-score-blk.score-bad  { background: var(--score-bad, #b81a1a); }
.rp-visit-people { font-size: .84rem; color: var(--muted); font-family: var(--font-body); margin-top: .2rem; }
.rp-visit-note {
  font-size: .88rem;
  color: var(--muted);
  font-family: var(--font-body);
  border-left: 3px solid var(--line);
  padding-left: .65rem;
  margin-top: .3rem;
  line-height: 1.5;
}
.rp-visit-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin-top: .35rem;
}
.rp-visit-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--bg);
  padding: .1rem .4rem;
  border: 1px solid var(--line);
}
.rp-visit-chip-sc { font-weight: 700; }
.rp-visit-chip-sc.score-good { color: var(--good); }
.rp-visit-chip-sc.score-mid  { color: var(--mid); }
.rp-visit-chip-sc.score-bad  { color: var(--bad); }

/* Notes */
.rp-notes-text {
  font-size: .95rem;
  color: var(--muted);
  font-family: var(--font-body);
  padding: .75rem 1.1rem;
  line-height: 1.55;
}

/* Similar restaurants grid */
.rp-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.rp-similar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .9rem .75rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background .1s;
}
.rp-similar-card:hover { background: var(--bg); text-decoration: none; color: var(--accent); }
.rp-similar-name { font-size: .88rem; font-weight: 600; font-family: var(--font-body); }
.rp-similar-meta { font-size: .7rem; color: var(--muted); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.rp-similar-score {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
}
.rp-similar-score.score-good { color: var(--good); }
.rp-similar-score.score-mid  { color: var(--mid); }
.rp-similar-score.score-bad  { color: var(--bad); }

/* Responsive */
@media (max-width: 700px) {
  .rp-hero-inner { flex-direction: column; gap: 1rem; }
  .rp-hero-score { flex-direction: row; align-items: center; gap: .75rem; }
  .rp-score-ring { width: 70px; height: 70px; }
  .rp-score-num { font-size: 1.8rem; }
  .rp-stats-strip { flex-direction: column; }
  .rp-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; padding: .6rem .75rem; display: flex; align-items: center; gap: .5rem; }
  .rp-stat:last-child { border-bottom: none; }
  .rp-stat-lbl { margin-top: 0; }
  .rp-visit { grid-template-columns: 36px 14px 1fr; gap: 0 .5rem; }
  .rp-visit-day { font-size: 1.1rem; }
  .rp-visit-dot { width: 10px; height: 10px; }
  .rp-similar-grid { grid-template-columns: 1fr 1fr; }
}

/* Dark mode overrides */
[data-theme="dark"] .rp { background: var(--bg); }
[data-theme="dark"] .rp-hero { background: linear-gradient(135deg, var(--accent-dk) 0%, #1a1028 100%); }
[data-theme="dark"] .rp-card { background: var(--surface); border-color: var(--line-dark); }
[data-theme="dark"] .rp-card-head { background: var(--bg2); border-bottom-color: var(--line-dark); color: var(--muted); }
[data-theme="dark"] .rp-dish { border-bottom-color: var(--line); }
[data-theme="dark"] .rp-dish-alt { background: rgba(255,255,255,.02); }
[data-theme="dark"] .rp-dish-badge { border-color: var(--line-dark); color: var(--text); }
[data-theme="dark"] .rp-dish-name { color: var(--text); }
[data-theme="dark"] .rp-dish-review { color: var(--text); }
[data-theme="dark"] .rp-visit-content { border-bottom-color: var(--line); }
[data-theme="dark"] .rp-visit-line { background: var(--line-dark); }
[data-theme="dark"] .rp-visit-receipt-link { color: var(--text); }
[data-theme="dark"] .rp-visit-note { border-left-color: var(--line-dark); }
[data-theme="dark"] .rp-visit-chip { background: var(--bg2); border-color: var(--line-dark); }
[data-theme="dark"] .rp-similar-card { border-color: var(--line); }
[data-theme="dark"] .rp-similar-card:hover { background: var(--bg2); }

/* ── CITY DETAIL (B structure + city themes) ── */
.city-detail-page { background: #faf6ef; }

.city-detail-hero {
  padding: 2.25rem 0 1.85rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid rgba(0,0,0,.12);
}
.city-detail-hero-inner { position: relative; z-index: 1; }
.city-detail-eyebrow {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .3rem;
  font-family: var(--font-body);
}
.city-detail-eyebrow a { color: rgba(255,255,255,.6); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.city-detail-eyebrow a:hover { color: #fff; }
.city-detail-name {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: .93;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.city-detail-state {
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
  font-family: var(--font-body);
}

/* City hero themes */
.city-theme-maui {
  background: linear-gradient(155deg, #023e8a 0%, #0096c7 45%, #48cae4 75%, #90e0ef 100%);
}
.city-theme-maui::before {
  content: '';
  position: absolute;
  top: -40px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,220,60,.18);
  pointer-events: none;
}
.city-theme-seattle {
  background: linear-gradient(155deg, #1a3a2e 0%, #2d4a3e 40%, #3a5c4a 65%, #4a7060 100%);
}
.city-theme-seattle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0px, transparent 14px,
    rgba(180,220,210,.07) 14px, rgba(180,220,210,.07) 15px
  );
  pointer-events: none;
}
.city-theme-austin {
  background: linear-gradient(155deg, #5c1a0a 0%, #8b3a1a 30%, #c05a20 60%, #d4784a 85%, #e8a060 100%);
}
.city-theme-austin::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,200,50,.25);
  pointer-events: none;
}
.city-theme-default {
  background: linear-gradient(155deg, var(--navy) 0%, #2a3f6b 100%);
}

/* Stats strip */
.city-detail-stats-strip {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}
.city-detail-stats-inner {
  display: flex;
  gap: 0;
}
.city-detail-stat {
  flex: 1;
  padding: .75rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.city-detail-stat:last-child { border-right: none; }
.city-detail-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
}
.city-detail-stat-num.score-good { color: #5ede9a; }
.city-detail-stat-num.score-mid  { color: var(--gold); }
.city-detail-stat-num.score-bad  { color: #f07070; }
.city-detail-stat-lbl {
  display: block;
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  font-family: var(--font-body);
  margin-top: .15rem;
}

/* City detail body */
.cd-body {
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cuisine pill row */
.cd-cuisine-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 0;
}
.cd-cuisine-pill {
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cd-cuisine-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cd-cuisine-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cd-cuisine-clear {
  font-size: .7rem; font-weight: 600; padding: .2rem .5rem;
  background: #dc2626; color: #fff; border: none; border-radius: 3px;
  cursor: pointer; text-transform: uppercase; letter-spacing: .06em; display: none;
}
.cd-cuisine-clear.visible { display: inline-block; }
.cd-cuisine-cnt {
  font-weight: 800;
  color: var(--accent);
  margin-left: .15rem;
}

/* Tier cards */
.cd-tier {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cd-tier-head {
  padding: .75rem 1.1rem;
  border-bottom: 2px solid var(--line);
  background: var(--bg);
}
.cd-tier-head-toggle { cursor: pointer; list-style: none; }
.cd-tier-head-toggle::-webkit-details-marker { display: none; }
.cd-tier-head-toggle::marker { display: none; content: ''; }
.cd-tier-title {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  font-family: var(--font-body);
  margin: 0;
  display: inline;
}
.cd-tier-desc {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-body);
  margin-left: .5rem;
}

/* Tier accent colors */
.cd-tier-fame .cd-tier-head { border-bottom-color: var(--good); }
.cd-tier-fame .cd-tier-title { color: var(--good); }
.cd-tier-solid .cd-tier-head { border-bottom-color: var(--accent); }
.cd-tier-solid .cd-tier-title { color: var(--accent); }
.cd-tier-once .cd-tier-head { border-bottom-color: var(--bad); }
.cd-tier-once .cd-tier-title { color: var(--bad); }
.cd-tier-unscored .cd-tier-head { border-bottom-color: var(--line); }
.cd-tier-unscored .cd-tier-title { color: var(--muted); }

.cd-tier-list { }
.cd-tier-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.cd-tier-row:last-child { border-bottom: none; }
.cd-tier-row:hover { background: var(--bg); text-decoration: none; }
.cd-tier-name {
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-body);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-tier-cuisine {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-family: var(--font-body);
}
.cd-tier-visits {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--font-body);
  white-space: nowrap;
}
.cd-tier-score {
  font-size: .95rem;
  font-weight: 800;
  font-family: var(--font-body);
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
.cd-tier-score.score-good { color: var(--good); }
.cd-tier-score.score-mid  { color: var(--mid); }
.cd-tier-score.score-bad  { color: var(--bad); }

/* Tier "Show all" toggle */
.cd-tier-more { border-top: 1px solid var(--line); }
.cd-tier-more-btn {
  display: block;
  padding: .6rem 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  list-style: none;
}
.cd-tier-more-btn::-webkit-details-marker { display: none; }
.cd-tier-more-btn::marker { display: none; content: ''; }
.cd-tier-more-btn:hover { background: var(--bg); }

/* Bottom two-column grid */
.cd-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Card (reused pattern) */
.cd-card {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cd-card-head {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--muted);
  padding: .75rem 1.1rem;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-body);
  margin: 0;
  background: var(--bg);
}

/* Best Bites */
.cd-bites { }
.cd-bite-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.cd-bite-row:last-child { border-bottom: none; }
.cd-bite-info { flex: 1; min-width: 0; }
.cd-bite-name {
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: block;
  color: var(--text);
}
.cd-bite-rest {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.cd-bite-price {
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--muted);
  white-space: nowrap;
}

/* Dining Companions */
.cd-companions {
  padding: .75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cd-companion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: .5rem .75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .1s;
  min-width: 80px;
  text-align: center;
}
.cd-companion:hover { border-color: var(--accent); text-decoration: none; }
.cd-companion-name {
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.cd-companion-cnt {
  font-size: .68rem;
  color: var(--muted);
  font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 700px) {
  .cd-bottom-grid { grid-template-columns: 1fr; }
  .cd-tier-row { flex-wrap: wrap; }
  .cd-tier-cuisine, .cd-tier-visits { display: none; }
}

/* Dark mode */
[data-theme="dark"] .cd-tier { border-color: var(--line-dark); }
[data-theme="dark"] .cd-tier-head { background: var(--bg2); }
[data-theme="dark"] .cd-tier-row { border-bottom-color: var(--line); }
[data-theme="dark"] .cd-tier-row:hover { background: var(--bg2); }
[data-theme="dark"] .cd-card { border-color: var(--line-dark); }
[data-theme="dark"] .cd-card-head { background: var(--bg2); }
[data-theme="dark"] .cd-bite-row { border-bottom-color: var(--line); }
[data-theme="dark"] .cd-companion { background: var(--bg2); border-color: var(--line); }
[data-theme="dark"] .cd-cuisine-pill { background: var(--bg2); border-color: var(--line-dark); }

/* ============================================================
   cccc-0105 additions
   ============================================================ */

/* Pagination on visits.php */
.tl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 .5rem;
  border-top: 2px solid #d8d0c0;
  margin-top: 1rem;
}
.tl-pg-btn {
  display: inline-block;
  padding: .5rem 1.1rem;
  background: var(--navy);
  color: #fff;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-body);
}
.tl-pg-btn:hover { background: var(--accent); text-decoration: none; }
.tl-pg-info {
  font-size: .87rem;
  color: var(--muted, #6b6057);
  font-family: var(--font-mono);
  letter-spacing: .1em;
}

/* Sidebar best dishes */
.sidebar-dishes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-dish-item {
  border-top: 1px solid #e0d8cc;
  padding: .35rem 0;
}
.sidebar-dish-item:first-child { border-top: none; }
.sidebar-dish-item a {
  display: block;
  text-decoration: none;
  color: var(--text-dark, #1a1410);
}
.sidebar-dish-item a:hover .sidebar-dish-name { color: var(--accent); }
.sidebar-dish-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  line-height: 1.2;
}
.sidebar-dish-rest {
  display: block;
  font-size: 1.1rem;
  color: var(--muted, #6b6057);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 1px;
}

/* Score 0 — hide score badge entirely */
.journal-score:empty { display: none; }
.tl-score-blk:empty  { display: none; }

/* ── Public admin bar (shown when logged in on public pages) ── */
.pub-admin-bar {
  background: #111;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 500;
}
.pub-admin-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  height: 34px;
}
.pub-admin-bar-label {
  font-size: .87rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.35);
  font-family: var(--font-body);
  margin-right: .25rem;
}
.pub-admin-btn {
  padding: .22rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  font-family: var(--font-body);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  background: transparent;
  white-space: nowrap;
}
.pub-admin-bar a.pub-admin-btn { color: rgba(255,255,255,.7); }
.pub-admin-btn:hover,
.pub-admin-bar a.pub-admin-btn:hover { color: #fff; border-color: rgba(255,255,255,.5); text-decoration: none; }
.pub-admin-btn-primary,
.pub-admin-bar a.pub-admin-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-admin-btn-primary:hover,
.pub-admin-bar a.pub-admin-btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.pub-admin-btn-right {
  margin-left: auto;
  color: rgba(255,255,255,.4);
  border-color: transparent;
}
.pub-admin-btn-right:hover {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.2);
}
/* Push body down by admin bar height when bar is shown */
.has-admin-bar .site-header {
  top: 34px;
}

/* cccc-0108 -- size pass overrides for visit receipt */
.vzine-dish-row        { font-size: 1.05rem; padding: .35rem 0; }
.vzine-dish-detail     { font-size: .95rem; padding-left: 2rem; }
.vzine-course-head     { font-size: .8rem; letter-spacing: .16em; margin: .75rem 0 .4rem; }
.vzine-total-row       { font-size: 1.05rem; padding: .15rem 0; }
.vzine-total-final     { font-size: 1.15rem; }
.vzine-totals-head     { font-size: .8rem; letter-spacing: .16em; }
.vzine-notes-text      { font-size: 1rem; line-height: 1.6; }
.vzine-stamp           { font-size: .8rem; letter-spacing: .16em; }
.vzine-people          { font-size: .95rem; }
.vzine-score-bar-lbl   { font-size: .8rem; letter-spacing: .1em; }
.vzine-top-left        { padding: 1.5rem 1.75rem; }
.vzine-score-bar-row   { padding: .85rem 1.75rem; }
.vzine-dishes          { padding: .5rem 1.75rem; }
.vzine-totals          { padding: .75rem 1.75rem; }
.vzine-notes           { padding: .75rem 1.75rem; }

/* Journal feed - bigger on index/visits */
.journal-entry .j-name,
.tl-restaurant         { font-size: 1.3rem; }
.tl-meta-row           { font-size: .8rem; }
.tl-notes              { font-size: .9rem; }
.tl-month-label        { font-size: .72rem; letter-spacing: .18em; }
.journal-dateline,
.journal-notes         { font-size: .88rem; }

/* Nav */
.nav a { font-size: .8rem; }

/* Sidebar */
.sidebar-heading       { font-size: .72rem; }
.sidebar-dish-name     { font-size: .95rem; }
.sidebar-dish-rest     { font-size: .75rem; }

/* ── FEED GRID ───────────────────────────────────────── */
.journal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.journal-entry {
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: .8rem .9rem;
}
.journal-entry:first-child {
  grid-column: 1 / -1;
  background: var(--accent-lt);
  border-color: var(--accent);
}
.journal-entry:first-child .journal-date,
.journal-entry:first-child .journal-meal { color: rgba(43,45,66,.55); }
.journal-entry:first-child .journal-city a { color: var(--muted); }
.journal-entry:first-child .journal-restaurant { font-size: 2rem; color: var(--navy); }
.journal-entry:first-child .journal-score { font-size: 1.2rem; }
.journal-entry:first-child .journal-notes { color: rgba(43,45,66,.7); }
.journal-restaurant { font-size: 1.1rem; }
.journal-notes { font-size: .85rem; }

/* ── BACKGROUND PICKER ───────────────────────────────── */
.bg-picker {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .28rem;
  background: rgba(10,10,20,.72);
  padding: .32rem .55rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  z-index: 200;
  border: 1px solid rgba(255,255,255,.12);
}
.bg-picker-label {
  font-size: .6rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-right: .2rem;
}
.bg-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.65);
  padding: .12rem .4rem;
  font-size: .68rem;
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 3px;
  transition: all .13s;
  letter-spacing: .04em;
}
.bg-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.bg-btn.is-active { background: rgba(255,255,255,.28); color: #fff; border-color: rgba(255,255,255,.5); }

/* ── BG THEMES — CSS vars shift to match canvas ──────── */

/* Stars: deep purple-indigo space */
[data-bg="stars"] {
  --bg:        transparent;
  --bg2:       rgba(63,0,77,.5);
  --surface:   rgba(21,16,107,.62);
  --text:      #edf2f4;
  --muted:     #aab2ff;
  --line:      rgba(255,255,255,.15);
  --line-dark: rgba(170,178,255,.3);
  --accent:    #84ffc9;
  --accent-dk: #00b87a;
  --accent-lt: rgba(132,255,201,.2);
  --navy:      #edf2f4;
}

/* Beach: warm sandy */
[data-bg="beach"] {
  --bg:        transparent;
  --surface:   rgba(255,240,220,.75);
  --text:      #2b1c0e;
  --muted:     #7a5c40;
  --line:      rgba(180,130,90,.3);
  --line-dark: rgba(180,130,90,.55);
  --accent:    #c05a20;
  --accent-dk: #8a3e12;
  --accent-lt: rgba(192,90,32,.15);
  --navy:      #2b1c0e;
}

/* Sea: deep ocean */
[data-bg="sea"] {
  --bg:        transparent;
  --surface:   rgba(0,29,61,.65);
  --text:      #edf2f4;
  --muted:     #84ffc9;
  --line:      rgba(99,223,228,.2);
  --line-dark: rgba(99,223,228,.4);
  --accent:    #63dfe4;
  --accent-dk: #3ab8bd;
  --accent-lt: rgba(99,223,228,.18);
  --navy:      #edf2f4;
}

/* When canvas bg is active — clear all page textures */
[data-bg="stars"] .public-body,
[data-bg="beach"] .public-body,
[data-bg="sea"]   .public-body,
[data-bg="stars"] body,
[data-bg="beach"] body,
[data-bg="sea"]   body {
  background-color: transparent !important;
  background-image: none !important;
}
[data-bg="stars"] .page-visit-bg,
[data-bg="beach"] .page-visit-bg,
[data-bg="sea"]   .page-visit-bg,
[data-bg="stars"] main,
[data-bg="beach"] main,
[data-bg="sea"]   main {
  background: transparent !important;
}

/* Frosted glass on cards when bg active */
[data-bg="stars"] .journal-entry,
[data-bg="beach"] .journal-entry,
[data-bg="sea"]   .journal-entry {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-dark);
}
[data-bg="stars"] .sidebar-block,
[data-bg="beach"] .sidebar-block,
[data-bg="sea"]   .sidebar-block {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-dark);
}
[data-bg="stars"] .visit-zine-card,
[data-bg="beach"] .visit-zine-card,
[data-bg="sea"]   .visit-zine-card {
  background: var(--surface) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-dark);
}

/* Hero card glass when bg active */
[data-bg="stars"] .journal-entry:first-child,
[data-bg="beach"] .journal-entry:first-child,
[data-bg="sea"]   .journal-entry:first-child {
  background: rgba(255,255,255,.28) !important;
  border-color: rgba(255,255,255,.4) !important;
}

/* Stars: dark header overlay */
[data-bg="stars"] .site-header { background: rgba(2,2,18,.82) !important; }
[data-bg="stars"] .site-footer-bar { background: rgba(2,2,18,.82); }
/* Beach/sea: lighter header */
[data-bg="beach"] .site-header,
[data-bg="sea"]   .site-header {
  background: rgba(10,30,80,.72) !important;
  backdrop-filter: blur(10px);
}

/* ── DARK / CANDLELIGHT MODE ─────────────────────────── */

[data-theme="dark"] {
  --bg:        #1a1422;
  --bg2:       #231830;
  --surface:   #2c1e42;
  --text:      #f3eaf9;
  --muted:     #c49ae0;
  --line:      #3d2860;
  --line-dark: #5c3c88;
  --accent:    #e6c1ff;
  --accent-dk: #dbaaff;
  --accent-lt: #3a2460;
  --gold:      #c9a030;
  --gold-lt:   #1e1808;
  --navy:      #f3eaf9;
  --good:      #84ffc9;
  --good-lt:   #0a2a1e;
  --mid:       #c9a030;
  --bad:       #ff7070;
  --lilac:     #eca0ff;
  --mint:      #84ffc9;
  --periwinkle: #aab2ff;
  --shadow:    3px 3px 0 rgba(0,0,0,.4);
  --shadow-md: 5px 5px 0 rgba(0,0,0,.5);
}

/* Site chrome */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .public-body { background-color: var(--bg); background-image: none; }
[data-theme="dark"] .site-header { background: #120e1c !important; border-bottom-color: var(--accent); }
[data-theme="dark"] .site-footer-bar { background: #0e0f1a; }
[data-theme="dark"] a { color: var(--accent); }

/* Visit page background */
[data-theme="dark"] .page-visit-bg { background-color: var(--bg); background-image: none; }

/* Visit card */
[data-theme="dark"] .visit-zine-card {
  background: var(--surface);
  border-color: var(--line-dark);
  box-shadow: 6px 8px 0 rgba(0,0,0,.4);
}
[data-theme="dark"] .vzine-tear-top {
  background: radial-gradient(circle at 10px 0, var(--bg) 7.5px, var(--surface) 7.5px) 0 0 / 20px 13px repeat-x;
}
[data-theme="dark"] .vzine-tear-bottom {
  background: radial-gradient(circle at 10px 13px, var(--bg) 7.5px, var(--surface) 7.5px) 0 0 / 20px 13px repeat-x;
  border-top-color: var(--line);
}
[data-theme="dark"] .vzine-top { border-bottom-color: var(--line-dark); }
[data-theme="dark"] .vzine-top-left { border-right-color: var(--line-dark); }
[data-theme="dark"] .vzine-stamp { background: var(--accent-lt); color: var(--navy); }
[data-theme="dark"] .vzine-meal-lunch  { background: #0a3028; color: #84ffc9; }
[data-theme="dark"] .vzine-meal-dinner { background: #3a1048; color: #eca0ff; }
[data-theme="dark"] .vzine-name { color: var(--navy); }
[data-theme="dark"] .vzine-location { color: var(--muted); }
[data-theme="dark"] .vzine-people { color: var(--muted); }
[data-theme="dark"] .vzine-notes { border-top-color: var(--line-dark); }
[data-theme="dark"] .vzine-notes-label { color: var(--muted); }
[data-theme="dark"] .vzine-notes-text { color: var(--text); }
[data-theme="dark"] .vzine-totals { border-top-color: var(--line-dark); }
[data-theme="dark"] .vzine-total-row { color: var(--muted); border-bottom-color: var(--line); }
[data-theme="dark"] .vzine-total-final { color: var(--text); border-top-color: var(--line-dark); }
[data-theme="dark"] .vzine-totals-head { color: var(--accent); }
[data-theme="dark"] .vzine-course-head { color: var(--accent); border-bottom-color: var(--line); }
[data-theme="dark"] .vzine-dish-row { border-bottom-color: var(--line); color: var(--text); }
[data-theme="dark"] .vzine-dish-ingredients { color: var(--muted); }
[data-theme="dark"] .vzine-dish-note { color: var(--navy); }
[data-theme="dark"] .vzine-score-big { color: #fff; }

/* Homepage */
[data-theme="dark"] .home-masthead { background: #111008; border-bottom-color: var(--accent); }
[data-theme="dark"] .home-layout { background: var(--bg); }
[data-theme="dark"] .journal-entry { border-bottom-color: var(--line); }
[data-theme="dark"] .journal-date { color: var(--muted); }
[data-theme="dark"] .journal-restaurant { color: var(--text); }
[data-theme="dark"] .journal-notes { color: var(--muted); }
[data-theme="dark"] .home-sidebar .sidebar-block { border-color: var(--line-dark); }
[data-theme="dark"] .sidebar-heading { color: var(--navy); border-bottom-color: var(--line-dark); }
[data-theme="dark"] .sidebar-dish-rest { color: var(--muted); }

/* Return worthy panel */
[data-theme="dark"] .return-worthy { background: var(--surface); border-color: var(--line-dark); }
[data-theme="dark"] .return-worthy-item { border-bottom-color: var(--line); }
[data-theme="dark"] .return-worthy-name { color: var(--text); }
[data-theme="dark"] .return-worthy-meta { color: var(--muted); }

/* Visits timeline page */
[data-theme="dark"] .visits-tl-page { background: var(--bg); }
[data-theme="dark"] .visits-tl-header { background: #111008; }
[data-theme="dark"] .visits-tl-title { color: var(--text); }
[data-theme="dark"] .tl-item { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .tl-restaurant { color: var(--text); }
[data-theme="dark"] .tl-notes { color: var(--muted); }
[data-theme="dark"] .tl-month-label { color: var(--accent); border-bottom-color: var(--line-dark); }

/* Panels + cards */
[data-theme="dark"] .panel { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .card { background: var(--surface); border-color: var(--line); }

/* Nav dark mode toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  padding: .2rem .5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 3px;
  line-height: 1;
  transition: background .15s, color .15s;
  font-family: var(--font-body);
  min-width: 2rem;
  text-align: center;
}
.theme-toggle:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
[data-theme="dark"] .theme-toggle::after { content: '☀'; display: none; }
[data-theme="dark"] .theme-toggle { font-size: 1rem; }

/* ── CMD+K SEARCH OVERLAY ────────────────────────────── */

.cmdbar {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.cmdbar[hidden] { display: none; }
.cmdbar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cmdbar-panel {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 2rem));
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
  border-radius: 2px;
  overflow: hidden;
}
[data-theme="dark"] .cmdbar-panel {
  background: var(--surface);
  border-color: var(--line-dark);
}
.cmdbar-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding: 0 .75rem;
  gap: .5rem;
}
[data-theme="dark"] .cmdbar-header { border-bottom-color: var(--line); }
.cmdbar-input {
  flex: 1;
  border: none;
  outline: none;
  padding: .9rem .25rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
}
[data-theme="dark"] .cmdbar-input { color: var(--text); }
.cmdbar-input::placeholder { color: var(--muted); }
.cmdbar-esc {
  font-size: .7rem;
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: .1rem .35rem;
  font-family: var(--font-mono);
  cursor: pointer;
  flex-shrink: 0;
}
[data-theme="dark"] .cmdbar-esc { background: var(--bg2); border-color: var(--line-dark); }
.cmdbar-results { max-height: 420px; overflow-y: auto; }
.cmdbar-empty {
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  font-family: var(--font-body);
}
.cmdbar-section-head {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding: .5rem 1rem .2rem;
  font-family: var(--font-body);
}
.cmdbar-result {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .55rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.cmdbar-result:last-child { border-bottom: none; }
.cmdbar-result:hover,
.cmdbar-result.is-active {
  background: var(--bg2);
}
[data-theme="dark"] .cmdbar-result { border-bottom-color: var(--line); }
[data-theme="dark"] .cmdbar-result:hover,
[data-theme="dark"] .cmdbar-result.is-active { background: var(--bg2); }
.cmdbar-result-name {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdbar-result-meta {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--font-body);
}
.cmdbar-result-score {
  font-size: .8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.cmdbar-result-score.score-good { color: var(--good); }
.cmdbar-result-score.score-mid  { color: var(--mid); }
.cmdbar-result-score.score-bad  { color: var(--bad); }
.cmdbar-hint {
  padding: .5rem 1rem;
  font-size: .75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  text-align: right;
}
[data-theme="dark"] .cmdbar-hint { border-top-color: var(--line); }

/* (no neon glow in dark mode either) */

/* ── RETURN WORTHY PANEL ─────────────────────────────── */
.return-worthy {
  background: var(--gold-lt);
  border: 1.5px solid var(--gold);
  padding: .6rem .85rem;
  margin-top: .75rem;
}
.return-worthy-head {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .4rem;
  font-family: var(--font-body);
}
.return-worthy-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(192,128,32,.2);
  text-decoration: none;
}
.return-worthy-item:last-child { border-bottom: none; }
.return-worthy-name {
  flex: 1;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.return-worthy-item:hover .return-worthy-name { color: var(--accent); }
.return-worthy-score {
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}
.return-worthy-score.score-good { color: var(--good); }
.return-worthy-score.score-mid  { color: var(--mid); }
.return-worthy-score.score-bad  { color: var(--bad); }
.return-worthy-ago {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ── COLOR THEMES ─────────────────────────────────────── */
[data-color="warm"] {
  --bg:        #fdf5ec;
  --bg2:       #f5dfc7;
  --surface:   #fffaf5;
  --text:      #2b1c0e;
  --muted:     #7a5c40;
  --accent:    #c05a20;
  --accent-dk: #8a3e12;
  --accent-lt: #f5cdb4;
  --line:      #e8c9a8;
  --line-dark: #d4a882;
  --navy:      #2b1c0e;
}
[data-color="ocean"] {
  --bg:        #e8f4f8;
  --bg2:       #c8e8f0;
  --surface:   #f0fafd;
  --text:      #1a2e3a;
  --muted:     #4a7890;
  --accent:    #0891b2;
  --accent-dk: #0e7490;
  --accent-lt: #bae6fd;
  --line:      #a0d8e8;
  --line-dark: #7ab8cc;
  --navy:      #1a2e3a;
}
[data-color="sage"] {
  --bg:        #eef4ec;
  --bg2:       #d4e8d0;
  --surface:   #f5faf4;
  --text:      #1a2e1c;
  --muted:     #5a7a60;
  --accent:    #2d7a4a;
  --accent-dk: #1a5e35;
  --accent-lt: #b3dfb8;
  --line:      #b8d8bc;
  --line-dark: #96c09c;
  --navy:      #1a2e1c;
}
[data-color="rose"] {
  --bg:        #fdf0f3;
  --bg2:       #f8d4dc;
  --surface:   #fff5f7;
  --text:      #2e1a1f;
  --muted:     #8a5a65;
  --accent:    #c44569;
  --accent-dk: #a02850;
  --accent-lt: #fbd4dc;
  --line:      #ebaab8;
  --line-dark: #d98aa0;
  --navy:      #2e1a1f;
}

/* ── DISH SCORE PICKERS ──────────────────────────────── */
#dish-style-picker { bottom: 5.4rem; }
#dish-color-picker { bottom: 7.6rem; }

/* ── COLOR PICKER ─────────────────────────────────────── */
.color-picker {
  position: fixed;
  bottom: 3.2rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .28rem;
  background: rgba(10,10,20,.72);
  padding: .32rem .55rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  z-index: 200;
  border: 1px solid rgba(255,255,255,.12);
}
.color-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
  transition: all .13s;
  flex-shrink: 0;
}
.color-btn:hover { border-color: rgba(255,255,255,.7); transform: scale(1.15); }
.color-btn.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }

/* ── BEST OF PAGE ─────────────────────────────────────── */
.bestof-page { display: flex; flex-direction: column; gap: 2rem; }
.bestof-section-head {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .35rem;
  margin-bottom: .5rem;
}
.bestof-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.bestof-row:hover { background: var(--surface); text-decoration: none; }
.bestof-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
  padding-top: .1rem;
}
.bestof-score.dscore-good { color: var(--good); }
.bestof-score.dscore-mid  { color: var(--mid); }
.bestof-score.dscore-bad  { color: var(--bad); }
.bestof-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .08rem;
  min-width: 0;
}
.bestof-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}
.bestof-rest {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bestof-review {
  font-size: .82rem;
  color: var(--text);
  font-style: italic;
  margin-top: .1rem;
}
.bestof-price {
  font-size: .82rem;
  font-family: var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: .1rem;
}

/* ── VISIT PHOTO ──────────────────────────────────────── */
.vzine-photo { padding: .5rem 1.4rem .65rem; }
.vzine-photo img {
  max-width: 100%;
  max-height: 340px;
  display: block;
  border: 2px solid var(--line-dark);
  object-fit: cover;
  border-radius: 2px;
  width: 100%;
}

/* ── VISIT DISH PRICE CHECK ───────────────────────────── */
.vzine-price-check { font-size: .78rem; color: var(--muted); }
.vzine-price-check.mismatch span:last-child { color: var(--bad); }
.vzine-price-check.match span:last-child { color: var(--good); }

/* (Old .rest-similar and .rest-visit-dish-chip styles replaced by .rp-* in redesign block) */

/* ══════════════════════════════════════════════════════════
   VISIT VIEW SWITCHER — 4 togglable designs
   ══════════════════════════════════════════════════════════ */

/* ── View picker bar ── */
.visit-view-picker {
  position: fixed; bottom: 9.8rem; right: 1rem; z-index: 800;
  display: flex; align-items: center; gap: .35rem;
  background: var(--card, #fff); border: 1.5px solid var(--navy, #1a2744);
  border-radius: 6px; padding: .25rem .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  font-family: var(--font-body);
}
.visit-view-picker .bg-picker-label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted, #999); font-weight: 700; margin-right: .15rem;
}
.visit-view-picker .bg-btn {
  font-size: .65rem; padding: .18rem .45rem; border-radius: 3px;
  border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--text, #333); font-family: var(--font-body); font-weight: 600;
  transition: background .15s, border-color .15s;
}
.visit-view-picker .bg-btn:hover { background: rgba(122,104,150,.1); }
.visit-view-picker .bg-btn.is-active {
  background: var(--navy, #1a2744); color: #fff; border-color: var(--navy, #1a2744);
}

/* ── VIEW 2: MODERN ── */
[data-visit-view="modern"] .visit-zine-card {
  border-radius: 16px; border: 1px solid #e8e4f0;
  box-shadow: 0 4px 24px rgba(43,45,66,.08);
  background: #fff;
}
[data-visit-view="modern"] .vzine-top {
  border-bottom: 1px solid #f0ecf8;
}
[data-visit-view="modern"] .vzine-top-right {
  border-radius: 0 16px 0 0;
  background: none !important; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
[data-visit-view="modern"] .vzine-stamp {
  background: #f0ecf8 !important; color: #7a6896 !important;
}
[data-visit-view="modern"] .vzine-meal-pill {
  background: #f0ecf8 !important; color: #7a6896 !important;
  border-radius: 99px; padding: .15rem .65rem;
}
[data-visit-view="modern"] .vzine-score-big {
  font-size: 1.3rem; font-weight: 900; color: var(--navy) !important;
  background: none !important;
}
[data-visit-view="modern"] .vzine-score-sub {
  font-size: .45rem; color: #aaa;
}

[data-visit-view="modern"] .vzine-notes {
  border-top: 1px solid #f0ecf8; background: #faf8fc;
}
[data-visit-view="modern"] .vzine-course-head {
  color: #bbb; border-bottom: none; font-size: .65rem;
  background: #f8f6fc; display: inline-block; padding: .15rem .55rem;
  border-radius: 4px; margin: .6rem 0 .4rem;
}
[data-visit-view="modern"] .vzine-dishes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem;
}
[data-visit-view="modern"] .vzine-dish-row {
  border-bottom: none; font-family: var(--font-body); font-size: .92rem;
}
[data-visit-view="modern"] .vzine-dish-name {
  font-family: var(--font-body); font-weight: 500;
}
[data-visit-view="modern"] .vzine-dish-price { color: #aaa; }
/* Modern: color-coded square badges */
[data-visit-view="modern"] .vzine-dishes .dscore {
  border-radius: 5px !important; border: none !important;
  width: 1.4rem; height: 1.4rem; font-size: .68rem; font-weight: 800;
  font-family: var(--font-body);
}
[data-visit-view="modern"] .vzine-dishes .dscore-bad[style]  { background: #e67 !important; color: #fff !important; }
[data-visit-view="modern"] .vzine-dishes .dscore-mid[style]  { background: #da5 !important; color: #555 !important; }
[data-visit-view="modern"] .vzine-dishes .dscore-good[style] { background: #7a6896 !important; color: #fff !important; }

[data-visit-view="modern"] .vzine-totals { border-top: 1px solid #f0ecf8; }
[data-visit-view="modern"] .vzine-totals-head { color: #bbb; }
[data-visit-view="modern"] .vzine-total-row { border-bottom-color: #f0ecf8; color: #bbb; font-family: var(--font-body); }
[data-visit-view="modern"] .vzine-total-final { border-top: 2px solid #f0ecf8; color: var(--navy); }

/* ── VIEW 3: EDITORIAL ── */
[data-visit-view="editorial"] .visit-zine-card {
  background: #faf8f5; border: 2px solid var(--navy);
  box-shadow: 5px 5px 0 rgba(43,45,66,.1);
}
[data-visit-view="editorial"] .vzine-top {
  border-bottom: 3px double var(--navy);
}
[data-visit-view="editorial"] .vzine-top-right {
  background: none !important;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.2rem; min-width: 80px;
}
[data-visit-view="editorial"] .vzine-score-big {
  font-size: 3rem; font-weight: 900; color: var(--navy) !important;
  background: none !important;
}
[data-visit-view="editorial"] .vzine-score-sub {
  font-size: .55rem; text-transform: uppercase; letter-spacing: .15em;
  color: #999;
}
[data-visit-view="editorial"] .vzine-stamp {
  background: var(--navy) !important; color: #fff !important;
  border-radius: 0; padding: .15rem .55rem;
}
[data-visit-view="editorial"] .vzine-meal-pill {
  background: #7a6896 !important; color: #fff !important;
  border-radius: 3px;
}
[data-visit-view="editorial"] .vzine-name {
  font-size: 1.8rem;
}

[data-visit-view="editorial"] .vzine-notes {
  border-top: 2px solid var(--navy);
  background: #f5f2ed; border-left: 4px solid #7a6896;
  font-style: italic;
}
[data-visit-view="editorial"] .vzine-notes-label { display: none; }

[data-visit-view="editorial"] .vzine-course-head {
  color: var(--navy); border-bottom: 1px solid #e8e4de;
  font-size: .7rem; letter-spacing: .25em; font-weight: 700;
  margin: .6rem 0 .4rem;
}
[data-visit-view="editorial"] .vzine-dishes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem;
}
[data-visit-view="editorial"] .vzine-dish-row {
  font-family: var(--font-body); font-size: .95rem;
  border-bottom: 1px dotted #d8d2c8;
}
[data-visit-view="editorial"] .vzine-dish-name {
  font-family: var(--font-body); font-weight: 500;
}
[data-visit-view="editorial"] .vzine-dish-price { color: #999; }
[data-visit-view="editorial"] .vzine-dish-note { font-style: italic; color: #aaa; }

/* Editorial: muted-low / vibrant-high square badges */
[data-visit-view="editorial"] .vzine-dishes .dscore {
  border-radius: 3px !important; border: none !important;
  width: 1.5rem; height: 1.5rem; font-size: .72rem; font-weight: 800;
  font-family: var(--font-body);
}
[data-visit-view="editorial"] .vzine-dishes .dscore-bad[style]  { background: #d5cec4 !important; color: #9a9287 !important; }
[data-visit-view="editorial"] .vzine-dishes .dscore-mid[style]  { background: #b8a88e !important; color: #fff !important; }
[data-visit-view="editorial"] .vzine-dishes .dscore-good[style] { background: #7a6896 !important; color: #fff !important; }

[data-visit-view="editorial"] .vzine-totals {
  border-top: 3px double var(--navy);
  max-width: 280px; margin-left: auto;
}
[data-visit-view="editorial"] .vzine-totals-head { display: none; }
/* Hide subtotal/tax/tip rows, show only the final total */
[data-visit-view="editorial"] .vzine-total-row:not(.vzine-total-final) { display: none; }
[data-visit-view="editorial"] .vzine-total-final {
  border-top: 1px solid var(--navy); font-size: 1.1rem;
}
[data-visit-view="editorial"] .vzine-price-check { display: none; }

/* ── VIEW 4: RECEIPT ── */

/* Receipt wrapper — old page (.visit-zine-card) */
[data-visit-view="receipt"] .visit-zine-card {
  max-width: 480px;
  border: none; box-shadow: none;
  background: #fefdfb;
  font-family: var(--font-mono);
  position: relative;
}
[data-visit-view="receipt"] .visit-zine-card::before,
[data-visit-view="receipt"] .visit-zine-card::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px; z-index: 2;
}
[data-visit-view="receipt"] .visit-zine-card::before {
  top: -5px;
  background: repeating-conic-gradient(#e8e4de 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}
[data-visit-view="receipt"] .visit-zine-card::after {
  bottom: -5px;
  background: repeating-conic-gradient(#e8e4de 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}

/* Receipt wrapper — new page (.page-visit-bg) */
[data-visit-view="receipt"] .page-visit-bg {
  max-width: 480px;
  margin: 2rem auto;
  background: #fefdfb;
  font-family: var(--font-mono);
  position: relative;
  padding-bottom: 1rem;
}
[data-visit-view="receipt"] .page-visit-bg::before,
[data-visit-view="receipt"] .page-visit-bg::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px; z-index: 2;
}
[data-visit-view="receipt"] .page-visit-bg::before {
  top: -5px;
  background: repeating-conic-gradient(#e8e4de 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}
[data-visit-view="receipt"] .page-visit-bg::after {
  bottom: -5px;
  background: repeating-conic-gradient(#e8e4de 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}

/* Receipt: hide nav breadcrumbs */
[data-visit-view="receipt"] .vp-nav { display: none; }

/* Receipt: restyle header to centered monospace */
[data-visit-view="receipt"] .vp-header {
  flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1.75rem 1rem; background: none !important;
  border-bottom: 1px dashed #ccc;
}
[data-visit-view="receipt"] .vp-header-main { text-align: center; }
[data-visit-view="receipt"] .vp-header-name {
  font-family: var(--font-mono); font-size: 1.3rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: #333;
}
[data-visit-view="receipt"] .vp-header-details {
  font-family: var(--font-mono); font-size: .7rem; color: #666;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
}
[data-visit-view="receipt"] .vp-header-date {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em;
}
[data-visit-view="receipt"] .vp-header-meal {
  background: none !important; color: #666 !important;
  font-family: var(--font-mono); border: none; padding: 0;
  font-size: .7rem;
}
[data-visit-view="receipt"] .vp-header-loc {
  font-family: var(--font-mono); font-size: .75rem; color: #999;
}
[data-visit-view="receipt"] .vp-header-loc a { color: #999; }
[data-visit-view="receipt"] .vp-header-score {
  background: none !important; width: auto; min-width: auto;
  padding: .5rem 0 0; position: static;
}
[data-visit-view="receipt"] .vp-header-score-num {
  font-size: 1.1rem; color: #333 !important;
  font-family: var(--font-mono);
}
[data-visit-view="receipt"] .vp-header-score-sub {
  font-size: .65rem; color: #999;
}
[data-visit-view="receipt"] .vp-header-people {
  font-family: var(--font-mono); font-size: .75rem; color: #999;
}
[data-visit-view="receipt"] .vp-header-people a { color: #666; }

/* Receipt: body and cards */
[data-visit-view="receipt"] .vp-body {
  padding: .75rem 1.75rem; max-width: none;
}
[data-visit-view="receipt"] .vp-card {
  border: none; box-shadow: none; background: none; padding: 0; margin: 0;
}
[data-visit-view="receipt"] .vp-card-head { display: none; }
[data-visit-view="receipt"] .vp-notes-text {
  font-family: var(--font-mono); font-size: .78rem;
  font-style: italic; color: #777;
}
[data-visit-view="receipt"] .vp-photo-gallery { display: none; }
[data-visit-view="receipt"] .vp-photo { display: none; }
[data-visit-view="receipt"] .vzine-top {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; border-bottom: 1px dashed #ccc; padding: 1rem;
}
[data-visit-view="receipt"] .vzine-top-left {
  border-right: none; text-align: center; padding: 0;
}
[data-visit-view="receipt"] .vzine-top-right {
  background: none !important; padding: .5rem 0 0;
  width: auto; min-width: auto;
}
[data-visit-view="receipt"] .vzine-score-big {
  font-size: 1.1rem; color: #333 !important; background: none !important;
  font-family: var(--font-mono);
}
[data-visit-view="receipt"] .vzine-score-sub {
  font-size: .65rem; color: #999;
}
[data-visit-view="receipt"] .vzine-stamp {
  background: none !important; color: #666 !important;
  font-family: var(--font-mono); font-size: .7rem; padding: 0;
}
[data-visit-view="receipt"] .vzine-meal-pill {
  background: none !important; color: #666 !important;
  font-family: var(--font-mono); border: none;
}
[data-visit-view="receipt"] .vzine-name {
  font-family: var(--font-mono); font-size: 1.3rem;
  letter-spacing: .12em; text-transform: uppercase;
}
[data-visit-view="receipt"] .vzine-location,
[data-visit-view="receipt"] .vzine-people {
  font-family: var(--font-mono); font-size: .75rem;
}

[data-visit-view="receipt"] .vzine-notes {
  border-top: 1px dashed #ccc; background: none;
  font-family: var(--font-mono); font-size: .78rem;
  font-style: italic; color: #777;
}
[data-visit-view="receipt"] .vzine-notes-label { display: none; }

[data-visit-view="receipt"] .vzine-course-head {
  color: #555; border-bottom: 1px dashed #ddd;
  font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .1em; padding-top: .3rem; margin: .4rem 0 .25rem;
}
[data-visit-view="receipt"] .vzine-course:first-child .vzine-course-head {
  margin-top: 0; padding-top: .2rem;
}
[data-visit-view="receipt"] .vzine-dish-row {
  border-bottom: none; font-size: .88rem;
  grid-template-columns: 1.5rem 1fr auto;
}
[data-visit-view="receipt"] .vzine-dish-name {
  font-family: var(--font-mono);
}
[data-visit-view="receipt"] .vzine-dish-price {
  color: #333; font-family: var(--font-mono);
}
[data-visit-view="receipt"] .vzine-dish-price .price-dollar { display: none; }
[data-visit-view="receipt"] .vzine-dish-note,
[data-visit-view="receipt"] .vzine-dish-ingredients {
  font-family: var(--font-mono); font-size: .72rem;
  font-style: italic; color: #999;
}

/* Receipt: plain text score badges */
[data-visit-view="receipt"] .vzine-dishes .dscore {
  border: none !important; border-radius: 0 !important;
  width: auto; height: auto; font-size: .75rem;
  background: none !important; color: #999 !important;
  font-family: var(--font-mono); font-weight: 400;
}
[data-visit-view="receipt"] .vzine-dishes .dscore::before { content: '['; }
[data-visit-view="receipt"] .vzine-dishes .dscore::after  { content: ']'; }

[data-visit-view="receipt"] .vzine-totals {
  border-top: 3px double #ccc; padding-top: .6rem;
}
[data-visit-view="receipt"] .vzine-totals-head { display: none; }
[data-visit-view="receipt"] .vzine-total-row {
  font-family: var(--font-mono); font-size: .82rem;
  color: #666; border-bottom: none;
}
[data-visit-view="receipt"] .vzine-total-final {
  font-family: var(--font-mono); font-size: .95rem;
  border-top: 1px dashed #ccc; color: #000;
}
[data-visit-view="receipt"] .vzine-price-check { display: none; }

/* ── Responsive: collapse 2-col grids to 1 on narrow ── */
@media (max-width: 640px) {
  [data-visit-view="modern"] .vzine-dishes,
  [data-visit-view="editorial"] .vzine-dishes {
    grid-template-columns: 1fr;
  }
}

/* ── PRINT STYLESHEET ────────────────────────────────── */
@media print {
  .site-header,
  .site-footer-bar,
  .pub-admin-bar,
  .visit-breadcrumb,
  .visit-page-footer-links,
  .home-sidebar,
  nav { display: none !important; }

  body {
    background: white !important;
    color: #111 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 11pt !important;
  }

  .page-visit-bg {
    background: white !important;
    padding: 0 !important;
  }

  .visit-zine-wrap { padding: 0 !important; }

  .visit-zine-card {
    max-width: 72mm !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
  }

  .vzine-tear { display: none !important; }

  .vzine-top { border-bottom: 1px dashed #888 !important; }
  .vzine-top-left { border-right: none !important; }
  .vzine-top-right { display: none !important; }

  .vzine-stamp {
    background: none !important;
    color: #555 !important;
    padding: 0 !important;
    font-size: 7pt !important;
  }

  .vzine-name {
    font-size: 14pt !important;
    font-family: 'Courier New', monospace !important;
    color: #000 !important;
  }

  .vzine-location, .vzine-people { color: #555 !important; font-size: 8pt !important; }

  .vzine-course-head {
    border-bottom: 1px dashed #aaa !important;
    color: #333 !important;
    font-size: 7pt !important;
  }

  .vzine-dish-row { font-size: 9pt !important; border-bottom: none !important; grid-template-columns: 1.2rem 1fr 52px; }

  .vzine-notes { border-top: 1px dashed #aaa !important; }
  .vzine-notes-text { font-size: 8.5pt !important; color: #333 !important; }

  .vzine-totals { border-top: 1px dashed #aaa !important; }
  .vzine-total-row { font-size: 9pt !important; }
  .vzine-total-final {
    border-top: 2px solid #333 !important;
    font-size: 10pt !important;
    font-weight: bold !important;
  }

  .dscore { display: none !important; }

  @page {
    margin: 8mm;
    size: 80mm auto;
  }
}
