/* design-spec.css — Locked UX spec 2026-09-28 (whatanooga). Loaded after styles.css.
   Brand: Deep Navy #02376C · Nooga Orange #F85324 · Sky #68BAF4 · Sunset Gold #F5B455 · White #FFFFFF
          Light bg #F7F9FB · Primary text #12324A · Secondary text #5E7180 */
:root {
  /* Existing light-mode palette (--cream/--ink/--muted…) is intentionally NOT overridden (handoff item 4).
     New spec components use the locked brand tokens below. Sitewide adoption of #F7F9FB/#12324A/#5E7180 = open question. */
  --ds-navy: #02376c;
  --ds-orange: #f85324;
  --ds-sky: #68baf4;
  --ds-gold: #f5b455;
  --ds-card: #ffffff;
  --ds-card-line: rgba(94, 113, 128, 0.22);
  --ds-text: #12324a;
  --ds-text-2: #5e7180;
  --ds-chip-line: rgba(94, 113, 128, 0.4);
}

/* ---------- Dark Mode toggle (header / nav) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ds-chip-line); color: var(--ds-navy);
  font-size: 12px; font-weight: 700; background: transparent;
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle:hover { border-color: var(--ds-navy); }
.theme-toggle[aria-pressed="true"] { border-color: var(--ds-sky); }
.theme-toggle .tt-short { display: none; }
.nav .theme-toggle { display: none; }
@media (max-width: 850px) {
  .header-actions > .theme-toggle { padding: 6px 10px; }
  .header-actions > .theme-toggle .tt-long { display: none; }
  .header-actions > .theme-toggle .tt-short { display: inline; }
}
@media (max-width: 600px) {
  /* keep the existing mobile header: search icon stays hidden now that it is no longer :first-child */
  .header-actions > .icon-button[data-action="search"] { display: none; }
  .nav .theme-toggle { margin: 12px 3px 0; }
}
@media (max-width: 700px) {
  .header-actions > .theme-toggle { display: none; }
  .nav .theme-toggle { display: inline-flex; flex-shrink: 0; align-self: center; }
  .nav .theme-toggle .tt-long { display: none; }
  .nav .theme-toggle .tt-short { display: inline; }
}

/* ---------- Shared filter primitives ---------- */
.ds-label {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ds-text-2); margin: 0 0 7px;
}
.ds-chips { display: flex; gap: 8px; align-items: center; }
.scroll-row {
  flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { flex: 0 0 auto; }
.ds-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  min-height: 40px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--ds-chip-line); background: var(--ds-card);
  color: var(--ds-text); font-size: 12px; font-weight: 600; line-height: 1.2;
}
.ds-chip:hover { border-color: var(--ds-navy); }
.ds-chip.is-active { background: var(--ds-navy); border-color: var(--ds-navy); color: #fff; }
/* toggle filters (Good For, Birthday Deals, Near Me, Event types): selected = orange outline */
.ds-chip.toggle.is-active {
  background: var(--ds-card); color: var(--ds-text);
  border: 2px solid var(--ds-orange); padding: 6px 13px;
}
.ds-chip .chk { display: none; width: 14px; height: 14px; color: var(--ds-orange); }
.ds-chip.toggle.is-active .chk { display: inline-block; }
.ds-select {
  appearance: auto; min-height: 40px; min-width: 170px; max-width: 100%;
  border: 1px solid var(--ds-chip-line); background: var(--ds-card); color: var(--ds-text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600;
}

/* ---------- Food & drink filter bar (items 1–5) ---------- */
.food-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px;
  padding: 18px 0 20px; border-top: 1px solid var(--line); min-width: 0;
}
.ff-group { min-width: 0; }
.ff-area-chips, .ff-type-chips { display: none; }
.near-notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 14px 16px; margin: 0 0 20px; border-radius: 8px;
  border: 1px solid var(--ds-card-line); border-left: 3px solid var(--ds-gold); background: var(--ds-card);
}
.near-notice p { color: var(--ds-text); font-size: 13px; font-weight: 600; margin: 0; }
.near-notice .nn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.near-notice .button { min-height: 40px; padding: 9px 16px; }
@media (max-width: 760px) {
  .food-filters { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; }
  .ff-group { width: 100%; }
  .ff-area-select, .ff-type-select { display: none; }
  .ff-area-chips, .ff-type-chips { display: flex; }
  .ff-quick { order: -1; display: flex; gap: 18px; flex-wrap: nowrap; }
  .ff-quick .ff-group { width: auto; min-width: 0; }
  .food-filters .scroll-row { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .near-notice .nn-actions { width: 100%; }
  .near-notice .button { flex: 1 1 auto; }
}
@media (min-width: 761px) { .ff-quick { display: contents; } }

/* ---------- Food & drink venue cards (items 4, 6, 7) ---------- */
.venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; align-items: stretch; }
@media (max-width: 1000px) { .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .venue-grid { grid-template-columns: minmax(0, 1fr); } }
.venue-card, .venue-event-card {
  background: var(--ds-card); border: 1px solid var(--ds-card-line); border-radius: 12px;
  overflow: hidden; min-width: 0; max-width: 100%; box-sizing: border-box;
}
.venue-card .card-visual, .venue-event-card .card-visual {
  aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; width: 100%;
}
.venue-card .card-visual img, .venue-event-card .card-visual img { width: 100%; height: 100%; object-fit: cover; }
.venue-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.venue-body > * { max-width: 100%; }
.venue-card h3, .venue-event-card h3 { font-size: 23px; margin: 2px 0 0; overflow-wrap: anywhere; color: var(--ds-text); }
.venue-meta { font-size: 12px; font-weight: 700; color: var(--ds-text-2); letter-spacing: 0.01em; }
.venue-distance { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ds-navy); }
.venue-distance svg { width: 14px; height: 14px; }
.venue-desc {
  font-size: 13px; line-height: 1.55; color: var(--ds-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.goodfor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.goodfor-tag {
  font-size: 11px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px;
  border: 1px solid var(--ds-card-line); color: var(--ds-text);
}
.official-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ds-navy);
}
.official-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.venue-card .photo-note { bottom: 8px; }

