/* Generated by scripts/fetch-fonts.mjs - do not edit by hand. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-ext-400.woff2?v=c6f09ee0e0) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-400.woff2?v=7b59d6bf7f) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-400.woff2?v=f1050dc531) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-400.woff2?v=c36f509c0a) 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-ext-500.woff2?v=311098be73) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-500.woff2?v=d524dc8ff6) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-500.woff2?v=77f03e26f9) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-500.woff2?v=a76f53ca66) 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: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-cyrillic-ext-italic-400.woff2?v=3b4368f4c0) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-cyrillic-italic-400.woff2?v=aa3307fb7c) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-ext-italic-400.woff2?v=f0d521828c) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-italic-400.woff2?v=134dc0ee94) 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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-cyrillic-ext-400-600.woff2?v=c01b3de8c8) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-cyrillic-400-600.woff2?v=5bac72520e) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-ext-400-600.woff2?v=ae1d854fef) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-400-600.woff2?v=056e4e2459) 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: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-400.woff2?v=4ed189e865) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-600.woff2?v=0ccee44455) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-devanagari-devanagari-400.woff2?v=75f06f2e46) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "IBM Plex Sans Devanagari";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-devanagari-devanagari-600.woff2?v=82ce33b12f) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "Noto Nastaliq Urdu";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/noto-nastaliq-urdu-arabic-400-700.woff2?v=7dde60c15f) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-bengali-bengali-400-600.woff2?v=d8cebde059) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-cyrillic-ext-600-700.woff2?v=4d72739b0e) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-cyrillic-600-700.woff2?v=7683b72ed3) 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 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext-600-700.woff2?v=231f594ad8) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-600-700.woff2?v=8e38e3fbd7) 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;
}

/* dicom.wiki - "a radiologist's reading room": a calm encyclopedic longread on paper, with one accent taken
   from DICOM viewer overlays (cyan marks, monospace data). Light theme by default, dark via prefers-color-scheme.
   Logical properties throughout so Arabic and Urdu mirror; diagrams keep left-to-right geometry on purpose. */

/* Tokens ------------------------------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;
  --paper: #f7f6f2;
  --surface: #fcfbf8;
  --sunken: #eeece6;
  --ink: #15171a;
  --muted: #5b616b;
  --line: #e3e0d8;
  --line-strong: #cdc8bd;
  --accent: #0b7a86;
  --accent-deep: #086b75; /* accent text on the tinted wash keeps 4.5:1 */
  --accent-wash: rgb(11 122 134 / 0.07);
  --accent-line: rgb(11 122 134 / 0.45);
  --viewer: #0a0d10;
  --viewer-edge: #1d232a;
  --overlay: #56d2de;
  --frame: #ebe9e3;
  --frame-edge: #d3cec3;
  --shadow: 0 18px 40px -18px rgb(21 23 26 / 0.28);

  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-head: var(--font-serif);
  --font-body: var(--font-sans);
  --head-weight: 600;
  --title-weight: 700;
  --lh-body: 1.65;
  --lh-head: 1.14;
  --track-head: -0.014em;
  --track-mono: 0.06em;
  --body-size: 1.0625rem;
  --script-scale: 1;

  --measure: 42rem;
  --rail: 13rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

@media (min-width: 48em) {
  :root {
    --body-size: 1.125rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0e11;
    --surface: #111418;
    --sunken: #181c21;
    --ink: #e7e9ec;
    --muted: #9aa3ae;
    --line: #23272e;
    --line-strong: #353b44;
    --accent: #56d2de;
    --accent-deep: #56d2de;
    --accent-wash: rgb(86 210 222 / 0.08);
    --accent-line: rgb(86 210 222 / 0.45);
    --viewer: #06080a;
    --viewer-edge: #2a3038;
    --frame: #12161b;
    --frame-edge: #2a3038;
    --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7);
  }
}

