/* ═══════════════════════════════════════════════════════════════════
   EAT — guest theme "fine": the fine-dining editorial look
   Cream paper, a circled monogram over a spaced small-caps wordmark, an
   arched photo with a burgundy "Signature" badge, a serif dish name, a
   dotted rule to the price, an italic line, a small-caps meta line, and
   one boxed invitation to ask Aria. Every rule is scoped to
   html[data-theme="fine"]; other themes are untouched.

   Fonts: Playfair Display (already loaded) for the serif, Inter for the
   small caps — no extra font request.
   ═══════════════════════════════════════════════════════════════════ */

:root[data-theme="fine"] {
  --surface:                   #f4efe4;   /* cream paper */
  --surface-dim:               #ece6d9;
  --surface-bright:            #e3dccd;
  --surface-container-lowest:  #faf7f0;
  --surface-container-low:     #f7f2e8;
  --surface-container:         #f4efe4;
  --surface-container-high:    #ebe4d5;
  --surface-container-highest: #e2dac8;
  --surface-variant:           #e8e0cf;

  /* Burgundy is the one accent: the badge, the rule, the frame. */
  --primary:              #6e1d2b;
  --on-primary:           #fbf6ec;
  --primary-container:    #58161f;
  --on-primary-container: #fbf6ec;
  --primary-fixed:        #8a2c3b;
  --gold-leaf:            #8a6a2f;
  --gold-glow:            #a8823c;

  --on-surface:         #2b241b;   /* warm ink */
  --on-surface-variant: #6b6152;
  /* Read by the bill sheet, consent and receipt rules with an ivory fallback
     for the dark page: ink here. */
  --text:               var(--on-surface);
  --text-secondary:     var(--on-surface-variant);
  --outline:            #cdbfa8;
  --outline-variant:    #e1d7c3;

  --error:              #9d2a1e;
  --on-error:           #ffffff;

  --glass-fill:     #faf7f0;
  --glass-border:   #d9ccb3;
  --light-leak:     rgba(0, 0, 0, 0);
  --gold-shadow:    0 4px 16px rgba(60, 40, 20, 0.10);
  --gold-glow-soft: 0 0 0 rgba(0, 0, 0, 0);
  --elev-panel:     0 1px 2px rgba(60, 40, 20, 0.05);
  --radius-lg:      6px;
  --radius-xl:      8px;
}

[data-theme="fine"] body.ambient-bg { background: var(--surface); color: var(--on-surface); }
[data-theme="fine"] body.ambient-bg::before,
[data-theme="fine"] body.ambient-bg::after { display: none; }

[data-theme="fine"] .glass-card {
  background: var(--surface-container-lowest);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
}
[data-theme="fine"] .glass-card::before { display: none; }

/* The paper and its thin double frame. */
[data-theme="fine"] #app {
  background: var(--surface);
  box-shadow: none;
  border-left: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}
[data-theme="fine"] .app-header {
  flex-direction: column;
  gap: 10px;
  padding: 22px var(--pad-mobile) 12px;
  background: var(--surface);
  border-bottom: none;
}
[data-theme="fine"] .brand-title {
  font: 400 11px/1 var(--font-body);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-surface) !important;   /* the wordmark is ink here, whatever the venue's colour */
  text-align: center;
  white-space: normal;
  flex: 0 0 auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* The circled monogram: the venue's initials, set by themes.js. */
[data-theme="fine"] .fine-monogram {
  width: 56px; height: 56px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 19px/1 var(--font-display);
  letter-spacing: 0.06em;
  color: var(--on-surface);
}
[data-theme="fine"] .brand-logo { display: none; }   /* the monogram stands for the logo */
[data-theme="fine"] .header-actions { gap: 2px; }
[data-theme="fine"] .icon-btn { color: var(--on-surface-variant); }
[data-theme="fine"] .icon-btn:hover { color: var(--on-surface); }
[data-theme="fine"] .toggle-row {
  background: rgba(244, 239, 228, 0.95);
  border-bottom: 1px solid var(--outline-variant);
}
[data-theme="fine"] .seg-toggle {
  background: transparent;
  border: 1px solid var(--outline);
  backdrop-filter: none;
  box-shadow: none;
}
[data-theme="fine"] .seg-toggle button.active { background: var(--on-surface); color: var(--surface); }
[data-theme="fine"] .table-chip { border-color: var(--outline); color: var(--on-surface-variant); }
[data-theme="fine"] .table-chip .material-symbols-outlined { color: var(--primary); }
[data-theme="fine"] .search-row { border-bottom-color: var(--outline-variant); }
[data-theme="fine"] .search-row input { background: var(--surface-container-lowest); border-color: var(--outline); color: var(--on-surface); }
[data-theme="fine"] .sheet-divider { background: var(--outline-variant); border-bottom: none; }
[data-theme="fine"] .toast { border-color: var(--outline); }
[data-theme="fine"] #join-prompt { background: var(--surface-container-lowest); border: 1px solid var(--outline); box-shadow: 0 14px 34px -14px rgba(60, 40, 20, 0.3); }
[data-theme="fine"] textarea::placeholder { color: var(--on-surface-variant); }

