/* CKB-CMS-EVENTS-R1: semantic form/link bridges; no new typography or layout system. */
.ckb-wp-shell .events-archive-main .archive-tools { margin:0; }
.ckb-wp-shell .ckb-events-pagination { display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--hairline);padding:24px 0;font-size:12px;font-weight:700; }
.ckb-wp-shell .calendar-quick-controls .calendar-today { display:inline-flex;align-items:center;justify-content:center;text-decoration:none; }
.ckb-wp-shell .calendar-quick-controls .calendar-month-jump { margin:0; }
.ckb-wp-shell .month-controls form { margin:0; }
.ckb-wp-shell .month-grid button.day { background:transparent;color:inherit;font:inherit;text-align:left;border-top:0;border-bottom:1px solid var(--hairline);border-left:0;border-right:1px solid var(--hairline);cursor:pointer; }
.ckb-wp-shell .month-grid button.day.is-selected { outline:2px solid currentColor;outline-offset:-3px; }
@media(max-width:860px){ .ckb-wp-shell .calendar-title-cluster .month-controls form { width:100%; } }

/* CKB-CMS-EVENTS-R1-R1: scoped archive hover/focus contrast defect closure.
 * The protected static archive inherited a light-only #f5f6f7 hover surface;
 * use the existing light/dark semantic tokens without changing geometry,
 * typography, animation, routing, Gallery or Calendar CSS.
 */
.ckb-wp-shell .events-archive-main .archive-card:hover,
.ckb-wp-shell .events-archive-main .archive-card:focus-visible {
  background: var(--theme-hover, #f5f6f7);
  color: var(--theme-text, #0b0b0b);
}

/* Root-level --muted aliases resolve to the light value even in dark mode;
 * bind ONLY Archive's existing secondary labels to the body-scoped token.
 */
.ckb-wp-shell .events-archive-main .archive-tools label,
.ckb-wp-shell .events-archive-main .archive-card-date span,
.ckb-wp-shell .events-archive-main .archive-card-copy p,
.ckb-wp-shell .events-archive-main .archive-card-copy > span {
  color: var(--theme-text-muted, #6d747b);
}

/* CKB-CMS-EVENTS-R1-R2: Calendar-only dark control contrast closure.
 * Preserve the protected light appearance, dimensions, grid and controls.
 * White Today control must have dark glyphs, except on the inherited dark
 * hover/focus surface. Out-of-month slots use the existing dark surface token.
 */
@media (prefers-color-scheme: dark) {
  body.ckb-wp-shell[data-color-scheme="r1"] .calendar-quick-controls .calendar-today:not(:hover):not(:focus-visible) {
    color: #11161a;
  }
  body.ckb-wp-shell[data-color-scheme="r1"] .month-grid .day.is-outside {
    background: var(--theme-bg-elevated, #1c242a);
  }
}
