/* Trattoria Core — public components (menu, booking, contact).
   Uses the theme's design tokens when present, with brand fallbacks. */
.trc-scope, .trc-booking, .trc-menu, .trc-menu-nav, .trc-contact, .trc-hours, .trc-map, .trc-menu-note {
	--_w: var(--color-walnut, #321e1e);
	--_l: var(--color-linen, #f4f1e0);
	--_g: var(--color-graphite, #464545);
	--_s: var(--color-soft-sand, #f4f4f4);
	--_line: color-mix(in srgb, var(--_w) 18%, transparent);
	color: var(--_w);
}

/* Buttons */
.trc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 30px; border: 1px solid var(--_w, #321e1e); border-radius: 4px;
	background: var(--_w, #321e1e); color: var(--_l, #f4f1e0); font: inherit; font-size: 16px; font-weight: 500;
	letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	box-shadow: var(--shadow-sm-2, rgba(0,0,0,.15) 0 2px 8px 0);
}
.trc-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.trc-btn:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
.trc-btn--line { background: transparent; color: var(--_w, #321e1e); box-shadow: none; }
.trc-btn:focus-visible, .trc-chip:focus-visible, .trc-cal__day:focus-visible, .trc-cal__nav:focus-visible { outline: 2px solid var(--_w, #321e1e); outline-offset: 3px; }

/* Notices, help */
.trc-notice { padding: 16px 20px; border: 1px solid var(--_line); border-radius: 4px; background: var(--_s); }
.trc-help, .trc-muted { color: var(--_g); font-size: 14px; line-height: 1.6; }
.trc-loading { color: var(--_g); }
.trc-status { min-height: 1.5em; margin-top: 12px; font-weight: 500; }
.trc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.trc-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; color: var(--_g); }

/* ---------- Menu ---------- */
.trc-menu-nav { position: sticky; top: var(--header-h, 60px); z-index: 5; background: var(--_l); border-bottom: 1px solid var(--_line); margin: 0 0 56px; }
.trc-menu-nav ul { display: flex; gap: 28px; margin: 0; padding: 14px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.trc-menu-nav a { white-space: nowrap; color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; }
.trc-menu-nav a:hover, .trc-menu-nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.trc-menu-cat { margin: 0 0 80px; scroll-margin-top: calc(var(--header-h, 60px) + 64px); }
.trc-menu-cat__title { margin: 0 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px solid var(--_w); }
.trc-menu-cat__desc { color: var(--_g); margin: 0 0 8px; }
.trc-dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 56px; }
@media (min-width: 900px) { .trc-dishes { grid-template-columns: 1fr 1fr; } }
.trc-dish { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--_line); }
.trc-dish__img { flex: 0 0 88px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--_s); }
.trc-dish__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trc-dish__body { flex: 1; min-width: 0; }
.trc-dish__head { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; }
.trc-dish__name { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.trc-dish__price { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trc-dish__desc { margin: 4px 0 0; color: var(--_g); font-size: 16px; line-height: 1.5; }
.trc-dish__meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--_g); }
.trc-tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--_line); border-radius: 4px; font-size: 12px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; color: var(--_w); }
.trc-tag--off { background: var(--_w); color: var(--_l); border-color: var(--_w); }
.trc-dish.is-unavailable .trc-dish__name, .trc-dish.is-unavailable .trc-dish__price { opacity: .5; }
.trc-menu-note { font-size: 14px; color: var(--_g); }

/* ---------- Booking ---------- */
.trc-booking { max-width: 760px; }
.trc-flow { display: grid; gap: 0; }
.trc-step { padding: 32px 0; border-top: 1px solid var(--_line); }
.trc-step:first-child { border-top: 0; padding-top: 0; }
.trc-step__title { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.33; text-transform: uppercase; outline: none; scroll-margin-top: calc(var(--header-h, 60px) + 24px); }
.trc-step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--_w); border-radius: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.trc-party, .trc-slots__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.trc-slots__row { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.trc-slots__label { margin: 16px 0 8px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; color: var(--_g); }
.trc-slots__label:first-child { margin-top: 0; }
.trc-chip { min-height: 48px; padding: 8px 12px; border: 1px solid var(--_w); border-radius: 4px; background: transparent; color: var(--_w); font: inherit; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, color .15s; }
.trc-chip:hover { background: var(--_s); }
.trc-chip[aria-pressed="true"] { background: var(--_w); color: var(--_l); }
.trc-cal { max-width: 420px; }
.trc-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.trc-cal__month { margin: 0; font-size: 18px; font-weight: 500; text-transform: capitalize; letter-spacing: -0.02em; }
.trc-cal__nav { width: 44px; height: 44px; border: 1px solid var(--_line); border-radius: 4px; background: transparent; color: var(--_w); font-size: 22px; line-height: 1; cursor: pointer; }
.trc-cal__nav:disabled { opacity: .3; cursor: default; }
.trc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.trc-cal__wd { text-align: center; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--_g); padding: 4px 0; }
.trc-cal__day { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--_w); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; }
.trc-cal__day:not(:disabled):hover { border-color: var(--_w); }
.trc-cal__day.is-today { text-decoration: underline; text-underline-offset: 4px; }
.trc-cal__day.is-selected { background: var(--_w); color: var(--_l); }
.trc-cal__day:disabled { color: color-mix(in srgb, var(--_w) 28%, transparent); cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.trc-recap { margin: 0 0 20px; padding: 14px 16px; background: var(--_w); color: var(--_l); border-radius: 4px; font-weight: 500; }
.trc-confirm { padding: 32px 28px; background: var(--_s); border-radius: 8px; box-shadow: var(--shadow-sm, rgba(0,0,0,.1) 0 2px 8px 0); outline: none; }
.trc-confirm__title { margin: 0 0 12px; font-size: 32px; font-weight: 500; letter-spacing: -0.021em; line-height: 1.2; }
.trc-dl { margin: 20px 0; }
.trc-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--_line); }
.trc-dl dt { color: var(--_g); }
.trc-dl dd { margin: 0; font-weight: 500; text-align: right; }
.trc-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Forms ---------- */
.trc-form { display: grid; gap: 16px; }
.trc-grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .trc-grid2 { grid-template-columns: 1fr 1fr; } }
.trc-field { display: grid; gap: 6px; }
.trc-field label { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.trc-opt { font-weight: 400; color: var(--_g); }
.trc-field input:not([type=checkbox]), .trc-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; box-sizing: border-box;
	border: 1px solid var(--_g); border-radius: 4px; background: var(--_s); color: var(--_w); font: inherit; font-size: 16px;
}
.trc-field textarea { min-height: 96px; resize: vertical; }
.trc-field input:focus, .trc-field textarea:focus { outline: 2px solid var(--_w); outline-offset: 1px; border-color: var(--_w); }
.trc-field [aria-invalid="true"] { border-color: #8a1f1f; outline-color: #8a1f1f; }
.trc-error { margin: 0; font-size: 14px; color: #8a1f1f; }
.trc-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.trc-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--_w); }
.trc-check label { font-weight: 400; line-height: 1.5; }
.trc-check .trc-error { grid-column: 2; }
.trc-form .trc-btn { justify-self: start; }

/* ---------- Contact ---------- */
.trc-contact { display: grid; gap: 56px; }
@media (min-width: 900px) { .trc-contact { grid-template-columns: 5fr 6fr; gap: 80px; } }
.trc-h { margin: 32px 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; }
.trc-h:first-child { margin-top: 0; }
.trc-contact__addr { font-size: 18px; line-height: 1.44; }
.trc-list { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.trc-list a, .trc-contact a:not(.trc-btn) { color: inherit; text-underline-offset: 4px; }
.trc-hours { margin: 0; }
.trc-hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--_line); }
.trc-hours > div:last-child { border-bottom: 1px solid var(--_line); }
.trc-hours dt { font-weight: 500; }
.trc-hours dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.trc-socials { display: flex; gap: 24px; list-style: none; margin: 32px 0 0; padding: 0; }
.trc-socials a { color: var(--_w); display: inline-flex; }
.trc-map { margin-top: 80px; min-height: 240px; display: grid; place-items: center; text-align: center; gap: 12px; padding: 32px; background: var(--_s); border-radius: 8px; }
.trc-map.is-loaded { padding: 0; min-height: 0; display: block; overflow: hidden; }
.trc-map iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (prefers-reduced-motion: reduce) { .trc-chip { transition: none; } }
