/* =========================================================
   Scottsdale CC — Toast Live Menu · style="scc-editorial"
   Brand: cream #F6F2EB · bronze #7A5C38 · teal #61A0A3
   Fonts (Google): Poiret One (titles), Raleway (body),
                   Montserrat 600 (nav / labels)
   ---------------------------------------------------------
   Scoped under .tlm-scc so it never leaks into the theme.
   ========================================================= */

.tlm-scc {
  --cream: #F6F2EB;
  --cream-2: #EFE9DD;
  --bronze: #7A5C38;
  --bronze-2: #A5865E;
  --teal: #61A0A3;
  --teal-2: #A9CBCC;
  --ink: #1F1A12;
  --ink-2: #4A4234;
  --muted: #8A8172;
  --line: rgba(122, 92, 56, 0.22);
  --line-2: rgba(122, 92, 56, 0.12);

  --f-title: "Poiret One", "Cormorant Garamond", serif;
  --f-body: "Raleway", -apple-system, "Segoe UI", sans-serif;
  --f-nav: "Montserrat", "Raleway", sans-serif;

  --radius: 2px;
  --shadow: 0 1px 0 rgba(122,92,56,.06);

  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding: clamp(24px, 4vw, 64px) clamp(16px, 4vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* ----- Header ----- */
.tlm-scc .tlm-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.tlm-scc .tlm-eyebrow {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze);
}
.tlm-scc .tlm-title {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  text-align: center;
  color: var(--ink);
  margin: 8px 0 4px;
  letter-spacing: .01em;
}
.tlm-scc .tlm-subtitle {
  text-align: center;
  font-family: var(--f-title);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--bronze);
  letter-spacing: .18em;
  text-transform: lowercase;
}
.tlm-scc .tlm-live {
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tlm-scc .tlm-live .tlm-ago {
  /* Not uppercased or letter-spaced so units like "min"/"hr" stay legible */
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
.tlm-scc .tlm-live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(97,160,163,.18);
  animation: tlm-pulse 2s infinite;
}
.tlm-scc .tlm-now {
  justify-self: start;
  font-family: var(--f-nav);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.tlm-scc .tlm-now b {
  color: var(--bronze);
  font-weight: 600;
}
@keyframes tlm-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(97,160,163,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(97,160,163,0); }
}

/* ----- Sticky nav -----
   Uses position: sticky by default, but promotes to position: fixed via JS
   the moment it would leave the viewport. This survives Elementor / Divi
   ancestor overflow:hidden containers that silently break `sticky`.
   Offset is configurable via --tlm-nav-offset (defaults to 0; JS updates it
   if a WP admin bar or theme header is detected).
*/
.tlm-scc {
  --tlm-nav-offset: 0px;
}
.tlm-scc .tlm-nav-wrap {
  position: sticky;
  top: var(--tlm-nav-offset);
  z-index: 100;
  background: rgba(246,242,235,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
  margin: 0 -16px 40px;
  padding: 0;
  transition: box-shadow .2s ease;
}
.tlm-scc .tlm-nav-wrap.is-pinned {
  position: fixed;
  top: var(--tlm-nav-offset);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 max(16px, calc((100vw - 1280px) / 2));
  box-shadow: 0 2px 12px rgba(122, 92, 56, 0.08);
}
.tlm-scc .tlm-nav-spacer {
  display: none;
  height: 52px;
}
.tlm-scc .tlm-nav-wrap.is-pinned + .tlm-nav-spacer {
  display: block;
}
.tlm-scc .tlm-nav {
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 12px 40px;
  scroll-behavior: smooth;
}
.tlm-scc .tlm-nav::-webkit-scrollbar { display: none; }

/* Fade edges + chevron affordances */
.tlm-scc .tlm-nav-wrap::before,
.tlm-scc .tlm-nav-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .25s ease;
}
.tlm-scc .tlm-nav-wrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(246,242,235,.95) 20%, rgba(246,242,235,0));
  opacity: 0;
}
.tlm-scc .tlm-nav-wrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(246,242,235,.95) 20%, rgba(246,242,235,0));
  opacity: 1;
}
.tlm-scc .tlm-nav-wrap[data-at-start="false"]::before { opacity: 1; }
.tlm-scc .tlm-nav-wrap[data-at-end="true"]::after   { opacity: 0; }

