/* ---- style.css ---- */
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Regular.woff2?v=b320174a26b1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Medium.woff2?v=07a1e168e30f") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-SemiBold.woff2?v=f9a06e79cd3a") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111113;
  --card: #1C1C1E;
  --line: rgba(255, 255, 255, 0.08);
  --text: #E5E5EA;
  --muted: #8E8E93;
  --hot: #D13C43;
  --pill: rgba(255, 255, 255, 0.08);
  --ok: rgb(126, 168, 132);
  --down: #DE7F7F;
  --change: rgb(212, 176, 104);
  --nav: #111113;
  --photo: #111113;
  --tab: #98989D;
  --tab-on: #2C2C2E;
  --tab-on-text: #F2F2F7;
  --tab-shadow: none;
  --link-soft: #AEAEB2;
  --tile-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --card-shadow: none;
  --frost: rgba(16, 16, 18, 0.72);
  --frost-solid: rgba(16, 16, 18, 0.95);
  --cal-empty: #3a3a3a;
  --cal-faded: #222224;
  --cal-green: #3f9d62;
  --cal-yellow: #e0b44a;
  --tile: #1C1C1E;
  --tile-text: #E5E5EA;
  --chip: rgb(232, 232, 232);
  --chip-line: rgba(232, 232, 232, 0.35);
  --chip-out: rgb(150, 150, 150);
  --chip-out-line: rgba(150, 150, 150, 0.45);
  --badge-bg: rgba(22, 22, 22, 0.9);
  --badge-on: rgb(244, 244, 244);
  --badge-on-line: rgba(244, 244, 244, 0.55);
  --heat: rgb(42, 42, 42);
  --heat-gap: rgb(38, 38, 38);
  --heat-ok: rgb(70, 110, 78);
  --heat-down: rgb(140, 64, 64);
  --strong: rgb(244, 244, 244);
  --sheet-x-bg: rgba(22, 22, 22, 0.78);
  --sheet-x: rgb(244, 244, 244);
  --map-bg: #161616;
  --map-line: #282828;
  --map-panel: #1D1D1D;
  --map-text: #E8E8E8;
  --map-muted: #969696;
  --map-soft: #CDCDCD;
  --map-hover: #282828;
  --map-attr: rgba(22, 22, 22, 0.82);
  --map-now: #E8E8E8;
  --map-now-stroke: #161616;
  --map-past: #969696;
  --map-ring: #E8E8E8;
  --map-edge: #464646;
  color-scheme: dark;
}
html.theme-light {
  --bg: #ECECEE;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --text: #3A3A3C;
  --muted: #636366;
  --pill: rgba(0, 0, 0, 0.05);
  --ok: #0d6b34;
  --down: #a12626;
  --change: #7a5608;
  --nav: #ECECEE;
  --photo: #d8d8de;
  --tab: #636366;
  --tab-on: #ffffff;
  --tab-on-text: #1D1D1F;
  --tab-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --link-soft: #636366;
  --tile-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --frost: rgba(242, 242, 245, 0.72);
  --frost-solid: rgba(242, 242, 245, 0.95);
  --cal-empty: #b7b7c0;
  --cal-faded: #e6e6eb;
  --cal-green: #1f7a3a;
  --cal-yellow: #c49214;
  --tile: #F7F7F8;
  --tile-text: #3A3A3C;
  --chip: #171717;
  --chip-line: rgba(23, 23, 23, 0.35);
  --chip-out: #5c5c62;
  --chip-out-line: rgba(92, 92, 98, 0.5);
  --badge-bg: rgba(255, 255, 255, 0.92);
  --badge-on: #171717;
  --badge-on-line: rgba(23, 23, 23, 0.45);
  --heat: #d2d2d8;
  --heat-gap: #c4c4ca;
  --heat-ok: #2f7d49;
  --heat-down: #a33b3b;
  --strong: #1D1D1F;
  --sheet-x-bg: rgba(255, 255, 255, 0.9);
  --sheet-x: #171717;
  --map-bg: #ededef;
  --map-line: #86868c;
  --map-panel: #ffffff;
  --map-text: #171717;
  --map-muted: #59595e;
  --map-soft: #3f3f42;
  --map-hover: #e4e4e8;
  --map-attr: rgba(255, 255, 255, 0.88);
  --map-now: #171717;
  --map-now-stroke: #ffffff;
  --map-past: #5c5c62;
  --map-ring: #171717;
  --map-edge: #86868c;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scrollbar-width: none; scrollbar-gutter: stable; }
html.scroll-locked { overflow: hidden; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#sheet-body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  scrollbar-width: none;
}
a { color: inherit; }
img { max-width: 100%; }
/* Backstop: nothing may widen the page sideways. clip, unlike hidden, keeps position: sticky working. */
body { overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }

.chrome { display: contents; }
.top, main, .foot { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 12px;
}
.eyebrow, .kicker, .meta, .block-label, figcaption, .heat-label {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow { margin: 0 0 2px; letter-spacing: 0.02em; }
h1 { font-size: 28px; font-weight: 500; margin: 0; letter-spacing: -0.03em; }
h1 a { color: inherit; text-decoration: none; }
h2 { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
h3 { font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.02em; }
h4 { font-size: 15px; font-weight: 500; margin: 0; }
.live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(126, 168, 132, 0.15);
}
.dot.down { background: var(--down); box-shadow: 0 0 0 4px rgba(196, 112, 112, 0.15); }
.dot.stale { background: var(--change); box-shadow: 0 0 0 4px rgba(212, 176, 104, 0.12); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--tile-text);
  cursor: pointer;
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
html.theme-light .theme-toggle .icon-sun { display: none; }
html.theme-light .theme-toggle .icon-moon { display: block; }
.theme-toggle:hover { background: var(--pill); color: var(--tab-on-text); }
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.account {
  display: inline-flex;
  align-items: center;
  height: 34px;
  text-decoration: none;
  border: 0;
  border-radius: 17px;
  padding: 0 14px;
  background: var(--pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--tile-text);
}

.nav-fade {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
}
.nav-frost {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -64px;
  z-index: 0;
  pointer-events: none;
  background: none;
  opacity: 1;
  transition: none;
}
.nav-frost::before,
html.theme-light .nav-frost::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: none;
}
.nav-frost::before {
  background: linear-gradient(
    to bottom,
    rgba(16, 16, 18, 0.98) 0,
    rgba(16, 16, 18, 0.98) 56px,
    rgba(16, 16, 18, 0) 100%
  );
  opacity: var(--header-frost, 0);
}
html.theme-light .nav-frost::before {
  opacity: calc(var(--header-frost, 0) * (1 - var(--hero-mix, 1)));
}
/* Light-mode pages with a hero no longer get a solid --bg strip behind the
   sticky nav. The clear-nav rules below, scoped to html.theme-light, match
   Optimus / Home: see-through over the hero, frost only after it. */
html.theme-light body:has(.stage, .a-hero) .nav-fade {
  background: transparent;
}
html.theme-light body:has(.stage, .a-hero) {
  --hero-mix: 0;
}
html.theme-light body:has(.stage, .a-hero) .nav-frost::before {
  opacity: calc(var(--header-frost, 0) * (1 - var(--hero-mix, 0)));
}
html.theme-light body:has(.stage, .a-hero) .nav-frost::after {
  opacity: calc(var(--header-frost, 0) * var(--hero-mix, 0));
}
html.theme-light body:has(.stage, .a-hero) .nav a:not([aria-current="page"]) {
  color: color-mix(in srgb, var(--tab) calc(var(--hero-mix, 0) * 100%), rgba(242, 242, 247, 0.82));
}
html.theme-light body:has(.stage, .a-hero) .nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--tab-on) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.22));
  color: color-mix(in srgb, var(--tab-on-text) calc(var(--hero-mix, 0) * 100%), #fff);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
html.theme-light body:has(.stage, .a-hero) .theme-toggle {
  background: color-mix(in srgb, var(--pill) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.16));
  color: color-mix(in srgb, var(--tile-text) calc(var(--hero-mix, 0) * 100%), #f2f2f7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
html.theme-light body:has(.stage, .a-hero) .theme-toggle:hover {
  background: color-mix(in srgb, var(--pill) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.24));
  color: color-mix(in srgb, var(--tab-on-text) calc(var(--hero-mix, 0) * 100%), #fff);
}
html.theme-light .nav-frost::after {
  background: linear-gradient(
    to bottom,
    var(--bg) 0,
    var(--bg) 56px,
    transparent 100%
  );
  opacity: calc(var(--header-frost, 0) * var(--hero-mix, 1));
}
.nav-fade.show-end .nav {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent);
}
.nav-fade.show-start .nav {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 100%);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 100%);
}
.nav-fade.show-start.show-end .nav {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.nav-shade { display: none; }
.nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 5px 0;
  min-height: 44px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a, .text-button, #merch-toggle, .filters a, #churn-toggle, #window-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  color: var(--tab);
  text-decoration: none;
  border: 0;
  background: transparent;
  border-radius: 17px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: none;
}
.nav a:hover, #merch-toggle:hover, .text-button:hover, .filters a:hover, #churn-toggle:hover, #window-toggle:hover { color: var(--tab-on-text); }
.nav a[aria-current="page"], .filters a[aria-current="true"] {
  color: var(--tab-on-text);
  background: var(--tab-on);
  font-weight: 600;
  box-shadow: var(--tab-shadow);
}
#merch-toggle { margin-left: 0; }
.filters { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

.last-change {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.last-change a {
  color: var(--link-soft);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}
html:not(.theme-light) .last-change a { text-decoration-color: rgba(255, 255, 255, 0.28); }
.last-change a:hover { color: var(--text); }
.page-sub {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}
.section-head .meta { color: var(--link-soft); font-size: 14px; font-weight: 400; }
html:not(.theme-light) .section-head .meta { color: var(--muted); }

.section { padding: 28px 0 8px; }
.section-head { margin-bottom: 14px; }
.section-head p { margin: 4px 0 0; }
.category { margin: 18px 0 8px; scroll-margin-top: 72px; }
.category-name { margin: 18px 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.merch { display: none; }
html.show-merch .merch { display: block; }
html.show-merch .card.merch,
html.show-merch .event.merch { display: grid; }
html.show-merch .event.merch.churn { display: none; }
html.show-merch.show-churn .event.merch.churn { display: grid; }
html.show-churn .event.churn:not(.merch) { display: grid; }
html.show-windows .event.window:not(.merch) { display: grid; }
html.show-merch .tile.merch { display: flex; }
.item-page .merch { display: block; }

.card, .event, .day-block {
  background: var(--card);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin: 0 0 12px;
}
.card { display: grid; gap: 12px; }
.card-top { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: start; }
.card-id .kicker { margin: 0; }
.card-id h3 { margin: 2px 0 6px; }
.price-row, .event h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.price { font-weight: 500; }
.desc { margin: 0; white-space: pre-wrap; }
.note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.empty { color: var(--muted); margin: 0; }

.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery picture, .event-photo picture, .hit-card picture, .about-hero picture, .about-strip picture, .news-card picture { display: block; }
.event-photo picture, .hit-card picture { width: 84px; }
.hit-card picture { height: 61px; }
.detail-hero.detail-hero-full picture { height: auto; }


.gallery figure { margin: 0; width: 148px; }
.gallery img,
.event-photo img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--photo);
  border: 0;
}
.gallery figcaption { margin-top: 4px; }


.pill {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tab);
  text-decoration: none;
  white-space: nowrap;
}
.pill.status {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 3px 10px; /* + 1px border = 4px 11px outer, same box in both states */
  border-radius: 999px;
}
/* Sold out (S1 tinted fill) */
.tile-name .status-row:not([data-daypart]) .pill.status {
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid transparent;
  color: #F5B942;
}
/* Not served now */
.tile-name .status-row[data-daypart] .pill.status {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid transparent;
  color: #C7C7CC;
}
html.theme-light .tile-name .status-row:not([data-daypart]) .pill.status {
  background: rgba(143, 94, 0, 0.12);
  color: #865800;
}
html.theme-light .tile-name .status-row[data-daypart] .pill.status {
  background: rgba(0, 0, 0, 0.06);
  color: #48484A;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.45em;
  max-width: 100%;
}
.status-row[hidden] { display: none !important; }
.detail-body > .status-row { justify-content: flex-start; margin: 8px 0 0; }
.status-hours {
  color: #C7C7CC;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
html.theme-light .status-hours { color: #3A3A3C; }
.tile-name .status-hours {
  margin: 0;
  text-align: center;
}

.pill.sold, .tag-soldout { color: var(--muted); background: rgba(0, 0, 0, 0.06); }
html:not(.theme-light) .pill.sold,
html:not(.theme-light) .tag-soldout { color: #AEAEB2; background: rgba(255, 255, 255, 0.1); }
.tag-added, .tag-restocked, .tag-back, .tag-movie_back { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.tag-removed, .tag-movie_dropped { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.tag-price, .tag-options, .tag-updated, .tag-hours, .tag-renamed, .tag-movie_added { color: var(--text); background: var(--pill); }
.pill.share { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 15px; font-weight: 500; color: var(--tile-text); }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 8px 0 0; margin: 0; }
.options { display: grid; gap: 10px; }
.block-label { margin: 0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.opt { border-top: 1px solid var(--line); padding-top: 8px; }
.opt-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.opt-required { color: var(--down); font-weight: 500; }
.opt-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.choices { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 4px; }
.choice-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.choice-price { color: var(--muted); }
.choice-stock {
  margin-left: 8px;
  padding: 1px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
html:not(.theme-light) .choice-stock { background: rgba(255, 255, 255, 0.1); color: #AEAEB2; }
.sub { margin: 6px 0 6px 12px; }
.versions { display: grid; gap: 0; }







.lightbox-open[hidden] { display: none !important; }



/* Fresh rows are inserted above an open reader. The browser's own scroll
   anchoring would move that reader a second time, so the list opts out and
   the refresh code holds the row itself. */
#change-list,
#change-list * { overflow-anchor: none; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.event.recipe { grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* Drive-in posters are 540x220. Keep the 84px height and show the whole still, no square crop. */
.event.movie {
  --log-poster-h: 84px;
  --log-poster-w: calc(84px * 540 / 220);
  grid-template-columns: var(--log-poster-w) 1fr;
}
.event.movie .event-photo picture,
.event.movie .event-photo img,
.event.movie .event-photo .hit-fallback {
  width: var(--log-poster-w);
  height: var(--log-poster-h);
}
.event.movie .event-photo img { object-fit: contain; object-position: center; }
.event-photo { display: grid; gap: 6px; }
.event-photo a { display: block; line-height: 0; text-decoration: none; overflow: hidden; border-radius: 12px; }
.event-photo img { width: 84px; height: 84px; }
.event-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 4px; }
.recipe-summary { margin: 2px 0 4px; }
.recipe-compare {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.recipe-compare:not(:has(.event-photo > *)) { grid-template-columns: minmax(0, 1fr); }
.recipe-compare:not(:has(.event-photo > *)) .event-photo { display: none; }
.recipe-rows { display: grid; gap: 10px; min-width: 0; }
.recipe-row { display: block; min-width: 0; }
.recipe-photo-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.recipe-photos .recipe-photo-label + a img { opacity: 0.82; }
@media (max-width: 600px) {
  .recipe-compare { grid-template-columns: minmax(0, 1fr); }
}
.recipe-row .desc,
.recipe-before .desc,
.recipe-same { color: var(--muted); font-weight: 400; text-decoration: none; }
html.theme-light .recipe-row .desc,
html.theme-light .recipe-same { color: #636366; }
.recipe-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.recipe-add {
  font-weight: 600;
  color: #8FE3B0;
  background: color-mix(in srgb, #3f9d62 15%, var(--card));
  border-radius: 3px;
  padding: 0 2px;
}
html.theme-light .recipe-add {
  color: #0d6b34;
  background: color-mix(in srgb, #1f7a3a 15%, var(--card));
}
.recipe-drop {
  color: #FF9A9A;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
html.theme-light .recipe-drop { color: #a12626; }
.recipe-before .recipe-drop { color: #FF9A9A; }
html.theme-light .recipe-before .recipe-drop { color: #a12626; }
.diff { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

/* Drive-in: what is on now, the next few showings, then the guide by day. */
.di { padding-bottom: 8px; }
.di-intro { margin: 0 0 20px; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.di-tz { color: var(--text); font-weight: 500; white-space: nowrap; }
.di-h { margin: 36px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.di-h-sub { margin-top: 24px; font-size: 16px; }
.di-ep { display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.3; }
.di-meta { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.di-chev { flex: none; color: var(--muted); transition: transform 250ms ease-out; }
details[open]:not(.is-closing) > summary .di-chev, details[open]:not(.is-closing) > .di-chev { transform: rotate(180deg); }
.di summary { cursor: pointer; list-style: none; }
.di summary::-webkit-details-marker { display: none; }
.di summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 6px; }
.di-empty { margin: 0; padding: 24px 0; color: var(--muted); }

.di-hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
.di-hero-media { position: relative; aspect-ratio: 2.45 / 1; background: #000; overflow: hidden; min-width: 0; }
.di-hero-media picture { display: block; width: 100%; height: 100%; }
.di-hero-media img, .di-card-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.di-hero-media .di-dusk { object-position: 62% 50%; }
.di-credit { position: absolute; right: 10px; bottom: 8px; font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.di-hero-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 18px; min-width: 0; }
.di-pill { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--pill); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); font-variant-numeric: tabular-nums; }
.di-hero-title { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: break-word; max-width: 100%; }
.di-hero-ep { margin: -2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.3; }
.di-hero-win { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.di-hero-win .di-meta { font-size: 14px; }
.di-hero-more { width: 100%; }
.di-hero-more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--link-soft); font-size: 14px; font-weight: 500; }
.di-hero-more .di-desc { padding: 8px 0 0; }
@media (min-width: 560px) {
  .di-hero { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .di-hero-media { aspect-ratio: auto; min-height: 100%; }
  .di-hero-media picture, .di-hero-media img { position: absolute; inset: 0; }
  .di-hero-info { padding: 22px; gap: 10px; }
  .di-hero-title { font-size: 24px; }
}
@media (min-width: 760px) {
  .di-hero-media { aspect-ratio: 2.45 / 1; min-height: 0; }
  .di-hero-info { padding: 28px; }
  .di-hero-title { font-size: 28px; }
  .di-hero-win { font-size: 16px; }
}

.di-shelf { list-style: none; display: flex; gap: 16px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.di-shelf::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .di-shelf.fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
}
.di-card { flex: 0 0 min(300px, 72vw); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border-radius: 10px; box-shadow: var(--card-shadow); overflow: hidden; min-width: 0; }
.di-card-media { position: relative; flex: none; aspect-ratio: 2.45 / 1; overflow: hidden; background: #000; }
.di-card-media picture { display: block; width: 100%; height: 100%; }
.di-card-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 30px 16px 10px; text-align: center; background: linear-gradient(180deg, #1C1C1E, #151517); color: #E5E5EA; overflow: hidden; }
.di-card-series { font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; overflow-wrap: break-word; max-width: 100%; }
.di-card-ep { font-size: 13px; line-height: 1.25; color: #AEAEB2; overflow-wrap: break-word; max-width: 100%; }
.di-chip { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 8px; border-radius: 6px; background: rgba(17, 17, 19, 0.82); color: #F2F2F7; font-size: 12px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.di-card-cap { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 8px 12px; text-align: center; }
.di-card-name { font-size: 14px; font-weight: 500; line-height: 1.25; overflow-wrap: break-word; max-width: 100%; }
.di-card-name .di-ep { font-size: 12px; }
.di-card-meta { color: var(--muted); font-size: 12.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }

.di-rows { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
.di-row + .di-row { border-top: 1px solid var(--line); }
.di-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) 124px 88px 14px; align-items: center; column-gap: 16px; min-height: 56px; padding: 8px 20px; }
.di-soon .di-time { white-space: normal; line-height: 1.25; }
.di-time { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.di-name { min-width: 0; display: block; }
.di-series { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
.di-name .di-ep { margin-top: 1px; }
.di-line > .di-meta { font-size: 13px; }
.di-side { display: contents; }
.di-thumb { grid-column: 4; justify-self: end; width: 88px; aspect-ratio: 540 / 220; border-radius: 4px; overflow: hidden; background: var(--photo); }
.di-thumb picture { display: block; width: 100%; height: 100%; }
.di-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.di-line .di-chev { grid-column: 5; justify-self: end; }
.di-desc { margin: 0; padding: 0 20px 14px 112px; color: var(--muted); font-size: 14px; line-height: 1.45; white-space: normal; }

.di-later { margin-top: 28px; background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
.di-day + .di-day { border-top: 1px solid var(--line); }
.di-day-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; column-gap: 14px; min-height: 56px; padding: 8px 20px; }
.di-day-name { font-size: 15px; font-weight: 500; }
.di-day-count { color: var(--muted); font-size: 13px; }
.di-day[open] > .di-rows { border-radius: 0; border-top: 1px solid var(--line); background: transparent; box-shadow: none; }

.di-foot { margin-top: 36px; padding-bottom: 28px; }
.di-through { margin: 0; font-size: 15px; font-weight: 500; }
.di-fine { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
/* The guide note sits right under the hero, small. */
.di-fine-top { margin: 0 0 10px; }
@media (max-width: 480px) { .di-fine-top { font-size: 12px; line-height: 1.35; margin-bottom: 8px; } }
/* The featured card follows the hero banner: keep it shorter so the two do not read as stacked banners. */
.rot + .di .di-hero { margin-top: 0; }
.rot + .di .di-hero-media { aspect-ratio: 3.1 / 1; }
@media (min-width: 560px) { .rot + .di .di-hero-media { aspect-ratio: auto; min-height: 100%; } }
@media (min-width: 760px) { .rot + .di .di-hero-media { aspect-ratio: 3.1 / 1; min-height: 0; } .rot + .di .di-hero-info { padding: 20px 24px; } }
.rot:has(+ .di) { margin-bottom: 10px; }
.di-all { margin-top: 14px; }
.di-all > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--link-soft); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.di-az { list-style: none; margin: 12px 0 0; padding: 0; background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
.di-az > li + li { border-top: 1px solid var(--line); }
.di-az-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 48px; padding: 8px 16px; }
summary.di-az-line { grid-template-columns: minmax(0, 1fr) auto 14px; }
.di-az-next { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.di-az .di-desc { padding: 0 16px 12px; }

@media (max-width: 759px) {
  .di-h { margin-top: 28px; }
  .di-line { grid-template-columns: 56px minmax(0, 1fr) 64px 14px; grid-template-areas: "time name thumb chev" "time meta thumb chev"; column-gap: 12px; row-gap: 1px; min-height: 52px; padding: 8px 14px; }
  .di-time { grid-area: time; font-size: 14px; }
  .di-name { grid-area: name; }
  .di-line > .di-meta { grid-area: meta; font-size: 12px; }
  .di-meta:empty { display: none; }
  .di-thumb { grid-area: thumb; grid-column: auto; width: 64px; border-radius: 3px; }
  .di-line .di-chev { grid-area: chev; grid-column: auto; }
  .di-row:not(.has-art) .di-name, .di-row:not(.has-art) .di-line > .di-meta { grid-column: 2 / span 2; }
  .di-row:not(.has-art) div.di-line > .di-name, .di-row:not(.has-art) div.di-line > .di-meta { grid-column: 2 / -1; }
  .di-desc { padding: 0 14px 12px 82px; }
  .di-day-sum { min-height: 52px; padding: 8px 14px; }
  .di-az-line { grid-template-columns: minmax(0, 1fr) 14px; row-gap: 1px; }
  .di-az-line > .di-name { grid-column: 1; }
  .di-az-line > .di-az-next { grid-column: 1; text-align: left; }
  .di-az-line > .di-chev { grid-column: 2; grid-row: 1 / span 2; }
  summary.di-az-line { grid-template-columns: minmax(0, 1fr) 14px; }
  .di-card-series { font-size: 16px; }
  .di-card-ep { font-size: 12.5px; }
  .di-card-title { padding: 28px 14px 8px; }
}
.source-footnote { margin: 4px 0 0; }
.photo-credit a { color: inherit; text-decoration: none; }
.photo-credit a:hover { color: var(--strong); }

.day-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; }
.heat { display: grid; gap: 2px; }
.heat-row { display: grid; grid-template-columns: 42px 1fr; gap: 6px; align-items: center; }
.heat-cells { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 1px; }
.cell { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--heat); }
.heat .cell { width: auto; height: 8px; }
.cell.ok { background: var(--heat-ok); }
.cell.down { background: var(--heat-down); }
.cell.change { background: var(--change); }
.cell.gap { background: var(--heat-gap); }
.alert-list { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.alert-list time { color: var(--text); margin-right: 6px; }
.text-button { margin: 4px 0 12px; background: var(--card); color: var(--text); }
.history-more { margin: 8px 0 32px; text-align: center; }

/* shared footer tokens: 2 sizes only (14px lead, 12px everything else) */
:root { --f-strong: #C7C7CC; --f-muted: #8E8E93; --f-line: rgba(255, 255, 255, 0.10); }
html.theme-light { --f-strong: #3A3A3C; --f-muted: #636366; --f-line: rgba(0, 0, 0, 0.12); }
.fx { color: var(--f-muted); font-size: 12px; line-height: 1.5; padding-bottom: 56px; }
.fx p { margin: 0; }
.fx a { color: var(--f-strong); text-decoration: none; }
.fx a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fx .f-lead { font-size: 14px; line-height: 1.5; color: var(--f-strong); font-weight: 400; }
/* C-none-step: C-none content, stacked to echo the Diner cap logo.
   Credit is the short top line. The 14px lead is the widest line (one line on desktop;
   on phone it wraps naturally, which lands after "menu"). Fine print is sentence-ending
   on both sizes, in the original order, with no forced mid-sentence breaks.
   Desktop: three explicit sentence lines under the lead (599 / 312 / 350).
   Phone: four sentence-ending lines (337 / 259 / 312 / 350). A free wrap at 358px
   would split "Diner photos"; sentence breaks keep the original order and avoid leftovers.
   The lead wraps naturally after "menu" (no forced break). text-wrap: pretty on the lead
   only, as a guard against a short last line.
   Section gap above the footer is the footer's margin-top only (padding-top is 0; on home
   the Explore section has no bottom margin or padding). 64px desktop, 48px phone, 8px grid.
   Same values on every page; inner pages can look a little looser because their last block
   often has its own padding below the last text (we do not change that site CSS). */
.foot.foot-cnonestep { margin-top: 64px; padding-top: 0; text-align: center; }
.foot-cnonestep .fc-by { margin: 0 auto 16px; color: var(--f-muted); }
.fx.foot-cnonestep .fc-by a { color: var(--f-strong); }
.foot-cnonestep .fc-peak { width: fit-content; max-width: 100%; margin: 0 auto 16px; display: flex; flex-direction: column; align-items: center; }
.foot-cnonestep .f-lead { margin: 0; max-width: none; text-wrap: pretty; }
.foot-cnonestep .fc-rule { display: none; }
.foot-cnonestep .fc-fine { margin: 0 auto; }
.foot-cnonestep .fc-fine span { display: block; }
.foot-cnonestep .fc-fine-phone { display: none; }
@media (max-width: 700px) {
  .foot.foot-cnonestep { margin-top: 48px; }
  .foot-cnonestep .fc-fine-desk { display: none; }
  .foot-cnonestep .fc-fine-phone { display: block; }
}
.quiet-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
.quiet-link:hover { color: var(--text); }
.sec-sub .quiet-link { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.news-list { display: grid; gap: 8px; }
.news-month { display: grid; gap: 22px; }
.news-month-label {
  position: sticky;
  top: 56px;
  z-index: 2;
  margin: 8px 0 0;
  padding: 8px 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-card {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.news-card h3 { font-size: 20px; }
.news-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.news-tag {
  color: var(--tab-on-text);
  background: var(--tab-on);
  font-size: 12px;
  font-weight: 500;
}
.news-summary { margin: 0; color: var(--link-soft); font-size: 16px; }
.news-card .lightbox-open {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--photo);
  color: inherit;
  cursor: default;
  aspect-ratio: 16 / 9;
}
.news-card .lightbox-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-empty {
  margin: 48px 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.news-empty a { color: var(--text); text-decoration: none; }
.news-empty a:hover { text-decoration: underline; }
a.news-article { color: inherit; text-decoration: none; }
a.news-article:hover h3 { text-decoration: underline; }
a.featured-card:hover .featured-headline,
a.recap-card:hover .recap-headline,
a.featured-card:focus-visible .featured-headline,
a.recap-card:focus-visible .recap-headline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.news-article:focus-visible,
a.featured-card:focus-visible,
a.recap-card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.news-cover {
  display: block;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: #1a0e0c;
}
.news-cover picture, .news-cover img { display: block; width: 100%; height: auto; }
.story { min-width: 0; }
.story-cover { margin: 4px 0 28px; }
.story-cover picture, .story-figure picture { display: block; }
.story-cover img, .story-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--photo);
}
.story-cover figcaption, .story-figure figcaption, .story-embed figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}
.story-cover figcaption { width: min(680px, 100%); margin-left: auto; margin-right: auto; }
.story-head, .story-body { width: min(680px, 100%); margin-left: auto; margin-right: auto; min-width: 0; }
.story-head h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.story-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.story-byline a { color: var(--text); text-decoration: none; }
.story-byline a:hover { text-decoration: underline; }
.story-body { margin-top: 22px; font-size: 18px; line-height: 1.6; }
.story-body p { margin: 0 0 1em; }
.story-body h2 { margin: 1.6em 0 0.45em; font-size: 24px; line-height: 1.25; }
.story-body h3 { margin: 1.3em 0 0.35em; font-size: 20px; }
.story-body a { text-underline-offset: 3px; }
.story-body a:hover { color: var(--strong); }
.story-body ul, .story-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.story-body li { margin: 0.25em 0; }
.story-figure, .story-embed { margin: 1.15em 0 1.35em; }
.story-row-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.story-row-images picture { min-width: 0; }
.story-quote {
  margin: 1.2em 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--line);
}
.story-quote p { margin: 0; }
.story-quote footer { margin-top: 6px; color: var(--muted); font-size: 13px; }
.story-embed { max-width: min(550px, 100%); margin-left: auto; margin-right: auto; }
.story-embed .twitter-tweet { margin: 0; max-width: 100%; }
/* The widget iframe is square. X paints a 12px-radius card on a transparent
   document, and the iframe canvas behind those corners is white. Clip only the
   rendered widget (not the link fallback) so the page shows through. */
.story-embed .twitter-tweet-rendered {
  border-radius: 12px;
  overflow: hidden;
  clip-path: inset(0 round 12px);
  background: transparent;
}
.story-embed a { overflow-wrap: anywhere; }
.story-x { margin-top: 8px; }

.subscribe-block {
  display: grid;
  gap: 14px;
  justify-items: start;
  width: min(680px, 100%);
  margin: 36px auto 8px;
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.news-list + .subscribe-block,
.news-empty + .subscribe-block {
  width: min(720px, 100%);
  margin: 40px 0 8px;
}
.subscribe-line {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.subscribe-block .btn-solid {
  background: var(--strong);
  color: var(--bg);
}
.subscribe-block .btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.subscribe-embed { width: 100%; min-width: 0; }
@media (max-width: 700px) {
  .story-head h1 { font-size: 28px; }
  .story-body { font-size: 17px; }
  .story-row-images { grid-template-columns: 1fr; }
}
.about-hero {
  width: 100vw;
  margin: 8px calc(50% - 50vw) 22px;
}
.about-hero .lightbox-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--photo);
  color: inherit;
  cursor: default;
}
.about-hero img,
.about-strip img {
  width: 100%;
  height: auto;
  display: block;
}
.about-hero .photo-credit {
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 0;
}
.about-quote {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 17px;
}
.about-quote p { margin: 0; }
.about-quote-by { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.about-quote-by::before { content: "— "; }
.about-quote a { color: inherit; }
.about-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.about-strip figure { margin: 0; min-width: 0; }
.about-strip .lightbox-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--photo);
  color: inherit;
  cursor: default;
}
.about-strip .photo-credit { margin: 6px 0 0; }
.about-copy { max-width: 640px; }
.about-note { margin: 0 0 12px; color: var(--muted); }
.about-intro { margin: 0 0 8px; font-size: 17px; }
.about-facts { display: grid; gap: 16px; margin: 22px 0; }
.about-facts div { display: grid; gap: 2px; }
.about-facts dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.about-facts dd { margin: 0; color: var(--text); font-size: 16px; }
.about-site { margin: 8px 0 22px; color: var(--text); font-size: 16px; }
.about-site span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; }
.about-follow { margin: 8px 0 0; }
.back { margin: 8px 0 0; }
.back a { color: var(--muted); text-decoration: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
@media (max-width: 799px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: var(--tile);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  color: var(--tile-text);
  text-decoration: none;
}
.tile-photo, .detail-hero {
  position: relative;
  display: block;
  background: var(--photo);
  overflow: hidden;
}
/* Live menu card image (tesla.com/diner-webapp/menu, class _17c4diy2): 18/13, cover, centered. */
.tile-photo { aspect-ratio: 18 / 13; border-radius: 0; }
.detail-hero { aspect-ratio: 1; border-radius: 0; }
.tile-photo picture, .detail-hero picture { display: block; width: 100%; height: 100%; }
.tile-photo img, .detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;
}
.tile-photo.fit-contain img,
.detail-hero.fit-contain img,
.gallery img.fit-contain {
  object-fit: contain;
}
.tile-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  color: var(--muted);
}
.tile-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  min-width: 0;
  padding: 12px 10px;
  background: var(--tile);
  color: var(--tile-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}
.tile-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tile-line {
  display: block;
  margin-top: 0.35em;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}
.daypart-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.tile-name .daypart-label {
  display: block;
  margin-top: 0.4em;
  max-width: 100%;
}
.detail-body > .daypart-label { display: block; margin: 0; }
.choice-line .daypart-label { margin-left: 8px; }
.tile-name .daypart-label[hidden],
.detail-body > .daypart-label[hidden],
.choice-line .daypart-label[hidden] { display: none; }
.size-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.size-chip {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: transparent;
  color: #C7C7CC;
}
.size-chip.is-out {
  color: #8E8E93;
  border-color: rgba(255, 255, 255, 0.10);
  background: transparent;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(142, 142, 147, 0.55);
}
html.theme-light .size-chip { color: #3A3A3C; border-color: rgba(0, 0, 0, 0.18); }
html.theme-light .size-chip.is-out {
  color: var(--muted); /* was #6E6E73 */
  border-color: rgba(0, 0, 0, 0.10);
  text-decoration-color: rgba(110, 110, 115, 0.55);
}
.tile-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(247, 247, 248, 0.92);
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
}
html:not(.theme-light) .badge { background: rgba(28, 28, 30, 0.88); color: #AEAEB2; }
.badge.quiet { color: var(--tab); }
.badge.on { color: var(--tab-on-text); }
.tile-photo .badge { z-index: 1; }
.detail-hero.supplier-hero { aspect-ratio: 18 / 13; }
.supplier-hero .lightbox-open img,
.tile-photo[style*="--focus"] img { object-position: var(--focus, center); }
.detail-hero.detail-hero-full { aspect-ratio: auto; overflow: hidden; }
.detail-hero.detail-hero-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.detail-hero > .lightbox-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}
.detail-hero.detail-hero-full > .lightbox-open { height: auto; }
.gallery .lightbox-open,
.event-photo .lightbox-open,
.detail-hero > .lightbox-open,
.hthumb .lightbox-open {
  justify-self: start;
  overflow: hidden;
  line-height: 0;
}
.gallery .lightbox-open,
.event-photo .lightbox-open {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: default;
}
.event-photo .lightbox-open { cursor: pointer; }

.gallery .lightbox-open::after,
.event-photo .lightbox-open::after,
.e-frame > .lightbox-open::after,
.detail-hero > .lightbox-open::after,
.hthumb .lightbox-open::after,
.mframe .lightbox-open::after,
.news-card .lightbox-open::after,
.about-hero .lightbox-open::after,
.about-strip .lightbox-open::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='M15 15l4.5 4.5M10.5 8.2v4.6M8.2 10.5h4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  pointer-events: none;
}
.e-frame > .lightbox-open::after,
.detail-hero > .lightbox-open::after,
.gallery .lightbox-open::after,
.news-card .lightbox-open::after,
.about-hero .lightbox-open::after,
.about-strip .lightbox-open::after {
  pointer-events: auto;
  cursor: pointer;
}
.gallery .lightbox-open:hover::after,
.gallery .lightbox-open:focus-visible::after,
.event-photo .lightbox-open:hover::after,
.event-photo .lightbox-open:focus-visible::after,
.e-frame > .lightbox-open:hover::after,
.e-frame > .lightbox-open:focus-visible::after,
.detail-hero > .lightbox-open:hover::after,
.detail-hero > .lightbox-open:focus-visible::after,
.hthumb .lightbox-open:hover::after,
.hthumb .lightbox-open:focus-visible::after,
.mframe .lightbox-open:hover::after,
.mframe .lightbox-open:focus-visible::after {
  opacity: 1;
}
.hit-card picture { overflow: hidden; }
.lightbox-open:focus { outline: none; }
.lightbox-open:focus-visible {
  outline: 2px solid var(--change);
  outline-offset: 2px;
}
.hit-list { display: grid; gap: 8px; }
.hit-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--tile);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  color: var(--tile-text);
  text-decoration: none;
  font-weight: 500;
}
.hit-card img, .hit-fallback {
  width: 84px;
  height: 61px;
  object-fit: cover;
  display: block;
  background: var(--photo);
}
.hit-card span:last-child { padding-right: 12px; }
.photo-credit { margin: 0; color: var(--muted); font-size: 12px; }
.photo-note {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.share-row { margin: 0; }
.event.churn { display: none; }
.event.window { display: none; }
#churn-toggle, #window-toggle { margin: 0 0 12px; }
.tile.merch, .event.merch, .card.merch { display: none; }
html.show-merch .tile.merch { display: flex; }
html.show-merch .event.merch, html.show-merch .card.merch { display: grid; }
html.show-merch .event.merch.churn { display: none; }
html.show-merch.show-churn .event.merch.churn { display: grid; }
html.show-merch .event.merch.window { display: none; }
html.show-merch.show-windows .event.merch.window { display: grid; }
html.show-windows .event.window:not(.merch) { display: grid; }
.item-page .merch { display: block; }

.detail { display: grid; gap: 0; }
.detail-hero { border-radius: 0; }
.detail-body { display: grid; gap: 12px; padding: 16px 18px 32px; }
.detail-body p { margin: 0; }
.detail-body h2 { font-size: 26px; }






















.dates { display: grid; gap: 6px; color: var(--text); }
.dates p { margin: 0; }
.more-photos { display: grid; gap: 8px; }

@property --sheet-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --sheet-y {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}
html { transition: --sheet-progress 0.36s ease-out; }
/* The page behind a sheet does not move, scale or clip: a transform or
   overflow here would unstick the nav and shift the grid. The dimmed
   backdrop alone shows that a sheet is open. */
#page-shell {
  min-height: 100%;
  background: var(--bg);
}
html.sheet-dragging,
html.sheet-dragging dialog.sheet,
html.sheet-dragging dialog.sheet::backdrop { transition: none; }
dialog.sheet {
  display: none;
  flex-direction: column;
  width: min(680px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px), 920px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
dialog.sheet[open] { display: flex; }
dialog.sheet.sheet-off {
  opacity: 0;
  transform: scale(0.96);
}
dialog.sheet::backdrop {
  background: rgba(0, 0, 0, 0.80);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: var(--sheet-progress);
}
#sheet-body {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  scrollbar-gutter: stable;
}
html.sheet-open,
html.lightbox-open {
  overscroll-behavior: none;
}
.sheet-grab {
  position: relative;
  flex: 0 0 auto;
  height: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 0 0;
  touch-action: none;
  cursor: grab;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #aeaeb2;
}
#sheet-body .detail-body h2 { padding-right: 40px; }
.sheet-x {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sheet-x-bg);
  color: var(--sheet-x);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}
.sheet-x:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
@media (min-width: 801px) {
  .sheet-grab { display: none; }
  dialog.sheet::backdrop {
    opacity: 1;
    transition: opacity 0.2s ease-out;
    transition-behavior: allow-discrete;
  }
  dialog.sheet.sheet-off::backdrop { opacity: 0; }
  @starting-style {
    dialog.sheet[open]::backdrop { opacity: 0; }
  }
}
.detail .gallery figure, .detail .gallery img { width: min(100%, 280px); }
.detail .gallery img { height: 280px; }
.detail .gallery img.shot-original { height: auto; max-height: 520px; object-fit: contain; background: var(--photo); }
/* Item-sheet More photos: keep the original tile size and aspect, in a
   left-aligned wrapping row. On a narrow sheet, shrink so two still fit
   rather than stacking to one column. */
.detail .more-photos .gallery {
  --photo-gap: 8px;
  --photo-max: 280px;
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: var(--photo-gap);
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}
.detail .more-photos .gallery figure {
  width: fit-content;
  max-width: var(--photo-max);
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
.detail .more-photos .gallery .lightbox-open,
.detail .more-photos .gallery picture,
.detail .more-photos .gallery .vwrap {
  display: block;
  width: fit-content;
  max-width: 100%;
}
.detail .more-photos .gallery img {
  display: block;
  width: auto;
  height: var(--photo-max);
  max-width: var(--photo-max);
  object-fit: contain;
  object-position: left top;
}
.detail .more-photos .gallery img.shot-original {
  height: auto;
  max-height: min(520px, var(--photo-max));
  object-fit: contain;
}
.detail .more-photos .gallery img.fit-contain {
  object-fit: contain;
}
@supports (width: min(1px, attr(width type(<number>)))) {
  .detail .more-photos .gallery img {
    width: min(
      var(--photo-max),
      calc(var(--photo-max) * attr(width type(<number>)) / attr(height type(<number>)))
    );
    aspect-ratio: attr(width type(<number>)) / attr(height type(<number>));
    height: auto;
    max-width: none;
    max-height: var(--photo-max);
  }
}
@media (max-width: 700px) {
  @supports (width: min(1px, attr(width type(<number>)))) {
    .detail .more-photos .gallery img {
      width: min(
        var(--photo-max),
        calc((100cqi - var(--photo-gap)) / 2),
        calc(var(--photo-max) * attr(width type(<number>)) / attr(height type(<number>)))
      );
    }
  }
}

@media (max-width: 700px) {
  .top { flex-wrap: wrap; align-items: flex-start; padding-top: 20px; }
  .top-actions { order: 3; }
  h1 { font-size: 24px; }
  .card-top, .event, .event.movie, .recipe-row, .recipe-before { grid-template-columns: 1fr; }
  .gallery figure, .gallery img { width: 112px; height: auto; }
  .gallery img { height: 112px; }
  .detail .gallery figure, .detail .gallery img { width: min(100%, 220px); }
  .detail .gallery img { height: 220px; }
  .detail .more-photos .gallery { --photo-max: 220px; }
  .detail .more-photos .gallery figure {
    max-width: min(var(--photo-max), calc((100cqi - var(--photo-gap)) / 2));
  }
  .detail .more-photos .gallery img {
    max-width: min(var(--photo-max), calc((100cqi - var(--photo-gap)) / 2));
  }
  
  
  .event-photo { display: flex; }
  .when { min-width: 0; }
  .heat-cells { overflow: hidden; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .tile-line { font-size: 11px; }
  /* size chips stay 11px on the phone; the hairline already reads at 390px */
  .tile-photo .badge {
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 3px 7px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tile-fallback { min-height: 0; }
}
@media (max-width: 800px) {
  dialog.sheet {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 88dvh;
    max-height: 88dvh;
    margin: 0;
    border: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(var(--sheet-y));
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
  dialog.sheet.sheet-off { transform: translateY(var(--sheet-y)); opacity: 1; }
  dialog.sheet::backdrop {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    transition-behavior: allow-discrete;
  }
  dialog.sheet.sheet-off::backdrop { opacity: 0; transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
  @starting-style {
    dialog.sheet[open]::backdrop { opacity: 0; }
  }
  html.sheet-dragging dialog.sheet::backdrop { opacity: var(--sheet-progress); transition: none; }
  .sheet-grab { height: 18px; padding: 8px 0 0; }
  #sheet-body .detail-hero {
    aspect-ratio: 16 / 10;
    width: auto;
    margin: 6px 16px 0;
    border-radius: 12px;
    overflow: hidden;
  }
  #sheet-body .detail-hero > .lightbox-open,
  #sheet-body .detail-hero img { border-radius: 12px; }
  #sheet-body .detail-body { gap: 12px; }
  #sheet-body .detail-body h2 { padding-right: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .tile-photo img,
.event-photo img,
.gallery .lightbox-open img,
.detail-hero > .lightbox-open img,
.hthumb .lightbox-open img,
.mframe .lightbox-open img,
.collage-tile img,
.hit-card img,
.news-card .lightbox-open img,
.about-hero .lightbox-open img,
.about-strip .lightbox-open img,
.explore-tile img,
.featured-cover img,
.recap-cover img {
    transition: transform 250ms ease-out;
    transform-origin: center;
  }
  .tile-photo:hover img,
.event-photo a:hover img,
.gallery .lightbox-open:hover img,
.detail-hero > .lightbox-open:hover img,
.hthumb .lightbox-open:hover img,
.mframe .lightbox-open:hover img,
.collage-tile:hover img,
.hit-card picture:hover img,
.news-card .lightbox-open:hover img,
.about-hero .lightbox-open:hover img,
.about-strip .lightbox-open:hover img,
.explore-tile:hover img,
.featured-card:hover .featured-cover img,
.recap-card:hover .recap-cover img {
    transform: scale(1.045);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile-photo img,
.event-photo img,
.gallery .lightbox-open img,
.detail-hero > .lightbox-open img,
.hthumb .lightbox-open img,
.mframe .lightbox-open img,
.collage-tile img,
.hit-card img,
.news-card .lightbox-open img,
.about-hero .lightbox-open img,
.about-strip .lightbox-open img,
.explore-tile img,
.featured-cover img,
.recap-cover img {
    transition: none;
  }
  .tile-photo:hover img,
.event-photo a:hover img,
.gallery .lightbox-open:hover img,
.detail-hero > .lightbox-open:hover img,
.hthumb .lightbox-open:hover img,
.mframe .lightbox-open:hover img,
.collage-tile:hover img,
.hit-card picture:hover img,
.news-card .lightbox-open:hover img,
.about-hero .lightbox-open:hover img,
.about-strip .lightbox-open:hover img,
.explore-tile:hover img,
.featured-card:hover .featured-cover img,
.recap-card:hover .recap-cover img {
    transform: none;
  }
  html { transition: --sheet-progress 0.2s linear; }
  #page-shell { transform: none; border-radius: 0; }
  dialog.sheet,
  dialog.sheet.sheet-off {
    transform: none;
    transition: opacity 0.2s linear;
  }
  dialog.sheet.sheet-off { opacity: 0; }
  dialog.sheet::backdrop,
  dialog.sheet.sheet-off::backdrop { transition: opacity 0.2s linear; }
}

html.lightbox-open,
html.lightbox-open body { overflow: hidden; }
html.lightbox-open #sheet-body { overflow: hidden; }
html.lightbox-open body > :not(#lightbox) { pointer-events: none; }
html.lightbox-open #lightbox { pointer-events: auto; }

button.tile-photo {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--photo);
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
a.tile-name { color: inherit; text-decoration: none; }
dialog.lightbox {
  /* Controls are pinned to the dialog (the viewport), not the media frame. */
  --lb-control: 44px;
  --lb-inset: 16px;
  --lb-gutter: 16px;
  --lb-side: calc(var(--lb-inset) + var(--lb-control) + var(--lb-gutter));
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
}
dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
dialog.lightbox::backdrop {
  background: transparent;
}
.lightbox-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}
dialog.lightbox.is-in .lightbox-shade { opacity: 1; }
.lightbox-figure { position: relative; z-index: 1; }
.lightbox-frame {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
  transform: scale(0.98);
  transition: transform 180ms ease;
}
dialog.lightbox.is-in .lightbox-frame { transform: scale(1); }
.lightbox-close, .lightbox-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lightbox-close {
  top: max(var(--lb-inset), env(safe-area-inset-top, 0px));
  right: max(var(--lb-inset), env(safe-area-inset-right, 0px));
  width: var(--lb-control);
  height: var(--lb-control);
}
.lightbox-close::before, .lightbox-arrow::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lightbox-arrow::before { width: 32px; height: 32px; }
.lightbox-close svg, .lightbox-arrow svg { position: relative; z-index: 1; }
.lightbox-close:hover::before, .lightbox-arrow:hover::before { background: rgba(0, 0, 0, 0.6); }
.lightbox-close:focus { outline: none; }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-arrow {
  top: 50%;
  width: var(--lb-control);
  height: var(--lb-control);
  transform: translateY(-50%);
}
.lightbox-arrow[hidden] { display: none; }
.lightbox-prev { left: max(var(--lb-inset), env(safe-area-inset-left, 0px)); }
.lightbox-next { right: max(var(--lb-inset), env(safe-area-inset-right, 0px)); }
.lightbox-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(90vw, calc(100vw - 2 * var(--lb-side)));
  max-height: 90vh;
  max-height: 90dvh;
  margin: 0;
  background: transparent;
}
.lightbox-figure img,
#lightbox-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(90vw, calc(100vw - 2 * var(--lb-side)));
  max-height: calc(90vh - 48px);
  max-height: calc(90dvh - 48px);
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 14px;
}
#lightbox-video { display: none; }
#lightbox-img.is-off { display: none; }
#lightbox-video.is-on { display: block; }
.lightbox-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  width: min(90vw, 100%);
  margin: 0;
  text-align: center;
}
.lightbox-copy[hidden] { display: none; }
.lightbox-name { color: #F2F2F7; font-size: 15px; font-weight: 500; line-height: 1.3; }
.lightbox-meta, .lightbox-count, a.lightbox-credit { color: #8E8E93; font-size: 13px; font-weight: 400; line-height: 1.3; }
.lightbox-count { font-variant-numeric: tabular-nums; }
.lightbox-copy > .lb-sep::before,
.photo-label + .photo-credit::before,
.photo-credit + .photo-label::before {
  content: "·";
  margin-left: 0.4em;
  margin-right: 0.4em;
}
.photos-heading {
  margin: 4px 0 8px;
  color: #8E8E93;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}
.photo-line { margin: 8px 0 0; line-height: 1.3; }
.photo-label { color: #3A3A3C; font-size: 14px; font-weight: 500; }
html:not(.theme-light) .photo-label { color: #E5E5EA; }
.photo-line .photo-credit, .photo-credit { color: #8E8E93; font-size: 13px; font-weight: 400; }
html.theme-light .photo-line .photo-credit, html.theme-light .photo-credit { color: var(--muted); }

.sourcing-map-block { margin: 0 0 22px; }
.map-summary { margin: 0 0 8px; color: var(--map-text); font-size: 15px; }
.rot .map-summary { margin: 3px 0 0; color: rgba(255, 255, 255, 0.95); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tesla-quote { margin: 0 0 18px; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); max-width: 720px; }
.tesla-quote blockquote { margin: 0; }
.tesla-quote p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.tesla-quote figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.sourcing-map-frame {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--map-bg);
  border: 1px solid var(--map-line);
}
.sourcing-map { height: 100%; width: 100%; background: var(--map-bg); }
/* Standard OSM tiles, darkened on the tile pane only so pins and controls stay as drawn. */
#sourcing-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.88) contrast(0.92) saturate(0.25);
}
html.theme-light #sourcing-map .leaflet-tile-pane { filter: none; }
/* Leaflet's plus-lighter tile blend paints hairline seams on the inverted
   dark-mode pane. Overlap tiles by 1px with normal blending; keep the invert
   on the pane so pins and controls stay unfiltered. */
#sourcing-map img.leaflet-tile {
  mix-blend-mode: normal;
  width: 257px !important;
  height: 257px !important;
}
.map-past-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1100;
  background: var(--map-panel);
  color: var(--map-muted);
  border: 1px solid var(--map-edge);
  border-radius: 999px;
  padding: 5px 10px;
  font: 500 12px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.map-past-toggle[aria-pressed="true"] { color: var(--map-text); }
.map-extent-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  /* Above Leaflet's panes (up to 700) and controls (1000), so the map drawing in never hides it. */
  z-index: 1100;
  background: var(--map-panel);
  color: var(--map-text);
  border: 1px solid var(--map-edge);
  border-radius: 999px;
  padding: 5px 10px;
  font: 500 12px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.map-extent-toggle:focus-visible { outline: 2px solid var(--map-text); outline-offset: 2px; }
.map-outside { margin: 0 0 8px; color: var(--map-muted); font-size: 13px; overflow-wrap: anywhere; }
.map-past-toggle:focus-visible { outline: 2px solid var(--map-text); outline-offset: 2px; }
.map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1100;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  color: var(--map-text);
  font: 11px/1 Inter, system-ui, sans-serif;
}
.map-legend li { display: flex; align-items: center; gap: 5px; }
.map-key {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.map-key-diner {
  background: #E31937;
  box-shadow: 0 0 0 1.5px var(--map-ring);
}
.map-key-now { background: var(--map-now); }
.map-key-past { background: var(--map-past); }
/* No `.leaflet-div-icon` in the selector: L.divIcon({className}) replaces that class, so the old rule never matched
   and the Diner's red dot was never painted. */
#sourcing-map .map-diner-pin {
  box-sizing: border-box;
  background: #E31937;
  border: 3px solid var(--map-ring);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(227, 25, 55, 0.6);
}
#sourcing-map .leaflet-tooltip.map-diner-label {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--map-text);
  font: 600 11px/1.2 Inter, system-ui, sans-serif;
  padding: 0;
  text-shadow: 0 1px 2px var(--map-bg), 0 0 4px var(--map-bg);
}
#sourcing-map .leaflet-tooltip.map-diner-label::before { display: none; }
#sourcing-map .leaflet-div-icon.map-count-wrap {
  background: transparent;
  border: 0;
}
.map-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--map-panel);
  color: var(--map-text);
  border: 1px solid var(--map-line);
  font: 600 10px/1 Inter, system-ui, sans-serif;
}
#sourcing-map .leaflet-popup-content-wrapper {
  background: var(--map-panel);
  color: var(--map-text);
  border: 1px solid var(--map-line);
  border-radius: 10px;
  box-shadow: none;
  font-family: Inter, system-ui, sans-serif;
}
#sourcing-map .leaflet-popup-tip {
  background: var(--map-panel);
  box-shadow: none;
}
#sourcing-map .leaflet-popup-content { margin: 12px; }
#sourcing-map .leaflet-popup-content p { margin: 0; }
#sourcing-map .leaflet-popup-close-button {
  color: var(--map-muted);
  font-size: 16px;
  width: 18px;
  height: 18px;
  top: 6px;
  right: 6px;
}
.map-popup { display: grid; gap: 10px; }
.map-popup-supplier { display: grid; gap: 2px; }
.map-popup-name {
  margin: 0;
  padding-right: 10px;
  color: var(--map-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.map-popup-name button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--map-text);
  font: 600 15px/1.3 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.map-popup-name button:hover,
.map-popup-name button:focus-visible { text-decoration: underline; }
.map-past-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--map-edge);
  background: var(--map-bg);
  color: var(--map-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: 1px;
}
.map-popup-what {
  color: var(--map-soft);
  font-size: 13px;
  line-height: 1.35;
}
.map-popup-meta {
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.35;
}
#sourcing-map .leaflet-bar {
  border: 1px solid var(--map-line);
  box-shadow: none;
}
#sourcing-map .leaflet-bar a,
#sourcing-map .leaflet-bar a:hover,
#sourcing-map .leaflet-bar a:focus {
  background: var(--map-panel);
  color: var(--map-text);
  border-bottom-color: var(--map-line);
  width: 26px;
  height: 26px;
  line-height: 26px;
}
#sourcing-map .leaflet-bar a:hover,
#sourcing-map .leaflet-bar a:focus { background: var(--map-hover); }
#sourcing-map .leaflet-control-attribution {
  background: var(--map-attr);
  color: var(--map-muted);
  font-size: 10px;
  line-height: 1.3;
  max-width: 48%;
}
#sourcing-map .leaflet-control-attribution a { color: var(--map-muted); }
.tile.map-focus { outline: 2px solid var(--change); outline-offset: 3px; }

.optimus-here {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.optimus-media { margin: 4px 0 18px; }
.optimus-hero { margin: 0 0 10px; }
.optimus-hero .lightbox-open {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}
.optimus-hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
}
.optimus-hero .photo-credit { margin-top: 6px; }
.collage { margin: 0; }
.collage-mosaic {
  display: grid;
  height: 360px;
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
}
.collage-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.collage-n2 { grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr; }
.collage-n3,
.collage-n4,
.collage-n5 { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-n3 { grid-template-columns: 1.45fr 1fr; }
.collage-n3 .collage-tile:first-child,
.collage-n4 .collage-tile:first-child,
.collage-n5 .collage-tile:first-child { grid-row: 1 / span 2; }
.collage-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}
.collage-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.collage-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #f2f2f2;
  font-size: 28px;
  font-weight: 600;
  pointer-events: none;
}
.play-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.72);
  pointer-events: none;
}
.play-badge::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #e8e8e8;
}
.optimus-quote { margin: 0; }
.optimus-quote a { color: inherit; }
.optimus-status {
  display: grid;
  gap: 6px;
  margin-top: 0;
}
.optimus-status h2 { font-size: 20px; margin: 0; }
.optimus-status p { margin: 0; }
.optimus-explain { margin: 0; }
.optimus-vessel { margin: 0; }
.optimus-cal { margin: 18px 0 8px; }
.cal-summary { margin: 0 0 10px; font-size: 15px; }
.cal-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cal-scroll::-webkit-scrollbar { display: none; }
.cal-grid {
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-rows: 16px auto;
  column-gap: 6px;
  width: max-content;
}
.cal-months {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.cal-months span {
  width: 13px;
  flex: 0 0 13px;
  overflow: visible;
  white-space: nowrap;
}
.cal-months .cal-break,
.cal-weeks .cal-break {
  width: 8px;
  flex: 0 0 8px;
  position: relative;
}
.cal-weeks .cal-break::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.cal-wdays {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(7, 13px);
  gap: 3px;
  background: var(--bg);
  color: var(--muted);
  font-size: 9px;
  line-height: 13px;
}
.cal-weeks {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 3px;
}
.cal-week { display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; }
.cal-cell { display: block; width: 13px; height: 13px; }
.cal-day {
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1px solid transparent;
  padding: 0;
}
.cal-empty { background: var(--cal-empty); }
.cal-before { background: var(--cal-faded); border-color: rgba(128, 128, 128, 0.28); }
.cal-pad { background: transparent; border-color: transparent; }
.cal-confirmed { background: var(--cal-green); border-color: var(--cal-green); }
.cal-upcoming {
  background-color: var(--cal-yellow);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.28) 0 1px,
    transparent 1px 4px
  );
  border-color: var(--cal-yellow);
}
button.cal-day { cursor: pointer; display: block; }
button.cal-day:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.cal-pop-src { display: none; }
.cal-legend, .cal-pattern { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.cal-log { list-style: none; margin: 12px 0 0; padding: 0; }
.cal-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
p.cal-row { cursor: default; }
.cal-row-more { margin: 0; padding: 0 0 8px; color: var(--muted); font-size: 14px; }
.cal-row-more p { margin: 0 0 4px; }
.cal-pop {
  position: fixed;
  z-index: 6;
  width: min(280px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.cal-pop[hidden] { display: none; }
.cal-pop p { margin: 0 0 4px; }
.cal-pop-title { font-weight: 600; }
.cal-pop-status { color: var(--muted); font-size: 13px; }
.cal-pop a { color: inherit; }
.optimus-page .grid .card { margin: 0; display: grid; gap: 8px; align-content: start; }
.certainty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.certainty.confirmed { color: var(--ok); border: 0; background: color-mix(in srgb, var(--ok) 16%, transparent); }
.certainty.announced,
.certainty.tentative { color: var(--muted); border: 0; background: var(--pill); }
a.certainty.tentative:hover { color: var(--text); }
@media (max-width: 700px) {
  .collage-mosaic { height: 260px; }
  .optimus-hero img { max-height: 280px; }
}
@media (max-width: 640px) {
  .sourcing-map-frame { height: 300px; }
}

/* Direction A: the Optimus hero is a dark photo in both themes.
   It starts behind the header so the tabs fade into the picture. */
.optimus-page { --chrome: 108px; --hero-mix: 0; }
/* One full-bleed header. left/right stretch it to the page, not to 100vw,
   so a hidden scrollbar cannot leave a column. The gradient fades out
   through the bottom of this box, so the bar has no edge of its own. */
.optimus-page .chrome {
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: auto;
  margin: 0;
  padding-bottom: 64px;
  pointer-events: none;
  background: transparent;
}
.optimus-page .chrome::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--header-frost, 0);
  background: linear-gradient(
    to bottom,
    rgba(16, 16, 18, 0.98) 0,
    rgba(16, 16, 18, 0.98) calc(100% - 72px),
    rgba(16, 16, 18, 0) 100%
  );
  transition: none;
}
html.theme-light .optimus-page .chrome::before {
  opacity: calc(var(--header-frost, 0) * (1 - var(--hero-mix, 0)));
}
html.theme-light .optimus-page .chrome::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(236, 236, 238, 0.98) 0,
    rgba(236, 236, 238, 0.98) calc(100% - 72px),
    rgba(236, 236, 238, 0) 100%
  );
  opacity: calc(var(--header-frost, 0) * var(--hero-mix, 0));
  transition: none;
}
.optimus-page .nav a:not([aria-current="page"]) {
  color: rgba(242, 242, 247, 0.82);
  color: color-mix(in srgb, var(--tab) calc(var(--hero-mix, 0) * 100%), rgba(242, 242, 247, 0.82));
}
.optimus-page .account,
.optimus-page .theme-toggle {
  background: rgba(255, 255, 255, 0.16);
  background: color-mix(in srgb, var(--pill) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.16));
  color: #f2f2f7;
  color: color-mix(in srgb, var(--tile-text) calc(var(--hero-mix, 0) * 100%), #f2f2f7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.optimus-page .theme-toggle:hover,
.optimus-page .account:hover {
  background: rgba(255, 255, 255, 0.24);
  background: color-mix(in srgb, var(--pill) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.24));
  color: #fff;
  color: color-mix(in srgb, var(--tab-on-text) calc(var(--hero-mix, 0) * 100%), #fff);
}
.optimus-page .eyebrow,
.optimus-page .eyebrow a,
.optimus-page .live {
  color: rgba(242, 242, 247, 0.82);
  color: color-mix(in srgb, var(--muted) calc(var(--hero-mix, 0) * 100%), rgba(242, 242, 247, 0.82));
}
.optimus-page .top,
.optimus-page .nav-fade { position: relative; z-index: 1; }
.optimus-page .top,
.optimus-page .nav-fade {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: max(16px, calc((100% - 1120px) / 2));
  padding-right: max(16px, calc((100% - 1120px) / 2));
  background: transparent;
}
.optimus-page .top,
.optimus-page .nav-fade { pointer-events: auto; }
.optimus-page .nav-fade { position: relative; top: auto; z-index: auto; }
.optimus-page .nav {
  width: auto;
  margin: 0;
  background: transparent;
}
.optimus-page .nav-frost { display: none; }
.optimus-page .nav-shade { display: none; }
.optimus-page main { width: 100%; max-width: none; }
.a-main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.a-hero {
  position: relative;
  z-index: 0;
  height: calc(680px + var(--chrome));
  margin-top: calc(-1 * var(--chrome));
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
  isolation: isolate;
}
.a-hero { left: 0; right: 0; width: auto; }
.a-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 100% 0;
  z-index: -2;
}
.a-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to bottom, rgba(8, 8, 10, 0.7) 0, rgba(8, 8, 10, 0.42) 150px, rgba(8, 8, 10, 0.12) 230px, rgba(8, 8, 10, 0) 320px),
  linear-gradient(90deg, rgba(12,12,12,.78) 0%, rgba(12,12,12,.5) 28%, rgba(12,12,12,.16) 52%, rgba(12,12,12,0) 70%),
  linear-gradient(0deg, rgba(12,12,12,.8) 0%, rgba(12,12,12,0) 38%); }
.a-inner { width: min(1120px, calc(100% - 32px)); height: 100%; margin: 0 auto; display: flex; align-items: center; }
.a-copy { max-width: 520px; display: grid; gap: 18px; justify-items: start; }
.a-hero .pill { display: inline-flex; align-items: center; gap: 8px; color: #d6d6d6; border-color: rgba(255,255,255,.4); background: transparent; }
.a-hero .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.a-hero .pill.on { color: #9dceb0; border-color: #9dceb0; }
.a-hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.035em; margin: 0; color: #fff; font-weight: 500; }
.a-lede { margin: -6px 0 0; font-size: 20px; line-height: 1.4; color: rgba(255,255,255,.9); }
.a-quote { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); }
.a-quote a { color: #fff; }
.a-facts { display: flex; gap: 28px; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); width: 100%; }
.a-facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.a-facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; color: #fff; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.a-hero .btn-solid { background: #f2f2f2; color: #161616; }
.a-hero .btn-out { border: 0; color: #fff; background: rgba(255, 255, 255, 0.16); }
.a-hero .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-credit { position: absolute; right: max(16px, calc((100% - 1120px) / 2)); bottom: 14px; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.8); font-size: 11px; }
.hero-credit a { color: inherit; text-decoration: none; }
.a-main .sec { margin: 56px 0 0; }
.a-main .sec h2 { font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-sub { margin: 0; color: var(--muted); font-size: 15px; }
.kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cal-card { background: var(--card); border: 0; border-radius: 14px; box-shadow: var(--card-shadow); padding: 22px 22px 18px; }
#calendar { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.cal-card .cal-wdays { background: var(--card); }
.costume { display: grid; grid-template-columns: minmax(180px, 1fr) 1.15fr 1.15fr; gap: 28px; align-items: start; }
.costume .sec-sub { max-width: 300px; line-height: 1.5; margin-top: 8px; }
.costume-grid { display: contents; }
.gens .sec-sub { margin-top: 8px; max-width: 520px; line-height: 1.5; }
.gens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 20px; margin-top: 18px; }
.gens .credit { margin: 10px 0 0; }
.mcard { margin: 0; min-width: 0; }
.mframe { position: relative; overflow: hidden; border-radius: 16px; background: #111; aspect-ratio: 4 / 5; }
.mframe .lightbox-open { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; overflow: hidden; }
.mframe img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.mcard figcaption { display: grid; gap: 2px; padding: 12px 2px 0; }
.mcard figcaption b { font-size: 14px; font-weight: 500; }
.msub { font-size: 13px; color: var(--muted); }
.credit { font-size: 11px; line-height: 1.3; color: var(--muted); }
.credit a { color: inherit; }
.hlist { border-top: 1px solid var(--line); }
.hrow { border-bottom: 1px solid var(--line); }
.hrow summary { list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 16px 0; cursor: pointer; }
.hrow summary::-webkit-details-marker { display: none; }
.hdate { font-weight: 500; }
.hmeta { color: var(--muted); font-size: 14px; flex: 1; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 250ms ease-out; flex: none; align-self: center; }
.hrow[open]:not(.is-closing) .chev { transform: rotate(-135deg) translateY(-1px); }
.hbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 28px; align-items: start; padding: 0 0 22px; }
.htext { max-width: 520px; color: var(--muted); font-size: 15px; }
.htext p { margin: 0 0 6px; }
.htext a { color: var(--text); }
.hthumbs { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.hthumbs:has(.hthumb:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.hthumb { margin: 0; min-width: 0; }
.hthumb .lightbox-open { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 280px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--photo); cursor: pointer; }
.hthumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hthumb figcaption { padding-top: 6px; }
.home-page { --chrome: 44px; }
.home-page main { width: 100%; max-width: none; }
.home-page .a-hero { height: auto; min-height: max(560px, 88vh); display: flex; flex-direction: column; }
.home-page .a-inner { flex: 1 1 auto; height: auto; padding-top: 64px; box-sizing: border-box; }
.home-page .a-scrim {
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.70) 100%);
}
.home-page .a-inner { align-items: flex-end; padding-bottom: 40px; }
/* On wider screens the text sits mid-height in the same left column as the
   Optimus hero. The top padding clears the nav and the pause button. */
@media (min-width: 701px) {
  .home-page .a-inner { align-items: center; padding-top: 64px; padding-bottom: 64px; }
  .home-page .a-scrim {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, 0.6) 0%, rgba(12, 12, 12, 0.34) 34%, rgba(12, 12, 12, 0) 62%),
      linear-gradient(to bottom, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.55) 100%);
  }
}
.home-page .a-copy { max-width: 560px; }
.home-page .a-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.home-page .a-follow { margin: 0; }
.home-page .a-follow a { color: #fff; }
.home-page .btn-out { border: 1px solid rgba(255, 255, 255, 0.72); background: transparent; color: #fff; }
.home-page .a-main .sec { margin-top: 64px; }
.reel-toggle {
  position: absolute;
  top: calc(var(--chrome, 160px) + 12px);
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}
.reel-toggle .reel-play { display: none; }
.reel-toggle.is-paused .reel-pause { display: none; }
.reel-toggle.is-paused .reel-play { display: block; }
.a-reel { opacity: 0; }
.home-page.has-frame .a-reel { opacity: 1; }
.now-strip dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.now-strip dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.now-strip dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; text-wrap: balance; }
@media (min-width: 701px) {
  .now-strip dl.has-optimus { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.latest-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.latest-group { display: grid; gap: 8px; min-width: 0; }
.latest-list time {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  display: block;
}
.latest-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: baseline;
}
.latest-row { display: contents; }
.latest-row .pill { justify-self: start; }
.latest-row a,
.latest-row > span:not(.pill) {
  min-width: 0;
  overflow-wrap: break-word;
}
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.explore-tile {
  display: grid;
  gap: 6px;
  align-content: start;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.explore-photo {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--photo);
}
.explore-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.explore-credit { margin-top: -2px; }
.now-strip dd a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.out-list { margin: 14px 0 0; color: var(--muted); font-size: 15px; scroll-margin-top: 72px; }
.out-list a { color: var(--text); }
.out-label { font-weight: 600; color: var(--text); }
.nav-fade .nav { padding-right: 52px; }
/* The tab bar sits on the hero. It stays clear at the top and takes its
   solid or frosted look from --hero-mix and --header-frost as the page scrolls. */
html.theme-light body.home-page .nav-fade { background: transparent; }
.home-page .nav a:not([aria-current="page"]) {
  color: rgba(242, 242, 247, 0.82);
  color: color-mix(in srgb, var(--tab) calc(var(--hero-mix, 0) * 100%), rgba(242, 242, 247, 0.82));
}
.nav-tools {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}
.nav-tools .theme-toggle { pointer-events: auto; }
.home-page .theme-toggle {
  background: rgba(255, 255, 255, 0.16);
  background: color-mix(in srgb, var(--pill) calc(var(--hero-mix, 0) * 100%), rgba(255, 255, 255, 0.16));
  color: #f2f2f7;
  color: color-mix(in srgb, var(--tile-text) calc(var(--hero-mix, 0) * 100%), #f2f2f7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.explore-title { font-size: 16px; font-weight: 600; }
.explore-line { color: var(--muted); font-size: 14px; line-height: 1.4; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a { color: inherit; }
@media (max-width: 700px) {
  .home-page { --chrome: 44px; }
  .home-page .a-hero { height: auto; min-height: max(480px, 80svh); }
  .explore-grid, .now-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-strip dl:not(.has-optimus) div:last-child { grid-column: 1 / -1; }
  .now-strip dd { font-size: 16px; }
  .now-strip dl .stat-checked { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  /* The hero is as tall as its text plus a little air: room above for the
     head and shoulders to show, a little below for the credit. */
  .a-hero { height: auto; min-height: 0; background: #0d0d0d; }
  .a-bg { object-position: 72% 0; height: 100%; bottom: 0; }
  .a-scrim { background:
    linear-gradient(to bottom, rgba(8, 8, 10, 0.72) 0, rgba(8, 8, 10, 0.46) 140px, rgba(8, 8, 10, 0.14) 220px, rgba(8, 8, 10, 0) 320px),
    linear-gradient(to top, rgba(13, 13, 13, 1) 0, rgba(13, 13, 13, 1) 180px, rgba(13, 13, 13, 0.45) 300px, rgba(13, 13, 13, 0) 460px); }
  .a-inner { align-items: flex-end; padding: 168px 0 44px; }
  .a-copy { gap: 14px; max-width: none; width: 100%; }
  .a-hero h1 { font-size: 34px; }
  .a-lede { font-size: 16px; }
  .a-quote { display: none; }
  .a-facts { gap: 18px; padding-top: 14px; }
  .a-facts dd { font-size: 16px; }
  .a-facts div:last-child { display: none; }
  .a-hero .btns { width: 100%; }
  .a-hero .btn { flex: 1 1 100%; }
  .hero-credit { right: 16px; bottom: 16px; }
  .a-main .sec h2 { font-size: 24px; }
  .gens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .gens .mframe { border-radius: 10px; }
  .gens .mcard figcaption { padding-top: 8px; }
  .gens .mcard figcaption b { font-size: 12px; line-height: 1.25; }
  .gens .msub { font-size: 11px; line-height: 1.25; }
  .costume { grid-template-columns: 1fr 1fr; gap: 12px; }
  .costume .sec-intro { grid-column: 1 / -1; }
  .costume .sec-sub { max-width: none; }
  .cal-card { padding: 16px 14px 14px; }
  .hbody { grid-template-columns: 1fr; gap: 14px; }
  .hthumb .lightbox-open { max-height: 240px; }
  .about-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 10px;
  }
  .about-strip::-webkit-scrollbar { display: none; }
  .about-strip figure { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Phones: only the tab row sticks. The frost fades in after the title
   (or the Optimus hero) has scrolled away, and its bottom edge dissolves. */
@media (max-width: 700px) {
  .nav-fade {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    z-index: 30;
  }
  .nav-fade .nav, .optimus-page .nav {
    width: auto;
    /* The tab row ends before the theme toggle, so no tab slides under it. */
    margin: 0 52px 0 0;
    gap: 8px;
    padding: 5px 8px 5px 16px;
    min-height: 44px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  /* No snapping on phones: it pulled the strip back to put a tab 16px in, which left a sliver of the one before it. */
  .nav { scroll-snap-type: none; }
  /* A wider soft fade on the right edge says the tab row scrolls. It is
     gone once the row reaches its end (the show-end class comes off). */
  .nav-fade.show-end .nav {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent);
  }
  .nav-fade.show-start .nav {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 100%);
    mask-image: linear-gradient(to right, transparent, #000 32px, #000 100%);
  }
  .nav-fade.show-start.show-end .nav {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent);
  }
  .nav-tools { width: calc(100% - 24px); }
  .optimus-page { --chrome: 44px; }
  .optimus-page .chrome {
    display: contents;
  }
  .optimus-page .nav-fade {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-left: 0;
    padding-right: 0;
  }
  .optimus-page .nav-frost { display: block; }
  .optimus-page .nav {
    background: transparent;
  }
}
/* A sheet leaves the site nav where it is; only the full-screen lightbox hides it. */
html:has(dialog.lightbox[open]) .nav-fade,
html:has(dialog.lightbox[open]) .optimus-page .chrome {
  visibility: hidden;
}
@media (prefers-reduced-transparency: reduce) {
  .nav-frost::before,
  html.theme-light .nav-frost::after,
  .optimus-page .chrome::before,
  html.theme-light .optimus-page .chrome::after {
    background: var(--frost-solid);
  }
}
@media (max-width: 700px) {
  dialog.lightbox {
    --lb-control: 44px;
    --lb-inset: 8px;
    --lb-gutter: 0px;
    --lb-side: 12px;
  }
  .lightbox-figure { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .lightbox-frame, .lightbox-frame img, #lightbox-video { width: 100%; max-width: 100%; }
  .lightbox-close {
    top: max(var(--lb-inset), env(safe-area-inset-top, 0px));
    right: max(var(--lb-inset), env(safe-area-inset-right, 0px));
  }
  .lightbox-close::before { width: 40px; height: 40px; }
  .lightbox-arrow::before { width: 36px; height: 36px; background: rgba(0, 0, 0, 0.62); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-frost,
  .optimus-page .chrome::before,
  .lightbox-shade,
  .lightbox-frame { transition: none; }
  dialog.lightbox.is-in .lightbox-frame { transform: none; }
}

/* Item page: from 560px the photo and the details sit side by side, so the
   name and price are on the first screen even in landscape. Stacked on
   narrower screens, the square photo stops at 60% of the visible height. */
.item-page .detail-hero:not(.detail-hero-full) { max-height: 60svh; }
@media (min-width: 560px) {
  .item-page .detail { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .item-page .detail-hero { border-radius: 14px; }
  .item-page .detail-hero:not(.detail-hero-full) { max-height: none; }
}

/* Calendar: a soft edge says the grid scrolls, on whichever side has more. */
.cal-scroll {
  --cal-fade-l: 0px;
  --cal-fade-r: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--cal-fade-l), #000 calc(100% - var(--cal-fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--cal-fade-l), #000 calc(100% - var(--cal-fade-r)), transparent);
}
.cal-scroll.fade-start { --cal-fade-l: 28px; }
.cal-scroll.fade-end { --cal-fade-r: 36px; }

/* The "Last checked" stamp: the date stays whole, the relative part may wrap. */
.stamp-at { white-space: nowrap; }
.stamp-rel { color: var(--muted); font-weight: 400; }

/* One entry format: the item page, the item sheet and every earlier version
   share this markup, with the same fields in the same order (photo and credit,
   name, price and hours, status pills, description, one gray date and source
   line, collapsed options, share). Earlier versions use the compact variant. */
:root {
  --sheet-edge: rgba(255, 255, 255, 0.16);
  --sheet-panel: #0c0c0e;
  --e-link: #AEAEB2;
  --e-change: #C7C7CC;
  --e-warn: #F2B24C;
  --e-warn-bg: rgba(242, 178, 76, 0.14);
  --e-good: #7FD49A;
  --e-good-bg: rgba(127, 212, 154, 0.14);
}
html.theme-light {
  --sheet-edge: rgba(0, 0, 0, 0.16);
  --sheet-panel: #e4e4ea;
  --e-link: #48484A;
  --e-change: #3A3A3C;
  --e-warn: #8A5A00;
  --e-warn-bg: rgba(200, 130, 0, 0.14);
  --e-good: #1F6B3A;
  --e-good-bg: rgba(31, 107, 58, 0.12);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.entry {
  --photo-r: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  color: var(--text);
}
.entry > * { margin: 0; }
.e-change { margin-bottom: 10px !important; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--e-change); }
.e-photo { margin: 0; min-width: 0; position: relative; }
.e-frame {
  position: relative;
  aspect-ratio: 800 / 578;
  background: var(--sheet-panel);
  border-radius: var(--photo-r);
  overflow: hidden;
}
.e-frame > .lightbox-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  /* Clicking the photo itself does nothing; only the magnifier opens the lightbox, so only it shows a pointer. */
  cursor: default;
  line-height: 0;
}
.e-frame--video > .lightbox-open { cursor: pointer; }
.e-frame picture { display: block; width: 100%; height: 100%; }
.e-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.e-frame.fit-contain img { object-fit: contain; }
/* A photo with a caption about the whole frame is shown whole, not cropped. */
.e-frame--whole { aspect-ratio: auto; }
.e-frame--whole > .lightbox-open { position: relative; inset: auto; height: auto; }
.e-frame--whole img { height: auto; object-fit: contain; }
.e-credit { margin: 8px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.e-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.e-photonote { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.e-name {
  margin-top: 14px !important;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--strong, var(--text));
  overflow-wrap: anywhere;
}
.entry.no-photo .e-name { margin-top: 0 !important; }
.e-facts {
  margin-top: 6px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 8px;
  font-size: 14px;
  color: var(--muted);
}
.e-price { font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.e-hours { font-weight: 400; }
.e-hours.facts-hours {
  flex-basis: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #8E8E93;
}
html.theme-light .e-hours.facts-hours {
  color: var(--muted);
}
.entry .sizes { padding-top: 10px; }
.e-pills {
  margin-top: 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.e-pills:not(:has(li:not([hidden]))) { display: none; }
.e-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  background: var(--pill);
}
.e-pill[hidden] { display: none; }
.e-pill--warn { color: var(--e-warn); background: var(--e-warn-bg); }
.e-pill--good { color: var(--e-good); background: var(--e-good-bg); }
.e-pill--quiet { color: var(--muted); }
.e-desc { margin-top: 12px !important; font-size: 15px; line-height: 1.45; white-space: pre-wrap; color: var(--text); }
.e-meta { margin-top: 12px !important; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.e-meta a { color: var(--e-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.e-meta--solo { margin: 0 !important; }
.e-meta.e-sighting { margin-top: 6px !important; }
.e-options { margin-top: 14px !important; border-top: 1px solid var(--line); }
.e-options > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.e-options > summary::-webkit-details-marker { display: none; }
.e-options > summary svg { color: var(--muted); transition: transform 0.22s ease; flex: 0 0 auto; }
.e-options.is-closing > summary svg { transform: none; }
.e-options[open] > summary svg { transform: rotate(180deg); }
.e-options .options { padding-bottom: 6px; }
.entry .more-photos { margin-top: 18px; }
.e-share {
  align-self: flex-start;
  margin-top: 16px !important;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--sheet-edge);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.e-share:hover, .e-share:focus-visible { background: var(--pill); }
/* earlier versions: same order, same styles, smaller */
.entry--compact { --photo-r: 10px; }
.entry--compact .e-photo { width: 168px; max-width: 100%; }
.entry--compact .e-credit { margin-top: 6px; font-size: 11.5px; }
.entry--compact .e-name { margin-top: 12px !important; font-size: 17px; }
.entry--compact .e-facts { margin-top: 4px !important; }
.entry--compact .e-price { font-size: 15px; }
.entry--compact .e-desc { margin-top: 8px !important; font-size: 14px; }
.entry--compact .e-meta { margin-top: 8px !important; font-size: 12.5px; }
.entry--compact .e-options { margin-top: 10px !important; }
.entry--compact .e-options > summary { min-height: 40px; font-size: 13px; }
.earlier { margin: 0; padding: 4px 0 6px; }
.earlier > * + * { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.e-earlier { margin-top: 22px !important; }

/* Short landscape screens (a folded Duo): the photo leaves room for the name. */
@media (max-height: 600px) {
  .entry--primary .e-frame { aspect-ratio: auto; height: min(32dvh, 240px); }
  .entry--primary .e-frame--whole { height: auto; }
}

/* The item page: the same card as the sheet, capped and centered. */
.item-page .detail.entry-card {
  display: block;
  width: min(100%, 600px);
  margin: 12px auto 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--sheet-edge);
  border-radius: 22px;
}
.item-page .back { width: min(100%, 600px); margin-left: auto; margin-right: auto; }

/* The sheet is the card. The name sits under the photo; close floats on top. */
dialog.sheet {
  background: var(--card);
  border: 1px solid var(--sheet-edge);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}
@media (min-width: 801px) {
  dialog.sheet {
    width: min(560px, calc(100% - 32px));
    max-height: min(86dvh, 780px);
  }
}
dialog.sheet > .sheet-x { font-size: 24px; }
#sheet-body {
  scrollbar-width: none;
  padding: 4px 16px 22px;
}
#sheet-body::-webkit-scrollbar { display: none; width: 0; }
#sheet-body .detail.entry-card { padding: 0; background: none; border: 0; }
#sheet-body .entry--primary.no-photo .e-name { padding-right: 44px; }
/* Supplier sheets still use the older hero. */
#sheet-body .detail-hero {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sheet-panel);
}
#sheet-body .detail-hero > .lightbox-open,
#sheet-body .detail-hero img { border-radius: 16px; }
#sheet-body .detail-body { padding: 14px 4px 8px; gap: 12px; }
dialog.sheet.sheet-more::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 64px;
  border-radius: 0 0 21px 21px;
  background: linear-gradient(to bottom, transparent, var(--card) 85%);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 541px) {
  .e-name { font-size: 24px; }
  .entry--compact .e-name { font-size: 17px; }
  .entry--compact .e-photo { width: 200px; }
  .item-page .detail.entry-card { padding: 18px; }
  #sheet-body { padding: 6px 18px 24px; }
}
@media (min-width: 801px) {
  .item-page .detail.entry-card { padding: 20px; }
  #sheet-body { padding: 8px 20px 26px; }
}
@media (max-width: 800px) {
  dialog.sheet {
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }
  #sheet-body { padding: 4px 16px 22px; }
  dialog.sheet.sheet-more::after { left: 0; right: 0; bottom: 0; border-radius: 0; }
}

/* Inline video: the still is the poster, a round play button sits on it, and
   the video plays in the card. The lightbox button under it is still there. */
.vwrap { position: relative; display: block; width: fit-content; max-width: 100%; border-radius: 12px; overflow: hidden; }
.hthumb .vwrap { width: 100%; }
.vcard { position: absolute; inset: 0; z-index: 2; background: #000; border-radius: inherit; overflow: hidden; }
.vcard-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.e-frame.fit-contain .vcard-video { object-fit: contain; }
.vcard:not(.is-started) .vcard-video::-webkit-media-controls { display: none !important; }
.vcard:not(.is-started) .vcard-video::-webkit-media-controls-panel { display: none !important; }
.vplay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.12s, background-color 0.12s;
}
.vplay::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.vplay:hover, .vplay:focus-visible { background: rgba(10, 10, 12, 0.78); transform: scale(1.05); outline: none; }
.vplay:focus-visible { box-shadow: 0 0 0 2px #fff; }
.vcard.is-running .vplay { display: none; }
.vzoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='M15 15l4.5 4.5M10.5 8.2v4.6M8.2 10.5h4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  cursor: pointer;
}
.vzoom:hover, .vzoom:focus-visible { background-color: rgba(0, 0, 0, 0.62); outline: none; }
/* The card's own video controls take the place of the magnifier badge. */
.e-frame:has(> .vcard) > .lightbox-open::after,
.vwrap > .lightbox-open::after { display: none; }
.vwrap .vplay { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.vwrap .vplay::before { left: 19px; top: 14px; border-width: 10px 0 10px 16px; }
.gallery .vwrap .vplay { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.gallery .vwrap .vplay::before { left: 16px; top: 11px; border-width: 9px 0 9px 14px; }
.gallery .vwrap .vzoom { display: none; }

/* A video keeps its own proportions: the whole frame is the video. */
.e-photo--video { width: min(100%, calc(460px * var(--ar, 0.5625))); }
.e-photo--video .e-frame { aspect-ratio: var(--ar, 0.5625); }
.e-frame--video .vcard-video { object-fit: contain; }

/* Portrait and square videos: native fullscreen (the controls' zoom) shows
   the whole frame, letterboxed on black. Landscape videos keep the object-fit
   they already have, including gallery tiles that use cover. */
#lightbox-video.is-portrait:fullscreen,
#lightbox-video.is-portrait:-webkit-full-screen,
.vcard-video.is-portrait:fullscreen,
.vcard-video.is-portrait:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
  border-radius: 0;
}
.entry--compact .e-photo--video { width: min(100%, 240px, calc(300px * var(--ar, 0.5625))); }
.entry-card .e-photo--video + .e-photo--video { margin-top: 14px; }
.entry-card .e-photo + .e-photo--video { margin-top: 14px; }

/* Options and Earlier versions open and close smoothly. Browsers that know
   ::details-content animate it here; the rest use the small script in app.js. */
.e-options { interpolate-size: allow-keywords; }
.e-options::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.22s ease, content-visibility 0.22s allow-discrete;
}
.e-options[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .e-options::details-content { transition: none; }
  .e-options > summary svg { transition: none; }
}

/* Past Items: every category is the same collapsible bar (all open to start, Tesla Merch last). */
.fold { margin-top: 8px; }
.merch-fold .tile.merch { display: flex; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; border-top: 1px solid var(--line); padding: 4px 0; -webkit-tap-highlight-color: transparent; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.fold > summary .category-name { margin: 12px 0; }
.fold .fold-count { color: var(--muted); font-size: 0.7em; font-weight: 600; margin-left: 4px; }
.fold > summary .chev { margin-left: auto; margin-right: 6px; }
.fold[open]:not(.is-closing) > summary .chev { transform: rotate(-135deg) translateY(-1px); }
.fold > .grid { padding-bottom: 8px; }

/* No-photo placeholder: Tesla's own no-image tile, the exact SVG from tesla.com/diner-webapp (static/diner-placeholder.svg,
   viewBox 800x578 = the 18:13 tile). Tesla colours it with `color: var(--imeosfc)` (class haho670): white at 20% in
   its night theme, black at 20% in its day theme, drawn over the tile fill. These two pairs are the only knobs.
   Dark fill #1b1b1b is Tesla's --imeosf6 (matches the Sawyer screenshot). Light fill #dadadb is Tesla's day tile
   (black 8% over #ededef, matches an in-car photo); edit under html.theme-light if a light screenshot disagrees. */
:root { --ph-bg: #1b1b1b; --ph-mark: rgba(255, 255, 255, 0.2); }
html.theme-light { --ph-bg: #dadadb; --ph-mark: rgba(0, 0, 0, 0.2); }
.tile-fallback--diner, .e-frame--placeholder { position: relative; background: var(--ph-bg); }
.tile-fallback--diner::after, .e-frame--placeholder::after {
  content: ""; position: absolute; inset: 0; background: var(--ph-mark);
  -webkit-mask: url(/static/diner-placeholder.svg) center / contain no-repeat;
          mask: url(/static/diner-placeholder.svg) center / contain no-repeat;
}
.e-frame--placeholder { overflow: hidden; }

/* Past Items sub-line: one dated fact, tap for its source. Never wraps. */
.tile-when { white-space: nowrap; overflow: hidden; text-overflow: clip; cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.when-pop { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 6; padding: 8px 10px; border-radius: 10px; background: var(--bg, #111); color: var(--tile-text); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); font-size: 12px; line-height: 1.35; }
.when-pop[hidden] { display: none; }
.when-pop a { color: inherit; text-decoration: underline; }

/* Imageless thumbs (supplier "Earlier on the menu" lists, log rows) use the same DINER placeholder as the tiles. */
.hit-fallback.tile-fallback--diner { flex: none; }
.event-photo .hit-fallback { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; }
.recipe-before .event-photo .hit-fallback { width: 64px; height: 64px; }
.event-photo a.log-ph-link { line-height: 0; }

/* ---------- Photo rotation header (Menu, Past Items) · app/hero.py lists the slides ----------
   CSS-only crossfade: each photo holds ~3s and crossfades for 1s into the next (4s a slide). It starts only once
   app.js has fetched every photo (.is-live), so a slow connection never fades to a blank frame. */
.rot { position: relative; isolation: isolate; margin: 6px 0 14px; border-radius: 16px; overflow: hidden; background: #0d0d0f; aspect-ratio: 4 / 3; color: #fff; }
.rot-media { position: absolute; inset: 0 0 28% 0; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, #000 74%, transparent 100%); }
.rot-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pp, 50% 50%); display: block; opacity: 0; }
.rot-slide:first-child { opacity: 1; }
/* Dark bottom, deliberately heavy: several stills (cookie, pickles, BLT) are bright along the bottom edge. */
.rot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 8, 10, 0.98) 0, rgba(8, 8, 10, 0.95) 30%, rgba(8, 8, 10, 0.82) 44%, rgba(8, 8, 10, 0.4) 60%, rgba(8, 8, 10, 0.08) 78%, rgba(8, 8, 10, 0) 100%); }
.rot-copy { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 3px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.rot-copy p { margin: 0; }
.rot-title { text-wrap: balance; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; }
.rot .rot-count { font-size: 15px; font-weight: 500; letter-spacing: normal; text-transform: none; color: rgba(255, 255, 255, 0.95); font-variant-numeric: tabular-nums; }
.rot .rot-sub, .rot .last-change { margin-top: 3px; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, 0.88); }
.rot .last-change a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.rot-credit { position: absolute; left: 10px; top: 10px; white-space: nowrap; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.95); }
.rot-pause { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.5); color: #fff; cursor: pointer; }
.rot-pause[hidden] { display: none; }
.rot-pause .pl { display: none; }
.rot-pause.is-paused .pa { display: none; }
.rot-pause.is-paused .pl { display: block; }
.rot-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rot.is-live .rot-slide { animation-iteration-count: infinite; animation-timing-function: linear; animation-fill-mode: both; animation-delay: calc(var(--i) * 4s - 1s); }
.rot.is-paused .rot-slide { animation-play-state: paused; }
/* Art that is not Tesla's carries a linked credit; on a phone it sits at the foot of the picture so it never covers a neon title. */
@media (max-width: 479px) { .rot-credit:has(a) { left: auto; right: 10px; top: calc(72% - 34px); } }
.rot-credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* rot-generated:begin */
@keyframes rot-2{0%{opacity:0;z-index:2}11.25%{opacity:1;z-index:2}49.375%{opacity:1;z-index:2}50%{opacity:1;z-index:1}61.25%{opacity:1;z-index:1}61.5%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="2"].is-live .rot-slide { animation-name: rot-2; animation-duration: 8s; }
@keyframes rot-3{0%{opacity:0;z-index:2}7.5%{opacity:1;z-index:2}32.917%{opacity:1;z-index:2}33.333%{opacity:1;z-index:1}40.833%{opacity:1;z-index:1}41%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="3"].is-live .rot-slide { animation-name: rot-3; animation-duration: 12s; }
@keyframes rot-4{0%{opacity:0;z-index:2}5.625%{opacity:1;z-index:2}24.688%{opacity:1;z-index:2}25%{opacity:1;z-index:1}30.625%{opacity:1;z-index:1}30.75%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="4"].is-live .rot-slide { animation-name: rot-4; animation-duration: 16s; }
@keyframes rot-5{0%{opacity:0;z-index:2}4.5%{opacity:1;z-index:2}19.75%{opacity:1;z-index:2}20%{opacity:1;z-index:1}24.5%{opacity:1;z-index:1}24.6%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="5"].is-live .rot-slide { animation-name: rot-5; animation-duration: 20s; }
@keyframes rot-6{0%{opacity:0;z-index:2}3.75%{opacity:1;z-index:2}16.458%{opacity:1;z-index:2}16.667%{opacity:1;z-index:1}20.417%{opacity:1;z-index:1}20.5%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="6"].is-live .rot-slide { animation-name: rot-6; animation-duration: 24s; }
@keyframes rot-7{0%{opacity:0;z-index:2}3.214%{opacity:1;z-index:2}14.107%{opacity:1;z-index:2}14.286%{opacity:1;z-index:1}17.5%{opacity:1;z-index:1}17.571%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="7"].is-live .rot-slide { animation-name: rot-7; animation-duration: 28s; }
@keyframes rot-8{0%{opacity:0;z-index:2}2.812%{opacity:1;z-index:2}12.344%{opacity:1;z-index:2}12.5%{opacity:1;z-index:1}15.313%{opacity:1;z-index:1}15.375%{opacity:0;z-index:1}100%{opacity:0;z-index:1}}
.rot[data-n="8"].is-live .rot-slide { animation-name: rot-8; animation-duration: 32s; }
/* rot-generated:end */
@media (prefers-reduced-motion: reduce) {
  .rot.is-live .rot-slide { animation: none; opacity: 0; }
  .rot.is-live .rot-slide:first-child { opacity: 1; }
  .rot-pause { display: none; }
}
@media (min-width: 480px) {
  .rot { aspect-ratio: 21 / 9; }
  .rot-media { inset: 0 0 0 auto; width: min(560px, 52%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .rot-slide { object-position: var(--pw, 50% 50%); }
  .rot-title { font-size: 26px; }
  .rot-copy { left: 20px; right: 20px; bottom: 16px; }
  .rot::after { background: linear-gradient(to right, rgba(8, 8, 10, 0.7) 0, rgba(8, 8, 10, 0.35) 45%, rgba(8, 8, 10, 0) 70%), linear-gradient(to top, rgba(8, 8, 10, 0.97) 0, rgba(8, 8, 10, 0.9) 32%, rgba(8, 8, 10, 0.5) 55%, rgba(8, 8, 10, 0) 78%); }
}
@media (min-width: 801px) {
  .rot { aspect-ratio: auto; height: 300px; }
  /* Centred in the dark half, like the Home and Optimus heroes (phones keep the text under the photo). */
  .rot-copy { left: 28px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: min(500px, 44%); }
  .rot-title { font-size: 34px; }
  .rot .rot-count { font-size: 17px; }
  .rot-credit { left: auto; top: auto; bottom: 14px; right: 16px; }
  .rot-pause { top: 14px; right: 14px; }
  /* Split and fade (GDO hero-split-fade): the whole still at its natural 1.8:1 on the right of a dark panel, its left 38%
     eased into the panel colour. 540px = 300px banner x 1.8. Between 801 and 900px the box is capped at 60% of the banner
     (a few % trimmed off the sides, never the top or bottom) so the copy keeps its room. No scrim: the copy sits on the
     panel, and the panel stays dark in light mode too. Below 801px nothing here applies. */
  .rot { background: var(--rot-panel, #120d0e); --rot-panel: #120d0e; }
  .rot-media { inset: 0 0 0 auto; width: min(540px, 60%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,0.009) 3.8%, rgba(0,0,0,0.058) 7.6%, rgba(0,0,0,0.163) 11.4%, rgba(0,0,0,0.317) 15.2%, rgba(0,0,0,0.5) 19%, rgba(0,0,0,0.683) 22.8%, rgba(0,0,0,0.837) 26.6%, rgba(0,0,0,0.942) 30.4%, rgba(0,0,0,0.991) 34.2%, rgba(0,0,0,1) 38%, #000 100%);
            mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,0.009) 3.8%, rgba(0,0,0,0.058) 7.6%, rgba(0,0,0,0.163) 11.4%, rgba(0,0,0,0.317) 15.2%, rgba(0,0,0,0.5) 19%, rgba(0,0,0,0.683) 22.8%, rgba(0,0,0,0.837) 26.6%, rgba(0,0,0,0.942) 30.4%, rgba(0,0,0,0.991) 34.2%, rgba(0,0,0,1) 38%, #000 100%); }
  .rot-slide { object-position: 50% 50%; }
  .rot::after { background: none; }
}

/* ---------- An earlier version on its own page / in the sheet ---------- */
.e-current { margin: 0 0 12px; font-size: 14px; }
.e-current a { color: var(--link-soft, #AEAEB2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.e-current-name { font-weight: 400; color: var(--muted); }
.e-version-label { margin: 2px 0 6px; }
.version[data-href] { cursor: pointer; }
.version .e-name a.version-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-decoration-thickness: 1px; text-underline-offset: 4px; }
html.theme-light .version .e-name a.version-link { text-decoration-color: rgba(0, 0, 0, 0.3); }
.version .e-name a.version-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- Out of stock when it left: the line is a button for its source ---------- */
.e-when { margin: 12px 0 8px; }
.e-when > summary { cursor: pointer; list-style: none; display: block; margin: 0 !important; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.e-when > summary::-webkit-details-marker { display: none; }
.e-when > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.e-when .e-when-src { margin: 6px 0 0 !important; }
.e-when a, .when-pop .when-links a { color: inherit; text-decoration: underline; }

/* Menu and Past Items on desktop: a 1240px column (was 1120), still 3 across, so tiles go 364 -> 404px. Phones and every
   other page keep today's widths. The nav, hero and footer follow the column; the hero keeps its 300px height. The
   Past Items date line is 11px (it was 9.3px). Gap and name size are unchanged. */
@media (min-width: 801px) {
  body[data-page="menu"] .top, body[data-page="menu"] .nav, body[data-page="menu"] main, body[data-page="menu"] .foot,
  body[data-page="off"] .top, body[data-page="off"] .nav, body[data-page="off"] main, body[data-page="off"] .foot,
  body[data-page="news"] .top, body[data-page="news"] .nav, body[data-page="news"] main, body[data-page="news"] .foot {
    width: min(1240px, calc(100% - 32px));
  }
  body[data-page="menu"] .tile-line, body[data-page="off"] .tile-line { font-size: 11px; }
}

/* Scroll arrows for horizontal rails (Drive-in "Coming up", Optimus calendar): mouse and trackpad devices only. Phones swipe. */
.rail { position: relative; }
.rail-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rail-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; padding: 0; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; }
  .rail-arrow[hidden] { display: none; }
  .rail-arrow:hover { transform: scale(1.06); }
  .rail-arrow:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
  .rail-prev { left: 8px; }
  .rail-next { right: 8px; }
}

/* "Show merch / Hide merch" lives with the page content, not in the tab row. */
.page-tools { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.page-tools #merch-toggle { background: var(--pill); height: 32px; font-size: 14px; }

/* Desktop: the tab row and the dark-mode toggle share one fixed 1240px box on every page, so the tabs never move between pages.
   Page content widths are unchanged. Phones keep their own rules. */
@media (min-width: 801px) {
  .nav-fade .nav, .optimus-page .nav-fade .nav, .nav-fade .nav-tools {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }
  .optimus-page .nav-fade { padding-left: 0; padding-right: 0; }
}

/* The featured card shows Tesla's wide (1200x610) art whole: the picture sets the card's height, nothing is cropped top or bottom.
   A title with no wide file keeps the old thumbnail crop above. */
.di-hero-media.is-wide, .rot + .di .di-hero-media.is-wide { aspect-ratio: 1200 / 610; min-height: 0; }
.di-hero-media.is-wide picture, .di-hero-media.is-wide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.di-hero-media.is-wide img { object-fit: cover; }
@media (min-width: 560px) and (max-width: 759px) {
  .di-hero:has(.is-wide), .rot + .di .di-hero:has(.is-wide) { grid-template-columns: minmax(0, 1fr); }
}

/* Sources close the version's one meta line: small gray, links stay links. */
.e-meta .e-srcs, .e-meta .e-srcs a { font-size: 12px; color: var(--muted); }

/* A photo and its video are two tiles side by side; they wrap under each other only when the row is too narrow. */
.e-media { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.e-media > .e-photo, .entry-card .e-media > .e-photo { margin: 0; }

/* Event tabs on Past Items: a short line under a tile's name */
.tile-event-note { margin: -4px 0 0; padding: 0 10px 12px; background: var(--tile); color: var(--muted); font-size: 12px; line-height: 1.35; text-align: center; }
/* Past Items year tabs: All / 2025 / 2026, and under a selected year a tray of that year's event pills.
   The tray hugs its pills (never full width), wraps on a phone, and a notch points up at the selected year. */
.filters.yt-years { margin: 0 0 8px; }
.yt-tray { position: relative; display: inline-flex; width: fit-content; max-width: 100%; box-sizing: border-box; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 6px;
  border-radius: 14px; background: color-mix(in srgb, var(--tab-on) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab) 14%, transparent); }
.yt-tray::before { content: ""; position: absolute; top: -6px; left: var(--caret, 40px); width: 12px; height: 12px;
  transform: rotate(45deg); background: inherit; border-radius: 2px;
  box-shadow: -1px -1px 0 0 color-mix(in srgb, var(--tab) 14%, transparent); }
.yt-tray a { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 13.5px; color: var(--tab); text-decoration: none; white-space: nowrap; }
.yt-tray a[aria-current="true"] { color: var(--tab-on-text); background: var(--tab-on); font-weight: 600; box-shadow: var(--tab-shadow); }
/* The tray slides down and fades in when a year is picked (not on a deep link's first load; app sets .yt-anim). */
@keyframes yt-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.yt-tray.yt-anim { animation: yt-open 220ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .yt-tray.yt-anim { animation: none; } }
.yt-tray a:focus-visible, .yt-years a:focus-visible { outline: 2px solid var(--tab-on-text); outline-offset: 2px; }

/* Collapsibles slide open and closed from app.js (height 250ms ease-out, content fades). Only the chevrons are CSS. */
@media (prefers-reduced-motion: reduce) {
  .di-chev, .chev { transition: none; }
}
.e-printed { margin-top: 8px !important; }
/* Credit-first caption ("Photo: NAME on YouTube · May 9, 2026"): the date reads like the credit; a longer note wraps under the photo */
.photo-credit + .photo-label { color: #8E8E93; font-size: 13px; font-weight: 400; }
html:not(.theme-light) .photo-credit + .photo-label { color: #8E8E93; }
html.theme-light .photo-credit + .photo-label { color: var(--muted); }

/* An option with a one-line description (the Dia de los Muertos Beverages card lists its drinks this way). */
.choice-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.choices li:target { background: var(--card); border-radius: 8px; box-shadow: -8px 0 0 var(--card), 8px 0 0 var(--card); }

/* Diner Dash 2026: the sharp square art sits over a blurred copy of itself; on desktop the left fade ends before the square so its edge stays hard. */
@media (min-width: 801px) {
  .rot-media:has(img[src*="diner-dash-2026-art"]) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%); mask-image: linear-gradient(to right, transparent 0, #000 20%); }
}

/* dineLA logo on a phone: 80% size, centred in the top part of the banner, clear of the title gradient and credit pill. */
@media (max-width: 479px) {
  .rot-slide[src*="dinela-logo"] { transform: scale(.8) translateY(-6%); transform-origin: 50% 50%; }
  /* dineLA on a phone: the title gradient stops below the logo so it keeps the desktop's bright red. */
  .rot:has(img[src*="dinela-logo"])::after { background: linear-gradient(to top, rgba(8,8,10,.98) 0, rgba(8,8,10,.9) 26%, rgba(8,8,10,.45) 38%, rgba(8,8,10,0) 46%); }
  /* Christmas on a phone: the photo fills the whole banner (Grinch, Santa and the lit cars under the title gradient). */
  .rot-media:has(img[src*="christmas-holiday-market-night"]) { inset: 0; -webkit-mask-image: none; mask-image: none; }
}

/* A thin light strip baked into a source photo's edge (derivatives.edge_trim)
   is clipped off on the page; the file and its colors are untouched. The
   inset keeps the photo's corner radius where the frame puts it on the img. */
.e-frame--trim img {
  clip-path: inset(var(--trim-t, 0) var(--trim-r, 0) var(--trim-b, 0) var(--trim-l, 0) round var(--trim-round, 0px));
}
.item-page .e-frame--trim { --trim-round: 16px; }
dialog.sheet .item-media .e-frame--trim { --trim-round: var(--photo-r, 12px); }
/* ---- presence.css ---- */
/* Site-wide "stage" hero system. Dark and light.
   Type on the hero stays light over photos. The fade and lifted card
   follow --bg / --card so there is no seam in either theme. */

:root {
  --lift: 132px;
  --fade: 340px;
  --col: min(1120px, calc(100% - 32px));
  --ease-fade: linear-gradient(to bottom, rgba(17,17,19,0) 0%, rgba(17,17,19,0.013) 8%, rgba(17,17,19,0.049) 15%, rgba(17,17,19,0.104) 22%, rgba(17,17,19,0.175) 29%, rgba(17,17,19,0.259) 35%, rgba(17,17,19,0.352) 41%, rgba(17,17,19,0.45) 47%, rgba(17,17,19,0.55) 53%, rgba(17,17,19,0.648) 59%, rgba(17,17,19,0.741) 65%, rgba(17,17,19,0.825) 71%, rgba(17,17,19,0.896) 78%, rgba(17,17,19,0.951) 85%, rgba(17,17,19,0.987) 92%, rgba(17,17,19,1) 100%);
}
html.theme-light {
  --ease-fade: linear-gradient(to bottom, rgba(236,236,238,0) 0%, rgba(236,236,238,0.013) 8%, rgba(236,236,238,0.049) 15%, rgba(236,236,238,0.104) 22%, rgba(236,236,238,0.175) 29%, rgba(236,236,238,0.259) 35%, rgba(236,236,238,0.352) 41%, rgba(236,236,238,0.45) 47%, rgba(236,236,238,0.55) 53%, rgba(236,236,238,0.648) 59%, rgba(236,236,238,0.741) 65%, rgba(236,236,238,0.825) 71%, rgba(236,236,238,0.896) 78%, rgba(236,236,238,0.951) 85%, rgba(236,236,238,0.987) 92%, rgba(236,236,238,1) 100%);
}
@media (max-width: 700px) {
  :root { --lift: 28px; --fade: 200px; }
}
.page-body { width: var(--col); margin: 0 auto; padding: 0 0 72px; position: relative; z-index: 5; }

/* Heroes are full-bleed. Only .stage-inner and .page-body use --col. */
body:has(.stage) main {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 801px) {
  body[data-page="menu"] main,
  body[data-page="off"] main,
  body[data-page="news"] main {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ----- STAGE ----- */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--chrome, 52px));
  background: var(--bg);
  color: #fff;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
/* Do not let the older .a-hero height / min-height shrink a 16:9 stage's used width. */
.a-hero.stage,
.home-page .a-hero.stage,
.optimus-page .a-hero.stage {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
}
.stage-media { position: absolute; inset: 0; z-index: 0; }
.stage-media > img,
.stage-media > picture,
.stage-media > picture img,
.stage-media > video {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.stage-media > picture { height: 100%; }
.stage-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--fade); z-index: 1; pointer-events: none; background: var(--ease-fade); }
.stage-inner {
  position: relative; z-index: 2;
  width: var(--col); margin: 0 auto; height: 100%;
  display: flex; align-items: center;
  padding: calc(var(--chrome, 52px) + 28px) 0 calc(var(--lift) + 40px);
}
.stage-copy { max-width: 540px; display: grid; gap: 16px; justify-items: start; }
.stage .kicker,
.stage .a-kicker {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: 8px;
}
.stage .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #e8434a; box-shadow: 0 0 0 4px rgba(232,67,74,.18); }
.stage h1 {
  margin: 0; font-size: 54px; font-weight: 500; line-height: 1.04; letter-spacing: -.035em;
  color: #fff; text-wrap: balance;
}
.stage .lede, .stage .a-lede, .stage .a-quote {
  margin: -2px 0 0; font-size: 19px; line-height: 1.45; color: rgba(255,255,255,.9); text-wrap: pretty;
}
.stage .lede q, .stage .a-quote { quotes: "“" "”"; }
.stage .lede a, .stage .meta a, .stage .a-follow a { color: #fff; }
.stage .facts, .stage .a-facts {
  display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 2px 0 0; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.2); width: 100%;
}
.stage .facts dt, .stage .a-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.stage .facts dd, .stage .a-facts dd { margin: 4px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.stage .meta, .stage .a-follow {
  margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.74); text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.stage .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.stage .btn, .stage .btn.btn-solid, .stage a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: #111; background: #fff; border: 0;
  box-shadow: none;
}
.stage .btn-out, .stage a.btn-out {
  background: rgba(0,0,0,.18); color: #fff; border: 1px solid rgba(255,255,255,.6);
}
.stage .pill-status, .stage .pill {
  display: inline-flex; align-items: center; gap: 8px; color: #d6d6d6;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 13px; font-weight: 500;
  background: transparent;
}
.stage .pill-status i, .stage .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stage .pill.on, .stage .pill-status.on { color: #9fdeaa; }
.stage .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.stage .chips a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
}
.stage .chips a[aria-current="true"] { background: #fff; color: #111; border-color: #fff; }

.stage.is-wide { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: none; }
.stage.is-wide .stage-media > img,
.stage.is-wide .stage-media > video,
.stage.is-wide .stage-media > picture img,
.stage.is-home .a-reel {
  object-fit: cover;
  object-position: center center;
}
.stage.is-wide .stage-scrim, .stage.is-wide .a-scrim {
  background:
    linear-gradient(90deg, rgba(17,17,19,.9) 0%, rgba(17,17,19,.74) 28%, rgba(17,17,19,.26) 48%, rgba(17,17,19,0) 64%),
    linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 150px);
}

.stage.is-poster {
  width: 100%;
  max-width: none;
  height: 760px;
  overflow: hidden;
}
.stage.is-poster .stage-media .ambient {
  position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px);
  object-fit: cover; filter: blur(56px) brightness(.42) saturate(1.05); transform: scale(1.08);
}
.stage.is-poster .poster {
  position: absolute; z-index: 2;
  top: calc(var(--chrome, 52px) + 8px); bottom: calc(var(--lift) + 22px);
  right: max(16px, calc((100% - 1120px) / 2 + 24px));
  height: auto; width: auto; aspect-ratio: var(--ar, 2 / 3);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.stage.is-poster .poster img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.stage.is-poster .stage-scrim {
  background: linear-gradient(90deg, rgba(17,17,19,.7) 0%, rgba(17,17,19,.35) 40%, rgba(17,17,19,0) 60%);
}
.stage.is-poster .stage-inner { align-items: flex-start; padding-top: calc(var(--chrome, 52px) + 92px); }

.stage.is-wall {
  width: 100%;
  max-width: none;
  height: calc(100vw / 8 * 13 / 18 * 5 + 8px);
  min-height: 640px;
  overflow: hidden;
}
.stage .wall {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(8, 1fr); grid-auto-rows: calc(100vw / 8 * 13 / 18);
  gap: 2px; background: #0b0b0c; align-content: start;
}
.stage .wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.is-wall .stage-scrim {
  background:
    linear-gradient(90deg, rgba(17,17,19,.94) 0%, rgba(17,17,19,.86) 30%, rgba(17,17,19,.35) 56%, rgba(17,17,19,.08) 74%),
    linear-gradient(to bottom, rgba(8,8,10,.6) 0, rgba(8,8,10,0) 140px);
}

.stage.is-map { height: 760px; width: 100%; background: #262a2e; }
.stage.is-map .stage-media { z-index: 0; }
.stage.is-map .stage-media #sourcing-map,
.stage.is-map .sourcing-map { width: 100%; height: 100%; }
/* Text sits on the left gradient scrim; pins stay in the clear right ~55%. */
.stage.is-map .stage-scrim {
  background:
    linear-gradient(90deg, rgba(17,17,19,.72) 0%, rgba(17,17,19,.45) 30%, rgba(17,17,19,0) 46%),
    linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 130px);
}
.stage.is-map .stage-inner { pointer-events: none; padding-bottom: calc(var(--lift) + 40px); }
.stage.is-map .stage-copy {
  pointer-events: auto;
  max-width: 540px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Home keeps the live poster + reel */
.stage.is-home .stage-media > picture,
.stage.is-home .a-poster { width: 100%; height: 100%; }
.stage.is-home .a-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.stage.is-home .reel-toggle { z-index: 3; }

/* ----- LIFT ----- */
.lift {
  position: relative; z-index: 6;
  margin: calc(-1 * var(--lift)) 0 40px;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.18), inset 0 0 0 1px var(--line);
  color: var(--text);
}
html:not(.theme-light) .lift {
  background: rgba(30,30,33,.9);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.1);
}
.lift-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.lift-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html:not(.theme-light) .lift-title { color: rgba(255,255,255,.82); }
.lift-link { color: var(--muted); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.lift-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }

.mini { display: block; color: inherit; text-decoration: none; min-width: 0; }
.mini-photo { display: block; position: relative; aspect-ratio: 18 / 13; border-radius: 12px; overflow: hidden; background: var(--photo, #111113); }
.mini-photo img { width: 100%; height: 100%; object-fit: contain; }
.mini-photo .chip {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: rgba(0,0,0,.72); color: #fff;
  z-index: 2;
}
.mini-photo .chip.hot { background: var(--hot, #D13C43); }
.mini-photo .chip.recipe {
  background: rgba(20, 20, 22, 0.35);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mini-name { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--strong); }
.mini-line { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.mini.is-wide .mini-photo { aspect-ratio: 1200 / 610; }
.mini.is-wide .mini-photo img { object-fit: cover; }

/* Right now */
.lift.now dl, .now-strip.lift dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.lift.now dt, .now-strip.lift dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lift.now dd, .now-strip.lift dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--strong); }
.lift.now dd a { color: var(--strong); }
.lift.now dd small { font-size: 14px; color: var(--muted); font-weight: 400; }
.lift.now .out-list { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lift.now .out-list a, .lift.now .out-list b { color: var(--text); font-weight: 500; }

/* News lift */
.news-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.news-pair .news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.news-pair .news-card img { width: 100%; height: auto; border-radius: 12px; object-fit: contain; }
.sub-card { border-left: 1px solid var(--line); padding-left: 18px; display: grid; gap: 10px; align-content: center; }
.sub-card p { margin: 0; font-size: 15px; color: var(--text); }
.sub-card .btn { justify-self: start; height: 40px; }

/* Drive-in */
.di-strip { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
/* Keyboard focus on the scrollable strip (audit F9).
   The ring cannot live on .di-strip itself: on phone the strip has
   mask-image (which masks the whole painted box, including outline)
   and overflow-x: auto (which clips an outward box-shadow or a
   ::after). The ring is painted on an unmasked, non-overflowing
   wrapper, 4px outside the posters, 2px in --text, 16px radius
   (12px .mini-photo radius + 4px gap). pointer-events: none so
   it does not change hit-testing. Unfocused layout is unchanged. */
.di-strip-shell { position: relative; }
.di-strip:focus-visible { outline: none; }
.di-strip-shell:has(.di-strip:focus-visible)::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: -6px; /* 4px gap + 2px ring, all outside the strip */
  border: 2px solid var(--text);
  border-radius: 18px; /* outer; inner radius 16px = 12px card + 4px gap */
  pointer-events: none;
  z-index: 1;
}
.di-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.di-day { margin: 0 0 10px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.di-day summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.di-day summary::-webkit-details-marker { display: none; }
.di-day-name { font-size: 17px; font-weight: 500; color: var(--strong); white-space: nowrap; }
.di-day-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.di-prev { margin-left: auto; display: flex; gap: 6px; }
.di-prev img { height: 34px; width: auto; border-radius: 5px; display: block; background: var(--photo, #0d0d0e); object-fit: contain; }
.di-chev { color: var(--muted); flex: 0 0 auto; transition: transform .2s; }
.di-day[open] .di-chev { transform: rotate(180deg); margin-left: auto; }
.di-day[open] .di-prev { display: none; }
.di-day[open] summary { justify-content: flex-start; }
/* Live day lists use .di-line (style.css) as the row grid. Do not make
   .di-rows a 2-column / --rows track: without --rows every showing piles
   into one overlapping line and titles wrap one word per column. */

/* Suppliers */
.sup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }

@media (max-width: 700px) {
  .stage h1 { font-size: 33px; line-height: 1.07; }
  .stage .lede, .stage .a-lede, .stage .a-quote { font-size: 16px; }
  .stage .facts, .stage .a-facts { gap: 12px 26px; padding-top: 12px; }
  .stage .facts dd, .stage .a-facts dd { font-size: 21px; }
  .stage-copy { gap: 12px; max-width: none; width: 100%; }
  .stage .btns { width: 100%; }
  .stage .btn, .stage .btn.btn-solid, .stage a.btn {
    flex: 1 1 calc(50% - 6px);
    min-width: min(100%, 160px);
    padding: 0 16px;
    white-space: nowrap;
  }
  .stage .meta, .stage .a-follow { font-size: 12px; }
  .stage-inner { padding: 0 0 calc(var(--lift) + 18px); align-items: flex-end; }

  .stage.is-wide { aspect-ratio: auto; }
  .stage.is-wide .stage-media { position: relative; inset: auto; margin-top: var(--chrome, 52px); height: auto; }
  .stage.is-wide .stage-media > img,
  .stage.is-wide .stage-media > video,
  .stage.is-wide .stage-media > picture img { height: auto; }
  .stage.is-wide .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.6) 0, rgba(8,8,10,0) 60px);
  }
  .stage.is-wide .stage-inner { margin-top: -28px; }
  .stage.is-wide .stage-media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
    background: var(--ease-fade);
  }

  .stage.is-home .stage-media { position: absolute; inset: 0; margin-top: 0; height: auto; }
  .stage.is-home { aspect-ratio: 720 / 1280; }
  .stage.is-home .stage-media > img,
  .stage.is-home .stage-media > video,
  .stage.is-home .stage-media > picture img { height: 100%; object-fit: contain; }
  .stage.is-home .stage-media::after { display: none; }
  .stage.is-home .stage-scrim {
    background:
      linear-gradient(to bottom, rgba(8,8,10,.5) 0, rgba(8,8,10,0) 200px),
      linear-gradient(to top, rgba(17,17,19,.9) 0, rgba(17,17,19,.9) 30%, rgba(17,17,19,.35) 50%, rgba(17,17,19,0) 66%);
  }
  html.theme-light .stage.is-home .stage-scrim {
    background:
      linear-gradient(to bottom, rgba(8,8,10,.5) 0, rgba(8,8,10,0) 200px),
      linear-gradient(to top, rgba(236,236,238,.92) 0, rgba(236,236,238,.85) 30%, rgba(17,17,19,.35) 50%, rgba(17,17,19,0) 66%);
  }
  .stage.is-home .stage-inner { margin-top: 0; height: 100%; }

  .stage.is-poster { height: auto; }
  .stage.is-poster .stage-media { position: absolute; inset: 0; }
  .stage.is-poster .poster {
    position: relative; display: block; margin: calc(var(--chrome, 52px) + 4px) auto 0;
    top: auto; bottom: auto; right: auto;
    height: 360px; width: auto; border-radius: 16px;
  }
  .stage.is-poster .stage-scrim { background: none; }
  .stage.is-poster .stage-fade { height: 62%; }
  .stage.is-poster .stage-inner { padding-top: 18px; height: auto; }

  .stage.is-wall { height: auto; min-height: 0; }
  .stage .wall { position: relative; grid-template-columns: repeat(3, 1fr); grid-auto-rows: calc(100vw / 3 * 13 / 18); margin-top: 0; height: calc(100vw / 3 * 13 / 18 * 3 + 4px); overflow: hidden; }
  .stage.is-wall .stage-media { position: relative; }
  .stage.is-wall .stage-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: var(--ease-fade); }
  .stage.is-wall .stage-scrim { background: linear-gradient(to bottom, rgba(8,8,10,.7) 0, rgba(8,8,10,0) 90px); }
  .stage.is-wall .stage-inner { position: relative; margin-top: -26px; }

  .a-hero.stage,
  .home-page .a-hero.stage,
  .optimus-page .a-hero.stage,
  .stage.is-wide {
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }
  .stage.is-map { height: auto; min-height: 0; background: var(--bg); }
  .stage.is-map .stage-media { position: relative; height: 410px; }
  .stage.is-map .stage-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: var(--ease-fade); z-index: 1; pointer-events: none; }
  .stage.is-map .stage-scrim { background: linear-gradient(to bottom, rgba(8,8,10,.6) 0, rgba(8,8,10,0) 80px); }
  .stage.is-map .stage-inner { position: relative; margin-top: -64px; }

  .lift { padding: 14px 14px 16px; border-radius: 18px; margin-bottom: 32px; }
  .lift-row { grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .lift-row::-webkit-scrollbar { display: none; }
  .mini-name { font-size: 13px; }
  .di-strip { grid-template-columns: 78% 46% 46% 46%; overflow-x: auto; scrollbar-width: none; margin-right: -14px; }
  .di-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .di-cards .mini:nth-child(3) { grid-column: 1 / -1; }
  .di-day summary { padding: 13px 14px; gap: 10px; }
  .di-week .di-rows { grid-template-columns: minmax(0, 1fr); padding: 0 14px 6px; grid-template-rows: none; grid-auto-flow: row; }
  .di-week .di-row { grid-template-columns: 58px minmax(0, 1fr) 96px; gap: 10px; }
  .di-week .di-thumb, .di-week .di-thumb img, .di-week .di-thumb.is-none { width: 96px; }
  .di-prev img { height: 30px; }
  .di-prev img:nth-child(n+2) { display: none; }
  .sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .news-pair { grid-template-columns: minmax(0, 1fr); }
  .news-pair .news-card { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .sub-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .lift.now dl, .now-strip.lift dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lift.now dl > div:first-child, .now-strip.lift dl > div:first-child { grid-column: 1 / -1; }
  .lift.now dd, .now-strip.lift dd { font-size: 17px; }
}

.stage.is-map .sourcing-map-frame {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  border: 0; border-radius: 0; overflow: hidden;
}
.stage.is-map .map-extent-toggle,
.stage.is-map .map-past-toggle {
  top: calc(var(--chrome, 52px) + 12px);
}
/* Zoom sits below the sticky nav, aligned to the content column's right edge (or 16px). */
.stage.is-map .leaflet-top.leaflet-right {
  top: calc(var(--chrome, 52px) + 12px);
  right: max(16px, calc((100% - 1120px) / 2));
}
.stage.is-map .leaflet-right .leaflet-control { margin-right: 0; }
.stage.is-map .leaflet-top .leaflet-control { margin-top: 0; }
.stage.is-map .leaflet-bottom.leaflet-right {
  right: max(16px, calc((100% - 1120px) / 2));
  bottom: calc(var(--lift) + 16px);
}
.stage.is-map .leaflet-bottom .leaflet-control { margin-bottom: 0; }
/* The legend's 8px diner key was painting at ~x=12, y=731, peeking out
   from under the lifted card. The mock has no on-map legend. */
.stage.is-map .map-legend { display: none; }
.stage.is-map .map-outside,
.stage.is-map .map-summary {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.stage.is-map .stage-inner {
  padding-top: calc(var(--chrome, 52px) + 64px);
  align-items: flex-start;
}
/* Don't let 100vw hero math or pulled art spill the page sideways. */
.stage.is-wall .wall { width: 100%; max-width: 100%; }
.stage.is-poster .ambient { max-width: none; }
html:has(.stage) { overflow-x: clip; }

.stage.is-map > .map-extent-toggle,
.stage.is-map > .map-past-toggle,
.stage.is-map > .map-legend {
  z-index: 1100;
}
.stage.is-map #sourcing-map .leaflet-control-attribution { display:none; }
/* Short landscape: keep the title over the still, not stacked below a full-width photo. */
@media (max-height: 520px) {
  .stage.is-wide {
    max-height: 100vh;
    height: 100vh;
    aspect-ratio: auto;
    overflow: hidden;
  }
  .stage.is-wide .stage-media {
    position: absolute;
    inset: 0;
    margin-top: 0;
    height: 100%;
  }
  .stage.is-wide .stage-media > img,
  .stage.is-wide .stage-media > video,
  .stage.is-wide .stage-media > picture img,
  .stage.is-home .a-reel {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .stage.is-wide .stage-media::after { display: none; }
  .stage.is-wide .stage-inner {
    margin-top: 0;
    height: 100%;
    position: relative;
    padding: calc(var(--chrome, 52px) + 4px) 0 4px;
    align-items: center;
  }
  .stage.is-wide h1 { font-size: 22px; line-height: 1.15; }
  .stage.is-wide .lede, .stage.is-wide .meta { display: none; }
  .stage.is-wide .stage-copy { gap: 8px; }
}

@media (min-width: 701px) {
  .sup-grid .tile { margin: 0; }
  .sup-grid .tile-photo { aspect-ratio: 18 / 13; }
}

/* Mid desktop: a 16:9 stage can be shorter than the lift (1024×9/16=576), so the
   overlap card covers the .meta credit. Raise the floor; cover so Drive-in (also
   .is-wide) still fills the taller box without letterboxing the still. */
@media (min-width:701px) and (max-width:1279px) {
  .stage.is-wide,
  .a-hero.stage.is-wide,
  .home-page .a-hero.stage,
  .optimus-page .a-hero.stage { min-height:720px; }
  .stage.is-wide .stage-media > img, .stage.is-wide .stage-media > video,
  .stage.is-wide .stage-media > picture img, .stage.is-home .a-reel { object-fit:cover; }
}
.news-pair .news-card { align-items: start; }
.news-pair .news-copy { display: grid; gap: 6px; min-width: 0; align-content: center; }
.news-pair .news-copy h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.25; }
.news-pair .news-cover img { width: 100%; height: auto; border-radius: 12px; display: block; object-fit: contain; }

/* Frames match Tesla's 1200×610 wide art (~1.97:1), not the old 540×220 crop. */
.di-week .di-thumb {
  width: 132px;
  height: auto;
  aspect-ratio: 1200 / 610;
  overflow: hidden;
  background: var(--photo, #0d0d0e);
  border-radius: 6px;
  justify-self: end;
}
.di-week .di-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.mini.is-wide .mini-photo, .di-week .di-thumb { aspect-ratio: 1200 / 610; }
.mini.is-wide .mini-photo img, .di-week .di-thumb img { width:100%; height:100%; object-fit:cover; }
.di-week .di-day-sum {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-template-columns: none;
  min-height: 0;
  padding: 14px 18px;
}
.di-week .di-rows {
  list-style: none;
  margin: 0;
  padding: 0 18px 8px;
  display: grid;
  /* One column until 1024px: a 2-column row at mid widths left only
     ~100–200px for titles once the thumb sits in its real column. */
  grid-template-columns: minmax(0, 1fr);
  column-gap: 32px;
  grid-auto-flow: row;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
@media (min-width: 1024px) {
  .di-week .di-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows, 1), auto);
    grid-auto-flow: column;
  }
}
.di-week .di-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 132px;
  grid-template-areas: none;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
/* Pin time / title / thumb to the three tracks. style.css places .di-thumb
   in column 4 (the old 5-column .di-line). Without this reset, mid-width
   2-column rows grow a fourth implicit track and titles collapse. */
.di-week .di-row > time,
.di-week .di-row .di-name,
.di-week .di-row .di-thumb {
  grid-area: auto;
}
.di-week .di-row > time { grid-column: 1; }
.di-week .di-row .di-name { grid-column: 2; min-width: 0; }
.di-week .di-row .di-thumb { grid-column: 3; }
.di-week .di-row:not(.has-art) .di-name { grid-column: 2; }
.di-week .di-row time { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.di-week .di-name { min-width: 0; display: grid; }
.di-week .di-name b { font-weight: 500; color: var(--strong); font-size: 15px; line-height: 1.25; }
.di-week .di-ep { color: var(--muted); font-size: 13px; line-height: 1.3; }
.di-week .di-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.di-empty { margin: 24px 0 0; color: var(--muted); font-size: 16px; }


/* Past Items event / opening-day sub-pages: same stage hero and 1120px
   column as the main /past-items page. */

/* Event pages have no "Last to leave" lift card, but they keep the same
   --lift (132px desktop / 28px phone) so the fade matches main. The
   category column pulls up into that reserved space. */
body:has(.stage.is-event) .page-body {
  margin-top: calc(-1 * var(--lift));
}
/* Desktop: event pages have no "Last to leave" lift card, so pull the
   category column up into the reserved --lift space and keep a ~71px
   credit-to-content gap. Text is top-aligned (see the shared Past Items
   block below) so extra lines grow down, inside the padding-bottom. */
@media (min-width: 701px) {
  body:has(.stage.is-event) .page-body {
    margin-top: calc(-1 * (var(--lift) + 56px));
  }
}

/* Single official photo (cover) or logo (contain) when there are too
   few official food photos for an 8-across mosaic. Same typography
   and scrim as .stage.is-wall. Year 1 keeps its photo rotation in
   this same single-photo frame. */
.stage.is-single {
  width: 100%;
  max-width: none;
  height: calc(100vw / 8 * 13 / 18 * 5 + 8px);
  min-height: 640px;
  overflow: hidden;
  background: #0b0b0c;
}
.stage.is-single .stage-media img.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.stage.is-single.is-logo img.stage-photo {
  inset: auto;
  top: 50%;
  right: max(32px, calc((100% - 1120px) / 2));
  width: min(420px, 38vw);
  height: auto;
  max-height: 52%;
  transform: translateY(-42%);
  object-fit: contain;
  object-position: center;
}
.stage.is-single .stage-scrim {
  background:
    linear-gradient(90deg, rgba(17,17,19,.94) 0%, rgba(17,17,19,.86) 30%, rgba(17,17,19,.35) 56%, rgba(17,17,19,.08) 74%),
    linear-gradient(to bottom, rgba(8,8,10,.6) 0, rgba(8,8,10,0) 140px);
}
.stage.is-single.is-logo .stage-scrim {
  background:
    linear-gradient(90deg, rgba(17,17,19,.94) 0%, rgba(17,17,19,.82) 34%, rgba(17,17,19,.2) 55%, rgba(17,17,19,0) 68%),
    linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 140px);
}

/* Year 1: rotate the existing Tesla stills inside the single-photo frame.
   Credit lives in the hero footer, not a rot-credit pill. */
.stage.is-single .stage-rotate,
.stage.is-single .rot.stage-rotate {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  background: #0b0b0c;
  isolation: auto;
}
.stage.is-single .stage-rotate .rot-media {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
}
.stage.is-single .stage-rotate .rot-slide {
  object-fit: cover;
  object-position: var(--pw, 50% 50%);
}
.stage.is-single .stage-rotate::after,
.stage.is-single .stage-rotate .rot-credit,
.stage.is-single .stage-rotate .rot-copy { display: none; }
.stage.is-single .stage-rotate .rot-pause {
  z-index: 3;
  top: calc(var(--chrome, 52px) + 10px);
  right: 16px;
}

/* Event pills share the hero chip style; the boxed .yt-tray goes away.
   Keep them on one line: they may extend past the 540px copy (full --col)
   on desktop; on phone they scroll horizontally instead of wrapping. */
.stage .chips.event-chips {
  margin-top: -6px;
  flex-wrap: nowrap;
  max-width: none;
  width: var(--col);
}
.stage .chips.event-chips a { flex-shrink: 0; }

@media (max-width: 700px) {
  .stage.is-event .chips.event-chips {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .stage.is-event .chips.event-chips::-webkit-scrollbar { display: none; }
  .stage.is-single { height: auto; min-height: 0; }
  .stage.is-single .stage-media { position: relative; height: 280px; }
  .stage.is-single .stage-media::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: var(--ease-fade);
  }
  .stage.is-single .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.7) 0, rgba(8,8,10,0) 90px);
  }
  .stage.is-single .stage-inner { position: relative; margin-top: -26px; }
  .stage.is-single.is-logo .stage-media { height: 220px; background: #0b0b0c; }
  .stage.is-single.is-logo img.stage-photo {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 68%;
    max-width: 72%;
    max-height: 160px;
  }
  .stage.is-single .stage-rotate,
  .stage.is-single .rot.stage-rotate { position: absolute; inset: 0; height: 100%; }
  .stage.is-single .stage-rotate .rot-pause { top: 10px; right: 10px; }
}

/* dineLA (logo) now uses the same Menu-style poster card and the
   shared Past Items text offset as the other event heroes. The old
   per-event logo grid (height auto, text pinned to the floor) was
   removed so it cannot shift the type. */

/* Drive-in "The rest of the week" — single-column list on phone,
   with 96px thumbs. Mid widths stay one column (see the unscoped
   .di-week .di-rows rule) until 1024px, where two columns fit. */
@media (max-width: 700px) {
  .di-week .di-rows {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px 6px;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .di-week .di-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 96px;
    grid-template-areas: none;
    gap: 10px;
    align-items: center;
  }
  .di-week .di-row > time,
  .di-week .di-row .di-name,
  .di-week .di-row .di-thumb {
    grid-area: auto;
    grid-row: auto;
  }
  .di-week .di-row > time { grid-column: 1; }
  .di-week .di-row .di-name { grid-column: 2; min-width: 0; }
  .di-week .di-row .di-thumb,
  .di-week .di-thumb,
  .di-week .di-thumb img,
  .di-week .di-thumb.is-none {
    grid-column: 3;
    width: 96px;
    justify-self: end;
  }
}

/* Stage hero CTAs (Menu, Home, etc.) — padding, not 50/50.
   Restore desktop sizing (padding: 0 22px, size to content) on phone.
   If both buttons no longer fit with padding, wrap to full width.
   Never shrink the font or ellipsize. Leave Optimus stacked. */
@media (max-width: 700px) {
  .stage .btns {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .stage .btn,
  .stage .btn.btn-solid,
  .stage a.btn {
    flex: 1 0 auto;
    min-width: auto;
    max-width: 100%;
    width: auto;
    padding: 0 22px;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 15px;
    overflow: visible;
    text-overflow: unset;
  }
  .optimus-page .stage .btn,
  .optimus-page .stage a.btn,
  .optimus-page .a-hero .btn,
  body[data-page="optimus"] .stage .btn,
  body[data-page="optimus"] .stage a.btn {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ===== Light mode, phone (<=700px): hero copy over the light fade =====
   Cause: every phone hero except Home stacks the copy UNDER the photo /
   wall / poster / map, over var(--ease-fade), which ends in the light
   --bg (#ECECEE) in light mode. presence.css only has white hero type
   (.stage h1 #fff, .lede/.meta/.facts rgba(255,255,255,…), .btn-out white
   text on rgba(0,0,0,.18), chips white), with no html.theme-light override,
   so it is white-on-light. Desktop light is fine (copy sits over the photo).
   Scope: html.theme-light + max-width:700px, every .stage except .is-home
   (Home keeps the copy over the video; see below). Dark mode untouched. */
@media (max-width: 700px) {
  html.theme-light .stage:not(.is-home) .kicker,
  html.theme-light .stage:not(.is-home) .a-kicker { color: #636366; }
  html.theme-light .stage:not(.is-home) h1 { color: var(--strong); }
  html.theme-light .stage:not(.is-home) .lede,
  html.theme-light .stage:not(.is-home) .a-lede,
  html.theme-light .stage:not(.is-home) .a-quote { color: var(--text); }
  html.theme-light .stage:not(.is-home) .lede a,
  html.theme-light .stage:not(.is-home) .meta a,
  html.theme-light .stage:not(.is-home) .a-follow a { color: var(--strong); }
  html.theme-light .stage:not(.is-home) .facts,
  html.theme-light .stage:not(.is-home) .a-facts { border-top-color: rgba(0,0,0,.12); }
  html.theme-light .stage:not(.is-home) .facts dt,
  html.theme-light .stage:not(.is-home) .a-facts dt { color: #636366; }
  html.theme-light .stage:not(.is-home) .facts dd,
  html.theme-light .stage:not(.is-home) .a-facts dd { color: var(--strong); }
  html.theme-light .stage:not(.is-home) .meta,
  html.theme-light .stage:not(.is-home) .a-follow { color: #636366; text-shadow: none; }

  /* Buttons: white primary gets an edge; outline button becomes dark ink. */
  html.theme-light .stage:not(.is-home) .btn,
  html.theme-light .stage:not(.is-home) .btn.btn-solid,
  html.theme-light .stage:not(.is-home) a.btn {
    background: #fff; color: #111;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.06);
  }
  html.theme-light .stage:not(.is-home) .btn-out,
  html.theme-light .stage:not(.is-home) a.btn-out {
    background: rgba(255,255,255,.55); color: var(--strong);
    border: 1px solid rgba(0,0,0,.28); box-shadow: none;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  html.theme-light .stage:not(.is-home) .btn:focus-visible,
  html.theme-light .stage:not(.is-home) a.btn:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }

  /* Status pill (Optimus Off/On shift) and filter chips (Past Items, events). */
  html.theme-light .stage:not(.is-home) .pill-status,
  html.theme-light .stage:not(.is-home) .pill { color: #3a3a3c; border-color: rgba(0,0,0,.22); }
  html.theme-light .stage:not(.is-home) .pill.on,
  html.theme-light .stage:not(.is-home) .pill-status.on { color: #1f7a3a; }
  html.theme-light .stage:not(.is-home) .chips a {
    color: var(--text); background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1);
  }
  html.theme-light .stage:not(.is-home) .chips a[aria-current="true"] {
    background: var(--strong); color: #fff; border-color: var(--strong);
  }

  /* Logo events (dineLA, Diner Dash): the desktop 90deg dark scrim
     (.stage.is-single.is-logo .stage-scrim, 4 classes) out-ranks the phone
     top-only scrim, so a dark slab sits behind the title. Use the phone
     top-only scrim in light so the copy sits on the light fade. */
  html.theme-light .stage.is-single.is-logo .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.7) 0, rgba(8,8,10,0) 90px);
  }

  /* Logo events on phone: the whole <section class="stage is-single
     is-logo"> is painted #0B0B0C (only the 220px logo box needs it), so in
     light the title sits on a dark slab that ends in a hard edge. Let the
     section use the page bg; .stage-media keeps its own #0B0B0C and its
     ::after fade. */
  html.theme-light .stage.is-single { background: var(--bg); }

  /* Menu poster: .stage-fade (bottom 62%) only reaches ~60% light at the
     kicker, so the copy sits on mauve. Ramp it to the page bg right under
     the poster, and lift the poster above the fade so its edge stays crisp. */
  html.theme-light .stage.is-poster .stage-fade {
    background: linear-gradient(to bottom, rgba(236,236,238,0) 0, rgba(236,236,238,.35) 12%,
      rgba(236,236,238,.92) 22%, var(--bg) 30%);
  }
  html.theme-light .stage.is-poster .poster { z-index: 2; }

  /* Home: copy is laid over the 720x1280 video (stage 0-490px, copy
     95-406px, lift card from 462px), but .stage-fade washes the bottom 200px
     (291-491) to #ECECEE, so the lede, buttons and credit go white-on-light.
     Keep white type on the same dark scrim dark mode uses, and only fade to
     the light page in the last 84px, under the copy and behind the card. */
  html.theme-light .stage.is-home .stage-scrim {
    background:
      linear-gradient(to bottom, rgba(8,8,10,.5) 0, rgba(8,8,10,0) 200px),
      linear-gradient(to top, rgba(17,17,19,.9) 0, rgba(17,17,19,.9) 30%, rgba(17,17,19,.35) 50%, rgba(17,17,19,0) 66%);
  }
  html.theme-light .stage.is-home .stage-fade { height: 84px; }
}

/* All-page video-still event tiles: one family. Same 18/13 crop as other
   tiles, cover centered on the food, a shared dark vignette. Original
   color is kept (no grayscale, no restyle of the plate). */
.tile.is-event-still .tile-photo img {
  object-fit: cover;
  object-position: center center;
}
.tile.is-event-still .tile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 42%, rgba(0,0,0,.3) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.04) 40%, rgba(0,0,0,.22) 100%);
}
.tile.is-event-still .tile-photo .badge,
.tile.is-event-still .tile-shade { z-index: 1; }

/* ===== Light mode, phone: grey/white bar behind the nav on is-wide heroes =====
   Cause: on phone, .stage.is-wide .stage-media is position:relative with
   margin-top: var(--chrome, 52px) (presence.css @media max-width:700px), so
   the photo starts BELOW the nav. The 52px strip above it is the stage's
   own (transparent) background = page --bg, darkened only by the
   rgba(8,8,10,.6)->0 scrim. In dark mode that is ~#0c0c0e and reads as
   part of the photo; in light it is a ~#B9B9BB frosted-looking band behind
   the clear nav (News, Optimus, Drive-in). The 1440 clear-nav fix never
   covered this phone-only gap.
   Fix: in light mode only, paint the chrome strip with the exact colour dark
   mode shows there (#111113 under .6 of #08080A = #0C0C0E), then keep the
   existing 60px scrim over the photo top. Dark mode is unchanged. */
@media (max-width: 700px) {
  html.theme-light .stage.is-wide:not(.is-home) .stage-scrim {
    background: linear-gradient(to bottom,
      #0c0c0e 0, #0c0c0e var(--chrome, 52px),
      rgba(8,8,10,.6) var(--chrome, 52px), rgba(8,8,10,0) calc(var(--chrome, 52px) + 60px));
  }
}

/* ----- Event sub-page heroes: three layouts, one text block -----
   Shared: copy on the left, chips, per-event accents, Photos: Tesla
   (or Logo: dineLA) credit, ~760px stage, ~71px gap to the first
   category. (A) is-venue: full-bleed official venue photo + left
   scrim. (B) is-poster: Menu-style rounded card on the right with a
   blurred, color-tinted wash. (C) is-cluster: 2–3 overlapping official
   photo cards. dineLA keeps the logo in the poster card. */

.stage.is-event.is-poster .ambient-tint,
.stage.is-event.is-cluster .ambient-tint {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 72% 38%, color-mix(in srgb, var(--event-accent) 38%, transparent) 0%, transparent 58%),
    radial-gradient(ellipse at 18% 78%, color-mix(in srgb, var(--event-accent-2) 24%, transparent) 0%, transparent 52%);
}
.stage.is-event.is-poster .stage-media .ambient-2,
.stage.is-event.is-cluster .stage-media .ambient-2 {
  opacity: .4;
  filter: blur(64px) brightness(.4) saturate(1.1);
  object-position: 20% 60%;
  z-index: 0;
}
/* Size the card to the photo's native aspect (Menu does the same
   with 1008/1792 for its portrait sandwich). Official studio plates
   are landscape; the Dia mezcal is square. Cap the width so the card
   stays on the right and the subject fills the frame, whole. */
/* Layout B: the photo is the card. No padded/background frame —
   radius sits on the image, which fills a native-aspect box
   (object-fit: cover, no letterboxing). dineLA .is-logo keeps
   its padded contain treatment below. */
.stage.is-event.is-poster:not(.is-logo) .poster {
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.stage.is-event.is-poster:not(.is-logo) .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  background: none;
  padding: 0;
}
@media (min-width: 701px) {
  .stage.is-event.is-poster .poster {
    /* Vertically center in the content band; never drive the text position. */
    top: calc(var(--past-text-top) + (var(--past-hero-h) - var(--past-text-top) - var(--past-text-bottom)) / 2);
    bottom: auto;
    transform: translateY(-50%);
    width: min(400px, 34vw);
    height: auto;
    max-height: calc(var(--past-hero-h) - var(--past-text-top) - var(--past-text-bottom));
    aspect-ratio: var(--ar, 800 / 578);
    padding: 0;
    overflow: hidden;
  }
  /* dineLA: a modest landscape card so the wide wordmark stays readable. */
  .stage.is-event.is-poster.is-logo .poster {
    width: min(400px, 34vw);
    height: auto;
    aspect-ratio: 4 / 3;
    top: calc(var(--past-text-top) + (var(--past-hero-h) - var(--past-text-top) - var(--past-text-bottom)) / 2);
    bottom: auto;
    transform: translateY(-50%);
  }
}
/* dineLA: logo sits in the same tall card, padded, on a quiet dark field. */
.stage.is-event.is-poster.is-logo {
  background: #0b0b0c;
}
.stage.is-event.is-poster.is-logo .poster {
  background: #0b0b0c;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
}
.stage.is-event.is-poster.is-logo .poster img {
  object-fit: contain;
  padding: 10% 8%;
  background: transparent;
}
.stage.is-event.is-poster.is-logo .ambient-tint {
  background:
    radial-gradient(ellipse at 70% 45%, color-mix(in srgb, var(--event-accent) 22%, transparent) 0%, transparent 55%);
}

/* Selected event chip (not the year chips) and eyebrows. */
.stage.is-event .chips.event-chips a[aria-current="true"] {
  background: var(--event-chip);
  color: var(--event-chip-fg);
  border-color: var(--event-chip);
}
.stage.is-event .kicker {
  color: var(--event-ink);
}
.event-theme .category-name,
.event-theme .lift-title {
  color: var(--event-ink);
}
html.theme-light .event-theme .category-name,
html.theme-light .event-theme .lift-title {
  color: var(--event-ink-light);
}
/* Hero type stays light, even in light mode (the framed photo sits on a
   dark, blurred field, same as the Menu hero). */
html.theme-light .stage.is-event.is-poster .kicker,
html.theme-light .stage.is-event.is-poster .a-kicker,
html.theme-light .stage.is-event.is-venue .kicker,
html.theme-light .stage.is-event.is-venue .a-kicker,
html.theme-light .stage.is-event.is-cluster .kicker,
html.theme-light .stage.is-event.is-cluster .a-kicker {
  color: var(--event-ink);
}

/* Dia cempasúchil: sparse, decorative, never over the card or type. */
.marigolds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.marigold {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-image: url("/static/hero/marigolds.svg");
  opacity: .82;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.marigold.bloom.a {
  /* far top-right gutter, clear of the card and the nav */
  width: 72px; height: 72px;
  top: calc(var(--chrome, 52px) + 16px);
  right: 12px;
  background-size: 168px 84px;
  background-position: 0 0;
}
.marigold.bloom.b {
  /* lower-right gutter, under the card's right edge */
  width: 48px; height: 48px;
  bottom: calc(var(--lift) + 56px + 24px);
  right: 20px;
  background-size: 120px 60px;
  background-position: -52px 0;
  transform: rotate(14deg);
  opacity: .68;
}
.marigold.petal.c {
  /* left gutter, above the credit line, not on it */
  width: 22px; height: 30px;
  left: 14px;
  top: calc(var(--chrome, 52px) + 120px);
  background-size: 180px 90px;
  background-position: -151px -7px;
  transform: rotate(-22deg);
  opacity: .65;
}
.marigold.petal.d {
  /* small petal in the gap between copy and card, high, not on type */
  width: 18px; height: 24px;
  right: max(28px, calc((100% - 1120px) / 2 + 430px));
  top: calc(var(--chrome, 52px) + 36px);
  background-size: 160px 80px;
  background-position: -136px -50px;
  transform: rotate(30deg);
  opacity: .5;
}
/* Small bloom beside section headings — in the heading line, not on tiles. */
.event-theme.is-dia .category-name::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: -3px;
  background: url("/static/hero/marigolds.svg") 0 0 / 36px 18px no-repeat;
  pointer-events: none;
  opacity: .8;
}

@media (max-width: 700px) {
  .stage.is-event.is-poster .poster {
    height: auto;
    width: min(calc(100% - 32px), 360px);
    /* Do not cap height independently of width — a 300px max-height on
       a 360px-wide square card left a larger rounded frame around the
       photo (letterboxed, corners empty). Size to native --ar only. */
    max-height: none;
    aspect-ratio: var(--ar, 800 / 578);
    margin: calc(var(--chrome, 52px) + 8px) auto 0;
    top: auto; bottom: auto; right: auto;
    padding: 0;
    overflow: hidden;
  }
  .stage.is-event.is-poster.is-logo .poster {
    height: auto;
    width: min(calc(100% - 32px), 360px);
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }
  /* No room in the side gutters on phone — hide hero flowers so they
     cannot sit on the card or the title. The heading mark remains. */
  .stage .marigolds { display: none; }
  .event-theme.is-dia .category-name::after { width: 13px; height: 13px; margin-left: 8px; }
}

/* Thin typographic fallback if an event ever has no photo and no logo. */
.stage.is-event.is-type { background: #0b0b0c; }
.stage.is-event.is-type .stage-media { background: #0b0b0c; }
.stage.is-event.is-type .stage-scrim { background: none; }
html.theme-light .stage.is-event.is-type {
  background: var(--bg);
}
html.theme-light .stage.is-event.is-type .kicker,
html.theme-light .stage.is-event.is-type .a-kicker { color: #636366; }
html.theme-light .stage.is-event.is-type h1 { color: var(--strong); }
html.theme-light .stage.is-event.is-type .lede,
html.theme-light .stage.is-event.is-type .a-lede { color: var(--text); }


/* ----- Variant A: full-bleed venue photo, left scrim for type ----- */
.stage.is-event.is-venue {
  width: 100%;
  max-width: none;
  height: 760px;
  overflow: hidden;
  background: #111113;
}
.stage.is-event.is-venue .stage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stage.is-event.is-venue .venue-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  display: block;
  /* Official photo stays in original color; no filters. */
  filter: none;
}
.stage.is-event.is-venue .stage-scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(17,17,19,.92) 0%, rgba(17,17,19,.82) 22%, rgba(17,17,19,.52) 42%, rgba(17,17,19,.20) 60%, rgba(17,17,19,0) 76%),
    linear-gradient(to bottom, rgba(8,8,10,.40) 0, rgba(8,8,10,0) 140px),
    linear-gradient(to top, rgba(17,17,19,.55) 0, rgba(17,17,19,0) 160px);
}
.stage.is-event.is-venue .stage-fade {
  z-index: 2;
  height: 28%;
}
.stage.is-event.is-venue .stage-inner {
  align-items: flex-start;
  padding-top: var(--past-text-top, calc(var(--chrome, 52px) + 92px));
  z-index: 3;
}
.stage.is-event.is-venue .stage-copy {
  /* Soft local wash so chips stay readable on the bright diner photo.
     Absolutely positioned so it cannot shift the shared text offset. */
  position: relative;
  max-width: 540px;
  margin: 0;
  padding: 0;
  background: none;
}
.stage.is-event.is-venue .stage-copy::before {
  content: "";
  position: absolute;
  inset: -12px -64px -8px -28px;
  background: radial-gradient(ellipse at 8% 55%, rgba(17,17,19,.62) 0%, rgba(17,17,19,.32) 48%, rgba(17,17,19,0) 76%);
  pointer-events: none;
  z-index: -1;
}

/* ----- Variant C: overlapping official photo cards ----- */
.stage.is-event.is-cluster {
  width: 100%;
  max-width: none;
  height: 760px;
  overflow: hidden;
}
.stage.is-event.is-cluster .stage-media .ambient {
  position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px);
  object-fit: cover; filter: blur(56px) brightness(.42) saturate(1.05); transform: scale(1.08);
}
.stage.is-event.is-cluster .stage-scrim {
  background: linear-gradient(90deg, rgba(17,17,19,.7) 0%, rgba(17,17,19,.35) 40%, rgba(17,17,19,0) 60%);
}
.stage.is-event.is-cluster .stage-inner {
  align-items: flex-start;
  padding-top: calc(var(--chrome, 52px) + 92px);
}
.poster-cluster {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100% - 1120px) / 2 - 8px));
  top: calc(var(--past-text-top) + (var(--past-hero-h) - var(--past-text-top) - var(--past-text-bottom)) / 2);
  bottom: auto;
  transform: translateY(-50%);
  width: min(540px, 46vw);
  height: min(430px, calc(var(--past-hero-h) - var(--past-text-top) - var(--past-text-bottom)));
  pointer-events: none;
}
.poster-cluster .cluster-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: #111113;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  aspect-ratio: var(--ar, 800 / 578);
  width: 58%;
}
.poster-cluster .cluster-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111113;
}
/* Back-left peeks clearly beside the featured card, sitting low so it
   stays under the chip row on events with a long 2026 tray. */
.poster-cluster .cluster-card.is-b {
  left: 0;
  bottom: 2%;
  width: 48%;
  transform: rotate(-8.5deg);
  z-index: 1;
}
.poster-cluster .cluster-card.is-c {
  right: 0;
  top: 0;
  width: 46%;
  transform: rotate(8.5deg);
  z-index: 2;
}
.poster-cluster .cluster-card.is-front {
  left: 28%;
  bottom: 0;
  width: 58%;
  transform: rotate(-2deg);
  z-index: 3;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.10);
}

@media (max-width: 700px) {
  /* A: stay full-bleed behind the type; crop with the focal point. */
  .stage.is-event.is-venue {
    height: 560px;
  }
  .stage.is-event.is-venue .stage-media,
  .stage.is-event.is-venue .venue-photo {
    position: absolute;
    inset: 0;
  }
  .stage.is-event.is-venue .stage-scrim {
    background:
      linear-gradient(180deg, rgba(17,17,19,.45) 0%, rgba(17,17,19,.20) 28%, rgba(17,17,19,.55) 62%, rgba(17,17,19,.88) 100%),
      linear-gradient(90deg, rgba(17,17,19,.72) 0%, rgba(17,17,19,.40) 55%, rgba(17,17,19,.22) 100%);
  }
  .stage.is-event.is-venue .stage-inner {
    padding: 0 0 calc(var(--lift) + 18px);
    align-items: flex-end;
    height: 100%;
  }
  .stage.is-event.is-venue .stage-copy {
    max-width: none;
    width: 100%;
  }

  /* C: collapse to the featured card only, same stack as the poster card. */
  .stage.is-event.is-cluster {
    height: auto;
  }
  .stage.is-event.is-cluster .stage-media {
    position: absolute;
    inset: 0;
  }
  .stage.is-event.is-cluster .stage-scrim { background: none; }
  .stage.is-event.is-cluster .stage-fade { height: 62%; }
  .stage.is-event.is-cluster .stage-inner { padding-top: 18px; height: auto; }
  .poster-cluster {
    position: relative;
    display: block;
    width: min(calc(100% - 32px), 360px);
    height: auto;
    margin: calc(var(--chrome, 52px) + 8px) auto 0;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    transform: none;
  }
  .poster-cluster .cluster-card {
    display: none;
  }
  .poster-cluster .cluster-card.is-front {
    display: block;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-height: 300px;
    height: auto;
    transform: none;
    z-index: 2;
    margin: 0;
  }
}

/* ----- Past Items: one text offset, one hero height -----
   All view (.is-wall) and every event hero (A venue, B poster, C
   cluster, dineLA logo) share the same typography, column width, and
   top offset below the nav. Only the photo side varies. The text is
   top-aligned so a wrapped title or chip row cannot push the eyebrow
   and h1 around. A fixed min-height plus padding-bottom keeps the
   ~71px gap to the first category. */
.stage.is-event,
.stage.is-wall {
  --past-hero-h: 760px;
  --past-text-top: calc(var(--chrome, 52px) + 92px);
  --past-text-bottom: calc(var(--lift) + 56px + 71px - 18px);
  height: var(--past-hero-h);
  min-height: var(--past-hero-h);
  box-sizing: border-box;
}
.stage.is-event .stage-inner,
.stage.is-wall .stage-inner {
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding-top: var(--past-text-top);
  padding-bottom: var(--past-text-bottom);
  box-sizing: border-box;
  overflow: visible;
}
.stage.is-event .stage-copy,
.stage.is-wall .stage-copy {
  max-width: 540px;
  width: auto;
  gap: 16px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* Event chips: same behaviour on every tab. At 1280+ they stay on one
   line and may extend past the 540px type column (full --col), so a
   year's chips fit without wrapping. Below 1280 they wrap at the same
   540px measure on every page. The selected state does not change
   padding or font, so it cannot reflow the row. */
.stage.is-event .chips.event-chips,
.stage.is-wall .chips.event-chips {
  margin-top: -6px;
  flex-wrap: nowrap;
  width: max-content;
  max-width: var(--col);
}
.stage.is-event .chips.event-chips a,
.stage.is-wall .chips.event-chips a {
  flex-shrink: 0;
  box-sizing: border-box;
}
@media (min-width: 701px) and (max-width: 1279px) {
  .stage.is-event .chips.event-chips,
  .stage.is-wall .chips.event-chips {
    flex-wrap: wrap;
    width: auto;
    max-width: 540px;
  }
}

@media (max-width: 700px) {
  /* Shared type already comes from the generic phone stage rules.
     A: text over the image, pin copy to the bottom of a consistent
     hero height. B, C, and logo: photo first, then text, with the
     same padding and column. All view is restored below to the v183
     stack (mosaic, then type on a plain dark field). */
  .stage.is-event.is-venue {
    height: 560px;
    min-height: 560px;
    overflow: hidden;
  }
  .stage.is-event.is-venue .stage-inner {
    position: relative;
    margin-top: 0;
    padding: 0 0 calc(var(--lift) + 18px);
    align-items: flex-end;
    height: 100%;
  }
  .stage.is-event.is-venue .stage-copy {
    max-width: none;
    width: 100%;
    gap: 12px;
  }
  /* All view, phone: mosaic as its own block, then the text on the
     plain dark background (v183). Do not overlay type on the plates. */
  .stage.is-wall {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .stage.is-wall .stage-media {
    position: relative;
    inset: auto;
    margin-top: 0;
    height: auto;
  }
  .stage.is-wall .wall {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc(100vw / 3 * 13 / 18);
    margin-top: 0;
    height: calc(100vw / 3 * 13 / 18 * 3 + 4px);
    overflow: hidden;
  }
  .stage.is-wall .stage-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: var(--ease-fade);
  }
  .stage.is-wall .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.7) 0, rgba(8,8,10,0) 90px);
  }
  .stage.is-wall .stage-inner {
    position: relative;
    margin-top: -26px;
    padding: 0 0 calc(var(--lift) + 18px);
    align-items: flex-end;
    height: auto;
  }
  .stage.is-wall .stage-copy {
    max-width: none;
    width: 100%;
    gap: 12px;
  }
  .stage.is-event.is-poster,
  .stage.is-event.is-cluster {
    height: auto;
    min-height: 0;
  }
  .stage.is-event.is-poster .stage-inner,
  .stage.is-event.is-cluster .stage-inner {
    padding: 18px 0 calc(var(--lift) + 18px);
    height: auto;
    align-items: flex-start;
  }
  .stage.is-event.is-poster .stage-copy,
  .stage.is-event.is-cluster .stage-copy {
    max-width: none;
    width: 100%;
    gap: 12px;
  }
  .stage.is-event .chips.event-chips,
  .stage.is-wall .chips.event-chips {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .stage.is-event .chips.event-chips::-webkit-scrollbar,
  .stage.is-wall .chips.event-chips::-webkit-scrollbar { display: none; }
}

/* ----- Mid-width hero: no clipping between type and photo -----
   Desktop (1280+) keeps the 540px type column and the natural
   poster/cluster size. Phone (≤700) is unchanged. In between, the
   type column and the art share the row with a 40px gutter, and the
   title scales with clamp() so it never runs into the card. Below
   900px the poster/cluster heroes stack (photo, then type) like the
   phone layout, with room for the lift card. */
.stage.is-poster:not(.is-event) {
  --art-max: calc((760px - (var(--chrome, 52px) + 8px) - (var(--lift) + 22px)) * 1008 / 1792);
}
.stage.is-event.is-poster {
  --art-max: min(400px, 34vw);
}
.stage.is-event.is-poster.is-logo {
  --art-max: min(400px, 34vw);
}
.stage.is-event.is-cluster {
  --art-max: min(540px, 46vw);
}

@media (min-width: 701px) and (max-width: 1279px) {
  .stage h1 {
    /* Hold 54px until ~1080, then ease down toward 36px. */
    font-size: clamp(36px, calc(54px - (1080px - 100vw) * 0.05), 54px);
  }
  .stage.is-poster .stage-copy,
  .stage.is-event.is-poster .stage-copy,
  .stage.is-event.is-cluster .stage-copy {
    --art-w: min(var(--art-max), calc(var(--col) - 300px - 40px));
    max-width: min(540px, calc(var(--col) - var(--art-w) - 40px));
  }
  .stage.is-event .chips.event-chips,
  .stage.is-wall .chips.event-chips {
    max-width: min(540px, 100%);
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .stage.is-poster:not(.is-event) .poster {
    width: min(var(--art-max), calc(var(--col) - 300px - 40px));
    height: auto;
    max-height: calc(760px - (var(--chrome, 52px) + 8px) - (var(--lift) + 22px));
    aspect-ratio: var(--ar, 1008 / 1792);
    top: calc(var(--chrome, 52px) + 8px);
    bottom: auto;
  }
  .stage.is-event.is-poster .poster {
    width: min(var(--art-max), calc(var(--col) - 300px - 40px));
  }
  .poster-cluster {
    width: min(var(--art-max), calc(var(--col) - 300px - 40px));
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  /* Stack photo above type so a 540px column and a poster cannot collide. */
  .stage.is-poster,
  .stage.is-event.is-poster,
  .stage.is-event.is-cluster {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .stage.is-poster .poster,
  .stage.is-event.is-poster .poster,
  .stage.is-event.is-poster.is-logo .poster {
    position: relative;
    display: block;
    margin: calc(var(--chrome, 52px) + 8px) auto 0;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
    transform: none;
    height: auto;
    width: min(calc(var(--col) - 16px), 360px);
    max-height: none;
    aspect-ratio: var(--ar, 1008 / 1792);
    border-radius: 16px;
  }
  /* Menu sandwich is a tall 1008/1792 plate — cap height so the stacked
     card stays close to the 360px phone size instead of growing 640px tall. */
  .stage.is-poster:not(.is-event) .poster {
    width: auto;
    height: 400px;
    max-height: 400px;
    aspect-ratio: var(--ar, 1008 / 1792);
  }
  .stage.is-event.is-poster.is-logo .poster {
    width: min(calc(var(--col) - 16px), 360px);
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 280px;
  }
  .stage.is-poster .stage-scrim,
  .stage.is-event.is-poster .stage-scrim,
  .stage.is-event.is-cluster .stage-scrim { background: none; }
  .stage.is-poster .stage-fade,
  .stage.is-event.is-poster .stage-fade,
  .stage.is-event.is-cluster .stage-fade { height: 62%; }
  .stage.is-poster .stage-inner {
    padding: 24px 0 calc(var(--lift) + 24px);
    height: auto;
    align-items: flex-start;
  }
  .stage.is-event.is-poster .stage-inner,
  .stage.is-event.is-cluster .stage-inner {
    padding: 24px 0 var(--past-text-bottom, calc(var(--lift) + 56px + 71px - 18px));
    height: auto;
    align-items: flex-start;
  }
  .stage.is-poster .stage-copy,
  .stage.is-event.is-poster .stage-copy,
  .stage.is-event.is-cluster .stage-copy {
    max-width: none;
    width: 100%;
  }
  .stage.is-event.is-cluster .stage-media,
  .stage.is-poster .stage-media {
    position: absolute;
    inset: 0;
  }
  .poster-cluster {
    position: relative;
    display: block;
    width: min(calc(var(--col) - 16px), 420px);
    height: 320px;
    margin: calc(var(--chrome, 52px) + 8px) auto 0;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    transform: none;
  }
  /* Flowers have no side gutter in this stacked band. */
  .stage .marigolds { display: none; }
  .stage.is-event .chips.event-chips {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* Mid-width All view: the 8×5 mosaic shrinks with the viewport while
   the hero stays 760px, leaving a dead band between the credit line
   and the "Last to leave" lift. 6 columns turn the same 40 studio
   photos into 7 rows at the 18:13 plate aspect, so the mosaic fills
   the hero (any shortfall below ~860px sits behind the lift). A
   separate rule stretches the 8-column rows between 1280 and 1379
   to close a thin leftover band. 1440 and phone are unchanged. */
@media (min-width: 701px) and (max-width: 1279px) {
  .stage.is-wall .wall {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: calc(100vw / 6 * 13 / 18);
  }
}
/* 1280–1379: still 8 columns, but the 5-row mosaic is a few dozen
   pixels short of the lift. Stretch the rows to fill the 760px hero
   so a thin dead band does not appear. 1440 is unchanged. */
@media (min-width: 1280px) and (max-width: 1379px) {
  .stage.is-wall .wall {
    grid-auto-rows: calc((100% - 8px) / 5);
  }
}

/* ===== Light mode: dark heroes meet the light page =====
   The dark-mode fade (--fade 340px desktop, 40-45% of the photo on phones)
   ran the photo through ~300px of mid-gray on its way to the light --bg,
   which read as a muddy gray band. In light mode only, every hero fade
   (all of them use var(--ease-fade)) now keeps the photo at full strength
   and ramps to --bg over a short 112px (desktop) / 48px (phone) smoothstep
   at the very bottom. On phones the last 26px are solid --bg, because the
   stacked copy overlaps the photo bottom by 26-28px (.stage-inner
   margin-top) and the dark-ink kicker must sit on the light page.
   Dark mode keeps the :root --ease-fade above, unchanged. */
html.theme-light {
  --ease-fade: linear-gradient(to bottom,
    rgba(236,236,238,0) 0,
    rgba(236,236,238,0) calc(100% - 112px),
    rgba(236,236,238,0.043) calc(100% - 98px),
    rgba(236,236,238,0.156) calc(100% - 84px),
    rgba(236,236,238,0.316) calc(100% - 70px),
    rgba(236,236,238,0.500) calc(100% - 56px),
    rgba(236,236,238,0.684) calc(100% - 42px),
    rgba(236,236,238,0.844) calc(100% - 28px),
    rgba(236,236,238,0.957) calc(100% - 14px),
    rgba(236,236,238,1.000) 100%);
}
@media (max-width: 700px) {
  html.theme-light {
    --ease-fade: linear-gradient(to bottom,
    rgba(236,236,238,0) 0,
    rgba(236,236,238,0) calc(100% - 26px - 48px),
    rgba(236,236,238,0.043) calc(100% - 26px - 42px),
    rgba(236,236,238,0.156) calc(100% - 26px - 36px),
    rgba(236,236,238,0.316) calc(100% - 26px - 30px),
    rgba(236,236,238,0.500) calc(100% - 26px - 24px),
    rgba(236,236,238,0.684) calc(100% - 26px - 18px),
    rgba(236,236,238,0.844) calc(100% - 26px - 12px),
    rgba(236,236,238,0.957) calc(100% - 26px - 6px),
    rgba(236,236,238,1.000) calc(100% - 26px),
    rgba(236,236,238,1) 100%);
  }
}

/* Light-mode nav tabs use the shared --tab token (#636366, 5.08:1 on #ECECEE).
   The over-the-photo state still mixes from the same light glass type via --hero-mix. */

/* Light-mode nav strip over hero pages: shorter soft edge under the bar
   (24px instead of 52px), so the dark over-the-photo strip no longer
   smears down onto the white lifted card, and the light strip reads as a
   crisp bar. Same 44px bar, same 56px solid band as dark mode. */
html.theme-light body:has(.stage, .a-hero) .nav-frost { bottom: -36px; }

/* Light mode, phone: the Opening Day style "venue" hero keeps its copy ON
   the photo (560px, dark scrim, like Home), but the light-phone ink rules
   above turned its title, lede and chips dark, so they disappeared into the
   photo. Give it back the white over-photo type, and end the photo in a
   short 44px fade below the credit instead of the 28% gray wash. */
@media (max-width: 700px) {
  html.theme-light .stage.is-event.is-venue h1 { color: #fff; }
  html.theme-light .stage.is-event.is-venue .lede,
  html.theme-light .stage.is-event.is-venue .a-lede { color: rgba(255,255,255,.9); }
  html.theme-light .stage.is-event.is-venue .meta,
  html.theme-light .stage.is-event.is-venue .a-follow { color: rgba(255,255,255,.74); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
  html.theme-light .stage.is-event.is-venue .lede a,
  html.theme-light .stage.is-event.is-venue .meta a,
  html.theme-light .stage.is-event.is-venue .a-follow a { color: #fff; }
  html.theme-light .stage.is-event.is-venue .chips a {
    color: rgba(255,255,255,.86); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14);
  }
  html.theme-light .stage.is-event.is-venue .chips a[aria-current="true"] {
    background: #fff; color: #111; border-color: #fff;
  }
  html.theme-light .stage.is-event.is-venue .stage-fade {
    height: 44px;
    background: linear-gradient(to bottom, rgba(236,236,238,0) 0, rgba(236,236,238,.16) 25%, rgba(236,236,238,.5) 50%, rgba(236,236,238,.84) 75%, var(--bg) 100%);
  }

  /* Cluster events (Thanksgiving): the ambient field runs behind the
     stacked copy, so the short bottom ramp would leave the dark-ink title on
     the dark blur. Use the Menu poster's ramp: light right under the cards. */
  html.theme-light .stage.is-event.is-cluster .stage-fade {
    background: linear-gradient(to bottom, rgba(236,236,238,0) 0, rgba(236,236,238,.35) 12%,
      rgba(236,236,238,.92) 22%, var(--bg) 30%);
  }
  html.theme-light .stage.is-event.is-cluster .poster-cluster { z-index: 2; }

  /* Stacked event heroes put the kicker on the light page; the light-page
     event ink (already used for the section titles) reads there, the pale
     dark-mode ink did not. The venue hero keeps its copy on the photo. */
  html.theme-light .stage.is-event:not(.is-venue) .kicker,
  html.theme-light .stage.is-event:not(.is-venue) .a-kicker { color: var(--event-ink-light); }

  /* Poster cards (Menu, dineLA and other poster events) sit on the light
     page on phones; the dark-mode 80px shadow smeared a gray cloud under
     them. A lighter, tighter shadow in light mode only. */
  html.theme-light .stage.is-poster .poster,
  html.theme-light .stage.is-event.is-poster.is-logo .poster {
    box-shadow: 0 14px 36px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  }
}

/* Desktop: content that overlaps the hero bottom without a card behind it.
   - Past Items event views pull their first category label and tiles 170px
     up into the hero. The label uses the light-page event ink, so it needs
     the light page behind it: end the short ramp 178px above the hero
     bottom (solid --bg below). --light-edge tells app.js where the dark
     photo ends, so the nav flips at the same line.
   - News pulls "Latest" 273px up onto the photo (well above the ramp);
     it keeps the white over-photo heading it has in dark mode. */
@media (min-width: 701px) {
  html.theme-light .stage.is-event { --light-edge: 234px; }
  html.theme-light .stage.is-event .stage-fade,
  html.theme-light .stage.is-event.is-venue .stage-fade {
    height: 340px;
    background: linear-gradient(to bottom,
      rgba(236,236,238,0) 0,
      rgba(236,236,238,0) calc(100% - 178px - 112px),
      rgba(236,236,238,0.043) calc(100% - 178px - 98px),
      rgba(236,236,238,0.156) calc(100% - 178px - 84px),
      rgba(236,236,238,0.316) calc(100% - 178px - 70px),
      rgba(236,236,238,0.500) calc(100% - 178px - 56px),
      rgba(236,236,238,0.684) calc(100% - 178px - 42px),
      rgba(236,236,238,0.844) calc(100% - 178px - 28px),
      rgba(236,236,238,0.957) calc(100% - 178px - 14px),
      rgba(236,236,238,1.000) calc(100% - 178px),
      rgba(236,236,238,1) 100%);
  }
  html.theme-light body.news-page .featured > h2 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 16px rgba(0,0,0,.72);
  }
}

/* Light mode, Home hero: crisp edge above the Right now card (option C2, Nov 20).
   Visual only: the layout is identical to dark mode (same hero height,
   same Right now card position and overlap, same page height), so
   switching themes moves nothing. The fade is hidden, and the video and
   its scrim are clipped a little above the card; the stage's own
   background (--bg, the light page color) shows below the cut, so the
   card sits fully on the light page.
   Cut = --lift (the card's overlap) + the light gap above the card:
   desktop/tablet 132 + 24 = 156px, phone 28 + 16 = 44px.
   --light-edge (read by app.js as a px number, so it is a literal) moves
   the nav's light-strip switch to the cut line. */
html.theme-light body.home-page .a-hero.stage.is-home { --c2-cut: 156px; --light-edge: 156px; }
@media (max-width: 700px) {
  html.theme-light body.home-page .a-hero.stage.is-home { --c2-cut: 44px; --light-edge: 44px; }
  /* The card is solid white on phones (no frosted glass). */
  html.theme-light body.home-page .page-body > .now-strip.lift {
    background: #fff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
html.theme-light body.home-page .a-hero.stage.is-home .stage-fade { display: none; }
html.theme-light body.home-page .a-hero.stage.is-home .stage-media,
html.theme-light body.home-page .a-hero.stage.is-home .stage-scrim {
  -webkit-clip-path: inset(0 0 var(--c2-cut) 0);
  clip-path: inset(0 0 var(--c2-cut) 0);
}
/* ---- hero-heights.css ---- */
/* Shorter .stage.is-wide heroes.
   Cap height so the first screen shows the title block and the top of the
   next section (heading + start of the first card). Photos, type, and
   everything below the hero stay the same. Images keep object-fit: cover;
   per-page object-position keeps the subject in the cropped frame.

   This file is an additive override, meant to come after presence.css
   (and the News mock's copy of the stage rules).
*/

/* ---------- Desktop and tablet (701px+) ---------- */
@media (min-width: 701px) {
  /* Shared cap. Replaces aspect-ratio: 16 / 9 (and the mid-desktop
     min-height: 720px floor in presence.css). At 1440×900 this is 60vh
     = 540px (the 620px max only kicks in on taller viewports). */
  .stage.is-wide,
  .a-hero.stage.is-wide,
  .home-page .a-hero.stage,
  .home-page .a-hero.stage.is-wide,
  .optimus-page .a-hero.stage,
  .optimus-page .a-hero.stage.is-wide {
    aspect-ratio: auto;
    width: 100%;
    height: clamp(360px, 60vh, 620px);
    min-height: 360px;
    max-height: 620px;
  }

  /* Drive-in: approved at a 620px cap. The lifted "On screen tonight"
     card already clears the credit at this height (the Drive-in type
     block is shorter than Home / Optimus). */
  body[data-page="drivein"] .stage.is-wide,
  body[data-page="drive-in"] .stage.is-wide {
    height: 620px;
    min-height: 620px;
    max-height: 620px;
  }

  /* Home: 720px (in the 700–740 band) with 56px of padding under the
     credit so the Right now card clears the type by at least 48px,
     while the card top still peeks into the first screen. */
  .home-page .stage.is-wide,
  .home-page .a-hero.stage,
  .home-page .a-hero.stage.is-wide,
  body[data-page="home"] .stage.is-wide {
    height: 720px;
    min-height: 720px;
    max-height: 740px;
  }
  .home-page .stage.is-wide .stage-inner,
  .home-page .stage.is-wide .a-inner,
  body[data-page="home"] .stage.is-wide .stage-inner {
    padding-bottom: calc(var(--lift) + 56px);
  }

  /* Optimus: the booth still is 16:9 and the subject fills that frame
     (visor near the top, shake and hot dog at the bottom). A 720px
     cap at 1440 (2:1) plus object-position 50% 38% cropped the hands;
     the light-mode 156px bottom clip cropped them again. Size the
     photo to at least 16:9 (and at least 720px on mid widths, where
     only the sides are cropped) and keep the calendar gap under the
     still so the hands stay visible. */
  .optimus-page,
  body[data-page="optimus"] {
    /* Match the actual frosted nav (44px). The old 108px value was
       the 44px tab row plus a 64px fade that site-chrome removed, and
       it pulled 64px of the visor off the top of the viewport. */
    --chrome: 44px;
    --optimus-photo: max(720px, calc(100vw * 9 / 16));
    --optimus-gap: 156px; /* same band as the light-mode c2-cut */
  }
  .optimus-page .stage.is-wide,
  .optimus-page .a-hero.stage,
  .optimus-page .a-hero.stage.is-wide,
  body[data-page="optimus"] .stage.is-wide {
    aspect-ratio: auto;
    height: calc(var(--optimus-photo) + var(--optimus-gap));
    min-height: calc(var(--optimus-photo) + var(--optimus-gap));
    max-height: none;
  }
  .optimus-page .stage.is-wide .stage-media,
  .optimus-page .stage.is-wide .stage-scrim,
  .optimus-page .stage.is-wide .a-bg,
  body[data-page="optimus"] .stage.is-wide .stage-media,
  body[data-page="optimus"] .stage.is-wide .stage-scrim {
    top: 0;
    bottom: auto;
    height: var(--optimus-photo);
    max-height: var(--optimus-photo);
  }
  .optimus-page .stage.is-wide .stage-inner,
  .optimus-page .stage.is-wide .a-inner,
  body[data-page="optimus"] .stage.is-wide .stage-inner {
    height: var(--optimus-photo);
    padding-bottom: 40px;
  }

  .stage.is-wide .stage-media > img,
  .stage.is-wide .stage-media > video,
  .stage.is-wide .stage-media > picture img,
  .stage.is-home .a-reel {
    object-fit: cover;
  }

  /* Home: diner + parked cars. Slight bias down so bumpers stay in frame. */
  .home-page .stage.is-wide .stage-media > img,
  .home-page .stage.is-wide .stage-media > picture img,
  .home-page .stage.is-home .a-reel,
  body[data-page="home"] .stage.is-wide .stage-media > img,
  body[data-page="home"] .stage.is-wide .stage-media > picture img,
  body[data-page="home"] .stage.is-home .a-reel {
    object-position: 50% 52%;
  }

  /* News: official Tesla Diner exterior (diner-hero-2880.jpg).
     The DINER sign and drive-in screen already sit mid-frame. */
  .news-page .stage.is-wide .stage-media > img,
  .news-page .stage.is-wide .stage-media > picture img,
  body[data-page="news"] .stage.is-wide .stage-media > img,
  body[data-page="news"] .stage.is-wide .stage-media > picture img {
    object-position: 50% 50%;
  }

  /* Optimus: the photo box is 16:9 or taller, so a center position
     keeps the visor and the hands in frame. (50% 38% was a bias to
     save the visor inside a shorter 2:1 crop, and it clipped the
     shake and hot dog.) */
  .optimus-page .stage.is-wide .stage-media > img,
  .optimus-page .stage.is-wide .stage-media > picture img,
  body[data-page="optimus"] .stage.is-wide .stage-media > img,
  body[data-page="optimus"] .stage.is-wide .stage-media > picture img {
    object-fit: cover;
    object-position: 50% 50%;
  }

  /* Drive-in: keep the full screen with a little headroom above it. */
  body[data-page="drivein"] .stage.is-wide .stage-media > img,
  body[data-page="drivein"] .stage.is-wide .stage-media > picture img {
    object-position: 50% 40%;
  }
}

/* ---------- Phone (≤700px) ----------
   Landscape is-wide pages (News, Drive-in) already drop the 16:9
   box and show the still at its natural height (~220px at 390px wide)
   with type underneath — shorter than 50–55vh. Leave that layout alone.

   Home uses a capped cover box (the 720/1280 poster would otherwise
   letterbox). Optimus needs a fix so .a-bg doesn't collapse the media. */
@media (max-width: 700px) {
  .home-page .a-hero.stage.is-home,
  .stage.is-home.is-wide,
  body[data-page="home"] .a-hero.stage.is-home {
    aspect-ratio: auto;
    /* Slightly taller than 55vh so 56px of padding under the credit
       still leaves a ≥48px gap above the Right now card, which peeks. */
    height: clamp(300px, 58vh, 520px);
    min-height: 300px;
    max-height: 520px;
  }
  .home-page .stage.is-home .stage-inner,
  .home-page .stage.is-home .a-inner,
  body[data-page="home"] .stage.is-home .stage-inner {
    padding-bottom: calc(var(--lift) + 56px);
  }
  .stage.is-home .stage-media {
    max-height: none;
  }
  .stage.is-home .stage-media > img,
  .stage.is-home .stage-media > video,
  .stage.is-home .stage-media > picture img,
  .stage.is-home .a-reel {
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 50% 42%; /* roof deck + diner body + cars */
  }

  /* Optimus phone bug: .a-bg is position:absolute; inset:0; height:100%,
     so when .stage.is-wide .stage-media is height:auto the media box
     collapses to 0. The still becomes a background behind the type,
     the Off-shift pill tucks under the nav, and the primary button
     ("See the Optimus Edition Vessel") nowraps and clips in a 50%
     flex slot. Put the image back in flow at its natural height
     (same pattern as News / Drive-in) and let the buttons stack. */
  .optimus-page .stage.is-wide .stage-media > picture,
  body[data-page="optimus"] .stage.is-wide .stage-media > picture {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
  }
  .optimus-page .stage.is-wide .stage-media > img,
  .optimus-page .stage.is-wide .stage-media > picture img,
  .optimus-page .stage.is-wide .a-bg,
  body[data-page="optimus"] .stage.is-wide .stage-media > img,
  body[data-page="optimus"] .stage.is-wide .stage-media > picture img,
  body[data-page="optimus"] .stage.is-wide .a-bg {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: 50% 50%; /* natural 16:9, no vertical crop */
    z-index: 0;
  }
  .optimus-page .stage.is-wide .stage-inner,
  .optimus-page .stage.is-wide .a-inner,
  body[data-page="optimus"] .stage.is-wide .stage-inner {
    /* Keep type just overlapping the bottom of the still, like other
       is-wide phone pages, and leave room above the lifted calendar. */
    padding-bottom: calc(var(--lift) + 56px);
  }
  .optimus-page .stage .btns,
  body[data-page="optimus"] .stage .btns {
    width: 100%;
    flex-wrap: wrap;
  }
  .optimus-page .stage .btn,
  .optimus-page .stage a.btn,
  .optimus-page .a-hero .btn,
  body[data-page="optimus"] .stage .btn,
  body[data-page="optimus"] .stage a.btn {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
/* ---- item-page.css ---- */
/* Item info panel + History timeline.
   Builds on the approved standalone item page and sticky photo column.
   The same info layout applies to the standalone /item/<id> page and to
   dialog.sheet on the menu. Mock only; the live site is not edited. */

/* ─── Approved item-page shell (sticky photo, un-carded, chips) ─── */

.item-page header.top { display: none; }

.item-page main {
  width: 100%;
  max-width: none;
  margin: 0;
}
.item-page .item-body {
  width: var(--col, min(1120px, calc(100% - 32px)));
  margin: 0 auto;
  padding: 0;
  /* nav 44 + pinned back strip 40 + 18 */
  --item-pin-top: 102px;
  /* Space the footer takes below the info column at full scroll (64px gap +
     181px footer, the same at every desktop width) plus the credit line and a
     little air. The pinned photo is capped to fit above it, so the column's end
     never has to push the photo up: no let-go, no bounce at the page bottom. */
}
.item-page .item-media {
  --thumbs-h: 0px;
  --item-pin-room: calc(100vh - var(--item-pin-top, 102px) - 26px - var(--thumbs-h) - 245px - 8px);
}
/* Thumbnail block height for the cap: 12px gap + rows of 80px (8px apart) + the
   credit line under the row. Rows are reserved for 4 thumbs per row, which always
   fit the narrowest desktop photo column. */
.item-page .item-media.has-thumbs {
  --thumbs-h: calc(12px + var(--thumb-rows, 1) * 88px - 8px + 26px);
}

/* Gallery as small thumbnails under the main photo (item page only). */
.item-page .item-thumbs { margin-top: 12px; }
.item-page .item-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.item-page .item-thumbs-row > li { margin: 0; padding: 0; }
.item-page .item-thumb {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--photo, #111113);
  cursor: pointer;
  isolation: isolate;
}
.item-page .item-thumb picture,
.item-page .item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}
.item-page .item-thumb img {
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  max-height: none;
}
.item-page .item-thumb:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 35%, transparent); }
.item-page .item-thumb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.item-page .item-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.item-page .item-thumb-play::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}
.item-page .item-thumbs-credit {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.item-page .item-thumbs-credit a { color: inherit; }
@media (max-width: 800px) {
  .item-page .item-thumb { width: 72px; height: 72px; }
}
/* The back link stays pinned under the nav in a full-width strip with the
   nav's own frost (same --frost fill and blur), flush under it, so the two
   read as one two-row bar and content never shows through sharp. It is pinned
   from the first pixel, so scrolling never shifts it. The photo and details
   still start at the same y as before (44 + 40 + 36 = 120px). */
.item-page .item-crumb-bar {
  --crumb-h: 40px;
  position: sticky;
  top: 44px;
  z-index: 20;
  box-sizing: border-box;
  min-height: var(--crumb-h);
  margin: 0 0 36px;
  padding: 10px 0;
  background: var(--frost);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.item-page .item-crumb-bar .back {
  width: var(--col, min(1120px, calc(100% - 32px)));
  margin: 0 auto;
  font-size: 14px;
}
.item-page .back a { color: var(--muted); text-decoration: none; }
.item-page .back a:hover { color: var(--text); }

.item-page .detail.entry-card {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.item-page .item-layout { display: block; }
.item-page .item-media,
.item-page .item-copy { min-width: 0; }

/* Desktop: photo left, everything else in the right column (details, History,
   Gallery, source, Share on X). The photo pins top-aligned with the details,
   just under the pinned back strip. */
@media (min-width: 801px) {
  .item-page .item-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px 56px;
    align-items: start;
  }
  .item-page .item-media {
    position: sticky;
    top: var(--item-pin-top);
    align-self: start;
  }
  /* Short windows: pinning the photo plus thumbnails above the footer would leave
     the photo under ~300px, so the photo column scrolls with the page instead (it can't
     bounce either way) and keeps the normal 72vh size. */
  @media (max-height: 799px) {
    .item-page .item-media { position: static; --item-pin-room: 72vh; }
  }
  /* Back to current hangs under the pinned photo. Out of flow, so it never
     makes the pinned block taller. */
  .item-page .item-media > .item-media-back {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }
}

.item-page .e-frame {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.item-page .e-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, var(--item-pin-room, 72vh));
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  background: transparent;
}
.item-page .e-frame--placeholder,
.item-page .e-photo--placeholder .e-frame {
  aspect-ratio: 18 / 13;
  min-height: 240px;
}
.item-page .e-credit {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.item-page .item-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-page .e-name {
  margin-top: 0 !important;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--strong, #fff);
}
.item-page .e-price {
  font-size: 22px;
  font-weight: 500;
}

.item-page .e-pill--good.e-pill--newest,
.item-page .e-pill--newest {
  background: var(--hot, #D13C43);
  color: #fff;
}
.item-page .e-pill--updated,
dialog.sheet .e-pill--updated {
  background: rgba(20, 20, 22, 0.35);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.item-page .e-pill--warn,
dialog.sheet .e-pill--warn {
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid transparent;
  color: #F5B942;
}

@media (max-width: 800px) {
  .item-page .item-crumb-bar { margin: 0 0 12px; }
  .item-page .e-name { font-size: 32px; }
  .item-page .e-frame img { max-height: none; }
  .item-page .item-media {
    position: static;
    top: auto;
    align-self: auto;
    margin-bottom: 14px;
  }
}

html.theme-light .item-page .e-name { color: #111; }
html.theme-light .item-page .e-pill--updated,
html.theme-light dialog.sheet .e-pill--updated {
  background: rgba(255, 255, 255, 0.7);
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
html.theme-light .item-page .e-pill--warn,
html.theme-light dialog.sheet .e-pill--warn {
  background: rgba(143, 94, 0, 0.12);
  color: #865800;
}

/* ─── Shared info panel (page + popup) ─── */

.item-copy .item-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Price, hours and status sit together. Hours no longer wrap to their own row. */
.item-copy .e-facts {
  margin-top: 14px !important;
  align-items: baseline;
  gap: 8px 10px;
}
.item-copy .e-hours.facts-hours,
.item-copy .e-hours.menu-price {
  flex-basis: auto;
  font-size: 14px;
  color: var(--muted);
}
.item-copy .e-hours.facts-hours::before,
.item-copy .e-hours.menu-price::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted);
}

.item-copy .e-pills {
  margin-top: 10px !important;
}

.item-copy .e-change.e-price-line {
  margin-top: 8px !important;
  font-size: 14px;
  color: var(--muted);
}

.item-copy .e-desc {
  margin-top: 20px !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Options stay a tidy fold. A little more air above and below. */
.item-copy > details.e-options:not(.e-earlier) {
  margin-top: 22px !important;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.item-copy > details.e-options:not(.e-earlier) > summary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}

/* Source / tracking meta is a single quiet line, after History (or
   after Options when there is no history). */
.item-copy > .e-meta {
  margin-top: 22px !important;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.item-copy > .e-share {
  margin-top: 20px !important;
}

/* Hide the old Earlier versions block when the timeline is present.
   Also hide leftover sighting paragraphs; those dates now live in History. */
.item-copy .e-earlier,
.detail.entry-card > .e-earlier,
.item-copy > .e-meta.e-sighting,
.item-copy > .e-meta + .e-meta.e-sighting {
  display: none;
}

/* ─── History timeline (page + popup) ─── */

.e-history {
  margin-top: 28px;
}
.e-history-title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.e-timeline {
  --tl-rail: 6px;      /* shared x: stem and marks are centered here */
  --tl-mark: 9px;
  --tl-mark-top: 5px;
  --tl-stem: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.e-tl-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 16px;
  position: relative;
  padding: 0 0 22px;
}
.e-tl-item:last-child {
  padding-bottom: 0;
}

/* Stem and marks share --tl-rail + translateX(-50%) so the 1px line
   is centered on the same x as every ring and the filled mark. */
.e-tl-item::before {
  content: "";
  position: absolute;
  left: var(--tl-rail);
  top: 0;
  bottom: 0;
  width: var(--tl-stem);
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--muted) 40%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Start at the first mark’s center; end at the last mark’s center
   when the list is complete. Hollow rings have a solid --bg fill so
   the line never shows inside. While collapsed, the last visible row
   is not :last-child — its stem keeps going past the row and fades
   out, to hint that older entries are below. */
.e-tl-item:first-child::before {
  top: calc(var(--tl-mark-top) + var(--tl-mark) / 2);
}
.e-tl-item:last-child::before {
  top: 0;
  bottom: auto;
  height: calc(var(--tl-mark-top) + var(--tl-mark) / 2);
  display: block;
}
.e-history.is-collapsed.has-more .e-tl-item:nth-child(3) {
  /* Room for a short fading stem under the last visible row. */
  padding-bottom: 28px;
}
.e-history.is-collapsed.has-more .e-tl-item:nth-child(3)::before {
  top: 0;
  bottom: 0;
  height: auto;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--muted) 40%, transparent) 0,
    color-mix(in srgb, var(--muted) 40%, transparent) calc(100% - 22px),
    transparent 100%
  );
}
.e-tl-item:first-child:last-child::before {
  display: none;
}

/* Stay in the 12px rail column so .e-tl-body keeps the 1fr track.
   left + translateX(-50%) still centers the 9px mark on --tl-rail. */
.e-tl-mark {
  width: var(--tl-mark);
  height: var(--tl-mark);
  margin-top: var(--tl-mark-top);
  justify-self: start;
  position: relative;
  left: var(--tl-rail);
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 75%, transparent),
              0 0 0 3px var(--bg);
  z-index: 1;
  pointer-events: none;
}
.e-tl-body {
  grid-column: 2;
  min-width: 0;
}

.e-tl-date {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.e-tl-summary {
  display: block;
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--strong, var(--text));
  text-decoration: none;
}
a.e-tl-summary:hover,
a.e-tl-summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.e-tl-detail {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.e-tl-thumb-link {
  display: block;
  width: max-content;
  margin-top: 10px;
  line-height: 0;
  border-radius: 10px;
  text-decoration: none;
}
/* Same landscape tile as the studio medium derivatives (800×578):
   112×80.92 on desktop, 96×69.36 on phone, radius 10px. A portrait
   (or any other aspect) fills the tile with a blurred, darkened copy
   and sits contained and centered on top, so the subject stays whole. */
.e-tl-thumb {
  position: relative;
  display: block;
  width: 112px;
  aspect-ratio: 800 / 578;
  overflow: hidden;
  background: var(--photo, #111113);
  border-radius: 10px;
  isolation: isolate;
}
.e-tl-thumb-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(12px) brightness(0.6);
  transform: scale(1.2);
  pointer-events: none;
  z-index: 0;
}
.e-tl-thumb-pic {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.e-tl-body > .e-tl-thumb { margin-top: 10px; }
.e-tl-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.e-tl-thumbs .e-tl-thumb-link { margin-top: 0; }
.e-tl-thumb-link:hover .e-tl-thumb {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 35%, transparent);
}
.item-photo-stage .e-photo + .e-photo { margin-top: 14px; }

.e-history.is-collapsed .e-tl-item.e-tl-extra { display: none; }

/* “Show all (N)” sits under the list, not in the middle of the stem. */
.e-tl-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  /* 11px pad + 17px margin keeps the label at the 28px timeline column
     and centers it in the focus ring. Unfocused look is unchanged
     (no fill, same type, same text position). */
  margin: 2px 0 0 17px;
  padding: 0 11px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.e-history:not(.is-collapsed) .e-tl-toggle .e-tl-more-label,
.e-history.is-collapsed .e-tl-toggle .e-tl-less-label { display: none; }
.e-history:not(.has-more) .e-tl-toggle { display: none; }

/* ─── Popup sheet: same info layout, tighter type ─── */

/* Title + close live in a chrome header above the photo, so the ×
   no longer sits on the photo's corner or the card edge. The header
   is a sibling of #sheet-body, so it stays put while the body scrolls. */
dialog.sheet .sheet-header {
  --sheet-title-size: 28px;
  --sheet-title-lh: calc(1.1 * var(--sheet-title-size));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas:
    "kicker ."
    "title  close"
    "back   back";
  column-gap: 12px;
  row-gap: 0;
  flex: 0 0 auto;
  align-items: start;
  padding: 16px 20px 12px;
  background: var(--card);
  z-index: 4;
}
dialog.sheet .sheet-kicker {
  grid-area: kicker;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}
dialog.sheet .sheet-kicker[hidden] { display: none; }
dialog.sheet .sheet-title {
  grid-area: title;
  margin: 0;
  min-width: 0;
  font-size: var(--sheet-title-size);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--strong, var(--text));
}
dialog.sheet .sheet-back-current {
  grid-area: back;
  margin: 8px 0 0;
  width: max-content;
  max-width: 100%;
}
dialog.sheet .sheet-back-current[hidden] { display: none; }
/* 44px control, centered on the title's first line — not on the eyebrow. */
dialog.sheet .sheet-x {
  grid-area: close;
  align-self: start;
  margin-top: calc((var(--sheet-title-lh) - 44px) / 2);
  justify-self: end;
}

/* The name and category now live in the header; keep the markup in the
   body for version-swap JS, but do not show a second copy. */
dialog.sheet #sheet-body .entry--primary .e-name,
dialog.sheet #sheet-body .item-kicker-row,
dialog.sheet #sheet-body .detail-body > h2 {
  display: none;
}

/* The header already names the earlier version and offers Back to current. */
dialog.sheet .item-viewing-bar { display: none !important; }

dialog.sheet .item-layout {
  display: block;
}
dialog.sheet .item-media,
dialog.sheet .item-copy {
  min-width: 0;
}
dialog.sheet .item-kicker {
  margin: 0 0 6px;
}
dialog.sheet .e-name {
  margin-top: 0 !important;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--strong, var(--text));
}
dialog.sheet .e-price {
  font-size: 20px;
  font-weight: 500;
}
dialog.sheet .item-copy .e-facts { margin-top: 0 !important; }
dialog.sheet .item-copy .e-desc { margin-top: 16px !important; }
dialog.sheet .e-history { margin-top: 22px; }
dialog.sheet .e-history-title { margin-bottom: 14px; }
dialog.sheet .e-tl-item { padding-bottom: 18px; }

/* The sheet photo stays on top. Don’t apply the page’s sticky grid. */
dialog.sheet .item-media {
  position: static;
  margin-bottom: 14px;
}
dialog.sheet .e-credit {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 800px) {
  dialog.sheet .sheet-header {
    --sheet-title-size: 24px;
    padding: 10px 16px 10px;
  }
  dialog.sheet .e-name { font-size: 24px; }
  dialog.sheet .e-price { font-size: 18px; }
  /* Phone: a little more room in the sheet body so the timeline isn’t cramped. */
  dialog.sheet .e-tl-item { padding-bottom: 20px; }
  .item-copy .e-desc { margin-top: 16px !important; }
  .e-history { margin-top: 24px; }
  .e-tl-thumb { width: 96px; }
}

html.theme-light dialog.sheet .e-name,
html.theme-light dialog.sheet .sheet-title { color: #111; }
html.theme-light .e-tl-mark {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 75%, transparent),
              0 0 0 3px var(--bg);
}
html.theme-light .e-tl-thumb {
  background: #e8e8ea;
}


/* ─── In-place version swap (page + popup) ───
   Clicking a timeline entry swaps the photo and the info header in
   place. The timeline is not replaced. No separate ?v=KEY page. */

/* Selected mark stays on the same rail x (transform is not overridden). */
.e-tl-item.is-selected .e-tl-mark {
  background: var(--strong, var(--text));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--strong, var(--text)) 50%, transparent);
}
.e-tl-item.is-selected .e-tl-summary {
  color: var(--strong, var(--text));
}
.e-tl-item.is-selected .e-tl-date {
  color: var(--text);
}
html.theme-light .e-tl-item.is-selected .e-tl-mark {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, #111 35%, transparent);
}

/* The photo lives in a stage so two figures can crossfade. */
.item-photo-stage {
  position: relative;
}
.item-photo-stage .e-photo {
  margin: 0;
}
.item-photo-stage .e-photo.is-swap-out,
.item-photo-stage .e-photo.is-swap-in {
  width: 100%;
}
.item-photo-stage .e-photo.is-swap-out {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
}
.item-photo-stage .e-photo.is-swap-in {
  position: relative;
  z-index: 1;
}

/* Header cluster that swaps: eyebrow, name, price, description, Options. */
.item-stage {
  position: relative;
}
.item-stage.is-swapping {
  overflow: hidden;
}
.item-stage-layer {
  width: 100%;
}
.item-stage-layer.is-swap-out {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
}
.item-stage-layer.is-swap-in {
  position: relative;
  z-index: 1;
}

/* Eyebrow row: kicker on the left, Back to current on the right. */
.item-kicker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.item-kicker-row .item-kicker {
  margin: 0;
}
.item-back-current {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.item-back-current:hover,
.item-back-current:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.item-kicker-row:not(.is-past) .item-back-current,
.item-media-back[hidden],
.item-back-current[hidden] {
  display: none;
}

/* Quiet Back to current under the sticky photo, desktop only.
   Visible while the header has scrolled away. */
.item-media-back {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
}
.item-media-back a {
  color: var(--muted);
  text-decoration: none;
}
.item-media-back a:hover,
.item-media-back a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
dialog.sheet .item-media-back { display: none !important; }
@media (max-width: 800px) {
  .item-media-back { display: none !important; }
}

/* Quiet line when a version has no recorded options. */
.e-options-missing {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
dialog.sheet .e-options-missing {
  margin-top: 16px;
  padding-top: 14px;
}

/* Phone (and the phone popup): a compact bar naming the selected
   version once the eyebrow has scrolled away. Solid page background
   so nothing shows through; sits flush under the nav. */
.item-viewing-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
  margin: 0;
  padding: 10px 16px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  font-size: 13px;
  line-height: 1.3;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.item-viewing-bar .item-viewing-label {
  color: #fff;
  font-weight: 500;
  min-width: 0;
}
.item-viewing-bar .item-viewing-label em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}
.item-viewing-bar .version-current {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.item-viewing-bar .version-current:hover,
.item-viewing-bar .version-current:focus-visible {
  color: #fff;
}

@media (max-width: 800px) {
  .item-viewing-bar.is-visible {
    display: flex;
    position: fixed;
    top: var(--viewing-bar-top, 44px);
    left: 0;
    right: 0;
    width: auto;
  }
  dialog.sheet .item-viewing-bar.is-visible {
    top: 0;
    position: sticky;
    left: auto;
    right: auto;
  }
  .item-page .item-body {
    position: relative;
  }
}

html.theme-light .item-viewing-bar {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
html.theme-light .item-viewing-bar .item-viewing-label,
html.theme-light .item-viewing-bar .item-viewing-label em,
html.theme-light .item-viewing-bar .version-current {
  color: #111;
}

/* The timeline itself never swaps; keep it in the flow under the stage. */
.item-copy > .e-history,
.item-copy > .e-meta,
.item-copy > .e-share,
.item-copy > .more-photos {
  position: relative;
  z-index: 1;
}


/* The zoom button is position:absolute in the shared card CSS, which collapses
   a frame with aspect-ratio:auto to 0 height. Keep the button in flow so the
   official photo (object-fit: contain) defines the column height. */
.item-page .e-frame > .lightbox-open,
.item-page .e-frame picture {
  position: relative;
  inset: auto;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.item-page .e-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, var(--item-pin-room, 72vh));
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  background: transparent;
}
@media (max-width: 800px) {
  .item-page .e-frame img { max-height: none; }
}

/* Item-page CLS: `width: auto; height: auto` above overrides the img's
   width/height attributes, so until the photo arrived its box was 0×0 and
   .item-copy jumped when it loaded. photo_img(reserve=...) writes the size the
   browser will give the loaded image (its natural CSS width — the `sizes`
   slot for a srcset, else the file's pixel width — and its aspect ratio).
   The used size is the same as after load: capped by max-width:100% and, on
   desktop, by the same height cap as the img (72vh, or the pinned-photo room); nothing is cropped or stretched. */
.item-page .e-frame img[data-reserve] {
  aspect-ratio: var(--res-ar);
  width: min(var(--res-w), calc(min(72vh, var(--item-pin-room, 72vh)) * var(--res-r)));
}
@media (max-width: 800px) {
  .item-page .e-frame img[data-reserve] { width: var(--res-w); }
}
@media (max-width: 700px) {
  .item-page .e-frame img[data-reserve] { width: var(--res-w-sm); }
}

/* Desktop item page: the photo pins top-aligned with the details (see the grid rules above).
   The old viewport-centred pin (--item-media-top, .is-short) is gone: a centred photo's
   bottom sat below the point where the info column ends at full scroll, so the last
   ~48px of every long page dragged the photo up with it. */

/* History source: a quiet meta line like the date eyebrow, tight under the summary/detail.
   Item page and menu popup share these rules. */
.e-tl-source {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--muted);
}
.e-tl-source a {
  color: inherit;
  text-decoration: none;
}
.e-tl-source a:hover,
.e-tl-source a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Visitor-reported History: quieter than tracker rows, so it reads as a
   report, not a confirmed Menu Watch change. */
.e-tl-item--visitor .e-tl-summary {
  color: var(--muted);
  font-weight: 500;
}
.e-tl-item--visitor .e-tl-mark {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 45%, transparent),
              0 0 0 3px var(--bg);
}

/* Item gallery: a responsive tile grid. Two columns on phone, three
   on the desktop item page and menu sheet. A single photo uses the
   copy column instead of sitting tiny on the left. The tile aspect
   follows the gallery (4:3 when most photos are landscape, 4:5 when
   they are portrait). Photos cover the tile, cropped from the center;
   only a photo whose aspect is far from the tile is contained on a
   blurred, softly darkened fill of the same image. No flat black bars. */
.detail .item-copy .more-photos,
dialog.sheet .item-copy .more-photos {
  display: block;
  width: 100%;
}
.detail .item-copy .more-photos .photos-heading,
dialog.sheet .item-copy .more-photos .photos-heading {
  margin-bottom: 6px;
}
.detail .item-copy .more-photos .photos-credit,
dialog.sheet .item-copy .more-photos .photos-credit {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted, #8E8E93);
}
.detail .item-copy .more-photos .photos-credit a,
dialog.sheet .item-copy .more-photos .photos-credit a {
  color: inherit;
  text-decoration: none;
}
.detail .item-copy .more-photos .photos-credit a:hover,
.detail .item-copy .more-photos .photos-credit a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail .item-copy .more-photos .gallery,
dialog.sheet .item-copy .more-photos .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 10px;
  width: 100%;
  justify-content: stretch;
  align-items: start;
  --photo-max: none;
  container-type: unset;
}
.detail .item-copy .more-photos .gallery.gallery--count-1,
dialog.sheet .item-copy .more-photos .gallery.gallery--count-1 {
  grid-template-columns: minmax(0, 1fr);
}
.detail .item-copy .more-photos .gallery.gallery--count-1 figure,
dialog.sheet .item-copy .more-photos .gallery.gallery--count-1 figure {
  max-width: 28rem;
  width: 100%;
}
.detail .item-copy .more-photos .gallery.gallery--count-2,
dialog.sheet .item-copy .more-photos .gallery.gallery--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail .item-copy .more-photos .gallery figure,
dialog.sheet .item-copy .more-photos .gallery figure {
  width: auto;
  max-width: none;
  flex: none;
  margin: 0;
  min-width: 0;
}
.detail .item-copy .more-photos .gallery .lightbox-open,
.detail .item-copy .more-photos .gallery picture,
.detail .item-copy .more-photos .gallery .vwrap,
dialog.sheet .item-copy .more-photos .gallery .lightbox-open,
dialog.sheet .item-copy .more-photos .gallery picture,
dialog.sheet .item-copy .more-photos .gallery .vwrap {
  display: block;
  width: 100%;
  max-width: none;
}
.detail .item-copy .more-photos .g-open,
dialog.sheet .item-copy .more-photos .g-open {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
}
.detail .item-copy .more-photos .g-tile,
dialog.sheet .item-copy .more-photos .g-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--photo, #111113);
  isolation: isolate;
}
.detail .item-copy .more-photos .gallery--landscape .g-tile,
dialog.sheet .item-copy .more-photos .gallery--landscape .g-tile {
  aspect-ratio: 4 / 3;
}
.detail .item-copy .more-photos .gallery--portrait .g-tile,
dialog.sheet .item-copy .more-photos .gallery--portrait .g-tile {
  aspect-ratio: 4 / 5;
}
/* A span, not an img: .gallery img sets background: var(--photo), which
   painted opaque letterbox bars over the earlier blur-fill <img>. */
.detail .item-copy .more-photos .g-tile-fill,
dialog.sheet .item-copy .more-photos .g-tile-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(16px) brightness(0.72);
  transform: scale(1.2);
  pointer-events: none;
  z-index: 0;
}
.detail .item-copy .more-photos .g-tile picture,
.detail .item-copy .more-photos .g-tile img,
dialog.sheet .item-copy .more-photos .g-tile picture,
dialog.sheet .item-copy .more-photos .g-tile img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
}
.detail .item-copy .more-photos .g-tile.is-fit picture,
.detail .item-copy .more-photos .g-tile.is-fit img,
dialog.sheet .item-copy .more-photos .g-tile.is-fit picture,
dialog.sheet .item-copy .more-photos .g-tile.is-fit img {
  object-fit: contain;
  background: transparent;
}
.detail .item-copy .more-photos .g-tile .vwrap,
dialog.sheet .item-copy .more-photos .g-tile .vwrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.detail .item-copy .more-photos .g-cap,
dialog.sheet .item-copy .more-photos .g-cap {
  margin: 6px 0 0;
  line-height: 1.3;
}
.detail .item-copy .more-photos .g-date,
dialog.sheet .item-copy .more-photos .g-date {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #8E8E93);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail .item-copy .more-photos .g-desc,
dialog.sheet .item-copy .more-photos .g-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text, #E5E5EA);
}
.detail .item-copy .more-photos .g-credit,
dialog.sheet .item-copy .more-photos .g-credit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted, #8E8E93);
}
.detail .item-copy .more-photos .g-credit a,
dialog.sheet .item-copy .more-photos .g-credit a {
  color: inherit;
  text-decoration: none;
}
.detail .item-copy .more-photos .g-credit a:hover,
dialog.sheet .item-copy .more-photos .g-credit a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 800px) {
  .detail .item-copy .more-photos .gallery,
  dialog.sheet .item-copy .more-photos .gallery,
  .detail .item-copy .more-photos .gallery.gallery--count-2,
  dialog.sheet .item-copy .more-photos .gallery.gallery--count-2,
  .detail .item-copy .more-photos .gallery.gallery--count-3,
  dialog.sheet .item-copy .more-photos .gallery.gallery--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail .item-copy .more-photos .gallery.gallery--count-1,
  dialog.sheet .item-copy .more-photos .gallery.gallery--count-1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail .item-copy .more-photos .gallery.gallery--count-1 figure,
  dialog.sheet .item-copy .more-photos .gallery.gallery--count-1 figure {
    max-width: none;
  }
}

/* Item popup hero: same as the item page. The shared .e-frame is a
   fixed 800/578 plate with --sheet-panel (#0c0c0e) behind a
   fit-contain photo. Merch studio plates are often 800×587 (or
   square holiday shots) with a #232323 (or #f8f8f8) backdrop, so
   the sheet color showed as side bars or a mismatched gray
   rectangle. Size the frame to the photo, put the radius on the
   image, and leave the backing transparent. The magnifier still
   opens data-full — the original unmodified photo — in the
   lightbox; these rules do not apply there. */
dialog.sheet .item-media .e-frame:not(.e-frame--video):not(.e-frame--placeholder) {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
dialog.sheet .item-media .e-frame:not(.e-frame--video):not(.e-frame--placeholder) > .lightbox-open,
dialog.sheet .item-media .e-frame:not(.e-frame--video):not(.e-frame--placeholder) picture {
  position: relative;
  inset: auto;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
dialog.sheet .item-media .e-frame:not(.e-frame--video):not(.e-frame--placeholder) img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: var(--photo-r, 12px);
  background: transparent;
}
@media (max-width: 800px) {
  dialog.sheet .item-media .e-frame:not(.e-frame--video):not(.e-frame--placeholder) img {
    max-height: none;
  }
}

/* ------------------------------------------------------------------
   Keyboard focus: a 2px var(--text) ring around existing elements.
   Controls keep their live shape, size, padding and radius. The ring
   follows that radius (plus a small offset); blocky 8px rectangles
   stay blocky, 17px nav pills stay pills, circles stay circles.

   Text rings use the nav-pill spacing: 11px from the inner edge of
   the ring to the label (equal L/R) and ~4.5–5px top/bottom. That
   is done with a ::after ring, not by restyling the unfocused
   control. Options stays a full-width 44px row; the ring wraps the
   row with an 11px left/right inset from the label and chevron.
   Show all / Show less keeps the label at the 28px timeline column
   (indent via margin, even 11px padding) so the label is centered
   in the same 11px ring.

   :focus-visible only; a mouse :focus shows nothing new.
   ------------------------------------------------------------------ */

.item-page :is(a, button, summary):focus,
dialog.sheet :is(a, button, summary):focus,
.nav a:focus {
  outline: none;
}

.item-page :is(a, button, summary):focus-visible,
dialog.sheet :is(a, button, summary):focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Nav pills already have 14px pad in a 34px / 17px pill. An inset
   2px ring (offset -3px) gives the 11px / 4.5px nav spacing and
   stays inside overflow-x: auto. Phone nav layout is unchanged. */
.nav a:focus-visible {
  outline-offset: -3px;
}

/* Text controls whose box is not already a nav pill: draw the ring
   with ::after so horizontal and vertical gaps can differ, without
   changing the unfocused element. 11px to the inner edge (2px
   stroke, so the outer edge is 13px from the content on the sides
   when the element has no padding). Vertical: ~4.5–5px to the
   glyph, ring centered on the label. Radius: 8px for 0-radius
   text (rounded-blocky), existing radius + 2px otherwise. */
.item-page details.e-options > summary,
dialog.sheet details.e-options > summary,
.item-page .e-tl-toggle,
dialog.sheet .e-tl-toggle,
.item-page a.e-share,
dialog.sheet a.e-share,
.item-page .back a {
  position: relative;
}
.item-page details.e-options > summary:focus-visible,
dialog.sheet details.e-options > summary:focus-visible,
.item-page .e-tl-toggle:focus-visible,
dialog.sheet .e-tl-toggle:focus-visible,
.item-page a.e-share:focus-visible,
dialog.sheet a.e-share:focus-visible,
.item-page .back a:focus-visible {
  outline: none;
}
.item-page details.e-options > summary:focus-visible::after,
dialog.sheet details.e-options > summary:focus-visible::after,
.item-page .e-tl-toggle:focus-visible::after,
dialog.sheet .e-tl-toggle:focus-visible::after,
.item-page a.e-share:focus-visible::after,
dialog.sheet a.e-share:focus-visible::after,
.item-page .back a:focus-visible::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  border: 2px solid var(--text);
  pointer-events: none;
  z-index: 1;
}

/* Options and back: no horizontal padding, so the ring stands 11px
   outside the text/chevron (outer edge at -13px). */
.item-page details.e-options > summary:focus-visible::after,
dialog.sheet details.e-options > summary:focus-visible::after,
.item-page .back a:focus-visible::after {
  left: -13px;
  right: -13px;
  height: 31px; /* tuned to ~4.5–5px above/below the 14px glyph */
  border-radius: 8px;
}

/* Show all / Show less: 11px even padding, so the inner edge of the
   ring sits at the border box (outer at -2px). */
.item-page .e-tl-toggle:focus-visible::after,
dialog.sheet .e-tl-toggle:focus-visible::after {
  left: -2px;
  right: -2px;
  height: 34px; /* 20px glyph + ~5px + 2px stroke each side */
  border-radius: 8px;
}

/* Share already has 14px pad, 1px border, 8px radius, 36px height.
   Insets are tuned so ring-to-label is 11px L/R and ~4.5–5px T/B;
   radius 10px = 8px + 2px offset. */
/* Hide Share's 1px border (and the :focus-visible pill fill) on
   keyboard focus so the 2px ring is a single clean outline, not a
   double line. Border width stays 1px (color only) so the 36×8px
   box does not shift. Hover-only fill is unchanged. */
.item-page a.e-share:focus-visible,
dialog.sheet a.e-share:focus-visible {
  border-color: transparent;
  background: transparent;
}
.item-page a.e-share:focus-visible::after,
dialog.sheet a.e-share:focus-visible::after {
  /* 1px (now transparent) border + 14px pad; left:1px keeps the
     inner edge 11px from the label, same as the nav pill. */
  left: 1px;
  right: 1px;
  height: 31px;
  border-radius: 10px;
}

/* History thumbs used a 1px 35% --text shadow on focus; the shared
   2px / 2px-offset ring on the link is the focus treatment. Hover
   keeps the existing 1px edge. */
/* (hover-only thumb shadow is set above) */

/* Play / zoom sit on dark video, in both themes. --text in light
   mode (#3A3A3C) would fall short of 3:1 on the dark control, so
   these keep a white ring with the same 2px width and 2px gap. */
.item-page .vplay:focus-visible,
dialog.sheet .vplay:focus-visible,
.item-page .vzoom:focus-visible,
dialog.sheet .vzoom:focus-visible {
  outline-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
/* ---- site-chrome.css ---- */
/* Site-wide chrome fixes (Drive-in banners, card scrollers, heroes, nav).
   Loaded last from layout.html so one nav style wins over page-specific sheets. */

/* ---------- Global frosted nav: every page, both themes, all widths ----------
   Light mode: light translucent frosted bar. Dark mode: dark translucent
   frosted bar. Always on, not gated on scroll or hero-mix. Tab colors
   follow the theme, so over-hero white type is not used (that is what
   left solid black bars on Optimus and News in light mode). */
.nav-fade {
  background: var(--frost);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

/* Disable the old scroll-linked gradient layers. The bar itself is the frost. */
.nav-frost {
  bottom: 0;
  background: transparent;
}
.nav-frost::before,
.nav-frost::after,
html.theme-light .nav-frost::before,
html.theme-light .nav-frost::after,
html.theme-light body:has(.stage, .a-hero) .nav-frost::before,
html.theme-light body:has(.stage, .a-hero) .nav-frost::after {
  display: none;
  opacity: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav a:not([aria-current="page"]),
html.theme-light body:has(.stage, .a-hero) .nav a:not([aria-current="page"]),
.optimus-page .nav a:not([aria-current="page"]),
body.news-page .nav a:not([aria-current="page"]) {
  color: var(--tab);
}
.nav a[aria-current="page"],
html.theme-light body:has(.stage, .a-hero) .nav a[aria-current="page"] {
  background: var(--tab-on);
  color: var(--tab-on-text);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--tab-shadow);
}
.theme-toggle,
html.theme-light body:has(.stage, .a-hero) .theme-toggle,
.optimus-page .theme-toggle,
body.news-page .theme-toggle {
  background: var(--pill);
  color: var(--tile-text);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.theme-toggle:hover,
html.theme-light body:has(.stage, .a-hero) .theme-toggle:hover,
.optimus-page .theme-toggle:hover,
.optimus-page .account:hover {
  background: var(--pill);
  color: var(--tab-on-text);
}

/* News index and article pages previously forced a clear or solid nav. */
body.news-page .nav-fade,
html.theme-light body.news-page .nav-fade,
body.article-page .nav-fade,
html.theme-light body.article-page .nav-fade,
html.theme-light body:has(.stage, .a-hero) .nav-fade {
  background: var(--frost);
}
body.article-page .nav-frost {
  bottom: 0;
  background: transparent;
}
body.article-page .nav-frost::before,
body.article-page .nav-frost::after {
  display: none;
}

/* Optimus used a separate sticky .chrome with a near-solid dark gradient.
   Use the same frosted nav-fade bar as every other page. */
.optimus-page .nav-frost { display: none; }
.optimus-page .chrome::before,
.optimus-page .chrome::after,
html.theme-light .optimus-page .chrome::before,
html.theme-light .optimus-page .chrome::after {
  display: none !important;
  opacity: 0 !important;
}
.optimus-page .nav-fade {
  background: var(--frost);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
@media (min-width: 701px) {
  .optimus-page .chrome {
    padding-bottom: 0;
    background: transparent;
  }
}
@media (max-width: 700px) {
  .optimus-page .nav-fade {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-fade,
  .optimus-page .nav-fade,
  body.news-page .nav-fade,
  body.article-page .nav-fade,
  html.theme-light body:has(.stage, .a-hero) .nav-fade {
    background: var(--frost-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Do not paint a solid #0c0c0e strip behind the phone nav on is-wide heroes
   (News, Optimus, Drive-in). That was the light-mode black bar. */
@media (max-width: 700px) {
  html.theme-light .stage.is-wide:not(.is-home) .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 120px);
  }
  /* Let full-bleed photo heroes tuck under the frosted nav, like Home / Suppliers. */
  .stage.is-wide:not(.is-home) .stage-media {
    margin-top: 0;
  }

  /* Optimus is the exception. The official booth still is 16:9, with the
     visor near the top of the frame; tucking it under the 44px nav hides
     the head in both themes. Put the still back below the frosted bar
     (the original presence.css phone offset) and paint the chrome gap
     with the page background so light mode does not grow a black bar. */
  .optimus-page .a-hero.stage.is-wide,
  body[data-page="optimus"] .a-hero.stage.is-wide {
    background: var(--bg);
  }
  .optimus-page .stage.is-wide .stage-media,
  body[data-page="optimus"] .stage.is-wide .stage-media {
    margin-top: var(--chrome, 44px);
  }
  .optimus-page .stage.is-wide .stage-scrim,
  html.theme-light .optimus-page .stage.is-wide .stage-scrim,
  body[data-page="optimus"] .stage.is-wide .stage-scrim,
  html.theme-light body[data-page="optimus"] .stage.is-wide .stage-scrim {
    top: var(--chrome, 44px);
    background: linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 120px);
  }
}

/* Stronger top scrim on map and photo heroes so labels under the tabs recede.
   The frosted nav is the main treatment; this only darkens the media itself. */
.stage.is-map .stage-scrim,
.stage.is-wide:not(.is-home) .stage-scrim {
  background: linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 120px);
}
@media (max-width: 700px) {
  .stage.is-map .stage-scrim {
    background: linear-gradient(to bottom, rgba(8,8,10,.55) 0, rgba(8,8,10,0) 120px);
  }
}

/* Zoom controls stay below the sticky nav. */
.stage.is-map .leaflet-top.leaflet-right,
.stage.is-map .map-extent-toggle,
.stage.is-map .map-past-toggle {
  top: calc(var(--chrome, 52px) + 12px);
}

/* ---------- In-page hero anchors ---------- */
#later-h,
#week-h,
#up-h,
#s-h,
#past-h,
#now,
#new-h,
#last-h,
#featured-heading {
  scroll-margin-top: calc(var(--chrome, 52px) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lightbox-open):not(.sheet-open):not(.scroll-locked) {
    scroll-behavior: auto; /* JS handles the hero buttons; avoid surprising lightbox/hash jumps */
  }
}

/* ---------- Card scrollers: clip inside the lift card, both themes ----------
   Shared by: On screen tonight (.di-strip), New on the menu (.lift-row),
   Last to leave (.lift-row). overflow hidden on .lift respects the
   radius; the inset 1px outline stays outside the padding box once the
   negative bleed margin is removed. */
.lift {
  overflow: hidden;
}
@media (max-width: 700px) {
  .lift-row {
    margin-right: 0;
    padding-right: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
  }
  .di-strip {
    margin-right: 0;
    padding-right: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
  }
  .lift-row::-webkit-scrollbar,
  .di-strip::-webkit-scrollbar { display: none; }
}

/* ---------- Drive-in placeholder logo (Tesla diner-placeholder.svg) ---------- */
.mini-photo.tile-fallback--diner,
.di-week .di-thumb.tile-fallback--diner {
  background: var(--ph-bg);
}
.mini-photo.tile-fallback--diner::after,
.di-week .di-thumb.tile-fallback--diner::after {
  /* diner-placeholder.svg viewBox 800×578, but the ink sits in a
     padded box (ink ≈ 264×347). Sizing the mask to the tile height
     (contain) makes the visible logo ≈ 60% of the tile tall, with
     even padding from the SVG itself. 40% of --strong stays clearly
     visible but subdued. */
  background: color-mix(in srgb, var(--strong) 40%, transparent);
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* The mark is always dead centre (the SVG's ink box is centred in its own
   800x578 viewBox to within 0.2 units, so mask-position: center is exact).
   On phone, the On-screen-tonight peek tiles (146x74 at 390) are so short
   that a centred 60% mark runs under a time chip like "4:08pm", so those
   tiles alone get a smaller mark instead of an off-centre one. */
@media (max-width: 700px) {
  .di-strip .mini:not(:first-child) .mini-photo.tile-fallback--diner::after {
    -webkit-mask-size: auto 61%;
    mask-size: auto 61%;
  }
}

/* ---------- Light-mode solid bottom edge on full-bleed photo / map heroes ----------
   Dark mode keeps its existing soft bottom fade. Home already has its own
   C2 hard cut and is left alone. */
@media (max-width: 700px) {
  html.theme-light .stage.is-wide:not(.is-home) .stage-fade,
  html.theme-light .stage.is-wide:not(.is-home) .stage-media::after,
  html.theme-light .stage.is-map .stage-fade,
  html.theme-light .stage.is-map .stage-media::after,
  html.theme-light .stage.is-wall .stage-fade,
  html.theme-light .stage.is-wall .stage-media::after {
    display: none;
    background: none;
  }
  html.theme-light .stage.is-wide:not(.is-home) .stage-inner,
  html.theme-light .stage.is-wall .stage-inner {
    margin-top: 0;
    padding-top: 16px;
  }
}

/* Suppliers phone: tighten the blank gap under the map.
   Dark: keep the soft fade and sit the eyebrow in it (Drive-in-like spacing).
   Light: hard edge, then normal spacing to the header. */
@media (max-width: 700px) {
  .stage.is-map .stage-inner {
    margin-top: -148px;
    padding-top: 0;
    align-items: flex-end;
  }
  html.theme-light .stage.is-map .stage-inner {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
  }
}

/* Desktop light mode: end photo/map heroes on a clean cut, not a soft ramp
   into the light page. News no longer pulls "Latest" up onto the photo. */
@media (min-width: 701px) {
  html.theme-light .stage.is-wide:not(.is-home) .stage-fade,
  html.theme-light .stage.is-map .stage-fade,
  html.theme-light .stage.is-wall .stage-fade {
    display: none;
  }
  html.theme-light .stage.is-wide:not(.is-home) .stage-media,
  html.theme-light .stage.is-wide:not(.is-home) .stage-scrim,
  html.theme-light .stage.is-map .stage-media,
  html.theme-light .stage.is-map .stage-scrim,
  html.theme-light .stage.is-wall .stage-media,
  html.theme-light .stage.is-wall .stage-scrim {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
  /* Drive-in: cut just above the lifted card, like Home C2. */
  html.theme-light body[data-page="drivein"] .stage.is-wide {
    --c2-cut: 156px;
  }
  html.theme-light body[data-page="drivein"] .stage.is-wide .stage-media,
  html.theme-light body[data-page="drivein"] .stage.is-wide .stage-scrim {
    -webkit-clip-path: inset(0 0 var(--c2-cut) 0);
    clip-path: inset(0 0 var(--c2-cut) 0);
  }
  /* Optimus: do not clip the still. The photo box is already 16:9 (or a
     taller mid-width cover that only crops the sides), and the calendar
     sits in a gap under it, so a bottom inset would cut off the hands. */
  html.theme-light .optimus-page .stage.is-wide .stage-media,
  html.theme-light .optimus-page .stage.is-wide .stage-scrim,
  html.theme-light body[data-page="optimus"] .stage.is-wide .stage-media,
  html.theme-light body[data-page="optimus"] .stage.is-wide .stage-scrim {
    -webkit-clip-path: none;
    clip-path: none;
  }
  html.theme-light body.news-page .featured,
  html.theme-light .news-page .featured {
    margin-top: 28px;
  }
  html.theme-light body.news-page .featured > h2,
  html.theme-light .news-page .featured > h2 {
    color: var(--strong);
    text-shadow: none;
  }
}

/* News phone: tighten the Photo: Tesla → Latest gap to normal section spacing. */
@media (max-width: 700px) {
  body.news-page .stage.is-wide .stage-inner,
  .news-page .stage.is-wide .stage-inner {
    padding-bottom: 8px;
  }
  html.theme-light body.news-page .stage.is-wide .stage-inner,
  html.theme-light .news-page .stage.is-wide .stage-inner {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 8px;
  }
  body.news-page .featured,
  .news-page .featured {
    margin-top: 24px;
  }
}

/* Hero CTA pair: size each pill to its label, with comfortable
   padding (20px on phone; existing 22px on larger screens is left
   alone). If the pair cannot fit on one row at that padding, they
   wrap and each grows to full width (primary first). Same rule on
   every hero (Menu, Home, Optimus, Drive-in, Suppliers). Never
   shrink the font or ellipsize. Long names wrap inside the pill
   only after the button is already full width. */
.stage .btns,
.a-hero .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.stage .btn,
.stage .btn.btn-solid,
.stage a.btn,
.stage .btn-out,
.stage a.btn-out,
.a-hero .btn,
.optimus-page .stage .btn,
.optimus-page .stage a.btn,
.optimus-page .a-hero .btn,
body[data-page="optimus"] .stage .btn,
body[data-page="optimus"] .stage a.btn {
  flex: 1 0 auto;
  width: auto;
  min-width: min(100%, max-content);
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  font-size: 15px;
  overflow: visible;
  text-overflow: unset;
}
@media (max-width: 700px) {
  .stage .btns,
  .a-hero .btns {
    width: 100%;
  }
  .stage .btn,
  .stage .btn.btn-solid,
  .stage a.btn,
  .stage .btn-out,
  .stage a.btn-out,
  .a-hero .btn,
  .optimus-page .stage .btn,
  .optimus-page .stage a.btn,
  .optimus-page .a-hero .btn,
  body[data-page="optimus"] .stage .btn,
  body[data-page="optimus"] .stage a.btn {
    flex: 1 0 auto;
    min-width: min(100%, max-content);
    max-width: 100%;
    width: auto;
    padding: 0 20px;
    white-space: normal;
    font-size: 15px;
  }
}


/* ---------- Lift card headers: keep the right-side count on one line ----------
   Last to leave ("5 items"), On the menu now ("All 19 shown"), New on the
   menu (Hide merch), On screen tonight (Times in PT). The eyebrow may wrap;
   the count/meta must not shrink or split. On phone, drop the timezone
   abbreviation from Last to leave so the date can stay "Oct 26, 9:14am". */
.lift-head {
  flex-wrap: wrap;
  align-items: baseline;
}
.lift-title {
  min-width: 0;
  flex: 1 1 auto;
}
.lift-head > .lift-link,
.lift-head .page-tools,
.lift-head .page-tools .lift-link {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .lift-tz { display: none; }
}

/* ---------- Tap targets: bigger hit area, nothing visible changes (audit F18, axe target-size) ----------
   Vertical padding on an inline link grows its pointer box to 24px tall, but
   padding on an inline box does not change the line box, so no text moves.
   None of these links has a background, border or box-shadow, so the padding
   never paints. On keyboard focus the padding is dropped, so the focus ring is
   the same size as before. Text is 11-14px here (14-17px boxes).
   Two credit lines stacked 3px apart (Optimus cards) split the space instead
   of overlapping: the upper link grows upward, the lower one downward. */
.fx.foot-cnonestep .fc-by a,
.home-page .a-follow a,
.item-page .back a,
.credit a {
  padding-block: 5px;
}
.credit:has(+ .credit) a { padding-top: 9px; padding-bottom: 1px; }
.credit + .credit a { padding-top: 1px; padding-bottom: 9px; }
.fx.foot-cnonestep .fc-by a:focus-visible,
.home-page .a-follow a:focus-visible,
.item-page .back a:focus-visible,
.credit a:focus-visible {
  padding-block: 0;
}
