/* COUNTER — Café Portico.
   The printed card's two-tone sage system, rebuilt in live type.

   The client's own pairing (olive_deep #636C59 type on sage_panel #BDC5B8)
   measures 3.10:1 and fails WCAG AA. The hues here are the client's; only the
   luminance moved, to --type #2F3529 (7.12:1 on the panel) and --field #434A3C
   (8.07:1 under paper). */

:root {
  --panel: #BDC5B8;
  --panel-lift: #C7CDC2;
  --olive: #636C59;
  --field: #434A3C;
  --field-deep: #363C30;
  --ink: #0A0509;
  --paper: #F2F0EA;
  --sage: #9BA694;
  --type: #2F3529;
  --type-soft: #434A3C;
  /* Secondary text tinted from the ground it sits on, never gray, and never
     below 4.5:1. sage_mid reads 3.62:1 on the olive field, so the field and the
     ink chrome get different dim steps: panel on field (5.19), sage on ink
     (7.97), type-soft on panel (5.19). */
  --dim: #434A3C;
  --rule: rgba(47, 53, 41, .26);
  --rule-soft: rgba(47, 53, 41, .14);
  --rule-light: rgba(242, 240, 234, .28);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", Times, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Helvetica, Arial, sans-serif;

  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4rem;  --s9: 6rem;
  --wrap: 68rem;
  --stick: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

/* height:auto must sit in the reset: a width and height attribute pair on an
   image element silently overrides CSS aspect-ratio without it. */
img { display: block; max-width: 100%; height: auto; }

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

body {
  margin: 0;
  background: var(--panel);
  color: var(--type);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0;
  line-height: 1.1; text-wrap: balance; }
p, ul, ol, dl, table, figure { margin: 0; }
ul.plain, ul[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-decoration-color: var(--rule); transition: text-decoration-color .18s ease; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--field);
  outline-offset: 3px;
  border-radius: 1px;
}
.field :focus-visible, .card :focus-visible, .mast :focus-visible,
.top :focus-visible, .foot :focus-visible { outline-color: var(--paper); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 60rem) { .wrap { width: min(100% - 5rem, var(--wrap)); } }

/* Grid children default to min-width:auto and refuse to shrink below their
   content. At 320px, or at 200% text resize, that is what pushes a page
   sideways, so every grid in this stylesheet opts out. */
.card-facts > *, .mast-side > *, .tgrid > *, .wgrid > *, .cgrid > *,
.fgrid > *, .fgrid-2 > *, .plates > *, .ices > *, .boards > *,
.myo .tables > *, .prow > *, .hrow > *, .dish > * { min-width: 0; }
.addr, .ent, .prow dd, a[href^="mailto"] { overflow-wrap: break-word; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--s4); top: -4rem; z-index: 60;
  background: var(--paper); color: var(--ink);
  padding: var(--s2) var(--s4); font: 500 .875rem/1 var(--sans);
  transition: top .18s ease;
}
.skip:focus { top: var(--s3); }

/* ---- shared type ------------------------------------------------------- */

.mast, .band.field { --dim: var(--panel); }
.card, .foot, .top { --dim: var(--sage); }

.lbl {
  font: 600 .6875rem/1.4 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 var(--s3);
}

.lede {
  font-size: 1.0625rem; line-height: 1.65; max-width: 46ch;
  color: var(--dim); margin-top: var(--s3);
}

.fine {
  font-size: .8125rem; line-height: 1.6; color: var(--dim);
  max-width: 52ch; margin-top: var(--s3);
}

.band-h { font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -.005em; }
.field .band-h, .mast .band-h { color: var(--paper); }
/* More space above a heading than below it; these are the blocks that follow
   one directly with no lede in between. */
.band-h + .addr, .band-h + .hours, .band-h + .facts, .band-h + .proof,
.band-h + .fgrid-2, .band-h + .idx { margin-top: var(--s4); }

.btn {
  display: inline-block;
  font: 500 .875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: .95em 1.5em;
  background: var(--field); color: var(--paper);
  text-decoration: none; border: 1px solid var(--field);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--field-deep); border-color: var(--field-deep); }
.btn.ghost { background: transparent; color: var(--type); border-color: var(--rule); }
.btn.ghost:hover { background: var(--field); color: var(--paper); border-color: var(--field); }
/* On the ink and olive grounds the ghost button inherits a near-black label,
   which disappears. Both reversed variants are pinned above link colour. */
