/* The menu board, after the printed menu that hangs in the restaurant:
   green script headers in an offset double box, royal-blue item lines with dot leaders, italic notes, apple marks.
   The print uses Brush Script MT and Arial Narrow (both ship with Windows/Office); the stacks prefer those when
   installed and fall back to Yellowtail and Archivo Narrow, which the design's <head> loads. Designs override --board-*. */
:root {
  --board-paper: #ffffff;
  --board-green: #12925a;
  --board-ink: #23409a;
  --board-muted: #3b5bb5;
  --board-rule: #12925a;
  --board-script: "Brush Script MT", "Yellowtail", cursive;
  --board-sans: "Board Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;  /* the print's Helvetica Bold: Nimbus Sans, self-hosted */
  --board-gap: clamp(16px, 3vw, 32px);
}

/* one printed page per row, at the print's own width: the lists run long and wide, as on the card */
@font-face { font-family: "Board Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/NimbusSans-Bold.otf") format("opentype"); }
@font-face { font-family: "Board Sans"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/NimbusSans-BoldItalic.otf") format("opentype"); }
@font-face { font-family: "Board Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/NimbusSans-Italic.otf") format("opentype"); }
.board { display: grid; gap: var(--board-gap); grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; align-items: start; }  /* minmax(0,…): the column never grows to the content's min width */
.board-page { min-width: 0; }
.board-page {
  container-type: inline-size;  /* every size below is in --u = 1% of this panel's width, so web and print share one proportion */
  --u: 1cqw;
  background: var(--board-paper); color: var(--board-ink); font-family: var(--board-sans);
  border: 2px solid var(--board-green); outline: 1px solid var(--board-green); outline-offset: 4px;
  padding: calc(2.6 * var(--u)) calc(3 * var(--u)); margin: 6px; scroll-margin-top: 90px;
}
.board-page-head { text-align: center; margin-bottom: 14px; }
.board-page-head .board-banner { display: block; }
.board-banner {
  display: inline-block; margin: 0; padding: .4em 1em .5em; font: 400 calc(7.2 * var(--u))/1.05 var(--board-script); color: var(--board-green);
  border: 2px solid var(--board-green); box-shadow: 7px 7px 0 -2px var(--board-paper), 7px 7px 0 0 var(--board-green);
}
.board-fine { font-size: calc(2.1 * var(--u)); font-style: italic; color: var(--board-muted); margin: .4em 0 0; }

.bs { margin: 0 0 calc(1.2 * var(--u)); scroll-margin-top: 90px; }
/* the header row: the boxed script title with the print's drawing beside it (right, or left for art_side: left),
   and, where the print puts them there, the boxed plates note or the salad dressings */
.bs-head { display: flex; align-items: center; gap: calc(1 * var(--u)) calc(1.6 * var(--u)); flex-wrap: wrap; margin: 0 0 calc(.6 * var(--u)); }
.bs-head-artleft .bs-title { order: 1; }
.bs-head-artleft .bs-title { order: 1; }
.bs-head-both { justify-content: space-between; }
.bs-head-both .bs-title { order: 1; }
.bs-head-both .bs-art2 { order: 2; margin: 0; }
.bs-head-artleft .bs-art:first-child { order: 0; max-width: 48%; }
.bs-head-right .bs-title { margin-left: auto; }
.bs-head-center { justify-content: space-between; flex-wrap: nowrap; }
.bs-head-center .bs-title { margin: 0 auto; }
#sides .bs-head { gap: 0 12px; }
#steaks { margin-top: 0; }
#steaks .bs-head { margin-top: calc(-.6 * var(--u)); }
/* a box with its drawing beneath, forming a block the whole list runs beside (Beverages, Cereals) */
.bs-blockleft { display: grid; grid-template-columns: 37% 1fr; column-gap: 18px; align-items: start; }
.bs-block { display: grid; justify-items: start; gap: 6px; }
.bs-block .bs-title span { white-space: nowrap; font-size: clamp(26px, 3.6vw, 34px); padding: 0 12px 3px; }
.bs-block .bs-art { height: auto; width: 100%; max-width: 100%; }  /* 37% of the panel, the block's whole width */
#cereals .bs-block .bs-art { width: 56%; margin-top: 2px; }  /* 19% of the panel */
  .bs-beside { min-width: 0; }
