@import url("https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --slate-900: #102536;
  --slate-800: #173144;
  --slate-700: #2b5068;
  --slate-200: #d9e4ea;
  --slate-100: #f2f6f8;
  --slate-50: #ffffff;

  --primary: #2f8c86;
  --primary-hover: #256f6b;
  --accent: #c96d50;
  --accent-hover: #a9583f;

  --good: #25694f;
  --good-bg: #e3f1e9;
  --good-border: #bdd8c8;

  --warning: #9a6528;
  --warning-bg: #fcf1df;
  --warning-border: #eac996;

  --bad: #a14a42;
  --bad-bg: #fae7e5;
  --bad-border: #e6b3ad;

  --neutral-text: #2b7280;
  --neutral-bg: #e7f4f6;
  --neutral-border: #b4d7dc;

  --text: #22323c;
  --muted: #667b88;
  --line: rgba(16, 37, 54, 0.12);
  --shadow-sm: 0 1px 2px rgba(16, 37, 54, 0.06);
  --shadow-md: 0 8px 20px rgba(16, 37, 54, 0.1);
  --shadow-lg: 0 16px 32px rgba(16, 37, 54, 0.14);
  --shadow-glow: 0 0 18px rgba(47, 140, 134, 0.25);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: "Bitter", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(180deg, #f8fbfc 0, var(--slate-100) 220px, var(--slate-100) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

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

a:hover {
  color: var(--accent-hover);
}

p,
h1,
h2,
h3,
dl,
dd,
dt,
ul {
  margin: 0;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
.footer-brand,
.brand-mark {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

.shell {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-main {
  padding: 0 0 3rem;
}

.muted {
  color: var(--muted);
}

.deck {
  color: var(--muted);
  max-width: 64ch;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--slate-800);
  border-bottom: 3px solid var(--primary);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(16, 37, 54, 0.2);
}

.header-grid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
}

.brand-mark {
  color: var(--slate-50);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-mark span {
  color: var(--primary);
}

.brand-mark:hover {
  color: var(--slate-50);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
}

.site-nav a {
  color: #ced8df;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav a:hover {
  color: var(--slate-50);
  text-decoration: none;
}

.header-search {
  display: flex;
  gap: 0.5rem;
  min-width: min(320px, 100%);
}

.search-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.header-search input {
  width: 100%;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  background: var(--slate-900);
  padding: 0.55rem 0.9rem;
  color: var(--slate-50);
  font-size: 0.92rem;
}

.header-search input::placeholder {
  color: #adc0cd;
  opacity: 0.6;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.header-search button,
.button-link,
.hero-search button {
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.header-search button {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.header-search button:hover,
.button-link:hover,
.hero-search button:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  box-shadow: 0 10px 32px rgba(16, 37, 54, 0.18);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion-link,
.search-suggestion-meta {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
}

.search-suggestion-link {
  align-items: flex-start;
  border-top: 1px solid var(--line);
}

.search-suggestion-link:first-child {
  border-top: 0;
}

.search-suggestion-link.is-active {
  background: var(--neutral-bg);
}

.search-suggestion-kind {
  flex: 0 0 auto;
  min-width: 4.4rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggestion-body {
  display: grid;
  gap: 0.15rem;
}

.search-suggestion-body strong {
  color: var(--text);
  font-size: 0.95rem;
}

.search-suggestion-body span,
.search-suggestion-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.search-suggestion-meta {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.hero {
  background:
    radial-gradient(circle at top, rgba(47, 140, 134, 0.18), transparent 34%),
    var(--slate-900);
  color: var(--slate-50);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--slate-700);
}

.hero-inner {
  text-align: center;
}

.hero h1 {
  color: var(--slate-50);
  max-width: 13ch;
  margin: 0 auto 1rem;
}

.hero .deck {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #a8bac6;
  font-size: 1.15rem;
}

.hero-search {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.hero-search .search-input-wrap {
  flex: 1 1 auto;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  padding: 0.9rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.04rem;
  outline: none;
}

.hero-search input::placeholder {
  color: #8ea2af;
}

.hero-search button {
  padding: 0.9rem 1.8rem;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
}

.hero-stat-value.good {
  color: #7cc7a0;
}

.hero-stat-label {
  color: #99adba;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-block {
  padding: 2rem 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--slate-200);
}

.section-head .eyebrow {
  flex: 1 0 100%;
}

.section-head h2 {
  margin: 0;
}

.section-head .view-all {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-copy {
  max-width: 78ch;
  color: var(--text);
}

.intro-copy + .intro-list,
.intro-list + .intro-copy {
  margin-top: 0.9rem;
}

.intro-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
  color: var(--text);
}

.intro-list strong {
  color: var(--text);
}

.callout {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.callout.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.callout.neutral {
  background: var(--neutral-bg);
  border: 1px solid var(--neutral-border);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.chip {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.87rem;
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.chip.is-active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.button-link {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
}

.page-hero {
  display: block;
  padding: 0.5rem 0 0;
}

.page-hero.slim {
  grid-template-columns: 1fr;
}

.hero-copy {
  padding: 0;
}

.hero-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.card,
.link-card,
.facility-card,
.info-card,
.stack-card,
.content-card,
.metric-card,
.table-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.link-card,
.facility-card,
.info-card,
.stack-card,
.content-card,
.metric-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.link-card,
.facility-card,
.info-card,
.metric-card {
  padding: 0.9rem 1.05rem;
}

.stack-card,
.content-card {
  padding: 1rem 1.1rem;
}

.link-card::before,
.facility-card::before,
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.link-card:hover,
.facility-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.link-card:hover::before,
.facility-card:hover::before,
.info-card:hover::before {
  transform: scaleY(1);
}

.link-grid,
.info-grid,
.facility-grid,
.content-stack,
.stack-list {
  display: grid;
  gap: 0.75rem;
}

.link-grid,
.info-grid,
.facility-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.link-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.metric-grid.single-column {
  grid-template-columns: 1fr;
}

.metric-card {
  border-radius: 8px;
}

.metric-card.tone-good {
  background: var(--good-bg);
  border-color: var(--good-border);
}

.metric-card.tone-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.metric-card.tone-bad {
  background: var(--bad-bg);
  border-color: var(--bad-border);
}

.metric-card.tone-neutral {
  background: var(--neutral-bg);
  border-color: var(--neutral-border);
}

.metric-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 0.2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
}

.metric-card.tone-good .metric-value {
  color: var(--good);
}

.metric-card.tone-warning .metric-value {
  color: var(--warning);
}

.metric-card.tone-bad .metric-value {
  color: var(--bad);
}

.metric-card.tone-neutral .metric-value {
  color: var(--neutral-text);
}

.metric-note {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-card h3,
.facility-card h3,
.stack-card h3,
.info-card h3,
.content-card h2 {
  color: var(--text);
}

.link-card p,
.info-card p,
.stack-card p,
.content-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-card span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.facility-topline,
.stack-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rank-pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rank-pill {
  background: var(--neutral-bg);
  border: 1px solid var(--neutral-border);
  color: var(--neutral-text);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.badge {
  background: var(--slate-100);
  color: var(--muted);
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}

.tone-good {
  background: var(--good-bg);
  border-color: var(--good-border);
  color: var(--good);
}

.tone-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.tone-bad {
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--bad);
}

.tone-neutral {
  background: var(--neutral-bg);
  border-color: var(--neutral-border);
  color: var(--neutral-text);
}

.facility-card h3 a,
.compare-table a {
  color: var(--text);
}

.facility-card h3 a:hover,
.compare-table a:hover {
  color: var(--accent);
}

.facility-location,
.facility-summary,
.address-block,
.owner-meta,
.detail-list p {
  margin-top: 0.4rem;
}

.facility-location {
  color: var(--muted);
  font-size: 0.92rem;
}

.facility-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.facility-meta,
.detail-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

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

.facility-meta dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.facility-meta dd,
.detail-list dd {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-list > div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-200);
}

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

.table-wrap {
  overflow: auto;
  padding: 0;
}

.data-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td,
.compare-table th,
.compare-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
  vertical-align: top;
}

.data-table thead th,
.compare-table thead th {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:hover,
.compare-table tbody tr:hover {
  background: #f9fbfc;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.compare-table thead th span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.owner-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.owner-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--slate-200);
}

.owner-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.owner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs a::after {
  content: "\203A";
  margin-left: 0.5rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  background: var(--slate-900);
  border-top: 3px solid var(--slate-800);
  color: #9cb0bd;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-brand {
  color: var(--slate-50);
  font-size: 1.15rem;
}

.footer-copy {
  color: #9cb0bd;
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.footer-nav a {
  color: #9cb0bd;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 980px) {
  .header-grid {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .site-nav {
    order: 3;
    margin-left: 0;
  }

  .header-search {
    flex: 1 1 100%;
    min-width: 0;
  }

  .two-up,
  .detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 1rem);
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .header-search,
  .owner-row {
    flex-direction: column;
  }

  .header-search button {
    width: 100%;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .deck {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-search {
    flex-direction: column;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0.5rem;
    padding: 0;
  }

  .hero-search:focus-within {
    box-shadow: none;
    border-color: transparent;
  }

  .hero-search input {
    padding: 0.85rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--slate-50);
  }

  .hero-search button {
    padding: 0.85rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.6rem;
  }

  .facility-meta {
    grid-template-columns: 1fr;
  }

  .link-grid,
  .info-grid,
  .facility-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .data-table,
  .compare-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td,
  .compare-table th,
  .compare-table td {
    padding: 0.45rem 0.55rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .data-table,
  .compare-table {
    border: 1px solid #ccc;
  }

  .data-table th,
  .data-table td,
  .compare-table th,
  .compare-table td {
    border: 1px solid #ccc;
  }

  .link-card,
  .facility-card,
  .info-card,
  .metric-card,
  .stack-card,
  .content-card {
    border: 1px solid #ccc;
    box-shadow: none;
    transform: none;
    break-inside: avoid;
  }
}
