/* Self-hosted from Google Fonts, static instances (the variable builds were
   2.5x larger). Removes two third-party DNS+TLS round trips from the critical
   path and stops every EU visitor's IP reaching Google on page load. */
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/public-sans-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/public-sans-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/public-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/public-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/public-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/public-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/public-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/public-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* VisaInvitation — official document-registry styling.
   Square edges, 1px rules, no shadows or gradients: the visual language of
   consular paperwork rather than of a marketing landing page. */

:root {
  --ink: #1b1b1b;
  --ink-2: #4a4a4a;
  --muted: #6e6e6e;
  --navy: #0d2b4e;
  --navy-2: #143a66;
  --navy-3: #08203c;
  --link: #1a4d8f;
  --link-visited: #4c2c92;
  --focus: #ffbe2e;
  --rule: #cfd3d7;
  --rule-2: #e4e7ea;
  --bg: #ffffff;
  --bg-2: #f4f5f6;
  --bg-3: #eceef0;
  --ok: #1f6b3a;
  --warn: #8a6100;
  --alert: #98211f;
  --alert-bg: #fdf3f2;
  --note-bg: #f0f5fa;
  --max: 1180px;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--navy-3); text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  background: var(--focus);
  color: #1b1b1b;
  text-decoration: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { background: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--focus); color: #1b1b1b; padding: 10px 16px; font-weight: 700; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Official notice band ---------- */

.notice-band {
  background: var(--bg-3);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.notice-band .wrap { display: flex; align-items: center; gap: 10px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.notice-band svg { flex: none; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--navy-3);
}
.masthead a { color: #fff; }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .emblem { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .01em; }
.brand-sub {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em;
  color: #a9c2dd; margin-top: 4px; font-weight: 600;
}

.lang-switch { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.lang-switch a {
  font-size: 13px; padding: 5px 9px; text-decoration: none;
  color: #cddcea; border: 1px solid transparent; font-weight: 600; letter-spacing: .02em;
}
.lang-switch a:hover { border-color: #4d729b; color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); }

/* ---------- Primary navigation ---------- */

.mainnav { background: var(--navy-2); border-bottom: 1px solid var(--navy-3); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav a {
  display: block; color: #dbe6f1; text-decoration: none;
  padding: 11px 15px; font-size: 15px; font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.mainnav a:hover { background: var(--navy-3); color: #fff; }
.mainnav a[aria-current="page"] { background: var(--bg); color: var(--navy); }

/* ---------- Breadcrumb ---------- */

.crumbs { border-bottom: 1px solid var(--rule-2); font-size: 14.5px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 11px 0; }
.crumbs li + li::before { content: "›"; color: var(--muted); margin-right: 8px; }
.crumbs a { color: var(--link); }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ---------- Page grid ---------- */

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; padding: 36px 0 64px; align-items: start; }
.layout.single { grid-template-columns: 1fr; max-width: 860px; }

.sidebar { position: sticky; top: 20px; font-size: 15.5px; }
.sidebar h2 {
  font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); font-weight: 700;
}
.sidebar ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.sidebar li { border-bottom: 1px solid var(--rule-2); }
.sidebar a {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px;
  padding: 9px 0; text-decoration: none; color: var(--link); line-height: 1.35;
}
.sidebar a::before {
  counter-increment: toc; content: counter(toc) ".";
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px;
}
.sidebar a:hover { color: var(--navy-3); text-decoration: underline; }
.sidebar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.sidebar a[aria-current="page"]::before { color: var(--navy); }

/* ---------- Content ---------- */

.content { max-width: 760px; min-width: 0; }

h1 {
  font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.12;
  margin: 0 0 18px; letter-spacing: -.012em;
}
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  color: var(--navy); margin: 0 0 10px;
}
.lead {
  font-size: 20.5px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--rule);
}

.content h2 {
  font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.25;
  margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule-2);
  letter-spacing: -.008em;
}
.content h2 .num {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 7px;
}
.content h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 30px 0 10px; }

.content p { margin: 0 0 16px; }

.atomic {
  font-size: 19px; line-height: 1.55; color: var(--ink);
  border-left: 4px solid var(--navy); padding: 2px 0 2px 18px; margin: 0 0 20px;
}

.content ul, .content ol { margin: 0 0 20px; padding-left: 22px; }
.content li { margin-bottom: 8px; }

ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px;
  min-height: 30px;
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 16.5px; background: #fff; }
caption {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--muted); padding: 12px 14px 0;
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
thead th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: .03em; border-bottom: none;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-2); }
tbody th { font-weight: 700; }

