:root {
  --ink: #0e2a3d;
  --muted: #4a7085;
  --faint: #85a5b8;
  --border: #d0e1eb;
  --surface: #edf4f8;
  --bg: #ffffff;
  --blue: #3da9d8;
  --blue-dark: #1b7baa;
  --yellow: #f1ff0a;
  --yellow-hover: #dae800;
  --women-accent: #efb7cd;
  --women-accent-soft: #fff4f8;
  --live: #e53e3e;
  --tag-green-bg: #e8f5ee;
  --tag-green-text: #1a5c35;
  --tag-blue-bg: #e0f0fa;
  --tag-blue-text: #1b6a94;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(14, 42, 61, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fcff 0%, #edf4f8 40%, #edf4f8 100%);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--blue-dark);
}

.cw-container {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.cw-main {
  padding: 20px 0 10px;
}

.cw-header,
.cw-footer {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.cw-header-inner,
.cw-footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw-header-left,
.cw-header-actions,
.cw-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-logo {
  text-decoration: none;
  color: var(--ink);
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.cw-logo span {
  color: #fff;
  background: var(--blue);
  padding: 0 4px;
  border-radius: 4px;
}

.cw-nav {
  display: none;
  gap: 8px;
}

.cw-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.cw-nav a.active {
  color: #fff;
  background: var(--blue);
}

.cw-country-pill {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}

.cw-flag-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  font-size: 0.95rem;
  line-height: 1;
}

.cw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.cw-icon-btn:hover {
  border-color: #d4dc5d;
  background: #f8fbcd;
}

.cw-icon-btn svg {
  width: 17px;
  height: 17px;
}

.cw-hero-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.cw-breadcrumbs {
  margin: 6px 0 12px;
}

.cw-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cw-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cw-breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}

.cw-breadcrumb-item.current span {
  color: var(--ink);
}

.cw-breadcrumb-sep {
  color: var(--faint);
}

.cw-hero-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--yellow);
  z-index: 2;
}

.cw-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 90% at 10% 5%, #5dc0e9 0, #3da9d8 48%, #2f8fc1 100%);
}

.cw-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.cw-hero-content {
  position: relative;
  z-index: 1;
  padding: 18px;
  color: #fff;
}

.cw-live-badge {
  display: inline-block;
  background: rgba(229, 62, 62, 0.9);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.cw-hero-content h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-family: "Outfit", "DM Sans", sans-serif;
  line-height: 1.08;
}

.cw-hero-sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.cw-hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.cw-hero-time {
  font-size: 0.93rem;
}

.cw-watch-btn {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #172531;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(241, 255, 10, 0.32);
}

.cw-watch-btn:hover {
  background: var(--yellow-hover);
}

.cw-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cw-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.cw-calendar-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cw-directory-hero .cw-hero-bg {
  background: radial-gradient(130% 90% at 10% 5%, #59bfe4 0, #3397c8 52%, #2d7eaa 100%);
}

.cw-directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.cw-directory-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 420px;
}

.cw-directory-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
}

.cw-directory-search button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cw-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-calendar-nav strong {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1rem;
}

.cw-tab,
.cw-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 0.9rem;
}

button.cw-chip {
  cursor: pointer;
}

.cw-tab.active,
.cw-chip.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.cw-geo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.cw-geo-change {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
}

.cw-us-tz-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.cw-us-tz-btn {
  padding: 4px 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.77rem;
  border-left: 1px solid var(--border);
  line-height: 1.3;
}

.cw-us-tz-btn:first-child {
  border-left: 0;
}

.cw-us-tz-btn.active {
  color: #fff;
  background: var(--blue);
}

.cw-us-tz-toggle + .cw-geo-change {
  margin-left: 6px;
}

.cw-stage-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cw-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cw-side-col {
  display: none;
}

.cw-side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px;
  margin-bottom: 10px;
}

.cw-side-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.cw-side-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--surface);
  padding: 8px 0;
}

.cw-side-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cw-side-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cw-side-item strong {
  font-size: 0.92rem;
}

.cw-side-item-highlight {
  position: relative;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border-top-color: #e6eef2;
  padding: 13px 0;
}

