/* ==========================================================================
   Mauro Vieira — Diplomatic Archive
   Visual system: "Atlantic Diplomacy" / Atlantic Mineral Editorial palette
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-italic-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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Atlantic Mineral Editorial */
  --atlantic: #143436;       /* deep Atlantic teal — grounds, headlines */
  --atlantic-2: #1E4A4C;     /* raised teal */
  --atlantic-3: #2C5F60;
  --paper: #F2EBDF;          /* warm paper — primary ground */
  --paper-deep: #E8DDCB;     /* sandstone paper — alternate ground */
  --white: #FBF9F4;          /* soft editorial white */
  --sand: #D4BFA7;           /* sandstone — rules, accents */
  --coral: #963F27;          /* burnt coral — text-safe on paper, white and sandstone (≥5.1:1) */
  --coral-bright: #E08A66;   /* burnt coral — only on Atlantic teal */
  --mineral: #5F6863;        /* mineral grey — metadata on paper/white */
  --mineral-ink: #525A56;    /* mineral on sandstone paper */
  --mineral-lt: #A9B3AE;     /* mineral on Atlantic teal */
  --graphite: #1F2526;
  --ink-soft: #3C4443;
  --rule: rgba(20, 52, 54, .18);
  --rule-strong: rgba(20, 52, 54, .42);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --max: 1320px;
  --measure: 40rem;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.68; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: var(--atlantic); letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.15; }
h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .01em; line-height: 1.35; }
em, i { font-style: italic; }
strong { font-weight: 700; }
small { font-size: .82em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .masthead :focus-visible { outline-color: var(--coral-bright); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--atlantic); color: var(--white); padding: .8rem 1.2rem; font-weight: 700; text-decoration: none; border-radius: 2px; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.ground-deep { background: var(--paper-deep); --mineral: var(--mineral-ink); }
.ground-white { background: var(--white); }
.ground-atlantic, .on-dark { background: var(--atlantic); color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a { color: var(--white); }
.on-dark .eyebrow, .on-dark .meta { color: var(--mineral-lt); }
.on-dark .eyebrow::before { background: var(--coral-bright); }

/* ----- Typographic atoms ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mineral); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--coral); flex: none; }
.eyebrow--plain::before { display: none; }
.meta { font-size: .78rem; letter-spacing: .06em; color: var(--mineral); line-height: 1.5; }
.meta b { font-weight: 700; color: var(--ink-soft); }
.ground-deep .meta, .ground-deep .eyebrow { color: var(--mineral-ink); }
.dek { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.3; color: var(--ink-soft); max-width: 36ch; }
.on-dark .dek { color: var(--sand); }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); }
.on-dark .lede { color: var(--paper); }
.italic { font-style: italic; }
.coral { color: var(--coral); }
.on-dark .coral { color: var(--coral-bright); }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; }
.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; color: var(--coral); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a, .link { color: var(--atlantic); text-decoration-color: var(--coral); text-decoration-line: underline; }
.prose a:hover, .link:hover { color: var(--coral); }
.on-dark .prose a { color: var(--white); text-decoration-color: var(--coral-bright); }
.note { font-size: .88rem; color: var(--mineral); border-left: 2px solid var(--sand); padding: .2rem 0 .2rem 1rem; }
.ground-deep .note { color: var(--mineral-ink); }

/* Content-layer labels: distinguish policy / role / analysis */
.layer { display: inline-flex; align-items: center; gap: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .7rem .35rem .55rem; border: 1px solid currentColor; border-radius: 99px; line-height: 1; margin-bottom: 1rem; }
.layer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.layer--policy { color: var(--atlantic-2); }
.layer--role { color: var(--coral); }
.layer--analysis { color: var(--mineral); }
.layer--history { color: #6B5238; }
.layer--analysis::before { background: transparent; border: 1.5px solid currentColor; width: 8px; height: 8px; }
.layer--history::before { border-radius: 1px; transform: rotate(45deg); }
.on-dark .layer--policy, .on-dark .layer--analysis { color: var(--sand); }
.on-dark .layer--role { color: var(--coral-bright); }

/* ----- Buttons & links ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.4rem; font-weight: 700; font-size: .86rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--atlantic); color: var(--atlantic); background: transparent; cursor: pointer;
  border-radius: 0; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: var(--atlantic); color: var(--white); }
.btn--solid { background: var(--atlantic); color: var(--white); }
.btn--solid:hover { background: var(--coral); border-color: var(--coral); }
.on-dark .btn { border-color: var(--sand); color: var(--white); }
.on-dark .btn:hover { background: var(--white); color: var(--atlantic); }
.arrow-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--atlantic); padding-block: .6rem; min-height: 44px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.arrow-link:hover { background-size: 100% 1px; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.on-dark .arrow-link { color: var(--white); }

/* ==========================================================================
   Masthead — sticky
   ========================================================================== */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(20, 52, 54, .97); color: var(--paper);
  border-bottom: 1px solid rgba(212, 191, 167, .22); }
.masthead__bar { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--white); flex: none; min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: .005em; }
.brand__sub { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mineral-lt); margin-top: .3rem; }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav__item { position: static; }
.nav__trigger, .nav__direct { display: inline-flex; align-items: center; gap: .4rem; height: var(--header-h); padding: 0 .85rem; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); text-decoration: none; position: relative; }
.nav__trigger::after, .nav__direct::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 18px; height: 1px; background: var(--coral-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__trigger:hover::after, .nav__trigger[aria-expanded="true"]::after, .nav__direct:hover::after, .nav__item.is-current > .nav__trigger::after, .nav__direct[aria-current="page"]::after { transform: scaleX(1); }
.nav__trigger svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--atlantic); border-top: 1px solid rgba(212, 191, 167, .2); border-bottom: 1px solid rgba(212, 191, 167, .25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); display: none; }
.mega.is-open { display: block; animation: megaIn .35s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__inner { max-width: 1480px; margin: 0 auto; padding: 2.2rem var(--gutter) 2.6rem; display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 3rem; }
.mega__intro h2 { font-size: 2.1rem; color: var(--white); margin-bottom: .6rem; }
.mega__intro p { color: var(--mineral-lt); font-size: .9rem; max-width: 30ch; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 2rem; }
.mega__links a { display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .6rem; padding: 1rem 0; border-top: 1px solid rgba(212, 191, 167, .18); text-decoration: none; color: var(--white); min-height: 44px; }
.mega__links a:hover .mega__title, .mega__links a[aria-current="page"] .mega__title { color: var(--coral-bright); }
.mega__num { font-family: var(--serif); font-style: italic; color: var(--coral-bright); font-size: 1.05rem; grid-row: span 2; }
.mega__title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; transition: color .25s; }
.mega__desc { font-size: .8rem; color: var(--mineral-lt); line-height: 1.45; }

