:root {
  --navy: #1F2A44;
  --navy-light: #2E3D5F;
  --teal: #0E7C7B;
  --teal-light: #E6F3F2;
  --border: #DDE3EA;
  --text: #1F2A44;
  --muted: #5A6478;
  --bg: #FFFFFF;
  --row-alt: #F7F9FB;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1.75rem 0 1.5rem;
  text-align: center;
}

.site-header .wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.25;
}

.site-header .subtitle {
  margin: 0.35rem 0 1.1rem;
  color: #C9D2E0;
  font-size: 0.95rem;
}

.pdf-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.pdf-btn:hover,
.pdf-btn:focus {
  background: #0B6362;
}

/* Sticky search bar */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.06);
  padding: 0.85rem 0;
}

.search-bar input[type="search"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.search-bar input[type="search"]:focus {
  border-color: var(--teal);
}

.result-summary {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  min-height: 1.1em;
}

.quick-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.quick-nav a {
  font-size: 0.82rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--teal);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.quick-nav a:hover {
  background: var(--teal-light);
}

/* Sections */
.data-section {
  padding: 2rem 0 1rem;
  scroll-margin-top: 9.5rem;
}

.data-section h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  border-left: 5px solid var(--teal);
  padding-left: 0.6rem;
}

.section-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.4rem 0 1rem;
}

.loading {
  color: var(--muted);
  font-size: 0.9rem;
}

.no-results {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: var(--row-alt);
}

.cost-cell {
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

/* Mobile: convert table rows into stacked cards */
@media (max-width: 640px) {
  .data-section {
    scroll-margin-top: 11rem;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  tbody tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
  }

  tbody tr:nth-child(even) {
    background: #fff;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
  }

  tbody td:last-child {
    border-bottom: none;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    flex-shrink: 0;
  }

  tbody td[data-primary]::before {
    display: none;
  }

  tbody td[data-primary] {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    justify-content: flex-start;
    text-align: left;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-light);
  color: #DCE2EC;
  margin-top: 2.5rem;
  padding: 1.75rem 0 2.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--teal-light);
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}