.card a.btn.ghost, .mast a.btn.ghost, .band.field a.btn.ghost {
  color: var(--paper); border-color: var(--rule-light);
}
.card a.btn.ghost:hover, .mast a.btn.ghost:hover, .band.field a.btn.ghost:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn.light, .band.field a.btn.light, .card a.btn.light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn.light:hover, .band.field a.btn.light:hover {
  background: var(--panel); border-color: var(--panel); color: var(--ink);
}
.acts { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.card-in .acts { justify-content: center; }
/* On the near-black card the olive fill reads quieter than the outline, which
   inverts the hierarchy. Paper carries the primary action there instead. */
.card .acts .btn { background: var(--paper); color: var(--ink);
  border-color: var(--paper); }
.card .acts .btn:hover { background: var(--panel); border-color: var(--panel); }
.card .acts .btn.ghost { background: transparent; color: var(--paper);
  border-color: var(--rule-light); }
.card .acts .btn.ghost:hover { background: var(--paper); color: var(--ink);
  border-color: var(--paper); }

.linkish {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}

/* ---- chrome ------------------------------------------------------------ */

/* Wraps rather than scrolls: at 200% text resize a single non-wrapping row
   pushes the whole document sideways. */
.top {
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s2) var(--s4); padding: var(--s3) 1.25rem;
}
@media (min-width: 60rem) { .top { padding: var(--s3) 2.5rem; } }
.tag { text-decoration: none; display: flex; align-items: baseline; gap: .5em;
  font-family: var(--serif); }
.tag-top { font-size: .6875rem; letter-spacing: .34em; }
.tag-main { font-size: .8125rem; letter-spacing: .34em; }
.top nav ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  list-style: none; padding: 0; margin: 0; }
@media (min-width: 30rem) { .top nav ul { gap: var(--s5); } }
.top nav a {
  font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding-bottom: .35em;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}
.top nav a:hover { border-bottom-color: var(--sage); }
.top nav a[aria-current="page"] { border-bottom-color: var(--paper); }

.mark { width: 4.25rem; height: auto; color: currentColor; margin: 0 auto var(--s4); }
.wordmark { display: block; text-align: center; color: var(--paper); margin: 0; }
.wordmark .wm-top {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(.9rem, 2.2vw, 1.25rem); letter-spacing: .42em;
  text-indent: .42em; margin-bottom: .35em;
}
.wordmark .wm-main {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.35rem, 11vw, 6rem); letter-spacing: .16em;
  text-indent: .16em; line-height: 1;
}
.wordmark.small { margin: 0; text-align: left; }
.wordmark.small a { text-decoration: none; display: block; }
.wordmark.small .mark { width: 2.75rem; margin: 0 0 var(--s3); }
.wordmark.small .wm-top { font-size: .75rem; letter-spacing: .34em; }
.wordmark.small .wm-main { font-size: 1.5rem; letter-spacing: .22em; }

/* ---- the card (index masthead) ----------------------------------------- */

.card { background: var(--ink); color: var(--paper); padding: var(--s6) 0 var(--s5); }
@media (min-width: 48rem) { .card { padding: var(--s9) 0 var(--s8); } }
/* Where and When sit side by side on a phone: stacked, the three blocks ran
   294px and pushed the email, the breakfast price and both buttons off a
   667px screen. Email spans, because the address is the longest line. */
