@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
/* ============================================================================
   widget.css — Magpies Softserve flavor calendar widget.
   Scoped under .mag-fc to avoid clashing with WordPress theme styles.
   Colors: #fec300, black, white.
   ============================================================================ */
.mag-fc {
  --y: #fec300;
  --k: #111111;
  --w: #ffffff;
  --g1: #fafafa;
  --g2: #f0f0f0;
  --g3: #d8d8d8;
  --g4: #555;
  /* Muted text. #888 failed WCAG AA everywhere it was used (3.11:1 on --g2,
     3.54:1 on white); #6b6b6b is the lightest value that clears 4.5:1 on all
     three backgrounds it sits on, so it stays muted without failing. */
  --g5: #6b6b6b;
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--k);
  font-size: 15px;
  line-height: 1.5;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
.mag-fc *, .mag-fc *::before, .mag-fc *::after { box-sizing: border-box; }

.mag-fc h2 { font-size: 20px; margin: 0 0 10px; color: var(--k); }
.mag-fc h3 { font-size: 16px; margin: 0 0 8px; }
.mag-fc p { margin: 0 0 12px; }

.mag-fc .mag-header {
  background: var(--y);
  color: var(--k);
  padding: 18px 20px;
  border-radius: 12px 12px 0 0;
}
.mag-fc .mag-brand { font-weight: 800; letter-spacing: 0.5px; font-size: 13px; }
.mag-fc .mag-title { font-size: 22px; font-weight: 800; margin: 4px 0 0; }

.mag-fc .mag-controls {
  background: var(--w);
  padding: 14px 16px;
  border-bottom: 1px solid var(--g2);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mag-fc .mag-search {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--g3);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  background: var(--w);
}
/* Placeholder text needs ≥4.5:1 against the white field to satisfy WCAG 1.4.3.
 * Browser defaults vary (#888-ish on most engines, ~3.5:1 on white). #595959
 * gives 7:1 and reads as a normal placeholder — not too dark to feel like real
 * input. Applies to every search/input inside the widget. */
.mag-fc input::placeholder,
.mag-fc textarea::placeholder { color: #595959; opacity: 1; }
.mag-fc .mag-view-toggle {
  display: inline-flex;
  border: 1px solid var(--g3);
  border-radius: 8px;
  overflow: hidden;
}
.mag-fc .mag-view-toggle button {
  background: var(--w);
  color: var(--k);
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.mag-fc .mag-view-toggle button.active { background: var(--k); color: var(--y); }

.mag-fc .mag-body {
  background: var(--w);
  border-left: 1px solid var(--g2);
  border-right: 1px solid var(--g2);
  padding: 16px;
  min-height: 240px;
}

/* List view */
.mag-fc .mag-card {
  border: 1px solid var(--g2);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--w);
  box-shadow: var(--shadow);
}
.mag-fc .mag-card.event { border-left: 4px solid var(--y); }
.mag-fc .mag-card.flavor { border-left: 4px solid var(--k); }
.mag-fc .mag-card .mag-dates {
  font-size: 13px;
  color: var(--g4);
  margin-bottom: 4px;
  font-weight: 600;
}
.mag-fc .mag-card .mag-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.mag-fc .mag-card .mag-card-desc {
  color: #333;
  white-space: pre-wrap;
  margin: 0 0 8px;
}
.mag-fc .mag-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mag-fc .mag-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.mag-fc .mag-tag.warning { background: var(--k); color: var(--y); }
.mag-fc .mag-tag.positive { background: var(--y); color: var(--k); }
.mag-fc .mag-tag.status { background: var(--g2); color: var(--g4); border: 1px solid var(--g3); }
.mag-fc .mag-tag.status.on_now { background: var(--y); color: var(--k); border: 0; }
.mag-fc .mag-tag.status.coming_soon { background: #fff3cc; color: var(--k); border: 1px solid #fde8a3; }
.mag-fc .mag-tag.status.returning_later { background: var(--g2); color: var(--g4); }
.mag-fc .mag-tag.status.past { background: var(--g2); color: var(--g5); }

.mag-fc .mag-empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--g5);
  font-style: italic;
}
/* The same empty state also renders inside the signup panel, where the surface
   flips to near-black. --g5 is tuned for light backgrounds, so it lands at
   3.2:1 here and has to flip with the surface. #aaa matches
   .mag-selected-count on the same panel and measures 7.34:1. */