.masthead__tools { display: flex; align-items: center; gap: .35rem; margin-left: .6rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid rgba(212, 191, 167, .35); color: var(--white); cursor: pointer; border-radius: 50%;
  transition: background .25s, border-color .25s; }
.icon-btn:hover { background: rgba(251, 249, 244, .08); border-color: var(--coral-bright); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .masthead__tools { margin-left: auto; }
  .drawer { position: fixed; inset: var(--header-h) 0 0 0; background: var(--atlantic); z-index: 99; overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem var(--gutter) 3rem; }
  .drawer.is-open { display: block; }
  .drawer__group { border-top: 1px solid rgba(212, 191, 167, .2); }
  .drawer__group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 56px; background: none; border: 0; color: var(--white);
    font-family: var(--serif); font-size: 1.7rem; cursor: pointer; text-align: left; padding: .4rem 0; }
  .drawer__group > button svg { width: 14px; height: 14px; transition: transform .3s; flex: none; }
  .drawer__group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
  .drawer__group ul { list-style: none; margin: 0; padding: 0 0 1rem; }
  .drawer__group a { display: flex; gap: .8rem; align-items: baseline; min-height: 44px; padding: .55rem 0; color: var(--paper); text-decoration: none; font-size: 1rem; }
  .drawer__group a[aria-current="page"] { color: var(--coral-bright); }
  .drawer__group a span { font-family: var(--serif); font-style: italic; color: var(--coral-bright); width: 1.8rem; flex: none; }
  body.drawer-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.3rem; }
  .masthead__bar { gap: .6rem; }
}

/* ----- Search dialog ----- */
.search-dialog { position: fixed; inset: 0; z-index: 300; background: rgba(15, 33, 34, .72); display: none; padding: clamp(1rem, 8vh, 6rem) var(--gutter) 2rem; overflow-y: auto; }
.search-dialog.is-open { display: block; }
.search-panel { max-width: 820px; margin: 0 auto; background: var(--white); border-top: 3px solid var(--coral); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.search-panel__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule); }
.search-panel__head svg { width: 20px; height: 20px; color: var(--mineral); flex: none; }
.search-panel input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--atlantic); padding: .5rem 0; outline: none; }
.search-panel input::placeholder { color: #6E7671; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-close { width: 44px; height: 44px; border: 1px solid var(--rule-strong); background: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; color: var(--atlantic); flex: none; }
.search-close svg { width: 16px; height: 16px; color: inherit; }
.search-status { padding: .8rem 1.2rem 0; font-size: .8rem; color: var(--mineral); margin: 0; }
.search-results { list-style: none; margin: 0; padding: .4rem 0 1rem; max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: .9rem 1.2rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.search-results a:hover, .search-results a:focus-visible { background: var(--paper); outline-offset: -2px; }
.search-results .sr-page { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.search-results .sr-title { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--atlantic); line-height: 1.25; margin: .15rem 0; }
.search-results .sr-snip { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.search-results mark { background: rgba(224, 138, 102, .28); color: inherit; padding: 0 .1em; }

/* ----- Breadcrumbs ----- */
.crumbs { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: .6rem; color: var(--mineral); }
.crumbs li + li::before { content: "/"; color: var(--sand); }
.crumbs a { color: var(--atlantic); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--coral); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }
.on-dark .crumbs li { color: var(--mineral-lt); }
.on-dark .crumbs a { color: var(--sand); }
.on-dark .crumbs [aria-current] { color: var(--paper); }

/* ==========================================================================
   Figures — images always keep their natural aspect ratio (no face cropping)
   ========================================================================== */
.figure { margin: 0; }
.figure picture, .figure img { width: 100%; height: auto; display: block; }
.figure__frame { position: relative; background: var(--paper-deep); }
.figure--mat .figure__frame { padding: clamp(.6rem, 1.4vw, 1rem); background: var(--white); box-shadow: 0 1px 0 var(--rule), 0 22px 40px -28px rgba(20, 52, 54, .45); }
.figure--line .figure__frame::after { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid var(--coral); z-index: -1; pointer-events: none; }
.figure--line { position: relative; z-index: 0; }
.figcap { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin-top: .85rem; font-size: .8rem; line-height: 1.5; color: var(--mineral); }
.figcap__no { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: .95rem; }
.figcap__credit { grid-column: 2; font-size: .72rem; letter-spacing: .02em; opacity: .95; }
.on-dark .figcap { color: var(--mineral-lt); }
.on-dark .figcap__no { color: var(--coral-bright); }
.ground-deep .figcap { color: var(--mineral-ink); }
.figure--small { max-width: 320px; }
.figure--portrait-sm { max-width: 260px; }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img .figure__frame::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper-deep); transform-origin: top; transition: transform 1.2s var(--ease); pointer-events: none; }
.on-dark .reveal-img .figure__frame::before { background: var(--atlantic-2); }
.reveal-img.is-in .figure__frame::before { transform: scaleY(0); }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }
.no-js .reveal-img .figure__frame::before, .no-io .reveal-img .figure__frame::before { display: none; }

/* ==========================================================================
   Page opening (internal pages) — "folio" header, varied per page via modifiers
   ========================================================================== */
