:root {
  --cover: #721d31;
  --cover-dark: #3c0c18;
  --paper: #f2e6ce;
  --paper-high: #fff8e8;
  --ink: #211814;
  --muted: #6e5e52;
  --rule: #bfa98a;
  --saffron: #e4a81b;
  --leaf: #37624a;
  --rust: #a3452f;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue Condensed", sans-serif;
  --editorial: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --utility: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 20px 52px rgba(54, 24, 18, 0.14);
  --card-shadow: 0 12px 32px rgba(54, 24, 18, 0.1);
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cover);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  font-family: var(--editorial);
  text-rendering: optimizeLegibility;
}

.app-shell {
  --tray-width: 272px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--tray-width) 16px minmax(0, 1fr);
  background: var(--paper);
  transition: grid-template-columns 180ms var(--ease-out);
}

.app-shell.is-resizing {
  cursor: col-resize;
  user-select: none;
  transition: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a,
input,
summary {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--saffron);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--cover-dark);
  background: var(--paper-high);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.cover {
  position: sticky;
  top: 0;
  width: 100%;
  min-width: 0;
  height: 100vh;
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: rgba(255, 248, 232, 0.34) transparent;
  scrollbar-width: thin;
  color: var(--paper);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.045), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    var(--cover);
  border-right: 1px solid rgba(255, 248, 232, 0.24);
  opacity: 1;
  transition: opacity 120ms var(--ease-out), padding 180ms var(--ease-out);
}

.tray-collapsed .cover {
  padding-inline: 0;
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.tray-divider {
  position: sticky;
  top: 0;
  z-index: 9;
  width: 16px;
  height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--cover);
  background: color-mix(in srgb, var(--paper) 88%, var(--rule));
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--paper-high) 72%, transparent);
  cursor: col-resize;
  touch-action: none;
  transition: color 120ms var(--ease-out), background 120ms var(--ease-out);
}

.tray-divider:hover,
.tray-divider:focus-visible {
  color: var(--paper-high);
  background: var(--cover);
}

.tray-divider:focus-visible {
  z-index: 11;
  outline-offset: -3px;
}

.tray-grip {
  width: 24px;
  height: 42px;
  display: grid;
  place-items: center;
  color: inherit;
  background: var(--paper-high);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(54, 24, 18, 0.12);
  transform: translateX(1px);
  transition: transform 180ms var(--ease-out), background 120ms var(--ease-out);
}

.tray-divider:hover .tray-grip,
.tray-divider:focus-visible .tray-grip {
  color: var(--paper-high);
  background: var(--cover-dark);
  border-color: rgba(255, 248, 232, 0.42);
}

.tray-grip svg {
  width: 20px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tray-arrow {
  stroke-width: 1.8;
}

.tray-rule {
  stroke-width: 1.2;
  opacity: 0.44;
}

.tray-collapsed .tray-grip {
  transform: translateX(4px) rotate(180deg);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: var(--paper-high);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4rem, calc(var(--tray-width) * 0.3), 5.1rem);
  line-height: 0.76;
  letter-spacing: -0.075em;
}

.mark-atx {
  color: var(--saffron);
}

