/* Sampo public website. FNA brand values; see SPEC.md, "Design". */

@font-face { font-family: "Exo"; font-weight: 400; font-display: swap; src: url("fonts/ExoRegular.ttf") format("truetype"); }
@font-face { font-family: "Exo"; font-weight: 500; font-display: swap; src: url("fonts/ExoMedium.ttf") format("truetype"); }

:root {
  --red: #ED4021;
  --red-dark: #C9341A;
  --navy: #181D2F;
  --dark-blue: #32475F;
  --grey: #748392;
  --ice: #EDF1F9;
  --ground: #F5F6FA;
  --white: #FFFFFF;
  --line: #DDE3EC;
  --magenta: #EB008C;
  --magenta-2: #ED75A5;
  --magenta-3: #F8CEDE;
  --head: "Exo", "Segoe UI", system-ui, sans-serif;
  --body: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--navy); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--red); }
.lead { font-size: 20px; color: var(--dark-blue); max-width: 46ch; }
.muted { color: var(--grey); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(245, 246, 250, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { height: 28px; width: auto; }
.brand .product { font-family: var(--head); font-size: 22px; font-weight: 500; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a, .signin { color: var(--navy); text-decoration: none; font-size: 16px; }
.nav-links a:hover, .signin:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 12px 24px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 8px 18px; font-size: 15px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; color: var(--dark-blue); }
.section-head .eyebrow { margin-top: 0; color: var(--red); }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 72px 64px 0; overflow: hidden; position: relative; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% -10%, rgba(235, 0, 140, 0.22), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(237, 64, 33, 0.18), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero .eyebrow { color: var(--magenta-2); }
.hero h1 { margin-top: 14px; max-width: 17ch; }
.hero .lead { color: #C9D2E3; margin-top: 22px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-shot { position: relative; margin-top: 56px; }
.hero-shot img { border-radius: 14px 14px 0 0; border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35); }
.shot-caption { font-size: 14px; color: var(--grey); margin-top: 12px; }
.hero-caption { position: relative; color: #8C9AB0; padding: 14px 0 22px; font-size: 14px; }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figure { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.figure .num { font-family: var(--head); font-weight: 500; font-size: 46px; line-height: 1; color: var(--red); }
.figure .num small { font-size: 22px; }
.figure p { color: var(--dark-blue); }
.figure .src { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--grey); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--dark-blue); background: var(--ice); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--dark-blue); }

