/* ---------------------------------------------------------------
   Restaurant Gold — shared stylesheet
   A dining-rewards site styled after the thing it's about: menus,
   checks, and the little printed tickets restaurants hand you.
----------------------------------------------------------------*/

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

:root {
  --paper: #e9e2d0;
  --paper-raised: #f3eee0;
  --ink: #23261e;
  --ink-soft: #52543f;
  --gold: #a97a1f;
  --gold-deep: #8a611a;
  --olive: #47543a;
  --line: #c7bb98;
  --line-strong: #a8996c;
  --stamp: #863a2c;
  --navy: #1a3a5c;
  --navy-deep: #0f2740;
  --max: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 58, 92, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-deep); }
a:hover { color: var(--navy); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 3px solid var(--gold);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav.primary { gap: 14px; flex-wrap: wrap; row-gap: 6px; }
  .wordmark .place { display: block; margin-left: 0; margin-top: 2px; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.wm-icon {
  color: #cbb26a;
  flex-shrink: 0;
}

.wm-main {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.wm-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: #cbb26a;
  line-height: 1;
}

.wm-rule {
  width: 88px;
  height: 2px;
  background: #cbb26a;
  margin: 7px auto 0;
  opacity: 0.9;
}

.wordmark:hover .wm-icon {
  color: #fff;
}

.wordmark:hover .wm-title {
  color: #fff;
}

.wordmark:hover .wm-rule {
  background: #fff;
}

.wordmark .place {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #9fb2c4;
  margin-left: 10px;
}

nav.primary {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

nav.primary a {
  color: var(--paper-raised);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px dashed var(--line-strong);
}

.hero .kicker {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 26ch;
}

.hero p.lede {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
}

.btn.solid {
  background: var(--ink);
  color: var(--paper-raised);
}

.btn.solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:hover {
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px -10px rgba(15, 39, 64, 0.4);
}

/* ---------- Section rhythm ---------- */

section.block {
  padding: 44px 0;
  border-bottom: 1px dashed var(--line);
}

section.block:last-of-type { border-bottom: none; }

h2.block-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

p.block-sub {
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ---------- Ticket / menu-line component ---------- */
/* Used for lists that read like a menu: label ......... value */

.ticket {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  padding: 26px 28px;
}

.menu-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line-strong);
}

.menu-line:last-child { border-bottom: none; }

.menu-line .label { white-space: nowrap; }

.menu-line .fill {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}

.menu-line .value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  font-weight: 500;
}

@media (max-width: 480px) {
  .menu-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .menu-line .fill { display: none; }
  .menu-line .value { white-space: normal; }
}

/* ---------- Tool cards (three-up) ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.tool-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  padding: 36px 24px 28px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(35, 38, 30, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events: none;
}

.tool-card.tool-navy { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.tool-card.tool-gold { background: linear-gradient(160deg, var(--gold), var(--gold-deep)); }
.tool-card.tool-stamp { background: linear-gradient(160deg, #a3452f, var(--stamp)); }

.tool-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px rgba(35, 38, 30, 0.3);
}

.tool-card .icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tool-card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(255, 255, 255, 0.26);
}

.tool-card h3 {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  margin: 0;
  color: #fff;
}

.tool-card .tool-go {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tool-card .tool-go span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-go span {
  transform: translateX(4px);
}

/* ---------- Feature rows (home) ---------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -16px rgba(35, 38, 30, 0.35);
  border-color: var(--line-strong);
}

.feature-row.reverse { grid-template-columns: 1fr 300px; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-visual {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(35, 38, 30, 0.08);
}

.feature-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-visual-navy { background: linear-gradient(160deg, #26445f, var(--navy-deep)); }
.feature-visual-gold { background: linear-gradient(160deg, #cfa645, var(--gold-deep)); }
.feature-visual-stamp { background: linear-gradient(160deg, #b4523a, var(--stamp)); }

.feature-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.feature-copy h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.feature-copy p:not(.feature-eyebrow) {
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 46ch;
}

.feature-go {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-go span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.feature-row:hover .feature-go span { transform: translateX(4px); }
.feature-row:hover .feature-go { color: var(--navy); }

@media (max-width: 720px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-copy,
  .feature-row .feature-visual,
  .feature-row .feature-copy {
    order: initial;
  }
  .feature-visual { aspect-ratio: 16 / 9; }
}

/* ---------- Forms ---------- */

label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold-deep);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Calculator result table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.result-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
}

