/* Crowd calendar (/parks/{slug}/crowd-calendar)
   Nightfall theme, product register. The page's own data is the hero: a ribbon of every
   date in the year ahead, then a tip-board verdict for the date you pick, then the months.
   The crowd ramp runs from moonlight teal (calm) through candle cream and gold to fireworks
   rose (packed). Lightness stays in a narrow band so dark numerals pass AA on every step,
   and saturation climbs with the crowd, so packed days are the loudest thing on the page.
   Scores are always printed, so color is never the only channel.
   Layout is _Layout (site.css tokens). Resets use :where() so shared components keep
   their own styles (the cite box Copy button was hidden by a scoped reset once). */

.cc {
  --cc-panel:   color-mix(in oklch, var(--paper, oklch(24% 0.045 276)), oklch(100% 0 0) 5%);
  --cc-panel-2: color-mix(in oklch, var(--paper, oklch(24% 0.045 276)), oklch(100% 0 0) 9%);
  --cc-line:    oklch(40% 0.050 280);
  --cc-line-2:  oklch(56% 0.050 281);
  --cc-ink:     var(--ink, oklch(93% 0.030 84));
  --cc-soft:    var(--ink-soft, oklch(83% 0.030 84));
  --cc-muted:   var(--muted, oklch(72% 0.032 84));
  --cc-gold:    var(--gold, oklch(84% 0.130 86));
  --cc-bg:      var(--paper, oklch(24% 0.045 276));
  --cc-onfill:  oklch(21% 0.045 276);
  --cc-sign:    "Saira Condensed", "Hanken Grotesk", system-ui, sans-serif;
  --cc-display: var(--display, "Bricolage Grotesque", system-ui, sans-serif);
  --cc-text:    var(--text, "Hanken Grotesk", system-ui, sans-serif);

  /* radius scale: cell, control, panel */
  --r-cell: 8px;
  --r-ctl: 10px;
  --r-panel: 14px;

  /* motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
  --t: 180ms;

  /* crowd ramp, 1 calm to 10 packed */
  --s1:  oklch(71% 0.090 216);
  --s2:  oklch(73% 0.082 206);
  --s3:  oklch(75.5% 0.066 192);
  --s4:  oklch(81% 0.070 98);
  --s5:  oklch(80% 0.098 89);
  --s6:  oklch(79% 0.138 79);
  --s7:  oklch(76.5% 0.160 64);
  --s8:  oklch(73.5% 0.182 46);
  --s9:  oklch(70.5% 0.198 29);
  --s10: oklch(68% 0.215 14);

  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 0 72px;
  color: var(--cc-ink);
  font-family: var(--cc-text);
}
.cc .s1  { --lv: var(--s1); }
.cc .s2  { --lv: var(--s2); }
.cc .s3  { --lv: var(--s3); }
.cc .s4  { --lv: var(--s4); }
.cc .s5  { --lv: var(--s5); }
.cc .s6  { --lv: var(--s6); }
.cc .s7  { --lv: var(--s7); }
.cc .s8  { --lv: var(--s8); }
.cc .s9  { --lv: var(--s9); }
.cc .s10 { --lv: var(--s10); }