/* Buttons: the quiet one is a hairline box in ink; the one solid is burgundy. */
[data-theme="fine"] .btn-gold,
[data-theme="fine"] .btn-outline-gold {
  background: transparent;
  border: 1px solid var(--on-surface);
  color: var(--on-surface);
  border-radius: 2px;
  letter-spacing: 0.22em;
}
[data-theme="fine"] .btn-gold:hover:not(:disabled),
[data-theme="fine"] .btn-outline-gold:hover:not(:disabled) { background: var(--surface-container-high); color: var(--on-surface); border-color: var(--on-surface); }
[data-theme="fine"] .btn-gold.solid,
[data-theme="fine"] .btn-gold.solid:hover:not(:disabled) {
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

/* Tabs: small caps, a burgundy underline for the live one. */
[data-theme="fine"] .cat-nav { background: var(--surface); border-bottom: 1px solid var(--outline-variant); }
[data-theme="fine"] .cat-nav button {
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding-bottom: 12px;
  border-bottom: 1px solid transparent;
}
[data-theme="fine"] .cat-nav button.active { color: var(--on-surface); border-bottom-color: var(--primary); }

/* Sections: a centred small-caps heading between two hairlines. */
[data-theme="fine"] .menu-list { gap: 0; padding-bottom: 120px; }
[data-theme="fine"] .menu-section { gap: 0; }
[data-theme="fine"] .menu-section-head {
  justify-content: center;
  gap: 10px;
  margin: 40px 0 26px;
  padding: 0;
  border-bottom: none;
  font: 500 12px/1 var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
[data-theme="fine"] .menu-section:first-child .menu-section-head { margin-top: 22px; }
[data-theme="fine"] .menu-section-head::before,
[data-theme="fine"] .menu-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--outline);
}
[data-theme="fine"] .menu-section-count { display: none; }
[data-theme="fine"] .menu-section-body { gap: 46px; }

/* ══ The dish card ════════════════════════════════════════════════ */
[data-theme="fine"] .fine-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  cursor: pointer;
}
[data-theme="fine"] .fine-card.unavailable { opacity: 0.5; cursor: not-allowed; }
/* The arch: a tall rounded top over a square base, like a framed plate. */
[data-theme="fine"] .fine-arch {
  position: relative;
  width: 72%;
  max-width: 250px;
  aspect-ratio: 5 / 6;
  border-radius: 999px 999px 10px 10px;
  overflow: hidden;
  background: var(--surface-variant);
  box-shadow: 0 10px 30px -14px rgba(60, 40, 20, 0.35);
}
[data-theme="fine"] .fine-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-theme="fine"] .fine-arch .img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #e8dfcc, #d9ccb3);
  color: #a79675;
}
/* The burgundy "Signature" badge, tilted into the arch's corner. */
[data-theme="fine"] .fine-sig {
  position: absolute;
  top: 8%; right: -6%;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 9px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(18deg);
  box-shadow: 0 6px 16px -6px rgba(60, 20, 30, 0.5);
}
/* The play glyph: only on a dish that actually has a clip. */
[data-theme="fine"] .fine-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.82);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}
[data-theme="fine"] .fine-play .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 1; }
[data-theme="fine"] .fine-sold {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244, 239, 228, 0.7);
  font: 600 10px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface);
}
[data-theme="fine"] .fine-card h3 {
  margin-top: 22px;
  font: 400 26px/1.15 var(--font-display);
  color: var(--on-surface);
}
/* The dotted rule, the price in the middle of it. */
[data-theme="fine"] .fine-price {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 12px;
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.22em;
  color: var(--on-surface);
}
[data-theme="fine"] .fine-price::before,
[data-theme="fine"] .fine-price::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 2px dotted var(--outline);
}
[data-theme="fine"] .fine-desc {
  margin-top: 16px;
  font: italic 400 15px/1.5 var(--font-display);
  color: var(--on-surface);
  max-width: 300px;
}
[data-theme="fine"] .fine-meta {
  margin-top: 12px;
  font: 400 10px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
/* "Ask Aria about ingredients, spice, or the perfect pairing" */
[data-theme="fine"] .fine-ask {
  margin-top: 22px;
  width: 100%;
  max-width: 320px;
  padding: 14px 18px;
  border: 1px solid var(--outline);
  border-radius: 2px;
  background: transparent;
  color: var(--on-surface);
  font: italic 400 13px/1.45 var(--font-display);
  cursor: pointer;
}
[data-theme="fine"] .fine-ask:hover { border-color: var(--on-surface); }
[data-theme="fine"] .fine-ask .material-symbols-outlined { font-size: 14px; vertical-align: -2px; color: var(--primary); }
[data-theme="fine"] .fine-add {
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
  padding: 13px 18px;
  border: 1px solid var(--on-surface);
  border-radius: 2px;
  background: transparent;
  color: var(--on-surface);
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
}
[data-theme="fine"] .fine-add:hover:not(:disabled) { background: var(--on-surface); color: var(--surface); }
[data-theme="fine"] .fine-add:disabled { opacity: 0.4; cursor: not-allowed; }
[data-theme="fine"] .menu-empty .material-symbols-outlined { color: var(--outline); }

/* The floating actions, in the same hairline language. */
[data-theme="fine"] .waiter-bar {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline);
  color: var(--on-surface);
}
[data-theme="fine"] .cart-pill { background: var(--on-surface); color: var(--surface); }

