/* National Hearing Institute — shared stylesheet */

:root {
  --teal: #0f3d4c;
  --teal-dark: #0a2c38;
  --teal-soft: #eaf6f8;
  --bg: #f8fafc;
  --ink: #1f2937;
  --muted: #475569;
  --line: #e5e7eb;
  --card: #ffffff;
  --accent: #b45309;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.container {
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--teal);
  color: white;
  padding: 22px 20px;
  border-bottom: 4px solid var(--teal-dark);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ec5cf;
  margin-top: 2px;
}
nav.primary a {
  color: white;
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
}
nav.primary a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, var(--teal-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  padding: 4px 10px;
  background: rgba(15, 61, 76, 0.08);
  border-radius: 999px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 820px;
}
.hero p.lede {
  font-size: 20px;
  max-width: 760px;
  color: var(--muted);
}
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.badge {
  background: white;
  border: 1px solid #dbeafe;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

/* Sections */
section { padding: 60px 20px; }
section.tight { padding: 40px 20px; }

h2 { font-size: 32px; margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; color: #111827; }
h4 { font-size: 17px; margin: 24px 0 6px; color: var(--teal); }

p, ul, ol { color: var(--ink); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

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

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(15, 61, 76, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 61, 76, 0.09); }
.card h3 { margin-top: 0; }
.card p { margin: 8px 0 14px; color: var(--muted); font-size: 16px; }
.card .meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.card a.read {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
}

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 22px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
th { background: var(--teal); color: white; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fcfdfd; }

/* Callouts */
.callout {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--ink);
}
.callout strong { color: var(--teal); }

.cta {
  background: var(--teal);
  color: white;
  border-radius: 18px;
  padding: 36px;
  margin-top: 24px;
}
.cta h2, .cta h3 { color: white; margin-top: 0; }
.cta p { color: #d6e6ea; }
.cta a { color: white; }

/* Article body */
.article-body { font-size: 18px; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 28px; margin-top: 44px; }
.article-body h3 { font-size: 20px; margin-top: 32px; color: #111827; }
.article-body blockquote {
  margin: 28px 0;
  padding: 6px 24px;
  border-left: 4px solid var(--teal);
  color: var(--muted);
  font-style: italic;
}

/* Article meta line */
.byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 30px 0;
}
.byline span strong { color: var(--ink); }

/* References */
.refs {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.refs ol { padding-left: 22px; }
.refs li { margin-bottom: 10px; }

/* Footer */
footer {
  background: #0a1620;
  color: #cbd5e1;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: 60px;
}
footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
footer h4 {
  color: white;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 16px;
  margin: 0 0 10px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: #9ec5cf; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
footer .disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid #1f2d3a;
  padding-top: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: #6b8696;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 56px 18px 44px; }
  .hero h1 { font-size: 34px; }
  .hero p.lede { font-size: 18px; }
  section { padding: 44px 18px; }
  h2 { font-size: 26px; }
  nav.primary a { margin-left: 14px; font-size: 14px; }
  .article-body { font-size: 17px; }
}
