/* Hosted menu and catalog page. Each template (src/templates.js) sets the custom properties below and a
   look-* class on <body>; the defaults here are the Classic template. Colours never appear as literals below
   :root except on the "show my server" screen, which is always black on white. */
:root {
  --bg: #FFFCF7;
  --card: #FFFFFF;
  --ink: #1F1A17;
  --muted: #6B625B;
  --line: #ECE3D8;
  --chip: #F4EDE4;
  --accent: #B4532A;
  --on-accent: #FFFFFF;
  --on-ink: #FFFFFF;
  --sv-accent: #B4532A;
  --focus-bg: #F2E0D9;
  --focus-accent: #9E4925;
  --radius: 14px;
  --wrap: 680px;
  --head: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head-weight: 600;
  --head-case: none;
  --head-track: -0.01em;
  --head-stretch: normal;
  --head-scale: 1;
  --scheme: light;
  --body-adjust: none;
  color-scheme: var(--scheme);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); font-size-adjust: var(--body-adjust, none);
  -webkit-font-smoothing: antialiased; padding-bottom: 96px;
}
body.locked { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.masthead { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 18px; text-align: center; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.masthead h1 {
  margin: 0; font-family: var(--head); font-weight: var(--head-weight); font-size: calc(clamp(34px, 9vw, 48px) * var(--head-scale)); line-height: 1.05;
  font-variation-settings: 'SOFT' 60, 'opsz' 96;
}
.masthead h1, .section h2, .sheet h2, .server-view h2 {
  text-transform: var(--head-case); letter-spacing: var(--head-track); font-stretch: var(--head-stretch); overflow-wrap: anywhere;
}
.tagline { margin: 10px auto 0; max-width: 34ch; color: var(--muted); }

.toolbar {
  position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding: 10px 16px 8px;
}
.toolbar > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; height: 100%; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cats, .filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; }
.cats::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--chip);
}
.cats a:active { background: var(--line); }
.chip {
  flex: none; font: 500 13px/1 var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; text-transform: capitalize;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { scroll-margin-top: 140px; padding-top: 26px; }
.section h2 {
  font-family: var(--head); font-weight: var(--head-weight); font-size: calc(24px * var(--head-scale)); margin: 0 0 6px; font-variation-settings: 'SOFT' 50, 'opsz' 36;
  display: flex; align-items: center; gap: 12px;
}
.section h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.items { display: grid; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer; border-radius: 8px; transition: background .15s, box-shadow .15s, transform .15s; position: relative;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: color-mix(in srgb, var(--chip) 60%, transparent); }
.item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.item.picked .item-text h3::before { content: '✓ '; color: var(--accent); }
.item-text { min-width: 0; grid-column: 1; grid-row: 1 / span 3; }
.item h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.flag { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; vertical-align: 2px; }
.desc { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.tags li { font-size: 11.5px; color: var(--muted); background: var(--chip); border-radius: 5px; padding: 2px 7px; text-transform: lowercase; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; grid-column: 2; grid-row: 1; }
.thumb { grid-column: 2; grid-row: 2 / span 2; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; justify-self: end; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.scrim { position: fixed; inset: 0; background: rgba(20, 15, 10, .38); z-index: 20; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); max-height: 86vh; overflow: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .15); transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.sheet.open { transform: none; opacity: 1; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; border-radius: 22px; transform: translate(-50%, -46%); }
  .sheet.open { transform: translate(-50%, -50%); }
}
.sheet-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
.sheet-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.sheet-cat { margin: 0; font-size: 14px; color: var(--muted); }
.sheet h2 { font-family: var(--head); font-weight: var(--head-weight); font-size: calc(30px * var(--head-scale)); line-height: 1.1; margin: 6px 40px 6px 0; font-variation-settings: 'SOFT' 60, 'opsz' 60; }
.sheet-price { margin: 0; font-size: 19px; font-weight: 600; color: var(--accent); }
.sheet-desc { color: var(--ink); opacity: .85; margin: 12px 0 0; }
.btn-primary {
  width: 100%; margin-top: 22px; height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font: 600 16px var(--sans); cursor: pointer;
}
.btn-primary.added { background: var(--ink); color: var(--on-ink); }
.btn-primary:disabled { background: var(--chip); color: var(--muted); cursor: default; }
.btn-quiet {
  width: 100%; margin-top: 8px; height: 44px; border: 0; background: transparent; color: var(--muted);
  font: 500 14.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.variant {
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font: 500 15px var(--sans); color: var(--ink); cursor: pointer;
}
.variant[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.variant:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-variant { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.picks-off { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.pl-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-opened { font-size: 13px; color: var(--muted); }
.pl-buy { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.pl-buy.opened { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.pl-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Send my list: the shop's ways to take a list, as links into the shopper's own apps. */
.send { margin-top: 20px; }
.send-label { margin: 0 0 8px; font-weight: 600; }
.send-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.send-way {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px; border-radius: 14px;
  color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; font: 600 16px var(--sans); text-decoration: none; text-align: center;
}
.send-way.main { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.send-way:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-url { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--chip); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.picks .hint { color: var(--muted); margin: 0 0 6px; font-size: 14.5px; }
.pl-course { margin: 18px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.pl-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.pl-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.pl-price { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.pl-controls { display: flex; align-items: center; gap: 8px; }
.step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.qty { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-note { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 14px var(--sans); color: var(--ink); background: var(--bg); }
.pl-note:focus { outline: none; border-color: var(--accent); }
.picks-total { text-align: right; font-weight: 600; margin: 14px 0 0; }
.server-view { position: fixed; inset: 0; z-index: 40; background: #FFFFFF; color: #111; overflow: auto; color-scheme: light; }
.sv-inner { max-width: 640px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); }
.sv-place { margin: 0; font-size: 18px; color: #555; }
.server-view h2 { font-family: var(--head); font-weight: var(--head-weight); font-size: calc(40px * var(--head-scale)); line-height: 1.05; margin: 4px 0 18px; font-variation-settings: 'SOFT' 60, 'opsz' 96; }
.sv-course { margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 2px solid #111; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.sv-line { margin: 12px 0 0; font-size: 28px; line-height: 1.2; font-weight: 600; display: flex; gap: 14px; }
.sv-line b { color: var(--sv-accent); min-width: 26px; font-variant-numeric: tabular-nums; }
.sv-note { margin: 2px 0 0 40px; font-size: 20px; color: #444; font-style: italic; }
.sv-total { margin: 26px 0 0; font-size: 17px; color: #555; }
.sv-done { margin-top: 26px; width: 100%; height: 56px; border-radius: 14px; border: 2px solid #111; background: #fff; font: 600 18px var(--sans); color: #111; cursor: pointer; }
.picks-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  display: flex; gap: 14px; align-items: center; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 600 15px var(--sans); padding: 14px 22px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); cursor: pointer; white-space: nowrap;
}
.picks-bar #picks-sum { opacity: .75; font-weight: 500; }
.foot { max-width: var(--wrap); margin: 40px auto 0; padding: 0 20px; text-align: center; color: var(--muted); font-size: 12.5px; }
.foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sheet { transition: none; } }

/* ---------- Template flags ---------- */
.f-left .masthead { text-align: left; }
.f-left .tagline { margin-left: 0; }
.f-caps .item h3 { text-transform: uppercase; letter-spacing: .07em; font-size: 14.5px; }
.f-headnames .item h3 {
  font-family: var(--head); font-weight: var(--head-weight); font-size: calc(18px * var(--head-scale));
  letter-spacing: var(--head-track); text-transform: var(--head-case); font-stretch: var(--head-stretch);
}
.f-square { --radius: 0px; }
.f-square :is(.item, .thumb, .search, .cats a, .chip, .tags li, .btn-primary, .sheet, .sheet-img, .send-way, .picks-bar, .pl-buy, .section, .sv-done, .pl-note, .variant) { border-radius: 0; }

/* ---------- Layouts. The markup is the same in all ten; only placement and decoration change. ---------- */

/* Leaders: dotted lines from each name to its price. */
.look-leaders .masthead h1::after {
  content: ''; display: block; width: 64px; height: 2px; margin: 14px auto 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
}
.f-left.look-leaders .masthead h1::after { margin-left: 0; }
.look-leaders .section h2 { justify-content: center; text-align: center; font-size: calc(22px * var(--head-scale)); }
.look-leaders .section h2::before,
.look-leaders .section h2::after { content: ''; flex: 0 1 44px; height: 1px; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.look-leaders .item { grid-template-columns: minmax(0, max-content) minmax(18px, 1fr) auto; column-gap: 8px; border-bottom: 0; padding: 10px 4px; }
.look-leaders .item-text { display: contents; }
.look-leaders .item h3 { grid-column: 1; grid-row: 1; }
.look-leaders .item::after {
  content: ''; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: .45em;
  border-bottom: 2px dotted color-mix(in srgb, var(--ink) 38%, transparent);
}
.look-leaders .price { grid-column: 3; grid-row: 1; }
.look-leaders :is(.desc, .tags) { grid-column: 1 / -1; }
.look-leaders .item:has(.thumb) :is(.desc, .tags) { grid-column: 1 / 3; }
.look-leaders .thumb { grid-column: 3; grid-row: 2 / span 2; width: 64px; height: 64px; }

/* Cards: one card per item, two across when there's room. */
.look-cards .section h2::after { display: none; }
.look-cards .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; padding-top: 6px; }
.look-cards .item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  grid-template-rows: auto 1fr auto; align-content: start; overflow: hidden;
}
.look-cards .item:last-child { border-bottom: 1px solid var(--line); }
.look-cards .item:hover { background: var(--card); border-color: var(--accent); }
.look-cards .thumb {
  grid-column: 1 / -1; grid-row: 1; width: calc(100% + 32px); max-width: none; height: 150px; margin: -14px -16px 6px;
  border-radius: 0; justify-self: stretch;
}
.look-cards .item-text { grid-column: 1 / -1; grid-row: 2; }
.look-cards .price { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; align-self: end; }
.look-cards .desc { -webkit-line-clamp: 3; }

/* Poster: big headings and heavy rules. */
.look-poster .masthead { text-align: left; padding-top: 36px; }
.look-poster .masthead h1 { font-size: calc(clamp(42px, 13vw, 72px) * var(--head-scale)); line-height: .95; }
.look-poster .tagline { margin-left: 0; }
.look-poster .section h2 { border-top: 5px solid var(--ink); padding-top: 10px; font-size: calc(30px * var(--head-scale)); color: var(--accent); }
.look-poster .section h2::after { display: none; }
.look-poster .item { border-bottom: 1px solid color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 0; padding: 13px 0; }
.look-poster .item:last-child { border-bottom: 0; }
.look-poster .item h3 { font-size: 18px; }
.look-poster .price { font-size: 18px; font-weight: 800; color: var(--ink); }

/* Editorial: left-aligned and airy, with small labelled sections. */
.look-editorial .masthead { text-align: left; padding: 56px 20px 24px; }
.look-editorial .masthead h1 { font-size: calc(clamp(36px, 10vw, 56px) * var(--head-scale)); }
.look-editorial .tagline { margin-left: 0; max-width: 46ch; }
.look-editorial .section { padding-top: 40px; }
.look-editorial .section h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-stretch: normal; color: var(--accent);
}
.look-editorial .item { border-bottom: 0; padding: 14px 0; }
.look-editorial .price { font-weight: 500; color: var(--ink); }
.look-editorial .desc { -webkit-line-clamp: 3; }

/* Board: centred lines, like a chalkboard or a hand-lettered sign. */
.look-board .masthead h1 { font-size: calc(clamp(38px, 11vw, 60px) * var(--head-scale)); }
.look-board .section h2 { justify-content: center; text-align: center; font-size: calc(28px * var(--head-scale)); color: var(--accent); }
.look-board .section h2::before,
.look-board .section h2::after { content: ''; flex: 0 1 40px; height: 0; background: none; border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.look-board .item {
  grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px 8px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}
.look-board :is(.item-text, .price, .thumb) { grid-column: 1; grid-row: auto; }
.look-board .price { order: 1; color: var(--accent); font-size: 17px; }
.look-board .thumb { order: 2; justify-self: center; margin-top: 8px; }
.look-board .item h3 { font-size: 18px; }
.look-board .tags { justify-content: center; }
.look-board .desc { -webkit-line-clamp: 3; }

/* Boxed: each section in its own frame, with the name on the border. */
.look-boxed .section {
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: var(--radius);
  padding: 22px 14px 6px; margin-top: 34px; background: var(--card);
}
.look-boxed .section h2 {
  display: table; margin: -37px auto 8px; padding: 0 12px; font-size: calc(21px * var(--head-scale));
  background: linear-gradient(var(--bg) 50%, var(--card) 50%);
}
.look-boxed .section h2::after { display: none; }

/* Compact: a tight price list, two columns on wider screens. */
.look-compact .masthead { padding: 28px 20px 12px; }
.look-compact .masthead h1 { font-size: calc(clamp(28px, 7vw, 38px) * var(--head-scale)); }
.look-compact .section { padding-top: 18px; }
.look-compact .section h2 { font-size: calc(16px * var(--head-scale)); background: var(--chip); padding: 7px 10px; border-radius: 8px; margin-bottom: 2px; }
.look-compact .section h2::after { display: none; }
.look-compact .item { padding: 9px 6px; gap: 2px 12px; }
.look-compact .item h3 { font-size: 15.5px; }
.look-compact .desc { font-size: 13.5px; -webkit-line-clamp: 1; }
.look-compact .tags { margin-top: 4px; }
.look-compact .thumb { width: 52px; height: 52px; border-radius: 8px; }
@media (min-width: 640px) {
  .look-compact .items { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .look-compact .item:last-child { border-bottom: 1px solid var(--line); }
}

/* Diner: striped rows and prices in pills. */
.look-diner .masthead h1 { color: var(--accent); }
.look-diner .section h2 { display: block; text-align: center; font-size: calc(22px * var(--head-scale)); }
.look-diner .section h2::after { display: none; }
.look-diner .item { border-bottom: 0; border-radius: 12px; padding: 12px; }
.look-diner .item:nth-child(odd) { background: var(--chip); }
.look-diner .item:nth-child(odd) .tags li { background: var(--bg); }
.look-diner .item:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.look-diner .price { align-self: start; background: var(--accent); color: var(--on-accent); padding: 3px 10px; border-radius: 999px; font-size: 14.5px; }

/* Split: on a wide screen, section names sit in a column beside their items. */
.look-split .section h2 { border-left: 4px solid var(--accent); padding-left: 12px; }
.look-split .section h2::after { display: none; }
@media (min-width: 820px) {
  .look-split { --wrap: 900px; }
  .look-split .masthead { text-align: left; }
  .look-split .tagline { margin-left: 0; }
  .look-split .section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px; align-items: start; padding-top: 34px; }
  .look-split .section h2 { position: sticky; top: 130px; font-size: calc(26px * var(--head-scale)); }
}

/* ---------- The reading spot ----------
   <body class="spot">: one item at a time is open (.in-focus), the one at the reading spot. menu.js moves it when
   the page comes to rest, and puts data-ll-spot on it for the tag. The open item shows its photo large and all its
   details on a tinted panel with a bar in the accent beside it; every other item folds to one line: a small photo,
   the name and the price. Folded descriptions and tags stay readable to screen readers. Items run one per row in
   this mode, so opening one never reshuffles the others. --focus-bg and --focus-accent are worked out per design so
   every kind of text on the panel stays readable (src/templates.js). */
.spot main .items { grid-template-columns: minmax(0, 1fr); }
.spot main .item-text { display: contents; }
.spot main .item {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; grid-template-areas: "name price";
  align-items: center; column-gap: 12px; row-gap: 0;
}
.spot main .item.tiled { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb name price"; }
.spot main .items .item h3 { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.spot main .items .item .price { grid-area: price; align-self: center; margin: 0; }
.spot main .items .item .thumb { grid-area: thumb; width: 44px; height: 44px; margin: 0; border-radius: 8px; justify-self: start; }
.spot main .items .item .desc { grid-area: desc; }
.spot main .items .item .tags { grid-area: tags; }
.spot main .item:not(.in-focus) :is(.desc, .tags) {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Open. menu.js gives every open item the same extra height over its folded one, so the open item can move on
   every scroll frame without anything else on the page moving; its content sits at the top of that height. */
.spot main .items .item { transition: none; }
.spot main .items .item.in-focus {
  grid-template-areas: "name price" "desc desc" "tags tags"; align-items: start; align-content: start;
  background: var(--focus-bg); box-shadow: 0 0 0 6px var(--focus-bg), 0 12px 28px -12px rgba(40, 25, 10, .4); z-index: 1;
}
.spot main .items .item.in-focus.has-img { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "thumb thumb" "name price" "desc desc" "tags tags"; }
.spot main .items .item.in-focus.no-img { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art name price" "art desc desc" "art tags tags"; column-gap: 14px; }
.is-dark.spot main .items .item.in-focus { box-shadow: 0 0 0 6px var(--focus-bg), 0 0 0 7px color-mix(in srgb, var(--accent) 45%, transparent); }
.spot main .items .item.in-focus::before {
  content: ''; position: absolute; left: -11px; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--accent);
}
.spot main .items .item.in-focus .thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 10px; border-radius: 12px; }
.spot main .items .item.in-focus .desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-top: 6px; color: var(--ink);
}
.spot main .items .item.in-focus :is(.price, .flag) { color: var(--focus-accent); }
.look-diner.spot main .items .item.in-focus .price { color: var(--on-accent); }

/* Leaders: the dotted line runs between the name and the price, folded or open. */
.look-leaders.spot main .item { grid-template-columns: minmax(0, max-content) minmax(18px, 1fr) auto; grid-template-areas: "name lead price"; }
.look-leaders.spot main .item.tiled { grid-template-columns: auto minmax(0, max-content) minmax(18px, 1fr) auto; grid-template-areas: "thumb name lead price"; }
.look-leaders.spot main .item::after { grid-area: lead; align-self: center; margin-bottom: 0; }
.look-leaders.spot main .items .item.in-focus { grid-template-areas: "name lead price" "desc desc desc" "tags tags tags"; }
.look-leaders.spot main .items .item.in-focus.has-img {
  grid-template-columns: minmax(0, max-content) minmax(18px, 1fr) auto; grid-template-areas: "thumb thumb thumb" "name lead price" "desc desc desc" "tags tags tags";
}
.look-leaders.spot main .items .item.in-focus.no-img {
  grid-template-columns: auto minmax(0, max-content) minmax(18px, 1fr) auto; grid-template-areas: "art name lead price" "art desc desc desc" "art tags tags tags";
}
.look-leaders.spot main .items .item.in-focus::after { align-self: end; margin-bottom: .45em; }

/* Board: centred lines; an open item stacks its details down the middle. */
.look-board.spot main .item { grid-template-columns: auto auto; justify-content: center; }
.look-board.spot main .item.tiled { grid-template-columns: auto auto auto; }
.look-board.spot main .items .item.in-focus { grid-template-columns: minmax(0, 1fr); justify-content: stretch; grid-template-areas: "name" "price" "desc" "tags"; }
.look-board.spot main .items .item.in-focus.has-img { grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "name" "price" "desc" "tags"; }
.look-board.spot main .items .item.in-focus.no-img { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "name" "price" "desc" "tags"; }
.look-board.spot main .items .item.in-focus .price { margin-top: 4px; }

/* Cards: folded cards are one slim line; the open card shows its photo edge to edge. */
.look-cards.spot main .items { gap: 8px; }
.look-cards.spot main .item { padding: 10px 14px; }
.look-cards.spot main .items .item.in-focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 28px -12px rgba(40, 25, 10, .4); }
.is-dark.look-cards.spot main .items .item.in-focus { box-shadow: 0 0 0 1px var(--accent); }
.look-cards.spot main .items .item.in-focus .thumb { width: calc(100% + 28px); max-width: none; margin: -10px -14px 10px; border-radius: 0; aspect-ratio: 16 / 10; }

/* Compact: a smaller photo or letter tile on folded rows, to stay tight. */
.look-compact.spot main .items .item:not(.in-focus) :is(.thumb, .art) { width: 36px; height: 36px; }

/* ---------- Items without a photo ----------
   Nothing about the reading spot changes. In a menu where some items have photos, the others get a letter tile
   the size of a thumbnail (.tiled .art), so names line up and every folded row is the same height. When an item
   without a photo opens, its initial appears on a disc beside it, in the design's heading font and the panel's
   accent (a pair the contrast tests cover), and the name steps up a size. */
.spot main .items .item .art { display: none; }
.spot main .items .item .art b { font-weight: inherit; }
.spot main .items .item.tiled .art {
  display: grid; place-items: center; grid-area: thumb; width: 44px; height: 44px; border-radius: 8px;
  background: var(--chip); color: var(--muted); font: 600 19px/1 var(--head); text-transform: none; letter-spacing: 0;
}
.spot main .items .item.in-focus.no-img .art {
  display: grid; place-items: center; grid-area: art; align-self: start; width: 52px; height: 52px; margin: 0;
  background: none; border-radius: 0;
}
.spot main .items .item.in-focus.no-img .art b {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--focus-bg);
  box-shadow: 0 0 0 1.5px var(--focus-accent), 0 0 0 4px var(--focus-bg), 0 0 0 5px color-mix(in srgb, var(--focus-accent) 45%, transparent);
  color: var(--focus-accent); font: 600 23px/1 var(--head); text-transform: none; letter-spacing: 0;
}
.spot main .items .item.in-focus.no-img h3 { font-size: 1.2em; line-height: 1.2; }
.spot main .items .item.in-focus.no-img .price { font-size: 1.12em; }
.spot main .items .item.in-focus.no-img .desc { margin-top: 4px; }
.f-square.spot main .items .item .art, .f-square.spot main .items .item.in-focus.no-img .art b { border-radius: 0; }
/* Board: the initial sits centred above the name. */
.look-board.spot main .items .item.in-focus.no-img .art { justify-self: center; margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .spot main .items .item.in-focus .art { animation: none; } }

/* ---------- Graphics ----------
   Each design has a kit (src/templates.js): a thin edge across the top of the page and a mark, both inline SVG in
   the design's accent. The mark appears in an ornament under the masthead, beside each section heading, and in a
   closing ornament after the last section. Items, the detail sheet and the server screen are never decorated. */
.g-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.g-edge { display: block; width: 100%; color: var(--accent); fill: currentColor; }
.g-mark { flex: none; width: 1em; height: 1em; fill: currentColor; color: var(--accent); overflow: visible; }

.g-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0; color: var(--accent); }
.g-orn::before, .g-orn::after { content: ''; width: 52px; height: 1px; background: currentColor; opacity: .55; }
.g-orn .g-mark { width: 16px; height: 16px; }
:is(.f-left, .look-poster, .look-editorial) .g-orn { justify-content: flex-start; }
:is(.f-left, .look-poster, .look-editorial) .g-orn::before { display: none; }
@media (min-width: 900px) { .look-split .g-orn { justify-content: flex-start; } .look-split .g-orn::before { display: none; } }
.look-leaders .masthead h1::after { display: none; }   /* the ornament takes the place of Leaders' double rule */

.section h2 .g-mark { width: max(.55em, 9px); height: max(.55em, 9px); }
.section h2 .g-trail { display: none; }
:is(.look-leaders, .look-board, .look-diner) .section h2 .g-trail { display: block; }
.look-diner .section h2 .g-mark { display: inline-block; vertical-align: .1em; margin: 0 .5em; }
.look-board .section h2 .g-mark { width: .42em; height: .42em; }

.g-end { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 44px 0 6px; color: var(--accent); }
.g-end::before, .g-end::after { content: ''; flex: 0 1 72px; height: 1px; background: currentColor; opacity: .5; }
.g-end .g-sm { width: 10px; height: 10px; opacity: .75; }
.g-end .g-lg { width: 22px; height: 22px; }
.g-edge.g-foot { margin-top: 28px; transform: scaleY(-1); }   /* the top edge again, flipped, closing the page */
