/* Groundworx menu — the approved Round 14 card ("Bold classic B blue",
   previews/menu-current-bold-classic-blue.html, data-v 21) built as a
   phone-first page: white sheet, heavy black rules and boxes, neon blue
   accent blocks, Anton / Bebas Neue / Oswald display type, Inter body.
   Sizes are the card's own, scaled up for reading on a phone.
   Logical properties (margin-inline-start, text-align: start/end, etc.)
   are used throughout so Arabic/Kurdish Sorani/Urdu simply mirror when
   <html dir="rtl"> is set — no separate RTL stylesheet. */

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #4d4d4d;
  --line: #000000;
  --acc: #1aa6b5;
  --acc-text: #0d7480; /* accent for text links on white (readable contrast) */
  --max-w: 480px;
  --display: "Anton", "Oswald", "Inter", sans-serif;
  --head: "Bebas Neue", "Oswald", "Inter", sans-serif;
  --name: "Oswald", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
img, svg { max-width: 100%; }
a { color: var(--acc-text); }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px 40px;
}
@media (min-width: 720px) {
  .wrap { max-width: 600px; padding: 32px 24px 56px; }
}

/* ---------- header: wordmark box + MENU box ---------- */
.site-header {
  display: grid;
  /* The MENU box keeps a set width so a long language name (e.g. Kurdish
     Sorani) truncates in the button instead of squeezing the wordmark. */
  grid-template-columns: minmax(0, 1fr) clamp(96px, 28vw, 130px);
  gap: 10px;
  margin-bottom: 14px;
}
.brand {
  border: 3px solid var(--line);
  padding: 10px 12px 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(26px, 9.6vw, 50px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--acc); }