.tlm-scc .tlm-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(246, 242, 235, 0.96);
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(122, 92, 56, 0.12);
  color: var(--bronze);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity .25s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  padding: 0;
  font-family: var(--f-nav);
}
.tlm-scc .tlm-nav-arrow:hover {
  background: var(--bronze);
  color: var(--cream);
}
.tlm-scc .tlm-nav-arrow svg { width: 14px; height: 14px; }
.tlm-scc .tlm-nav-arrow--prev { left: 6px; }
.tlm-scc .tlm-nav-arrow--next { right: 6px; opacity: 1; }
.tlm-scc .tlm-nav-wrap[data-at-start="false"] .tlm-nav-arrow--prev { opacity: 1; }
.tlm-scc .tlm-nav-wrap[data-at-end="true"] .tlm-nav-arrow--next    { opacity: 0; pointer-events: none; }

/* Gentle attention nudge when the page first loads (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .tlm-scc .tlm-nav-arrow--next {
    animation: tlm-nudge 2.4s ease-in-out 0.8s 2;
  }
}
@keyframes tlm-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(3px); }
}

.tlm-scc .tlm-nav a {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 14px;
  margin-right: 4px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.tlm-scc .tlm-nav a:hover,
.tlm-scc .tlm-nav a.is-active {
  color: var(--cream);
  background: var(--bronze);
}

/* ----- Category header ----- */
.tlm-scc .tlm-group {
  position: relative;
  padding: 56px 0 40px;
  scroll-margin-top: 80px;
}
.tlm-scc .tlm-group + .tlm-group {
  border-top: 1px solid var(--line-2);
}
.tlm-scc .tlm-group__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
}
.tlm-scc .tlm-group__name {
  font-family: var(--f-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}
.tlm-scc .tlm-group__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.tlm-scc .tlm-group__rule::after {
  content: "";
  position: absolute;
  right: -6px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.tlm-scc .tlm-group__count {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 8px;
}

/* Faint teal roadrunner watermark behind the head */
.tlm-scc .tlm-group__mark {
  position: absolute;
  right: 0;
  top: 24px;
  width: 220px;
  height: 220px;
  opacity: .06;
  pointer-events: none;
  color: var(--teal);
}

/* =========================================================
   LAYOUT: editorial  — one item per row, generous space
   Used for Starters, Salads, Breakfast
   ========================================================= */
.tlm-scc .tlm-layout-editorial .tlm-items {
  display: flex;
  flex-direction: column;
}
.tlm-scc .tlm-layout-editorial .tlm-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}
.tlm-scc .tlm-layout-editorial .tlm-item__name {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--ink);
}
.tlm-scc .tlm-layout-editorial .tlm-item__price {
  font-family: var(--f-title);
  font-size: 24px;
  color: var(--bronze);
  font-feature-settings: "tnum" 1;
}

/* =========================================================
   LAYOUT: grid  — two columns, hungry-guest scannable
   Used for Handhelds & Sandwiches
   ========================================================= */
.tlm-scc .tlm-layout-grid .tlm-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 4px 48px;
}
@media (max-width: 720px) {
  .tlm-scc .tlm-layout-grid .tlm-items { grid-template-columns: 1fr; }
}
.tlm-scc .tlm-layout-grid .tlm-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  gap: 16px;
}
.tlm-scc .tlm-layout-grid .tlm-item__name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.tlm-scc .tlm-layout-grid .tlm-item__price {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--bronze);
  padding: 4px 10px;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}

