:root {
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #20262c;
  --muted: #62686e;
  --navy: #1f2933;
  --accent: #9b3f2f;
  --line: #d8d5ce;
  --line-dark: #aaa69d;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus { left: 0; }

/* ---------- header ---------- */

header {
  background: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.brand-domain {
  color: var(--muted);
  font-size: .84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .9rem;
}

.nav-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 62px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: 64px;
  align-items: end;
}

.hero-narrow { padding: 62px 0 44px; }

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, .count, .survey-number {
  font-family: var(--serif);
  color: var(--navy);
}

h1 {
  max-width: 800px;
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero-narrow h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }

.lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

.text-link.secondary {
  color: var(--muted);
  border-bottom-color: var(--line-dark);
}

/* ---------- survey / stat box ---------- */

.survey, .survey-box {
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line-dark);
  padding: 19px 0 18px;
}

.survey-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.count, .survey-number {
  margin: 0;
  font-size: 4.4rem;
  line-height: .95;
  font-weight: 700;
}

.survey-text, .survey p:last-of-type {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.survey-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- sections ---------- */

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 660px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.principle {
  padding: 26px 28px 18px 0;
  border-right: 1px solid var(--line);
}

.principle + .principle { padding-left: 28px; }

.principle:last-child {
  border-right: 0;
  padding-right: 0;
}

.principle-label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.principle h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.principle .text-link {
  margin-top: 12px;
  font-size: .88rem;
}

/* ---------- roadmap ---------- */

.roadmap { border-top: 1px solid var(--line-dark); }

.roadmap-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.roadmap-row:last-child { border-bottom-color: var(--line-dark); }

.roadmap-title {
  color: var(--navy);
  font-weight: 700;
}

.roadmap-description {
  margin: 0;
  color: var(--muted);
}

.notice {
  margin-top: 34px;
  padding: 18px 0 0;
  border-top: 1px solid var(--accent);
  color: var(--muted);
  font-size: .92rem;
}

.notice strong { color: var(--ink); }

/* ---------- institution directory ---------- */

.directory { padding: 62px 0 72px; }

.directory-heading {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 42px;
  margin-bottom: 30px;
}

.directory-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.directory-heading p {
  max-width: 650px;
  margin: 5px 0 0;
  color: var(--muted);
}

.institution-list { border-top: 1px solid var(--line-dark); }

.institution {
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
  animation: rise .45s both;
  animation-delay: calc(var(--order) * 55ms);
  transition: padding-left .2s ease;
}

.institution:last-child { border-bottom-color: var(--line-dark); }
.institution:hover { padding-left: 8px; }

.institution h2, .institution h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.3rem, 2.2vw, 1.68rem);
  line-height: 1.2;
  font-weight: 700;
}

.institution h2 a, .institution h3 a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.institution h2 a:hover, .institution h3 a:hover { border-bottom-color: var(--navy); }

.status {
  display: inline-block;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.institution-detail p {
  margin: 0 0 15px;
  color: var(--muted);
}

.channel {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.official-link {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

.official-link.secondary {
  color: var(--muted);
  border-bottom-color: var(--line-dark);
}

.method {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--accent);
  color: var(--muted);
  font-size: .9rem;
}

.method strong { color: var(--ink); }
.method p { margin: 0 0 10px; }
.method p:last-child { margin-bottom: 0; }

/* ---------- article pages ---------- */

.article {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 60px;
  padding: 54px 0 70px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 28px;
  border-top: 3px solid var(--navy);
  padding-top: 14px;
  font-size: .9rem;
}

.toc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.prose {
  max-width: 720px;
  font-size: 1.04rem;
}

.prose > :first-child { margin-top: 0; }

.prose h2 {
  margin: 46px 0 14px;
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin: 30px 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
  scroll-margin-top: 24px;
}

.prose p { margin: 0 0 17px; }

.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.prose a:hover { border-bottom-color: var(--navy); }

.prose strong { color: var(--ink); }

.prose table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: .95rem;
}

.prose th, .prose td {
  padding: 11px 14px 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose thead th {
  color: var(--navy);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-dark);
}

.prose td:last-child, .prose th:last-child { padding-right: 0; }

.callout {
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--accent);
  color: var(--muted);
  font-size: .94rem;
}

.callout strong { color: var(--ink); }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }

.keyfact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.keyfact div {
  padding: 18px 20px 18px 0;
  border-right: 1px solid var(--line);
}

.keyfact div:last-child { border-right: 0; }

.keyfact dt, .keyfact .k {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.keyfact dd, .keyfact .v {
  margin: 0;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.keyfact small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 400;
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type { border-top: 1px solid var(--line-dark); }

.faq-item h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.3;
}

.faq-item p { margin: 0 0 12px; color: var(--muted); }
.faq-item p:last-child { margin-bottom: 0; }

.meta-line {
  margin: 0 0 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.related {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.related p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.related a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.related a:hover { text-decoration: underline; }

.related span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

.breadcrumb {
  padding: 16px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover { border-bottom-color: var(--muted); }

/* ---------- contact + footer ---------- */

.contact {
  padding: 42px 0 52px;
  background: var(--navy);
  color: #f7f5ef;
  border-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.contact h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact p { margin: 0; color: #ccd1d5; }

.contact-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 3px;
  white-space: nowrap;
}

footer {
  padding: 30px 0 36px;
  background: var(--paper);
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 32px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .73rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li { margin-bottom: 6px; }

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-grid a:hover { border-bottom-color: var(--muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .section-heading,
  .directory-heading,
  .institution,
  .contact-grid,
  .article {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 40px; }
  .institution { gap: 14px; }
  .article { gap: 34px; padding-top: 34px; }

  .toc {
    position: static;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding-bottom: 12px;
  }

  .toc li:last-child { border-bottom: 0; }

  .principles { grid-template-columns: 1fr; }

  .principle,
  .principle + .principle,
  .principle:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roadmap-row { grid-template-columns: 1fr; gap: 7px; }
  .keyfact div { border-right: 0; border-bottom: 1px solid var(--line); }
  .keyfact div:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .nav-links { gap: 16px; font-size: .84rem; }
  .nav-links a.nav-extra { display: none; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .brand-domain { display: none; }
  .hero { padding-top: 48px; }
  h1 { font-size: 2.4rem; }
  .method { grid-template-columns: 1fr; gap: 6px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { padding: 4px 0; border-bottom: 0; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose td::before { content: attr(data-label) " "; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .institution { animation: none; transition: none; }
}
