  /* /guides/calendar/ — decision cards, the labeled cross-category timeline and the
     month-by-month agenda, all driven by _data/calendar.yml via the #cal-data JSON blob
     and assets/js/guides-calendar.js.
     Category colors are scoped to this page: they identify a content category
     (bracket/pro-football-hof/oscars), a different axis than the site's pillar accents
     (--studio/--projection/--guide), so they get their own variables rather than
     reusing those and implying a pillar meaning that isn't there. */
  .cal-page {
    --cat-bracket: var(--orange);
    --cat-hall-of-fame: #D4AF37;
    --cat-oscars: #F43F5E;
    --cat-oscars-text: #F6657E; /* the base rose is 4.2:1 on --card; this is 5.3:1. Rose is for fills */
  }
  .cal-page [data-category="bracket"] { --cat-c: var(--cat-bracket); --cat-t: var(--cat-bracket); }
  .cal-page [data-category="hall-of-fame"] { --cat-c: var(--cat-hall-of-fame); --cat-t: var(--cat-hall-of-fame); }
  .cal-page [data-category="oscars"] { --cat-c: var(--cat-oscars); --cat-t: var(--cat-oscars-text); }
  .cal-page [data-category="mixed"] { --cat-c: var(--text); --cat-t: var(--text); }

  /* ── The three decisions ───────────────────────────── */
  .cal-next { margin-bottom: var(--s-6); }
  .cal-next-heading, .cal-agenda-heading {
    font-family: var(--fb); font-weight: 600; font-size: var(--t-h3); color: var(--text); margin: 0 0 var(--s-3);
  }
  .cal-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cal-decision {
    display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-4) var(--s-4) 18px;
    background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--cat-c);
    border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: border-color .15s;
  }
  .cal-decision:hover, .cal-decision:focus-visible { border-color: var(--cat-c); }
  .cal-decision.tentative { border-left-style: dashed; }
  .cal-decision-name { font-family: var(--fb); font-weight: 600; font-size: var(--t-strong); line-height: 1.3; }
  .cal-decision-date { font-family: var(--fm); font-size: var(--t-ui); color: var(--sub); }
  .cal-decision.tentative .cal-decision-date { font-style: italic; }

  /* ── Subscribe to the feeds ────────────────────────── */
  .cal-follow { margin-bottom: var(--s-6); }
  .cal-follow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .cal-follow-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: var(--s-3); row-gap: var(--s-3); align-items: start;
    padding: var(--s-4) var(--s-4) var(--s-4) 18px; background: var(--card);
    border: 1px solid var(--border); border-left: 4px solid var(--cat-c); border-radius: var(--r-md);
  }
  .cal-follow-item { scroll-margin-top: 96px; }
  .cal-follow-icon { color: var(--cat-c); display: inline-flex; padding-top: 2px; }
  .cal-follow-name { margin: 0; font-family: var(--fb); font-weight: 600; font-size: var(--t-strong); line-height: 1.3; color: var(--text); }
  .cal-follow-desc { margin: 2px 0 0; font-size: var(--t-ui); line-height: 1.5; color: var(--sub); }
  .cal-follow-next { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border); }
  .cal-follow-next-label { margin: 0 0 var(--s-2); font-size: var(--t-ui); color: var(--muted); }
  .cal-follow-next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .cal-follow-next-item { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: var(--s-3); align-items: baseline; font-size: var(--t-ui); line-height: 1.4; }
  .cal-follow-next-item::before { content: none; }
  .cal-follow-next-when { font-family: var(--fm); color: var(--cat-t, var(--text)); white-space: nowrap; }
  .cal-follow-next-what { color: var(--text); }
  .cal-follow-next-item.tentative .cal-follow-next-what { font-style: italic; color: var(--sub); }
  .cal-follow-next-note { margin: var(--s-2) 0 0; font-size: var(--t-ui); color: var(--muted); }
  .cal-follow-actions { grid-column: 2; align-self: end; display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .cal-follow-add, .cal-follow-copy { padding: 10px var(--s-4); }
  .cal-follow-help { font-size: var(--t-ui); color: var(--muted); max-width: 720px; margin: var(--s-3) 0 0; }
  .cal-decision-count { font-family: var(--fm); font-size: var(--t-meta); color: var(--cat-t); min-height: 1.2em; }

  /* Two blocks guides-calendar.js un-hides about half a second after load: "Coming up next" and each follow
     card's "Next on this calendar". Unreserved, the follow cards jumped ~100px down (CLS 0.115 at 1440). Heights
     are measured at this sheet's own breakpoints, the same slot pattern as forecast-list.css's .fc-tabs-slot.
     scripting: enabled keeps the no-JS page free of blank gaps. */
  @media (scripting: enabled) {
    .cal-coming[hidden] { display: block; visibility: hidden; min-height: 85px; }
    .cal-follow-next[hidden] { display: block; visibility: hidden; min-height: 158px; }
    .cal-follow-next[hidden][data-feed="mixed"] { min-height: 108px; }
  }
  @media (scripting: enabled) and (max-width: 1100px) {
    .cal-coming[hidden] { min-height: 118px; }
  }
  @media (scripting: enabled) and (max-width: 760px) {
    .cal-coming[hidden] { min-height: 214px; }
    .cal-follow-next[hidden] { min-height: 192px; }
    .cal-follow-next[hidden][data-feed="mixed"] { min-height: 163px; }
  }

  .cal-coming { margin-top: var(--s-4); }
  .cal-coming-heading {
    font-family: var(--fb); font-weight: 600; font-size: var(--t-ui); color: var(--muted); margin: 0 0 var(--s-2);
  }
  .cal-coming-list {
    list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-2) var(--s-4);
  }
  .cal-coming-item { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); row-gap: 2px; align-items: baseline; font-size: var(--t-ui); }
  .cal-coming-when { grid-column: 1 / -1; font-family: var(--fm); font-size: var(--t-meta); color: var(--sub); }
  .cal-coming-item.tentative .cal-coming-when { font-style: italic; }
  .cal-coming-cat { font-family: var(--fb); font-size: var(--t-meta); font-weight: 600; color: var(--cat-c); }
  .cal-coming-what { color: var(--text); text-decoration: none; line-height: 1.35; }
  a.cal-coming-what:hover { text-decoration: underline; }

  /* ── Controls ──────────────────────────────────────── */
  .cal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-2); }
  .cal-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .cal-filter-btn {
    font-family: var(--fb); font-size: 12.5px; font-weight: 600; color: var(--muted);
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-pill);
    padding: 5px 13px; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
  }
  .cal-filter-btn.active { color: var(--text); border-color: var(--sub); }
  .cal-filter-btn:not(.active) { text-decoration: line-through; text-decoration-color: var(--border); }
  .cal-filter-group[data-filter-dim="layer"] .cal-filter-btn:not(.active) { text-decoration: none; }
  .cal-filter-group[data-filter-dim="layer"] .cal-filter-btn { display: inline-flex; align-items: center; gap: 7px; }
  .cal-filter-group[data-filter-dim="layer"] .cal-filter-btn::before {
    content: ""; width: 10px; height: 10px; box-sizing: border-box; border-radius: 2px;
    border: 1.5px solid var(--muted);
  }
  .cal-filter-group[data-filter-dim="layer"] .cal-filter-btn.active::before { background: var(--sub); border-color: var(--sub); }
  .cal-filter-group[data-filter-dim="category"] .cal-filter-btn.active { color: var(--cat-c); border-color: var(--cat-c); background: color-mix(in srgb, var(--cat-c) 10%, transparent); }
  .cal-filter-btn.cat-bracket { --cat-c: var(--cat-bracket); }
  .cal-filter-btn.cat-hall-of-fame { --cat-c: var(--cat-hall-of-fame); }
  .cal-filter-btn.cat-oscars { --cat-c: var(--cat-oscars); }
  .cal-filter-btn:hover { color: var(--text); }
  .cal-filter-reset { font-family: var(--fb); font-size: var(--t-meta); color: var(--muted); background: none; border: none; text-decoration: underline; cursor: pointer; margin-left: auto; }
  .cal-filter-reset:hover { color: var(--sub); }

  /* ── Timeline ──────────────────────────────────────── */
  .cal-timeline-root { margin: var(--s-5) 0 0; }
  .cal-timeline-root figcaption { margin-bottom: var(--s-1); }
  .cal-timeline-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); }
  .cal-timeline-scroll:focus-visible { outline: 2px solid var(--sub); outline-offset: 2px; }
  .cal-timeline-track { position: relative; padding-top: 30px; }

  /* Month gridlines sit in one full-height layer behind everything; the labels ride
     at the top of each line, in the 30px the decision row leaves above itself. */
  .cal-tl-months { position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; }
  .cal-tl-month-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--dv-grid); }
  .cal-tl-month-label { position: absolute; top: 8px; left: 6px; font-family: var(--fm); font-size: 11px; color: var(--muted); white-space: nowrap; }

  .cal-tl-decisions { position: relative; border-top: 1px solid var(--border); }
  .cal-tl-decision-pill {
    position: absolute; transform: translateX(-1px); white-space: nowrap; z-index: 2;
    font: 600 11px/1 var(--fc); color: var(--bg); background: var(--cat-c);
    padding: 5px 8px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  }
  .cal-tl-decision-pill.tentative { color: var(--cat-c); background: var(--card); border: 1px dashed var(--cat-c); padding: 4px 7px; }
  .cal-tl-decision-line {
    position: absolute; top: 30px; bottom: 0; width: 2px; margin-left: -1px; background: var(--cat-c);
    opacity: 0.55; pointer-events: none; z-index: 1;
  }
  .cal-tl-decision-line.tentative {
    margin-left: 0; opacity: 1; background: color-mix(in srgb, var(--cat-c) 9%, transparent);
    border-left: 1px dashed color-mix(in srgb, var(--cat-c) 60%, transparent);
    border-right: 1px dashed color-mix(in srgb, var(--cat-c) 60%, transparent);
  }

  .cal-tl-today { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(169, 190, 212, 0.6); z-index: 1; pointer-events: none; }
  .cal-tl-today-label {
    position: absolute; top: 4px; left: 4px; font-family: var(--fb); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--bg); background: var(--sub);
    padding: 2px 5px; border-radius: var(--r-sm); white-space: nowrap;
  }

  .cal-lane { position: relative; border-top: 1px solid var(--border); }
  .cal-lane-label {
    position: sticky; left: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
    background: var(--card); padding: 6px 12px 4px 12px;
    font-family: var(--fb); font-weight: 600; font-size: 13px; color: var(--text);
  }
  .cal-lane-label::before { content: ""; width: 9px; height: 9px; border-radius: var(--r-circle); background: var(--cat-c); flex-shrink: 0; }
  .cal-lane-track { position: relative; margin-top: 2px; }

  .cal-tl-item {
    position: absolute; display: flex; align-items: center; gap: 6px; height: 30px;
    text-decoration: none; color: var(--text); white-space: nowrap; z-index: 2;
  }
  .cal-tl-item:focus-visible { outline: 2px solid var(--sub); outline-offset: 1px; border-radius: var(--r-sm); }
  .cal-tl-mark { flex: none; box-sizing: border-box; background: var(--cat-c); }
  .cal-tl-dot { height: 12px; border-radius: var(--r-circle); }
  .cal-tl-bar { height: 12px; border-radius: var(--r-sm); }
  .cal-tl-dot { width: 12px; }
  .cal-tl-diamond { height: 11px; width: 11px; margin: 0 0.5px; transform: rotate(45deg); border-radius: 2px; }
  .cal-tl-item.tentative .cal-tl-mark { background: transparent; border: 1.5px dashed var(--cat-c); }
  .cal-tl-item.is-precursor .cal-tl-mark { opacity: 0.7; }
  .cal-tl-label { font: 500 11px/1 var(--fc); color: var(--text); }
  .cal-tl-item.tentative .cal-tl-label { color: var(--sub); font-style: italic; }
  .cal-tl-item.is-precursor .cal-tl-label { color: var(--muted); }
  .cal-tl-item:hover .cal-tl-label, .cal-tl-item:focus-visible .cal-tl-label { color: var(--text); text-decoration: underline; }

  .cal-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) 18px; padding: var(--s-3) 2px 0; }
  .cal-legend-item { display: flex; align-items: center; gap: 6px; font-family: var(--fb); font-size: var(--t-meta); color: var(--muted); }
  .cal-key { display: inline-block; width: 12px; height: 12px; background: var(--sub); box-sizing: border-box; flex: none; }
  .cal-key-dot { border-radius: var(--r-circle); }
  .cal-key-bar { width: 22px; border-radius: var(--r-sm); }
  .cal-key-phase { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; margin: 0 1px; }
  .cal-key-est { width: 22px; border-radius: var(--r-sm); background: transparent; border: 1.5px dashed var(--sub); }
  .cal-key-decision { width: 2px; height: 14px; background: var(--text); }

  /* ── Agenda ────────────────────────────────────────── */
  .cal-agenda { margin-top: var(--s-6); }
  .cal-note { font-size: var(--t-ui); color: var(--muted); max-width: 720px; margin: 0 0 var(--s-4); }
  .cal-earlier-btn {
    font-family: var(--fb); font-size: var(--t-ui); color: var(--sub); background: none;
    border: 1px dashed var(--border); border-radius: var(--r-md); padding: var(--s-2) var(--s-3);
    cursor: pointer; margin-bottom: var(--s-4);
  }
  .cal-earlier-btn:hover { color: var(--text); border-color: var(--sub); }
  .cal-month { margin-bottom: var(--s-5); }
  .cal-month-name {
    font-family: var(--fm); font-weight: 500; font-size: var(--t-meta); text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--sub); margin: 0 0 var(--s-1); padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--border);
  }
  .cal-month-list { list-style: none; margin: 0; padding: 0; }
  .cal-item {
    display: grid; grid-template-columns: 14px 150px minmax(0, 1fr); column-gap: var(--s-3);
    padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  }
  .cal-item-mark { width: 10px; height: 10px; margin-top: 5px; border-radius: var(--r-circle); background: var(--cat-c); box-sizing: border-box; }
  .cal-item[data-layer="forecast"] .cal-item-mark { transform: rotate(45deg); border-radius: 2px; width: 9px; height: 9px; margin-left: 1px; }
  .cal-item[data-layer="precursor"] .cal-item-mark { background: transparent; border: 2px solid var(--cat-c); }
  .cal-item.tentative .cal-item-mark { background: transparent; border: 1.5px dashed var(--cat-c); }
  .cal-item-when { font-family: var(--fm); font-size: var(--t-meta); color: var(--sub); padding-top: 2px; }
  .cal-item-when em { color: var(--muted); }
  .cal-item-title { font-size: var(--t-body); color: var(--text); line-height: 1.4; }
  .cal-item-title a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
  .cal-item-title a:hover { text-decoration-color: var(--sub); }
  .cal-item-cat { font-family: var(--fb); font-weight: 600; font-size: var(--t-meta); color: var(--cat-t); margin-right: 6px; }
  .cal-item-kind { font-size: var(--t-meta); color: var(--muted); margin-left: 6px; }
  .cal-item-detail { font-size: var(--t-ui); color: var(--sub); margin: 3px 0 0; line-height: 1.5; max-width: 720px; }
  .cal-item-meta { font-size: var(--t-meta); color: var(--muted); margin: 3px 0 0; line-height: 1.5; }
  .cal-item-meta a { color: var(--muted); }
  .cal-item.is-decision { background: color-mix(in srgb, var(--cat-c) 7%, transparent); border-left: 3px solid var(--cat-c); padding-left: var(--s-2); margin-left: calc(-1 * var(--s-2) - 3px); }
  .cal-item.is-decision .cal-item-title { font-weight: 600; }
  .cal-item.is-past .cal-item-title, .cal-item.is-past .cal-item-title a { color: var(--sub); }
  .cal-empty-state { color: var(--muted); font-size: var(--t-body); margin-top: var(--s-4); }

  @media (max-width: 1100px) {
    .cal-coming-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 760px) {
    .cal-decisions { grid-template-columns: 1fr; gap: var(--s-2); }
    .cal-follow-list { grid-template-columns: 1fr; }
    .cal-follow-next-item { grid-template-columns: 1fr; row-gap: 0; }
    .cal-decision { padding: var(--s-3) var(--s-3) var(--s-3) 14px; gap: 2px; }
    .cal-coming-list { grid-template-columns: 1fr; }
    .cal-controls { gap: var(--s-3); }
    .cal-filter-reset { margin-left: 0; }
    .cal-item { grid-template-columns: 14px minmax(0, 1fr); }
    .cal-item-when { grid-column: 2; padding-top: 0; }
    .cal-item-body { grid-column: 2; margin-top: 2px; }
    .cal-item.is-decision { margin-left: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .cal-filter-btn, .cal-decision { transition: none; }
  }