.cw-side-main {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cw-side-date {
  color: var(--ink);
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.cw-side-title {
  display: block;
  font-size: 0.96rem;
  line-height: 1.15;
}

.cw-side-kicker {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cw-side-item-highlight.cw-gender-women {
  border-left: 0;
  padding-left: 0;
}

.cw-side-item-highlight.cw-gender-women .cw-side-main {
  padding-left: 12px;
}

.cw-side-item-highlight.cw-gender-women .cw-side-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: var(--women-accent);
}

.cw-side-meta {
  display: grid;
  gap: 8px;
}

.cw-side-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cw-side-meta strong {
  color: var(--ink);
}

.cw-editorial-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.cw-editorial-card,
.cw-story-card,
.cw-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.cw-editorial-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.cw-editorial-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.cw-editorial-head h2,
.cw-story-card h2,
.cw-story-card h3 {
  margin: 0;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.cw-editorial-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-editorial-list {
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
}

.cw-editorial-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid #e6eef2;
  color: var(--ink);
  text-decoration: none;
  padding-top: 10px;
}

.cw-editorial-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cw-editorial-date {
  color: var(--ink);
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.cw-editorial-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cw-editorial-main strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.cw-editorial-main small,
.cw-major-card small,
.cw-major-card p {
  color: var(--muted);
}

.cw-major-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4fbff 0%, #fffdfa 100%);
  border: 1px solid #cfe2ea;
  padding: 16px;
  min-height: 0;
  box-sizing: border-box;
}

.cw-major-card strong {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.cw-major-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.cw-major-card.cw-gender-women,
.cw-editorial-item.cw-gender-women {
  position: relative;
}

.cw-major-card.cw-gender-women::before,
.cw-editorial-item.cw-gender-women::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: var(--women-accent);
}

.cw-major-card.cw-gender-women {
  padding-left: 20px;
}

.cw-editorial-item.cw-gender-women {
  padding-left: 10px;
}

.cw-about-stack {
  display: grid;
  gap: 12px;
}

.cw-story-card {
  padding: 16px;
}

.cw-story-card-lead {
  background: linear-gradient(180deg, #f7fcff 0%, var(--bg) 100%);
}

.cw-story-card p:first-of-type {
  margin-top: 0;
}

.cw-story-grid {
  display: grid;
  gap: 12px;
}

.cw-story-grid-compact {
  margin-top: 12px;
}

.cw-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cw-info-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.cw-info-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cw-info-card strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.cw-inline-note {
  margin-top: 0;
}

.cw-simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cw-simple-table th,
.cw-simple-table td {
  border-top: 1px solid #e6eef2;
  padding: 10px 8px;
  text-align: left;
}

.cw-simple-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cw-race-item,
.cw-stage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  padding: 11px 12px;
}

.cw-race-item.cw-gender-women {
  border-color: #e8c3d3;
  box-shadow: inset 0 0 0 1px var(--women-accent);
}

.cw-race-item.cw-gender-women .cw-race-date {
  border-color: #ebcada;
}

.cw-race-item.cw-gender-women .cw-race-date {
  background: linear-gradient(180deg, #fff7fa 0%, var(--surface) 100%);
}

.cw-stage-item {
  align-items: flex-start;
}

.cw-race-date {
  width: 48px;
  min-width: 48px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px 0;
}

.cw-race-date strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.cw-race-date span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.cw-race-date.cw-race-date-range strong {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.cw-race-date.cw-race-date-range span {
  font-size: 0.68rem;
}

.cw-race-main {
  display: grid;
  flex: 1;
}

.cw-race-main strong {
  line-height: 1.15;
}

.cw-race-main small {
  color: var(--muted);
  font-size: 0.85rem;
}

.cw-race-tags,
.cw-search-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cw-inline-pill,
.cw-search-reason {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.cw-inline-pill.watch {
  background: #eef9f0;
  border-color: #cfe7d6;
  color: var(--tag-green-text);
}

.cw-inline-pill.none {
  background: #f6f7f9;
  border-color: #e4e7eb;
  color: #68707d;
}

.cw-inline-pill.monument {
  background: #fff9dd;
  border-color: #eadb8d;
  color: #6f5a00;
}

.cw-race-item-rich {
  align-items: flex-start;
}

.cw-directory-groups {
  display: grid;
  gap: 18px;
}

.cw-directory-group {
  display: grid;
  gap: 10px;
}

.cw-directory-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw-directory-group-head h2 {
  margin: 0;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1.45rem;
}

.cw-directory-group-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cw-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cw-directory-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.cw-directory-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cw-directory-card-head h3 {
  margin: 0;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.1;
}

.cw-directory-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cw-directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-race-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cw-race-time {
  font-weight: 600;
}

.cw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 4px 7px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-badge.tv {
  background: var(--tag-green-bg);
  color: var(--tag-green-text);
  border-color: #cde8da;
}

.cw-badge.stream {
  background: var(--tag-blue-bg);
  color: var(--tag-blue-text);
  border-color: #c7e2f1;
}

.cw-badge.none {
  background: #f5f6f8;
  color: #7b8492;
  border-color: #e3e6eb;
}

.cw-chevron {
  color: var(--faint);
  font-size: 1.35rem;
}

.cw-meta-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cw-meta-pills span {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.cw-back-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.cw-country-title,
.cw-section-title,
.cw-month-head {
  margin: 10px 0 8px;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.cw-month-head {
  position: relative;
  padding-left: 10px;
}

.cw-month-group {
  margin-bottom: 14px;
}

.cw-month-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.cw-month-summary::-webkit-details-marker {
  display: none;
}

.cw-month-summary::after {
  content: "−";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.cw-month-group:not([open]) .cw-month-summary::after {
  content: "+";
}

.cw-month-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.cw-month-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--yellow);
}

.cw-month-group > .cw-stage-list {
  margin-top: 8px;
}

.cw-calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.cw-calendar-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.cw-calendar-controls-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cw-calendar-shell {
  overflow-x: auto;
  padding-bottom: 8px;
}

.cw-calendar-weekdays,
.cw-calendar-grid {
  min-width: 860px;
}

.cw-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.cw-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.cw-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.cw-calendar-cell {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 10px;
}

.cw-calendar-cell.out-month {
  background: #f8fbfd;
}

.cw-calendar-cell.today {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(61, 169, 216, 0.22);
}

.cw-calendar-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cw-calendar-day-num {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.cw-calendar-cell-head small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cw-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-calendar-event {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  border: 1px solid #cde3ee;
  background: #f4fbff;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 8px;
}

.cw-calendar-event.cw-gender-women {
  border-color: #edc7d6;
  background: #fff5f9;
}

.cw-calendar-event.has-watch {
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.cw-calendar-event[hidden] {
  display: none;
}

.cw-calendar-event-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.cw-calendar-event-meta {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.cw-broadcast-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 12px;
  margin-bottom: 10px;
}

.cw-watch-grid {
  margin-bottom: 14px;
}

.cw-stage-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cw-stage-filter-btn {
  display: grid;
  gap: 2px;
  min-width: 112px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
}

.cw-stage-item {
  scroll-margin-top: 96px;
}

.cw-stage-filter-btn strong {
  font-size: 0.9rem;
}

.cw-stage-filter-btn small {
  color: var(--muted);
  font-size: 0.76rem;
}

.cw-stage-filter-btn.active {
  border-color: var(--blue);
  background: #f4fbff;
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.cw-watch-context {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cw-broadcast-card.highlight {
  border-color: #9fd2e8;
  box-shadow: 0 0 0 3px rgba(61, 169, 216, 0.13);
}

.cw-broadcast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cw-broadcast-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.cw-broadcast-card p {
  margin: 8px 0;
  color: var(--muted);
}

.cw-broadcast-card a {
  text-decoration: none;
  font-weight: 700;
}

.cw-stage-item.live {
  border-color: #f3b0b0;
  background: #fff8f8;
}

.cw-stage-num {
  width: 30px;
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  color: var(--blue-dark);
}

.cw-stage-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.cw-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 14px;
}

.cw-plain-list {
  margin: 0;
  padding-left: 18px;
}

.cw-search-form {
  display: flex;
  gap: 8px;
}

.cw-search-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.cw-search-form button {
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: #172531;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.cw-search-form button:hover {
  background: var(--yellow-hover);
}

.cw-search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.cw-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 31, 0.55);
}

.cw-search-panel {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 8vh auto 0;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.cw-search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cw-search-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.cw-search-results {
  margin-top: 8px;
  max-height: 48vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.cw-search-result-link {
  display: block;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}

.cw-search-result-link:hover,
.cw-search-result-link.is-active {
  background: var(--surface);
}

.cw-search-result-link strong,
.cw-search-result strong {
  display: block;
}

.cw-search-result-link small,
.cw-search-result small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.cw-search-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cw-search-context,
.cw-search-summary {
  color: var(--muted);
}

.cw-search-page-head {
  display: grid;
  gap: 4px;
}

.cw-search-page-head h2 {
  margin-bottom: 0;
}

.cw-search-group-block {
  display: grid;
  gap: 12px;
}

.cw-search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cw-search-group-head h3 {
  margin: 0;
  font-size: 1rem;
}

.cw-search-group-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cw-search-group-list {
  display: grid;
  gap: 10px;
}

.cw-search-result mark,
.cw-search-result-link mark {
  background: #fff4a8;
  color: inherit;
  padding: 0 1px;
}

.cw-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.cw-footer-tz {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 960px) {
  .cw-main {
    padding-top: 26px;
  }

  .cw-nav,
  .cw-country-pill {
    display: inline-flex;
  }

  .cw-hero-content {
    padding: 22px;
  }

  .cw-hero-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cw-stage-list {
    gap: 12px;
    grid-column: 1 / span 2;
    margin-bottom: 0;
  }

  .cw-editorial-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .cw-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-two-col {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .cw-side-col {
    display: block;
    grid-column: 3;
    min-width: 0;
    position: sticky;
    top: 16px;
  }

  .cw-side-card:last-child {
    margin-bottom: 0;
  }

  .cw-race-item,
  .cw-stage-item,
  .cw-broadcast-card {
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  }

  .cw-race-item:hover,
  .cw-stage-item:hover,
  .cw-broadcast-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: #b8d2df;
  }

  .cw-race-item.cw-gender-women:hover {
    border-color: #e8c3d3;
    box-shadow: var(--shadow), inset 0 0 0 1px var(--women-accent);
  }

  .cw-side-item-highlight:hover {
    border-top-color: #d3e2ea;
  }

  .cw-side-item-highlight.cw-gender-women:hover {
    border-top-color: #e6eef2;
  }
}