.folio { position: relative; padding-block: clamp(2.2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.folio__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-top: clamp(2rem, 5vw, 4rem); }
.folio__no { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 1.1rem; display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.folio__no::after { content: ""; height: 1px; width: 60px; background: currentColor; opacity: .6; }
.on-dark .folio__no { color: var(--coral-bright); }
.folio h1 { margin-bottom: .35em; }
.folio h1 em { color: var(--coral); }
.on-dark.folio h1 em, .on-dark .folio h1 em { color: var(--coral-bright); }
.folio__aside { border-left: 1px solid var(--rule-strong); padding: 1rem 1.2rem 1rem clamp(1rem, 2.5vw, 2rem); background: var(--paper); position: relative; z-index: 1; }
.on-dark .folio__aside, .on-dark.folio .folio__aside { border-color: rgba(212, 191, 167, .35); background: var(--atlantic); }
.folio__contour { position: absolute; right: -4%; top: 0; width: min(62vw, 820px); height: 100%; pointer-events: none; opacity: .5; z-index: 0; }
.folio > .wrap { position: relative; z-index: 1; }
.section > .folio__contour { right: 0; width: min(55vw, 760px); }
.explorer > * { min-width: 0; }
.folio--center .folio__grid { grid-template-columns: minmax(0, 1fr); text-align: left; }
@media (max-width: 860px) {
  .folio__contour, .contour-bg { display: none; }
  .folio__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .folio__aside { border-left: 0; border-top: 1px solid var(--rule-strong); padding: 1.4rem 0 0; }
  .on-dark .folio__aside { border-color: rgba(212, 191, 167, .35); }
}

/* Key-fact rows (definition list) */
.facts { display: grid; margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr; gap: .6rem 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mineral); padding-top: .2rem; }
.facts dd { margin: 0; font-size: .96rem; color: var(--graphite); }
.on-dark .facts > div { border-color: rgba(212, 191, 167, .25); }
.on-dark .facts dt { color: var(--mineral-lt); }
.on-dark .facts dd { color: var(--paper); }

/* ==========================================================================
   Source panels
   ========================================================================== */
.sources { border-top: 1px solid var(--atlantic); margin-top: 3rem; }
.sources > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; min-height: 56px; }
.sources > summary::-webkit-details-marker { display: none; }
.sources__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--atlantic); }
.sources__count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mineral); display: flex; align-items: center; gap: .8rem; }
.sources__count::after { content: "+"; font-family: var(--sans); font-size: 1.3rem; font-weight: 300; width: 36px; height: 36px; border: 1px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; color: var(--atlantic); transition: transform .3s; }
.sources[open] .sources__count::after { transform: rotate(45deg); }
.sources ol { margin: 0; padding: 0 0 1.5rem; list-style: none; counter-reset: src; columns: 2 380px; column-gap: 3rem; }
.sources li { counter-increment: src; break-inside: avoid; display: grid; grid-template-columns: 2rem 1fr; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: .86rem; line-height: 1.5; }
.sources li::before { content: counter(src, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--coral); }
.sources a { color: var(--atlantic); text-decoration-color: var(--sand); overflow-wrap: anywhere; }
.sources a:hover { color: var(--coral); }
.sources .src-org { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mineral); margin-top: .15rem; }
.on-dark .sources { border-color: var(--sand); }
.on-dark .sources__title { color: var(--white); }

/* ==========================================================================
   Home — opening
   ========================================================================== */
.opening { position: relative; background: var(--paper); overflow: hidden; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.opening__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.opening__name { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 10.5vw, 9.6rem); line-height: .86; color: var(--atlantic); margin: 0 0 1.6rem; letter-spacing: -.02em; }
.opening__name span { display: block; }
.opening__name span:last-child { font-style: italic; padding-left: clamp(1.5rem, 6vw, 5.5rem); color: var(--coral); }
.opening__headline { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; color: var(--ink-soft); max-width: 26ch; margin-bottom: 2rem; }
.opening__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.2rem; border-top: 1px solid var(--rule-strong); padding-top: 1.2rem; max-width: 36rem; }
.opening__meta dt { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--mineral); }
.opening__meta dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--atlantic); line-height: 1.2; }
.opening__visual { position: relative; }
.opening__visual .figure__frame { box-shadow: 0 40px 70px -40px rgba(20, 52, 54, .6); }
.opening__stamp { position: absolute; left: -1.6rem; top: 2.2rem; background: var(--atlantic); color: var(--paper); padding: 1rem 1.2rem; max-width: 15rem; z-index: 2; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5); }
.opening__stamp b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--coral-bright); line-height: 1; }
.opening__stamp span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; display: block; margin-top: .4rem; color: var(--paper); }
.opening__lat { position: absolute; top: 0; bottom: 0; right: calc(var(--gutter) * .5); width: 1px; background: var(--rule); }
.contour-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.contour-bg svg { position: absolute; right: -8%; top: -10%; width: 70%; height: 130%; }
@media (max-width: 900px) {
  .opening__grid { grid-template-columns: minmax(0, 1fr); }
  .opening__visual { max-width: 640px; }
  .opening__stamp { left: auto; right: .8rem; bottom: -1.6rem; }
  .opening__meta { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 460px) {
  .opening__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .opening__stamp { position: relative; right: auto; bottom: auto; margin: -1.4rem .8rem 0 auto; max-width: 80%; }
}

/* Home — index strip (contents) */
.index-strip { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); background: var(--white); }
.index-strip ol { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(5, 1fr); }
.index-strip li + li { border-left: 1px solid var(--rule); }
.index-strip a { display: block; padding: 1.1rem 1rem; text-decoration: none; min-height: 44px; height: 100%; }
.index-strip a:hover .is-title { color: var(--coral); }
.index-strip .is-no { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: .95rem; }
.index-strip .is-title { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; color: var(--atlantic); transition: color .25s; }
@media (max-width: 900px) { .index-strip ol { grid-template-columns: repeat(2, 1fr); } .index-strip li + li { border-left: 0; } .index-strip li { border-bottom: 1px solid var(--rule); } .index-strip li:nth-child(even) { border-left: 1px solid var(--rule); } }

/* Home — journey (horizontal milestone rail) */
.journey { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-top: 3rem; position: relative; list-style: none; padding: 0; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 2.35rem; height: 1px; background: var(--sand); }
.journey li { position: relative; padding: 0 1.1rem 0 0; }
.journey__year { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--atlantic); line-height: 1; display: block; height: 2.35rem; }
.journey__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--paper-deep); border: 2px solid var(--coral); margin: -5px 0 1.1rem; position: relative; }
.journey li.is-current .journey__dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(162, 78, 51, .18); }
.journey h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.journey p { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.journey .meta { display: block; margin-top: .45rem; }
@media (max-width: 1000px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 1.6rem; }
  .journey::before { left: 5px; right: auto; top: .5rem; bottom: .5rem; width: 1px; height: auto; }
  .journey li { padding: 0 0 1.8rem; }
  .journey__dot { position: absolute; left: -1.6rem; top: .55rem; margin: 0; }
  .journey__year { height: auto; margin-bottom: .4rem; }
}

/* Home — capitals (postings ledger) */
.capitals { list-style: none; margin: 2.6rem 0 0; padding: 0; border-top: 1px solid rgba(212, 191, 167, .35); }
.capitals li { display: grid; grid-template-columns: 5.5rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem 2rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid rgba(212, 191, 167, .25);
  transition: background .3s; }
.capitals li:hover { background: rgba(251, 249, 244, .035); }
.capitals .c-coord { font-size: .7rem; letter-spacing: .1em; color: var(--mineral-lt); font-variant-numeric: tabular-nums; }
.capitals .c-city { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1; color: var(--white); }
.capitals .c-city small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-top: .5rem; }
.capitals .c-role { color: var(--paper); font-size: .95rem; }
.capitals .c-role b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--coral-bright); }
.capitals .c-ctx { color: var(--mineral-lt); font-size: .9rem; line-height: 1.55; }
@media (max-width: 900px) {
  .capitals li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .capitals .c-coord { order: -1; }
}