/* Scripts: each language gets its own face, line height and no letter-spacing where it would break shaping. */
html:lang(ar) {
  --font-body: "IBM Plex Sans Arabic", var(--font-sans);
  --font-head: var(--font-body);
  --script-scale: 1.04;
  --lh-body: 1.85;
  --lh-head: 1.45;
  --track-head: 0;
  --track-mono: 0;
}
html:lang(ur) {
  --font-body: "Noto Nastaliq Urdu", "IBM Plex Sans Arabic", var(--font-sans);
  --font-head: var(--font-body);
  --head-weight: 700;
  --lh-body: 2.3;
  --lh-head: 2;
  --track-head: 0;
  --track-mono: 0;
  --script-scale: 1.06;
}
html:lang(hi) {
  --font-body: "IBM Plex Sans Devanagari", var(--font-sans);
  --font-head: var(--font-body);
  --title-weight: 600;
  --lh-body: 1.8;
  --lh-head: 1.4;
  --track-head: 0;
}
html:lang(bn) {
  --font-body: "Noto Sans Bengali", var(--font-sans);
  --font-head: var(--font-body);
  --title-weight: 600;
  --lh-body: 1.8;
  --lh-head: 1.4;
  --track-head: 0;
}
html:lang(zh) {
  --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-head: var(--font-body);
  --title-weight: 600;
  --lh-body: 1.85;
  --lh-head: 1.35;
  --track-head: 0;
}
html:lang(de),
html:lang(ru),
html:lang(id),
html:lang(tr) {
  hyphens: auto;
}

/* Base --------------------------------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(var(--body-size) * var(--script-scale));
  line-height: var(--lh-body);
  font-kerning: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection {
  background: var(--accent-wash);
  color: var(--ink);
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: var(--lh-head);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-weight: var(--title-weight);
  font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.25rem);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 30;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  transform: translateY(-300%);
}
.skip:focus {
  transform: none;
}
.lead {
  margin: 1.1rem 0 0;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Modality badge: monospace capitals in a thin frame, like the overlay text of a viewer. */
.badge {
  display: inline-block;
  padding: 0.32em 0.5em 0.26em;
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Header ------------------------------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.header-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  min-height: 4.25rem;
  padding-block: 0.7rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-text span {
  color: var(--muted);
  font-weight: 600;
}
.mark {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  order: 3;
  width: 100%;
  font-size: 0.9375rem;
}
.site-nav a {
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current] {
  border-bottom-color: currentColor;
  color: var(--ink);
}
.lang {
  position: relative;
  margin-inline-start: auto;
}
@media (min-width: 44em) {
  .site-nav {
    order: 0;
    width: auto;
    margin-inline-start: auto;
  }
  .lang {
    margin-inline-start: 0;
  }
}

/* Language switcher: a <details> disclosure, so it works without JavaScript. */
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary:hover,
.lang[open] summary {
  border-color: var(--ink);
}
.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.chevron {
  transition: rotate 0.2s ease;
}
.lang[open] .chevron {
  rotate: 180deg;
}
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.125rem;
  width: min(23rem, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}
.lang-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.lang-menu a:hover {
  background: var(--sunken);
}
.lang-menu a[aria-current] {
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-weight: 600;
}

/* Home hero: the question as the headline, and a viewer viewport as the one visual. ---------------------- */

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.375rem, 1.45rem + 3.3vw, 3.75rem);
  line-height: 1.06;
}
html:lang(ur) .hero h1 {
  line-height: 1.8;
}
html:lang(ar) .hero h1,
html:lang(hi) .hero h1,
html:lang(bn) .hero h1,
html:lang(zh) .hero h1 {
  line-height: 1.3;
}
.hero .lead {
  margin-top: 1.5rem;
}
.hero-visual .viewer {
  width: 100%;
  max-width: 33rem;
  height: auto;
  margin-inline: auto;
}
.hero-credit {
  max-width: 33rem;
  margin: 0.5rem auto 0;
  padding-inline-start: 4.3%;
  font-size: 0.75rem;
  color: var(--muted);
}
.hero-credit a {
  color: inherit;
}
@media (min-width: 60em) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4.5rem;
  }
}

