@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.v5-1-0.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-italic.v5-1-0.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* NFID Foundation — Design System & Theme Tokens (Design Work Order D1 + Review Corrections + L1)
   Contrast tokens:
   --teal: #01727F for all teal text and fills (links, labels, status chips, buttons, step circles, rules)
   --muted: #5F6B7A for all muted text
   --teal-bright: #028599 for decoration only */

:root {
  --ink: #1A2332;
  --ink-2: #2D374B;
  --body: #51596C;
  --muted: #5F6B7A;
  --teal: #01727F;
  --teal-bright: #028599;
  --teal-tint: #EEF6F7;
  --band: #F5F7FA;
  --rule: #E3E7EB;
  --navy: #2D374B;
  --on-navy: #D5DBE3;
  --radius: 13px;
  --btn-radius: 4px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Type scale */
.t-display { font-size: 60px; line-height: 64px; font-weight: 700; letter-spacing: -0.022em; }
.t-title   { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.02em; }
.t-h2      { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.018em; }
.t-h3      { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.t-lead    { font-size: 20px; line-height: 30px; font-weight: 400; color: var(--ink-2); }
.t-reading { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.t-small   { font-size: 14px; line-height: 20px; color: var(--muted); }
.t-label   { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--teal); }
.measure   { max-width: 520px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sec { padding: 112px 0; }
.sec-tight { padding: 72px 0; }
.band { background: var(--band); }
.sec-head { margin-bottom: 48px; }
.sec-head .t-lead, .sec-head .t-reading { margin-top: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.wordmark b { font-weight: 700; }
.nav { display: flex; gap: 36px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.header-actions a.text { color: var(--ink-2); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 600; font-size: 15px; line-height: 20px; padding: 12px 20px; border-radius: var(--btn-radius); text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #CBD2DA; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The paper as an object: the one place with depth */
.paper-object { background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(26,35,50,.06), 0 28px 56px -20px rgba(26,35,50,.30); }

/* Home: hero */
.hero { padding: 104px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.hero .t-lead { margin-top: 24px; max-width: 520px; }
.hero-object { justify-self: end; width: 440px; margin-bottom: -200px; position: relative; z-index: 2; }
.after-hero { padding-top: 248px; }

/* Home: argument with a turn */
.argument { display: grid; grid-template-columns: repeat(3, 1fr); }
.argument > div { padding: 28px 32px 0 0; border-top: 1px solid #D5DBE3; }
.argument > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.argument h3 { margin-bottom: 12px; }
.argument p { margin: 0; }
.argument .turn { border-top: 3px solid var(--teal); padding-top: 26px; }
.argument .turn p { color: var(--ink-2); }

/* Home: steps beside the flow figure */
.steps-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.plate { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.plate figcaption { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.plate figcaption b { color: var(--ink-2); font-weight: 600; }
figure { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps-row li { padding-left: 0; padding-top: 56px; margin: 0; }
.steps-row li::after { content: ""; position: absolute; top: 16px; left: 44px; right: -28px; height: 1px; background: #CBD2DA; }
.steps-row li:last-child::after { display: none; }
.coda { margin-top: 40px; font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 560px; }

/* Home: four contributions */
.layer-plate { max-width: 960px; margin: 0 auto 48px; }
.figures .plate img, .layer-plate img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; background: #fff; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 16px; }
.card a { font-weight: 600; font-size: 15px; text-decoration: none; }

/* Home: three modalities */
.modalities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.modalities .card { display: flex; flex-direction: column; }
.modalities .card.scope { background: var(--teal-tint); border-color: rgba(1,114,127,.35); }
.modalities .scope .t-label { margin-bottom: 8px; }

/* Home: standards rows */
.std-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 56px; margin: 0; }
.std-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.std-list dt { color: var(--ink); font-weight: 600; }
.std-list dd { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.after-list { margin-top: 28px; }
.after-list a { font-weight: 600; text-decoration: none; }

/* Home: paper band */
.paper-band .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.paper-band .t-lead { margin: 12px 0 16px; }
.series-mini { margin-top: 40px; padding-top: 28px; border-top: 1px solid #E3E7EB; max-width: 620px; }
.series-mini .t-small { margin-top: 4px; margin-bottom: 0; }
.series-mini ol { list-style: none; margin: 12px 0 0; padding: 0; }
.series-mini li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid #E3E7EB; }
.series-mini li .t-small { margin: 0; }
.series-mini .title { font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.series-mini a.title:hover { color: var(--teal); text-decoration: underline; }
.series-mini .byline-mini { font-size: 15px; line-height: 22px; color: #51596C; }
.series-mini .all { display: inline-block; font-weight: 600; margin-top: 16px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-weight: 400; font-size: 24px; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; margin: 0; }

/* CTA and footer */
.cta { background: var(--navy); color: var(--on-navy); text-align: left; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 1px solid rgba(255,255,255,.12); padding: 64px 0 40px; font-size: 14px; line-height: 22px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }

/* Paper page */
.paper-title { padding: 80px 0 0; }
.paper-title .wrap { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: start; }
.paper-title .t-title { margin-top: 12px; }
.facts { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 16px; margin: 32px 0 12px; }
.facts dd { white-space: nowrap; }
.facts dt { font-size: 14px; line-height: 20px; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.facts .fact-sub { display: block; font-weight: 400; color: var(--muted); }
.paper-title picture { width: 300px; justify-self: end; margin-bottom: -96px; position: relative; z-index: 2; }
.paper-title .paper-object { width: 300px; justify-self: end; margin-bottom: -96px; position: relative; z-index: 2; }
.paper-title picture .paper-object { margin-bottom: 0; }
.paper-title .t-small { padding-bottom: 72px; }
.paper-body { padding: 96px 0 112px; }
.paper-body .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.paper-body h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.012em; margin: 48px 0 16px; }
.paper-body h2:first-child { margin-top: 0; }
.p-abstract p { max-width: 520px; font-size: 18px; line-height: 30px; color: var(--ink-2); }
.audiences { margin: 0; padding: 0; list-style: none; }
.audiences li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.audiences b { color: var(--ink); font-weight: 600; display: block; }
.contents { columns: 2; column-gap: 40px; margin: 0; padding-left: 22px; color: var(--ink-2); }
.contents li { margin-bottom: 6px; break-inside: avoid; }
.appendices { margin-top: 12px; }
.form-card { position: sticky; top: 24px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: 0 12px 32px -20px rgba(26,35,50,.25); }
.form-card h3 { margin-bottom: 6px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 20px 0 6px; }
.form-card input[type=email], .form-card input[type=text], .form-card select { width: 100%; height: 44px; border: 1px solid #CBD2DA; border-radius: 6px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; }
.form-card .btn { width: 100%; margin-top: 16px; padding: 13px 20px; }
.form-card details { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.form-card summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--teal); }
.form-card details label { margin-top: 16px; }
.form-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); margin-top: 18px; }
.form-card .check input { margin-top: 4px; }
.form-card .consent { margin-top: 14px; }
.figures { padding: 0 0 112px; }
.figures .plate { max-width: 1000px; margin: 0 auto 32px; padding: 36px; }
.figures .plate a { display: block; }
.fig-meta { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-top: 20px; }
.fig-meta p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; max-width: 560px; }
.fig-meta p b { font-weight: 600; color: var(--ink); }
.fig-meta .dl { white-space: nowrap; font-size: 14px; }
.fig-meta .dl a { text-decoration: none; font-weight: 600; margin-left: 16px; }
.cite { border-top: 1px solid var(--rule); padding-top: 48px; }
.cite pre { white-space: pre-wrap; background: var(--band); border-radius: 8px; padding: 16px 20px; font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* Article page: 560px text column, 19/32 body */
.article { padding: 72px 0 112px; }
.article .col { max-width: 560px; margin: 0 auto; padding: 0; }
.series-line { display: flex; align-items: center; gap: 14px; }
.ticks { display: flex; gap: 4px; }
.ticks i { width: 18px; height: 4px; border-radius: 2px; background: var(--rule); display: block; }
.ticks i.on { background: var(--teal); }
.article h1 { font-size: 44px; line-height: 50px; letter-spacing: -0.02em; margin-top: 20px; }
.standfirst { font-size: 22px; line-height: 32px; color: var(--ink-2); margin-top: 20px; }
.byline { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline b { color: var(--ink); font-weight: 600; }
.article .body { margin-top: 40px; }
.article .body p { font-size: 19px; line-height: 32px; color: var(--ink-2); margin-bottom: 24px; }
.end-card { margin-top: 56px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--band); }
.end-card h3 { margin-bottom: 6px; }
.prevnext { display: flex; justify-content: space-between; margin-top: 32px; font-size: 15px; }
.prevnext span { color: var(--muted); }
.prevnext a { font-weight: 600; text-decoration: none; }

/* Phone */
@media (max-width: 860px) {
  .nav, .header-actions a.text { display: none; }
  .t-display { font-size: 40px; line-height: 44px; }
  .t-title { font-size: 34px; line-height: 40px; }
  .t-h2 { font-size: 30px; line-height: 36px; }
  .sec { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .article .col { padding: 0 20px; }
  .hero { padding-top: 56px; }
  .hero .wrap, .steps-grid, .paper-band .wrap, .paper-title .wrap, .paper-body .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-object { justify-self: start; width: 64%; margin-bottom: -120px; }
  .after-hero { padding-top: 168px; }
  .argument, .steps-row { grid-template-columns: 1fr; gap: 28px; }
  .steps-row li::after { display: none; }
  .facts { flex-wrap: wrap; gap: 20px 32px; }
  .argument > div + div { padding-left: 0; border-left: 0; }
  .argument > div { padding-right: 0; }
  .cards-2, .modalities { grid-template-columns: 1fr; }
  .std-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .paper-main { display: contents; }
  .p-abstract { order: 1; } .paper-body aside { order: 2; } .p-rest { order: 3; }
  .paper-body .wrap { display: flex; flex-direction: column; }
  .std-list dd { white-space: normal; text-align: right; }
  .paper-band .paper-object { width: 160px; }
  .paper-title picture { justify-self: start; width: 56%; margin-bottom: -80px; }
  .paper-title .paper-object { justify-self: start; width: 56%; margin-bottom: -80px; }
  .paper-title picture .paper-object { width: 100%; margin-bottom: 0; }
  .form-card { position: static; }
  .figures .plate { padding: 16px; }
  .fig-meta { flex-direction: column; gap: 8px; }
  .fig-meta .dl a { margin: 0 16px 0 0; }
  .contents { columns: 1; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .article h1 { font-size: 34px; line-height: 40px; }
  .standfirst { font-size: 20px; line-height: 30px; }
  .end-card { grid-template-columns: 80px 1fr; }
}

@media (max-width: 480px) {
  .header-actions > .btn {
    display: none;
  }
}