/* the Toast header rises into the Cereals row, beside the donut, as the card sets it */
.bs-overlap { margin-top: calc(-9 * var(--u)); }
.bs-overlap .bs-head { justify-content: flex-end; }
#cereals { margin-bottom: 0; }
@media (max-width: 559px) { .bs-blockleft { grid-template-columns: 1fr; } .bs-block .bs-art { width: 60%; } }
.bs-art-below { display: block; margin: 0 auto 8px; height: 60px; }
.bs-art-float { float: left; height: 150px; margin: 0 22px 4px 0; }  /* the print tucks the drawing into the item area */
.bs::after { content: ""; display: block; clear: both; }
.bs-title { margin: 0; }
.bs-title span {
  display: inline-block; padding: 0 .5em .1em; font: 400 calc(5.4 * var(--u))/1.15 var(--board-script); color: var(--board-green);
  border: 2px solid var(--board-green); box-shadow: 5px 5px 0 -2px var(--board-paper), 5px 5px 0 0 var(--board-green);
}
.bs-art { height: auto; width: auto; max-width: 46%; object-fit: contain; flex: none; }
/* each drawing at the width it has on the card, as a share of the panel */
#sandwiches .bs-art { width: 41%; }
#dinners .bs-art { width: 27%; }
#seafood .bs-art { width: 44%; }
#salads .bs-art { width: 16%; }
#beverages .bs-art { width: 10%; }
#steaks .bs-head .bs-art:first-child { width: 46%; height: auto; }
#sides .bs-head .bs-art:first-child { width: 16%; height: auto; }
#sides .bs-art2 { width: 24%; }
#eggs .bs-head .bs-art:first-child { width: 27%; height: auto; }
.bs-art2 { margin-left: auto; }
.bs-note-box { flex: 1 1 140px; min-width: 0; margin: 0; padding: .4em .7em; border: 2px solid var(--board-green); font-size: calc(2.3 * var(--u)); font-weight: 700; font-style: italic; text-align: center; line-height: 1.3; }
.bs-note-head { flex: 1 1 200px; margin: 0; font-size: calc(2.5 * var(--u)); text-align: center; font-style: italic; }
.bs-items { list-style: none; margin: 0; padding: 0; }
/* two-column sections, as the print sets them (toast, toppers, sides, beverage, desserts) */
/* explicit columns, split where the print splits (items marked break: true) */
.bs-cols { display: grid; gap: 0 calc(2.4 * var(--u)); }
@media (min-width: 560px) { .bs-cols { grid-template-columns: 1fr 1fr; } }
.it-art { padding: 0 0 4px; }
.it-art .bs-art { height: auto; width: 18%; }
.bs-art-col1 { float: right; height: 130px; margin: 0 0 4px 8px; }
.bs-art-col1-after { float: right; height: auto; width: 50%; margin: 0 0 4px 12px; shape-outside: margin-box; }
.it-art-below { padding: 0 0 0 18%; margin-top: calc(-1.6 * var(--u)); }  /* desserts: the pie and cone hang under the box, above the left column */
.it-art-below .bs-art { width: 52%; display: block; }
  .it-art { padding: 0; }