/* Home — Brazil in the world: tri-layer */
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--atlantic); margin-top: 2.6rem; }
.tri > div { padding: 2rem 2rem 1rem 0; }
.tri > div + div { padding-left: 2rem; border-left: 1px solid var(--rule); }
.tri h3 { font-size: 1.7rem; }
.tri p { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 900px) { .tri { grid-template-columns: minmax(0, 1fr); } .tri > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .tri > div { padding-right: 0; } }

.regions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 3rem; border-top: 1px solid var(--rule); }
.regions-grid > div { padding: 1.4rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--rule); }
.regions-grid > div:not(:nth-child(4n+1)) { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.regions-grid h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--atlantic); margin-bottom: .4rem; }
.regions-grid p { font-size: .86rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .regions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .regions-grid > div:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; } .regions-grid > div:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--rule); } }
@media (max-width: 560px) { .regions-grid { grid-template-columns: minmax(0, 1fr); } .regions-grid > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Home — themes: six different compositions */
.theme { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.theme__label { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.theme__label .num { font-size: 1rem; font-style: italic; color: var(--coral); }
.on-dark .theme__label .num { color: var(--coral-bright); }
.ground-deep .on-dark .eyebrow, .ground-deep .on-dark .meta { color: var(--mineral-lt); }
.theme-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.theme-split--rev > :first-child { order: 2; }
.theme-cols { columns: 2 300px; column-gap: 3rem; column-rule: 1px solid var(--rule); }
.theme-big { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.02; color: var(--atlantic); max-width: 18ch; }
.theme-big em { color: var(--coral); }
.theme-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(212, 191, 167, .3); margin-top: 2rem; }
.theme-data > div { background: var(--atlantic); padding: 1.6rem 1.4rem; }
.theme-data b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--coral-bright); line-height: 1; margin-bottom: .6rem; }
.theme-data span { font-size: .86rem; color: var(--paper); line-height: 1.45; display: block; }
.theme-data small { display: block; margin-top: .6rem; color: var(--mineral-lt); font-size: .72rem; }
@media (max-width: 860px) { .theme-split { grid-template-columns: minmax(0, 1fr); } .theme-split--rev > :first-child { order: 0; } .theme-data { grid-template-columns: minmax(0, 1fr); } }
.snip-timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--coral); }
.snip-timeline li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.snip-timeline li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.snip-timeline b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--atlantic); display: block; }
.snip-timeline span { font-size: .9rem; color: var(--ink-soft); }

/* Quotations */
.quote { margin: 0; position: relative; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; color: var(--atlantic); }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "\201C"; color: var(--coral); margin-right: .05em; }
.quote blockquote p::after { content: "\201D"; color: var(--coral); margin-left: .02em; }
.quote figcaption { margin-top: 1.3rem; font-size: .84rem; color: var(--mineral); line-height: 1.55; padding-left: 1rem; border-left: 1px solid var(--coral); }
.quote figcaption b { color: var(--ink-soft); }
.quote figcaption a { color: var(--atlantic); }
.on-dark .quote blockquote { color: var(--white); }
.on-dark .quote blockquote p::before, .on-dark .quote blockquote p::after { color: var(--coral-bright); }
.on-dark .quote figcaption { color: var(--mineral-lt); border-color: var(--coral-bright); }
.on-dark .quote figcaption b { color: var(--paper); }
.on-dark .quote figcaption a { color: var(--sand); }
.quote--sm blockquote { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.quotes-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-top: 3rem; }
.quotes-rail .quote { padding-top: 1.6rem; border-top: 1px solid rgba(212, 191, 167, .35); }
@media (max-width: 960px) { .quotes-rail { grid-template-columns: minmax(0, 1fr); } }
.pull { margin: 2.6rem 0; padding: 1.8rem 0; border-top: 1px solid var(--atlantic); border-bottom: 1px solid var(--rule); }

/* Featured context tiles */
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; border-top: 1px solid var(--atlantic); margin-top: 2.6rem; }
.feature-grid article { padding: 1.8rem 1.8rem 1.8rem 0; }
.feature-grid article + article { padding-left: 1.8rem; border-left: 1px solid var(--rule); }
.feature-grid h3 { font-size: 1.55rem; }
.feature-grid p { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } .feature-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .feature-grid article { padding-right: 0; } }

/* ==========================================================================
   Biography — sticky portrait + long-form narrative
   ========================================================================== */
.bio-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.bio-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.bio-chapters { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: ch; }
.bio-chapters a { display: flex; gap: .8rem; padding: .55rem 0; text-decoration: none; font-size: .88rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); min-height: 44px; align-items: center; }
.bio-chapters a::before { counter-increment: ch; content: counter(ch, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--coral); }
.bio-chapters a:hover, .bio-chapters a.is-active { color: var(--atlantic); font-weight: 700; }
@media (max-width: 960px) { .bio-layout { grid-template-columns: minmax(0, 1fr); } .bio-aside { position: static; } .bio-chapters { display: none; } }
.chapter { padding-top: 1rem; margin-bottom: 3.5rem; }
.chapter__no { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 1rem; display: block; margin-bottom: .4rem; }
.prose .chapter h2 { margin-top: .15em; }

/* ==========================================================================
   Diplomatic career — ledger
   ========================================================================== */
