/* Plated look: ink on white, one red, lines instead of boxes. Colours live here only. */

/* Archivo, served from Plated itself (no Google requests). SIL Open Font License, see fonts/OFL.txt. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/archivo-italic-latin.woff2") format("woff2"); }
:root {
  --ink: #141414;
  --red: #C83A1E;
  --grey: #555555;
  --soft: #333333;
  --muted: #777777;
  --rule: #D6D6D2;
  --tint: #F2F2EF;
  --shadow: #E8E8E4;
  --paper: #FFFFFF;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --tabbar: 68px;
  --head-h: 64px; /* kept up to date by app.js */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
}
.head-row { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; letter-spacing: 0.04em; text-decoration: none; }
.top-nav { display: none; gap: 24px; font-size: 14px; font-weight: 600; }
.top-nav a { text-decoration: none; color: var(--grey); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.top-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.head-counts { margin-left: auto; font-size: 13px; color: var(--grey); }
.head-counts b { color: var(--ink); }
.head-counts .want b, .want-count { color: var(--red); }

/* ---------- Bottom tab bar (phones) ---------- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; background: var(--paper); border-top: 1.5px solid var(--ink);
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
}
.tab-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 44px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.tab-bar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }

.view { flex: 1; width: 100%; outline: none; }
.view > .wrap { padding-top: 16px; padding-bottom: 40px; }


/* ---------- Shared bits ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--grey); text-transform: uppercase; margin: 0 0 6px; }
.big-title { font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -0.5px; margin: 0; }
.sub { font-size: 14px; color: var(--grey); margin: 6px 0 0; }
.small-print { font-size: 12px; color: var(--grey); line-height: 1.45; }
.note-local { font-size: 13px; color: var(--grey); font-style: italic; margin: 6px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.solid { background: var(--ink); color: var(--paper); font-weight: 700; }
.btn.red { background: var(--red); border-color: var(--red); color: var(--paper); font-weight: 700; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }

.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip.want[aria-pressed="true"] { background: var(--red); border-color: var(--red); }

.tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag.been { background: var(--ink); color: var(--paper); }
.tag.want { border: 1.5px solid var(--red); color: var(--red); }
.tag.not { border: 1.5px solid var(--rule); color: var(--grey); }
.tag.pick { background: var(--tint); color: var(--ink); }
.tag.next { background: var(--red); color: var(--paper); }

.box-tint { background: var(--tint); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--grey); }
.box-tint b { color: var(--ink); }
.box-red { border: 1.5px solid var(--red); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--soft); }
.box-red .box-label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--red); margin-bottom: 4px; }
.box-red .box-label span:last-child { color: var(--grey); font-weight: 400; letter-spacing: 0; }
.card {
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px;
  box-shadow: 5px 5px 0 var(--shadow); background: var(--paper);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 700; }
.input {
  min-height: 48px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); font-size: 16px; width: 100%;
}
select.input { padding-right: 8px; }

/* Segmented control (Your call, pace, timeframe…) */
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.seg button {
  min-height: 48px; border: 0; border-left: 1.5px solid var(--ink); background: var(--paper);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 4px;
}
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button.want[aria-pressed="true"] { background: var(--red); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; max-width: calc(100% - 32px);
}

.banner {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px;
  box-shadow: 4px 4px 0 var(--shadow);
}
.banner p { margin: 0; flex: 1 1 220px; font-size: 14px; }
.banner .btn-row { flex: none; }

/* ---------- The List ---------- */
.list-layout { display: block; }
.list-intro { margin-bottom: 10px; }
.list-intro h1 { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -0.3px; }
.search-row { position: relative; margin: 12px 0 4px; }
.search-row svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-row .input { padding-left: 42px; border-radius: 24px; }
.search-hint { font-size: 12px; color: var(--grey); margin: 4px 0 0; }
.search-hint:empty { display: none; }

.list-controls { display: flex; gap: 8px; align-items: stretch; margin: 12px 0 0; }
.show-seg { flex: 1; }
.show-seg button { min-height: 44px; font-size: 13px; white-space: nowrap; padding: 0 6px; }
.filter-btn { padding: 0 12px; }
.seg-count { font-weight: 600; opacity: 0.7; }
.filter-btn { flex: none; min-height: 44px; border-radius: 10px; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 10px 0 0; }
.active-filters[hidden] { display: none; }
.active-chip { border: 0; background: var(--tint); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn { border: 0; background: none; padding: 6px 2px; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }
.count-line { font-size: 13px; color: var(--grey); margin: 14px 0 8px; }

/* Filters panel (phones): slides up from the bottom */
.filter-panel { position: fixed; inset: 0; z-index: 30; background: rgba(20, 20, 20, 0.45); display: flex; align-items: flex-end; }
.filter-panel[hidden] { display: none; }
.panel-sheet { background: var(--paper); width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 14px 14px 0 0; border-top: 1.5px solid var(--ink); padding: 4px 16px max(16px, env(safe-area-inset-bottom)); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.panel-head strong { font-size: 18px; }
.panel-foot { position: sticky; bottom: 0; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.panel-foot .btn { flex: 1; max-width: 240px; }
.filter-fields { display: flex; flex-direction: column; gap: 16px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

/* Rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--rule); padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.row:first-child { border-top: 1.5px solid var(--ink); }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.row-name { font-size: 19px; font-weight: 700; line-height: 1.15; margin: 0; }
.row-name a { text-decoration: none; }
.row-meta { font-size: 13px; color: var(--grey); margin: 3px 0 0; }
.row-tags { display: flex; gap: 6px; align-items: center; flex: none; }
.one-liner { font-style: italic; color: var(--soft); font-size: 15px; line-height: 1.38; margin: 2px 0 0; }
.row-note { font-size: 13px; color: var(--grey); margin: 0; }
.row-note b { color: var(--ink); font-weight: 600; }
.row-seg { margin-top: 6px; }
.row-seg button { min-height: 42px; font-size: 13.5px; }
.row-main { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.row-main:hover .row-name { color: var(--red); }
.view-profile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; margin-top: 8px; padding: 0 14px;
  border: 1.5px solid var(--red); border-radius: 10px;
  color: var(--red); font-size: 15px; font-weight: 700; text-decoration: none;
}
.view-profile .arrow { font-size: 20px; line-height: 1; transition: transform 0.15s; }
.view-profile:hover, .view-profile:active { background: var(--red); color: var(--paper); }
.view-profile:hover .arrow { transform: translateX(3px); }
.row.is-not .row-name, .row.is-not .one-liner { color: var(--muted); }
.empty { color: var(--grey); padding: 24px 0; }
.sample-note { margin: 0 0 12px; padding: 8px 10px; background: var(--tint); border-radius: var(--radius); font-size: 13px; color: var(--grey); }
.sidebar { display: none; }
.filter-card { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Restaurant page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--grey); text-decoration: none; margin-left: -4px; }
.profile { display: flex; flex-direction: column; gap: 22px; }
.profile-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.profile-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile h1 { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.5px; margin: 0; }
.profile-meta { font-size: 14px; color: var(--grey); margin: 0; }
.profile-quote { font-size: 18px; font-style: italic; line-height: 1.4; color: var(--soft); margin: 0; max-width: 640px; }
.profile-boxes { display: grid; gap: 10px; }
.profile-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-foot { border-top: 1px solid var(--rule); padding-top: 14px; font-size: 13px; color: var(--grey); }
.profile-foot a { font-weight: 700; }
.your-call { display: flex; flex-direction: column; gap: 14px; }
.state-help { font-size: 14px; line-height: 1.45; color: var(--soft); margin: 0; }
.hf.done { background: var(--tint); border-color: var(--rule); color: var(--grey); cursor: default; }
.diary-line { font-size: 12px; color: var(--grey); border-top: 1px solid var(--rule); padding-top: 12px; margin: 0; }
.share-row { display: flex; gap: 8px; }

/* Menu slide-up sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(20, 20, 20, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop[hidden] { display: none; }
.menu-sheet {
  background: var(--paper); width: 100%; max-width: 820px; height: 88vh; border-radius: 14px 14px 0 0;
  display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--ink); border-bottom: 0;
}
.menu-sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1.5px solid var(--ink); }
.menu-sheet-head strong { flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-blocked { margin: 0; padding: 12px 16px; background: var(--tint); font-size: 14px; }
.menu-sheet iframe { flex: 1; width: 100%; border: 0; }

/* ---------- Snack tracks ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-item { border-top: 1px solid var(--rule); }
.track-item:first-child { border-top: 1.5px solid var(--ink); }
.track-item a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; text-decoration: none; }
.track-item strong { font-size: 18px; }
.track-item span { font-size: 13px; color: var(--grey); }

.picker { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.picker li { border-top: 1px solid var(--rule); }
.picker li:first-child { border-top: 0; }
.picker label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; cursor: pointer; }
.picker input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.picker .p-name { font-weight: 700; }
.picker .p-meta { font-size: 13px; color: var(--grey); }
.picked-count { font-size: 14px; font-weight: 700; }
.picked-count.full { color: var(--red); }
.surprise-why { font-size: 13px; color: var(--grey); margin: 0; }

.trail { list-style: none; margin: 0; padding: 0; border-bottom: 1.5px solid var(--ink); }
.stop { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: flex-start; }
.stop:first-child { border-top: 1.5px solid var(--ink); }
.stop-when { width: 38px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stop-when span { font-size: 10px; font-weight: 700; color: var(--grey); letter-spacing: 0.04em; }
.stop.up-next .stop-when span { color: var(--red); }
.tick {
  width: 28px; height: 28px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--paper);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.tick[aria-pressed="true"] { background: var(--ink); }
.stop-body { flex: 1; min-width: 0; }
.stop-name { font-size: 17px; font-weight: 700; text-decoration: none; }
.stop.done .stop-name { color: var(--muted); text-decoration: line-through; }
.stop-meta { font-size: 13px; color: var(--grey); margin: 3px 0 0; }

/* Sheet preview on screen */
.sheet-preview { border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px; box-shadow: 4px 4px 0 var(--shadow); overflow: hidden; }
.sheet-preview .pv-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; font-weight: 900; font-size: 14px; gap: 8px; }
.sheet-preview .pv-head span { font-weight: 400; font-style: italic; font-size: 11px; color: var(--grey); }
.sheet-preview .pv-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 0.5px solid var(--rule); font-size: 12px; }
.sheet-preview .pv-box { width: 11px; height: 11px; border: 1px solid var(--ink); flex: none; margin-top: 2px; }
.sheet-preview .pv-why { font-style: italic; color: var(--soft); font-size: 11px; }
.sheet-preview .pv-lines { color: var(--grey); font-size: 10px; }
.sheet-preview .pv-foot { font-size: 10px; color: var(--grey); text-align: center; padding-top: 6px; }

/* ---------- Journal ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.stats div { padding: 12px 10px; border-left: 1.5px solid var(--ink); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.stats span { font-size: 12px; color: var(--grey); font-weight: 600; }
.stats .hf b { color: var(--red); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-top: 1px solid var(--rule); padding: 14px 0; }
.entry:first-child { border-top: 1.5px solid var(--ink); }
.entry-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.entry-head a { font-size: 18px; font-weight: 700; text-decoration: none; }
.entry-date { font-size: 12px; color: var(--grey); white-space: nowrap; }
.entry p { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.entry p b { color: var(--ink); }
.hf-mark { color: var(--red); font-weight: 700; font-size: 13px; }
.save-grid { display: grid; gap: 10px; }

/* ---------- Print sheet (only shows when printing) ---------- */
.print-area { display: none; }

/* ---------- Tablets ---------- */
@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }
  .big-title { font-size: 34px; }
  .profile h1 { font-size: 40px; }
  .profile-boxes { grid-template-columns: 1fr 1fr; }
  .save-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Laptops and desktops ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tab-bar { display: none; }
  .toast { bottom: 24px; }
  .top-nav { display: flex; }
  .brand { font-size: 26px; }
  .head-row { padding-top: 20px; padding-bottom: 18px; }
  .view > .wrap { padding-top: 28px; padding-bottom: 56px; }

  .list-layout.has-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
  .sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--head-h) + 16px); }
  .sidebar .check-list { grid-template-columns: 1fr; }
  .sidebar .check { min-height: 34px; font-size: 14px; }
  .list-intro h1 { font-size: 28px; }
  .show-seg { flex: 0 1 420px; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .row:nth-child(2) { border-top: 1.5px solid var(--ink); }

  .profile { flex-direction: row; align-items: flex-start; gap: 40px; }
  .profile-main { flex: 1; }
  .profile h1 { font-size: 44px; letter-spacing: -1px; }
  .profile-quote { font-size: 22px; }
  .profile-side { flex: 0 0 360px; position: sticky; top: calc(var(--head-h) + 16px); }
  .profile-side.card { padding: 20px; box-shadow: 6px 6px 0 var(--shadow); }

  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .btn:hover:not(.solid):not(.red):not([disabled]):not(.done) { background: var(--tint); }
  .seg button:hover:not([aria-pressed="true"]) { background: var(--tint); }
}