/* The sheets and Aria on paper. */
[data-theme="fine"] .sheet-panel { border-top: 1px solid var(--outline); border-radius: 10px 10px 0 0; }
[data-theme="fine"] .msg-bubble { background: var(--surface-container-lowest); border: 1px solid var(--outline-variant); color: var(--on-surface); }
[data-theme="fine"] .msg-row.user .msg-bubble { background: var(--on-surface); color: var(--surface); border-color: var(--on-surface); }
[data-theme="fine"] .aria-avatar { background: var(--surface-container-high); color: var(--primary); border: 1px solid var(--outline); }
[data-theme="fine"] .aria-input-wrap { border-top: 1px solid var(--outline-variant); background: var(--surface); }
[data-theme="fine"] .aria-input-box { background: var(--surface-container-lowest); border: 1px solid var(--outline); }
[data-theme="fine"] .aria-input-box textarea { color: var(--on-surface); }
[data-theme="fine"] .send-btn { background: var(--primary); color: var(--on-primary); }
[data-theme="fine"] .typing-dot { background: var(--on-surface-variant); }
[data-theme="fine"] .aria-input-box .mic-btn { color: var(--on-surface-variant); }
[data-theme="fine"] .aria-input-box .mic-btn.recording { background: var(--primary); color: var(--on-primary); }
[data-theme="fine"] .voice-status { color: var(--on-surface-variant); }
[data-theme="fine"] .allergen-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px var(--pad-mobile) 4px; }
[data-theme="fine"] .allergen-row[hidden] { display: none; }
[data-theme="fine"] .allergen-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--outline);
  border-radius: 2px;
  background: transparent;
  color: var(--on-surface-variant);
  font: 400 10px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
[data-theme="fine"] .allergen-chip .material-symbols-outlined { font-size: 15px; }
[data-theme="fine"] .allergen-chip.excluded { background: var(--on-surface); color: var(--surface); border-color: var(--on-surface); text-decoration: line-through; }
[data-theme="fine"] .allergen-hint {
  text-align: center;
  font: italic 400 12px/1.4 var(--font-display);
  color: var(--on-surface-variant);
  padding: 0 var(--pad-mobile) 10px;
}
/* The language gate on paper. */
[data-theme="fine"] #lang-screen { background: var(--surface); color: var(--on-surface); }
[data-theme="fine"] #lang-screen .marble-texture { display: none; }
[data-theme="fine"] .lang-logo h1 { color: var(--on-surface); }
[data-theme="fine"] .lang-logo p { color: var(--on-surface-variant); }
[data-theme="fine"] .lang-button { background: var(--surface-container-lowest); border: 1px solid var(--outline); color: var(--on-surface); }

/* The sheet hero's play glyph (css/menu.css) in the fine palette: cream, not black glass. */
[data-theme="fine"] .is-hero .is-play { background: rgba(244, 239, 228, 0.82); color: var(--primary); border: none; }