.cover-kicker,
.coverage-label,
.eyebrow {
  margin: 0;
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cover-kicker {
  margin-top: 30px;
  color: rgba(255, 248, 232, 0.66);
}

.cover h1 {
  max-width: 9ch;
  margin: 14px 0 18px;
  font-family: var(--editorial);
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cover-note {
  max-width: 18ch;
  margin: 0;
  color: rgba(255, 248, 232, 0.74);
  font-size: 1rem;
  line-height: 1.45;
}

.inventory-panel {
  flex: 0 0 auto;
  min-width: 0;
  min-height: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-top: 1px solid rgba(255, 248, 232, 0.24);
}

.coverage-label {
  color: var(--saffron);
}

.inventory-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inventory-heading h2 {
  margin: 4px 0 0;
  color: var(--paper-high);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-updated {
  min-width: 0;
  max-width: 11ch;
  margin: 1px 0 0;
  color: rgba(255, 248, 232, 0.57);
  font-family: var(--utility);
  font-size: 0.56rem;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.inventory-summary {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 248, 232, 0.18);
  border: 1px solid rgba(255, 248, 232, 0.18);
}

.inventory-summary > div {
  min-width: 0;
  min-height: 82px;
  padding: 9px 8px 8px;
  background: rgba(60, 12, 24, 0.24);
}

.inventory-summary dt {
  color: rgba(255, 248, 232, 0.62);
  font-family: var(--utility);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.inventory-summary dd {
  margin: 4px 0 2px;
  color: var(--paper-high);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.inventory-summary small {
  display: block;
  color: rgba(255, 248, 232, 0.59);
  font-family: var(--utility);
  font-size: 0.54rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.inventory-movement {
  margin: 10px 0 0;
  color: rgba(255, 248, 232, 0.74);
  font-family: var(--utility);
  font-size: 0.62rem;
  line-height: 1.45;
}

.source-tally {
  min-width: 0;
  min-height: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 248, 232, 0.17);
}

.source-tally[open] {
  display: block;
  overflow: visible;
}

.source-tally summary {
  padding: 10px 2px 8px;
  color: var(--paper-high);
  font-family: var(--utility);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
}

.source-tally summary::marker {
  color: var(--saffron);
}

.source-tally-list {
  min-width: 0;
  padding-right: 5px;
  overflow: visible;
}

.source-channel {
  min-width: 0;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 248, 232, 0.13);
}

.source-channel:first-child {
  border-top: 0;
}

.pipeline-channel {
  margin: 4px 0 8px;
  padding: 9px 8px 10px;
  background: rgba(60, 12, 24, 0.22);
  border: 1px solid rgba(255, 248, 232, 0.14);
}

.source-channel-title {
  margin: 0;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.source-channel-activity,
.source-tally-empty {
  margin: 3px 0 8px;
  color: rgba(255, 248, 232, 0.54);
  font-family: var(--utility);
  font-size: 0.55rem;
  line-height: 1.4;
}

.source-measures {
  margin: 0;
}

.source-measure {
  padding: 3px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 248, 232, 0.08);
}

.source-measure dt {
  min-width: 0;
  color: rgba(255, 248, 232, 0.61);
  font-size: 0.61rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.source-measure dd {
  margin: 0;
  color: var(--paper-high);
  font-family: var(--utility);
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.address-note {
  min-width: 0;
  margin: 0;
  padding-top: 12px;
  color: rgba(255, 248, 232, 0.63);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(255, 248, 232, 0.2);
}

main {
  container: guide / inline-size;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
}

.edition-header,
.browse,
.method,
footer {
  width: calc(100% - 40px);
  max-width: 100rem;
  margin-inline: auto;
}

.edition-header {
  min-height: 88px;
  padding: 20px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.edition-header .eyebrow,
.browse .eyebrow,
.method .eyebrow {
  color: var(--cover);
}

.edition-time {
  margin: 9px 0 0;
  color: var(--muted);
}

.method-link {
  font-family: var(--utility);
  font-size: 0.76rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.dish-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.image-credit {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  padding: 5px 7px;
  margin: 0;
  color: var(--paper-high);
  background: rgba(60, 12, 24, 0.76);
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.image-scope {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 15px;
  max-width: min(26rem, calc(100% - 112px));
  margin: 0;
  padding: 6px 8px;
  color: var(--paper-high);
  background: rgba(60, 12, 24, 0.82);
  font-family: var(--utility);
  font-size: 0.62rem;
  line-height: 1.35;
  text-align: right;
}

.restaurant-line {
  margin: 0;
  color: var(--cover);
  font-size: 1.15rem;
}

.availability {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--utility);
  font-size: 0.7rem;
}

.availability.is-compact {
  margin-bottom: 18px;
}

.availability-state {
  padding-left: 9px;
  border-left: 4px solid currentColor;
  letter-spacing: 0.09em;
}

.availability-state.is-open {
  color: var(--leaf);
}

.availability-state.is-closed {
  color: var(--rust);
}

.closing-time {
  color: var(--muted);
}

.service-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.72rem;
  line-height: 1.5;
}

.card-scope-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.lead-reason {
  max-width: 35ch;
  margin: 18px 0;
  font-size: 1.06rem;
  line-height: 1.55;
}

.rating-ledger {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.rating-fact {
  min-height: 52px;
  padding: 8px 10px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
}

.rating-fact:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}

.fact-label {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fact-value {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.rating-fact.is-pending .fact-value {
  color: var(--muted);
  font-weight: 500;
}

.observation-row {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--rule);
}

.observation,
.price-chip,
.state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  font-family: var(--utility);
  font-size: 0.67rem;
  font-weight: 700;
}

.observation strong {
  margin-left: 5px;
  color: var(--cover);
}

.check-live {
  margin-top: 12px;
  min-height: 48px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper-high);
  background: var(--cover);
  border: 1px solid var(--cover);
  font-family: var(--utility);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.check-live:hover {
  background: var(--cover-dark);
}

.check-live::after {
  content: "↗";
  font-size: 1rem;
}

.browse {
  padding: 40px 0 72px;
}

.browse-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.browse h2,
.method h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.8cqi, 5.2rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

#result-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.72rem;
}

.controls {
  margin: 24px 0 28px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 10px;
  background: rgba(255, 248, 232, 0.58);
  border: 1px solid var(--rule);
}

.search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  background: var(--paper-high);
  border: 1px solid var(--rule);
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.filter-strip {
  display: flex;
  gap: 7px;
}

.filter,
.empty-state button {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 0.67rem;
  font-weight: 750;
}

.filter:hover,
.filter.is-active {
  color: var(--paper-high);
  background: var(--cover);
  border-color: var(--cover);
}

.dish-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.dish-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper-high) 88%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--rule) 86%, var(--cover));
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.dish-card:hover {
  border-color: var(--cover);
  box-shadow: 0 16px 38px rgba(54, 24, 18, 0.15);
  transform: translateY(-2px);
}

.dish-card.is-lead {
  border-color: color-mix(in srgb, var(--cover) 56%, var(--rule));
  box-shadow: 0 14px 36px rgba(54, 24, 18, 0.14);
}

.dish-number {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  min-width: 34px;
  min-height: 28px;
  padding: 6px 8px;
  display: grid;
  place-items: center;
  color: var(--cover);
  background: var(--saffron);
  border: 1px solid rgba(60, 12, 24, 0.16);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 800;
}

.dish-lead-label {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 54px;
  min-height: 28px;
  padding: 7px 9px 6px;
  display: inline-flex;
  align-items: center;
  color: var(--paper-high);
  background: rgba(60, 12, 24, 0.88);
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dish-main {
  min-width: 0;
  flex: 1 1 auto;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
}

.dish-card h3 {
  margin: 0 0 6px;
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1cqi, 2.1rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.dish-card .restaurant-line {
  font-size: 0.9rem;
}

.dish-card .lead-reason {
  min-height: 2.9em;
  margin: 8px 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-card .rating-ledger {
  margin-top: auto;
}

.dish-photo {
  min-height: 0;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(114, 29, 49, 0.88), rgba(60, 12, 24, 0.98));
}

.dish-photo.is-missing {
  display: grid;
  place-items: center;
  padding: 28px;
  color: rgba(255, 248, 232, 0.7);
  font-family: var(--utility);
  font-size: 0.7rem;
  text-align: center;
  text-transform: uppercase;
}

.availability.is-overlay {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 6px 8px;
  gap: 6px 8px;
  color: var(--ink);
  background: rgba(255, 248, 232, 0.94);
  border: 1px solid rgba(60, 12, 24, 0.16);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.availability.is-overlay .closing-time {
  color: var(--muted);
}

.evidence {
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}

.evidence summary {
  min-height: 40px;
  padding: 11px 0 9px;
  cursor: pointer;
  color: var(--cover);
  font-family: var(--utility);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.evidence li {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px dotted var(--rule);
}

.evidence a {
  text-underline-offset: 3px;
}

.empty-state {
  padding: 72px 28px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.edition-error {
  grid-column: 1 / -1;
  padding: 72px 28px;
  background: var(--paper-high);
  border: 1px solid var(--rule);
  text-align: center;
}

.edition-error h3 {
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5cqi, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.edition-error .lead-reason {
  margin-inline: auto;
}

.empty-state h3 {
  margin: 10px 0 24px;
  font-family: var(--display);
  font-size: 2.8rem;
  text-transform: uppercase;
}

.feed-sentinel {
  height: 2px;
}

.method {
  padding: 72px 0;
  border-top: 2px solid var(--cover);
}

.method-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.method-grid p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.65;
}

footer {
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-family: var(--utility);
  font-size: 0.66rem;
}

.noscript {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  max-width: 30rem;
  padding: 16px;
  color: var(--paper-high);
  background: var(--cover-dark);
}

/* Four cards at full screen (Star, 2026-08-16). The old 94rem gate never fired
   under browser zoom, which inflates rem and shrank the measured container. */
@container guide (min-width: 68rem) {
  .dish-feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container guide (max-width: 54rem) {
  .dish-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container guide (max-width: 50rem) {
  .controls {
    grid-template-columns: 1fr;
  }

  .filter-strip {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter {
    flex: 0 0 auto;
  }
}

@container guide (max-width: 38rem) {
  .dish-feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html {
    background: var(--paper);
  }

  .app-shell {
    display: block;
  }

  .cover {
    position: relative;
    top: auto;
    width: auto;
    height: auto;
    min-height: 250px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    opacity: 1;
  }

  .tray-divider {
    display: none;
  }

  .mark {
    font-size: 4rem;
  }

  .cover-kicker {
    margin-top: 22px;
  }

  .cover h1 {
    max-width: 13ch;
    margin-block: 12px;
    font-size: 2rem;
  }

  .cover-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .inventory-panel {
    grid-column: 2;
    grid-row: 1;
    min-height: auto;
    align-self: start;
    overflow: visible;
  }

  .address-note {
    grid-column: 2;
    grid-row: 2;
  }

  .source-tally[open] {
    display: block;
    overflow: visible;
  }

  .source-tally-list {
    overflow: visible;
    padding-right: 0;
  }

  .edition-header {
    min-height: 86px;
    align-items: center;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .cover {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .cover-intro,
  .inventory-panel,
  .address-note {
    grid-column: 1;
    grid-row: auto;
  }

  .cover-note {
    display: none;
  }

  .inventory-panel {
    padding-top: 12px;
  }

  .inventory-summary > div {
    min-height: 76px;
  }

  .edition-header,
  .browse,
  .method,
  footer {
    width: calc(100% - 24px);
  }

  .method-link {
    display: none;
  }

  .browse {
    padding-block: 72px;
  }

  .browse-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .controls {
    margin-top: 28px;
    padding: 9px;
  }

  .search {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
  }

  .rating-ledger {
    grid-template-columns: 1fr;
  }

  .rating-fact:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Addresses for every dish (2026-11-15): title link, share, toast, soft landing note. */
.dish-card h3 .dish-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--saffron), var(--saffron));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 0.12em;
  transition: background-size 220ms var(--ease-out);
}

.dish-card h3 .dish-link:hover,
.dish-card h3 .dish-link:focus-visible {
  background-size: 100% 0.12em;
  outline: none;
}

.dish-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.dish-actions .check-live {
  margin-top: 0;
}

.share-dish {
  min-height: 48px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cover);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--cover) 70%, var(--rule));
  border-radius: 0;
  font-family: var(--utility);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.share-dish::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 28%, transparent);
}

.share-dish:hover,
.share-dish:focus-visible {
  color: var(--paper-high);
  background: var(--cover);
  outline: none;
}

.route-note {
  margin: 0 0 14px;
  padding: 12px 16px;
  color: var(--cover-dark);
  background: color-mix(in srgb, var(--saffron) 18%, var(--paper-high));
  border-left: 3px solid var(--saffron);
  font-family: var(--editorial);
  font-size: 0.98rem;
  line-height: 1.4;
}

.zag-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--paper-high);
  background: var(--cover-dark);
  border: 1px solid color-mix(in srgb, var(--saffron) 45%, transparent);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--utility);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.zag-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.zag-toast-address {
  color: var(--saffron);
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (max-width: 820px) {
  .zag-toast {
    border-radius: 14px;
  }
  .dish-actions .check-live,
  .share-dish {
    flex: 1 1 auto;
    justify-content: center;
  }
}