:where(.cc) :where(a) { color: var(--cc-gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.cc) :where(a:hover) { color: var(--cc-ink); }
:where(.cc) :where(button) { font: inherit; color: inherit; }
:where(.cc) :where(button:not(:disabled)) { cursor: pointer; }
:where(.cc) :where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--cc-gold); outline-offset: 2px;
}
.cc .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cc [hidden] { display: none; }
.cc-h2 {
  font-family: var(--cc-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 30px; line-height: 1.1; margin: 0 0 14px; color: var(--cc-ink); text-wrap: balance;
}
.cc-sec-lede { font-size: 17px; line-height: 1.55; color: var(--cc-soft); max-width: 68ch; margin: 0 0 20px; text-wrap: pretty; }
.cc-sec-lede strong { color: var(--cc-ink); font-weight: 700; }

/* ---------------------------------------------------------------- Header */
.cc-head { max-width: 1000px; }
.cc-back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--cc-muted); text-decoration: none; }
.cc-back:hover { color: var(--cc-gold); }
.cc-kicker {
  margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--cc-gold);
}
.cc-title {
  margin: 0; font-family: var(--cc-display); font-weight: 800;
  font-size: clamp(38px, 5.6vw, 66px); line-height: 0.96; letter-spacing: -0.035em;
  color: var(--cc-ink); text-wrap: balance;
}
.cc-title-years { display: block; margin-top: 6px; font-weight: 400; letter-spacing: -0.03em; color: var(--cc-gold); }
.cc-lede { margin: 20px 0 8px; font-size: 18px; line-height: 1.55; color: var(--cc-soft); max-width: 62ch; text-wrap: pretty; }
.cc-updated { margin: 0; font-size: 13px; color: var(--cc-muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Ribbon (signature) */
.cc-ribbon { margin: 28px 0 30px; }
.cc-ribbon-read {
  min-height: 28px; margin-bottom: 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; line-height: 1.2;
  font-size: 14px; color: var(--cc-muted); font-variant-numeric: tabular-nums;
}
.cc-rr-date {
  font-family: var(--cc-sign); font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--cc-ink);
}
.cc-ribbon-help {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px;
  font-size: 13px; color: var(--cc-muted);
}
.cc-hint { font-size: 13px; }
.cc-hint-keys { display: none; }
.cc-ribbon:has(.cc-ribbon-plot:focus-visible) .cc-hint-keys { display: inline; color: var(--cc-ink); }
.cc-ribbon:has(.cc-ribbon-plot:focus-visible) .cc-hint-hover { display: none; }
.cc-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--cc-soft); }
.cc-mini-ramp {
  width: 72px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--s1), var(--s3), var(--s5), var(--s7), var(--s9), var(--s10));
}
.cc-undo {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--cc-panel-2); color: var(--cc-ink); border: 1px solid var(--cc-line-2);
}
.cc-undo:hover { border-color: var(--cc-gold); }
.cc-hint-touch { display: none; }
@media (hover: none) {
  .cc-hint-hover { display: none; }
  .cc-hint-touch { display: inline; }
}
.cc-rr-score {
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px;
  border-radius: 6px; background: var(--lv); color: var(--cc-onfill); font-family: var(--cc-text); font-weight: 800; font-size: 14px;
}
.cc-rr-ev { color: var(--cc-gold); }
.cc-ribbon-plot {
  position: relative; padding-top: 34px; touch-action: pan-y pinch-zoom; cursor: crosshair;
  user-select: none; -webkit-user-select: none; outline: none;
}
.cc-ribbon-plot:focus-visible { outline: 2px solid var(--cc-gold); outline-offset: 6px; border-radius: 4px; }
.cc-ribbon-svg {
  display: block; width: 100%; height: clamp(84px, 12vw, 150px); overflow: visible;
  animation: cc-reveal 220ms var(--ease) both;
}
@keyframes cc-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.cc-rb-bars rect { fill: var(--lv); }
.cc-rb-bars rect.is-ol { fill-opacity: 0.7; }
.cc-ribbon-ol {
  position: absolute; top: 34px; left: var(--x); padding: 0 0 0 6px; border-left: 1px dashed var(--cc-line-2);
  font-size: 12px; font-weight: 600; color: var(--cc-muted); line-height: 1; pointer-events: none;
}
.cc-rb-tick { stroke: var(--cc-line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 3; }
.cc-ribbon-plot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 1px; background: var(--cc-line-2);
}
.cc-ribbon-sel, .cc-ribbon-hover {
  position: absolute; top: 28px; bottom: 28px; left: var(--x, 0%); width: 2px; margin-left: -1px; pointer-events: none;
}
.cc-ribbon-sel { background: var(--cc-ink); transition: left var(--t) var(--ease); }
.cc-ribbon-sel::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--cc-ink); box-shadow: 0 0 0 3px var(--cc-bg);
}
.cc-ribbon-hover { background: var(--cc-gold); opacity: 0; }
.cc-ribbon-plot.is-hovering .cc-ribbon-hover { opacity: 0.85; }
.cc-ribbon-months { position: relative; height: 22px; margin-top: 6px; }
.cc-rm {
  position: absolute; left: var(--x); top: 0; padding-left: 4px;
  font-family: var(--cc-sign); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cc-muted); white-space: nowrap;
}
.cc-rm.is-jan { color: var(--cc-gold); }
.cc-ribbon-peaks { position: absolute; inset: 0 0 auto 0; height: 22px; pointer-events: none; }
.cc-peak {
  position: absolute; left: clamp(52px, var(--x), calc(100% - 52px)); top: 0; transform: translateX(-50%);
  font-family: var(--cc-sign); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap; color: var(--s8);
  padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--s9) 55%, transparent);
  background: var(--cc-bg);
}

