@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap');

:root {
  --ink: #001439;
  --ink-soft: #3f5064;
  --ivory: #f4f4f1;
  --paper: #fffefa;
  --champagne: #d3a566;
  --champagne-light: #e8c58f;
  --blue: #075b76;
  --blue-deep: #002c51;
  --sage: #56746f;
  --line: rgba(0, 20, 57, 0.16);
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(39, 29, 15, 0.11);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.modal-open { overflow: hidden; }

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 88px;
  padding: 1.1rem clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  background: var(--ink);
}

.brand {
  color: inherit;
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.brand-logo { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { letter-spacing: 0.18em; font-size: 0.86rem; font-weight: 500; }
.brand-copy small { color: #bbb3a6; margin-top: 0.25rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }

.header-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.language-switch {
  display: flex;
  padding: 0.2rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.language-switch button {
  min-width: 38px;
  padding: 0.34rem 0.5rem;
  border: 0;
  color: #a9a195;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-switch button.active {
  color: var(--ink);
  background: var(--champagne-light);
}

.header-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #cbc3b6;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 5px rgba(181, 145, 86, 0.12);
}

.hero {
  min-height: 680px;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 23%, rgba(7, 91, 118, 0.74), transparent 29%),
    linear-gradient(115deg, #001439 0%, #00355a 58%, #001439 100%);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(181, 145, 86, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before { width: 440px; height: 440px; right: -170px; top: -180px; }
.hero::after { width: 260px; height: 260px; right: -70px; top: -90px; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.75rem, 7.8vw, 7.6rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.hero h1 em { color: var(--champagne-light); font-weight: 400; }

.hero-intro {
  max-width: 690px;
  margin: 2.1rem 0 0;
  color: #d6cec2;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.button {
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--champagne); color: var(--ink); font-weight: 600; }
.button-primary:hover { background: var(--champagne-light); }
.button-quiet { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--paper); }
.button-quiet:hover { border-color: var(--champagne); }

.hero-card {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  border: 1px solid rgba(223, 201, 159, 0.45);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.hero-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(223, 201, 159, 0.16);
  pointer-events: none;
}

.hero-card-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  color: #a69d8f;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card-kicker {
  margin: 1.8rem 0 0.6rem;
  color: var(--champagne-light);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.next-event { min-height: 170px; padding-bottom: 1.5rem; }
.next-event time { color: #bdb3a6; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.next-event h2 { margin: 0.75rem 0 0.5rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1; }
.next-event p { margin: 0; color: #cec6ba; font-size: 0.85rem; }

.hero-stats {
  margin: 0;
  padding: 1.2rem 0.4rem 0.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
}

.hero-stats div { text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { color: var(--champagne-light); font-family: var(--serif); font-size: 2rem; }
.hero-stats dd { margin: 0.2rem 0 0; color: #9e9589; font-size: 0.58rem; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; }

.editorial-note {
  padding: 1.6rem clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) 1fr;
  gap: 2rem;
  align-items: center;
  color: #e2d9cd;
  background: var(--blue);
}

.editorial-note span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.editorial-note p { margin: 0; max-width: 860px; font-family: var(--serif); font-size: 1.15rem; }

.agenda-shell { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); }

.section-heading {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.6fr);
  gap: 3rem;
  align-items: end;
}

.section-heading h2,
.legend h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 400; line-height: 1; }
.section-summary { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.filters {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) repeat(4, minmax(140px, 1fr));
  gap: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px rgba(50, 38, 18, 0.06);
}

.filters label { min-width: 0; display: grid; gap: 0.45rem; }
.filters label > span { color: #7b7267; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.filters input,
.filters select {
  width: 100%;
  height: 46px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fbf8f2;
}

.search-control { position: relative; }
.search-control svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); fill: none; stroke: #84796d; stroke-width: 1.5; }
.search-control input { padding-left: 2.5rem; }

.agenda-toolbar,
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.agenda-toolbar { padding: 1.25rem 0 0.8rem; border-bottom: 1px solid var(--line); }
.toolbar-left { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.priority-toggle,
.reset-button,
.view-toggle button {
  padding: 0.55rem 0.7rem;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.priority-toggle { border: 1px solid var(--line); }
.priority-toggle > span[aria-hidden="true"] { margin-right: 0.35rem; color: var(--champagne); }
.priority-toggle[aria-pressed="true"] { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.reset-button { text-decoration: underline; text-underline-offset: 4px; }
.view-toggle { display: flex; gap: 0.25rem; padding: 0.22rem; border: 1px solid var(--line); background: #eee7db; }
.view-toggle button.active { color: var(--paper); background: var(--ink); }

.results-meta { min-height: 60px; color: #766e63; font-size: 0.78rem; }
.results-meta p { margin: 0; font-weight: 600; color: var(--ink); }

.timeline-view { display: grid; gap: 1rem; }

.event-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 155px 1fr;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.52);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.event-card:hover { transform: translateY(-2px); background: var(--paper); box-shadow: var(--shadow); }
.event-card.priority-1 { border-left: 4px solid var(--champagne); }

.event-date {
  padding: 1.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.date-day { font-family: var(--serif); font-size: 4rem; line-height: 0.9; }
.date-month-only .date-day { color: var(--blue); font-size: 2.5rem; }
.date-month { margin-top: 0.7rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.date-year { margin-top: 0.25rem; color: #857c70; font-size: 0.7rem; }

.event-card-main { padding: 1.5rem 1.7rem; display: flex; flex-direction: column; }
.event-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.event-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag { padding: 0.2rem 0.48rem; color: #62594e; border: 1px solid #d7cfc2; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tag.priority-1 { color: #56401c; border-color: #c6a76d; background: #ede0c5; }
.tag.priority-2 { color: #063b58; border-color: #91b4c1; background: #dcecf1; }
.tag.priority-3 { color: #45503e; border-color: #a9b0a4; background: #e2e6df; }
.tag.forecast { color: #063b58; border-color: #91b4c1; background: #edf5f7; }
.event-status { flex: 0 0 auto; color: #746d63; font-size: 0.63rem; }
.event-status::before { content: "•"; margin-right: 0.35rem; color: var(--sage); }
.date-month-only .event-status::before { color: var(--blue); }

.event-card h3 { margin: 1.1rem 0 0.25rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 400; line-height: 1.08; }
.event-place { margin: 0; color: var(--blue); font-size: 0.8rem; font-weight: 600; }
.event-summary { max-width: 880px; margin: 0.85rem 0 1.2rem; color: var(--ink-soft); font-size: 0.9rem; }
.event-card-footer { margin-top: auto; padding-top: 0.9rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--line); }
.event-range { color: #81786d; font-size: 0.72rem; }
.details-button { padding: 0.4rem 0; border: 0; border-bottom: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-size: 0.77rem; font-weight: 600; }
.details-button span { color: var(--champagne); }

.calendar-view { padding: 1.25rem; border: 1px solid var(--line); background: var(--paper); }
.calendar-header { display: grid; grid-template-columns: 44px 1fr 44px; gap: 1rem; align-items: center; padding: 0.6rem 0 1.5rem; }
.calendar-header h3 { margin: 0; text-align: center; font-family: var(--serif); font-size: 2rem; font-weight: 400; text-transform: capitalize; }
.calendar-header button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.calendar-month-events { margin-bottom: 1rem; padding: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.55rem; border: 1px solid #b8d0d8; background: #edf5f7; }
.calendar-month-events-label { grid-column: 1 / -1; margin: 0 0 0.25rem; color: var(--blue); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.calendar-month-event { min-width: 0; padding: 0.7rem 0.8rem; display: grid; gap: 0.18rem; border: 0; border-left: 3px solid var(--blue); color: var(--ink); background: #fffdfa; cursor: pointer; text-align: left; }
.calendar-month-event strong { overflow: hidden; font-family: var(--serif); font-size: 1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.calendar-month-event span { color: #70685e; font-size: 0.65rem; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { color: #776e63; border: 1px solid var(--line); border-bottom: 0; background: #f0eae0; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.calendar-weekdays span { padding: 0.6rem; text-align: center; border-right: 1px solid var(--line); }
.calendar-weekdays span:last-child { border: 0; }
.calendar-day { min-height: 128px; padding: 0.55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fffdfa; }
.calendar-day:nth-child(7n + 1) { border-left: 1px solid var(--line); }
.calendar-day.outside { color: #aaa197; background: #f4efe7; }
.calendar-day.today .calendar-date-number { display: inline-grid; place-items: center; width: 25px; height: 25px; color: white; border-radius: 50%; background: var(--blue); }
.calendar-date-number { font-size: 0.7rem; }
.calendar-events { margin-top: 0.35rem; display: grid; gap: 0.28rem; }
.calendar-event { width: 100%; padding: 0.28rem 0.35rem; border: 0; border-left: 3px solid var(--sage); overflow: hidden; color: var(--ink); background: #e9ebe5; cursor: pointer; font-size: 0.62rem; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.priority-1 { border-left-color: var(--champagne); background: #efe3ca; }
.calendar-event.priority-2 { border-left-color: var(--blue); background: #dcecf1; }
.calendar-more { color: #766e63; font-size: 0.58rem; }

.button:disabled { opacity: 0.58; cursor: not-allowed; }

.empty-state { padding: 5rem 1rem; border: 1px solid var(--line); text-align: center; background: var(--paper); }
.empty-state > span { color: var(--champagne); font-size: 2.5rem; }
.empty-state h3 { margin: 0.7rem 0 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.empty-state p { color: var(--ink-soft); }

.legend {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 8rem);
  color: var(--paper);
  background: var(--ink);
}

.legend > div:first-child { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.legend-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.16); }
.legend-grid article { padding: 2rem 2rem 0 0; }
.legend-grid h3 { margin: 1rem 0 0.4rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.legend-grid p { margin: 0; max-width: 350px; color: #aaa195; font-size: 0.82rem; }
.priority-swatch { font-size: 0.9rem; }
.priority-swatch.p1 { color: var(--champagne); }
.priority-swatch.p2 { color: #5eabc2; }
.priority-swatch.p3 { color: #83927a; }

.sources-section {
  padding: 1.5rem clamp(1.25rem, 7vw, 8rem) 2rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: #f2ece2;
}

.sources-section details { max-width: 1500px; margin: 0 auto; }
.sources-section summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.sources-section summary::-webkit-details-marker { display: none; }
.sources-section summary::after { content: "+"; flex: 0 0 auto; color: var(--blue); font-family: var(--serif); font-size: 1.5rem; }
.sources-section details[open] summary::after { content: "−"; }
.sources-section summary > span { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }
.sources-section summary > small { margin-left: auto; color: #786f64; font-size: 0.66rem; letter-spacing: 0.04em; text-align: right; }
.sources-note { max-width: 850px; margin: 1.2rem 0 0; font-size: 0.76rem; line-height: 1.6; }
.sources-list { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sources-list a { min-width: 0; padding: 0.85rem 1rem 0.85rem 0; display: grid; gap: 0.18rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.sources-list a:nth-child(3n + 2),
.sources-list a:nth-child(3n + 3) { padding-left: 1rem; border-left: 1px solid var(--line); }
.sources-list strong { overflow: hidden; font-family: var(--serif); font-size: 0.95rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sources-list small { overflow: hidden; color: #82786d; font-size: 0.59rem; text-overflow: ellipsis; white-space: nowrap; }
.sources-list a:hover strong,
.sources-list a:focus-visible strong { color: var(--blue); }

footer {
  padding: 2rem clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  color: #7f766b;
  border-top: 1px solid #37322c;
  background: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--champagne-light); font-family: var(--serif); font-size: 1.2rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
footer p { margin: 0; }

.page-jump {
  position: fixed;
  top: 50%;
  right: 0.7rem;
  bottom: auto;
  z-index: 35;
  display: grid;
  gap: 0;
  padding: 0.18rem;
  overflow: visible;
  border: 1px solid rgba(211, 165, 102, 0.34);
  border-radius: 999px;
  background: rgba(0, 20, 57, 0.72);
  box-shadow: 0 8px 24px rgba(0, 20, 57, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0.76;
  transform: translateY(-50%);
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.page-jump:hover,
.page-jump:focus-within { opacity: 0.96; box-shadow: 0 10px 28px rgba(0, 20, 57, 0.18); }
.page-jump.at-edge { opacity: 0.55; box-shadow: none; }
.page-jump.at-edge:hover,
.page-jump.at-edge:focus-within { opacity: 0.88; }

.page-jump button {
  position: relative;
  width: 40px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--champagne-light);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.page-jump button:hover,
.page-jump button:focus-visible { color: var(--paper); background: rgba(255,255,255,0.12); }
.page-jump button:not([hidden]) + button:not([hidden])::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid rgba(255,255,255,0.14); }
.page-jump button > span { font-family: var(--serif); font-size: 1.08rem; line-height: 1; }
.page-jump small { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-jump button::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 0.65rem);
  width: max-content;
  padding: 0.38rem 0.55rem;
  border-radius: 3px;
  color: var(--paper);
  background: rgba(0, 20, 57, 0.94);
  box-shadow: 0 6px 18px rgba(0, 20, 57, 0.16);
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}
.page-jump button:hover::after,
.page-jump button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: stretch end; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 7, 0.72); backdrop-filter: blur(5px); }
.modal-panel { position: relative; width: min(680px, 100%); height: 100%; padding: clamp(2rem, 6vw, 4.5rem); overflow-y: auto; background: var(--paper); box-shadow: -30px 0 100px rgba(0,0,0,0.3); animation: slideIn 220ms ease both; }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-family: var(--serif); font-size: 1.8rem; }
.modal-eyebrow { margin: 0 0 1.1rem; color: var(--blue); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.modal-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; line-height: 0.98; }
.modal-lead { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1rem; }
.modal-facts { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.modal-facts div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.modal-facts dt { color: #847a6f; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.modal-facts dd { margin: 0.25rem 0 0; font-size: 0.86rem; }
.modal-section { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.modal-section h3 { margin: 0 0 0.45rem; color: var(--blue); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.modal-section p { margin: 0; color: var(--ink-soft); }
.modal-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.modal-actions .button-quiet { color: var(--ink); border-color: var(--line); }
.modal-actions a[aria-disabled="true"] { pointer-events: none; opacity: 0.5; }

.modal-media { padding-top: 1.6rem; }
.media-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.media-heading h3 { margin: 0; }
.media-edition { margin: 0; color: #847a6f; font-size: 0.66rem; letter-spacing: 0.08em; text-align: right; text-transform: uppercase; }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { margin-top: 0.5rem; display: inline-block; color: var(--blue); font-size: 0.68rem; text-underline-offset: 3px; }
.video-link-card,
.media-visual-feature,
.video-unavailable {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 22% 25%, rgba(31, 126, 160, 0.66), transparent 34%),
    linear-gradient(135deg, #001439, #063f66);
}
.video-link-card,
.media-visual-feature { text-decoration: none; }
.video-link-card::after,
.media-visual-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,57,0.08), rgba(0,20,57,0.82)); }
.video-link-card > img,
.media-visual-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.video-link-card:hover > img,
.video-link-card:focus-visible > img,
.media-visual-feature:hover > img,
.media-visual-feature:focus-visible > img { transform: scale(1.025); }
.media-monogram { font-family: var(--serif); font-size: clamp(7rem, 20vw, 11rem); line-height: 1; opacity: 0.16; }
.video-link-overlay,
.video-unavailable > span:last-child { position: relative; z-index: 1; display: grid; gap: 0.3rem; text-align: center; }
.video-link-overlay { grid-template-columns: auto 1fr; align-items: center; width: min(88%, 390px); text-align: left; }
.video-link-overlay strong,
.video-unavailable strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.video-link-overlay small,
.video-unavailable small { display: block; color: rgba(255,255,255,0.72); font-size: 0.72rem; }
.media-visual-feature > span { position: absolute; right: 1.2rem; bottom: 1.1rem; z-index: 1; display: grid; gap: 0.15rem; text-align: right; }
.media-visual-feature strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.media-visual-feature small { color: rgba(255,255,255,0.78); font-size: 0.7rem; }
.play-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 0.85rem; border: 1px solid rgba(255,255,255,0.55); border-radius: 50%; font-size: 0.75rem; text-indent: 0.1em; }
.video-unavailable { min-height: 165px; grid-template-columns: auto minmax(0, 360px); padding: 1.5rem; color: var(--ink); background: #eee8de; }
.video-unavailable > span:last-child { text-align: left; }
.video-unavailable small { color: #746d63; }
.play-mark-muted { color: var(--blue); border-color: rgba(4, 83, 126, 0.28); }
.media-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-top: 0.65rem; }
.media-gallery figure { min-width: 0; margin: 0; }
.media-gallery a { display: block; overflow: hidden; background: #e7e0d5; }
.media-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 220ms ease; }
.media-gallery a:hover img,
.media-gallery a:focus-visible img { transform: scale(1.025); }
.media-gallery figcaption { margin-top: 0.3rem; color: #847a6f; font-size: 0.58rem; line-height: 1.3; }

.calendar-add {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #f5f0e7;
}

.calendar-add > p {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar-options { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.calendar-options .button { min-height: 42px; padding: 0.58rem 0.8rem; color: var(--ink); border-color: var(--line); background: var(--paper); font-size: 0.75rem; }
.calendar-add-disabled { color: #746d63; font-size: 0.8rem; }
.calendar-add-disabled > p { margin-bottom: 0.25rem; }

@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 600px; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { min-height: 72px; }
  .brand-logo { width: 48px; height: 48px; }
  .header-actions { gap: 0.6rem; }
  .header-meta { font-size: 0; }
  .header-meta .privacy-dot { display: block; }
  .hero { min-height: 0; padding-top: 4.2rem; padding-bottom: 4.2rem; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.5rem); }
  .hero-card { padding: 1rem; }
  .hero-actions { display: grid; }
  .editorial-note,
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .agenda-toolbar,
  .results-meta { align-items: stretch; flex-direction: column; }
  .agenda-toolbar { padding-bottom: 1rem; }
  .view-toggle button { flex: 1; }
  .event-card { min-height: 0; grid-template-columns: 86px 1fr; }
  .event-date { padding: 1.2rem 0.6rem; }
  .date-day { font-size: 2.6rem; }
  .event-card-main { padding: 1.2rem; }
  .event-card h3 { font-size: 1.7rem; }
  .event-topline { flex-direction: column; gap: 0.6rem; }
  .event-card-footer { align-items: flex-start; flex-direction: column; }
  .calendar-view { padding: 0.6rem; overflow-x: auto; }
  .calendar-weekdays,
  .calendar-grid { min-width: 720px; }
  .legend > div:first-child,
  .legend-grid { grid-template-columns: 1fr; }
  .legend-grid article { padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  footer { grid-template-columns: 1fr; gap: 0.55rem; }
  .page-jump {
    top: auto;
    right: 50%;
    bottom: 0.75rem;
    display: flex;
    transform: translateX(50%);
  }
  .page-jump button { width: 44px; min-height: 40px; }
  .page-jump button:not([hidden]) + button:not([hidden])::before { top: 9px; bottom: 9px; left: 0; right: auto; border-top: 0; border-left: 1px solid rgba(255,255,255,0.14); }
  .page-jump button::after { display: none; }
  .modal-panel { padding: 5rem 1.25rem 2rem; }
  .modal-facts { grid-template-columns: 1fr; }
  .media-heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .media-edition { text-align: left; }
  .video-link-card,
  .media-visual-feature { min-height: 210px; }
  .video-unavailable { min-height: 150px; grid-template-columns: auto 1fr; padding: 1.1rem; }
  .media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .media-gallery figure:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
  .sources-section summary { align-items: flex-start; flex-wrap: wrap; }
  .sources-section summary > small { width: calc(100% - 2rem); margin-left: 0; text-align: left; }
  .sources-list { grid-template-columns: 1fr; }
  .sources-list a:nth-child(3n + 2),
  .sources-list a:nth-child(3n + 3) { padding-left: 0; border-left: 0; }
  .calendar-options { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
