/* restaurants/demo/board.css
 *
 * Demo Cafe's whole stylesheet, loaded ONLY by this restaurant's process (/tenant/board.css), on
 * TV pages only. It styles two kinds of screen with one look (a diner wall: the theme's color
 * behind paper menu cards, a ribbon over each card):
 *   - its own screens (screens/DinerBoard.tsx, root class .dc-board: screens 1 and 3), whose
 *     theme colors arrive as custom properties on the root;
 *   - the shared `menu-columns` template (screen 2), whose markup (screen-root, screen-columns,
 *     menu-board, menu-header, menu-items, menu-row) gets the same cards, and a masthead drawn
 *     here with ::before / ::after since the template has none.
 * Fonts are the system's (no font bundle, nothing licensed): Rockwell where the TV or laptop has
 * it, otherwise the next slab or serif face. No pictures: the ornaments are CSS and inline SVG.
 */
html, body { margin: 0; padding: 0; height: 100%; background: #000; }
*, *::before, *::after { box-sizing: border-box; }

:root {
  --dc-paper: #fffaf0;
  --dc-paper-edge: #e8dac0;
  --dc-ink-default: #2b211a;
  --dc-muted: #6f5c4b;
  --dc-slab: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", "DejaVu Serif", Georgia, serif;
  --dc-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "DejaVu Sans", sans-serif;
  --dc-serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
  --mb-legend-size: 1.85vh; /* the dietary legend under a column (platform/screens/ui/ItemBadges.tsx) */
}

/* ───────────── the wall ───────────── */

.screen-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 2.2vh 2.4vw 3vh;
  display: grid;
  grid-template-rows: 11vh minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.8vh;
  font-family: var(--dc-sans);
  color: var(--dc-ink-default);
  /* the theme's color (inline) under a faint dot grid and a soft shade toward the floor */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.16)),
    radial-gradient(rgba(255, 255, 255, 0.07) 0.17vh, transparent 0.21vh);
  background-size: 100% 100%, 2.4vh 2.4vh;
}
.empty-state { grid-row: 2; color: #fff; font-size: 3vh; text-align: center; padding-top: 30vh; }

/* The old per-screen overlays (platform/screens/ui/ThemeOverlay) are not used here: the wall
   effects (tenant.json `effects`) draw this restaurant's seasons across all three screens. */
.snow-overlay { display: none; }

/* ───────────── masthead: a darker band across the top, readable on every theme's wall ───────────── */

.dc-masthead,
.screen-root:not(.dc-board)::before {
  grid-row: 1;
  grid-column: 1;
  border-radius: 1.6vh;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 0.25vh rgba(255, 255, 255, 0.08);
  color: var(--dc-mast-text);
}
:root { --dc-mast-text: #fff8ea; }
.dc-masthead { display: flex; align-items: center; gap: 1.3vw; min-width: 0; padding: 0 1.8vw; }
.dc-mark { width: 8vh; height: 8vh; flex: none; color: var(--dc-accent, #f2b632); }
.dc-name { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.dc-name-main {
  font-family: var(--dc-slab);
  font-size: 6vh;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.4vh 0 rgba(0, 0, 0, 0.25);
}
.dc-name-sub { margin-top: 0.9vh; font-size: 1.8vh; font-weight: 700; letter-spacing: 0.34em; white-space: nowrap; color: var(--dc-accent, #f2b632); }
.dc-tagline {
  margin-left: auto;
  padding: 0.7vh 1.5vw 0.9vh;
  border: 0.3vh solid var(--dc-accent, #f2b632);
  border-radius: 99vh;
  font-family: var(--dc-serif);
  font-size: 3vh;
  font-style: italic;
  white-space: nowrap;
}

/* the shared template's masthead (screen 2, the middle of the wall): the name, centered; the
   template passes no theme colors to its root, so this one stays cream */
.screen-root:not(.dc-board)::before {
  content: "★  Demo Cafe  ★";
  padding-top: 1.5vh;
  text-align: center;
  font-family: var(--dc-slab);
  font-size: 6vh;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.4vh 0 rgba(0, 0, 0, 0.25);
}
.screen-root:not(.dc-board)::after {
  content: "Hand-spun shakes · Fresh-cut fries";
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
  align-self: end;
  margin-bottom: 1.4vh;
  color: var(--dc-mast-text);
  font-size: 1.8vh;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

/* ───────────── columns, ribbons, cards ───────────── */

.screen-columns {
  grid-row: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 2vw;
  min-height: 0;
}
.menu-board { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.menu-header {
  position: relative;
  z-index: 1;
  flex: none;
  margin: 0 1.4vw;
  padding: 1.1vh 1.2vw 1.2vh;
  border: 0.45vh solid;
  border-radius: 1.1vh;
  text-align: center;
  box-shadow: 0 0.7vh 0 rgba(0, 0, 0, 0.22);
}
.menu-header-label {
  font-family: var(--dc-slab);
  font-size: 4.2vh;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu-header-label::before,
.menu-header-label::after { content: "★"; display: inline-block; margin: 0 0.75em; font-size: 0.5em; vertical-align: 0.3em; opacity: 0.85; }

.menu-items {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: -3vh;
  padding: 4.8vh 1.8vw 2.2vh;
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  background: var(--dc-paper);
  color: var(--dc-ink, var(--dc-ink-default));
  border-radius: 1.4vh;
  box-shadow: 0 1vh 2.6vh rgba(0, 0, 0, 0.3), inset 0 0 0 0.25vh var(--dc-paper-edge);
  outline: 0.2vh dashed rgba(43, 33, 26, 0.16);
  outline-offset: -1.1vh;
}
.dc-note { margin: 0; text-align: center; font-family: var(--dc-serif); font-size: 2vh; font-style: italic; color: var(--dc-muted); }
.menu-items-main { display: flex; flex-direction: column; gap: 1.45vh; }
.menu-legend { margin-top: 0.6vh !important; color: var(--dc-muted); }

/* ───────────── rows: this restaurant's screens (name, dotted leader, price, description) ───────────── */

.dc-line { display: flex; align-items: baseline; gap: 0.7vw; min-width: 0; }
.dc-board .menu-row-label { min-width: 0; font-size: 3.15vh; font-weight: 700; line-height: 1.15; }
.dc-leader { flex: 1 1 2vw; min-width: 1.2vw; border-bottom: 0.32vh dotted rgba(43, 33, 26, 0.42); transform: translateY(-0.55vh); }
.menu-row-price { flex: none; font-size: 3.15vh; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dc-price, var(--dc-ink-default)); }
.dc-desc { margin-top: 0.15vh; font-size: 2.05vh; line-height: 1.25; color: var(--dc-muted); }

/* ───────────── rows: the shared template (name and price only; the leader is a dotted line
   behind them, masked by the paper under each word) ───────────── */

/* three columns: narrower cards, a little smaller type, the rows spread down the card */
.screen-root:not(.dc-board) .menu-items { padding-left: 1.4vw; padding-right: 1.4vw; }
.screen-root:not(.dc-board) .menu-items-main { gap: 2.9vh; }
.screen-root:not(.dc-board) .menu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6vw;
  /* the dots sit on the first line's baseline (a name that wraps covers them with its paper) */
  background-image: radial-gradient(circle, rgba(43, 33, 26, 0.42) 0.17vh, transparent 0.21vh);
  background-size: 1.1vh 1.1vh;
  background-repeat: repeat-x;
  background-position: 0 2.55vh;
}
.screen-root:not(.dc-board) .menu-row-label { min-width: 0; padding-right: 0.5vw; background: var(--dc-paper); font-size: 3.05vh; font-weight: 700; line-height: 1.15; }
.screen-root:not(.dc-board) .menu-row-price { padding-left: 0.5vw; background: var(--dc-paper); font-size: 3.05vh; }

/* ───────────── the lunch-special ticket ───────────── */

.dc-ticket {
  position: relative;
  margin-top: auto;
  padding: 1.5vh 1.6vw 1.7vh;
  border-radius: 1.2vh;
  background: var(--dc-notice, #f2b632);
  color: var(--dc-notice-text, #2b211a);
  box-shadow: inset 0 0 0 0.3vh rgba(255, 255, 255, 0.35);
}
/* the two notches of a ticket stub */
.dc-ticket::before,
.dc-ticket::after { content: ""; position: absolute; top: 50%; width: 2.4vh; height: 2.4vh; margin-top: -1.2vh; border-radius: 50%; background: var(--dc-paper); }
.dc-ticket::before { left: -1.2vh; }
.dc-ticket::after { right: -1.2vh; }
.dc-ticket-label { margin-bottom: 0.5vh; font-family: var(--dc-slab); font-size: 2.1vh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.dc-ticket-name { flex: 1 1 auto; min-width: 0; font-size: 3.4vh; font-weight: 800; line-height: 1.15; }
.dc-ticket-price { flex: none; font-size: 3.6vh; font-weight: 900; white-space: nowrap; }
.dc-ticket-desc { margin-top: 0.3vh; font-size: 2vh; line-height: 1.25; opacity: 0.9; }

/* ───────────── when an owner adds more than the layout was drawn for (platform/screens/hooks/useFitScreen.ts) ───────────── */

.screen-root[data-fit-dense] .menu-items { gap: 0.9vh; padding-bottom: 1.4vh; }
.screen-root[data-fit-dense] .menu-items-main { gap: 0.8vh; }