/* Wattie's Favorite badge (item 6) — navy pill, white text, orange accent, never wraps */
.wattie-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: var(--ds-navy); color: #fff; white-space: nowrap; max-width: 100%;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; line-height: 1;
  padding: 4px 10px 4px 6px; border-radius: 999px; border: 1.5px solid var(--ds-orange);
}
.wattie-badge .wb-icon { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; margin: -2px 0; }
@media (max-width: 600px) { .wattie-badge { font-size: 9px; letter-spacing: 0.03em; padding: 3px 8px 3px 5px; gap: 4px; } .wattie-badge .wb-icon { width: 14px; height: 14px; } }

/* Birthday Deal badge (item 4) */
.bday { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.bday-badge {
  display: inline-flex; align-items: center; align-self: flex-start; height: 24px; padding: 0 9px;
  background: #fff4e8; border: 1px solid #f5b455; color: #8a5200; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.bday-offer { font-size: 13px; font-weight: 700; color: var(--ds-text); }
.bday-how { font-size: 12px; color: var(--ds-text-2); }

/* ---------- Events type chips (item 8) ---------- */
.event-type-filters { padding: 4px 0 18px; min-width: 0; }
.event-type-filters .ds-chips { flex-wrap: nowrap; }
@media (max-width: 760px) { .event-type-filters .scroll-row { margin: 0 -18px; padding-left: 18px; padding-right: 18px; } }

/* ---------- Save to Calendar (item 10) ---------- */
.save-cal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 8px;
  background: #fff; border: 1px solid #02376c; color: #02376c;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; align-self: flex-start; margin: 10px 0 2px;
}
.save-cal svg { width: 16px; height: 16px; }
.save-cal:hover, .save-cal:active { background: #02376c; color: #fff; }
.save-cal.detail { margin: 18px 0 4px; }
@media (max-width: 600px) { .save-cal { width: 100%; min-height: 44px; } }

/* ---------- Venue calendar sections (item 9) ---------- */
.venue-cal { border-top: 1px solid var(--line); padding: 30px 0 8px; margin-top: 30px; }
.venue-cal h2 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: 0.02em; }
.venue-cal-sub { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ds-text-2); margin: 6px 0 16px; }
.venue-cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .venue-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .venue-cal-grid { grid-template-columns: minmax(0, 1fr); } }
.venue-cal .view-all { display: inline-flex; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ds-navy); min-height: 40px; align-items: center; }
.venue-cal .view-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.venue-event-card .card-meta { margin-top: 0; }
.venue-links a { font-size: 12px; font-weight: 700; color: var(--ds-navy); }