/* ---------------------------------------------------------------- Checker + tip board */
.cc-check {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px;
  align-items: start; margin: 0 0 56px; scroll-margin-top: 76px;
}
.cc-ask { padding-top: 8px; margin: 0; }
.cc-go {
  flex: 0 0 auto; height: 56px; padding: 0 18px; border-radius: var(--r-ctl); border: 0;
  background: var(--cc-gold); color: var(--cc-onfill); font-weight: 800; font-size: 16px;
}
.cc.is-js .cc-go { display: none; }
.cc-ask-label { display: block; margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: var(--cc-soft); }
.cc-date-row { display: flex; align-items: stretch; gap: 8px; max-width: 420px; }
.cc-step {
  flex: 0 0 52px; height: 56px; border-radius: var(--r-ctl);
  background: var(--cc-panel); border: 1px solid var(--cc-line); color: var(--cc-ink);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.cc-step:hover:not(:disabled) { background: var(--cc-panel-2); border-color: var(--cc-line-2); }
.cc-step:active:not(:disabled) { transform: scale(0.96); }
.cc-step:disabled { opacity: 0.35; }
.cc-date {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 16px; border-radius: var(--r-ctl);
  background: var(--cc-panel); border: 1px solid var(--cc-line-2); color: var(--cc-ink);
  font-family: var(--cc-text); font-size: 18px; font-weight: 600; color-scheme: dark;
  font-variant-numeric: tabular-nums; transition: border-color var(--t) var(--ease);
}
.cc-date::-webkit-date-and-time-value { text-align: left; }
.cc-date:hover { border-color: var(--cc-gold); }
.cc-ask-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--cc-muted); max-width: 42ch; }
.cc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-chip {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: transparent; border: 1px solid var(--cc-line-2); color: var(--cc-soft);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.cc-chip:hover { border-color: var(--cc-gold); color: var(--cc-ink); background: var(--cc-panel); }
.cc-chip:active { transform: scale(0.97); }
.cc-chip[aria-current="true"] { background: var(--cc-ink); color: var(--cc-onfill); border-color: var(--cc-ink); }

.cc-board {
  --lv: var(--s5);
  scroll-margin-top: 76px;
  position: relative; border-radius: var(--r-panel); padding: 22px 24px 18px;
  background:
    radial-gradient(110% 70% at 0% 0%, color-mix(in oklch, var(--lv) 12%, transparent), transparent 60%),
    var(--cc-panel);
  border: 1px solid var(--cc-line);
}
.cc-board::before {
  /* the tip board's lit header rule, in the day's color (the page's one glow) */
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--lv); box-shadow: 0 0 14px 0 color-mix(in oklch, var(--lv) 55%, transparent);
  transition: background var(--t) var(--ease);
}
.cc-notice {
  margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-ctl); font-size: 14px; line-height: 1.45;
  color: var(--cc-ink); background: color-mix(in oklch, var(--cc-gold) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--cc-gold) 40%, transparent);
}
.cc-board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.cc-board-date {
  margin: 0; font-family: var(--cc-sign); font-weight: 600; font-size: 20px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--cc-ink);
}
.cc-board-standing { margin: 0; font-size: 14px; font-weight: 600; color: color-mix(in oklch, var(--lv), var(--cc-ink) 35%); }
.cc-board-main { display: flex; align-items: center; gap: 22px; margin: 4px 0 14px; }
.cc-board-score { margin: 0; display: flex; align-items: baseline; line-height: 0.8; }
.cc-board-num {
  font-family: var(--cc-display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(88px, 10vw, 128px); letter-spacing: -0.04em; color: var(--lv);
  font-variant-numeric: tabular-nums; transition: color var(--t) var(--ease);
}
.cc-board-of { font-family: var(--cc-text); font-weight: 700; font-size: 22px; color: var(--cc-muted); margin-left: 4px; }
.cc-board-word { min-width: 0; }
.cc-board-level {
  margin: 0 0 6px; font-family: var(--cc-display); font-weight: 800; font-size: 36px;
  letter-spacing: -0.03em; line-height: 1; color: var(--cc-ink);
}
.cc-board-verdict { margin: 0; font-size: 16px; line-height: 1.5; color: var(--cc-soft); max-width: 36ch; }
.cc-board-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.cc-board-facts li {
  font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-cell);
  background: var(--cc-panel-2); color: var(--cc-soft); font-variant-numeric: tabular-nums;
}
.cc-board-facts li.is-event { color: var(--cc-gold); }
.cc-board-facts li.is-early { color: var(--s8); }