@media (min-width: 22rem) and (max-width: 45.99rem) {
  .card-facts { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
  .card-facts .cf:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 47.99rem) {
  .card { padding-top: var(--s5); }
  .card .mark { width: 2.5rem; margin-bottom: var(--s2); }
  .card .posit { margin-top: var(--s3); }
  .card .status.on-card { margin-top: var(--s4); }
  .card-facts { margin-top: var(--s5); padding-top: var(--s4); gap: var(--s4); }
  .card .opener { margin-top: var(--s4); }
  .card .acts { margin-top: var(--s4); }
  .card .hash { margin-top: var(--s4); }
}
.card-in { text-align: center; }
.posit {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  color: var(--panel); margin-top: var(--s5);
}
.card-facts {
  display: grid; gap: var(--s6); margin-top: var(--s7);
  text-align: left; border-top: 1px solid var(--rule-light); padding-top: var(--s6);
}
@media (min-width: 46rem) { .card-facts { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } }
.card-facts p { font-size: .9375rem; }
.card-facts a { color: var(--paper); }
.addr { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.35; }
.addr.big { font-size: clamp(1.375rem, 3.2vw, 1.875rem); line-height: 1.25; }
.ent { font-size: .875rem; color: var(--dim); margin-top: var(--s2); }
.opener {
  font-family: var(--serif); font-size: 1.0625rem; color: var(--paper);
  margin-top: var(--s5);
}
.hash {
  font-family: var(--serif); font-style: italic; color: var(--dim);
  margin-top: var(--s6); font-size: 1.0625rem;
}

.hours { margin: 0; }
.hrow { display: flex; justify-content: space-between; gap: var(--s4);
  padding: .3rem 0; border-bottom: 1px solid var(--rule-light); }
.band.panel .hrow, .foot .hrow { border-bottom-color: var(--rule-light); }
.band.panel .hrow { border-bottom-color: var(--rule-soft); }
.hrow:last-child { border-bottom: 0; }
.hrow dt { font-size: .9375rem; }
.hrow dd { margin: 0; font-family: var(--serif); font-size: 1rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours.big .hrow { padding: .55rem 0; }
.hours.big dd { font-size: 1.1875rem; }
.hours.compact .hrow { padding: .18rem 0; border: 0; justify-content: flex-start;
  gap: .7em; flex-wrap: wrap; }
.hours.compact dt, .hours.compact dd { font-size: .875rem; white-space: nowrap; }
.dash { opacity: .6; padding: 0 .15em; }

.status {
  margin-top: var(--s6); display: inline-block;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule-light); padding: .7em 1.1em; color: var(--panel);
}
.status[data-open="true"] { border-color: var(--paper); color: var(--paper); }
.status.js-only { display: none; }
.js .status.js-only { display: inline-block; }
.status.on-field { margin-top: var(--s5); }

/* ---- bands ------------------------------------------------------------- */

.band { padding: var(--s8) 0; }
@media (min-width: 48rem) { .band { padding: var(--s9) 0; } }
.band.tight { padding-top: var(--s7); }
.band.panel { background: var(--panel); }
.band.panel + .band.panel { padding-top: 0; }
.band.panel + .band.panel.tight { padding-top: var(--s7); }
.band.field { background: var(--field); color: var(--paper); }
.band.field a { color: var(--paper); text-decoration-color: var(--rule-light); }

.mast { background: var(--field); color: var(--paper); padding: var(--s7) 0 var(--s6); }
@media (min-width: 48rem) { .mast { padding: var(--s8) 0 var(--s7); } }
.mast h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); color: var(--paper);
  letter-spacing: .01em; }
.mast-side {
  display: grid; gap: var(--s6); margin-top: var(--s7);
  border-top: 1px solid var(--rule-light); padding-top: var(--s5);
}
@media (min-width: 46rem) { .mast-side { grid-template-columns: 1.35fr 1fr; gap: var(--s7); } }

.legend .lgrid { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.lrow { display: flex; gap: .45em; align-items: baseline; }
.lrow dt { margin: 0; }
.lrow dd { margin: 0; font-size: .9375rem; }
.code {
  font-family: var(--serif); font-style: italic; font-size: .9em;
  text-decoration: none; border: 0; color: inherit; opacity: .95;
}
abbr.code { cursor: help; }
.legend .fine { max-width: 44ch; }

.surcharge ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.surcharge li { font-size: .875rem; }
.surcharge li::before { content: "·"; padding-right: .5em; opacity: .5; }
.surcharge li:first-child::before { content: none; }
.band.panel .surcharge {
  margin-top: var(--s6); border-top: 1px solid var(--rule-soft); padding-top: var(--s4);
}

/* ---- the index table on the home page ---------------------------------- */

.idx { width: 100%; border-collapse: collapse; margin-top: var(--s6);
  font-variant-numeric: tabular-nums; }
.idx caption { text-align: left; }
.idx thead th {
  font: 600 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--type-soft); text-align: left; padding: 0 0 var(--s2);
  border-bottom: 1px solid var(--rule);
}
.idx .ct, .idx .sp { text-align: right; }
.idx tbody th, .idx tbody td { padding: .62rem 0; border-bottom: 1px solid var(--rule-soft);
  font-weight: 400; text-align: left; vertical-align: baseline; }
.idx tbody th { font-family: var(--serif); font-size: 1.0625rem; padding-right: var(--s4); }
.idx tbody th a { text-decoration-color: var(--rule); }
.idx tbody td.ct, .idx tbody td.sp { text-align: right; white-space: nowrap; }
.idx td.ct { font-size: .875rem; color: var(--type-soft); width: 4rem; }
.idx td.sp { font-family: var(--serif); width: 8.5rem; }
.idx .crow th {
  font: 600 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--type-soft); padding: var(--s5) 0 var(--s1);
  border-bottom: 1px solid var(--rule); font-family: var(--sans);
}
.idx tbody tr:first-child .crow th, .idx .crow:first-child th { padding-top: var(--s2); }