.ledger { margin-top: 2.5rem; }
.ledger__era { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--atlantic); }
.ledger__era-head { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.ledger__era-head .num { font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--atlantic); line-height: 1; display: block; }
.ledger__era-head p { font-size: .88rem; color: var(--mineral); margin-top: .6rem; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .4rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry__when { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--coral); text-transform: uppercase; }
.entry__where { font-size: .82rem; color: var(--mineral); margin-top: .25rem; }
.entry h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.entry dl { display: grid; grid-template-columns: 7.2rem 1fr; gap: .35rem 1rem; margin: .8rem 0 0; font-size: .9rem; }
.entry dt { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mineral); padding-top: .25rem; }
.entry dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .ledger__era { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .ledger__era-head { position: static; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .entry dd { margin-bottom: .5rem; }
}

/* ==========================================================================
   Ambassadorial service — dispatches
   ========================================================================== */
.dispatch { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; border: 1px solid var(--rule-strong); background: var(--white); margin-bottom: 2.4rem; }
.dispatch__head { background: var(--atlantic); color: var(--paper); padding: clamp(1.6rem, 3vw, 2.6rem); position: relative; overflow: hidden; }
.dispatch__head h2 { color: var(--white); font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: .2rem; }
.dispatch__head .coord { font-size: .72rem; letter-spacing: .14em; color: var(--mineral-lt); font-variant-numeric: tabular-nums; }
.dispatch__head .period { font-family: var(--serif); font-size: 1.5rem; color: var(--coral-bright); margin-top: 1.4rem; display: block; }
.dispatch__head .role { font-size: .88rem; color: var(--paper); margin-top: .4rem; }
.dispatch__head svg.dispatch__globe { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; opacity: .25; }
.dispatch__body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.dispatch__body h3 { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin: 1.6rem 0 .5rem; }
.dispatch__body h3:first-child { margin-top: 0; }
.dispatch__body p, .dispatch__body li { font-size: .96rem; color: var(--ink-soft); }
.dispatch__body ul { padding-left: 1.1rem; }
@media (max-width: 860px) { .dispatch { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Minister — structure diagram + priorities
   ========================================================================== */
.structure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.4rem; position: relative; }
.structure > div { padding: 1.6rem 1.4rem; border: 1px solid rgba(212, 191, 167, .35); margin: -1px 0 0 -1px; position: relative; }
.structure .s-tier { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--coral-bright); }
.structure h3 { font-size: 1.45rem; margin: .5rem 0 .6rem; }
.structure p { font-size: .88rem; color: var(--mineral-lt); margin: 0; }
.structure > div:not(:last-child)::after { content: "\2192"; position: absolute; right: -.7rem; top: 50%; transform: translateY(-50%); background: var(--atlantic); color: var(--coral-bright); width: 1.4rem; text-align: center; z-index: 1; font-size: 1rem; }
@media (max-width: 960px) { .structure { grid-template-columns: repeat(2, minmax(0, 1fr)); } .structure > div:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .structure { grid-template-columns: minmax(0, 1fr); } }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--atlantic); margin-top: 2rem; }
.terms > div { padding: 2rem 2rem 1rem 0; }
.terms > div + div { border-left: 1px solid var(--rule); padding-left: 2rem; }
.terms .t-years { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--coral); display: block; margin-bottom: .6rem; }
@media (max-width: 760px) { .terms { grid-template-columns: minmax(0, 1fr); } .terms > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }
.agenda { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: ag; }
.agenda > li { counter-increment: ag; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.2rem; padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.agenda > li::before { content: counter(ag, decimal-leading-zero); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--sand); }
.agenda h3 { font-size: 1.55rem; }
.agenda p { color: var(--ink-soft); }
@media (max-width: 560px) { .agenda > li { grid-template-columns: minmax(0, 1fr); gap: .4rem; } }

/* ==========================================================================
   Foreign policy — magazine columns with marginalia
   ========================================================================== */
.mag { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 7fr) minmax(0, 3fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.mag__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; font-size: .82rem; }
.mag__toc ol { list-style: none; margin: 0; padding: 0; }
.mag__toc a { display: block; padding: .5rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink-soft); min-height: 44px; }
.mag__toc a:hover, .mag__toc a.is-active { color: var(--coral); }
.mag__margin { font-size: .84rem; color: var(--mineral); }
.margin-note { border-top: 2px solid var(--coral); padding-top: .8rem; margin-bottom: 2rem; }
.margin-note b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--atlantic); line-height: 1.1; margin-bottom: .3rem; }
@media (max-width: 1100px) { .mag { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } .mag__margin { grid-column: 2; } }
@media (max-width: 760px) { .mag { grid-template-columns: minmax(0, 1fr); } .mag__toc { position: static; } .mag__margin { grid-column: auto; } }
.principles { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.principles li { padding: .7rem 0 .7rem 2.3rem; border-top: 1px solid var(--rule); position: relative; font-size: .95rem; }
.principles li span { position: absolute; left: 0; top: .7rem; font-family: var(--serif); font-style: italic; color: var(--coral); }
@media (max-width: 600px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Bilateral — country explorer
   ========================================================================== */
.explorer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; border: 1px solid var(--rule-strong); background: var(--white); margin-top: 2.4rem; }
.explorer__nav { border-right: 1px solid var(--rule-strong); background: var(--paper); }
.explorer__regions { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule-strong); }
.explorer__regions button { flex: 1 1 auto; min-height: 48px; padding: .6rem .8rem; border: 0; background: none; cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mineral); border-bottom: 2px solid transparent; }
.explorer__regions button[aria-pressed="true"] { color: var(--atlantic); border-bottom-color: var(--coral); background: var(--white); }
.explorer__countries { list-style: none; margin: 0; padding: .4rem 0; max-height: 640px; overflow-y: auto; }
.explorer__countries button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: .6rem 1.2rem; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.3rem; color: var(--atlantic); border-left: 3px solid transparent; }
.explorer__countries button small { font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mineral); }
.explorer__countries button:hover { background: var(--white); }
.explorer__countries button[aria-selected="true"] { background: var(--white); border-left-color: var(--coral); }
.explorer__panel { padding: clamp(1.4rem, 3vw, 2.8rem); min-height: 480px; }
.explorer__panel[hidden] { display: none; }
.explorer__panel h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: .2rem; }
.explorer__panel .x-region { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.explorer__panel h3 { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mineral); margin: 1.6rem 0 .4rem; }
.explorer__panel p, .explorer__panel li { font-size: .95rem; color: var(--ink-soft); }
.explorer__panel ul { padding-left: 1.1rem; }
.explorer__src { font-size: .78rem; color: var(--mineral); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.6rem; }
.explorer__src a { color: var(--atlantic); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer__nav { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .explorer__countries { max-height: none; display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 0; }
  .explorer__countries li { flex: none; }
  .explorer__countries button { border-left: 0; border-bottom: 3px solid transparent; font-size: 1.1rem; white-space: nowrap; }
  .explorer__countries button small { display: none; }
  .explorer__countries button[aria-selected="true"] { border-bottom-color: var(--coral); }
  .explorer__panel { min-height: 0; }
}

/* ==========================================================================
   Multilateral — network diagram & institutions
   ========================================================================== */
.network { width: 100%; max-width: 980px; margin: 2rem auto 0; }
.network svg { width: 100%; height: auto; overflow: visible; }
.network .n-link { stroke: rgba(212, 191, 167, .45); stroke-width: 1; fill: none; }
.network .n-node circle { fill: var(--atlantic-2); stroke: var(--sand); stroke-width: 1; transition: fill .3s; }
.network .n-node:hover circle, .network .n-node:focus circle { fill: var(--coral); }
.network .n-node text { fill: var(--paper); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.network .n-core circle { fill: var(--coral); stroke: none; }
.network .n-core text { fill: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; }
.network a:focus { outline: none; }
.network a:focus-visible circle { stroke: var(--white); stroke-width: 3; }
.inst { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem; padding: 2.6rem 0; border-top: 1px solid var(--atlantic); }
.inst__name { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--atlantic); line-height: 1; }
.inst__name small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mineral); margin-top: .7rem; line-height: 1.5; }
.inst__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.4rem; }
.inst__cols h3 { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin-bottom: .45rem; }
.inst__cols p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .inst { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .inst__cols { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Global South — editorial bands
   ========================================================================== */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); align-items: start; }