.cc-better { border-top: 1px solid var(--cc-line); padding-top: 14px; }
.cc-better-h { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--cc-soft); }
.cc-better-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-alt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border-radius: var(--r-ctl); background: var(--cc-panel-2);
  border: 1px solid transparent;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.cc-alt:hover { border-color: var(--s2); }
.cc-alt:active { transform: scale(0.98); }
.cc-alt-score {
  flex: 0 0 44px; height: 44px; border-radius: var(--r-cell); display: grid; place-items: center;
  background: var(--lv); color: var(--cc-onfill); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums;
}
.cc-alt-body { display: grid; gap: 2px; min-width: 0; }
.cc-alt-date { font-weight: 700; font-size: 16px; color: var(--cc-ink); }
.cc-alt-gain { font-size: 13px; line-height: 1.35; color: var(--s2); }

.cc-strip {
  list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--cc-line);
}
.cc-strip-day {
  width: 100%; display: grid; grid-template-rows: 56px auto auto; justify-items: center; gap: 4px;
  padding: 6px 0 4px; border-radius: var(--r-ctl); background: transparent; border: 1px solid transparent;
  transition: background var(--t) var(--ease);
}
.cc-strip-day::before {
  content: ""; grid-row: 1; grid-column: 1; width: 60%; height: 100%; border-radius: 6px;
  background: oklch(100% 0 0 / 0.05);
}
.cc-strip-bar { grid-row: 1; grid-column: 1; align-self: end; width: 60%; height: var(--h); border-radius: 6px; background: var(--lv); }
.cc-strip-num { font-weight: 800; font-size: 16px; color: var(--cc-ink); font-variant-numeric: tabular-nums; }
.cc-strip-dow { font-size: 13px; font-weight: 600; color: var(--cc-muted); white-space: nowrap; }
.cc-strip-day:hover { background: oklch(100% 0 0 / 0.04); }
.cc-strip-day.is-sel { border-color: var(--cc-line-2); background: var(--cc-panel-2); }
.cc-strip-day.is-sel .cc-strip-dow { color: var(--cc-ink); }
.cc-board-foot { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; min-height: 28px; }
.cc-trip { font-size: 14px; font-weight: 700; }
.cc-board-facts li.is-outlook { color: var(--cc-soft); border: 1px dashed var(--cc-line-2); background: transparent; }
.cc-share-msg { margin: 0; font-size: 13px; color: var(--cc-soft); }
.cc-share-msg:empty { visibility: hidden; }
.cc-share {
  background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 600;
  color: var(--cc-gold); text-decoration: underline; text-underline-offset: 3px;
}
.cc-share:hover { color: var(--cc-ink); }

/* ---------------------------------------------------------------- Calendar (month carousel) */
.cc-cal { margin: 0 0 56px; scroll-margin-top: 76px; }
.cc-cal-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-cal-head .cc-h2 { margin: 0; }
.cc-legend { display: grid; gap: 8px; }
.cc-legend-ramp { list-style: none; display: flex; gap: 3px; margin: 0; padding: 0; }
.cc-legend-ramp li {
  width: 28px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  background: var(--lv); color: var(--cc-onfill); font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums;
}
.cc-legend-words, .cc-legend-keys {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0;
  font-size: 13px; color: var(--cc-muted); font-variant-numeric: tabular-nums;
}
.cc-legend-words strong { color: var(--cc-ink); font-weight: 700; margin-right: 3px; }
.cc-legend-keys li { display: inline-flex; align-items: center; gap: 6px; }
.cc-key-ev, .cc-key-early {
  display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--s5); position: relative;
}
.cc-key-ev::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--cc-onfill); }
.cc-key-ol {
  display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--s3);
  outline: 1.5px dashed color-mix(in oklch, var(--cc-onfill) 70%, transparent); outline-offset: -4px;
}
.cc-key-early::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 2px; background: var(--cc-onfill); }