/* ---- plates ------------------------------------------------------------ */

.plates { display: grid; gap: var(--s6); margin-top: var(--s6); }
@media (min-width: 44rem) { .plates { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.plate .shot.big { width: 100%; aspect-ratio: 100 / 86; object-fit: cover;
  object-position: 50% 0%; margin-bottom: var(--s3); }
.plate .desc { margin-top: var(--s2); }

.ices { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 40rem) { .ices { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s7); } }
.ices .desc { color: var(--panel); }

.facts { display: grid; gap: var(--s2); margin-top: var(--s5); }
@media (min-width: 44rem) { .facts.two { grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s7); } }
.facts li { border-bottom: 1px solid var(--rule-soft); padding-bottom: var(--s2);
  font-family: var(--serif); font-size: 1.0625rem; }
.tgrid, .wgrid, .cgrid { display: grid; gap: var(--s7); }
@media (min-width: 52rem) {
  .tgrid { grid-template-columns: 1.5fr 1fr; gap: var(--s8); }
  .wgrid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .cgrid { grid-template-columns: 1.2fr 1fr; gap: var(--s8); align-items: start; }
}
.tside { border-top: 2px solid var(--rule); padding-top: var(--s4); }
.rate-big { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05; }

.fgrid-2 { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 44rem) { .fgrid-2 { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s7); } }
.frow { border-top: 1px solid var(--rule-soft); padding-top: var(--s2); }
.frow dt { font-family: var(--serif); font-size: 1.0625rem; }
.frow dd { margin: 0; font-size: .8125rem; color: var(--type-soft); }

.proof { margin-top: var(--s5); }
.prow { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s4);
  padding: .5rem 0; border-top: 1px solid var(--rule-light); }
.prow dt { font: 600 .6875rem/1.9 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); }
.prow dd { margin: 0; font-family: var(--serif); font-size: 1.0625rem; }
.proof-img img { width: 100%; }
.proof-img figcaption, .board figcaption {
  font-size: .8125rem; color: var(--dim); margin-top: var(--s2); max-width: 36ch;
}

/* ---- the sticky toolbar ------------------------------------------------ */

.tools {
  position: sticky; top: 0; z-index: 20;
  background: var(--panel); border-bottom: 1px solid var(--rule);
}
/* min-width:0 is load-bearing: a grid item defaults to min-width:auto, so the
   scrolling section rail would size the whole grid to its own content width and
   widen the document instead of scrolling inside it. */
.tools-in { display: grid; gap: 0; }
.tools-in > * { min-width: 0; }
.jump { position: relative; }
.jump::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2.5rem;
  background: linear-gradient(to right, rgba(189,197,184,0), var(--panel));
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.jump[data-overflow="true"]::after { opacity: 1; }
.jump ul {
  display: flex; gap: 0 var(--s5); list-style: none; padding: 0; margin: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jump ul::-webkit-scrollbar { display: none; }
@media (min-width: 60rem) {
  .jump ul { flex-wrap: wrap; overflow-x: visible; }
  .jump a { padding: .6rem 0 .5rem; }
  .jump::after { content: none; }
}
.jump li { flex: 0 0 auto; }
.jump a {
  display: block; padding: .85rem 0;
  font: 500 .75rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--type-soft); white-space: nowrap;
  transition: color .18s ease;
}
.jump a:hover { color: var(--type); }
.jump a[aria-current="true"] { color: var(--type); }
/* One authored moment on the whole site: the rule under the section rail
   travels to whichever section you are reading. Scale, not width, so the
   compositor does the work and no layout is thrashed. */
.ind {
  position: absolute; left: 0; top: 0; height: 2px; width: 1px;
  background: var(--field); transform: translate(0, 0) scaleX(0);
  transform-origin: 0 0;
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.filters { display: none; }
.js .filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
  min-height: 3.25rem; padding-bottom: var(--s3);
  border-top: 1px solid var(--rule-soft);
}
.fsearch { display: flex; align-items: center; gap: var(--s2); flex: 1 1 14rem; }
.fsearch label { font: 600 .6875rem/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--type-soft); }
.fsearch input {
  flex: 1 1 auto; min-width: 7rem; font: 400 .9375rem/1 var(--sans);
  color: var(--type); background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); padding: .5rem .1rem;
  border-radius: 0;
}
.fsearch input::placeholder { color: var(--type-soft); opacity: .8; }
.fsearch input:focus { outline: 0; border-bottom-color: var(--field);
  border-bottom-width: 2px; padding-bottom: calc(.5rem - 1px); }