/* ---------- Callouts ---------- */

.callout { border: 1px solid var(--rule); border-left: 6px solid var(--navy); padding: 16px 20px; margin: 0 0 26px; background: var(--note-bg); }
.callout h2, .callout h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; border: 0; padding: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.alert { border-left-color: var(--alert); background: var(--alert-bg); }
.callout.alert h2, .callout.alert h3 { color: var(--alert); }

/* ---------- Home page blocks ---------- */

.hero { border-bottom: 1px solid var(--rule); padding: 44px 0 36px; background: var(--bg-2); }
.hero h1 { font-size: 48px; max-width: 18em; }
.hero .lead { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; max-width: 44em; }

/* Borders live on the cells rather than on a background grid, so partly filled
   last rows do not leave visible empty tracks. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 0 0 34px; }
.card { background: #fff; padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card h3 { margin: 0 0 6px; font-size: 19px; font-family: var(--serif); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.facts { border: 1px solid var(--rule); margin: 0 0 34px; }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 240px) 1fr; }
.facts dt { padding: 11px 16px; font-weight: 700; background: var(--bg-2); border-bottom: 1px solid var(--rule-2); font-size: 16px; }
.facts dd { padding: 11px 16px; margin: 0; border-bottom: 1px solid var(--rule-2); font-size: 16px; }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 0 0 30px; }
.country-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.country-grid a:hover { background: var(--bg-2); text-decoration: underline; }
.country-grid .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.country-grid .tag.yes { color: var(--ok); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); margin: 34px 0; }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary {
  cursor: pointer; padding: 15px 34px 15px 0; font-weight: 600; font-size: 18px;
  list-style: none; position: relative; font-family: var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 24px; font-weight: 400; color: var(--navy); font-family: var(--sans);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); max-width: 66ch; }
.faq .answer p { margin: 0; }

/* ---------- Request form ---------- */

.form-panel { border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 26px; margin: 0 0 30px; }
.fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.fieldset legend {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  color: var(--navy); padding: 0 0 10px; margin-bottom: 16px; width: 100%; border-bottom: 2px solid var(--navy);
}
/* Bottom alignment keeps inputs on one line when only some fields carry a hint. */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: end; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.field .hint { font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 9px 11px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); border-radius: 0; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.req { color: var(--alert); font-weight: 700; }