.cc-cal-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.cc-tabs { flex: 1 1 auto; min-width: 0; }
.cc-tabs-in { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--cc-soft); text-decoration: none; border: 1px solid var(--cc-line);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.cc-tab:hover { border-color: var(--cc-gold); color: var(--cc-ink); }
.cc-tab[aria-current="true"] { background: var(--cc-ink); color: var(--cc-onfill); border-color: var(--cc-ink); }
.cc-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }
.cc-tab.is-outlook .cc-tab-dot { opacity: 0.6; }
.cc-pager { display: flex; gap: 6px; flex: 0 0 auto; }
.cc:not(.is-js) .cc-pager { display: none; }
.cc:not(.is-js) .cc-months { scroll-snap-type: none; }
.cc-page {
  width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-items: center; font-size: 22px;
  background: var(--cc-panel); border: 1px solid var(--cc-line); color: var(--cc-ink);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.cc-page:hover:not(:disabled) { background: var(--cc-panel-2); }
.cc-page:active:not(:disabled) { transform: scale(0.95); }
.cc-page:disabled { opacity: 0.35; }

.cc-months {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 2px;
}
.cc-months::-webkit-scrollbar { display: none; }
.cc-month {
  scroll-snap-align: start; scroll-margin-top: 76px; padding: 14px 12px 12px; border-radius: var(--r-panel);
  background: var(--cc-panel); border: 1px solid var(--cc-line);
}
.cc-month-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 6px; }
.cc-month-name { margin: 0; font-family: var(--cc-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--cc-ink); }
.cc-month-avg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--cc-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-month-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lv); }
.cc-month-note { margin: 0 4px 6px; font-size: 13px; color: var(--cc-muted); }
.cc-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cc-grid th { font-size: 12px; font-weight: 700; color: var(--cc-muted); padding: 0 0 2px; text-align: center; }
.cc-grid td { padding: 0; text-align: center; position: relative; }
.cc-d {
  position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 38px; padding: 0; border: 0;
  border-radius: var(--r-cell); display: grid; place-items: center;
  background: var(--lv); color: var(--cc-onfill);
  transition: transform var(--t) var(--ease);
}
.cc-d-n { position: absolute; top: 3px; left: 5px; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-d-s { font-weight: 800; font-size: 17px; line-height: 1; margin-top: 5px; font-variant-numeric: tabular-nums; }
.cc-d.has-ev::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--cc-onfill);
}
.cc-d.has-early::before {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 4px; height: 2px; border-radius: 2px; background: var(--cc-onfill);
}
.cc-d.is-today { box-shadow: inset 0 0 0 2px var(--cc-onfill); }
.cc-d.is-sel { background: var(--cc-onfill); color: var(--lv); box-shadow: inset 0 0 0 2px var(--lv), 0 0 0 2px var(--cc-ink); z-index: 1; }
.cc-d.is-sel.has-ev::after, .cc-d.is-sel.has-early::before { background: var(--lv); }
.cc-d:active { transform: scale(0.94); }
.cc-d:focus-visible { z-index: 3; }
.cc-past-n { font-size: 12px; font-weight: 700; color: var(--cc-muted); }
/* early outlook days: a dashed inner ring, so the digits keep full contrast */
.cc-month.is-outlook .cc-d:not(.is-sel) { outline: 1.5px dashed color-mix(in oklch, var(--cc-onfill) 70%, transparent); outline-offset: -4px; }

.cc-cal-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--cc-panel-2);
}
.cc-cal-status[hidden] { display: none; }
.cc-cal-status-text { margin: 0; font-size: 15px; font-weight: 600; color: var(--cc-ink); font-variant-numeric: tabular-nums; }
.cc-cal-status-go {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--cc-gold); color: var(--cc-onfill); border: 0;
}
.cc-cal-status-go:hover { background: var(--cc-ink); }
.cc-cal-help { margin: 10px 0 0; font-size: 13px; color: var(--cc-muted); }

