/* Layout idea: one reading column; a dated record down a single rule, like a diplomatic service file. */
:root {
  --paper: #f2f5f6; --sheet: #ffffff; --ink: #12263a; --muted: #55677a;
  --strait: #0f6e7a; --brass: #9a742a; --rule: #d3dbe0;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --alt: "Noto Naskh Arabic", "Geeza Pro", serif;
}
html[lang="ar"] {
  --display: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  --body: "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --alt: "Newsreader", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1820; --sheet: #14232e; --ink: #e6edf1; --muted: #9db0bf;
    --strait: #5cc3cf; --brass: #d2ab5c; --rule: #263946; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1820; --sheet: #14232e; --ink: #e6edf1; --muted: #9db0bf;
  --strait: #5cc3cf; --brass: #d2ab5c; --rule: #263946; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
a { color: var(--strait); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.notice { border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.notice p { margin: 0; max-width: 46ch; }
.langs { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--strait); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--brass); }
header.masthead { padding: 52px 0 40px; border-bottom: 3px double var(--brass); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--strait); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 7vw, 58px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.4; }
.altname { font-family: var(--alt); font-size: 26px; color: var(--brass); margin: 12px 0 0; }
.role { font-size: 19px; margin: 18px 0 0; max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; margin: 32px 0 0; }
.k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.v { font-family: var(--display); font-size: 21px; line-height: 1.35; display: block; margin-top: 2px; }
section { padding: 44px 0; border-bottom: 1px solid var(--rule); }
h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.25; margin: 0 0 18px; text-wrap: balance; }
p { margin: 0 0 16px; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
.record { list-style: none; margin: 8px 0 0; padding: 0; border-inline-start: 2px solid var(--rule); }
.record li { position: relative; padding-block: 0 30px; padding-inline-start: 26px; }
.record li:last-child { padding-bottom: 0; }
.record li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--strait); }
.record li.key::before { background: var(--brass); border-color: var(--brass); }
.date { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--strait); font-variant-numeric: tabular-nums; }
.record h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 4px 0 6px; }
.record p { font-size: 16px; }
.src { font-size: 14px; color: var(--muted); }
.chip { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border: 1px solid var(--brass); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); vertical-align: 2px; }
html[lang="ar"] .eyebrow, html[lang="ar"] .k, html[lang="ar"] .date, html[lang="ar"] .chip { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .eyebrow, html[lang="ar"] .date { font-size: 15px; }
html[lang="ar"] .k { font-size: 14px; }
html[lang="ar"] .chip { font-size: 12px; }
.voice { background: var(--sheet); border-inline-start: 4px solid var(--brass); padding: 26px 28px; margin: 8px 0 0; }
.voice p.line { font-family: var(--display); font-size: 25px; line-height: 1.45; max-width: 30em; }
.voice p.attr { font-size: 14px; color: var(--muted); margin-top: 14px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 32px; margin-top: 8px; }
.pillars h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; margin: 0 0 6px; color: var(--strait); }
html[lang="ar"] .pillars h3 { font-size: 17px; letter-spacing: 0; }
.pillars p { font-size: 16px; }
.open { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.slot { border: 1.5px dashed var(--rule); padding: 18px 20px; min-height: 120px; color: var(--muted); font-size: 15px; }
.slot strong { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 500; margin-bottom: 6px; }
ol.sources { margin: 8px 0 0; padding-inline-start: 22px; font-size: 15px; }
ol.sources li { margin-bottom: 10px; max-width: 65ch; overflow-wrap: anywhere; }
footer { padding: 36px 0 64px; font-size: 14px; color: var(--muted); }
footer p { max-width: 60ch; }
@media (max-width: 480px) {
  header.masthead { padding-top: 36px; }
  .voice { padding: 20px; }
  .voice p.line { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