/* ---------- Public footer (item 12) ---------- */
.site-footer.ds-footer { background: #02376c; color: #fff; padding: 44px 0 22px; }
.ds-footer a, .ds-footer button { color: #fff; }
.ds-footer a:hover, .ds-footer button:hover { color: #f5b455; text-decoration: underline; text-underline-offset: 4px; }
.ds-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ds-footer h2, .ds-footer h3 { color: #fff; font-family: inherit; letter-spacing: 0.14em; line-height: 1.2; }
.ds-footer .ds-f-brand { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.ds-footer .ds-f-tag { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; font-family: Georgia, serif; letter-spacing: -0.01em; }
.ds-footer p { color: #b9d2e2; font-size: 13px; line-height: 1.6; max-width: 340px; }
.ds-footer h3 { font-size: 11px; font-weight: 800; margin: 0 0 12px; color: #b9d2e2; }
.ds-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-footer li, .ds-footer li a, .ds-footer li button, .ds-footer li span { font-size: 14px; }
.ds-footer li button { padding: 0; font: inherit; font-size: 14px; }
.ds-footer .ds-plain { color: #fff; }
.ds-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 34px; padding-top: 16px;
  border-top: 1px solid rgba(185, 210, 226, 0.3); font-size: 12px; color: #b9d2e2;
}
@media (max-width: 700px) {
  .ds-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ds-footer-bottom { flex-direction: column; }
}

/* ======================= DARK MODE (item 11) ======================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0d1b26; --paper: #142a39; --ink: #ffffff; --muted: #b9cbd7; --line: #315063;
  --navy: #ffffff; --green: #68baf4; --sky: #142a39; --pale: #142a39;
  --ds-navy: #68baf4; --ds-card: #142a39; --ds-card-line: #315063; --ds-text: #ffffff; --ds-text-2: #b9cbd7; --ds-chip-line: #315063;
}
html[data-theme="dark"] body { background: #0d1b26; color: #fff; }
html[data-theme="dark"] p { color: #b9cbd7; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .card-meta, html[data-theme="dark"] .compact-card .compact-date,
html[data-theme="dark"] .nav a.active { color: #f85324; }
html[data-theme="dark"] .newsletter .eyebrow { color: #f5b455; }
/* primary CTA = orange/white; secondary = transparent with sky/white border */
html[data-theme="dark"] .button { background: #f85324; color: #fff; }
html[data-theme="dark"] .button:hover { background: #f85324; filter: brightness(1.08); }
html[data-theme="dark"] .button.outline, html[data-theme="dark"] .button.light { background: transparent; color: #fff; border-color: #68baf4; }
html[data-theme="dark"] .button.outline:hover { background: rgba(104, 186, 244, 0.12); }
html[data-theme="dark"] .chip { border-color: #315063; color: #fff; }
html[data-theme="dark"] .chip.active { background: #f85324; border-color: #f85324; color: #fff; }
html[data-theme="dark"] .chip:hover:not(.active), html[data-theme="dark"] .icon-button:hover { background: #142a39; }
html[data-theme="dark"] .ds-chip.is-active { background: #f85324; border-color: #f85324; color: #fff; }
html[data-theme="dark"] .ds-chip.toggle.is-active { background: #142a39; color: #fff; border-color: #f85324; }
html[data-theme="dark"] .theme-toggle { color: #fff; border-color: #68baf4; }
html[data-theme="dark"] .card-visual, html[data-theme="dark"] .guide-tile, html[data-theme="dark"] .guide-tile:nth-child(2),
html[data-theme="dark"] .mascot-panel, html[data-theme="dark"] .about-intro .mascot-panel, html[data-theme="dark"] .listing-wattie,
html[data-theme="dark"] .wattie-note, html[data-theme="dark"] .values-strip, html[data-theme="dark"] .compact-mark,
html[data-theme="dark"] .date-block, html[data-theme="dark"] .success-mark, html[data-theme="dark"] .closed-card,
html[data-theme="dark"] .saved-link #saved-count, html[data-theme="dark"] .dialog-inner .detail-tip,
html[data-theme="dark"] .notice, html[data-theme="dark"] .notice.warm, html[data-theme="dark"] .tag,
html[data-theme="dark"] .tag.restricted, html[data-theme="dark"] .skip { background: #142a39; color: #fff; }
html[data-theme="dark"] .notice { border-left-color: #68baf4; }
html[data-theme="dark"] .notice.warm { border-left-color: #f5b455; }
html[data-theme="dark"] .tag { color: #68baf4; }
html[data-theme="dark"] .tag.restricted { color: #f5b455; }
html[data-theme="dark"] .search-field, html[data-theme="dark"] .field select, html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .listing-tools select, html[data-theme="dark"] .date-range input,
html[data-theme="dark"] .signup-inline input, html[data-theme="dark"] .ds-select { background: #142a39; color: #fff; border-color: #315063; }
html[data-theme="dark"] .search-field input { color: #fff; }
html[data-theme="dark"] .search-field input::placeholder { color: #b9cbd7; }
html[data-theme="dark"] .save-button { background: #142a39; color: #fff; }
html[data-theme="dark"] .save-button[aria-pressed="true"] { background: #f85324; color: #fff; }
html[data-theme="dark"] .event-date { background: #142a39; color: #fff; }
html[data-theme="dark"] .toast { background: #142a39; color: #fff; border: 1px solid #315063; }
html[data-theme="dark"] .newsletter { background: #142a39; }
html[data-theme="dark"] dialog { background: #142a39; color: #fff; }
html[data-theme="dark"] .dialog-close { background: #0d1b26; color: #fff; }
html[data-theme="dark"] .subscribe-cta, html[data-theme="dark"] .subscribe-cta-label { color: #fff; }
html[data-theme="dark"] .edition-bar { background: #142a39; }
html[data-theme="dark"] .date-range #range-error { color: #f5b455; }
html[data-theme="dark"] .save-cal { background: transparent; border-color: #68baf4; color: #fff; }
html[data-theme="dark"] .save-cal:hover, html[data-theme="dark"] .save-cal:active { background: #68baf4; color: #0d1b26; }
html[data-theme="dark"] .wattie-badge { background: #02376c; color: #fff; }
html[data-theme="dark"] .bday-badge { background: #fff4e8; border-color: #f5b455; color: #8a5200; }
html[data-theme="dark"] .near-notice { border-left-color: #f5b455; }
html[data-theme="dark"] .site-footer.ds-footer { background: #142a39; border-top: 1px solid #315063; }
html[data-theme="dark"] .ds-footer p, html[data-theme="dark"] .ds-footer h3, html[data-theme="dark"] .ds-footer-bottom { color: #b9cbd7; }
html[data-theme="dark"] .ds-footer-bottom { border-top-color: #315063; }
html[data-theme="dark"] :focus-visible { outline-color: #f5b455; }

/* ---------- MICHELIN Guide 2026 badge + filter — ChatGPT lock V2 (2026-10-22) ---------- */
/* Kirk's change: dark-mode Recommended border = gold #F5B455 (not #68BAF4); dark badge bg #0B2A52 */
.michelin-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; min-width: 120px; max-width: calc(100% - 24px); padding: 0 12px;
  border: 2px solid; border-radius: 999px; background: #f8f6f0; box-sizing: border-box;
  white-space: nowrap; box-shadow: 0 1px 5px rgba(16, 44, 65, 0.18);
}
.michelin-badge .mb-icon { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.michelin-badge .mb-svg { width: 14px; height: 14px; stroke-width: 2.2; }
.michelin-badge .mb-star { fill: currentColor; stroke: currentColor; stroke-width: 1; }
.michelin-badge .mb-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.1; }
.michelin-badge .mb-top { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #02376c; }
.michelin-badge .mb-label { font-size: 14px; text-transform: none; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; }
.michelin-badge.mb-bib { border-color: #f85324; }
.michelin-badge.mb-bib .mb-icon { background: #f85324; color: #f8f6f0; }
.michelin-badge.mb-bib .mb-label { font-weight: 700; color: #f85324; }
.michelin-badge.mb-recommended { border-color: #02376c; }
.michelin-badge.mb-recommended .mb-icon { background: #f5b455; color: #02376c; }
.michelin-badge.mb-recommended .mb-label { font-weight: 600; color: #02376c; }
html[data-theme="dark"] .michelin-badge { background: #0b2a52; }
html[data-theme="dark"] .michelin-badge .mb-top, html[data-theme="dark"] .michelin-badge .mb-label { color: #f8f6f0; }
html[data-theme="dark"] .michelin-badge.mb-bib { border-color: #f85324; }
html[data-theme="dark"] .michelin-badge.mb-recommended { border-color: #f5b455; }
html[data-theme="dark"] .michelin-badge.mb-recommended .mb-icon { color: #02376c; }

html[data-theme="dark"] .source-line .share-inline{color:#fff}
html[data-theme="dark"] .source-line{color:#c7d5de}