/* ---------------------------------------------------------------- Best months table */
.cc-best, .cc-avoid, .cc-dow, .cc-faq { margin: 0 0 56px; }
.cc-bt-note { margin: -8px 0 14px; font-size: 14px; color: var(--cc-muted); }
.cc-table-wrap { border-radius: var(--r-panel); border: 1px solid var(--cc-line); overflow-x: auto; background: var(--cc-panel); }
.cc-bt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cc-bt thead th {
  text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--cc-muted);
  border-bottom: 1px solid var(--cc-line);
}
.cc-bt td, .cc-bt tbody th {
  padding: 12px 16px; border-bottom: 1px solid color-mix(in oklch, var(--cc-line) 70%, transparent);
  font-size: 15px; color: var(--cc-soft); text-align: left; vertical-align: middle;
}
.cc-bt tbody tr:last-child td, .cc-bt tbody tr:last-child th { border-bottom: 0; }
.cc-bt tbody th { font-weight: 700; }
.cc-bt-month { color: var(--cc-ink); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.cc-bt-month:hover { color: var(--cc-gold); text-decoration: underline; }
.cc-bt-more { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.cc-bt tr.is-best { background: color-mix(in oklch, var(--s2) 8%, transparent); }
.cc-tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  font-size: 12px; font-weight: 700; color: var(--cc-onfill); background: var(--s2); white-space: nowrap;
}
.cc-tag.is-quiet { background: transparent; color: var(--cc-soft); border: 1px solid var(--cc-line-2); }
.cc-bt tr.is-outlook td, .cc-bt tr.is-partial td { color: var(--cc-muted); }
.cc-bt tr.is-outlook .cc-bt-fill, .cc-bt tr.is-partial .cc-bt-fill { opacity: 0.6; }
.cc-bt-meter {
  display: inline-block; width: 120px; height: 10px; border-radius: 99px; vertical-align: middle;
  background: oklch(100% 0 0 / 0.07); overflow: hidden; margin-right: 10px;
}
.cc-bt-fill { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--lv); }
.cc-bt-avg { font-weight: 800; color: var(--cc-ink); margin-right: 6px; }
.cc-bt-lv { font-size: 13px; color: var(--cc-muted); }

/* ---------------------------------------------------------------- Dates to avoid (a timetable, not cards) */
.cc-avoid-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cc-line); max-width: 860px; }
.cc-avoid-list li { border-bottom: 1px solid var(--cc-line); }
.cc-av {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px;
  padding: 12px 8px; text-align: left; background: transparent; border: 0; border-radius: var(--r-ctl);
  transition: background var(--t) var(--ease);
}
.cc-av:hover { background: var(--cc-panel); }
.cc-av-score {
  width: 44px; height: 32px; border-radius: var(--r-cell); display: grid; place-items: center;
  background: var(--lv); color: var(--cc-onfill); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
}
.cc-av-label { font-weight: 700; font-size: 17px; color: var(--cc-ink); }
.cc-av-range { font-size: 15px; color: var(--cc-soft); font-variant-numeric: tabular-nums; }
.cc-av-len { font-size: 14px; color: var(--cc-muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Day of week */
.cc-dow-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.cc-dow-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
.cc-dow-name { font-size: 15px; font-weight: 600; color: var(--cc-soft); }
.cc-dow-track { height: 16px; border-radius: 6px; background: oklch(100% 0 0 / 0.06); overflow: hidden; }
.cc-dow-fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--lv); }
.cc-dow-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cc-ink); text-align: right; }

/* ---------------------------------------------------------------- FAQ, cite, more */
.cc-qa { max-width: 72ch; padding: 18px 0; border-top: 1px solid var(--cc-line); }
.cc-qa:first-of-type { border-top: 0; padding-top: 4px; }
.cc-q { margin: 0 0 8px; font-family: var(--cc-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--cc-ink); line-height: 1.25; }
.cc-a { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cc-soft); text-wrap: pretty; }

.cc .cite-box { background: var(--cc-panel); border-color: var(--cc-line); border-radius: var(--r-panel); }
.cc-foot { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--cc-muted); max-width: 72ch; }