.tagline {
  font-family: var(--name);
  font-weight: 500;
  font-size: clamp(10.5px, 3.2vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
  margin: 6px 0 0;
}
.menu-box {
  border: 3px solid var(--line);
  background: var(--acc);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.menu-word {
  font-family: var(--display);
  font-size: clamp(26px, 8.5vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
/* Long translations of "Menu" (e.g. Latvian "Ēdienkarte") get a smaller
   size so they stay inside the box. */
.menu-word--long { font-size: clamp(15px, 4.8vw, 24px); }

/* ---------- language switcher ---------- */
.lang-btn {
  background: #000;
  border: none;
  color: #fff;
  min-height: 44px;
  padding: 6px;
  font-family: var(--name);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}
.lang-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-btn:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

.lang-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.lang-panel.open { display: flex; }
.lang-sheet {
  background: var(--bg);
  border: 3px solid var(--line);
  border-bottom: none;
  width: 100%;
  max-width: var(--max-w);
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 0 22px;
}
@media (min-width: 720px) {
  .lang-sheet { max-width: 600px; border-bottom: 3px solid var(--line); margin-bottom: 10vh; }
}
.lang-sheet h2 {
  background: #000;
  color: #fff;
  font-family: var(--head);
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 6px 4px;
  padding-inline: 14px 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-sheet .close-x {
  background: none; border: none; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.lang-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px;
}
@media (max-width: 400px) {
  .lang-list { grid-template-columns: 1fr; }
}
.lang-opt {
  background: none; border: 2px solid var(--line); color: var(--text);
  text-align: start; padding: 10px 12px; min-height: 44px;
  font-size: 15px; cursor: pointer;
}
.lang-opt[aria-pressed="true"] { background: var(--acc); font-weight: 700; }

/* ---------- fresh-made line (once, above Breakfast) ---------- */
.fresh-line {
  margin: 4px 0 12px;
  text-align: center;
  font-family: var(--name);
  font-weight: 500;
  font-size: clamp(13px, 4.2vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- section band: BREAKFAST / LUNCH between two black rules ---------- */
.band {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 14px;
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  margin: 6px 0 14px;
  padding: 4px 0 2px;
}
.band h2 {
  font-family: var(--display);
  font-size: clamp(34px, 11vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.band .hours {
  font-family: var(--name);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- groups: black-bordered box, black title bar ---------- */
.group {
  border: 3px solid var(--line);
  margin: 0 0 14px;
  background: var(--bg);
}
.group h3 {
  background: #000;
  color: #fff;
  font-family: var(--head);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 8px 4px;
  margin: 0;
}
.group h3 .ic-wrap { color: var(--acc); display: inline-block; vertical-align: -0.08em; margin-inline-end: 6px; }
.group h3 .ic { display: block; width: 20px; height: 20px; }
.group .body { padding: 10px 14px 10px; }

/* Deal boxes: accent body, black text. */
.group.deal .body { background: var(--acc); }
.group.deal .group-note { background: var(--acc); }

/* Snacks: accent title bar, black text. Cold drinks: black bar, accent text. */
.group--snacks h3 { background: var(--acc); color: #000; }
.group--cold-drinks h3 { color: var(--acc); }

.row-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.row-btn:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
/* Every tappable item (opens its allergen panel) is at least 44px tall. */
button.row-btn {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0 3px;
}
.row .name {
  font-family: var(--name);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.row .dots {
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 3px dotted var(--line);
  opacity: 0.75;
  transform: translateY(-4px);
}
.row .price {
  font-family: var(--head);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.tag {
  /* Round 14: "V / VG tags: never taller than the text beside them". */
  display: inline-block;
  font: 600 9px/1.2 "Inter", sans-serif;
  letter-spacing: 0.04em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0 4px;
  margin-inline-start: 5px;
  vertical-align: 2px;
}
.item-meta { padding: 0 0 6px; }
.item-meta .intro { display: inline; font-weight: 700; font-style: italic; font-size: 15px; }
.item-meta .intro::after { content: " "; }
.item-meta .desc { display: inline; color: var(--muted); font-size: 15px; }
.item-meta .note { color: var(--muted); font-size: 15px; }
.group.deal .item-meta .desc { color: #000; }

/* Vegan cheese / gluten free dough / oat milk: bold italic, a touch
   smaller than the descriptions. The pizza group's two lines get the
   dashed divider above them; a lone line does not. */
.sub-body {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  padding: 0 14px 10px;
}
.sub-body-divider {
  border-top: 2px dashed var(--line);
  margin: 2px 14px 0;
  padding: 8px 0 10px;
}

.group-note {
  font-size: 13px;
  color: var(--muted);
  padding: 0 14px 10px;
}
/* Lunch deals' "Upgrade to Chef's Special for just 95p": regular weight,
   smaller than the deal descriptions, no rule above it, black on accent. */
.group-note--upgrade-chefs-special {
  font-weight: 400;
  font-size: 13px;
  color: #000;
  margin-top: -6px;
}

/* ---------- toastie meal-deal box: centred, no leaders ---------- */
.toastie-deal-box .body { text-align: center; padding: 12px 10px 12px; }
.toastie-deal-box .row { justify-content: center; gap: 14px; padding: 3px 0; }
.toastie-deal-box .row .dots { display: none; }
.toastie-deal-box .row .name { font-size: clamp(13px, 4.1vw, 17px); }
.toastie-deal-box .body > .row-btn:first-child .row { margin-bottom: 4px; }
.toastie-deal-box .body > .row-btn:first-child .name { font-size: clamp(16px, 5vw, 22px); }
.toastie-deal-box .body > .row-btn:first-child .price { font-family: var(--name); font-weight: 700; font-size: clamp(16px, 5vw, 22px); }

/* ---------- two-up layouts (as on the card, when there is room) ---------- */
.group--hot-drinks .body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  column-gap: 20px;
}
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
  align-items: start;
}
.pair .group { margin: 0; height: 100%; }
.pair .group .body { padding: 8px 10px 8px; }
.pair .row { gap: 4px; }
.pair .row .name { font-size: clamp(13px, 3.6vw, 15px); }
.pair .row .dots { min-width: 6px; flex-basis: 6px; }
.pair .row .price { font-size: clamp(19px, 5.2vw, 22px); }
.pair .item-meta .desc, .pair .item-meta .note { font-size: 13.5px; }

/* ---------- allergen panel ---------- */
.allergen-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.allergen-panel.open { display: flex; }
.allergen-sheet {
  background: var(--bg);
  border: 3px solid var(--line);
  max-width: 340px;
  width: 100%;
  padding: 0 0 16px;
}
.allergen-sheet h3 {
  background: #000;
  color: #fff;
  font-family: var(--name);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 14px 6px;
  margin-bottom: 12px;
}
.allergen-sheet .ask-staff { font-size: 15px; line-height: 1.5; margin: 0 16px; }
.allergen-marks { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 16px 10px; }
.allergen-mark { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; text-align: center; }
.roundel {
  width: 32px; height: 32px; border-radius: 50%;
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 12px "Inter", sans-serif;
}
.allergen-mark .label { font-size: 10px; color: var(--muted); line-height: 1.2; }
.allergen-sheet .close-btn {
  display: block; width: calc(100% - 32px); margin: 14px 16px 0;
  background: var(--acc); color: #000; border: 3px solid var(--line);
  min-height: 44px; padding: 8px;
  font-family: var(--name); font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}

/* ---------- allergen key: a boxed group like the rest ---------- */
.allergen-key { margin-top: 4px; border: 3px solid var(--line); }
.allergen-key h2 {
  background: #000;
  color: #fff;
  font-family: var(--head);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 8px 4px;
}
.allergen-key-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  padding: 12px 14px;
}
@media (min-width: 480px) {
  .allergen-key-grid { grid-template-columns: repeat(3, 1fr); }
}
.allergen-key-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.allergen-key-row .roundel { width: 26px; height: 26px; font-size: 10px; flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.footer-icon { color: var(--text); display: inline-block; vertical-align: -3px; margin-inline-end: 6px; }
.footer-icon svg { display: block; width: 16px; height: 16px; }
.help-improve { margin-top: 14px; font-size: 14px; }
.help-improve a { text-decoration: underline; }

/* ---------- misc ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Right-to-left scripts (Arabic, Kurdish Sorani, Urdu) fall back from
   Anton to the system face, whose letters rise and fall further: give the
   big band words room so the rules above and below never clip them. */
[dir="rtl"] .band h2 { line-height: 1.6; font-size: clamp(28px, 9vw, 40px); }