/* =========================================================
   LAYOUT: ribbon — horizontal comma-list, footer feel
   Used for Sides
   ========================================================= */
.tlm-scc .tlm-layout-ribbon .tlm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 8px 0;
}
.tlm-scc .tlm-layout-ribbon .tlm-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.tlm-scc .tlm-layout-ribbon .tlm-item__name {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-2);
}
.tlm-scc .tlm-layout-ribbon .tlm-item__price {
  font-family: var(--f-title);
  font-size: 17px;
  color: var(--bronze);
}
.tlm-scc .tlm-layout-ribbon .tlm-item + .tlm-item::before {
  content: "•";
  color: var(--teal);
  margin-right: 12px;
  align-self: center;
}

/* =========================================================
   LAYOUT: cocktail — editorial cocktail card
   Used for House Cocktails
   ========================================================= */
.tlm-scc .tlm-layout-cocktail {
  background:
    radial-gradient(circle at 100% 0%, rgba(97,160,163,.06), transparent 60%),
    var(--cream);
}
.tlm-scc .tlm-layout-cocktail .tlm-items {
  display: grid;
  /* Bumped from 300px so 3-word cocktail names (e.g. "Blackberry Bourbon Smash")
     don't wrap at 3-column widths on desktop. Falls to 2 columns naturally. */
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px 56px;
  /* Symmetric inner gutter so col 1 has left breathing room and col N has
     matching right breathing room (fixes the "price hugging container edge"
     issue on the rightmost cocktail card). */
  padding: 0 8px;
}
.tlm-scc .tlm-layout-cocktail .tlm-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* Align to the FIRST baseline so single-line and wrapping items sit on the
     same visual row; price aligns to the top of the name, not center. */
  align-items: start;
  gap: 14px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-2);
  min-height: 68px;
}
.tlm-scc .tlm-layout-cocktail .tlm-item__num {
  font-family: var(--f-title);
  font-size: 14px;
  color: var(--teal);
  min-width: 24px;
  padding-top: 6px; /* optical alignment to name x-height */
  font-feature-settings: "tnum" 1;
}
.tlm-scc .tlm-layout-cocktail .tlm-item__name {
  font-family: var(--f-title);
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--ink);
  line-height: 1.15;
  padding-right: 8px;
}
.tlm-scc .tlm-layout-cocktail .tlm-item__price {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 13px;
  /* Reduced letter-spacing so $15 stays legible; tabular-nums so prices align */
  letter-spacing: .04em;
  color: var(--bronze);
  padding-top: 6px; /* optical alignment to name x-height */
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* =========================================================
   LAYOUT: taplist — multi-column bottle/can list
   Used for Bottles & Cans. Same column rhythm as cocktail,
   but with a small BOTTLE / CAN chip instead of a number.
   ========================================================= */
.tlm-scc .tlm-layout-taplist .tlm-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px 48px;
  padding: 0 8px;
}
.tlm-scc .tlm-layout-taplist .tlm-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-2);
  min-height: 54px;
}
.tlm-scc .tlm-layout-taplist .tlm-item__type {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--bronze);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px 3px;
  min-width: 52px;
  text-align: center;
  background: rgba(255,255,255,.35);
}
.tlm-scc .tlm-layout-taplist .tlm-type--can {
  color: var(--teal);
  border-color: rgba(97,160,163,.35);
  background: rgba(97,160,163,.06);
}
.tlm-scc .tlm-layout-taplist .tlm-item__name {
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  padding-right: 8px;
}
.tlm-scc .tlm-layout-taplist .tlm-item__price {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--bronze);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* =========================================================
   LAYOUT: chips — taplist chalkboard chips
   Used for Draft, Bottles & Cans
   ========================================================= */