.does { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.does-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.does-card h3 { margin-bottom: 16px; }
.does-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.does-card li { position: relative; padding-left: 30px; color: var(--dark-blue); }
.does-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.does-card.not li::before { background: transparent; border: 2px solid var(--grey); }
.does-card li strong { color: var(--navy); font-weight: 600; }

/* Gridlock diagram */
.diagram { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.diagram figcaption { font-size: 14px; color: var(--grey); margin-top: 14px; }

/* Screens band */
.band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 72px 64px; }
.band .section-head .eyebrow { color: var(--magenta-2); }
.band .section-head p { color: #C9D2E3; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { font: inherit; font-size: 15px; font-weight: 600; color: #C9D2E3; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.screen img { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); }
.screen figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: #C9D2E3; font-size: 15px; }
.screen figcaption .tag { background: rgba(255, 255, 255, 0.1); color: #C9D2E3; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--head); font-weight: 500; font-size: 30px; color: var(--red); line-height: 1; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--dark-blue); }
.more { margin-top: 28px; font-weight: 600; }

/* Paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.path .eyebrow { color: var(--grey); }
.path p { color: var(--dark-blue); }
.path ul { margin: 0; padding-left: 20px; color: var(--dark-blue); }
.path .btn { align-self: flex-start; margin-top: auto; }
.path-bar { height: 4px; width: 56px; border-radius: 2px; background: var(--red); }

/* Origin */
.origin { background: var(--ice); border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; padding: 32px 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.origin p { color: var(--dark-blue); max-width: 70ch; }
.origin p + p { margin-top: 10px; }

/* CTA */
.cta { text-align: center; }
.cta-panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 64px 32px; }
.cta-panel p { color: #C9D2E3; margin: 16px auto 28px; max-width: 56ch; }
.cta-panel .hero-actions { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { padding: 48px 0 56px; color: var(--grey); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; background: linear-gradient(var(--line), var(--line)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
.foot img { height: 24px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--dark-blue); text-decoration: none; }
.foot a:hover { color: var(--red); }

/* Form page */
.page-head { padding: 64px 0 24px; }
.page-head .lead { margin-top: 16px; }
.page-head .lead.lead-full { max-width: none; }
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding-bottom: 88px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--navy); }
.field .hint { font-size: 13px; color: var(--grey); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { font: inherit; font-size: 16px; color: var(--navy); background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 64, 33, 0.15); background: var(--white); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--ground); }
.choice:has(input:checked) { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(237, 64, 33, 0.12); }
.choice input { margin-top: 4px; accent-color: var(--red); }
.choice strong { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.choice .desc { display: block; font-size: 14px; font-weight: 400; color: var(--grey); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--dark-blue); }
.consent input { margin-top: 5px; accent-color: var(--red); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.aside { display: grid; gap: 20px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.aside-card h3 { font-size: 18px; margin-bottom: 12px; }
.aside-card ol { margin: 0; padding-left: 20px; color: var(--dark-blue); }
.aside-card li + li { margin-top: 8px; }
.aside-card p { color: var(--dark-blue); font-size: 15px; }
.aside-card.ice { background: var(--ice); border-color: var(--ice); }
.thanks { display: none; }
.form-card.sent form { display: none; }
.form-card.sent .thanks { display: block; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero benefits */
.hero-grid { grid-template-columns: 1fr; }
.benefits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.benefit h2 { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--magenta-2); }
.benefit .num { font-family: var(--head); font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--white); }
.benefit p { color: #C9D2E3; font-size: 16px; }
.benefit .src { margin-top: auto; padding-top: 6px; font-size: 13px; color: #8C9AB0; }
.hero-caption a { color: #8C9AB0; }
.hero-caption a:hover { color: var(--navy); }

/* Central banks and supervisors */
.system { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 56px 56px 48px; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.system-grid h3 { margin-bottom: 10px; }
.system-grid p { color: var(--dark-blue); font-size: 16px; }

/* Research library */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 40px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; color: var(--dark-blue); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.chip:hover { border-color: var(--red); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lib-section { padding: 0 0 56px; }
.lib-section > h2 { font-size: 28px; }
.lib-intro { color: var(--dark-blue); margin: 10px 0 24px; max-width: 70ch; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.paper { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.paper h3 { font-size: 18px; line-height: 1.35; }
.paper .authors { font-size: 14px; color: var(--grey); margin-top: 6px; }
.paper.featured { padding: 26px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--red); }
.paper.featured p:not(.authors) { color: var(--dark-blue); font-size: 15px; }
.paper-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { font-size: 13px; font-weight: 600; color: var(--grey); }
.lib-list { display: grid; gap: 10px; }
.paper.row { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 18px 24px; }
.paper-action { font-weight: 600; font-size: 15px; white-space: nowrap; }
.tag-fna { background: var(--magenta-3); color: #8A0052; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-inputs { padding: 36px; display: grid; gap: 26px; }
.calc-title { font-size: 20px; }
.calc-field { display: grid; gap: 10px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-label-row label { font-weight: 600; font-size: 15px; color: var(--navy); }
.calc-val { font-family: var(--head); font-weight: 500; font-size: 22px; color: var(--red); white-space: nowrap; }
.calc-label-row select { font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.calc-money { display: flex; align-items: center; gap: 8px; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; max-width: 240px; }
.calc-money:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 64, 33, 0.15); background: var(--white); }
.calc-money input { font-family: var(--head); font-weight: 500; font-size: 26px; color: var(--navy); border: 0; background: transparent; width: 100%; padding: 2px 0; outline: none; }
.calc-sym, .calc-unit { font-family: var(--head); font-size: 22px; color: var(--grey); }
.calc-hint { font-size: 13px; color: var(--grey); }
.calc input[type=range] { width: 100%; accent-color: var(--red); height: 28px; margin: 0; }
.calc-results { background: var(--navy); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.calc-r-label { font-family: var(--head); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--magenta-2); }
.calc-r-num { font-family: var(--head); font-weight: 500; font-size: 34px; line-height: 1.15; }
.calc-r-main { font-size: 46px; }
.calc-bars { display: grid; gap: 10px; margin-top: 4px; }
.calc-bar-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: 14px; color: #C9D2E3; }
.calc-bar { height: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 7px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; border-radius: 7px; background: var(--grey); transition: width .2s; }
.calc-bar-row:last-child .calc-bar i { background: var(--magenta); }
.calc-results .btn { align-self: flex-start; margin-top: auto; }
.calc-method { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.calc-method article { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.calc-method h3 { font-size: 18px; margin-bottom: 8px; }
.calc-method p { color: var(--dark-blue); font-size: 15px; }

/* Why FNA and partners */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why article { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; border-top: 4px solid var(--red); }
.why h3 { font-size: 18px; margin-bottom: 10px; }
.why p { color: var(--dark-blue); font-size: 15px; }
/* FNA project experience */
.partners { margin-top: 40px; text-align: center; scroll-margin-top: 96px; }
.partners-title { font-family: var(--head); font-weight: 500; font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.partners-intro { max-width: 740px; margin: 0 auto; color: var(--dark-blue); }
.institution-logos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.institution-logos li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-family: var(--head); font-size: 14px; line-height: 1.35; color: var(--navy); }
.institution-logos img { width: 64px; height: 64px; object-fit: contain; }
.project-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; text-align: left; }
.project-cards article { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.project-cards h3 { font-size: 20px; margin-bottom: 12px; }
.project-cards p { color: var(--dark-blue); font-size: 15px; line-height: 1.55; }
.project-cards .project-label { font-family: var(--head); color: var(--navy); font-size: 14px; margin-bottom: 10px; }
.project-cards a { margin-top: auto; padding-top: 18px; font-size: 14px; }
.project-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.project-identity img { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
.project-identity h3 { margin: 0; }
.partners-other, .experience-note { color: var(--dark-blue); font-size: 14px; margin-top: 22px; }
#experience-h { scroll-margin-top: 96px; }
.cta-panel .cta-eyebrow { color: var(--magenta-2); margin-bottom: 10px; }
.cta-contact { margin: 22px auto 0 !important; font-size: 15px; }
.cta-contact a { color: var(--white); }
.foot span a { color: var(--dark-blue); }

/* Secondary pages */
.sub-section { padding: 56px 0 0; }
.sub-section > h2, .sub-section h2 { font-size: 28px; }
.sub-section.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--head); font-weight: 500; font-size: 14px; background: var(--ice); color: var(--navy); }
.data-table tbody th { font-weight: 600; color: var(--navy); width: 38%; }
.data-table td { color: var(--dark-blue); }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: 0; }
.data-table tr.current td { background: #FFF4F1; }
.data-table tr.current td:first-child { box-shadow: inset 4px 0 0 var(--red); font-weight: 600; color: var(--navy); }
.evidence-table td:first-child { color: var(--navy); white-space: nowrap; }
.keeps { margin-top: 20px; }
.formula { font-family: var(--head); font-weight: 500; font-size: 18px; color: var(--navy); background: var(--ice); border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--dark-blue); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.screen-light img { border-radius: 12px; border: 1px solid var(--line); }
.screen-light figcaption { font-size: 14px; color: var(--grey); margin-top: 10px; }
.draft-note { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: #8A0052; background: var(--magenta-3); border-radius: 999px; padding: 4px 12px; }
.flow-diagram { margin-top: 8px; }
.example-note { color: var(--dark-blue); background: var(--ice); border-radius: 12px; padding: 14px 18px; margin: 32px 0 8px; font-size: 15px; }

/* How it works step blocks */
.step-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--head); font-weight: 500; font-size: 36px; color: var(--red); line-height: 1; }
.step-text h2 { font-size: 28px; margin: 12px 0 14px; }
.step-text p { color: var(--dark-blue); }
.step-text p + p { margin-top: 12px; }
.example { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.ex-tabs { margin-bottom: 14px; }
.ex-tabs .tab { color: var(--dark-blue); border-color: var(--line); background: var(--ground); }
.ex-tabs .tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.example img { border-radius: 10px; border: 1px solid var(--line); }
.example figcaption, .code-caption { font-size: 14px; color: var(--grey); margin-top: 12px; }
.example figcaption code { font-size: 13px; }
.code-label { font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--navy); margin: 4px 0 8px; }
.code-label + .code, .code + .code-label { margin-top: 10px; }
pre.code { margin: 0; background: var(--navy); color: #E8EEF6; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; }
pre.code + .code-label { margin-top: 14px; }
.no-api { padding: 8px 4px; }
.no-api p:not(.code-label) { color: var(--dark-blue); }

/* Paper pages */
.prose-page { max-width: 760px; padding-bottom: 24px; }
.prose-page h2 { font-size: 26px; margin: 40px 0 14px; }
.prose-page h3 { font-size: 20px; margin: 28px 0 10px; }
.prose-page p, .prose-page li { color: var(--dark-blue); }
.prose-page p + p { margin-top: 14px; }
.prose-page ul, .prose-page ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose-page blockquote { margin: 20px 0; padding: 14px 20px; background: var(--ice); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; }
.prose-page blockquote p { color: var(--navy); }
.prose-page code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--ice); padding: 2px 6px; border-radius: 6px; }
.prose-page p > code:only-child { display: block; padding: 12px 16px; white-space: normal; }
.prose-page .table-wrap { margin: 20px 0; }
.prose-page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose-page th, .prose-page td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose-page thead th { background: var(--ice); font-family: var(--head); font-weight: 500; }
.prose-page tr:last-child td { border-bottom: 0; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.paper-foot { padding-bottom: 88px; }

/* Animated system map */
.system-map { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px 32px 22px; }
.sm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 58px; }
.sm-cap { margin: 0; display: grid; gap: 4px; }
.sm-l1 { font-family: var(--head); font-weight: 500; font-size: 19px; color: var(--white); }
.sm-l2 { font-size: 15px; color: #C9D2E3; }
.sm-btn { font: inherit; font-size: 14px; font-weight: 600; color: #C9D2E3; background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: none; }
.sm-btn:hover { color: var(--white); border-color: var(--white); }
.sm-svgwrap svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.sm-group { font-family: var(--head); font-size: 15px; font-weight: 500; fill: #8C9AB0; text-anchor: middle; letter-spacing: 0.04em; }
.sm-label { font-family: var(--head); font-size: 16px; fill: var(--white); }
.sm-sub { font-family: var(--body); font-size: 12px; fill: #8C9AB0; }
.sm-node { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; transition: stroke .25s, fill .25s; }
.sm-node.on { stroke: var(--magenta); fill: rgba(235, 0, 140, 0.12); }
.sm-dot { fill: #3A4660; transition: fill .25s; }
.sm-dot.on { fill: var(--magenta); animation: sm-pulse 1s ease-in-out infinite; }
.sm-base { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.2; }
.sm-base.down { display: none; }
.sm-live { fill: none; stroke-width: 2.2; stroke-dasharray: 4 7; opacity: 0; transition: opacity .3s; }
.sm-live.on { opacity: 1; animation: sm-flow .6s linear infinite; }
.sm-live.up { stroke: var(--magenta); }
.sm-live.down { stroke: var(--ice); }
.sm-live.mesh { stroke: var(--magenta-2); }
.sm-live.tele { stroke: var(--grey); }
.system-map.paused .sm-live.on, .system-map.paused .sm-dot.on { animation-play-state: paused; }
@keyframes sm-flow { to { stroke-dashoffset: -22; } }
@keyframes sm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sm-live.on, .sm-dot.on { animation: none; } }
.sm-day { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; color: #8C9AB0; }
.sm-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sm-track i { display: block; height: 100%; background: var(--magenta); border-radius: 3px; transition: width .4s; }
.sm-note { margin-top: 12px; font-size: 13px; color: #8C9AB0; }

/* Footer contact line */
.foot-contact { flex-basis: 100%; margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .benefits, .system-grid, .calc-method { grid-template-columns: 1fr; }
  .figures, .why { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .institution-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-block, .sub-section.split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-header.open .nav-links, .site-header.open .nav-actions { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 16px; margin: 0; padding: 10px 0; }
  .hero-panel, .band { padding: 44px 22px 0; border-radius: 16px; }
  .band { padding-bottom: 44px; }
  .split, .does, .paths, .form-grid, .fields, .choices { grid-template-columns: 1fr; }
  .steps, .figures, .why, .project-cards { grid-template-columns: 1fr; }
  .institution-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .origin { grid-template-columns: 1fr; padding: 26px 22px; }
  .lib-grid { grid-template-columns: 1fr; }
  .paper.row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .system { padding: 32px 20px; }
  .calc-inputs, .calc-results { padding: 24px 18px; }
  .calc-r-main { font-size: 38px; }
  .system-map { padding: 20px 16px 16px; }
  .sm-head { flex-direction: column; min-height: 96px; }
  .sm-l1 { font-size: 16px; }
  .sm-l2 { font-size: 14px; }
  .form-card { padding: 24px 18px; }
  .lead { font-size: 18px; }
}
