*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:#0B4F6C; --teal-mid:#0F6D96; --navy:#0D2137; --navy-deep:#081624;
  --amber:#E8A838; --amber-lt:#FBF0D8; --slate:#8CA9B8; --offwhite:#F7F9F8; --white:#FFFFFF;
  --text-mid:#3D5A6E; --line:#E2EBF0; --red:#B23A3A; --red-lt:#FBEAEA; --green:#2E7D5B;
  --radius-sm:6px; --radius:12px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; color: var(--navy); background: var(--offwhite); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-mid); }

/* nav */
nav.site { position: sticky; top: 0; z-index: 10; background: rgba(13,33,55,.97); height: 60px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
nav.site .brand { font-family: 'DM Serif Display', Georgia, serif; color: #fff; text-decoration: none; font-size: 1.05rem; }
nav.site .brand span { color: var(--amber); }
nav.site .links { display: flex; gap: 1.4rem; }
nav.site .links a { color: var(--slate); text-decoration: none; font-size: .85rem; }
nav.site .links a:hover { color: #fff; }

/* header */
header.article-head { background: var(--navy); color: #fff; padding: 3.5rem 1.5rem 3rem; }
header.article-head .inner { max-width: 760px; margin: 0 auto; }
.crumbs { font-size: .8rem; color: var(--slate); margin-bottom: 1.4rem; }
.crumbs a { color: var(--slate); }
.kicker { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: .8rem; }
header.article-head h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.18; margin-bottom: 1rem; }
header.article-head .dek { color: #C9D8E0; font-size: 1.08rem; font-weight: 300; max-width: 640px; }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; font-size: .85rem; color: var(--slate); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid rgba(232,168,56,.5); }
.byline strong { color: #fff; font-weight: 500; display: block; }

/* body */
main.article { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
main.article h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.65rem; line-height: 1.25; margin: 2.6rem 0 .8rem; color: var(--navy); }
main.article h3 { font-size: 1.08rem; font-weight: 600; margin: 1.8rem 0 .5rem; color: var(--navy); }
main.article p { margin-bottom: 1rem; color: #24394B; }
main.article ul, main.article ol { margin: 0 0 1.2rem 1.3rem; color: #24394B; }
main.article li { margin-bottom: .45rem; }
main.article strong { color: var(--navy); }

.callout { background: var(--amber-lt); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .95rem; }
.callout.red { background: var(--red-lt); border-color: var(--red); }
.callout.teal { background: #E7F1F5; border-color: var(--teal); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

table.data { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: #EEF4F7; font-weight: 600; color: var(--navy); }
table.data tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

figure.chart { margin: 1.6rem 0 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { font-size: .82rem; color: var(--text-mid); margin-top: .6rem; }

/* phenotype cards */
.pheno { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1rem; margin: 1.4rem 0; }
.pheno-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.pheno-letter { width: 42px; height: 42px; border-radius: 10px; background: var(--teal); color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pheno-head h3 { margin: 0 !important; font-size: 1.15rem !important; }
.pheno-head .sub { font-size: .8rem; color: var(--text-mid); }
.pheno svg { width: 100%; height: 120px; display: block; margin: .3rem 0 .9rem; }
.pheno dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: .35rem 1rem; font-size: .92rem; }
.pheno dt { font-weight: 600; color: var(--navy); }
.pheno dd { color: #24394B; margin-bottom: .3rem; }

/* faq */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: .6rem 0; }
details.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 2.5rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 1.1rem; top: .8rem; color: var(--teal); font-size: 1.2rem; }
details.faq[open] summary::after { content: '–'; }
details.faq .a { padding: 0 1.1rem 1rem; }

.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; padding: .75rem 1.4rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .92rem; }
.btn:hover { background: var(--teal-mid); }
.btn.amber { background: var(--amber); color: var(--navy); }

.refs { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-mid); }
.refs h2 { font-size: 1.1rem !important; margin-top: 0 !important; }
.refs ol { font-size: .82rem; }
.disclaimer { font-size: .82rem; color: var(--text-mid); background: #EEF4F7; border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-top: 2rem; }

/* hub */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.hub-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.hub-card:hover { box-shadow: 0 8px 28px rgba(11,79,108,.1); transform: translateY(-2px); }
.hub-card .ktype { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: .4rem; }
.hub-card h2 { margin: 0 0 .4rem !important; font-size: 1.3rem !important; }
.hub-card p { margin: 0 !important; font-size: .95rem; }

footer.site { background: var(--navy-deep); color: var(--slate); font-size: .8rem; padding: 2rem 1.5rem; text-align: center; }
footer.site a { color: var(--slate); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  nav.site .links a:not(.home) { display: none; }
  .pheno dl { grid-template-columns: 1fr; }
  .pheno dt { margin-top: .4rem; }
}

@media print {
  nav.site, footer.site, .no-print, .crumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  header.article-head { background: #fff; color: var(--navy); padding: 0 0 1rem; border-bottom: 2px solid var(--teal); }
  header.article-head .dek, .byline, .crumbs { color: var(--text-mid); }
  .byline strong { color: var(--navy); }
  main.article { padding: 1rem 0; max-width: none; }
  details.faq { break-inside: avoid; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
  details.faq summary { padding: .6rem 0 .2rem; }
  details.faq summary::after { display: none; }
  details.faq .a { padding: 0 0 .6rem; }
  .callout, table.data, .pheno { break-inside: avoid; }
  a { color: var(--navy); text-decoration: none; }
  @page { margin: 16mm 15mm; }
}