.band__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.band__head .big { font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; color: var(--coral); display: block; margin-bottom: .6rem; }
@media (max-width: 860px) { .band { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.chips li { border: 1px solid var(--rule-strong); padding: .35rem .8rem; font-size: .8rem; border-radius: 99px; color: var(--ink-soft); background: var(--white); }

/* ==========================================================================
   Regional — map + chronology
   ========================================================================== */
.region-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.region-map { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.region-map svg { width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 6rem); }
.region-map .land { fill: var(--paper-deep); stroke: var(--atlantic); stroke-width: 1.2; }
.region-map .land--brazil { fill: rgba(162, 78, 51, .16); stroke: var(--coral); stroke-width: 1.6; }
.region-map .pin circle { fill: var(--atlantic); }
.region-map .pin text { font-family: var(--sans); font-size: 11px; font-weight: 700; fill: var(--atlantic); letter-spacing: .04em; }
.region-map .pin.is-active circle { fill: var(--coral); r: 7; }
.region-map .pin.is-active text { fill: var(--coral); }
.region-map .sea { fill: none; stroke: var(--rule-strong); stroke-width: .6; stroke-dasharray: 2 4; }
.region-map .legend { font-size: .76rem; color: var(--mineral); margin-top: .6rem; }
@media (max-width: 900px) { .region-layout { grid-template-columns: minmax(0, 1fr); } .region-map { position: static; max-width: 460px; } }
.rcountry { padding: 2rem 0; border-top: 1px solid var(--rule); }
.rcountry h3 { font-size: 2rem; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.rcountry h3 small { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mineral); }

/* ==========================================================================
   Economic — data-led
   ========================================================================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--atlantic); border-bottom: 1px solid var(--rule); margin-top: 2.4rem; }
.kpis > div { padding: 1.6rem 1.4rem 1.6rem 0; }
.kpis > div + div { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.kpis b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1; color: var(--atlantic); }
.kpis b small { font-size: .45em; color: var(--coral); }
.kpis span { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: .5rem; line-height: 1.45; }
.kpis cite { display: block; font-style: normal; font-size: .7rem; color: var(--mineral); margin-top: .5rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis > div:nth-child(3) { padding-left: 0; border-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .kpis { grid-template-columns: minmax(0, 1fr); } .kpis > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.bars { margin-top: 2rem; }
.bars figcaption { font-size: .8rem; color: var(--mineral); margin-top: 1rem; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--rule); }
.bar-row__label { font-size: .9rem; font-weight: 600; color: var(--graphite); }
.bar-row__track { height: 14px; background: var(--paper-deep); position: relative; }
.bar-row__fill { position: absolute; inset: 0 auto 0 0; background: var(--atlantic); transform-origin: left; transition: transform 1.2s var(--ease); border-radius: 0 4px 4px 0; }
.bar-row { cursor: default; }
.bar-row:hover .bar-row__fill { background: var(--atlantic-3); }
.bar-row:hover .bar-row__fill--coral { background: #B85F42; }
.bar-row:hover .bar-row__label { color: var(--atlantic); }
.bar-row__fill--coral { background: var(--coral); }
.bar-row__val { font-variant-numeric: tabular-nums; font-size: .9rem; text-align: right; color: var(--ink-soft); }
.bars:not(.is-in) .bar-row__fill { transform: scaleX(0); }
.no-io .bars .bar-row__fill, .no-js .bars .bar-row__fill { transform: none; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 5.5rem; } .bar-row__track { grid-column: 1 / -1; grid-row: 2; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6rem 0; border-top: 1px solid var(--atlantic); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 540px; }
.data-table caption { text-align: left; font-size: .8rem; color: var(--mineral); caption-side: bottom; padding-top: .8rem; }
.data-table th, .data-table td { text-align: left; padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mineral); font-weight: 700; }
.data-table td.n { font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 600px) { .data-table { min-width: 0; font-size: .84rem; } .data-table th, .data-table td { padding-right: .5rem; } .data-table th { letter-spacing: .08em; } }
.data-table th.n { text-align: right; }

/* ==========================================================================
   Key issues / Speeches / Engagements — archive tools
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; align-items: center; }
.filters__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mineral); margin-right: .5rem; }
.chip-btn { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--rule-strong); background: var(--white); border-radius: 99px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-soft); transition: all .25s; }
.chip-btn:hover { border-color: var(--atlantic); color: var(--atlantic); }
.chip-btn[aria-pressed="true"] { background: var(--atlantic); border-color: var(--atlantic); color: var(--white); }
.archive-search { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--atlantic); max-width: 34rem; margin-top: 1.2rem; }
.archive-search svg { width: 18px; height: 18px; color: var(--mineral); flex: none; }
.archive-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .8rem 0; font-family: var(--serif); font-size: 1.35rem; color: var(--atlantic); }
.archive-search input:focus { outline: none; }
.archive-search:focus-within { border-bottom-color: var(--coral); box-shadow: 0 1px 0 var(--coral); }
.archive-count { font-size: .8rem; color: var(--mineral); margin: .8rem 0 0; }

.issue-lib { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.4vw, 1.2rem); grid-auto-flow: row dense; margin-top: 1.6rem; }
.issue { background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--atlantic); padding: clamp(1.4rem, 2.6vw, 2.2rem); grid-column: span 4; display: flex; flex-direction: column; }
.issue--wide { grid-column: span 8; }
.issue--full { grid-column: span 12; }
.issue .i-cat { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.issue h3 { font-size: 1.6rem; margin: .6rem 0 .7rem; }
.issue p { font-size: .92rem; color: var(--ink-soft); }
.issue details { margin-top: auto; border-top: 1px solid var(--rule); }
.issue details summary { cursor: pointer; padding: .8rem 0; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--atlantic); min-height: 44px; display: flex; align-items: center; }
.issue details[open] summary { color: var(--coral); }
.issue[hidden] { display: none; }
@media (max-width: 1000px) { .issue, .issue--wide { grid-column: span 6; } .issue--full { grid-column: span 12; grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .issue, .issue--wide, .issue--full { grid-column: span 12; } }

.docs { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.doc { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 11rem); gap: .6rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.doc[hidden] { display: none; }
.doc__date { font-family: var(--serif); font-size: 1.3rem; color: var(--atlantic); line-height: 1.15; }
.doc__date small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mineral); margin-top: .35rem; }
.doc h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.doc p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .5rem; }
.doc__meta { font-size: .78rem; color: var(--mineral); }
.doc__meta .tag { display: inline-block; border: 1px solid var(--rule-strong); border-radius: 99px; padding: .15rem .6rem; margin: 0 .3rem .4rem 0; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.doc__src a { font-size: .8rem; color: var(--atlantic); overflow-wrap: anywhere; }
.doc blockquote { margin: .8rem 0; padding-left: 1rem; border-left: 2px solid var(--coral); font-family: var(--serif); font-size: 1.15rem; color: var(--atlantic); line-height: 1.35; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: .4rem; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: start; }
.gallery .figure:nth-child(1) { grid-column: 1 / span 7; }
.gallery .figure:nth-child(2) { grid-column: 8 / span 5; margin-top: 4rem; }
.gallery .figure:nth-child(3) { grid-column: 2 / span 4; }
.gallery .figure:nth-child(4) { grid-column: 6 / span 4; margin-top: 2rem; }
.gallery .figure:nth-child(5) { grid-column: 10 / span 3; margin-top: 5rem; }
@media (max-width: 860px) { .gallery .figure:nth-child(n) { grid-column: span 12; margin-top: 0; } .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Timeline — full chronological interface
   ========================================================================== */
.tl-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: 1.6rem; }
.tl-decades { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-arrows { display: flex; gap: .5rem; }
.tl-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--sand); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.tl-arrows button:hover { background: var(--coral-bright); color: var(--atlantic); border-color: var(--coral-bright); }
.tl-arrows svg { width: 18px; height: 18px; }
.on-dark .chip-btn { background: transparent; color: var(--paper); border-color: rgba(212, 191, 167, .45); }
.on-dark .chip-btn:hover { border-color: var(--coral-bright); color: var(--white); }
.on-dark .chip-btn[aria-pressed="true"] { background: var(--coral-bright); color: var(--atlantic); border-color: var(--coral-bright); }
.tl-progress { height: 2px; background: rgba(212, 191, 167, .25); margin: 1.4rem 0 0; position: relative; }
.tl-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--coral-bright); width: 0; }
.tl-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.4rem 0 2rem; list-style: none; margin: 0;
  scrollbar-width: thin; scrollbar-color: var(--coral-bright) transparent; outline: none; }