.result-table th,
.result-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.result-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: none;
}

.result-table td.num,
.result-table th.num { text-align: right; }

.result-table tr.best { background: rgba(169, 122, 31, 0.13); }
.result-table tr.best td:first-child { font-weight: 600; }

.result-table td.note {
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.calc-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 62ch;
}

/* ---------- Restaurant list ---------- */

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters input[type="text"] {
  width: auto;
  min-width: 170px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filters input[type="text"]:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(169, 122, 31, 0.15);
}

.btn-clear {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-clear:hover {
  color: var(--stamp);
  background: rgba(134, 58, 44, 0.08);
}

.btn-fave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-fave .fave-star {
  font-size: 0.95rem;
}

.btn-fave:hover {
  border-color: var(--gold-deep);
}

.btn-fave.active {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
  color: #fff8ea;
}

.btn-fave.active .fave-star {
  color: #fff8ea;
}

.multiselect {
  position: relative;
  display: inline-block;
}

.multiselect-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  min-width: 132px;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(35, 38, 30, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.multiselect-btn:hover {
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(35, 38, 30, 0.12);
}

.multiselect-btn::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-soft);
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.multiselect-btn.active {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: rgba(169, 122, 31, 0.08);
}

.multiselect-btn.active::after { border-top-color: var(--gold-deep); }

.multiselect-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  min-width: 200px;
  max-width: 250px;
  box-shadow: 0 10px 28px rgba(35, 38, 30, 0.22);
  padding: 8px;
}

.multiselect-search {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 7px 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  margin-bottom: 6px;
}

.multiselect-search:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.multiselect-list {
  max-height: 230px;
  overflow-y: auto;
}

.multiselect-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.3;
  cursor: pointer;
  border-radius: 5px;
}

.multiselect-row:hover { background: rgba(169, 122, 31, 0.12); }

.multiselect-row input[type="checkbox"] {
  accent-color: var(--gold-deep);
  margin: 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.multiselect-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multiselect-clear {
  width: 100%;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}

.multiselect-clear:hover { color: var(--stamp); }

table.restaurant-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.restaurant-table th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 2px solid var(--ink);
}

table.restaurant-table td {
  padding: 12px 10px;
  border-bottom: 1px dotted var(--line-strong);
  vertical-align: top;
}

table.restaurant-table tr:hover td { background: rgba(169, 122, 31, 0.07); }

.app-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.gold {
  background: var(--gold-deep);
  color: #fff8ea;
}

.tag.navy {
  background: var(--navy);
  color: #eef4fb;
}

.tag.olive {
  background: var(--olive);
  color: #eef4e6;
}

.tag.off {
  border: 1px solid var(--line);
  color: var(--line-strong);
  background: transparent;
}

.fave-star {
  color: var(--gold-deep);
  font-size: 0.95em;
}

.rest-name-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
}

.rest-name-link:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-deep);
}

.rest-rating-cell { white-space: nowrap; }

.rest-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
}

.rest-rating-star {
  color: var(--gold-deep);
  font-size: 0.9em;
}

.rest-rating-count {
  margin-left: 4px;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.85em;
}

/* ---------- List/Map view toggle ---------- */

.view-toggle {
  display: inline-flex;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 16px;
}

.view-toggle-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border: none;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1.5px solid var(--line-strong);
}

.view-toggle-btn:hover {
  color: var(--gold-deep);
}

.view-toggle-btn.active {
  background: var(--gold-deep);
  color: #fff8ea;
}

/* ---------- Map view ---------- */

.map-view {
  margin-top: 4px;
}

#restaurantMap {
  width: 100%;
  height: 600px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raised);
}

.map-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.rest-pin-wrap { background: transparent; border: none; }

.rest-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff8ea;
  box-shadow: 0 1px 3px rgba(15, 39, 64, 0.5);
}

.rest-pin-fave {
  background: var(--gold-deep);
}

.map-popup h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--ink);
}

.map-popup p {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

.map-popup a {
  font-size: 0.82rem;
  font-weight: 600;
}

.leaflet-popup-content-wrapper {
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: var(--paper-raised);
}

.leaflet-tooltip {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 9px;
  box-shadow: 0 2px 6px rgba(35, 38, 30, 0.18);
}

.leaflet-tooltip-top:before {
  border-top-color: var(--line-strong);
}

.cluster-tooltip-wrap {
  padding: 0;
  max-width: 220px;
}

.cluster-tooltip {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--ink);
}