.viewer .vw-frame {
  fill: var(--frame);
  stroke: var(--frame-edge);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.viewer .vw-screen {
  fill: var(--viewer);
  stroke: var(--viewer-edge);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.viewer .vw-line {
  fill: none;
  stroke: var(--overlay);
  stroke-width: 1.25;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.viewer .vw-dashed {
  stroke-dasharray: 3 7;
  opacity: 0.5;
}
.viewer .vw-roi {
  stroke-dasharray: 4 4;
}
.viewer .vw-wl {
  stroke: var(--overlay);
  stroke-opacity: 0.5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.viewer .vw-text {
  fill: var(--overlay);
  opacity: 0.55;
}

/* Modality strip: the ten studies as the series bar of a viewer. ------------------------------------------ */

.strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.strip li {
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}
.strip li:nth-child(2n) {
  border-inline-end: 0;
}
.strip a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.85rem 0.75rem 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.strip a:hover {
  background: var(--surface);
}
.strip-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.strip-name {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
  hyphens: auto;
}
.strip a:hover .strip-name {
  color: var(--ink);
}
@media (min-width: 40em) {
  .strip ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .strip li:nth-child(2n) {
    border-inline-end: 1px solid var(--line);
  }
  .strip li:nth-child(5n) {
    border-inline-end: 0;
  }
}
@media (min-width: 72em) {
  .strip ul {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .strip li:nth-child(5n) {
    border-inline-end: 1px solid var(--line);
  }
  .strip li:nth-child(10n) {
    border-inline-end: 0;
  }
}

/* Reading layout: title and body share one edge, the table of contents hangs in the margin. --------------- */

.layout {
  padding-block-start: clamp(2rem, 5vw, 3.5rem);
}
.toc-rail {
  display: none;
}
@media (min-width: 64em) {
  .layout {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, var(--measure));
    grid-template-areas:
      ". head"
      "toc main";
    column-gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }
  .layout-head {
    grid-area: head;
  }
  .toc-rail {
    display: block;
    grid-area: toc;
  }
  .layout-main {
    grid-area: main;
    min-width: 0;
  }
  .toc-inline {
    display: none;
  }
}
.toc-rail nav {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-block: 0.25rem 1rem;
}
.toc-title {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.toc-rail ol {
  margin: 0;
  padding: 0;
  border-inline-start: 1px solid var(--line);
  list-style: none;
}
.toc-rail a {
  display: block;
  margin-inline-start: -1px;
  padding-block: 0.32rem;
  padding-inline: 0.9rem 0;
  border-inline-start: 1px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}
html:lang(ur) .toc-rail a {
  line-height: 2;
}
.toc-rail a:hover {
  border-inline-start-color: var(--ink);
  color: var(--ink);
}
.toc-inline {
  margin-block-end: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc-inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.toc-inline summary::-webkit-details-marker {
  display: none;
}
.toc-inline summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-block-end: 0.2rem;
  /* Physical sides on purpose: rotated, they draw a down chevron in both directions. */
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  rotate: 45deg;
  transition: rotate 0.2s ease;
}
.toc-inline[open] summary::after {
  rotate: 225deg;
  margin-block: 0.3rem 0;
}
.toc-inline ol {
  margin: 0;
  padding: 0.1rem 1rem 0.85rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.toc-inline a {
  display: block;
  padding-block: 0.38rem;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}
html:lang(ur) .toc-inline a {
  line-height: 2;
}

/* Prose -------------------------------------------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
}
/* :where() keeps these at the specificity of one class, so components inside the body (diagrams) win. */
.prose > :first-child {
  margin-top: 0;
}
.prose :where(p, ul, ol) {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
.prose h2 {
  margin: 2.4em 0 0.75em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.28rem + 0.9vw, 1.9375rem);
  scroll-margin-top: 1.25rem;
}
.prose h3 {
  margin: 1.9em 0 0.5em;
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  scroll-margin-top: 1.25rem;
}
html:lang(ur) .prose h2,
html:lang(ur) .prose h3 {
  line-height: 2;
}
.prose :where(ul, ol) {
  padding-inline-start: 1.35em;
}
.prose :where(ul > li, ol > li) {
  margin-block: 0.4em;
  padding-inline-start: 0.2em;
}
.prose :where(ul > li, ol > li)::marker {
  color: var(--muted);
}
.prose :where(ol > li)::marker {
  font-variant-numeric: tabular-nums;
}
.prose :where(li > ul, li > ol) {
  margin-block: 0.4em 0;
}
.prose :where(strong) {
  font-weight: 600;
}
html:lang(ar) .prose em,
html:lang(ur) .prose em,
html:lang(hi) .prose em,
html:lang(bn) .prose em,
html:lang(zh) .prose em {
  font-style: normal;
  font-weight: 600;
}
.prose :where(a) {
  overflow-wrap: anywhere;
}
.prose :where(code) {
  display: inline-block;
  max-width: 100%;
  padding: 0 0.32em;
  border-radius: 3px;
  background: var(--sunken);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.prose :where(a code) {
  color: inherit;
}
.note {
  margin: 1.6em 0;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--accent);
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
  background: var(--accent-wash);
}
.note > :last-child {
  margin-bottom: 0;
}
.note a {
  color: var(--ink);
}

/* Tables scroll inside their own frame on narrow screens; the page never scrolls sideways. */
.table-wrap {
  margin: 1.75em 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
  padding-block: 0.62rem;
  padding-inline: 0 1.1rem;
  text-align: start;
  vertical-align: top;
}
.prose th:last-child,
.prose td:last-child {
  padding-inline-end: 0;
}
.prose th {
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  vertical-align: bottom;
}
.prose td {
  border-bottom: 1px solid var(--line);
}
.prose [data-align="center"] {
  text-align: center;
}
.prose [data-align="end"] {
  text-align: end;
}
html:lang(ur) .prose table {
  line-height: 2.1;
}

/* Diagrams ----------------------------------------------------------------------------------------------- */

.dg {
  container-type: inline-size;
  margin: 2em 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: calc(1rem * var(--script-scale));
  line-height: 1.45;
}
html:lang(ur) .dg {
  line-height: 2;
}
.dg-title {
  margin-bottom: 1em;
  font-family: var(--font-head);
  font-size: 1.0625em;
  font-weight: var(--head-weight);
  letter-spacing: var(--track-head);
}
.dg code {
  padding: 0;
  background: none;
  font-size: 0.75rem;
}
.dg-name {
  font-size: 0.9375em;
  font-weight: 600;
}
.dg-note {
  color: var(--muted);
  font-size: 0.8125em;
}

/* File: a memory map with the offset or tag of each part beside it. */
.dg-rows {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  list-style: none;
}
.dg-row {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.dg-row:first-child {
  border-top: 0;
}
.dg .dg-addr {
  padding: 0.65rem 0.9rem 0;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dg-band {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.1rem 0.9rem 0.8rem;
}
@container (min-width: 30rem) {
  .dg-row {
    grid-template-columns: 7.25rem minmax(0, 1fr);
  }
  .dg .dg-addr {
    padding: 0.85rem 0.9rem;
    border-inline-end: 1px solid var(--line);
  }
  .dg-band {
    padding: 0.75rem 1rem 0.85rem;
  }
}
.dg-preamble .dg-band {
  background: repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px);
}
.dg-prefix {
  background: var(--accent-wash);
}
.dg .dg-magic {
  margin-inline-end: 0.35em;
  color: var(--accent-deep);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.dg-element {
  margin-top: 0.65rem;
}
.dg-element-title {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.8125em;
}
.dg-element-title code {
  color: var(--ink);
}
.dg-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}
@container (min-width: 36rem) {
  .dg-fields {
    grid-template-columns: 1.15fr 1fr 0.8fr 1.6fr;
  }
}
.dg-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.45rem 0.6rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.dg-field dt {
  color: var(--muted);
  font-size: 0.75em;
}
.dg-field dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0;
}
.dg-field dd code:first-child {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.dg .dg-hex {
  color: var(--accent);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.dg-pixels {
  display: block;
  height: 0.85rem;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #15191e 0 8%,
    #3a434d 8% 16%,
    #6b7783 16% 24%,
    #2a3139 24% 32%,
    #9aa6b1 32% 40%,
    #cfd7de 40% 48%,
    #7f8b96 48% 56%,
    #4b5560 56% 64%,
    #b6c0c9 64% 72%,
    #5d6874 72% 80%,
    #e6ebef 80% 88%,
    #232930 88% 100%
  );
}

/* Model: nested levels; the doubled edge under a box says "one of many". */
.dg-levels ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dg-level > li {
  padding: 0.7rem 0.85rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
}
.dg-level .dg-level {
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
}
.dg-study > li,
.dg-instance > li {
  background: var(--surface);
  box-shadow:
    0 5px 0 -1px var(--surface),
    0 5px 0 0 var(--line-strong);
}
.dg-series > li {
  background: var(--paper);
  box-shadow:
    0 5px 0 -1px var(--paper),
    0 5px 0 0 var(--line-strong);
}
.dg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  margin: 0;
}
.dg .dg-key {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.dg-levels .dg-note {
  margin: 0.1rem 0 0;
}
.dg-files {
  display: block;
  height: 1.6rem;
  margin-top: 0.6rem;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 1px, transparent 1px 6px);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

/* Article ------------------------------------------------------------------------------------------------ */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.article-head {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.modality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.modality-label {
  margin-inline-end: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.article-figure {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}
/* Illustrations: line drawings on a flat light plate (#eceae4, close to --sunken). The frame has the plate
   color, so a picture that is still loading shows the same panel. */
.article-figure,
.card-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sunken);
}
.article-figure img,
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Dark theme: the drawing turns negative, light lines on a dark panel like a viewer screen. hue-rotate() after
   invert() brings the cyan accent back, brightness() takes the brightest lines down to about --ink. The turned
   plate is darker than --sunken in every channel, so "lighten" swaps it for --sunken itself: the panel is the
   theme's own surface, never a muddy version of the warm plate. (--surface would not do: it is darker than the
   turned plate in red, which would tint the panel.) */
@media (prefers-color-scheme: dark) {
  .article-figure,
  .card-media {
    isolation: isolate;
  }
  .article-figure img,
  .card-media img {
    filter: invert(1) hue-rotate(180deg) brightness(0.9);
    mix-blend-mode: lighten;
  }
}
.article-foot {
  max-width: var(--measure);
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-foot p {
  margin: 0 0 0.6rem;
}

/* Cards -------------------------------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
}
.card-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
}
.card-title a {
  color: var(--ink);
  text-decoration: none;
}
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-title a:focus-visible {
  outline: none;
}
.card-title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: var(--radius);
}
.card:hover .card-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.card-summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
html:lang(ur) .card-summary {
  line-height: 2.1;
}
@media (min-width: 40em) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 52em) {
  .cards-wide {
    column-gap: 3rem;
  }
  .cards-wide .card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .cards-wide .card-media {
    flex: none;
    width: 42%;
  }
  .cards-wide .card-body {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
  }
}
.cards-compact {
  gap: 0;
  border-top: 1px solid var(--line);
}
.cards-compact .card {
  padding-block: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.cards-compact .card-title {
  font-size: 1.1875rem;
}
.cards-compact .card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
@media (min-width: 40em) {
  .cards-compact {
    column-gap: 2rem;
  }
}
@media (min-width: 64em) {
  .cards-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

/* Sections, index head, pager ---------------------------------------------------------------------------- */

.studies-section,
.more {
  padding-block-start: clamp(3.5rem, 8vw, 5.5rem);
}
.studies-section > h2,
.more > h2 {
  margin: 0;
  font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem);
}
.section-lead {
  max-width: 40em;
  margin: 0.6rem 0 2.25rem;
  color: var(--muted);
}
.more > h2 {
  margin-bottom: 1.5rem;
}
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.25rem);
}
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.pager a[rel="next"] {
  grid-column: 2;
  align-items: flex-end;
  text-align: end;
}
.pager-label {
  color: var(--muted);
  font-size: 0.875rem;
}
.pager-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: var(--head-weight);
  letter-spacing: var(--track-head);
  line-height: var(--lh-head);
}
.pager a:hover .pager-title {
  color: var(--accent);
}

/* Not found ---------------------------------------------------------------------------------------------- */

.notfound {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 9vw, 6.5rem) 1rem;
}
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.notfound-visual .viewer {
  width: 100%;
  max-width: 26rem;
  height: auto;
}
@media (min-width: 52em) {
  .notfound {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 4rem;
  }
}

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

.site-footer {
  margin-top: clamp(4.5rem, 9vw, 7rem);
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
html:lang(ur) .site-footer {
  line-height: 2.1;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-about .wordmark {
  margin-bottom: 1.1rem;
}
.footer-about p {
  max-width: 40em;
  margin: 0 0 0.75rem;
}
.footer-about .footer-tagline {
  color: var(--ink);
}
.footer-title {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-weight: 600;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li a {
  display: inline-block;
  padding-block: 0.2rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer li a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer li a[aria-current] {
  color: var(--ink);
}
.footer-langs ul {
  columns: 2;
  column-gap: 1.5rem;
}
.footer-base {
  margin-top: 2.5rem;
}
.footer-base p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.9fr);
    gap: 3rem;
  }
}

/* Motion and print --------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header nav,
  .lang,
  .toc-rail,
  .toc-inline,
  .strip,
  .studies-section,
  .more,
  .footer-studies,
  .footer-langs,
  .hero-visual {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