.tl-track:focus-visible { outline: 2px solid var(--coral-bright); outline-offset: 4px; }
.tl-item { scroll-snap-align: start; padding: 0 2rem 0 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: 4.2rem; height: 1px; background: rgba(212, 191, 167, .4); }
.tl-year { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--white); display: block; height: 4.2rem; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--atlantic); border: 2px solid var(--coral-bright); margin: -6px 0 1.4rem; position: relative; z-index: 1; }
.tl-item--major .tl-dot { background: var(--coral-bright); }
.tl-kind { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--coral-bright); }
.tl-item h3 { font-size: 1.45rem; margin: .5rem 0 .3rem; }
.tl-where { font-size: .8rem; color: var(--sand); margin-bottom: .8rem; display: block; }
.tl-item p { font-size: .9rem; color: var(--paper); line-height: 1.55; }
.tl-item .tl-sig { font-size: .84rem; color: var(--mineral-lt); border-top: 1px solid rgba(212, 191, 167, .25); padding-top: .7rem; }
.tl-item .tl-sig b { color: var(--sand); font-weight: 700; letter-spacing: .1em; font-size: .64rem; text-transform: uppercase; display: block; }
@media (max-width: 760px) {
  .tl-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding: 1.6rem 0 0 1.8rem; border-left: 1px solid rgba(212, 191, 167, .4); margin-left: .4rem; }
  .tl-item { padding: 0 0 2.4rem; }
  .tl-item::before { display: none; }
  .tl-year { height: auto; font-size: 2.4rem; margin-bottom: .6rem; }
  .tl-dot { position: absolute; left: calc(-1.8rem - 7px); top: .9rem; margin: 0; }
  .tl-arrows, .tl-progress { display: none; }
}

/* ==========================================================================
   Legacy — reflective long-form
   ========================================================================== */
.legacy-open { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (max-width: 860px) { .legacy-open { grid-template-columns: minmax(0, 1fr); } }
.essay { max-width: 44rem; margin: 0 auto; }
.essay > p:first-of-type { font-size: 1.2rem; }
.essay h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 2.6em; text-align: left; }
.roles-matrix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(212, 191, 167, .3); margin-top: 2.4rem; }
.roles-matrix > div { background: var(--atlantic); padding: 1.6rem 1.3rem; }
.roles-matrix .rm-no { font-family: var(--serif); font-style: italic; color: var(--coral-bright); }
.roles-matrix h3 { font-size: 1.35rem; margin: .4rem 0 .6rem; }
.roles-matrix p { font-size: .86rem; color: var(--mineral-lt); margin: 0; line-height: 1.55; }
@media (max-width: 1100px) { .roles-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roles-matrix { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Media & publications — catalogue
   ========================================================================== */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--atlantic); margin-top: 2rem; }
.cat-item { padding: 1.8rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.cat-item:not(:nth-child(3n+1)) { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.cat-item .c-type { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--coral); }
.cat-item h3 { font-size: 1.35rem; margin: .5rem 0; }
.cat-item p { font-size: .9rem; color: var(--ink-soft); }
.cat-item a.arrow-link { margin-top: auto; }
@media (max-width: 960px) { .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .cat-item:nth-child(even) { padding-left: 1.6rem; border-left: 1px solid var(--rule); } }
@media (max-width: 620px) { .catalogue { grid-template-columns: minmax(0, 1fr); } .cat-item:nth-child(even) { padding-left: 0; border-left: 0; } .cat-item { padding-right: 0; } }

/* ==========================================================================
   About — document
   ========================================================================== */
.docpage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
.docpage__index { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.docpage__index ol { list-style: none; padding: 0; margin: 0; counter-reset: di; }
.docpage__index a { display: flex; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--rule); font-size: .86rem; text-decoration: none; color: var(--ink-soft); min-height: 44px; align-items: center; }
.docpage__index a::before { counter-increment: di; content: "\00A7 " counter(di); font-family: var(--serif); font-style: italic; color: var(--coral); min-width: 2rem; }
.docpage__index a:hover { color: var(--coral); }
.clause { padding: 0 0 2.4rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--rule); }
.clause h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
@media (max-width: 860px) { .docpage { grid-template-columns: minmax(0, 1fr); } .docpage__index { position: static; } }