.cluster-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cluster-tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cluster-tooltip li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--line-strong);
  line-height: 1.3;
}

.cluster-tooltip li:last-child { border-bottom: none; }

.sort-th {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: inherit;
}

.sort-th:hover, .sort-th.active { color: var(--gold-deep); }

.sort-arrow {
  font-size: 0.7rem;
  display: inline-block;
  min-width: 10px;
}

.muted { color: var(--ink-soft); }

.empty-state {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* ---------- Pager (restaurant list) ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
}

.pager-info {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.pager-page {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.pager-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Cards page ---------- */

.card-row {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  padding: 22px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.card-photo-wrap {
  width: 100px;
  flex: 0 0 auto;
}

.card-photo {
  width: 100%;
  aspect-ratio: 500 / 315;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(35, 38, 30, 0.25);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-row .card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.card-row h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.card-rate {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.card-row p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 3px solid var(--gold);
  background: var(--navy);
  margin-top: 20px;
  padding: 28px 0 36px;
}

footer.site-footer p {
  font-size: 0.85rem;
  color: #b7c4d1;
  max-width: 68ch;
  margin: 0 0 10px;
}

footer.site-footer a { color: var(--gold); }
footer.site-footer a:hover { color: var(--paper-raised); }

/* ---------- Misc ---------- */

.stamp {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  padding: 2px 7px;
  border-radius: 2px;
  transform: rotate(-2deg);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 40px 0 10px;
}

.page-sub {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .tool-card,
  .tool-card .icon,
  nav.primary a,
  .wordmark,
  .wm-icon,
  .wm-title,
  .wm-rule,
  .article-card,
  .article-card h3 {
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
  }
  .article-card img { transition: transform 0.4s ease; }
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Article grid ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 720px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-card {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--navy);
  transform: translateY(-6px);
  box-shadow: 0 14px 24px -12px rgba(15, 39, 64, 0.45);
}

.article-card .img-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.article-card:hover img {
  transform: scale(1.06);
}

.article-card:hover h3 {
  color: var(--navy);
}

.article-card .article-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.article-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1;
}

.article-card .article-status {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Editorial map-list (e.g. "Current Hits on inKind") ---------- */
/* A photo-forward, magazine-style running list — inspired by the classic
   Eater "maps" format: a colored masthead intro, color-coded tier sections,
   a big photo per entry, a numeral badge, and flowing editorial copy. */

.article-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 40px 0 6px;
}

.article-eyebrow + .page-title {
  margin-top: 0;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.article-byline .byline-by {
  color: var(--ink-soft);
}

.article-byline .byline-name {
  font-weight: 700;
  color: var(--ink);
}

.article-byline .byline-dot {
  color: var(--line-strong);
}

.article-byline .byline-date {
  color: var(--ink-soft);
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 28px;
  box-shadow: 0 6px 18px rgba(35, 38, 30, 0.2);
  display: block;
}

.ed-masthead {
  background: linear-gradient(155deg, var(--paper-raised), var(--paper));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 18px 0 8px;
}

.ed-masthead p {
  margin: 0 0 14px;
  color: var(--ink);
}

.ed-masthead p:last-child { margin-bottom: 0; }

.ed-masthead p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  line-height: 0.75;
  float: left;
  padding: 4px 6px 0 0;
  color: var(--gold-deep);
}

.ed-section {
  margin-top: 48px;
}

.ed-section:first-of-type {
  margin-top: 40px;
}

.ed-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.ed-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
}

/* Tier color coding: fine dining (navy), buzzy scene (stamp red),
   neighborhood gems (olive), casual/value (gold). */
.ed-section.tier-1 .ed-eyebrow { color: var(--navy); }
.ed-section.tier-1 .ed-section-title { border-bottom-color: var(--navy); }
.ed-section.tier-2 .ed-eyebrow { color: var(--stamp); }
.ed-section.tier-2 .ed-section-title { border-bottom-color: var(--stamp); }
.ed-section.tier-3 .ed-eyebrow { color: var(--olive); }
.ed-section.tier-3 .ed-section-title { border-bottom-color: var(--olive); }
.ed-section.tier-4 .ed-eyebrow { color: var(--gold-deep); }
.ed-section.tier-4 .ed-section-title { border-bottom-color: var(--gold-deep); }

.ed-entry {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

.ed-entry:last-child { border-bottom: none; }

.ed-entry-photo {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(35, 38, 30, 0.22);
}

.ed-entry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ed-entry:hover .ed-entry-photo img {
  transform: scale(1.06);
}

.ed-entry-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--tier-color, var(--gold-deep));
  padding: 2px 9px 3px;
  border-bottom-right-radius: 10px;
}

.tier-1 .ed-entry-num { background: var(--navy); }
.tier-2 .ed-entry-num { background: var(--stamp); }
.tier-3 .ed-entry-num { background: var(--olive); }
.tier-4 .ed-entry-num { background: var(--gold-deep); }

.ed-entry-body { min-width: 0; }

.ed-entry h3 {
  margin: 0 0 2px;
}

.ed-entry h3 a {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ed-entry h3 a:hover {
  color: var(--gold-deep);
}

.ed-entry .ed-pin {
  font-size: 0.85rem;
  margin-left: 4px;
  color: var(--ink-soft);
}

.ed-entry .ed-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tier-color, var(--gold-deep));
  margin: 0 0 8px;
}