.fsearch input:focus-visible { outline: 2px solid var(--field); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  font: 500 .75rem/1 var(--sans); letter-spacing: .06em;
  padding: .55em .9em; cursor: pointer;
  background: transparent; color: var(--type-soft);
  border: 1px solid var(--rule); border-radius: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--field); color: var(--type); }
.chip[aria-pressed="true"] { background: var(--field); color: var(--paper);
  border-color: var(--field); }
.count { font: 400 .8125rem/1 var(--sans); color: var(--type-soft);
  margin-left: auto; font-variant-numeric: tabular-nums; }
.printbtn {
  font: 500 .8125rem/1 var(--sans); padding: .55em 0; cursor: pointer;
  background: none; border: 0; color: var(--type-soft);
  text-decoration: underline; text-underline-offset: .2em;
  text-decoration-color: var(--rule);
}
.printbtn:hover { color: var(--type); text-decoration-color: currentColor; }

/* ---- the menu document ------------------------------------------------- */

.doc { padding-bottom: var(--s8); }
.course { padding-top: var(--s7); }
.course-head {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  border-bottom: 2px solid var(--type); padding-bottom: var(--s3);
  margin-bottom: var(--s5);
}
@media (min-width: 60rem) { .course-head { width: min(100% - 5rem, var(--wrap)); } }
.course-head h2 {
  font-size: clamp(1.875rem, 5vw, 3rem); letter-spacing: .01em;
  scroll-margin-top: calc(var(--stick) + 1rem);
}
.course-note { font-family: var(--serif); font-style: italic; font-size: 1.0625rem;
  color: var(--type-soft); margin-top: var(--s2); }
.course-note-2 { font-size: .8125rem; color: var(--type-soft); margin-top: var(--s2); }

.sec { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  padding-bottom: var(--s6); }
@media (min-width: 60rem) { .sec { width: min(100% - 5rem, var(--wrap)); } }
.sec-h {
  font-style: italic; font-size: 1.375rem; color: var(--type);
  padding-top: var(--s5); margin-bottom: var(--s2);
  scroll-margin-top: calc(var(--stick) + 1rem);
}
.sec-note { font-size: .8125rem; color: var(--type-soft); margin-bottom: var(--s3); }

.dishes { display: grid; gap: 0; }
.dish {
  display: grid; grid-template-columns: 1fr; gap: var(--s3);
  padding: var(--s4) 0; border-top: 1px solid var(--rule-soft);
}
.dish.haspic { grid-template-columns: 4.75rem 1fr; }
@media (min-width: 40rem) { .dish.haspic { grid-template-columns: 7rem 1fr; gap: var(--s5); } }
.dish .shot { width: 100%; aspect-ratio: 100 / 86; object-fit: cover;
  object-position: 50% 0%; }
.line { display: flex; align-items: baseline; gap: .3em; }
.nm { font-family: var(--serif); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: .005em; }
.ldr { flex: 1 1 auto; min-width: 1.5rem; border-bottom: 1px dotted var(--rule);
  transform: translateY(-.07em); }