.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 18px;
  background: var(--ok); color: #fff; border: 0; border-bottom: 3px solid #124a26;
  padding: 12px 26px; cursor: pointer; border-radius: 0; text-decoration: none;
}
.btn:hover { background: #17572c; color: #fff; }
.btn.secondary { background: var(--navy); border-bottom-color: var(--navy-3); }
.btn.secondary:hover { background: var(--navy-3); }

.form-msg { padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--rule); border-left: 6px solid var(--navy); background: var(--note-bg); font-size: 16.5px; }
.form-msg.ok { border-left-color: var(--ok); background: #f0f7f2; }
.form-msg.err { border-left-color: var(--alert); background: var(--alert-bg); }

/* ---------- CTA strip ---------- */

.cta-strip { background: var(--navy); color: #fff; padding: 34px 0; margin-top: 56px; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-strip h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; font-weight: 600; }
.cta-strip p { margin: 0; color: #c8d8e8; max-width: 52ch; }
.cta-strip .btn { background: #fff; color: var(--navy); border-bottom-color: #b9c9d8; }
.cta-strip .btn:hover { background: var(--focus); color: #1b1b1b; }

/* ---------- Meta line ---------- */

.meta-line {
  font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--rule);
  padding-top: 14px; margin-top: 44px;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.ref { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; }

.related { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 40px; }
.related h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; border: 0; padding: 0; font-weight: 700; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 26px; }
.related li { margin: 0; }
.related-note { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */

.footer { background: var(--bg-2); border-top: 4px solid var(--navy); margin-top: 0; padding: 40px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; font-weight: 700; font-family: var(--sans); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer p { margin: 0 0 10px; color: var(--ink-2); max-width: 34em; }
.footer-legal { padding-top: 20px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  /* The contents list belongs after the article on a phone: in front of it,
     it pushed the h1 off the first screen. */
  .layout > .content { order: 1; }
  .sidebar { order: 2; position: static; margin: 36px 0 0; border: 1px solid var(--rule); padding: 16px; }
  h1 { font-size: 33px; }
  .hero h1 { font-size: 35px; }
  .lead { font-size: 18.5px; }
  .content h2 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card { border-right: 0; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 29px; }
}

@media print {
  .mainnav, .lang-switch, .cta-strip, .sidebar, .skip, .notice-band { display: none; }
  body { font-size: 12pt; }
  a { text-decoration: none; color: #000; }
  .layout { grid-template-columns: 1fr; }
}

.content .q-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--rule); }
.content .q-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.content .q-list a { display: block; padding: 9px 0; text-decoration: none; border-bottom: 0; }
.content .q-list a:hover { text-decoration: underline; }
.content h3 { font-family: var(--serif); font-size: 19px; margin: 26px 0 8px; }

.sources { margin: 34px 0 0; padding: 18px 20px; border: 1px solid var(--rule); background: #fbfbf9; }
.sources h2 { font-size: 15px; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; border: 0; padding: 0; }
.sources p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 18px; font-size: 15px; }
.sources li { margin: 0 0 4px; }

/* ---- Diagrams -------------------------------------------------------
   Inline SVG rather than raster: the labels stay real text, so they are
   readable by screen readers and indexable, and the line weights match the
   1px rules used everywhere else. */

.figure { margin: 26px 0; border: 1px solid var(--rule); background: #fff; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.figure figcaption b { font-weight: 600; color: var(--ink); }

.figure-key { margin: 0 0 26px; padding: 0 0 0 18px; font-size: 16px; }
.figure-key li { margin: 0 0 6px; }
.figure-key li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }

@media (max-width: 600px) {
  .figure .dg-lbl { font-size: 11px; }
  .figure .dg-node-t, .figure .dg-out-t { font-size: 14px; }
}


.consent { border: 1px solid var(--rule); background: var(--bg-2); padding: 18px 20px; margin: 26px 0 22px; }
.consent h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .09em;
              text-transform: uppercase; color: var(--navy); margin: 0 0 8px; border: 0; padding: 0; }
.consent p { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.consent-check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The nav collapses without JavaScript: a checkbox drives it, so there is no
   flash of an expanded menu before a script runs. */
.nav-cb, .nav-burger { display: none; }

@media (max-width: 900px) {
  .notice-band .wrap { min-height: 0; gap: 8px; }
  .notice-band span { font-size: 12.5px; line-height: 1.35; }

  /* One scrollable row instead of two wrapped ones. */
  .lang-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lang-switch::-webkit-scrollbar { display: none; }
  .lang-switch a { flex: none; }

  .masthead .wrap { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .brand-name { font-size: 21px; }

  .nav-burger {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 13px 0; color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
  }
  .nav-burger .bars { position: relative; width: 18px; height: 2px; background: #fff; }
  .nav-burger .bars::before, .nav-burger .bars::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  }
  .nav-burger .bars::before { top: -6px; }
  .nav-burger .bars::after { top: 6px; }
  .nav-cb:focus-visible + .nav-burger { outline: 3px solid var(--focus); outline-offset: 2px; }

  .mainnav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .nav-cb:checked ~ ul { display: flex; }
  .nav-cb:checked + .nav-burger .bars { background: transparent; }
  .nav-cb:checked + .nav-burger .bars::before { top: 0; transform: rotate(45deg); }
  .nav-cb:checked + .nav-burger .bars::after { top: 0; transform: rotate(-45deg); }
  .mainnav li { border-top: 1px solid var(--navy-3); }
  .mainnav a { display: block; padding: 12px 0; }
}

/* The lead already closes with a rule; a heading straight after it would draw a
   second one 26px below. */
.lead + h2 { margin-top: 8px; padding-top: 0; border-top: 0; }
