/* Shared styling for QRNode library templates (public node pages). */
:root {
  --t-bg: #0f1113;
  --t-panel: #1a1d21;
  --t-panel-2: #23272d;
  --t-accent: #8CC63F;   /* brand lime green */
  --t-text: #e6e8e3;
  --t-muted: #9aa39a;
  --t-hero-from: #1a1d21; /* hero gradient — overridden by per-menu themes */
  --t-hero-to: #2b3a18;
}
* { box-sizing: border-box; }
body {
  background: var(--t-bg);
  color: var(--t-text);
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.t-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.t-hero {
  background: linear-gradient(135deg, var(--t-hero-from), var(--t-hero-to));
  border-radius: 18px;
  border: 1px solid rgba(140,198,63,.18);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.t-hero h1 { margin: 0 0 6px; font-size: 1.7rem; }
.t-badge {
  display: inline-block; background: var(--t-accent); color: #1b1b1b;
  font-weight: 700; font-size: .72rem; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; text-transform: uppercase;
}
.t-card {
  background: var(--t-panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.t-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.t-row:last-child { border-bottom: 0; }
.t-row .t-main { font-weight: 600; }
.t-price { color: var(--t-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-muted { color: var(--t-muted); }
.t-pre { white-space: pre-line; }       /* preserve newlines from textareas */
.t-accent { color: var(--t-accent); }
/* Buttons (071): --t-btn-bg / --t-btn-text are set from the page's _theme.button /
   button_text. Unset, buttons follow the accent colour exactly as before. */
.t-btn {
  display: inline-block; background: var(--t-btn-bg, var(--t-accent)); color: var(--t-btn-text, #1b1b1b);
  font-weight: 700; text-decoration: none; padding: 12px 22px;
  border-radius: 10px; margin-top: 8px;
}
.t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.t-grid img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 1/1; object-fit: cover; }
.t-fig { margin: 0; }
.t-fig figcaption { font-size: .8rem; color: var(--t-muted); margin-top: 4px; text-align: center; }
.t-foot { text-align: center; color: var(--t-muted); font-size: .8rem; margin-top: 28px; }
.t-contact-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.t-contact-line a { color: var(--t-text); text-decoration: none; }
a.t-accent { text-decoration: none; }
@media (max-width: 380px) { .t-grid { grid-template-columns: 1fr; } }

/* ── Restaurant menu (centralised so existing copied node pages get it too) ── */
.t-tag {
  display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .03em;
  background: rgba(140,198,63,.18); color: var(--t-accent);
  border: 1px solid rgba(140,198,63,.45); border-radius: 6px;
  padding: 1px 6px; margin-left: 6px; vertical-align: middle; text-transform: uppercase;
}
.t-cat { text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.t-legend { font-size: .72rem; }
.t-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.t-item:last-child { border-bottom: 0; }
.t-variants { margin-top: 4px; }
.t-variant-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; font-size: .92rem; }
.t-secondary { font-size: .8rem; color: #8a9488; font-style: italic; margin-top: 3px; }

/* ── Dietary & allergen markers (first-class menu data) ── */
.t-diet-chip {
  display: inline-flex; align-items: center; gap: 2px; vertical-align: middle;
  font-size: .6rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--t-accent); background: rgba(140,198,63,.16);
  background: color-mix(in srgb, var(--t-accent) 16%, transparent);
  border: 1px solid var(--t-accent); border-radius: 6px; padding: 1px 6px; margin-left: 6px;
}
.t-contains {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 8px; font-size: .72rem; color: var(--t-muted);
}
.t-contains-lead { font-weight: 600; }
.t-allg-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--t-panel-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 1px 8px; font-size: .7rem; color: var(--t-text);
}
.t-marker-legend {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px; font-size: .72rem; color: var(--t-muted);
}
.t-marker-legend .t-leg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.t-marker-legend .t-leg-item { display: inline-flex; align-items: center; gap: 4px; }
.t-marker-legend .t-leg-lead { font-weight: 600; }

.t-thumb-wrap { position: relative; display: inline-block; margin-top: 8px; }
.t-thumb {
  width: 84px; height: 84px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); display: block;
}
.t-imgcount {
  position: absolute; right: -6px; bottom: -6px; background: var(--t-accent); color: #10240a;
  font-size: .66rem; font-weight: 700; border-radius: 999px; padding: 1px 7px;
}
.t-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.t-lightbox[hidden] { display: none; }
.t-lb-img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.t-lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
}
.t-lb-close { top: 16px; right: 16px; font-size: 1.5rem; }
.t-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.t-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Pack size / quantity chip (v1.15.1) — "1kg", "Pack of 500" */
.t-pack { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  vertical-align: 2px; color: var(--t-accent); border: 1px solid currentColor; white-space: nowrap; }