.cc-more { margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--cc-line); }
.cc-more-h { margin: 0 0 12px; font-family: var(--cc-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--cc-ink); }
.cc-more-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
.cc-more-links a {
  display: block; padding: 9px 0; font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--cc-line) 60%, transparent);
}
.cc-more-links a::after { content: " →" / ""; }
.cc-more-links a:hover { text-decoration: underline; }
.cc-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.cc-others-k { font-size: 14px; font-weight: 700; color: var(--cc-soft); margin-right: 4px; }
.cc-others { gap: 6px 16px; }
.cc-others a { font-size: 15px; font-weight: 600; }

/* ---------------------------------------------------------------- Hover only where it exists */
@media (hover: hover) {
  .cc-d:hover { transform: scale(1.08); z-index: 2; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1020px) {
  .cc-months { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 860px) {
  /* one column, with the tip board straight under the date field */
  .cc-check { display: flex; flex-direction: column; gap: 0; }
  .cc-ask { display: contents; }
  .cc-check .cc-h2 { order: 1; }
  .cc-ask-label { order: 2; margin-top: 0; }
  .cc-date-row { order: 3; margin-bottom: 12px; max-width: none; }
  .cc-quick { order: 4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -2px -4px 14px; padding: 4px; }
  .cc-quick::-webkit-scrollbar { display: none; }
  .cc-chip { flex: 0 0 auto; }
  .cc-board { order: 5; }
  .cc-ask-note { order: 6; }
  .cc-peak:not(.is-top) { display: none; }
}
@media (max-width: 760px) {
  .cc-rm:not(.is-q) { display: none; }
}
@media (max-width: 640px) {
  .cc { padding-top: 12px; }
  .cc-back { margin-bottom: 12px; }
  .cc-h2 { font-size: 26px; }
  .cc-lede { font-size: 17px; }
  .cc-lede-rest { display: none; }
  .cc-ribbon { margin: 20px 0 22px; }
  .cc-ribbon-read { min-height: 44px; align-items: flex-start; }
  .cc-ribbon-svg { height: 68px; }
  .cc-peak { font-size: 11px; padding: 1px 6px; }
  .cc-board { padding: 18px 12px 14px; }
  .cc-strip-dow { font-size: 12px; letter-spacing: -0.01em; }
  .cc-board::before { left: 16px; right: 16px; }
  .cc-board-main { gap: 4px 16px; flex-wrap: wrap; }
  .cc-board-word { flex: 1 1 140px; }
  .cc-board-level { font-size: 30px; }
  .cc-better-list { grid-template-columns: 1fr; }
  .cc-strip { gap: 3px; }
  .cc-strip-day { grid-template-rows: 46px auto auto; }
  .cc-tabs-in { flex-wrap: nowrap; }
  .cc-tabs {
    overflow-x: auto; scrollbar-width: none; padding: 4px 44px 4px 4px; margin: -4px;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .cc-tabs::-webkit-scrollbar { display: none; }
  .cc-months { grid-auto-columns: 100%; gap: 12px; }
  .cc-grid { border-spacing: 3px; }
  .cc-d { min-height: 42px; }
  .cc-d:focus-visible { outline-offset: 1px; }
  .cc-cal-help { display: none; }
  .cc-bt-busy { display: none; }
  .cc-bt td, .cc-bt tbody th { padding: 12px 10px; }
  .cc-bt-meter { display: none; }
  .cc .cite-text { font-size: 16px; }
  .cc-av { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 4px; }
  .cc-av-score { grid-row: span 2; }
  .cc-av-range { grid-column: 2; }
  .cc-av-len { display: none; }
  .cc-dow-row { grid-template-columns: 92px minmax(0, 1fr) 36px; }
  .cc-more { padding: 18px 0 0; }
  .cc-more-links { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .cc-strip-dow { display: grid; justify-items: center; line-height: 1.15; }
}

@media (forced-colors: active) {
  .cc-d.is-sel, .cc-chip[aria-current="true"], .cc-tab[aria-current="true"], .cc-strip-day.is-sel {
    outline: 3px solid Highlight; outline-offset: -3px;
  }
}

/* The friendly not-found and refreshing states */
.cc-problem { padding-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .cc-ribbon-svg { animation: none; }
  .cc *, .cc *::before, .cc *::after { transition: none; }
}
