:root {
  --ink: #17242f;
  --muted: #5e6b74;
  --soft: #eef2f4;
  --paper: #ffffff;
  --panel: #f7f8f6;
  --line: #d9e0e3;
  --navy: #12324a;
  --blue: #2367a2;
  --teal: #0f766e;
  --green: #577d45;
  --gold: #a36a15;
  --wine: #864d5b;
  --shadow: 0 14px 38px rgba(18, 35, 47, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.utility-strip {
  border-bottom: 1px solid #dde5e8;
  background: #f7f9fa;
  color: #55636c;
  font-size: 0.82rem;
}

.utility-wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.utility-wrap span {
  font-weight: 750;
}

.utility-wrap a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.utility-wrap a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-primary:hover {
  background: #0b2437;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.intro-section {
  padding: 42px 0 34px;
  background:
    linear-gradient(180deg, #f5f8fa 0%, #fff 84%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-kicker {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.06rem;
}

.lede {
  max-width: 760px;
  margin: 0;
  color: #3f515d;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.protected-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 840px;
  padding: 18px;
  border: 1px solid #a8c7dd;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  background: #f1f7fb;
  box-shadow: 0 8px 24px rgba(18, 35, 47, 0.07);
}

.protected-callout h2 {
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

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

.callout-label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-visual {
  margin: 0;
}

.intro-visual img {
  display: block;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.resource-section {
  padding: 56px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.resource-tools {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.search-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 103, 162, 0.13);
}

.search-input-wrap svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-button {
  min-height: 36px;
  border: 1px solid #c9d3d7;
  border-radius: var(--radius);
  padding: 7px 11px;
  background: #fff;
  color: #3f515d;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
}

.results-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.text-button:hover {
  color: var(--navy);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 35, 47, 0.04);
}

.resource-card:hover {
  border-color: #b5c3c9;
  box-shadow: var(--shadow);
}

.resource-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}

.category-tag,
.access-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 850;
}

.category-tag {
  color: #fff;
  background: var(--navy);
}

.category-tag[data-category="Endocrinology & Diabetes"] {
  background: var(--teal);
}

.category-tag[data-category="Evidence & Literature"] {
  background: var(--blue);
}

.category-tag[data-category="Drugs & Safety"] {
  background: var(--wine);
}

.category-tag[data-category="Public Health"] {
  background: var(--green);
}

.category-tag[data-category="Practice & Policy"] {
  background: var(--gold);
}

.access-tag {
  color: #53616a;
  background: var(--soft);
  text-align: right;
}

.resource-card h3 {
  margin-bottom: 9px;
}

.resource-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  text-decoration: none;
  font-weight: 850;
}

.resource-link:hover {
  color: var(--navy);
}

.empty-state {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.starts-section {
  padding: 62px 0;
  background: #102b3d;
  color: #fff;
}

.compact-heading {
  margin-bottom: 22px;
}

.starts-section .eyebrow {
  color: #9ed5cf;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.start-grid article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.start-number {
  display: block;
  margin-bottom: 28px;
  color: #9ed5cf;
  font-size: 0.78rem;
  font-weight: 900;
}

.start-grid p {
  color: #c9d5dc;
}

.start-grid button {
  margin-top: auto;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #fff;
  color: #102b3d;
  cursor: pointer;
  font-weight: 850;
}

.start-grid button:hover {
  background: #dce9f4;
}

.standards-section {
  padding: 68px 0;
  background: #f6f6f1;
}

.standards-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
}

.standards-list {
  display: grid;
  gap: 14px;
}

.standards-list article {
  padding: 0 0 14px;
  border-bottom: 1px solid #d7d7ce;
}

.standards-list article:last-child {
  border-bottom: 0;
}

.standards-list h3 {
  margin-bottom: 7px;
}

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

.site-footer {
  padding: 42px 0 24px;
  background: #0c1f2d;
  color: #dce6ea;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand .brand-mark {
  background: #dce6ea;
  color: #0c1f2d;
}

.footer-brand .brand-subtitle,
.footer-grid p,
.footer-bottom {
  color: #9fb2bd;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: start;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .intro-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    max-width: 620px;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open {
    display: flex;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .intro-section {
    padding-top: 28px;
  }

  .utility-wrap {
    min-height: 42px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .resource-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .results-row,
  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-card,
  .start-grid article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Compatibility styles for the current homepage markup.
   Matches index.html (hero / pathways / about / internal tools)
   and fixes the search icon that rendered as a black circle.
   ============================================================ */

.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.nav-button:hover { background: var(--navy); color: #fff; }

.priority-link {
  padding: 20px 0;
  background: #f1f7fb;
  border-bottom: 1px solid var(--line);
}
.priority-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #a8c7dd;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 35, 47, 0.07);
  text-decoration: none;
  color: var(--ink);
}
.priority-link-box:hover { border-color: var(--blue); }
.priority-link-label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.priority-link-title { display: block; font-weight: 800; }
.priority-link-action {
  flex: none;
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #f5f8fa 0%, #fff 84%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 34px;
  align-items: center;
}
.hero-domain {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 640px;
  margin: 0 0 22px;
  color: #3f515d;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.button-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.hero-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-label {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}
.hero-panel a:last-child { margin-bottom: 0; }
.hero-panel a:hover { border-color: var(--blue); color: var(--blue); }

/* FIX: search icon was unsized with a default black fill -> big black ball */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 103, 162, 0.13);
}
.search-box svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.featured-section { padding: 62px 0; background: #102b3d; color: #fff; }
.featured-section .eyebrow { color: #9ed5cf; }
.featured-section h2, .light-heading h2 { color: #fff; }
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pathway-grid article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}
.pathway-number {
  display: block;
  margin-bottom: 20px;
  color: #9ed5cf;
  font-size: 1.1rem;
  font-weight: 900;
}
.pathway-grid p { color: #c9d5dc; }
.pathway-grid a { margin-top: auto; color: #9ed5cf; font-weight: 850; text-decoration: none; }
.pathway-grid a:hover { color: #fff; }

.about-section { padding: 68px 0; background: #f6f6f1; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
}
.about-copy p { margin: 0 0 14px; color: var(--muted); }
.about-copy .updated { color: var(--ink); font-weight: 750; }

@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-link-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
