/* F&B-DEC Explorer — a venue menu re-typeset with its footprint.
   Two inks on white stock: black for text, reflex blue for data and selection. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --paper-2: #f4f5f8;
  --paper-3: #eaecf1;
  --ink: #15171c;
  --ink-2: #464b56;
  --ink-3: #676d7a;
  --rule: #dcdfe5;
  --rule-2: #c4c8d0;
  --spot: #2140b8;
  --spot-ink: #1a3396;
  --spot-wash: #e9edfb;
  --spot-wash-2: #f4f6fd;
  --spot-track: #dfe4f6;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cond: 72%;
  --col: 5.25rem;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule-2) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.5;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--spot);
}
::selection { background: var(--spot); color: #fff; }
sub { font-size: 0.7em; line-height: 0; vertical-align: -0.2em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--spot-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: 0.5rem 0.75rem; z-index: 50; border-radius: var(--radius); }
.skip:focus { top: 0.75rem; }
.i { width: 1rem; height: 1rem; flex: none; }
.num, .tnum { font-variant-numeric: tabular-nums; }

.shell { max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 32px); }

/* ---------- Masthead ---------- */
.masthead { border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand tagline indicator" "tabs tabs tabs";
  column-gap: 28px; align-items: center; padding-top: 16px;
}
.brand { grid-area: brand; display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
.brand-mark { font-weight: 850; font-stretch: 62%; font-size: 2.25rem; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.brand-sub { font-weight: 500; font-stretch: 85%; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.tagline { grid-area: tagline; margin: 0; max-width: 62ch; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.tabs { grid-area: tabs; display: flex; gap: 28px; margin-top: 14px; }
.tabs a {
  position: relative; padding: 10px 0 11px; color: var(--ink-2); text-decoration: none;
  font-stretch: var(--cond); font-weight: 650; font-size: 1rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--spot); }

.indicator { grid-area: indicator; display: flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.indicator button {
  display: grid; justify-items: start; gap: 0; padding: 5px 14px 6px; border: 0; background: var(--paper); text-align: left; min-width: 7.25rem;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.indicator button + button { border-left: 1px solid var(--ink); }
.indicator .ind-short { font-weight: 800; font-stretch: var(--cond); font-size: 1.05rem; letter-spacing: 0.05em; line-height: 1.1; }
.indicator .ind-unit { font-size: 0.75rem; color: var(--ink-3); line-height: 1.2; }
.indicator button:hover { background: var(--spot-wash-2); }
.indicator button[aria-checked="true"] { background: var(--spot); color: #fff; }
.indicator button[aria-checked="true"] .ind-unit { color: #d9e0fb; }

/* ---------- Shared controls ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 12px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 16rem; max-width: 26rem; }
.search .i { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 10px 0 34px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:hover { border-color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }
.select select, .venue-select select {
  height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%2315171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.select select:focus, .venue-select select:focus { outline: none; border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }

.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 2px; gap: 2px; background: var(--paper); }
.seg button {
  border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 3px; font-size: 0.875rem; font-weight: 550; color: var(--ink-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.seg button:hover { background: var(--paper-2); color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--paper); font-size: 0.875rem; font-weight: 550; color: var(--ink-2);
}
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 0; color: var(--spot-ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---------- Menus view ---------- */
.view-menus {
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) 27rem; gap: 0 36px; align-items: start; padding: 28px 0 64px;
}
.venue-index { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.index-head {
  display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink);
  font-stretch: var(--cond); font-weight: 750; font-size: 0.95rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.index-note { font-stretch: 100%; font-weight: 400; font-size: 0.75rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
#venue-list { list-style: none; margin: 0; padding: 0; }
.vbtn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name med" "strip strip"; gap: 1px 8px;
  width: 100%; padding: 7px 8px 6px; border: 0; border-radius: var(--radius); background: none; text-align: left;
  transition: background-color 140ms var(--ease);
}
.vbtn:hover { background: var(--paper-2); }
.vbtn[aria-current="true"] { background: var(--spot-wash); }
.vbtn-name { grid-area: name; font-weight: 650; font-size: 0.9375rem; }
.vbtn-name small { font-weight: 400; color: var(--ink-3); font-size: 0.75rem; margin-left: 4px; }
.vbtn-med { grid-area: med; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; align-self: baseline; }
.vbtn svg { grid-area: strip; width: 100%; height: auto; display: block; overflow: visible; margin-top: 2px; }
.strip-track { stroke: var(--rule); stroke-width: 1; }
.strip-dot { fill: var(--spot); fill-opacity: 0.32; }
.strip-med { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.index-foot { display: flex; gap: 8px; align-items: flex-start; margin: 12px 8px 0; font-size: 0.75rem; line-height: 1.4; color: var(--ink-3); }
.index-foot .i { width: 20px; height: 12px; margin-top: 2px; color: var(--spot); }

.venue-select { display: none; }
.menu-head { padding: 4px 0 18px; }
.venue-title {
  margin: 0; font-weight: 850; font-stretch: 62%; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase;
  text-wrap: balance;
}
.venue-about { margin: 8px 0 0; max-width: 68ch; color: var(--ink-2); font-style: italic; font-size: 0.9375rem; text-wrap: pretty; }
.venue-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule); }
.venue-facts div { display: grid; gap: 0; }
.venue-facts dt { font-stretch: var(--cond); font-weight: 650; font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.venue-facts dd { margin: 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.venue-facts dd small { font-weight: 400; color: var(--ink-3); font-size: 0.75rem; }

.menu { min-width: 0; }
.menu .controls { margin-top: 2px; }
.cols {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, var(--col)); column-gap: 0; align-items: end;
  padding: 8px 0 7px 8px; background: var(--paper); border-bottom: 1.5px solid var(--ink);
}
.cols button {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; text-align: left;
  font-stretch: var(--cond); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.cols button small { font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.6875rem; }
.cols button.num {
  display: grid; grid-template-columns: auto auto; grid-template-areas: "icon lbl" ". unit"; justify-content: end; justify-items: end; align-items: center;
  column-gap: 3px; padding-left: 14px; line-height: 1.2;
}
.cols button.num .lbl { grid-area: lbl; }
.cols button.num small { grid-area: unit; }
.cols button.num .i { grid-area: icon; }
.cols [data-sort="cf"], .cols [data-sort="ef"] { padding-right: 8px; }
.cols button:hover { color: var(--ink); }
.cols button[aria-pressed="true"] { color: var(--ink); }
.cols button .i { width: 10px; height: 10px; transition: transform 160ms var(--ease); }
.cols button[data-dir="asc"] .i { transform: rotate(180deg); }

.cat-head {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 2px; padding: 0 8px;
  font-stretch: var(--cond); font-weight: 750; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.cat-head::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.cat-head small { font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.75rem; color: var(--ink-3); order: 2; }
.venue-head {
  margin: 40px 0 0; padding: 0 8px 6px; border-bottom: 1.5px solid var(--ink);
  font-weight: 850; font-stretch: 62%; font-size: 1.75rem; line-height: 1; text-transform: uppercase;
}
.venue-head:first-child { margin-top: 18px; }
.menu-list > .cat-head:first-child { margin-top: 16px; }

.dishes { list-style: none; margin: 0; padding: 0; }
.dish {
  --row: var(--paper);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, var(--col)); column-gap: 0; row-gap: 3px; align-items: last baseline;
  width: 100%; padding: 9px 0 10px 8px; border: 0; border-radius: var(--radius); background: var(--row); text-align: left;
  transition: background-color 120ms var(--ease);
}
.dish:hover { --row: var(--paper-2); }
.dish[aria-current="true"] { --row: var(--spot-wash); }
.dish-line { display: block; min-width: 0; padding-right: 0.5rem; }
.dish-name { font-weight: 620; font-size: 0.975rem; line-height: 1.3; text-wrap: pretty; }
.dish-name::after {
  content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
  position: absolute; padding-left: 0.45em; white-space: nowrap; pointer-events: none;
  font-weight: 400; letter-spacing: 0.02em; color: var(--ink-3); opacity: 0.55;
}
.dish .v {
  position: relative; z-index: 1; background: var(--row); transition: background-color 120ms var(--ease);
  text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9375rem; color: var(--ink-3); padding-left: 14px;
}
.dish .v.cf, .dish .v.ef { padding-right: 8px; }
.dish .v.price { background: none; padding-left: 0; }
.dish .v.price span { background: var(--row); padding-left: 0.4em; transition: background-color 120ms var(--ease); }
.dish-meta { align-self: start; padding-right: 0.5rem; }
.dish .v.on { color: var(--ink); font-weight: 700; }
.dish-meta { grid-column: 1; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); font-style: italic; text-wrap: pretty; }
.dish-meta .where { font-style: normal; color: var(--ink-3); }
.dish-meta .size { font-style: normal; color: var(--ink-3); }
mark { background: var(--spot-wash); color: var(--spot-ink); border-radius: 2px; padding: 0 1px; box-shadow: inset 0 -1.5px 0 var(--spot); }

.empty { padding: 40px 8px; color: var(--ink-2); }
.glance-btn { display: none; }
.empty p { margin: 0 0 12px; }
.empty .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Recipe card ---------- */
.card {
  position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin;
  background: var(--paper); border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 2px 22px; outline: none;
}
.card-close { display: none; }
.card-title {
  margin: 0; font-weight: 820; font-stretch: 68%; font-size: 1.9rem; line-height: 1.02; text-transform: uppercase; letter-spacing: 0; text-wrap: balance;
}
.card-sub { display: flex; flex-wrap: wrap; row-gap: 2px; margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-sub span { white-space: nowrap; }
.card-sub span + span::before { content: "·"; margin: 0 7px; color: var(--ink-3); }
.card-desc { margin: 8px 0 0; font-style: italic; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.card-extras { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 12px 0 0; font-size: 0.8125rem; }
.card-extras dt { color: var(--ink-3); }
.card-extras dd { margin: 0; color: var(--ink-2); }

.figs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.figs > div { padding: 10px 0 12px; }
.figs > div + div { padding-left: 16px; border-left: 1px solid var(--rule-2); }
.figs dt { font-stretch: var(--cond); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.figs dd { margin: 2px 0 0; }
.figs .big { font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.figs .unit { margin-left: 4px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.figs .rank { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-3); line-height: 1.35; }
.figs .on dt { color: var(--spot-ink); }
.figs .off .big { color: var(--ink-2); font-weight: 600; }

.card h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 8px;
  font-stretch: var(--cond); font-weight: 750; font-size: 0.9375rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.card h3 small { font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.75rem; color: var(--ink-3); text-align: right; }

.recipe { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.recipe th { padding: 0 0 5px; font-weight: 500; font-size: 0.6875rem; color: var(--ink-3); text-align: right; border-bottom: 1px solid var(--rule-2); vertical-align: bottom; line-height: 1.2; }
.recipe th:first-child { text-align: left; }
.recipe td { padding: 6px 0 5px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
.recipe td:first-child { text-align: left; padding-right: 8px; }
.recipe td + td, .recipe th + th { padding-left: 8px; }
.recipe .comp-name { display: block; line-height: 1.3; }
.recipe .share { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.recipe .share i { display: block; height: 100%; width: var(--w); background: var(--spot); border-radius: 0 2px 2px 0; transform-origin: left; }
.recipe td.c { font-weight: 650; color: var(--ink); }
.recipe tfoot td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-weight: 700; padding-top: 7px; }
.recipe .sub td { border-bottom: 0; padding-top: 2px; padding-bottom: 2px; color: var(--ink-3); font-size: 0.75rem; }
.recipe .sub td:first-child { padding-left: 16px; }
.recipe .sub:last-of-type td { padding-bottom: 6px; }
.comp-toggle { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 0; text-align: left; line-height: 1.3; }
.comp-toggle .i { width: 10px; height: 10px; color: var(--ink-3); transition: transform 160ms var(--ease); }
.comp-toggle[aria-expanded="true"] .i { transform: rotate(90deg); }
.comp-toggle { flex-wrap: wrap; }
.comp-toggle em { flex-basis: 100%; padding-left: 13px; font-style: normal; font-size: 0.6875rem; color: var(--ink-3); }
.comp-toggle:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

.card-notes { margin: 12px 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--ink-3); }
.card-notes p { margin: 0 0 6px; }
.card-notes b { font-weight: 600; color: var(--ink-2); }

.glance-list { list-style: none; margin: 0; padding: 0; }
.glance-list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; text-align: left; font-size: 0.875rem;
}
.glance-list button:hover .gl-name { color: var(--spot-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.gl-name { min-width: 0; }
.gl-name small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.gl-v { font-variant-numeric: tabular-nums; font-weight: 650; }
.card-hint { margin: 10px 0 0; font-size: 0.875rem; font-style: italic; color: var(--ink-2); line-height: 1.45; }

/* ---------- Horizontal bars (hotspots, categories, glance) ---------- */
.hbars { list-style: none; margin: 0; padding: 0; }
.hbar {
  display: grid; grid-template-columns: minmax(7rem, 11.5rem) minmax(0, 1fr) 4.25rem; column-gap: 12px; align-items: center;
  width: 100%; padding: 4px 0; border: 0; background: none; text-align: left; font-size: 0.875rem;
}
button.hbar { border-radius: var(--radius); }
button.hbar:hover { background: var(--paper-2); }
button.hbar:hover .hb-name { color: var(--spot-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.hb-name { min-width: 0; line-height: 1.25; }
.hb-name small { color: var(--ink-3); font-size: 0.75rem; margin-left: 4px; white-space: nowrap; }
.hb-track { height: 14px; position: relative; }
.hb-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 2px; background: var(--spot); border-radius: 0 4px 4px 0; }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.card .hbar { grid-template-columns: minmax(0, 1fr) 5.5rem 3.25rem; font-size: 0.8125rem; padding: 3px 0; }
.card .hb-track { height: 8px; }

/* ---------- Portfolio ---------- */
.view-portfolio, .view-ingredients { padding: 32px 0 72px; }
.page-head { margin-bottom: 20px; }
.page-title { margin: 0; font-weight: 850; font-stretch: 62%; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 0.95; text-transform: uppercase; }
.page-lede { margin: 10px 0 0; max-width: 70ch; color: var(--ink-2); font-size: 0.9375rem; }

.fig { margin: 0 0 44px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.fig figcaption { margin-bottom: 14px; }
.fig h2 { margin: 0; font-weight: 800; font-stretch: 70%; font-size: 1.4rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }
.fig figcaption p { margin: 6px 0 0; max-width: 78ch; font-size: 0.875rem; color: var(--ink-2); text-wrap: pretty; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }

.axis text, .ax-label { font-family: var(--font); font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ax-title { font-family: var(--font); font-size: 12px; fill: var(--ink-2); }
.grid line { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.row-label { font-family: var(--font); font-size: 13px; font-weight: 620; fill: var(--ink); }
.row-num { font-family: var(--font); font-size: 12px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.row-hit { fill: transparent; cursor: pointer; }
.row-hit:hover, .row-hit:focus-visible { fill: var(--spot-wash-2); outline: none; }
.row-hit:focus-visible { stroke: var(--spot); stroke-width: 2; }
.box { fill: var(--spot-wash); stroke: var(--spot); stroke-width: 1; }
.whisk { stroke: var(--spot); stroke-width: 1; }
.med { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.pt { fill: var(--spot); fill-opacity: 0.4; }
.mk-dish { fill: var(--spot); fill-opacity: 0.78; stroke: var(--paper); stroke-width: 1; }
.mk-drink { fill: var(--paper); fill-opacity: 0.5; stroke: var(--ink); stroke-opacity: 0.7; stroke-width: 1.25; }
.frontier { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.hover-ring { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.hover-ring-in { fill: none; stroke: var(--paper); stroke-width: 2; pointer-events: none; }
.stat-note { font-family: var(--font); font-size: 12.5px; fill: var(--ink); font-weight: 600; }

.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 17rem; padding: 8px 10px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 0.8125rem; line-height: 1.35; box-shadow: 0 6px 18px rgba(21, 23, 28, 0.22);
}
.tip b { display: block; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.tip span { display: block; color: #c9ccd4; }

/* ---------- Ingredients ---------- */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--ink); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th { position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 8px 10px 7px; text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--ink); }
table.data th.num { text-align: right; }
table.data th button {
  display: inline-flex; flex-direction: column; align-items: inherit; gap: 0; border: 0; background: none; padding: 0; text-align: inherit;
  font-stretch: var(--cond); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
table.data th.num button { align-items: flex-end; }
table.data th button small { font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.6875rem; }
table.data th button:hover, table.data th button[aria-pressed="true"] { color: var(--ink); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
table.data td.num { text-align: right; }
table.data tbody tr.row { cursor: pointer; }
table.data tbody tr.row:hover td { background: var(--paper-2); }
table.data tbody tr.row[aria-expanded="true"] td { background: var(--spot-wash); border-bottom-color: transparent; }
table.data .ing-name { font-weight: 620; }
table.data .row-btn { border: 0; background: none; padding: 0; font-weight: 620; text-align: left; display: inline-flex; gap: 4px; align-items: center; }
table.data .row-btn .i { width: 10px; height: 10px; color: var(--ink-3); transition: transform 160ms var(--ease); }
table.data tr[aria-expanded="true"] .row-btn .i { transform: rotate(90deg); }
table.data .detail td { background: var(--spot-wash); padding: 2px 10px 14px 24px; font-size: 0.8125rem; color: var(--ink-2); }
table.data .detail p { margin: 0 0 4px; max-width: 90ch; }
table.data .detail b { font-weight: 600; color: var(--ink); }
table.data .cat-sub { display: none; }
table.data .unit-sub { color: var(--ink-3); font-size: 0.75rem; }
.share-cell { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share-cell i { display: inline-block; height: 6px; width: var(--w); max-width: 60px; background: var(--spot); border-radius: 0 3px 3px 0; }
.share-cell .z { color: var(--ink-3); }

.section-title { margin: 48px 0 0; padding-top: 14px; border-top: 1.5px solid var(--ink); font-weight: 800; font-stretch: 70%; font-size: 1.4rem; text-transform: uppercase; }
.section-lede { margin: 6px 0 14px; max-width: 78ch; font-size: 0.875rem; color: var(--ink-2); }
.composites { columns: 3 20rem; column-gap: 32px; }
.composites details { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.composites summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 0.875rem; }
.composites summary::-webkit-details-marker { display: none; }
.composites summary b { font-weight: 620; }
.composites summary span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.composites summary:hover b { color: var(--spot-ink); }
.composites table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.composites td { padding: 2px 0; color: var(--ink-2); }
.composites td + td { text-align: right; padding-left: 10px; }

.colophon { border-top: 1px solid var(--ink); padding: 18px 0 28px; font-size: 0.8125rem; color: var(--ink-3); }
.colophon p { margin: 0; max-width: 90ch; }

/* ---------- Motion: the recipe card unfolds ---------- */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card.enter .recipe tbody tr { animation: rise 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
.card.enter .recipe .share i { animation: grow 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms + 140ms); }
.card.enter .figs .big { animation: rise 380ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .view-menus { grid-template-columns: 14rem minmax(0, 1fr); }
  .card {
    position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(29rem, 100vw); max-height: none; border-radius: 0;
    background: var(--paper); border: 0; padding: 22px 22px 26px; box-shadow: -12px 0 32px rgba(21, 23, 28, 0.16);
    transform: translateX(104%); visibility: hidden; transition: transform 320ms var(--ease), visibility 0s linear 320ms;
  }
  .card.open { transform: none; visibility: visible; transition: transform 360ms var(--ease), visibility 0s; }
  .card-close {
    display: inline-flex; position: sticky; top: 0; float: right; margin: -8px -8px 0 8px; width: 36px; height: 36px; align-items: center; justify-content: center;
    border: 1px solid var(--rule-2); border-radius: 50%; background: var(--paper); z-index: 2;
  }
  .card-close:hover { border-color: var(--ink); }
  .scrim { position: fixed; inset: 0; z-index: 39; background: rgba(21, 23, 28, 0.28); }
  .glance-btn { display: inline-flex; }
}
@media (max-width: 980px) {
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand indicator" "tagline tagline" "tabs tabs"; }
  .tagline { margin-top: 10px; }
  .fig-pair { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .view-menus { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .venue-index { display: none; }
  .venue-select { display: block; margin-bottom: 12px; }
  .venue-select select { width: 100%; font-weight: 600; }
}
@media (max-width: 640px) {
  :root { --col: 4.1rem; }
  .brand-mark { font-size: 1.9rem; }
  .brand-sub { display: none; }
  .indicator button { min-width: 0; padding: 4px 10px 5px; }
  .tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs a { font-size: 0.9375rem; }
  .cols, .dish { grid-template-columns: minmax(0, 1fr) repeat(2, var(--col)); }
  .dish .v, .cols button.num { padding-left: 10px; }
  .dish .v.price { padding-left: 0; }
  .dish .v.cf, .dish .v.ef { padding-right: 6px; }
  .cols [data-sort="cf"], .cols [data-sort="ef"] { padding-right: 6px; }
  .menu-list[data-ind="cf"] .v.ef, .menu-list[data-ind="ef"] .v.cf { display: none; }
  .cols[data-ind="cf"] [data-sort="ef"], .cols[data-ind="ef"] [data-sort="cf"] { display: none; }
  .controls .search { flex-basis: 100%; max-width: none; }
  .menu .controls { flex-wrap: nowrap; display: grid; grid-template-columns: auto auto 1fr; }
  .menu .controls .search { grid-column: 1 / -1; }
  .menu .controls .btn-label { display: none; }
  .menu .controls .glance-btn { justify-self: end; }
  .venue-facts { gap: 6px 18px; }
  .hbar { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 3.75rem; }
  .card { padding: 18px 16px 24px; }
  .cat-col { display: none; }
  table.data .cat-sub { display: block; margin-left: 14px; font-size: 0.75rem; color: var(--ink-3); }
  table.data th, table.data td { padding-left: 6px; padding-right: 6px; }
  #ing-table[data-ind="cf"] .ef-col, #ing-table[data-ind="ef"] .cf-col { display: none; }
  .share-cell i, table.data .unit-sub { display: none; }
}
@media print {
  .masthead .indicator, .tabs, .controls, .venue-index, .card, .scrim, .colophon { display: none !important; }
  .view-menus { display: block; }
  .cols { position: static; }
}
@media (forced-colors: active) {
  .hb-track i, .recipe .share i { background: CanvasText; }
  .indicator button[aria-checked="true"], .seg button[aria-checked="true"] { outline: 2px solid Highlight; }
}