.tlm-scc .tlm-layout-chips .tlm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tlm-scc .tlm-layout-chips .tlm-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.tlm-scc .tlm-layout-chips .tlm-item:hover {
  background: #fff;
  transform: translateY(-1px);
}
.tlm-scc .tlm-layout-chips .tlm-item__name {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.tlm-scc .tlm-layout-chips .tlm-item__price {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--bronze);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

/* =========================================================
   LAYOUT: wine — serif list, grouped by varietal
   Used for Wine (no prices in Toast feed today)
   ========================================================= */
.tlm-scc .tlm-layout-wine .tlm-varietal {
  margin-top: 24px;
}
.tlm-scc .tlm-layout-wine .tlm-varietal:first-child { margin-top: 0; }
.tlm-scc .tlm-layout-wine .tlm-varietal__label {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.tlm-scc .tlm-layout-wine .tlm-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 4px 32px;
}
.tlm-scc .tlm-layout-wine .tlm-item {
  padding: 8px 0;
  border-bottom: 1px dotted var(--line-2);
}
.tlm-scc .tlm-layout-wine .tlm-item__name {
  font-family: var(--f-title);
  font-size: 20px;
  color: var(--ink);
}
.tlm-scc .tlm-layout-wine .tlm-hint {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

/* =========================================================
   LAYOUT: spirits — subgrouped columns
   ========================================================= */
.tlm-scc .tlm-layout-spirits .tlm-family {
  display: block;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.tlm-scc .tlm-layout-spirits .tlm-family:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.tlm-scc .tlm-layout-spirits .tlm-family__label {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.tlm-scc .tlm-layout-spirits .tlm-family__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 2px 32px;
}
.tlm-scc .tlm-layout-spirits .tlm-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line-2);
}
.tlm-scc .tlm-layout-spirits .tlm-item__name {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
}
.tlm-scc .tlm-layout-spirits .tlm-item__price {
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 12px;
  color: var(--bronze);
}

/* =========================================================
   LAYOUT: spotlight — Monthly Specials, hero treatment
   ========================================================= */
.tlm-scc .tlm-layout-spotlight {
  background: linear-gradient(180deg, rgba(97,160,163,.10), transparent 100%);
  border: 1px solid var(--teal-2);
  border-radius: var(--radius);
  padding: 40px clamp(16px,3vw,40px);
  margin: 32px 0;
}
.tlm-scc .tlm-layout-spotlight .tlm-group__name {
  color: var(--teal);
}
.tlm-scc .tlm-layout-spotlight .tlm-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.tlm-scc .tlm-layout-spotlight .tlm-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
}
.tlm-scc .tlm-layout-spotlight .tlm-item__name {
  font-family: var(--f-title);
  font-size: 24px;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
  line-height: 1.15;
}
.tlm-scc .tlm-layout-spotlight .tlm-item__price {
  display: inline-block;
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--bronze);
  padding: 4px 12px;
  border: 1px solid var(--bronze);
  border-radius: 999px;
}

/* =========================================================
   Sold-out state
   ========================================================= */
.tlm-scc .tlm-item.is-sold-out {
  opacity: .42;
  position: relative;
}
.tlm-scc .tlm-item.is-sold-out .tlm-item__name {
  text-decoration: line-through;
  text-decoration-color: var(--bronze-2);
  text-decoration-thickness: 1px;
}
.tlm-scc .tlm-item.is-sold-out::after {
  content: "SOLD OUT · BACK TOMORROW";
  display: inline-block;
  margin-left: 12px;
  font-family: var(--f-nav);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--bronze);
  border: 1px solid var(--bronze);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* =========================================================
   Footer
   ========================================================= */
.tlm-scc .tlm-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-nav);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tlm-scc .tlm-footer a { color: var(--bronze); text-decoration: none; }

/* Responsive header */
@media (max-width: 720px) {
  .tlm-scc .tlm-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tlm-scc .tlm-live,
  .tlm-scc .tlm-now { justify-self: center; }
}