/* ==========================================================================
   Contact — diplomatic stationery
   ========================================================================== */
.stationery { max-width: 1060px; margin: 0 auto; background: var(--white); border: 1px solid var(--rule-strong); box-shadow: 0 50px 80px -50px rgba(20, 52, 54, .5); position: relative; }
.stationery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.6rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3.5rem) 1.6rem; border-bottom: 3px double var(--sand); }
.stationery__head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
.stationery__ref { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mineral); text-align: right; line-height: 1.8; }
.stationery__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.stationery__card { padding: clamp(1.4rem, 3.5vw, 3rem); border-right: 1px solid var(--rule); background: var(--paper); }
.stationery__card .person { font-family: var(--serif); font-size: 2rem; color: var(--atlantic); line-height: 1.1; margin-bottom: 1.4rem; }
.contact-line { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--graphite); min-height: 48px; overflow-wrap: anywhere; }
.contact-line svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
.contact-line:hover { color: var(--coral); }
.stationery form { padding: clamp(1.4rem, 3.5vw, 3rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.6rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--graphite); background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); padding: .7rem 0; min-height: 48px; border-radius: 0; width: 100%; }
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23143436' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .2rem center; padding-right: 1.6rem; }
.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--rule-strong); padding: .8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--atlantic); box-shadow: 0 1px 0 var(--atlantic); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--atlantic); }
.field [aria-invalid="true"] { border-color: #A0311F; box-shadow: 0 1px 0 #A0311F; }
.field .err { font-size: .8rem; color: #A0311F; font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }
.field .hint { font-size: .78rem; color: var(--mineral); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; align-items: start; font-size: .88rem; color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--atlantic); }
.form-status { margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 3px solid var(--atlantic); background: var(--paper); font-size: .92rem; }
.form-status[hidden] { display: none; }
.form-status--error { border-color: #A0311F; }
.form-status--ok { border-color: #2C6B4F; }
@media (max-width: 860px) { .stationery__body { grid-template-columns: minmax(0, 1fr); } .stationery__card { border-right: 0; border-bottom: 1px solid var(--rule); } .stationery__ref { text-align: left; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--graphite); color: #CFC7BA; padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; position: relative; overflow: hidden; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--coral-bright); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(212, 191, 167, .2); }
.footer__sig { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--white); line-height: .95; margin-bottom: 1rem; }
.footer__sig em { color: var(--coral-bright); }
.footer__about { font-size: .88rem; color: #BDB5A8; max-width: 34ch; }
.footer h2 { font-family: var(--sans); font-size: .68rem; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--sand); margin: .35rem 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: flex; min-height: 36px; align-items: center; padding: .3rem 0; font-size: .9rem; line-height: 1.4; }
.footer__contact a { display: flex; gap: .6rem; align-items: center; min-height: 40px; font-size: .92rem; overflow-wrap: anywhere; }
.footer__contact svg { width: 16px; height: 16px; color: var(--coral-bright); flex: none; }
.footer__contact .who { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin-bottom: .4rem; display: block; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.social a { width: 44px; height: 44px; border: 1px solid rgba(212, 191, 167, .35); border-radius: 50%; display: grid; place-items: center; color: var(--paper); transition: all .25s; }
.social a:hover { background: var(--coral-bright); border-color: var(--coral-bright); color: var(--graphite); }
.social svg { width: 18px; height: 18px; }
/* Mid band and bottom row share the top grid's columns so every edge lines up. */
.footer__mid, .footer__bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); column-gap: 2.4rem; }
.footer__mid { row-gap: 2rem; align-items: start; padding-block: 2.6rem; border-bottom: 1px solid rgba(212, 191, 167, .2); }
.footer__notice { grid-column: 2 / -1; }
.footer__disclaimer { font-size: .86rem; color: #B3AA9D; margin: 0; max-width: none; line-height: 1.75; }
.social-note { font-size: .8rem; color: #A89F92; margin: .9rem 0 0; max-width: none; line-height: 1.7; }
.footer__social, .footer__notice { min-width: 0; }
.footer__bottom { row-gap: 1rem; align-items: center; padding-top: 1.6rem; font-size: .8rem; line-height: 1.5; color: #A89F92; }
.footer__bottom p { margin: 0; }
.footer__credit { grid-column: 2 / 4; }
.footer__bottom a { color: var(--sand); text-decoration: underline; text-decoration-color: rgba(212, 191, 167, .4); text-underline-offset: .2em; }
.lock-btn { justify-self: end; display: inline-flex; align-items: center; background: none; border: 1px solid rgba(212, 191, 167, .35); color: var(--sand); padding: 0 1rem; min-height: 40px; cursor: pointer; font-size: .72rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; border-radius: 99px; }
.lock-btn:hover { border-color: var(--coral-bright); color: var(--white); }
@media (max-width: 960px) {
  .footer__top, .footer__mid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__notice { grid-column: 2; }
  .footer__bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__credit { grid-column: 1; grid-row: 2; }
  .lock-btn { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  .footer__top, .footer__mid, .footer__bottom { grid-template-columns: minmax(0, 1fr); }
  .footer__notice, .footer__credit, .lock-btn { grid-column: 1; grid-row: auto; }
  .lock-btn { justify-self: start; margin-top: .4rem; }
}

/* Next-page pager */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.pager a { padding: 2.2rem var(--gutter); text-decoration: none; display: block; min-height: 44px; transition: background .3s; }
.pager a:hover { background: var(--paper-deep); }
.pager a + a { border-left: 1px solid var(--rule-strong); text-align: right; }
.pager small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--mineral); display: block; }
.pager span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--atlantic); }
@media (max-width: 600px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager a + a { border-left: 0; border-top: 1px solid var(--rule-strong); text-align: left; } }

/* Utility grids */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-7-5 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-5-7 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.center-v { align-items: center; }
@media (max-width: 860px) { .two-col, .split-7-5, .split-5-7 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 1.4rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; }
.rule-top { border-top: 1px solid var(--rule-strong); padding-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img .figure__frame::before { display: none; }
  .bars .bar-row__fill { transform: none; }
}

@media print {
  .masthead, .footer, .pager, .search-dialog, .drawer { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