.tier-1 .ed-meta { color: var(--navy); }
.tier-2 .ed-meta { color: var(--stamp); }
.tier-3 .ed-meta { color: var(--olive); }
.tier-4 .ed-meta { color: var(--gold-deep); }

.ed-entry p.ed-body {
  margin: 0;
  max-width: 68ch;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 560px) {
  .ed-entry {
    grid-template-columns: 1fr;
  }
  .ed-entry-photo {
    width: 100%;
    height: 180px;
  }
}

/* ---------- Affiliate buttons (home page hero) ---------- */

.btn-affiliate {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--navy);
}

.btn-affiliate:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ---------- Savings calculator ---------- */

.sc-check {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  padding: 28px 24px;
  max-width: 480px;
}

.sc-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sc-pop {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: sc-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc-pop-star {
  color: var(--stamp);
  font-size: 1.1rem;
}

@keyframes sc-pop-in {
  0% { opacity: 0; transform: scale(0.8) translateY(8px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sc-pop { animation: none; }
}

.sc-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sc-amount .sym {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--ink-soft);
}

.sc-amount input {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink);
  width: 100%;
  padding: 0;
}

.sc-amount input:focus {
  outline: none;
}

.sc-caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 2px 0 16px;
}

.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sc-chip,
.sc-seg button,
.sc-freq button {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.sc-chip[aria-pressed="true"],
.sc-seg button[aria-pressed="true"],
.sc-freq button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.sc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sc-row .lab {
  font-weight: 600;
  font-size: 0.9rem;
}

.sc-seg {
  display: flex;
  gap: 6px;
}

.sc-go {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
}

.btn.sc-go {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--navy);
}

.btn.sc-go:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: none;
  box-shadow: none;
}

.sc-adv summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.sc-advgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

@media (max-width: 480px) {
  .sc-advgrid { grid-template-columns: 1fr; }
}

.sc-advgrid label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.sc-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.sc-field input {
  border: none;
  background: transparent;
  padding: 8px 8px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.sc-field input:focus {
  outline: none;
}

.sc-field .affix {
  padding: 0 10px;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.sc-reset {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------- Calculator results ---------- */

.sc-results {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sc-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 14px 16px;
}

.sc-bar-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.sc-bar-row .nm {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sc-track {
  height: 6px;
  width: 100%;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sc-fill {
  height: 100%;
  background: var(--gold-deep);
  border-radius: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .sc-board.is-fresh .sc-fill {
    transition: width 0.6s ease;
  }
}

.sc-bar-row .sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.sc-row-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
}

.sc-amt {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
  white-space: nowrap;
}

.sc-amt small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.sc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 720px) {
  .sc-cards { grid-template-columns: 1fr; }
}

.sc-card {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  padding: 20px 20px 22px;
}

.sc-card .tag {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.sc-card .num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.sc-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.sc-freq {
  display: flex;
  gap: 6px;
}

.sc-howlist {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Near Me page ---------- */

.near-me-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0 4px;
}

.near-me-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
}

.near-me-row-dist {
  flex: 0 0 160px;
}

.near-me-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.near-me-form input[type="text"],
.near-me-form select {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.near-me-form input[type="text"]:focus,
.near-me-form select:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
}

.near-me-status {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 14px 0;
  min-height: 1.2em;
}

#nearMeMap {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raised);
  margin-bottom: 20px;
}

.home-pin {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--stamp);
  border: 3px solid #fff8ea;
  box-shadow: 0 1px 4px rgba(15, 39, 64, 0.6);
}
