/*
 * Events: /events/ archive (calendar, tabs, filter, cards) and single event pages.
 * Moved out of assets/theme.css on 2026-11-18 so other pages do not download
 * it. Enqueued from inc/assets.php after theme.css (dependency droam-wire-theme);
 * the rules keep their original relative order, so the cascade inside this
 * file is unchanged. Rules marked "Copy of a shared theme.css rule" repeat a
 * theme.css rule whose other selectors serve other pages; edit both together.
 * Add new events rules here, not to theme.css.
 */

.dw-home-cal {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-image: var(--brand-grad);
  border-image-slice: 1;
  box-shadow: 0 12px 40px rgba(15, 30, 55, 0.12);
}
.dw-home-cal--archive { box-shadow: none; }
.dw-home-cal--archive .dw-home-cal-cell { aspect-ratio: 1.05 / 1; font-size: 14px; }
.dw-home-cal--archive .dw-home-cal-grid--head { padding: 10px 8px 6px; }
.dw-home-cal--archive .dw-home-cal-weekday { font-size: 11px; padding: 6px 0; }
/* Calendar head with prev/next nav */
.dw-home-cal-head--nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
}
.dw-home-cal-head-center { text-align: center; flex: 1; min-width: 0; }
.dw-home-cal-nav {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dw-home-cal-nav svg { width: 16px; height: 16px; }
.dw-home-cal-nav:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
.dw-home-cal-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.dw-home-cal-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dw-home-cal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.dw-home-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.dw-home-cal-grid--head {
  padding: 8px 6px 4px;
  border-bottom: 1px solid var(--soft-line);
}
.dw-home-cal-weekday {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
}
.dw-home-cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  text-decoration: none;
}
.dw-home-cal-cell:nth-child(7n) { border-right: 0; }
.dw-home-cal-cell.is-muted { color: #8c8c8c; }
.dw-home-cal-cell.is-today .dw-home-cal-num {
  background: var(--brand-grad);
  color: #fff;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.dw-home-cal-cell.has-events {
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(9,113,161,0.04);
  cursor: pointer;
}
.dw-home-cal-cell.has-events:hover {
  background: rgba(9,113,161,0.12);
  color: var(--brand);
}
button.dw-home-cal-cell {
  font: inherit;
  border: 0;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  padding: 0;
}
button.dw-home-cal-cell:nth-child(7n) { border-right: 0; }
.dw-home-cal-cell.is-active,
.dw-home-cal-cell.is-active:hover {
  /* :hover listed explicitly so .has-events:hover (same specificity, earlier) cannot win. */
  background: var(--brand-grad);
  color: #fff;
}
.dw-home-cal-cell.is-active .dw-home-cal-dot { background: #fff; }
.dw-home-cal-cell.is-active.is-today .dw-home-cal-num {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.dw-home-cal-num { display: inline-block; line-height: 1; }
.dw-home-cal-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-grad);
}
/* Selected-day pane */
.dw-home-cal-selected {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9,113,161,0.05), #fff);
}
.dw-home-cal-selected[hidden] { display: none; }
.dw-home-cal-selected-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dw-home-cal-selected-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.dw-home-cal-selected-close {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.dw-home-cal-selected-close:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Upcoming events list */
.dw-home-cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.dw-home-cal-list li {
  border-top: 1px solid var(--line);
}
.dw-home-cal-list li:first-child { border-top: 0; }
.dw-home-cal-list-link {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  color: var(--text);
}
.dw-home-cal-list-link:hover .dw-home-cal-list-title { color: var(--brand); }
.dw-home-cal-list-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.dw-home-cal-list-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.dw-home-cal-list-loc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
/* ─── Events page (archive-dw_event.php) ──────────────────── */
.dw-events-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.dw-events-masthead {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--text);
}
.dw-events-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dw-events-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.dw-events-dek {
  margin: 0 auto;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
/* Upcoming events grid */
.dw-events-upcoming { margin-top: 8px; }
.dw-events-upcoming-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 24px;
}
.dw-events-upcoming-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dw-events-upcoming-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dw-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 28px 24px;
}
.dw-events-grid[hidden] { display: none; }
.dw-event-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.dw-event-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(9, 113, 161, 0.10);
}
.dw-event-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--soft-line);
  position: relative;
}
.dw-event-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.dw-event-card:hover .dw-event-card-img img { transform: scale(1.04); }
.dw-event-card-img--empty {
  background: var(--brand-grad);
  display: grid; place-items: center;
}
.dw-event-card-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0;
}
.dw-event-card-cat {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dw-event-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(22px * 1.18 * 2);
}
.dw-event-card-title a:hover { color: var(--brand); }
.dw-event-card-when,
.dw-event-card-where {
  margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.dw-event-card-when svg,
.dw-event-card-where svg {
  width: 14px; height: 14px;
  color: var(--brand);
  flex: 0 0 auto;
}
.dw-events-empty {
  text-align: center;
  padding: 48px 16px;
  max-width: 36rem;
  margin: 0 auto;
}
.dw-events-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 24px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.dw-events-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}
.dw-events-filter-field--search {
  flex: 1 1 220px;
}
.dw-events-filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dw-events-filter-input,
.dw-events-filter-select {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.dw-events-filter-input:focus,
.dw-events-filter-select:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-color: var(--brand);
}
.dw-events-filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.dw-events-filter-clear {
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dw-events-filter-clear:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.dw-events-filter-clear:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.dw-events-filter-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.dw-events-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.dw-events-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  margin-bottom: -1px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.dw-events-tab + .dw-events-tab { margin-left: 18px; }
.dw-events-tab:hover { color: var(--text); }
.dw-events-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.dw-events-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.dw-events-tab-count {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft-line);
}
.dw-events-tab.is-active .dw-events-tab-count {
  color: #fff;
  background: var(--brand);
}
.dw-event-card.is-hidden { display: none; }
.dw-events-noresults {
  padding: 32px 16px;
}
@media (max-width: 640px) {
  .dw-events-filter-field,
    .dw-events-filter-field--search {
      flex: 1 1 100%;
      min-width: 0;
    }
  .dw-events-filter-actions {
      width: 100%;
      margin-inline-start: 0;
      justify-content: space-between;
    }
}
/* Single event page extras (chiprow + details sidebar) */
.dw-event-chiprow {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 22px;
}
.dw-event-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}
.dw-event-chip svg {
  width: 15px; height: 15px;
  color: var(--brand);
  flex: 0 0 auto;
}
.dw-event-cta-row { margin: 28px 0 0; }
.dw-event-cta-btn {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dw-event-cta-btn:hover { filter: brightness(1.05); background: var(--brand-grad); color: #fff; }
.dw-event-detail-card {
  border-top: 4px solid transparent;
  border-image: var(--brand-grad);
  border-image-slice: 1;
  background: #f7f9fb;
  padding: 20px 22px 22px;
}
.dw-event-detail-card h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.dw-event-detail-card dl { margin: 0; }
.dw-event-detail-card dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dw-event-detail-card dl > div:first-child { border-top: 0; padding-top: 0; }
.dw-event-detail-card dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dw-event-detail-card dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.dw-event-detail-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.dw-event-detail-cta:hover { color: var(--brand-dark); }
@media (max-width: 1100px) {
  /* Events */
  .dw-events-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* Events on mobile */
  .dw-events-page { padding: 22px 16px 48px; }
  .dw-events-title { font-size: 36px; }
  .dw-events-grid { grid-template-columns: 1fr; }
  .dw-events-upcoming-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media print {
  /* Copy of a shared theme.css rule (keeps its place in this cascade). */
  .dw-home-cal-eyebrow,
  .dw-events-kicker,
  .dw-event-card-cat {
      color: var(--brand-dark);
      background: none;
      -webkit-text-fill-color: var(--brand-dark);
    }
}
/* "Meet Droam there" block on single-dw_event (shown when _dw_event_droam_attends=1) */
.dw-event-meet-droam {
	margin: 24px 0 8px;
	padding: 16px 18px;
	border: 1px solid #d1d5db;
	border-left: 4px solid #ea580c;
	background: #fffbeb;
	border-radius: 8px;
}
.dw-event-meet-droam-title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 15px;
	color: #111827;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.dw-event-meet-droam-text {
	margin: 0 0 12px;
	color: #374151;
	font-size: 15px;
	line-height: 1.5;
}
.dw-event-meet-droam-btn {
	display: inline-block;
	text-decoration: none;
}
/* "Droam attends" tag on archive event cards */
.dw-event-card-attends {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ea580c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	vertical-align: middle;
}
/* Copy of a shared theme.css rule (keeps its place in this cascade). */
.dw-home-cal-list-loc { font-size: 13px; }
/* Copy of a shared theme.css rule (keeps its place in this cascade). */
.dw-home-cal-weekday { font-size: 11px; }
/* Calendar view (details/summary) */
.dw-events-cal { margin: 0 0 28px; }
.dw-events-cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}
.dw-events-cal-toggle::-webkit-details-marker { display: none; }
.dw-events-cal-toggle:hover { border-color: var(--brand); color: var(--brand); }
.dw-events-cal-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dw-events-cal-icon,
.dw-events-cal-chevron { width: 18px; height: 18px; flex: 0 0 auto; }
.dw-events-cal-icon { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .dw-events-cal-chevron { transition: transform 0.2s ease; }
}
.dw-events-cal[open] .dw-events-cal-chevron { transform: rotate(180deg); }
.dw-events-cal > .dw-home-cal { max-width: 760px; margin: 14px 0 0; }
/* Grid: 1 / 2 / 6-track columns; month headings span the row */
.dw-events-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
}
@media (min-width: 600px) {
  .dw-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .dw-events-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dw-events-grid > .dw-event-card { grid-column: span 2; }
  .dw-events-grid > .dw-event-card--feature { grid-column: span 3; }
}
.dw-events-month {
  grid-column: 1 / -1;
  margin: 16px 0 -6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.dw-events-grid > .dw-events-month:first-child { margin-top: 0; }
.dw-event-card[hidden],
.dw-events-month[hidden],
.dw-events-more[hidden] { display: none; }
/* Compact card */
.dw-event-card {
  border-radius: 4px;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 350px; /* measured mean: 360px at 1280, 335px at 390 */
}
.dw-event-card-img { aspect-ratio: 3 / 2; }
.dw-event-card-img--empty {
  display: block;
  background: var(--soft-line);
}
.dw-event-card-badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 5px 8px 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(12, 12, 12, 0.18);
  line-height: 1;
  text-align: center;
}
.dw-event-card-badge-m {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.dw-event-card-badge-d {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.dw-event-card-img--empty .dw-event-card-badge { box-shadow: 0 1px 2px rgba(12, 12, 12, 0.12); }
.dw-event-card-body { padding: 14px 16px 16px; gap: 6px; }
.dw-event-card-title {
  font-size: 18px;
  line-height: 1.25;
  -webkit-line-clamp: 3;
  min-height: 0;
}
/* The clamped title clips its link's outline, so the ring goes on the card. */
.dw-event-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.dw-event-card-title a:focus-visible { outline: none; text-decoration: underline; }
.dw-event-card-when,
.dw-event-card-where { align-items: flex-start; }
.dw-event-card-when svg,
.dw-event-card-where svg { margin-top: 2px; }
.dw-event-card-attends { margin-left: 0; margin-inline-start: 8px; }
/* Photo credit under a CC BY / BY-SA city photo; the name truncates, the licence link never does. */
.dw-event-card--credit { grid-template-rows: auto auto 1fr; }
.dw-event-card-credit {
  display: flex;
  gap: 0.3em;
  min-width: 0;
  margin: 0;
  padding-block: 6px 0;
  padding-inline: 16px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.dw-event-card-credit span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-event-card-credit a {
  flex: none;
  white-space: nowrap;
  color: inherit;
  text-decoration: underline;
}
@media (min-width: 1000px) {
  .dw-event-card--feature .dw-event-card-credit { padding-inline: 20px; }
  .dw-event-card--feature .dw-event-card-img { aspect-ratio: 16 / 9; }
  .dw-event-card--feature .dw-event-card-title { font-size: 24px; line-height: 1.2; }
  .dw-event-card--feature .dw-event-card-body { padding: 18px 20px 20px; }
}
/* Show more */
.dw-events-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 32px 0 8px;
}
.dw-events-more-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dw-events-more-btn {
  min-height: 44px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dw-events-more-btn:hover { border-color: var(--brand); color: var(--brand); }
.dw-events-more-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Promo cards under the list */
.dw-events-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.dw-events-promos > .dw-droam-promo { margin: 0; }
@media (max-width: 699px) {
  .dw-events-promos { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
}
/* Single event: facts strip + official-site button */
.dw-event-chiprow { align-items: center; }
.dw-event-facts-cta {
  margin-inline-start: auto;
  padding: 10px 18px;
  min-height: 44px;
  text-decoration: none;
}
.dw-event-facts-cta:focus-visible,
.dw-event-cta-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 699px) {
  .dw-event-facts-cta { margin-inline-start: 0; }
}
/* Single event: wide lead image */
.dw-event-lead img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
@media (max-width: 699px) {
  .dw-event-lead img { aspect-ratio: 16 / 9; }
}

/* Past-events pagination (archive-dw_event.php): inside the Past tab panel,
   spanning the whole grid row. */
.dw-events-pager {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
  margin-block-start: 8px;
}
.dw-events-pager-link,
.dw-events-pager-list a,
.dw-events-pager-list span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; min-height: 36px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--cnn-blue, #005095);
  text-decoration: none;
  font-weight: 600;
}
.dw-events-pager-link { border-color: var(--line, #d0d7e2); background: #fff; }
.dw-events-pager-link:hover,
.dw-events-pager-list a:hover { background: #f1f5fb; border-color: var(--line, #d0d7e2); }
.dw-events-pager-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dw-events-pager-list .is-current span { background: var(--cnn-blue, #005095); color: #fff; }
[dir="rtl"] .dw-events-pager-link > span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
