/* FacilityDirectory.org - site styles
   Static, dependency-free. Mobile-first, dark-on-light, YMYL-friendly. */

:root {
  --ink: #17222c;
  --muted: #5a6b7b;
  --line: #e1e8ee;
  --line-strong: #c9d4de;
  --bg: #ffffff;
  --bg-soft: #f4f8fa;
  --bg-warm: #fff8f1;
  --brand: #0e6e6e;
  --brand-dark: #0a4f4f;
  --brand-soft: #e3f2f2;
  --warn: #8a4b08;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 34, 48, 0.06);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; text-decoration: none; color: var(--brand-dark); }
.logo span { color: var(--brand); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-header nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 4px 2px; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
.site-header nav a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }

/* Main + type */
main.wrap { padding-top: 26px; padding-bottom: 40px; }

h1 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.15rem); line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.3; margin: 34px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }
p { margin: 0 0 14px; }

.lede { font-size: 1.08rem; color: var(--muted); max-width: 72ch; }
.micro { font-size: 0.86rem; color: var(--muted); }
.crumbs-inline { font-size: 0.92rem; color: var(--muted); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Cards */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 18px 0 24px; }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16, 34, 48, 0.08); color: var(--ink); }
.card-kicker { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.card-title { display: block; font-weight: 700; line-height: 1.35; }
.card-meta { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.card-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.chip { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.79rem; color: var(--muted); white-space: nowrap; }

.hub-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hub-card { border-top: 3px solid var(--brand); }

/* Tables */
.stat-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: #fff; }
.stat-table th, .stat-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.stat-table th { font-weight: 600; color: var(--muted); width: 42%; }
.stat-table thead th { color: var(--ink); background: var(--bg-soft); border-bottom: 1px solid var(--line-strong); }

/* Lists */
.list { margin: 12px 0 20px; padding-left: 22px; }
.list li { margin-bottom: 6px; }

/* CTA */
.cta { display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.cta:hover { background: var(--brand-dark); }

/* FAQ */
.faq { margin: 14px 0 24px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style-position: inside; }
.faq summary:hover { color: var(--brand-dark); }
.faq-a { padding: 2px 16px 14px; color: var(--ink); }

/* Disclosures */
.compliance { margin-top: 38px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.compliance h2 { font-size: 1.1rem; margin: 0 0 10px; }
.compliance p { font-size: 0.92rem; color: #3d4c59; }

/* Partner / affiliate */
.partner-block { margin: 30px 0 10px; background: var(--bg-warm); border: 1px solid #f0dcc4; border-radius: var(--radius); padding: 18px 20px; }
.partner-block h2 { margin-top: 0; font-size: 1.15rem; }
.affiliate-note { margin-top: 8px; }

/* Guide intro */
.guide-intro { margin: 6px 0 20px; border-left: 3px solid var(--brand); padding-left: 16px; }
.guide-intro p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { margin-top: 52px; background: #0f1b24; color: #c7d3dd; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; padding-top: 38px; padding-bottom: 26px; }
.site-footer h2 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dbe5ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #22303c; padding-top: 20px; padding-bottom: 30px; font-size: 0.84rem; color: #93a5b4; }
.site-footer .legal a { color: #c7d3dd; }

/* Small screens */
@media (max-width: 640px) {
  .stat-table th { width: 45%; }
  .site-header nav { font-size: 0.9rem; }
  .cta { display: block; text-align: center; }
}