/* ---------- Printing: only the sheet, letter size ---------- */
@page { size: letter; margin: 0.5in; }
@media print {
  body { display: block; padding: 0; min-height: 0; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; color: #000; font-family: var(--font); }
  .ps-page { page-break-after: always; break-after: page; }
  .ps-page:last-child { page-break-after: auto; break-after: auto; }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 8px; }
  .ps-title { font-size: 26pt; font-weight: 900; line-height: 1; margin: 0; letter-spacing: -0.5px; }
  .ps-kicker { font-size: 9pt; font-weight: 700; letter-spacing: 0.1em; margin: 0 0 4px; }
  .ps-right { text-align: right; font-size: 9pt; }
  .ps-right i { display: block; }
  .ps-how { font-size: 9.5pt; margin: 8px 0 4px; }
  .ps-flip { font-size: 9.5pt; font-weight: 700; margin: 0 0 4px; }
  .ps-row { display: grid; grid-template-columns: 18pt 1fr; gap: 6pt; padding: 16pt 0 16pt; border-bottom: 1px solid #999; break-inside: avoid; }
  .ps-box { width: 14pt; height: 14pt; border: 1.5px solid #000; margin-top: 2pt; }
  .ps-name { font-size: 15pt; font-weight: 700; margin: 0; }
  .ps-meta { font-size: 9.5pt; margin: 1pt 0 0; }
  .ps-why { font-size: 10.5pt; font-style: italic; margin: 5pt 0 4pt; }
  .ps-line { display: flex; gap: 6pt; align-items: flex-end; font-size: 9.5pt; margin-top: 20pt; }
  .ps-line span { white-space: nowrap; }
  .ps-line i { flex: 1; border-bottom: 1px solid #000; height: 1px; }
  .ps-pair { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14pt; }
  .ps-foot { border-top: 2px solid #000; margin-top: 10pt; padding-top: 6pt; display: flex; justify-content: space-between; gap: 12px; font-size: 8.5pt; }
  .ps-journal .ps-row { grid-template-columns: 1fr; padding: 8pt 0; }
  .ps-journal .ps-name { font-size: 12pt; }
  .ps-journal p { margin: 2pt 0 0; font-size: 9.5pt; }
}

/* ---------- Menu (hamburger) ---------- */
.menu-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; padding: 0;
}
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.menu-btn path { transition: transform 0.15s, opacity 0.15s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .bar1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar3 { transform: translateY(-5px) rotate(-45deg); }
.head-counts { margin-left: auto; }
.site-menu { border-top: 1px solid var(--rule); background: var(--paper); }
.site-menu[hidden] { display: none; }
.menu-list { list-style: none; margin: 0; padding: 4px 0 12px; }
.menu-list li { border-bottom: 1px solid var(--rule); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list a { display: flex; align-items: center; min-height: 52px; font-size: 17px; font-weight: 700; text-decoration: none; }
.menu-list a:hover { color: var(--red); }
#contact-link { color: var(--red); }
@media (min-width: 960px) {
  .site-menu { position: absolute; right: max(32px, calc((100% - 1120px) / 2 + 32px)); top: 100%; width: 280px; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--shadow); margin-top: 8px; }
  .site-menu .wrap { padding: 0 16px; }
  .menu-list a { font-size: 15px; min-height: 46px; }
}
@media (max-width: 959px) {
  .head-row { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 20px; flex: none; }
  .head-counts { min-width: 0; text-align: right; line-height: 1.25; font-size: 12px; }
}

/* Search + filters pinned under the sticky header */
.list-sticky {
  position: sticky; top: var(--head-h); z-index: 6;
  background: var(--paper);
  margin: 0 -16px; padding: 4px 16px 0;
  border-bottom: 1.5px solid var(--ink);
}
.list-sticky .search-row { margin-top: 8px; }
.list-sticky .count-line { margin: 10px 0 8px; }
.list-sticky + .rows .row:first-child { border-top: 0; }
@media (min-width: 700px) { .list-sticky { margin: 0 -24px; padding: 4px 24px 0; } }
@media (min-width: 960px) {
  .list-sticky { margin: 0; padding: 4px 0 0; }
  .list-sticky + .rows .row:nth-child(2) { border-top: 0; }
}


/* Snack track picker: search + filters for "Anywhere" */
.finder { display: flex; flex-direction: column; gap: 10px; }
.finder .search-row { margin: 0; }
.finder-filters { display: grid; grid-template-columns: 1fr; gap: 10px; }
.finder-filters .field label { font-size: 13px; }
.picked-list { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 560px) { .finder-filters { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Snack Track page spacing ---------- */
.track-main { display: flex; flex-direction: column; gap: 24px; }
.track-head .big-title { margin: 2px 0 0; }
.track-head .sub { margin-top: 10px; }
.track-actions .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.track-actions .btn { min-height: 50px; font-size: 15px; }
.track-section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head .eyebrow { margin: 0; }
.section-count { font-size: 13px; font-weight: 700; color: var(--red); }
.track-page .stop { padding: 18px 0; gap: 16px; }
.track-note { margin: 4px 0 0; }
.track-sheet { margin-top: 36px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.track-sheet .sheet-preview { padding: 18px; }
.track-danger { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.delete-track { min-height: 48px; padding: 0 20px; }
.delete-track:hover { background: #A82F17; border-color: #A82F17; }
@media (min-width: 560px) {
  .track-actions .btn-row { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 960px) {
  .track-page .two-col { gap: 56px; }
  .track-sheet { margin-top: 0; padding-top: 0; border-top: 0; position: sticky; top: calc(var(--head-h) + 24px); }
  .track-main { gap: 28px; }
}

/* Snack Track stops: planned date, time and Add to Calendar */
.stop-day { font-size: 18px; font-weight: 900; line-height: 1; margin-top: -2px; }
.plan { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.plan-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-field span { font-size: 12px; font-weight: 700; color: var(--grey); }
.plan-field .input { min-height: 42px; font-size: 15px; padding: 0 8px; }
.plan-field .input:disabled { opacity: 0.5; }
.plan-when { margin: 0; font-size: 14px; font-weight: 700; }
.plan-cal { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cal-btn[disabled] { opacity: 0.45; }
.cal-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-menu[hidden] { display: none; }
@media print { .ps-plan { font-size: 10pt; font-weight: 700; margin: 3pt 0 0; } }

/* Snack Tracks home: Still hungry / Cleaned plates */
.track-groups { display: flex; flex-direction: column; gap: 32px; }
.track-group { display: flex; flex-direction: column; gap: 10px; }
.section-count.muted { color: var(--grey); }
.track-item.finished strong { color: var(--muted); }
.list-sticky { padding-bottom: 12px; }
.list-sticky { border-bottom-color: var(--red); }
.red-title { color: var(--red); }
.finder .filter-btn { align-self: flex-start; }
.finder-filters[hidden] { display: none; }
.finder-filters .link-btn { justify-self: start; align-self: end; }
.share-row { flex-wrap: wrap; }
.track-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--red); border-radius: 10px; max-width: 420px; }
.track-menu[hidden] { display: none; }
.track-menu .btn { white-space: normal; text-align: left; min-height: 40px; }
.share-plated { margin: 4px 0 16px; min-height: 48px; font-size: 15px; }
.back-link { color: var(--red); }
.back-link:hover { color: #A82F17; }
.note-box { min-height: 110px; padding: 12px; line-height: 1.45; resize: vertical; font-size: 16px; }

/* Current tab is red (bottom tab bar on phones, top tabs on desktop) */
.tab-bar a[aria-current="page"] { color: var(--red); }
.top-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.tab-bar { border-top: 2px solid var(--ink); }
@media print {
  .ps-foot { align-items: center; }
  .ps-foot p { margin: 0 0 3pt; }
  .ps-qr { display: flex; align-items: center; gap: 8pt; font-size: 8.5pt; max-width: 2.4in; text-align: left; }
  .ps-qr img { width: 0.95in; height: 0.95in; flex: none; }
}
.track-intro { margin: 10px 0 0; font-size: 16px; font-style: italic; color: var(--soft); max-width: 600px; }

/* Snack Tracks home: Ready-made drop-down */
.ready-made summary { list-style: none; cursor: pointer; justify-content: flex-start; align-items: center; min-height: 44px; padding: 4px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.ready-made summary::-webkit-details-marker { display: none; }
.ready-made summary .eyebrow { margin: 0; }
.ready-made .chev { margin-left: auto; color: var(--red); font-size: 18px; transition: transform 0.15s; }
.ready-made[open] .chev { transform: rotate(180deg); }
.ready-made[open] .track-list .track-item:first-child { border-top: 0; }

/* Ready-made drop-down: rounded box with a plus / minus */
.ready-made { border: 1.5px solid var(--ink); border-radius: 12px; padding: 0 14px; gap: 0; }
.ready-made summary { border: 0; padding: 8px 0; }
.ready-made[open] summary { border-bottom: 1px solid var(--rule); }
.ready-made .chev { transform: none !important; width: 26px; height: 26px; border: 1.5px solid var(--red); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ready-made .chev::before { content: "+"; font-size: 20px; font-weight: 700; line-height: 1; color: var(--red); }
.ready-made[open] .chev::before { content: "\2212"; }
.ready-made .track-list { padding-bottom: 4px; }
.ready-made .track-item:first-child { border-top: 0; }

/* Plus / minus drawn as two bars, so they sit exactly in the middle of the circle */
.ready-made .chev { position: relative; flex: none; }
.ready-made .chev::before, .ready-made .chev::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--red); border-radius: 1px;
}
.ready-made .chev::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.ready-made .chev::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.ready-made[open] .chev::before { content: ""; }
.ready-made[open] .chev::after { display: none; }
.ready-made { margin-bottom: 18px; }

/* Places with several locations */
.locations { display: flex; flex-direction: column; gap: 8px; }
.locations .eyebrow { margin: 0; }
.loc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.loc { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.loc strong { font-size: 16px; }
.loc-meta { font-size: 13px; color: var(--grey); }
/* Each location: name, address and neighbourhood first, buttons underneath */
.loc { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }

/* The row you came back to glows red briefly */
.row-flash { animation: rowflash 1.6s ease-out; }
@keyframes rowflash { 0% { background: rgba(200, 58, 30, 0.14); } 100% { background: transparent; } }
.panel-sheet:focus { outline: none; }
.input-error { border-color: var(--red); box-shadow: 0 0 0 2px rgba(200, 58, 30, 0.2); }

/* The three tab titles share one size that keeps each on a single line, phone to desktop */
.page-title, .list-intro h1.page-title {
  font-size: clamp(18px, 6.1vw, 36px); font-weight: 900; line-height: 1.1; letter-spacing: -0.3px;
  margin: 0; white-space: nowrap;
}

/* Services on a profile: small outlined tags */
.service-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-list li { font-size: 12px; font-weight: 700; padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 999px; }
.service-list li { background: var(--red); border-color: var(--red); color: var(--paper); }

/* Back to top (The List only) */
.to-top {
  position: fixed; right: 16px; z-index: 8;
  bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--red); background: var(--paper); color: var(--red);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.15);
}
.to-top[hidden] { display: none; }
.to-top:hover, .to-top:active { background: var(--red); color: var(--paper); }
@media (min-width: 960px) { .to-top { bottom: 28px; right: 28px; } }
@media print { .to-top { display: none !important; } }
.to-top { background: var(--red); color: var(--paper); border-color: var(--red); }
.to-top:hover, .to-top:active { background: #A82F17; border-color: #A82F17; color: var(--paper); }

/* Slimmer bottom tab bar (about 50px plus the iPhone home-bar area); tabs stay 44px tall to tap */
:root { --tabbar: 50px; }
.tab-bar { padding: 2px 8px max(4px, env(safe-area-inset-bottom)); }
.tab-bar a { min-height: 44px; gap: 3px; font-size: 11px; }
.tab-bar a svg { width: 22px; height: 22px; }
/* Centre the tab icons and labels top-to-bottom: equal space above and below
   (on iPhones the home-bar space is trimmed slightly so the tabs don't float high) */
:root { --tabbar: 54px; }
.tab-bar { padding: 6px 8px max(4px, calc(env(safe-area-inset-bottom) - 9px)); }
.tab-bar a { justify-content: center; }

/* Drop-down sections (Privacy on About us), same look as Ready-made by Plated */
.fold { border: 1.5px solid var(--ink); border-radius: 12px; padding: 0 14px; margin-top: 8px; }
.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .eyebrow { margin: 0; }
.fold[open] summary { border-bottom: 1px solid var(--rule); }
.fold .chev { margin-left: auto; position: relative; flex: none; width: 26px; height: 26px; border: 1.5px solid var(--red); border-radius: 50%; }
.fold .chev::before, .fold .chev::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--red); border-radius: 1px; transform: translate(-50%, -50%); }
.fold .chev::before { width: 12px; height: 2px; }
.fold .chev::after { width: 2px; height: 12px; }
.fold[open] .chev::after { display: none; }
.fold-body { display: flex; flex-direction: column; gap: 14px; padding: 14px 0 16px; }
.share-options { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.share-options .btn { min-height: 48px; font-size: 15px; }
@media (min-width: 960px) { #share-sheet { align-items: center; justify-content: center; } #share-sheet .panel-sheet { max-width: 420px; border-radius: 14px; border: 1.5px solid var(--ink); } }
/* More breathing room between places on The List */
.row { padding: 24px 0 26px; }

/* Claim form: the place is shown, not chosen */
.claim-place { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--tint); }
.claim-place strong { font-size: 17px; }
.claim-place span { font-size: 13px; color: var(--grey); }
.claim-place a { margin-top: 6px; color: var(--red); font-weight: 700; }
.share-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 14px; }
.share-qr img { width: 132px; height: 132px; border: 1.5px solid var(--rule); border-radius: 10px; padding: 6px; background: #fff; box-sizing: content-box; }
.share-qr span { font-size: 12px; font-weight: 700; color: var(--grey); }

/* The List: header scrolls away; search + filters pin to the very top of the screen */
body.on-list .site-head { position: relative; }
body.on-list .list-sticky { top: 0; padding-top: max(8px, env(safe-area-inset-top)); }
body.on-list .sidebar { top: 16px; }

/* Edit Snack Track */
.edit-list .stop { align-items: center; }
.edit-list .stop .btn { flex: none; color: var(--red); border-color: var(--red); }
.add-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; }
.add-row .btn { flex: none; }
.edit-actions { margin-top: 6px; }
.edit-actions .btn { min-height: 48px; padding: 0 22px; }
@media (min-width: 560px) { .track-actions .btn-row { grid-template-columns: auto auto auto; } }


.stop-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stop-title .tag { flex: none; margin-top: 2px; }
.edit-track { border-color: var(--red); color: var(--red); font-weight: 700; }
.edit-track:hover { background: var(--red) !important; color: var(--paper); }
/* One divider above THE SHEET is enough: the list of places already ends with a line */
.track-sheet { border-top: 0; padding-top: 0; }

/* Date and time: the phone's own boxes, sized so both always fit side by side */
.plan-inputs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.plan-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-field span { font-size: 12px; font-weight: 700; color: var(--grey); }
.plan-input {
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  min-height: 44px; height: 44px; padding: 0 10px; font-size: 16px; line-height: 44px;
  background: var(--paper); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.plan-input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.plan-input::-webkit-datetime-edit { padding: 0; }
.plan-input:disabled { opacity: 0.45; }

/* Special occasion note on a Snack Track stop */
.occasion-link { align-self: flex-start; color: var(--red); text-decoration: none; font-size: 14px; padding: 4px 0; }
.occasion-link:hover { text-decoration: underline; }
.occasion[hidden] { display: none; }

/* iPhones zoom in on any text box smaller than 16px. Keep every box at 16px so tapping one never zooms. */
input, select, textarea, .input, .plan-field .input, .plan-input, .note-box { font-size: 16px; }
/* My Journal on phones: clear space between the "Still want to try" list and the save options */
@media (max-width: 959px) { .journal-save { margin-top: 36px; } }

/* Desktop filters: the pinned sidebar scrolls on its own when it's taller than the window */
@media (min-width: 960px) {
  .sidebar {
    max-height: calc(100vh - var(--head-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 2px 8px 16px 2px; margin-left: -2px;
    scrollbar-width: thin;
  }
  .sidebar > * { flex-shrink: 0; }
  body.on-list .sidebar { max-height: calc(100vh - 32px); }
}

/* Bot check: only shows if Cloudflare needs a tap */
.bot-check { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 60; }
@media (min-width: 960px) { .bot-check { bottom: 24px; } }
.bot-check.open { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px; box-shadow: 5px 5px 0 var(--shadow); }
.bot-check p { margin: 0 0 8px; font-size: 13px; font-weight: 700; max-width: 300px; }

/* 404: "Nothing to eat here…" (404.html and unknown in-app addresses) */
.nothing-here { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.nothing-here h1 { margin: -6px 0 0; font-size: clamp(26px, 7vw, 40px); color: var(--ink); }
.nothing-here img { width: min(240px, 60vw); height: auto; }
.nothing-here .btn { min-width: 180px; text-decoration: none; }

/* Snack Track: the outing's one date + calendar, or "Add all to calendar" for spread-out tracks */
.outing-plan { border: 1.5px solid var(--red); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.outing-plan .label { margin: 0; color: var(--red); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