.mag-fc .mag-signup .mag-empty { color: #aaa; }

/* Month grid view */
.mag-fc .mag-month {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mag-fc .mag-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.mag-fc .mag-month-nav button {
  background: var(--k); color: var(--y); border: 0;
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 600;
}
.mag-fc .mag-month-label { font-weight: 700; font-size: 17px; }
.mag-fc .mag-grid {
  display: grid;
  /* minmax(0, 1fr) prevents long chip text from forcing columns to overflow
   * the container width — the row stays inside the page boundaries. */
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.mag-fc .mag-grid .mag-dow {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--g4);
  padding: 4px 0;
}
.mag-fc .mag-grid .mag-day {
  border: 1px solid var(--g2);
  border-radius: 6px;
  background: var(--w);
  padding: 4px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  position: relative;
  /* No cursor:pointer — the cell itself isn't clickable; only the chips inside
   * are. Showing a pointer here misled users into clicking empty space. */
}
.mag-fc .mag-grid .mag-day.outside { background: var(--g1); color: var(--g5); }
.mag-fc .mag-grid .mag-day.today { outline: 2px solid var(--y); outline-offset: -2px; }
.mag-fc .mag-grid .mag-day .mag-day-num { font-weight: 700; }
.mag-fc .mag-grid .mag-day .mag-dot {
  /* Reset native <button> chrome so the chip still looks like a chip. */
  border: 0;
  font: inherit;
  text-align: left;
  background: var(--k);
  color: var(--y);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 10px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.mag-fc .mag-grid .mag-day .mag-dot.event { background: var(--y); color: var(--k); }

/* Signup form */
.mag-fc .mag-signup {
  background: var(--k);
  color: var(--w);
  padding: 22px 20px;
  border-radius: 0 0 12px 12px;
}
.mag-fc .mag-signup h2 { color: var(--y); margin-bottom: 4px; }
.mag-fc .mag-signup .mag-sub { color: #ddd; font-size: 14px; margin-bottom: 14px; }
.mag-fc .mag-signup label { display: block; margin-bottom: 10px; font-size: 13px; color: #ddd; }
.mag-fc .mag-signup label > span { display: block; margin-bottom: 4px; font-weight: 600; color: var(--w); }
.mag-fc .mag-signup input[type=text],
.mag-fc .mag-signup input[type=email],
.mag-fc .mag-signup input[type=search] {
  width: 100%;
  border: 1px solid #444;
  background: #1c1c1c;
  color: var(--w);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}
.mag-fc .mag-signup input::placeholder { color: #888; }

/* Prominent flavor-search field — the primary way to navigate the 150+ flavor
   library. Magnifier icon on the left, larger tap target, brand-yellow accent
   so it reads as the hero control of the picker (and ties to the yellow CTA). */
.mag-fc .mag-signup .mag-flavor-search-wrap { position: relative; margin-bottom: 4px; }
.mag-fc .mag-signup .mag-flavor-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 16px; line-height: 1; pointer-events: none;
}
.mag-fc .mag-signup input[type=search].mag-flavor-search {
  padding: 13px 14px 13px 42px;
  font-size: 16px;            /* 16px also stops iOS Safari from zoom-on-focus */
  border: 2px solid var(--y);
  background: #232323;
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(254, 195, 0, 0.12);
}
.mag-fc .mag-signup input[type=search].mag-flavor-search::placeholder { color: #c9c9c9; }
.mag-fc .mag-signup input[name="website"] {
  /* Honeypot — hidden from humans. */
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.mag-fc .mag-signup .mag-flavor-list {
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 8px;
  /* The library can be large (150+ flavors). Give the scroll area a generous
     height so many flavors are visible at once — the old 220px cap showed only
     ~4 rows and read as "truncated." Caps at 480px on tall desktops; uses 60%
     of the viewport on shorter screens. Every flavor is still rendered; this is
     just the visible window, with the search box to narrow it down. */
  max-height: min(60vh, 480px);
  overflow: auto;
  padding: 6px;
  margin-top: 4px;
  /* Smooth momentum scroll on touch + a hint that there's more below the fold. */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mag-fc .mag-signup .mag-flavor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 6px;
}
.mag-fc .mag-signup .mag-flavor-row:hover { background: #2a2a2a; }
.mag-fc .mag-signup .mag-flavor-row input { margin: 0; }
/* Checkbox hit area — kept small so it only triggers the favorite toggle */
.mag-fc .mag-signup .mag-flavor-cb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 8px 8px;
  cursor: pointer;
}
/* Name area — separate clickable button that opens the detail modal */
.mag-fc .mag-signup .mag-flavor-name-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 8px 8px 8px 4px;
  cursor: pointer;
  border-radius: 6px;
}
.mag-fc .mag-signup .mag-flavor-name-btn:hover { color: #fff; }
.mag-fc .mag-signup .mag-flavor-row .mag-flavor-name { flex: 1; }
.mag-fc .mag-signup .mag-flavor-row .mag-tag.status { font-size: 10px; padding: 2px 7px; }
.mag-fc .mag-signup .mag-selected-count { font-size: 12px; color: #aaa; margin-top: 6px; }
.mag-fc .mag-signup .mag-submit {
  width: 100%;
  background: var(--y);
  color: var(--k);
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
}
.mag-fc .mag-signup .mag-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.mag-fc .mag-signup .mag-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.mag-fc .mag-signup .mag-msg.error { background: #5a1f1f; color: #ffd1d1; }
.mag-fc .mag-signup .mag-msg.success { background: #1f4a2a; color: #cdf2d2; }

@media (max-width: 480px) {
  .mag-fc .mag-grid .mag-day { min-height: 60px; padding: 3px; font-size: 11px; }
  /* Bigger chips on phones — meets WCAG 2.5.5 touch-target guidance.
   * Match the view-month selector specificity used elsewhere so this rule
   * actually wins on the month view. */
  .mag-fc .mag-grid .mag-day .mag-dot,
  .mag-fc.view-month .mag-grid .mag-day .mag-dot {
    font-size: 12px;
    min-height: 32px;
    padding: 8px 10px;
  }
}

/* ===== v2 multi-store additions ============================================ */
.mag-fc .mag-store-filter {
  border: 1px solid var(--g3); border-radius: 8px; padding: 8px 10px;
  font: inherit; background: var(--w); cursor: pointer;
}
.mag-fc .mag-card.flavor { cursor: pointer; transition: box-shadow .15s, transform .05s; }
.mag-fc .mag-card.flavor:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }
.mag-fc .mag-card.flavor:active { transform: translateY(1px); }
.mag-fc .mag-card-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.mag-fc .mag-card-titlerow .mag-card-title { margin: 0; }
.mag-fc .mag-more { font-size: 12px; color: var(--g5); margin-top: 6px; font-weight: 600; }
.mag-fc .mag-tag.store { background: #fff3cc; color: #7a5400; border: 1px solid #f0d670; }
.mag-fc .mag-grid .mag-day .mag-dot { cursor: pointer; }
.mag-fc .mag-grid .mag-day .mag-dot.store { background: #fff3cc; color: #7a5400; }

/* Detail modal */
.mag-fc-modal-open { overflow: hidden; }
.mag-modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mag-modal {
  background: #fff; color: #111; border-radius: 14px; max-width: 460px; width: 100%;
  max-height: 88vh; overflow: auto; padding: 24px 24px 22px; position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.mag-modal-x {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  font-size: 26px; line-height: 1; color: #111; cursor: pointer; padding: 4px;
}
.mag-modal-title { font-size: 22px; font-weight: 800; padding-right: 28px; }
.mag-modal-tags { margin: 8px 0 6px; }
.mag-modal-tags .mag-tag { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; margin-right: 4px; }
.mag-modal-tags .mag-tag.warning { background: #111; color: #fec300; }
.mag-modal-tags .mag-tag.positive { background: #fec300; color: #111; }
.mag-modal-desc { color: #333; margin: 10px 0 14px; line-height: 1.5; }
.mag-modal-meta { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.mag-modal-meta dt { color: #595959; font-weight: 600; margin: 0; }
.mag-modal-meta dd { margin: 0; color: #111; }

/* Signup store chooser */
.mag-fc .mag-store-choose { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mag-fc .mag-store-opt {
  display: inline-flex; align-items: center; gap: 7px; background: #1c1c1c;
  border: 1px solid #444; border-radius: 8px; padding: 8px 12px; cursor: pointer; color: #fff;
}
.mag-fc .mag-store-opt input { margin: 0; }

/* Picker rows: name left, vegan/dairy + status tags right */
.mag-fc .mag-signup .mag-flavor-row { justify-content: flex-start; }
.mag-fc .mag-signup .mag-flavor-row .mag-flavor-name { flex: 1; }
.mag-fc .mag-flavor-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.mag-fc .mag-flavor-tags .mag-tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.mag-fc .mag-flavor-tags .mag-tag.warning { background: #000; color: #fec300; }
.mag-fc .mag-flavor-tags .mag-tag.positive { background: #fec300; color: #111; }

@media (max-width: 480px) {
  .mag-modal-meta { grid-template-columns: 1fr; gap: 2px 0; }
  .mag-modal-meta dt { margin-top: 8px; }
}

/* Calendar color legend */
.mag-fc .mag-legend {
  background: var(--w); border-left: 1px solid var(--g2); border-right: 1px solid var(--g2);
  padding: 8px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--g4); border-bottom: 1px solid var(--g2);
}
.mag-fc .mag-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.mag-fc .mag-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mag-fc .mag-swatch.all { background: var(--k); }
.mag-fc .mag-swatch.hp { background: var(--k); border-left: 4px solid var(--y); }

.mag-fc .mag-legend-note {
  margin-left: auto; font-style: italic; color: var(--g5); text-align: right;
}
@media (max-width: 560px) {
  .mag-fc .mag-legend-note { margin-left: 0; flex-basis: 100%; text-align: left; }
}

/* ===== Branded store toggle pills (signup) ================================= */
.mag-fc .mag-store-choose { gap: 10px; }
.mag-fc .mag-store-opt {
  position: relative; gap: 9px; padding: 10px 14px 10px 12px;
  background: #1c1c1c; border: 1.5px solid #3a3a3a; border-radius: 10px;
  color: #fff; font-weight: 600; transition: background .12s, border-color .12s, color .12s;
}
.mag-fc .mag-store-opt:hover { border-color: #6a6a6a; }
.mag-fc .mag-store-opt input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.mag-fc .mag-store-opt .mag-check {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid #6a6a6a;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  flex: none; transition: background .12s, border-color .12s;
}
.mag-fc .mag-store-opt .mag-check::after {
  content: ""; width: 5px; height: 9px; border: solid transparent; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px); transition: border-color .12s;
}
.mag-fc .mag-store-opt.on {
  background: var(--y); border-color: var(--y); color: var(--k);
}
/* The store toggle is a <label> inside .mag-signup, so the generic field-label
 * rules captured it. `.mag-fc .mag-signup label` (0,2,1) outranks
 * `.mag-fc .mag-store-opt` (0,2,0), so the pill never became the inline-flex
 * row it was written to be — display fell back to block, its gap:9px never
 * applied, and the checkmark stacked above the store name. The sibling rule
 * `.mag-signup label > span` then painted that name white, leaving white on
 * #fec300 at 1.61:1 once the pill turned yellow — a WCAG failure on a live
 * control. Re-asserting both at signup specificity restores the intended row. */
.mag-fc .mag-signup .mag-store-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.mag-fc .mag-signup .mag-store-opt > span:not(.mag-check) {
  display: inline;
  margin: 0;
  color: inherit;
}
.mag-fc .mag-store-opt.on .mag-check { background: var(--k); border-color: var(--k); }
.mag-fc .mag-store-opt.on .mag-check::after { border-color: var(--y); }
.mag-fc .mag-store-opt:focus-within { outline: 2px solid var(--y); outline-offset: 2px; }

/* List view: signup sits above the list — square its corners, round the list bottom */
.mag-fc.view-list .mag-signup { border-radius: 0; }
.mag-fc.view-list .mag-body { border-bottom: 1px solid var(--g2); border-radius: 0 0 12px 12px; }

/* ===========================================================================
 * Accessibility patches (WCAG 2.1 AA audit fixes)
 * =========================================================================== */

/* Contrast bumps for secondary text — g5 (#888) fails 4.5:1 on light bg */
.mag-fc .mag-legend-note { color: #555; }
.mag-fc .mag-more { color: #555; }
.mag-fc .mag-grid .mag-day.outside { color: #666; }
.mag-fc .mag-tag.status.past { background: #f0f0f0; color: #555; }
.mag-modal-meta dt { color: #555; }

/* Touch targets ≥ 44 px on interactive controls */
.mag-fc .mag-view-toggle button { min-height: 44px; padding-left: 16px; padding-right: 16px; }
.mag-fc .mag-month-nav button { min-height: 44px; padding-left: 16px; padding-right: 16px; }
.mag-modal-x { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mag-fc .mag-grid .mag-day .mag-dot { min-height: 24px; padding: 4px 6px; cursor: pointer; }

/* Visible focus ring on every interactive element (light backgrounds) */
.mag-fc a:focus-visible,
.mag-fc button:focus-visible,
.mag-fc input:focus-visible,
.mag-fc select:focus-visible,
.mag-fc textarea:focus-visible,
.mag-fc [role="button"]:focus-visible,
.mag-fc .mag-flavor-row:focus-within {
  outline: 2px solid var(--k);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Yellow ring for elements that sit on black/dark backgrounds */
.mag-fc .mag-signup button:focus-visible,
.mag-fc .mag-signup input:focus-visible,
.mag-fc .mag-signup .mag-flavor-row:focus-within,
.mag-modal-x:focus-visible {
  outline-color: var(--y);
}

/* Body scroll lock while a dialog is open (paired with JS .mag-fc-modal-open) */
body.mag-fc-modal-open { overflow: hidden; }

/* Make the always-on-menu + swirl callouts pop instead of fading into the
 * legend. Both notes share this rule so they render as a matched pair. */
.mag-fc .mag-legend-note {
  background: var(--y);
  color: var(--k);
  padding: 6px 13px;
  border-radius: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  text-align: left;
  border: 1px solid #e6b000;
}
/* First note pushes the pair to the right edge of the legend row */
.mag-fc .mag-legend-note:first-of-type { margin-left: auto; }
@media (max-width: 560px) {
  .mag-fc .mag-legend-note { margin-left: 0; flex-basis: 100%; text-align: center; }
}

/* Search bar in its own band — sits directly above the flavor body in both views */
.mag-fc .mag-search-band {
  background: var(--w);
  border-left: 1px solid var(--g2);
  border-right: 1px solid var(--g2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Visible "Search" label paired with the input. Plain dark text against the
 * white band passes contrast easily; the label keeps the field discoverable
 * once the placeholder disappears on focus. */
.mag-fc .mag-search-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--k);
  flex: 0 0 auto;
}
.mag-fc .mag-search-band .mag-search { flex: 1 1 auto; width: auto; }

/* Legend, restyled as a clear key panel sitting right above the flavors */
.mag-fc .mag-legend {
  background: #fafafa;
  border-left: 1px solid var(--g2);
  border-right: 1px solid var(--g2);
  border-top: 1px solid var(--g2);
  border-bottom: 1px solid var(--g2);
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--g4);
}
.mag-fc .mag-legend-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  /* --g5 (#888) is 3.4:1 on the legend's #fafafa — below AA for 11px text.
   * --g4 (#555) reads the same weight of "quiet label" at 7.4:1. */
  color: var(--g4);
  padding-right: 4px;
  border-right: 1px solid var(--g3);
}
.mag-fc .mag-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--k);
}
.mag-fc .mag-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: none;
}
.mag-fc .mag-swatch.all { background: var(--k); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
/* "Highland Park only" marker: a SOLID yellow square — matches the fully-yellow
 * store marker on the limited-store flavor chips in the calendar (no black). */
.mag-fc .mag-swatch.hp  {
  background: var(--y);
  /* Solid brand yellow, as intended. Yellow on white is only 1.61:1, so the
     square's boundary carries the 3:1 non-text contrast (WCAG 1.4.11) — this
     ring is ~8.9:1 against white. The swatch stays completely yellow. */
  box-shadow: 0 0 0 1px rgba(0,0,0,0.7);
}

/* Visually hidden but announced — used by the live region that reports how
   many flavors are showing after a filter, search, or view change. */
.mag-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .mag-fc .mag-legend-label { border-right: 0; padding-right: 0; flex-basis: 100%; }
}

/* Larger, easier-to-scan flavor names in the favorites picker */
.mag-fc .mag-signup .mag-flavor-row .mag-flavor-name {
  font-size: 17px;
  font-weight: 600;
}
.mag-fc .mag-signup .mag-flavor-row { padding: 10px 8px; }

/* Center the legend row instead of left-aligned with note pushed right */
.mag-fc .mag-legend { justify-content: center; }
.mag-fc .mag-legend-note { margin-left: 0; text-align: center; }

/* Logo as the brand element in the header */
.mag-fc .mag-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  margin-bottom: 4px;
}

/* Center the header content and double the logo size */
.mag-fc .mag-header { text-align: center; padding: 24px 20px; }
.mag-fc .mag-header .mag-title { text-align: center; }
.mag-fc .mag-logo { height: 112px; margin: 0 auto 8px; }

/* =========================================================================
 * Card hierarchy v2 — flavor name is the hero, date is a small eyebrow
 * ========================================================================= */
.mag-fc .mag-card.flavor {
  padding: 18px 18px 14px;
  border-left-width: 6px;
}
.mag-fc .mag-card.flavor.on-now {
  border-left-color: var(--y);
  background: linear-gradient(to right, #fffbe8 0%, #ffffff 22%);
}
.mag-fc .mag-card.flavor:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.mag-fc .mag-card.flavor .mag-card-title {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--k);
}
.mag-fc .mag-card.flavor .mag-dates {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--g4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mag-fc .mag-card.flavor .mag-dates-range { color: var(--g4); }
.mag-fc .mag-card.flavor .mag-now-pill {
  background: var(--y);
  color: var(--k);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.mag-fc .mag-card.flavor .mag-card-meta { margin: 4px 0 0; }
.mag-fc .mag-card.flavor .mag-more {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--g4);
  letter-spacing: 0.2px;
}
@media (max-width: 480px) {
  .mag-fc .mag-card.flavor .mag-card-title { font-size: 22px; }
}

/* Bigger, more display-y header title */
.mag-fc .mag-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 8px 0 0;
  line-height: 1.1;
}
@media (max-width: 480px) {
  .mag-fc .mag-title { font-size: 28px; }
}

/* Month grid — empty cells for days outside the displayed month */
.mag-fc .mag-grid .mag-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

/* Per-flavor accent — left stripe + small dot next to the headline */
.mag-fc .mag-card.flavor { border-left-color: var(--accent, var(--k)); }
.mag-fc .mag-card.flavor.on-now { border-left-color: var(--y); } /* keep yellow for on-now */
.mag-fc .mag-flavor-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  vertical-align: middle;
}
.mag-fc .mag-card.flavor .mag-card-titlerow {
  display: flex; align-items: center; gap: 10px;
}

/* Store filter — branded pill chips, replaces the native <select> */
.mag-fc .mag-store-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--g1);
  border: 1px solid var(--g2);
  border-radius: 10px;
  padding: 4px;
}
.mag-fc .mag-store-pill {
  font: inherit;
  background: transparent;
  color: var(--g4);
  border: 0;
  border-radius: 7px;
  /* Primary store filter — the most-tapped control in the widget, and it sat
   * at 30px tall. Padding alone would change the pill's shape, so the height
   * floor lives on min-height and the visual proportions stay as designed. */
  padding: 7px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, transform 0.05s;
}
.mag-fc .mag-store-pill:hover { background: rgba(0,0,0,0.04); color: var(--k); }
.mag-fc .mag-store-pill:active { transform: translateY(1px); }
.mag-fc .mag-store-pill.active {
  background: var(--k);
  color: var(--y);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
@media (max-width: 480px) {
  .mag-fc .mag-store-pills { gap: 4px; padding: 3px; }
  .mag-fc .mag-store-pill { padding: 6px 10px; font-size: 12px; }
}

/* On month view, give the widget a much wider container so the calendar grid
 * has room to breathe (the 7-column grid was cramped at 760 px). List view
 * stays narrow because cards read better at column width. */
.mag-fc.view-month { max-width: 1200px; }
.mag-fc.view-month .mag-grid .mag-day { min-height: 100px; padding: 6px; }
.mag-fc.view-month .mag-grid .mag-day .mag-day-num { font-size: 14px; margin-bottom: 4px; }
.mag-fc.view-month .mag-grid .mag-day .mag-dot { font-size: 12px; padding: 5px 8px; line-height: 1.25; }

/* =========================================================================
 * Hero "On the menu right now" cards + section labels
 * ========================================================================= */
.mag-fc .mag-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g4);
  margin: 6px 0 12px;
}
.mag-fc .mag-section-title + .mag-section-title { margin-top: 28px; }
/* The section label following a hero needs a top margin too */
.mag-fc .mag-hero-card + .mag-section-title { margin-top: 28px; }

.mag-fc .mag-hero-card {
  border: 1px solid var(--g2);
  border-left: 8px solid var(--accent, var(--y));
  border-radius: 14px;
  padding: 24px 24px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mag-fc .mag-hero-card:hover,
.mag-fc .mag-hero-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.mag-fc .mag-hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.mag-fc .mag-hero-dates {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--g4);
}
.mag-fc .mag-hero-title {
  font-size: 38px; line-height: 1.08;
  font-weight: 800; letter-spacing: -0.6px;
  margin: 6px 0 12px;
  color: var(--k);
}
.mag-fc .mag-hero-desc {
  color: #222; font-size: 15.5px; line-height: 1.5;
  margin: 0 0 10px;
  max-width: 62ch;
}
.mag-fc .mag-hero-meta { margin: 4px 0; }
.mag-fc .mag-hero-card .mag-more { margin-top: 12px; }

@media (max-width: 480px) {
  .mag-fc .mag-hero-card { padding: 18px 18px 14px; }
  .mag-fc .mag-hero-title { font-size: 28px; }
  .mag-fc .mag-hero-desc { font-size: 14px; }
}

/* Shrink the header logo — frees space so flavors appear above the fold sooner */
.mag-fc .mag-logo { height: 80px; }
@media (max-width: 480px) { .mag-fc .mag-logo { height: 60px; } }
.mag-fc .mag-header { padding: 18px 20px; }

/* =========================================================================
 * Picker upgrades — selected chips, group headers, sorted by status
 * ========================================================================= */
.mag-fc .mag-selected-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px;
  margin-top: 4px;
  min-height: 44px;
  align-items: center;
}
.mag-fc .mag-selected-empty {
  font-size: 13px; color: #888; padding: 4px 8px;
}
.mag-fc .mag-selected-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--y); color: var(--k);
  border: 0; border-radius: 999px;
  padding: 5px 8px 5px 12px;
  font: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.08s, filter 0.12s;
}
.mag-fc .mag-selected-chip:hover { filter: brightness(0.96); }
.mag-fc .mag-selected-chip:active { transform: translateY(1px); }
.mag-fc .mag-selected-chip .mag-selected-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.16);
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.mag-fc .mag-picker-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #999;
  padding: 8px 8px 4px;
  margin-top: 4px;
  border-top: 1px solid #2c2c2c;
}
.mag-fc .mag-picker-group:first-child { border-top: 0; margin-top: 0; }

/* =========================================================================
 * Detail modal v2 — accent-tinted hero band + favorite toggle
 * ========================================================================= */
.mag-fc-modal-open .mag-modal { padding: 0; }   /* hero/content carry their own padding */
.mag-modal { padding: 0 !important; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.mag-modal-hero {
  padding: 24px 28px 20px;
  border-bottom: 4px solid var(--accent, #fec300);
}
.mag-modal-hero .mag-modal-title {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 6px 0 0;
  padding-right: 28px;   /* room for the close × */
  color: #111;
}
.mag-modal-hero .mag-modal-tags { margin: 0 0 4px; }
.mag-modal-content {
  padding: 18px 28px 24px;
}
.mag-modal-x {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.mag-fav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  background: #fff; color: #111;
  border: 1.5px solid #d8d8d8;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.mag-fav-toggle:hover { border-color: #111; }
.mag-fav-toggle:active { transform: translateY(1px); }
.mag-fav-toggle.on { background: var(--y); border-color: var(--y); }
.mag-fav-toggle .mag-fav-icon { font-size: 18px; line-height: 1; }
.mag-fav-toggle.on .mag-fav-icon { color: #c43030; }

@media (max-width: 480px) {
  .mag-modal-hero { padding: 18px 18px 14px; }
  .mag-modal-hero .mag-modal-title { font-size: 26px; }
  .mag-modal-content { padding: 14px 18px 18px; }
}

/* =========================================================================
 * Polish: skeleton loaders, modal motion, body entry animation, search icon
 * ========================================================================= */

/* ----- Skeleton loaders ----- */
@keyframes mag-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.mag-fc .mag-skeleton {
  pointer-events: none;
  border-left-color: #e2e2e2 !important;
  background: #fff !important;
}
.mag-fc .mag-skeleton .sk {
  position: relative;
  background: #ececec;
  border-radius: 5px;
  overflow: hidden;
}
.mag-fc .mag-skeleton .sk::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: mag-shimmer 1.3s linear infinite;
}
.mag-fc .mag-skeleton .sk-title { width: 60%; height: 26px; margin-bottom: 10px; }
.mag-fc .mag-skeleton .sk-date  { width: 40%; height: 11px; margin-bottom: 18px; }
.mag-fc .mag-skeleton .sk-more  { width: 32%; height: 12px; }

.mag-fc .mag-grid .mag-day.mag-skeleton-cell {
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
}
.mag-fc .mag-grid .mag-day.mag-skeleton-cell::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: mag-shimmer 1.3s linear infinite;
}

/* ----- Modal motion (fade + scale-in) ----- */
@keyframes mag-bg-in   { from { opacity: 0; }                                       to { opacity: 1; } }
@keyframes mag-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.mag-modal-bg { animation: mag-bg-in 0.2s ease-out; }
.mag-modal    { animation: mag-modal-in 0.24s cubic-bezier(0.16, 1, 0.3, 1); }

/* ----- Body entry animation (cards fade in on every view change) ----- */
@keyframes mag-card-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.mag-fc .mag-body > * { animation: mag-card-in 0.22s ease-out both; }
/* Stagger so a long list doesn't pop in simultaneously */
.mag-fc .mag-body > *:nth-child(2) { animation-delay: 0.04s; }
.mag-fc .mag-body > *:nth-child(3) { animation-delay: 0.08s; }
.mag-fc .mag-body > *:nth-child(4) { animation-delay: 0.10s; }
.mag-fc .mag-body > *:nth-child(5) { animation-delay: 0.12s; }
.mag-fc .mag-body > *:nth-child(n+6) { animation-delay: 0.14s; }
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .mag-modal-bg, .mag-modal, .mag-fc .mag-body > *, .mag-fc .mag-skeleton .sk::after,
  .mag-fc .mag-grid .mag-day.mag-skeleton-cell::after { animation: none !important; }
}

/* Search inputs render as plain text — no decorative magnifying glass.
 * (Removed: was causing repeated icons in some browsers/SVG-parsing edge cases.) */

/* Stronger "today" indicator on month view */
.mag-fc .mag-grid .mag-day.today {
  outline-width: 3px;
}
.mag-fc .mag-grid .mag-day.today .mag-day-num {
  color: var(--k);
  font-weight: 800;
  background: var(--y);
  border-radius: 999px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* "+N more" overflow chip in busy cells */
.mag-fc .mag-grid .mag-day .mag-dot-more {
  font-size: 10px;
  font-weight: 800;
  color: var(--g4);
  background: var(--g2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  align-self: flex-start;
  letter-spacing: 0.3px;
}

/* Empty state illustration (no flavors / no search match) */
.mag-fc .mag-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 14px;
}
.mag-fc .mag-empty-illustration {
  width: 96px;
  height: 96px;
  opacity: 0.9;
}
.mag-fc .mag-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.2px;
}
.mag-fc .mag-empty-sub {
  font-size: 14px;
  color: #666;
  max-width: 320px;
  line-height: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .mag-fc .mag-empty-illustration {
    animation: mag-empty-float 4s ease-in-out infinite;
  }
}
@keyframes mag-empty-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Signup submit spinner — replaces the "Sign me up" label while the request
 * is in flight. Uses currentColor so it matches the button's text color. */
.mag-fc .mag-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mag-spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes mag-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mag-fc .mag-spinner { animation-duration: 1.5s; }
}

/* ---- "Add to calendar" subscribe button + modal ---- */
.mag-fc .mag-subscribe-btn {
  background: white;
  color: #111;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  /* Sized to clear the WCAG 2.5.5 touch-target floor (44×44 CSS px). */
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.mag-fc .mag-subscribe-btn:hover { background: #fafafa; border-color: #bdbdbd; }
.mag-fc .mag-subscribe-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.mag-fc .mag-subscribe-modal .mag-modal-content { padding: 28px 24px 22px; }
.mag-fc .mag-subscribe-modal .mag-modal-title {
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: #111;
}
.mag-fc .mag-subscribe-modal .mag-modal-desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 18px;
  line-height: 1.5;
}
/* The box-sizing reset above is scoped to `.mag-fc *`, and this modal renders
   outside it, so its children default to content-box. These rules were authored
   in a border-box stylesheet; scope the reset to this modal so they behave as
   written, without changing the detail modal's box model. */
.mag-subscribe-modal *,
.mag-subscribe-modal *::before,
.mag-subscribe-modal *::after { box-sizing: border-box; }

.mag-sub-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.mag-sub-action {
  display: block;
  text-align: center;
  text-decoration: none;
  background: white;
  color: #111;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  transition: background 120ms ease, border-color 120ms ease;
}
.mag-sub-action:hover { background: #fafafa; border-color: #bdbdbd; }
.mag-sub-action.primary {
  background: #111;
  color: #fec300;
  border-color: #111;
}
.mag-sub-action.primary:hover { background: #000; }

/* Text with a rule either side. The rules are flex children rather than
   absolutely-positioned 30% strips: these labels run to ~37 characters, and
   fixed-width strips ran straight through the words, reading as strikethrough.
   Flex lines take whatever space is left, so they can never collide. */
.mag-sub-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6b6b6b;   /* #888 is 3.54:1 on the modal's white surface */
  font-weight: 600;
  margin: 14px 0 10px;
}
.mag-sub-divider::before,
.mag-sub-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e3e3e3;
}

.mag-sub-urlrow {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.mag-sub-urlrow input {
  flex: 1;
  font: inherit;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #444;
  background: #f8f8f8;
  /* Padding alone left this row at 42px; 44 is the touch-target floor the rest
     of the widget already holds (.mag-modal-x, .mag-store-pill). */
  min-height: 44px;
}
.mag-sub-copy {
  background: #111;
  color: #fec300;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-width: 80px;
  min-height: 44px;   /* matches the input beside it and the 44px touch floor */
}
.mag-sub-copy:hover { background: #000; }

.mag-sub-fineprint {
  font-size: 12px;
  color: #6b6b6b;   /* #888 is 3.54:1 on the modal's white surface */
  margin: 0;
  text-align: center;
}

/* Filtered-view banner — shows when arriving via /tarzana, /silver-lake, etc.
 * "Showing flavors at Tarzana · See all stores" */
.mag-fc .mag-filter-banner {
  margin: 12px 0;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
}
.mag-fc .mag-filter-banner-text { font-weight: 600; }
.mag-fc .mag-filter-banner-link {
  background: transparent;
  border: 0;
  font: inherit;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  margin-left: 2px;
}
.mag-fc .mag-filter-banner-link:hover { color: #555; }
.mag-fc .mag-filter-banner-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Optional flavor photo at the top of the detail modal hero band. */
.mag-modal-photo {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #f5f5f5;
}
@media (max-width: 480px) {
  .mag-fc .mag-modal-photo { max-height: 200px; }
}

/* Optional flavor photo on the "on the menu now" hero card. Renders between
 * the eyebrow and the title for a magazine-style layout. */
.mag-fc .mag-hero-photo {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 4px 0 14px;
  background: rgba(255,255,255,0.4);
}
@media (max-width: 480px) {
  .mag-fc .mag-hero-photo { max-height: 160px; }
}

/* Optional thumbnail on "Coming up" cards. Cards without a photo (the vast
 * majority right after rollout) keep the original layout untouched. */
.mag-fc .mag-card.flavor.has-photo {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}
.mag-fc .mag-card.flavor.has-photo > .mag-card-thumb {
  grid-row: 1 / span 4;
  grid-column: 1;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--g2);
  align-self: center;
}
.mag-fc .mag-card.flavor.has-photo > .mag-card-titlerow,
.mag-fc .mag-card.flavor.has-photo > .mag-dates,
.mag-fc .mag-card.flavor.has-photo > .mag-card-meta,
.mag-fc .mag-card.flavor.has-photo > .mag-more {
  grid-column: 2;
}
@media (max-width: 480px) {
  .mag-fc .mag-card.flavor.has-photo {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }
  .mag-fc .mag-card.flavor.has-photo > .mag-card-thumb {
    width: 60px;
    height: 60px;
  }
}

/* Swirl note inherits the identical yellow-callout styling as the
 * "always on the menu" note (no overrides) so the two read as a matched pair. */
.mag-fc .mag-grid .mag-day .mag-dot.swirl {
  border-radius: 4px;
  padding-left: 5px;
}

/* Solid "Swirl" chip — unmistakable marker of a flavor's swirl-group color */
.mag-fc .mag-swirl-chip {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.mag-fc .mag-card-titlerow .mag-swirl-chip { margin-left: 8px; }
.mag-fc .mag-hero-eyebrow .mag-swirl-chip { margin-left: 4px; }

/* ---- Month-cell flavor chip layout (final pass) ---------------------------
 * Each chip is a flex row: a small inline "store mark" (square) at the left,
 * then the truncated flavor name. The whole chip background is the swirl
 * color; the store mark tells you the store scope independent of color. */
.mag-fc.view-month .mag-grid .mag-day .mag-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  min-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;          /* allow ellipsis truncation inside grid columns */
}
.mag-fc.view-month .mag-grid .mag-day .mag-dot .mag-dot-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* Store-scope inline marker — always visible regardless of chip background */
.mag-fc .mag-store-mark {
  flex: 0 0 8px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}
.mag-fc .mag-store-mark.all { background: #111111; box-shadow: 0 0 0 1px rgba(255,255,255,0.35); }
.mag-fc .mag-store-mark.hp  { background: #fec300; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
/* Make day cells generous enough to feel uncramped at any density */
.mag-fc.view-month .mag-grid .mag-day { min-height: 110px; padding: 6px; }

/* ---------------------------------------------------------------------------
   Phone-width month grid.
   Squeezing 7 columns into a ~390px phone left ~43px per cell, and once the
   store marker and padding were subtracted the flavor name had ZERO width —
   the calendar rendered as colored blocks with no text, so the only way to
   tell flavors apart was colour. Give the columns a readable floor and let the
   grid scroll sideways inside its own box instead.

   The PAGE never scrolls horizontally (only this element does), and WCAG 1.4.10
   explicitly exempts content that genuinely requires a two-dimensional layout —
   a month calendar is the textbook case. Desktop is unaffected: above 560px the
   original minmax(0, 1fr) columns still apply.
   --------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .mag-fc.view-month .mag-grid {
    /* 110px shows ~12 characters — enough to read the common flavor names in
       full, while keeping the sideways scroll to about two and a half screens. */
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    overflow-x: auto;
    /* Keep the swipe inside the calendar: don't chain to the embedding page or
       trigger the browser's back-navigation gesture. */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;   /* breathing room for the scrollbar */
  }
}

/* Static calendar table rows participate in the existing seven-column grid. */
.mag-calendar-row { display:contents; }
.mag-fc .mag-title { margin:0; }
.mag-fc .mag-swirl-label { font-size:14px;font-weight:600;color:#333;margin:6px 0; }
.mag-fc .mag-picker-group { margin:14px 0; }
.mag-fc .mag-picker-group > span:first-child { display:block;font-weight:600;margin-bottom:6px; }
.mag-fc input { border-color:#767676; }
.mag-fc input::placeholder { color:#595959;opacity:1; }
.mag-fc .mag-signup input::placeholder { color:#bbb; }
.mag-fc .mag-signup .mag-picker-group > span:first-child { color:#fff; }
.mag-grid:focus-visible { outline:3px solid #111;outline-offset:2px; }
.mag-modal button:focus-visible,.mag-modal a:focus-visible,.mag-modal input:focus-visible { outline:3px solid #111;outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .mag-fc *, .mag-modal *, .toast, .modal-dialog, .modal-backdrop { animation:none !important;transition:none !important;scroll-behavior:auto !important; } }

.mag-fc .mag-chip-group { flex:0 0 auto;font-size:11px;margin-left:3px; }
.mag-fc .mag-hero-title,.mag-fc .mag-card-title,.mag-modal-title,.mag-modal-content { overflow-wrap:anywhere; }