.pr { font-family: var(--serif); font-size: 1.0625rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr.none { font-style: italic; font-size: .9375rem; color: var(--type-soft); }
@media (max-width: 30rem) {
  .line { justify-content: space-between; gap: .75em; }
  .ldr { display: none; }
}
.desc { font-size: .9375rem; line-height: 1.55; color: var(--type-soft);
  max-width: 62ch; margin-top: var(--s1); }
.field .desc, .ices .desc { color: var(--panel); }

.extras { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  border-top: 1px solid var(--rule-soft); padding-top: var(--s3); margin-top: var(--s3); }
.extras li { font-size: .875rem; }
.extras .nm { font-size: .9375rem; }
.extras .pr { font-size: .9375rem; }
.extras .lbl-li .lbl { margin: 0; }

.myo .tables { display: grid; gap: var(--s5); margin-top: var(--s5); }
@media (min-width: 44rem) { .myo .tables { grid-template-columns: 1.4fr 1fr;
  gap: var(--s7); align-items: start; } }
.rate { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate caption {
  text-align: left; font: 600 .6875rem/1.4 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--type-soft); padding-bottom: var(--s2);
}
.rate thead th {
  font: 400 .75rem/1.4 var(--sans); color: var(--type-soft); text-align: left;
  border-bottom: 1px solid var(--rule); padding: 0 0 .3rem;
}
.rate thead th:last-child { text-align: right; }
.rate th[scope="row"] { font-family: var(--serif); font-weight: 400;
  font-size: 1rem; text-align: left; padding: .4rem 0; }
.rate td { text-align: right; font-family: var(--serif); font-size: 1rem;
  padding: .4rem 0; }
.rate tbody tr { border-bottom: 1px solid var(--rule-soft); }
.rate tbody tr:last-child { border-bottom: 0; }

.empty {
  width: min(100% - 2.5rem, var(--wrap)); margin: var(--s8) auto;
  font-family: var(--serif); font-size: 1.25rem; text-align: center;
}
.empty[hidden] { display: none; }

.boards { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 44rem) { .boards { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.board img { width: 100%; }

/* ---- footer ------------------------------------------------------------ */

.foot { background: var(--ink); color: var(--panel); padding: var(--s8) 0 var(--s6); }
.foot a { color: var(--paper); }
.fgrid { display: grid; gap: var(--s6); }
@media (min-width: 44rem) { .fgrid { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
@media (min-width: 64rem) { .fgrid { grid-template-columns: 1.1fr 1fr 1fr 1.1fr; } }
.fcol p { font-size: .875rem; }
.fcol .plain { display: flex; gap: var(--s4); margin-top: var(--s3); }
.fcol .plain a { font-size: .875rem; }
.fbase {
  margin-top: var(--s7); border-top: 1px solid var(--rule-light);
  padding-top: var(--s4); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: var(--s3);
}
.fbase p { font-size: .8125rem; color: var(--dim); }

/* ---- print: a usable A4 menu ------------------------------------------- */

.printhead { display: none; }

@media print {
  @page { size: A4 portrait; margin: 14mm 12mm; }
  :root { --type: #000; --type-soft: #333; --rule: #999; --rule-soft: #ccc; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 9pt; line-height: 1.4; }
  .top, .tools, .foot, .acts, .skip, .band.field, .surcharge, .mast-side,
  .board, .boards, .shot, .status, .empty { display: none !important; }
  .mast { background: none; color: #000; padding: 0; }
  .mast h1, .mast .lede { display: none; }
  .printhead { display: block; text-align: center; margin-bottom: 6mm;
    border-bottom: 1pt solid #000; padding-bottom: 3mm; }
  .ph-name { font-family: var(--serif); font-size: 17pt; letter-spacing: .22em; }
  .ph-line { font-size: 7.5pt; margin-top: 1mm; }
  /* No break-inside rule on .course: a course taller than one column would
     otherwise be pushed whole to the next page and leave the first one blank. */
  .doc { padding: 0; columns: 2; column-gap: 8mm; }
  .course { padding-top: 0; }
  .course-head { width: auto; border-bottom: .8pt solid #000; margin-bottom: 2mm;
    padding-bottom: 1mm; break-after: avoid; break-inside: avoid; }
  .course-head h2 { font-size: 13pt; }
  .course-note { font-size: 8pt; margin-top: 0; }
  .course-note-2, .sec-note { font-size: 7.5pt; margin-top: 1mm;
    margin-bottom: 1.5mm; }
  .sec { width: auto; padding-bottom: 3mm; break-inside: avoid; }
  .sec-h { font-size: 10pt; padding-top: 2mm; break-after: avoid; }
  .dish { display: block; padding: 1.1mm 0; border-top: 0; break-inside: avoid; }
  .nm, .pr { font-size: 9pt; }
  .desc { font-size: 7.5pt; line-height: 1.32; max-width: none; color: #333; }
  .extras { display: block; border-top: .4pt solid #999; padding-top: 1mm;
    margin-top: 1mm; break-inside: avoid; }
  .extras li { display: inline; font-size: 7.5pt; }
  .extras li + li::before { content: " · "; }
  .extras .nm, .extras .pr { font-size: 7.5pt; }
  .extras .lbl-li { display: none; }
  .lbl, .rate caption, .rate thead th { font-size: 7pt; letter-spacing: .12em; }
  .rate th[scope="row"], .rate td { font-size: 8pt; padding: .4mm 0; }
  .myo .tables { display: block; }
  .rate { margin-bottom: 2mm; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}

/* ---- motion degrades --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
