:root {
  --ink: #102a2d;
  --muted: #607477;
  --sea: #087f8c;
  --sea-dark: #075963;
  --foam: #ecf6f5;
  --sand: #f5f1e7;
  --line: #d7e3e1;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfdfc;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: var(--sea-dark); }
.site-header { min-height: 68px; padding: 12px max(20px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.12rem; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--sea); border-radius: 50%; }
.header-search input, .hero-search input, .page-heading input { width: min(440px, 62vw); padding: 12px 15px; border: 1px solid #b9ccca; border-radius: 9px; font: inherit; background: white; }
.page-heading form { display: grid; max-width: 440px; gap: 10px; margin-top: 28px; }
.site-header > a:last-child { white-space: nowrap; font-weight: 700; }
.primary-nav { display: flex; gap: 14px; }
.primary-nav a { font-weight: 650; text-decoration: none; white-space: nowrap; }
main { min-height: 70vh; }
.hero, .page-heading, .detail-hero { padding: 72px max(20px, calc((100vw - 1120px) / 2)); }
.hero { background: linear-gradient(135deg, #e3f3f1, #f7f2e6); }
.hero h1, .page-heading h1, .detail-hero h1 { max-width: 820px; margin: 8px 0 14px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -.04em; }
.lead { max-width: 750px; color: #36575a; font-size: 1.18rem; }
.eyebrow { margin: 0 0 5px; color: var(--sea-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-search { display: flex; gap: 9px; margin-top: 30px; }
button { padding: 11px 20px; border: 0; border-radius: 9px; color: white; background: var(--sea-dark); font: inherit; font-weight: 750; cursor: pointer; }
.content-section, .fact-grid { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0; }
.section-heading, .detail-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading h2, .content-section h2 { margin: 0 0 18px; font-size: 1.7rem; }
.freshness, .meta, .mark, .empty, .caveat { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.event-card, .info-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 5px 20px rgba(16,42,45,.04); }
.event-card h2, .info-card h3 { margin: 6px 0; font-size: 1.2rem; }
.event-card h2 a { color: var(--ink); text-decoration: none; }
.empty-state { padding: 34px; border-radius: 14px; background: var(--foam); }
.result-list { border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px 5px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.result-row span { color: var(--muted); text-align: right; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.danger-button { color: #7f1d1d; border: 1px solid #fecaca; background: #fff7f7; }
.danger-zone { border-top: 1px solid #fecaca; }
.danger-zone form { display: grid; max-width: 440px; gap: 10px; }
.danger-zone input { padding: 12px 15px; border: 1px solid #b9ccca; border-radius: 9px; font: inherit; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.filter-grid label { display: grid; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.filter-grid input, .filter-grid select { width: 100%; padding: 10px 12px; border: 1px solid #b9ccca; border-radius: 9px; background: white; font: inherit; }
.filter-grid button { align-self: end; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
code { overflow-wrap: anywhere; font-size: .82em; }
.detail-hero { background: var(--foam); }
.source-link { padding: 10px 14px; border: 1px solid var(--sea); border-radius: 9px; text-decoration: none; white-space: nowrap; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact-grid div { padding: 18px; border-radius: 12px; background: var(--sand); }
.fact-grid span, .fact-grid strong { display: block; }
.fact-grid span { color: var(--muted); font-size: .83rem; }
.parameters { margin: 16px 0 0; }
.parameters div { display: flex; justify-content: space-between; gap: 15px; padding-top: 8px; border-top: 1px solid var(--line); }
.parameters dt, .parameters dd { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; gap: 4px; margin-left: 18px; padding: 0 0 24px 12px; }
.timeline time { color: var(--muted); font-size: .85rem; }
.history-group { margin-top: 32px; }
.history-group h3 { margin-bottom: 8px; }
footer { padding: 32px max(20px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.professional-callout { margin-bottom: 42px; padding: 28px; border-radius: 14px; background: var(--sand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .site-header { align-items: stretch; flex-direction: column; }
  .primary-nav { overflow-x: auto; }
  .header-search input { width: 100%; }
  .hero, .page-heading, .detail-hero { padding-top: 46px; padding-bottom: 46px; }
  .hero-search, .detail-hero, .section-heading { align-items: stretch; flex-direction: column; }
  .hero-search input, .page-heading input { width: 100%; }
  .result-row { flex-direction: column; gap: 3px; }
  .result-row span { text-align: left; }
  .row-actions { align-items: flex-start; }
}
