:root {
  --ink: #13201d;
  --muted: #66716d;
  --paper: #fbfbf5;
  --panel: #ffffff;
  --line: #dfe7df;
  --navy: #102c35;
  --green: #107b5b;
  --mint: #dff4ea;
  --gold: #d5a11e;
  --red: #bd4138;
  --shadow: 0 18px 48px rgba(16, 44, 53, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.7rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 245, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  box-shadow: inset 0 -4px 0 var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--mint);
  text-decoration: none;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 29, 34, 0.78), rgba(8, 29, 34, 0.38) 48%, rgba(8, 29, 34, 0.1)),
    linear-gradient(0deg, rgba(8, 29, 34, 0.72), transparent 45%);
}

.hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3.5rem;
  color: #fff;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
  font-size: 1.18rem;
  margin-top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.95);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.8rem 0;
}

.section.tight {
  padding-top: 2.5rem;
}

.band {
  background: #eef6f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .section {
  padding: 4rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  font-size: 1rem;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0 3.2rem;
}

.page-hero .inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin-top: 1rem;
  font-size: 1.08rem;
}

.data-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff8df;
  border: 1px solid #ead78d;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: #66521b;
  margin-top: 1.5rem;
}

.data-note strong {
  color: #3f320f;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

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

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

.metric-panel,
.source-panel,
.content-panel,
.event-strip,
.ranking-chip,
.step-panel,
.resource-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 44, 53, 0.03);
}

.metric-panel {
  padding: 1rem;
}

.metric-panel span,
.source-panel span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-panel strong {
  display: block;
  font-size: 2.7rem;
  line-height: 1;
  margin: 0.8rem 0 0.2rem;
}

.metric-panel small,
.source-panel small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 1.5rem;
  align-items: start;
}

.content-panel {
  padding: 1.25rem;
}

.content-panel h3 {
  margin-bottom: 0.55rem;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.event-strip {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.event-strip time {
  font-weight: 800;
  color: var(--green);
}

.event-strip p {
  font-size: 0.92rem;
}

.ranking-chip {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  color: var(--ink);
}

.ranking-chip:hover {
  text-decoration: none;
  border-color: rgba(16, 123, 91, 0.5);
}

.ranking-chip span,
.ranking-chip small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: var(--mint);
  color: #0d6249;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.warning {
  background: #fff1cf;
  color: #805500;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.55fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters.compact {
  grid-template-columns: repeat(3, minmax(150px, 0.5fr));
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f3f7f1;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

tr:last-child td {
  border-bottom: 0;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.source-panel {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.source-panel a {
  font-weight: 800;
}

.resource-panel {
  padding: 1.1rem;
}

.resource-panel h3 {
  margin-bottom: 0.5rem;
}

.step-panel {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.step-panel strong {
  color: var(--green);
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #b7dfc9;
  border-radius: var(--radius);
  background: #edf8f1;
  color: #0c5d44;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

details:first-child {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 0.65rem;
  max-width: 850px;
}

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.4rem 1rem;
}

.fine-print {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1rem;
}

.visually-hidden {
  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: 920px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section-head,
  .split-layout,
  .grid-2,
  .grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filters,
  .filters.compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 710px;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .site-nav a {
    padding: 0.45rem 0.5rem;
    font-size: 0.86rem;
  }

  .filters,
  .filters.compact,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .event-strip {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}
