:root {
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1d2b24;
  --green: #0f5b3a;
  --flag-green: #009b48;
  --gold: #e8c766;
  --red: #d52b1e;
  --muted: #6b6b63;
  --line: #e3dccd;
  --serif: "DM Serif Display", Georgia, serif;
  --sign: "Elsie", "DM Serif Display", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
input, textarea { -webkit-user-select: text; user-select: text; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--red); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

.demo-banner { background: #f2c94c; color: #3a2d00; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* Shop sign: Elsie in gold on the fascia green, framed by lauburu crosses */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); font: 900 28px/1 var(--sign); margin: 0; }
.brand img { width: 26px; height: 26px; filter: invert(1); }
.brand-small { font-size: 22px; }
.plaque { font: 900 clamp(26px, 4vw, 38px)/1.1 var(--sign); color: var(--green); margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.plaque::before, .plaque::after { content: ""; width: .7em; height: .7em; background: var(--red); -webkit-mask: url(/static/lauburu.svg) center/contain no-repeat; mask: url(/static/lauburu.svg) center/contain no-repeat; }
h1.plaque, h2.plaque { margin-bottom: 24px; }
.ikurrina { height: 10px; background: linear-gradient(var(--red) 0 60%, #fff 60% 75%, var(--flag-green) 75%); }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.site-header { display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px clamp(16px, 4vw, 48px); background: var(--green); }
.site-header nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: #f6f1e7; text-decoration: none; font-weight: 500; }
.site-header nav a[aria-current] { color: var(--gold); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-red, .site-header nav a.btn-red { background: var(--red); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-small { padding: 6px 12px; font-size: 13px; background: var(--green); color: #fff; }
.btn-link { background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; font: inherit; }

.hero { overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; height: min(78vh, 720px); min-height: 480px; background: var(--green); color: #fff; }
.hero img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero > * { min-height: 0; }
.hero-text { padding: clamp(24px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(32px, 4.5vw, 58px); margin: 8px 0 16px; }
.kicker { text-transform: uppercase; letter-spacing: .15em; font-size: 13px; opacity: .85; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.band { padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; text-align: center; }
.band > p, .band > form, .band > .daily-menu { text-align: left; }
.band-cream { background: var(--cream); max-width: none; }
.band-green { background: var(--green); color: #fff; max-width: none; }
.band-green h2 { font-size: 34px; margin-top: 0; }
.band-green p { text-align: center; }
.narrow { max-width: 640px; }
.center { text-align: center !important; }
.muted { color: var(--muted); }
.band-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.langs { display: flex; gap: 6px; margin-bottom: 20px; }
.langs a { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.langs a[aria-current] { background: var(--ink); color: #fff; }

.daily-menu { max-width: 620px; margin: 0 auto; }
.dm-section h3 { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font: 600 14px var(--sans); border-bottom: 2px solid var(--flag-green); padding-bottom: 4px; margin: 28px 0 8px; }
.dm-item { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.dm-name { font-family: var(--serif); font-size: 20px; }
.dm-desc { display: block; color: var(--muted); font-size: 14px; font-style: italic; }
.dm-price { font-weight: 600; white-space: nowrap; }
.dm-note { text-align: center; color: var(--red); font-weight: 600; margin-top: 20px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.event { background: var(--cream); padding: 16px 20px; border-radius: 8px; }
.event time { font-weight: 600; color: var(--red); font-size: 14px; }
.event h3 { margin: 6px 0; font-size: 22px; }
.event p { margin: 0; color: var(--muted); }

.carte-section { text-align: left; font-size: 28px; color: var(--green); margin: 40px 0 12px; }
/* Each card spans three rows of the grid (photo, text, price) through subgrid, so titles line up row by row,
   and a row without any photo has no empty photo space. */
.carte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 12px; row-gap: 12px; text-align: left; }
.dish { position: relative; overflow: hidden; font: inherit; color: inherit; text-align: left; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; transition: border-color .15s, transform .1s; }
.dish:active { transform: scale(.98); }
.dish.in-cart { border-color: var(--red); }
.dish-name { font-family: var(--serif); font-size: 20px; display: block; }
.dish-desc { display: block; color: var(--muted); font-size: 14px; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-add { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.dish-qty { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dish-photo { display: block; }
.dish-photo img { display: block; aspect-ratio: 4/3; object-fit: cover; width: 100%; max-width: none; }
.dish-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 6px; }
.dish-foot { padding: 6px 16px 14px; align-self: end; }
.dish h3 { margin: 0; font-size: 20px; }
.dish p { margin: 0; color: var(--muted); font-size: 14px; }

.order-form { max-width: 640px; margin: 0 auto; }
.order-line { display: grid; grid-template-columns: 1fr auto 64px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.order-line input { width: 64px; padding: 6px; font-size: 16px; }
.order-who { border: 1px solid var(--line); border-radius: 8px; margin: 28px 0 16px; padding: 16px; display: grid; gap: 10px; }
.stack { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
label { display: grid; gap: 4px; font-weight: 500; }
label:has(input[type=radio]) { display: flex; gap: 8px; align-items: center; }
input, textarea, select { font: 16px var(--sans); padding: 10px; border: 1px solid #cfc7b6; border-radius: 6px; background: #fff; }
.alert { background: #fde8e8; color: #7a1018; padding: 10px 14px; border-radius: 6px; }
.paid { background: #e6f2ea; color: var(--green); padding: 10px 14px; border-radius: 6px; font-weight: 600; }

.steps { display: flex; gap: 6px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 120px; padding: 10px; background: var(--cream); border-radius: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.steps li.done { background: var(--green); color: #fff; }
.ticket-lines { text-align: left; }

.team-nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.team-nav a { font-weight: 600; }
.preview-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; text-align: left; margin-bottom: 16px; }
.preview { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: #fff; }
.lang-tag { font-weight: 700; color: var(--red); margin: 0; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; text-align: left; }
.col { background: var(--cream); border-radius: 8px; padding: 10px; min-height: 120px; }
.col h2 { font-size: 20px; margin: 4px 0 10px; }
.order-card { background: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); font-size: 14px; }
.order-card p, .order-card ul { margin: 4px 0; }
.event-admin { text-align: left; max-width: 640px; margin: 24px auto; padding: 0; list-style: none; }
.event-admin li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev-line1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ev-line1 time { font-weight: 700; color: var(--red); }
.ev-title { font-weight: 600; margin-top: 2px; }

.site-footer { background: var(--ink); color: #e9e4d8; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 40px clamp(16px, 4vw, 48px); }
.site-footer a { color: #fff; }
.site-footer .muted { color: #a9a596; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .hero img { max-height: 46vh; }
  .site-header { padding-block: 8px; gap: 6px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 20px; height: 20px; }
  .site-header nav { gap: 6px; font-size: 13px; width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .demo-banner { font-size: 11px; padding: 4px 8px; }
  .site-header nav a { white-space: nowrap; }
  .site-header nav .btn { padding: 5px 10px; font-size: 13px; }
}

.ambiance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: left; }
.ambiance article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.ambiance h3 { margin: 0 0 6px; font-size: 22px; color: var(--green); }
.ambiance p { margin: 0; }
.lede { max-width: 720px; margin: 0 auto 28px; font-size: 18px; text-align: center !important; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: left; }
.team-grid img, .photo-todo { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 8px; }
.photo-todo { display: grid; place-items: center; background: var(--cream); border: 2px dashed var(--line); color: var(--muted); font-weight: 600; }
.team-grid h3 { margin: 10px 0 4px; font-size: 22px; }
.team-grid p { margin: 0; color: var(--muted); font-size: 15px; }

.feature-baba { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 28px; align-items: center; text-align: left; max-width: 900px; margin: 0 auto 32px; }
.feature-baba img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; }
.feature-baba h3 { font-size: 34px; margin: 0 0 10px; color: var(--red); }
.classics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.classics figure { margin: 0; text-align: left; }
.classics img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; }
.classics figcaption { font-family: var(--serif); font-size: 18px; margin-top: 6px; }
.wide-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
@media (max-width: 760px) { .feature-baba { grid-template-columns: 1fr; } .feature-baba img { max-height: 70vh; } }
.classics figcaption span { display: block; font: 14px var(--sans); color: var(--muted); }
.bar-feature { display: grid; grid-template-columns: minmax(200px, 420px) 1fr; gap: 28px; align-items: center; text-align: left; max-width: 960px; margin: 0 auto; }
.bar-feature img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.bar-feature h3 { font-size: 30px; margin: 0 0 10px; color: var(--green); }
@media (max-width: 760px) { .bar-feature { grid-template-columns: 1fr; } }

.brand-big { font-size: clamp(30px, 5vw, 52px); gap: 18px; }
.brand-big img { width: .75em; height: .75em; }
.site-header nav { justify-content: center; }
.btn-ghost-light, .site-header nav a.btn-ghost-light { border-color: #f6f1e7; color: #f6f1e7; background: transparent; }
.ambiance article img { width: calc(100% + 40px); max-width: none; margin: -20px -20px 14px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px 8px 0 0; }

/* Team area, built for a tablet next to the till (iPad, Surface Pro): big touch targets, live badges */
.team-header { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
.team-header .brand { font-size: 26px; }
.team-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.team-tabs a { color: #f6f1e7; text-decoration: none; font-weight: 600; font-size: 18px; padding: 12px 16px; border-radius: 10px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; }
.team-tabs a[aria-current] { background: rgba(255,255,255,.14); color: var(--gold); }
.badge { background: var(--red); color: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 14px; padding: 0 7px; }
body.team { font-size: 18px; }
body.team .btn { min-height: 48px; padding: 12px 22px; font-size: 17px; }
body.team .btn-small { min-height: 44px; font-size: 16px; }
body.team input, body.team textarea { font-size: 18px; padding: 12px; }
body.team .band { max-width: none; padding-top: 28px; }
body.team .board { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
body.team .order-card { font-size: 16px; padding: 14px; }
body.team.flash .team-header { animation: flash 1s ease-in-out 3; }
@keyframes flash { 50% { background: var(--red); } }
.resa-list { max-width: 900px; margin: 0 auto; text-align: left; }
.resa-list h2 { font-size: 24px; color: var(--green); margin: 24px 0 8px; }
.resa { display: grid; grid-template-columns: 90px 110px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; }
.resa-time { font: 600 22px var(--sans); }
.resa-covers { color: var(--red); font-weight: 600; }
@media (max-width: 900px) { body.team .board { grid-template-columns: repeat(2, 1fr); } }
.btn-gold, .site-header nav a.btn-gold { background: var(--gold); color: var(--ink); }
.deliveries { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; text-align: left; }
.delivery { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.delivery h2 { font-size: 22px; margin: 0 0 6px; }
.delivery .courier { color: var(--green); font-weight: 600; }
.dm-allergens { display: block; font-size: 12px; color: var(--muted); }
.library { background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.chips-label { font-weight: 700; color: var(--green); min-width: 90px; }
.chip { font: 500 16px var(--sans); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.chip small { color: var(--red); font-weight: 700; }
.chip-used { background: var(--green); color: #fff; border-color: var(--green); }
.plats-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.plats-table td, .plats-table th { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.allergen-boxes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.allergen-boxes label { display: flex; gap: 4px; align-items: center; font-weight: 400; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.cart-count { background: #fff; color: var(--red); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; z-index: 9; pointer-events: none; }
.cart-bar .btn { pointer-events: auto; border: 2px solid #fff; box-shadow: 0 0 0 3px var(--green), 0 6px 20px rgba(0,0,0,.3); font-size: 17px; }
.cart-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; justify-content: flex-end; }
.cart-panel { background: var(--paper); width: min(440px, 100%); height: 100%; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 28px; }
.cart-lines { list-style: none; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.cart-lines .qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-lines .qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.cart-total { font-weight: 700; font-size: 20px; text-align: right; }
.modes { border: 0; padding: 0; display: grid; gap: 8px; }
.small { font-size: 13px; }
.order-number { font: 900 96px/1 var(--sign); color: var(--red); text-align: center !important; margin: 0; }
.order-head { display: flex; align-items: center; gap: 8px; }
.order-no { background: var(--red); color: #fff; font-weight: 700; border-radius: 8px; padding: 2px 10px; font-size: 20px; }
.pos-done { color: var(--green); font-weight: 700; }
.lang-switch { display: flex; gap: 4px; justify-content: flex-end; }
.lang-switch a { color: #f6f1e7; text-decoration: none; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.3); }
.lang-switch a[aria-current] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.push-hint { margin: 0; background: var(--gold); color: var(--ink); padding: 8px 16px; font-weight: 600; text-align: center; }
.move { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.btn-back { background: #fff; color: var(--green); border-color: var(--green); }
.compose-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-wait { display: flex; align-items: center; gap: 18px; max-width: 640px; margin: 24px auto; background: var(--cream); border-radius: 12px; padding: 18px 22px; text-align: left; }
.ai-wait p { margin: 0; }
.ai-spinner { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--green); border-radius: 50%; }
.ai-spinner img { width: 34px; height: 34px; filter: invert(1); animation: lauburu 1.4s linear infinite; }
@keyframes lauburu { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-spinner img { animation-duration: 6s; } }
.btn-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-color: #cfc7b6; }
.btn-toggle[aria-checked="true"] { background: var(--green); color: #fff; border-color: var(--green); }
a.btn-small { display: inline-flex; align-items: center; text-decoration: none; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.actions form, .actions .btn { width: 100%; }
.actions .btn { justify-content: center; padding-inline: 6px; white-space: nowrap; }
.elapsed { color: var(--muted); font-weight: 600; }
.elapsed.late { color: var(--red); }
.carte-hint.pulse { animation: hint 1.2s ease-in-out 2; }
@keyframes hint { 50% { color: var(--red); transform: scale(1.04); } }
.public-header { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.public-header .brand-big { font-size: clamp(28px, 3.6vw, 46px); flex: 1; justify-content: center; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.public-header nav { justify-content: flex-end; }
@media (max-width: 760px) {
  .public-header { flex-direction: column; align-items: stretch; }
  .public-header .brand-big { justify-content: center; }
  .header-right { align-items: stretch; }
  .public-header .lang-switch { display: none; }
  .public-header nav { justify-content: center; flex-wrap: wrap; row-gap: 8px; }
  .lang-select { display: inline-block; }
}
.lang-select { display: none; font: 600 13px var(--sans); color: var(--ink); background: var(--gold); border: 0; border-radius: 999px; padding: 6px 10px; min-height: 32px; }
@media (max-width: 760px) { .lang-select { display: inline-block; } }

/* Public header: one row of small pills, language as a pill with a dropdown of full names */
.pills { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(246,241,231,.55); color: #f6f1e7; text-decoration: none; font: 600 14px var(--sans); line-height: 1.2; cursor: pointer; white-space: nowrap; list-style: none; }
.pill::-webkit-details-marker { display: none; }
.pill:hover { border-color: #f6f1e7; }
.pill-on { background: rgba(255,255,255,.16); border-color: var(--gold); color: var(--gold); }
.pill-red { background: var(--red); border-color: var(--red); color: #fff; }
.pill-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lang-menu { position: relative; }
.lang-menu .pill { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 6px; display: grid; min-width: 140px; z-index: 30; }
.site-header .lang-list a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.site-header .lang-list a:hover { background: var(--cream); }
.site-header .lang-list a[aria-current] { font-weight: 700; color: var(--red); }
@media (max-width: 760px) { .pills { justify-content: center; } .pill { font-size: 13px; padding: 4px 10px; } }
/* Focus ring for keyboard users only; no blue box or tap flash after a click or a touch */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-break { display: none; }
@media (max-width: 760px) { .nav-break { display: block; flex-basis: 100%; height: 0; } }
/* Phones: the row break is an empty flex row, so spacing comes from pill margins instead of row-gap */
@media (max-width: 760px) {
  .public-header { gap: 10px; }
  .public-header .pills { row-gap: 0; }
  .pills > .pill, .pills > .lang-menu { margin-block: 3px; }
}
.dish-today { border-color: var(--gold); background: #fffbeb; }
.today-badge { align-self: flex-start; margin-bottom: 4px; background: var(--gold); color: var(--ink); font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.today-note { text-align: center !important; font-weight: 600; color: var(--green); background: #fffbeb; border: 1px solid var(--gold); border-radius: 999px; padding: 8px 16px; max-width: 640px; margin: 0 auto 8px; }
button.pill { background: transparent; }
button.pill.pill-gold { background: var(--gold); }
.pills form { margin: 0; display: inline-flex; }
.pill .badge { min-width: 20px; height: 20px; font-size: 12px; padding: 0 6px; }
.site-header .pill-gold, .site-header .lang-menu .pill { color: var(--ink); }
.site-header .pill-red { color: #fff; }
.public-header .pills { flex: 0 1 auto; min-width: 0; }

/* Daily menu editor: dishes on the left (2/3), live preview on the right (1/3); stacked on phones */
.menu-editor { max-width: 1400px; text-align: left; }
.menu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ml-head .plaque { margin: 0; }
.kind-title { font: 600 18px var(--sans); color: var(--green); margin: 22px 0 10px; }
.dish-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dpill { display: inline-flex; align-items: center; border: 1.5px solid #d8cfbd; border-radius: 999px; background: #fff; overflow: hidden; }
.dpill.on { background: var(--green); border-color: var(--green); color: #fff; }
.dpill-main { font: 600 17px var(--sans); background: none; border: 0; color: inherit; padding: 12px 14px 12px 18px; cursor: pointer; min-height: 48px; }
.dpill-main small { color: var(--red); font-weight: 700; }
.dpill.on .dpill-main small { color: var(--gold); }
.dpill-edit { align-self: stretch; width: 48px; display: grid; place-items: center; border: 0; border-left: 1.5px solid #d8cfbd; background: transparent; color: var(--green); cursor: pointer; padding: 0; }
.dpill-edit svg { width: 22px; height: 22px; }
.dpill-edit:hover { background: var(--cream); }
.dpill.on .dpill-edit { border-left-color: rgba(255,255,255,.35); color: #fff; }
.dpill.on .dpill-edit:hover { background: rgba(255,255,255,.12); }
.history { margin-top: 28px; background: var(--cream); border-radius: 12px; padding: 4px 16px 12px; }
.history form { margin: 0; }
.hist-row { width: 100%; display: flex; justify-content: space-between; gap: 10px; text-align: left; font: 16px var(--sans); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; cursor: pointer; color: var(--ink); }
.hist-row span { color: var(--red); font-weight: 600; }
.preview-card { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.preview-card .daily-menu { text-align: left; }
.preview-card .dm-item { align-items: center; }
.dm-text { flex: 1; }
.grip { touch-action: none; cursor: grab; user-select: none; color: #b5ab97; font-size: 22px; line-height: 1; padding: 6px 6px 6px 0; }
.dm-item.dragging { background: #fffbeb; box-shadow: 0 6px 18px rgba(0,0,0,.15); border-radius: 8px; position: relative; z-index: 2; }
.dm-item.dragging .grip { cursor: grabbing; color: var(--green); }
.pub-btns { display: flex; gap: 8px; margin-top: 16px; }
.pub-btns form, .pub-btns .btn { flex: 1; }
.pub-btns .btn { width: 100%; justify-content: center; text-align: center; }
.saved { font-size: 13px; color: var(--green); margin: 10px 0 0; text-align: left; }
.dish-modal { border: 0; border-radius: 16px; padding: 0; width: min(600px, 96vw); max-height: 92vh; background: var(--paper); }
.dish-modal::backdrop { background: rgba(0,0,0,.5); }
.dish-modal form { padding: 20px 22px; display: grid; gap: 10px; }
.dish-modal .plaque { font-size: 26px; }
.dish-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.field-label { font-weight: 600; margin: 4px 0 0; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { display: inline-flex !important; align-items: center; gap: 4px; border: 1px solid #cfc7b6; border-radius: 999px; padding: 4px 10px; font-weight: 500; font-size: 14px; cursor: pointer; }
.achip:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.achip input { display: none; }
.check { display: flex !important; gap: 8px; align-items: center; }
.modal-btns { display: flex; gap: 10px; justify-content: center; }
.ai-status { border-radius: 8px; padding: 8px 12px; background: var(--cream); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-status.ok { background: #fffbeb; border: 1px solid var(--gold); }
.ai-status.err { background: #fde8e8; color: #7a1018; }
.spin img { width: 22px; height: 22px; animation: lauburu 1.4s linear infinite; }
.dish-modal.busy { cursor: progress; }
@media (max-width: 700px) { .menu-grid { grid-template-columns: 1fr; } .preview-card { position: static; } .dish-fields { grid-template-columns: 1fr; } }
.public-header .brand-big { white-space: nowrap; flex: 1 0 auto; }
.public-header .pills { justify-content: center; }
.public-header .pills { margin-inline: auto; }
.f-mark { color: var(--red); font: 700 .8em var(--sans); vertical-align: super; }
.f-legend { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.today-badge.on-photo { position: absolute; top: 10px; left: 10px; margin: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 1; }

/* Editors on tablet and desktop: dishes and preview scroll independently below the fixed bar */
@media (min-width: 701px) {
  body.team .menu-editor { padding-block: 16px 0; }
  .menu-grid { height: calc(100vh - var(--topbar-h, 120px) - 24px); }
  .menu-left, .menu-right { overflow-y: auto; height: 100%; padding-right: 6px; overscroll-behavior: contain; }
  .preview-card { position: static; }
}
.dpill-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-left: 6px; }
.photo-field { display: flex; gap: 12px; align-items: center; }
.photo-field img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.photo-btn { cursor: pointer; }
.credit { font-size: 11px; color: var(--muted); margin-top: 8px !important; }
#dish-raw { resize: none; overflow: hidden; min-height: calc(3lh + 22px); }
.dish-modal .plaque { margin-bottom: 2px; }
.lang-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.lang-grid [id^="f-desc-"] { grid-column: 1 / -1; margin-bottom: 8px; font-size: 14px; }
.lang-name { font-weight: 600; font-size: 14px; color: var(--green); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }

.formula-toggle { display: flex; align-items: center; gap: 8px; width: 100%; font: 16px var(--sans); text-align: left; padding: 10px; border: 1px solid #cfc7b6; border-radius: 6px; background: #fff; color: var(--muted); cursor: pointer; }
.formula-toggle b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6e1d6; color: #8a8579; font-size: 13px; }
.formula-toggle[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.formula-toggle[aria-checked="true"] b { background: #fff; color: var(--red); }
/* Phones: the modal fills the width and its fields wrap onto as many lines as they need */
@media (max-width: 600px) {
  .dish-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dish-modal form { padding: 16px; }
  .meta-grid { display: flex; flex-wrap: wrap; }
  .meta-grid > label { flex: 1 1 150px; }
  .photo-field { flex-wrap: wrap; }
}
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--green); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 40; animation: toast 3.5s ease forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); } }
.ai-changed { background: #fff3b0 !important; border-color: var(--gold) !important; box-shadow: 0 0 0 2px #f2d56b; }
.formula-toggle.ai-changed[aria-checked="true"] { background: var(--green) !important; }
.dish-soldout { opacity: .55; cursor: not-allowed; filter: grayscale(.6); }
.dish-soldout:active { transform: none; }
.soldout-badge { background: #555; color: #fff; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.service-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: -8px 0 18px; }
.service-bar .formula-toggle { width: auto; padding: 10px 16px; }
.pause-toggle[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pause-toggle[aria-checked="true"] b { color: var(--red); }
.soldout-pill { border: 1.5px solid #d8cfbd; border-radius: 999px; background: #fff; cursor: pointer; }
.soldout-pill.is-out { background: #555; border-color: #555; color: #fff; text-decoration: line-through; }
.actions > * { min-width: 0; }
.actions .btn { overflow: hidden; text-overflow: ellipsis; padding-inline: 4px; font-size: 14px; }
@media (max-width: 1180px) { body.team .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pause-icon { width: 26px !important; height: 26px !important; }
.pause-icon svg { width: 18px; height: 18px; fill: currentColor; }