#desserts .bs-cols ul:last-child .it-art { float: left; width: 34%; margin: calc(-1.4 * var(--u)) .8em .2em 0; padding: 0; }
#desserts .bs-cols ul:last-child .it-art .bs-art { width: 100%; }
#desserts .bs-head { margin-bottom: 0; }
/* a header that is the first row of column one (Beverage): column two starts level with the box */
.bs-head-hidden { display: none; }
.it-head { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 8px; }
.it-head .bs-title { margin: 0; }
.it-head .bs-art { width: 26%; }  /* desserts: the pie and cone sit right of the short left column */
/* a two-line item as the print sets it: the name alone on the first line, the prices indented on the next */
.it-wrap { display: grid; grid-template-columns: 1fr; }
.it-wrap .it-n { white-space: normal; }
.it-wrap .it-p { justify-self: end; }
.it-wrap .dots { display: none; }
.it-wrap .it-p::before { content: "........"; letter-spacing: 1px; margin-right: 6px; }
.it.it-wrap.it-indent { display: block; overflow: visible; }
.it-keep .it-n b { white-space: nowrap; }
.it.it-indent .it-n { display: block; }
.it.it-indent .it-p { display: block; padding-left: 2.6em; white-space: nowrap; justify-self: unset; }
.it-indent .it-p::before { content: "........"; letter-spacing: 1px; margin-right: 6px; }
.bs-cols .it-n b, .bs-cols .it-p { font-size: calc(3 * var(--u)); }
.bs-cols .it { grid-template-columns: minmax(0, max-content) minmax(1.2em, 1fr) auto; }
.bs-cols .it .it-n { overflow: visible; min-width: 0; }
.bs-cols .it-keep .it-n b { white-space: normal; }
.bs-cols .it-n i { font-size: calc(2 * var(--u)); }
.bs-cols .it-p small { font-size: .9em; }
.bs-cols .it-sub { font-size: calc(2.2 * var(--u)); }
@media (min-width: 560px) { .bs-cols .it:not(.it-wrap) .it-n { white-space: nowrap; } }  /* the print never wraps a column line; phones may */
.it, .it-n, .bs-cols, .bs-items { min-width: 0; }
@media (max-width: 559px) {
  .board-takehome { white-space: normal; } .bs-note-box { flex-basis: 100%; }
  /* phones: the name cell wraps instead of sizing the panel; the drawings scale down with it */
  .it, .bs-feature { grid-template-columns: minmax(0, 1fr) minmax(1.2em, 2em) auto; }
  .it-n, .it-n b, .it-n i { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .it-n { display: block; }  /* a block cell wraps; an inline cell inherits the row's max-content */
  .bs-head, .bs-head-artleft { flex-wrap: wrap; }
  .bs-title span, .board-banner { white-space: normal; }
  .bs-head-right .bs-title { margin-left: 0; }
}
.bs-cols .it-p small { font-size: 11px; }

.it, .bs-feature {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(1.2em, 1fr) auto; align-items: end; column-gap: 4px;
  padding: 0; line-height: 1.12;
}
.it-cont .it-n { padding-left: 2.2em; }  /* a continuation line, like the print's second Chicken Fingers line */
.it-note { font-style: italic; font-size: calc(2.4 * var(--u)); color: var(--board-muted); padding: .1em 0; }
.it-n b, .bs-feature b { font-weight: 700; font-size: calc(3.3 * var(--u)); letter-spacing: -.01em; }
#eggs .it-n b, #eggs .it-n i { letter-spacing: -.025em; }
#eggs .it-n b { font-size: calc(2.95 * var(--u)); }
#eggs .it-n i { font-size: calc(2.05 * var(--u)); }
#eggs .it-n { white-space: nowrap; }  /* the card sets every egg line on one line; the names are condensed to fit */
.it-n i { font-size: calc(2.2 * var(--u)); font-weight: 400; color: var(--board-muted); }
/* the leader: a zero-width cell whose dots overflow to the right and are clipped at the price; it contributes nothing to the row's width */
.dots { position: relative; width: 0; min-width: 0; height: 1em; margin-bottom: 2px; overflow: visible; }
.dots::after { position: absolute; left: 0; top: 0; width: 4000px; white-space: nowrap; font-weight: 700; letter-spacing: 1px; }
.it, .bs-feature { grid-template-columns: minmax(0, max-content) minmax(1.2em, 1fr) auto; overflow: hidden; }
.it-p { position: relative; background: var(--board-paper); padding-left: 4px; }  /* the price sits on top of the leader's tail */
.dots::after { content: "........................................................................................................................"; }
.it-p { font-weight: 700; font-size: calc(3.3 * var(--u)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.it-p small { font-weight: 400; font-style: italic; font-size: .95em; margin-right: .15em; }
.it-p small.lbl-big { font-size: 1em; }
.it-d2 { font-weight: 400; font-style: italic; font-size: .78em; margin-right: .3em; }
.it-sub { grid-column: 1 / -1; font-weight: 400; font-style: italic; font-size: calc(2.4 * var(--u)); color: var(--board-muted); padding-left: 2.2em; line-height: 1.1; }
.it-stacked .it-p { text-align: right; line-height: 1.1; }
.it-stacked .it-p small { font-size: .95em; }
.it-stacked { align-items: start; }
.it-p .sep { display: inline-block; width: .9em; }
.apple { width: 15px; height: 16px; color: var(--board-green); vertical-align: -2px; margin-right: 5px; }

.bs-feature { margin: 0 0 8px; color: var(--board-ink); grid-template-columns: max-content 2.4em auto; justify-content: center; }
.bs-feature .dots { width: 2.4em; overflow: hidden; }
.bs-feature .dots::after { width: 100%; }  /* a short fixed leader, as the print sets "FAMOUS TEXAS HOT ...... 2.75" */
.bs-feature b, .bs-feature .it-p { font-size: calc(5 * var(--u)); font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }

.bs-callout { border: 2px solid var(--board-green); padding: 12px 16px; margin: 14px 0 0; text-align: center; }
.bs-callout p { margin: 0; }
.bs-callout-art { display: flex; align-items: center; gap: 16px; text-align: left; padding: 10px 14px 10px 0; }
.bs-callout-art > div { min-width: 0; }
@media (max-width: 559px) { .bs-callout-art { flex-wrap: wrap; } .bs-callout-img { width: 40%; } }
.bs-callout-img { height: auto; width: 30%; align-self: stretch; object-fit: contain; flex: none; padding: 6px 14px; background: color-mix(in srgb, var(--board-green) 18%, var(--board-paper)); }
.bs-callout-h { color: var(--board-green); font-size: calc(3.9 * var(--u)); font-weight: 800; text-transform: uppercase; }
.bs-callout-h .it-p { font-size: 1em; }
.bs-callout-sub { color: var(--board-green); font-weight: 700; font-style: italic; font-size: calc(3.3 * var(--u)); }
.bs-callout-text { font-weight: 700; font-size: calc(2.8 * var(--u)); text-transform: uppercase; letter-spacing: .03em; margin-top: .2em !important; }
.bs-callout-desc { font-style: italic; font-size: calc(2.6 * var(--u)); color: var(--board-muted); }
.bs-note { font-style: italic; font-size: calc(2.4 * var(--u)); color: var(--board-muted); margin: .3em 0 0; }
#toppers .bs-head { justify-content: center; }
#toppers .bs-title span { padding: 0 1.6em .1em; }
#toppers .bs-note { font-style: normal; font-weight: 700; font-size: calc(2.9 * var(--u)); color: var(--board-ink); text-align: center; max-width: 52ch; margin: .5em auto 0; line-height: 1.2; }

.board-printed { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--board-green); font-weight: 600; }

.board-page-foot { margin-top: 18px; text-align: center; }
.board-page-foot-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: calc(1 * var(--u)) calc(2.4 * var(--u)); align-items: center; }
.board-apple { min-width: 0; }
.board-page-foot-2 .board-takehome { white-space: normal; font-size: calc(2.6 * var(--u)); }
.board-takehome:last-child b { font-weight: 400; }
.board-dated { color: var(--board-green); }
.board-key { display: block; height: calc(3 * var(--u)); width: auto; margin: 0 auto .4em; }
.board-takehome { font-size: calc(3.2 * var(--u)); margin: 0 0 .2em; white-space: nowrap; }
.board-takehome i { color: var(--board-muted); }
.board-page-foot-4 .board-takehome { font-style: italic; }
.board-page-foot-4 .board-takehome:last-child { text-transform: uppercase; }
/* phones: the foot stacks and its lines wrap (this sits after the nowrap rule so it wins) */
@media (max-width: 559px) { .board-page-foot-2 { grid-template-columns: minmax(0, 1fr); } .board-foot-left, .board-apple { min-width: 0; } .board-takehome { white-space: normal; font-size: 18px; } .board-key { max-width: 100%; } }
.board-apple { border: 2px solid var(--board-green); padding: .5em .8em; margin: 0; text-align: left; color: var(--board-green); font-size: calc(2.1 * var(--u)); line-height: 1.3; }
.board-apple p { margin: 0; }
.board-apple-h { font-weight: 700; }
.board-dated { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: .3em 0 0; font-style: italic; font-size: calc(2.6 * var(--u)); }

.board-scans { margin-top: var(--board-gap); font-family: var(--board-sans); }
.board-scans summary { cursor: pointer; font-weight: 700; text-align: center; }
.board-scans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.board-scans-grid img { width: 100%; height: auto; display: block; border: 1px solid rgba(0,0,0,.15); }

.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.board-tabs a { text-decoration: none; }

@media (max-width: 480px) {
  .it-n b, .it-p { font-size: 15.5px; }
  .it-n i { font-size: 13px; }
}
@media print {
  .board-tabs, .board-scans, .board-printed { display: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .board-page { break-inside: avoid; }
}
