/* Anglo Futurist Manifesto — site styles, built from the design file.
   Colours and type are set once here; change a value in :root to change it everywhere. */

/* Fonts are served from this site (no third-party requests). All are under the SIL Open Font Licence 1.1. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.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: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }


:root {
  --accent: #4D9FFF;
  --night: #05070D;
  --night-2: #0A0E17;
  --night-3: #0C111B;
  --paper: #F2F4F7;
  --paper-2: #E6E9EE;
  --white: #FFFFFF;
  --ink: #0B0F17;
  --ink-2: #2B3340;
  --grey: #4B5563;
  --grey-2: #6B7280;
  --rule: #D5DAE1;
  --rule-2: #E5E8EC;
  --light: #EEF2F7;
  --light-2: #B9C3D1;
  --light-3: #9AA6B8;
  --light-4: #8A96A8;
  --line: rgba(238, 242, 247, 0.14);
  --line-2: rgba(238, 242, 247, 0.10);
  --blue: #0B5FD9;
  --blue-dark: #0B4AAD;
  --blue-wash: #E3EDFB;
  --red: #E4002B;
  --gutter: 32px;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); background: var(--night); color: var(--light); line-height: 1.5; }
body.light-page { background: var(--paper); color: var(--ink); }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #8CC2FF; }
.light-page a { color: var(--blue); }
.light-page a:hover { color: var(--blue-dark); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); color: var(--ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.blue { color: var(--blue); }
.muted { color: var(--light-3); }
.light .muted, .light-page .muted { color: var(--grey); }
.muted-2 { color: var(--light-2); }
.dim { color: var(--light-3); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-mid { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.stack-16, .stack-24, .stack-32, .stack-36, .stack-40, .stack-48, .stack-56 { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; } .stack-24 { gap: 24px; } .stack-32 { gap: 32px; } .stack-36 { gap: 36px; }
.stack-40 { gap: 40px; } .stack-48 { gap: 48px; } .stack-56 { gap: 56px; }

/* ---------------------------------------------------------------- type */
.display-xl, .display-lg, .display-md, .display-sm, .display-essay, .display-paper,
.prog-card-title, .next-title, .pn-title, .paper-title, .connect-title, .stat-value {
  font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: -0.015em; margin: 0;
}
.display-xl { font-weight: 800; font-size: clamp(44px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.04; }
.display-md { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.1; }
.display-sm { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.display-essay { font-size: clamp(44px, 6.2vw, 73px); line-height: 0.98; }
.display-paper { font-size: clamp(min(36px, 8.6vw), 5.2vw, 64px); line-height: 1.02; max-width: 920px; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; color: var(--accent); }
.eyebrow.blue { color: var(--blue); }
.eyebrow-sm { font-size: 12px; letter-spacing: 0.16em; color: var(--accent); padding-bottom: 8px; }
.label-accent { font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.label { font-size: 12px; letter-spacing: 0.12em; color: var(--light-2); }

/* ---------------------------------------------------------------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.btn-red { background: var(--red); color: var(--white) !important; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; }
.btn-red:hover { background: #C40025; }
.btn-ghost { border: 1px solid rgba(238, 242, 247, 0.4); color: var(--light) !important; text-decoration: none; border-radius: 2px; }
.btn-ghost:hover { border-color: var(--light); }
.btn-lg { font-size: 14px; letter-spacing: 0.02em; padding: 16px 22px; display: inline-block; }
.btn-ghost.btn-lg { padding: 15px 22px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }

/* ---------------------------------------------------------------- header */
.topbar { border-bottom: 1px solid rgba(238, 242, 247, 0.12); background: var(--night); }
.topbar-inner { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: 0.12em; color: var(--light-3); }
.topbar-dot { display: flex; align-items: center; gap: 10px; }
.topbar-dot span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .topbar-meta { display: none; } }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 13, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(238, 242, 247, 0.12); }
.header-inner { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--light) !important; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 17px; letter-spacing: 0.04em; line-height: 1; }
.brand-sub { font-size: 11px; letter-spacing: 0.24em; color: var(--light-3); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 13px; letter-spacing: 0.04em; }
.main-nav a { color: var(--light) !important; text-decoration: none; padding: 12px 0; }
.main-nav a:hover { color: var(--accent) !important; }
.main-nav a[aria-current="page"] { color: var(--accent) !important; border-bottom: 1px solid var(--accent); }
.main-nav .nav-cta { padding: 12px 18px; color: var(--white) !important; }
.main-nav .nav-cta:hover { color: var(--white) !important; }
.main-nav .nav-cta[aria-current="page"] { color: var(--white) !important; border-bottom: 0; }
@media (max-width: 900px) {
  .header-inner { padding-top: 12px; padding-bottom: 8px; }
  .main-nav { width: 100%; gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; padding: 10px 0; }
  .main-nav .nav-cta, .main-nav .nav-cta:hover { background: none; padding: 10px 0; color: var(--light) !important; }
  .main-nav .nav-cta[aria-current="page"] { color: var(--accent) !important; border-bottom: 1px solid var(--accent); }
}

/* ---------------------------------------------------------------- home: hero */
.hero { position: relative; }
.hero-img { display: block; width: 100%; height: clamp(360px, 53vw, 760px); object-fit: cover; object-position: center 40%; }
.hero-card-wrap { margin-top: -150px; position: relative; }
.hero-card { background: var(--night); max-width: 860px; padding: 48px 48px 44px; border: 1px solid var(--line); border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 24px; }
.hero-card .display-xl .accent { display: block; font-size: 0.66em; line-height: 1.1; margin-top: 0.12em; }
.hero-text { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--light-2); max-width: 660px; }
@media (max-width: 720px) {
  .hero-card-wrap { margin-top: -80px; }
  .hero-card { padding: 28px 22px 26px; gap: 18px; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec-tight { padding: clamp(64px, 7.5vw, 104px) 0; }
.light { background: var(--paper); color: var(--ink); }
.light a { color: var(--blue); }
.sec-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.sec-head-main { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.sec-head-text { margin: 0; max-width: 420px; font-size: 18px; line-height: 1.6; }

.section-links a { color: var(--ink) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.section-links a:hover { color: var(--blue) !important; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card-cell p { margin: 0; font-size: 17px; line-height: 1.6; }
.card-link { font-size: 13px; padding: 10px 0; margin-top: auto; text-decoration: none; }
@media (max-width: 720px) { .card-cell { padding: 24px 20px; } }

/* programme cards */
.prog-section { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 2px solid var(--ink); }
.prog-section-head { display: flex; flex-wrap: wrap; gap: 12px 64px; justify-content: space-between; align-items: baseline; }
.prog-section-head h3 { flex: 0 1 auto; }
.prog-section-head p { margin: 0; flex: 1 1 420px; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--grey); }
.prog-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.prog-cards > * { min-width: 0; }
@media (min-width: 900px) { .prog-cards-4, .prog-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prog-card { background: var(--night); color: var(--light) !important; text-decoration: none; padding: 36px; display: flex; flex-direction: column; gap: 16px; border-radius: 4px; transition: transform .15s ease, box-shadow .15s ease; }
.prog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(5, 7, 13, 0.25); color: var(--light) !important; }
.prog-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.16em; }
.chip { border: 1px solid rgba(238, 242, 247, 0.3); color: var(--light); padding: 5px 10px; border-radius: 2px; white-space: nowrap; }
.prog-card-title { font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -0.02em; }
.prog-card-text { font-size: 17px; line-height: 1.6; color: var(--light-2); }
.prog-card-list { display: flex; flex-direction: column; font-size: 13px; border-top: 1px solid rgba(238, 242, 247, 0.16); }
.prog-card-list span { padding: 10px 0; border-bottom: 1px solid var(--line-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.prog-card-list span:last-child { border-bottom: 0; }
.prog-card-cta { font-size: 14px; padding-top: 4px; margin-top: auto; }
@media (max-width: 720px) { .prog-card { padding: 26px 22px; } }

/* numbers */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.stat:hover { background: var(--night-2); }
.stat-value { font-size: clamp(44px, 4.6vw, 56px); line-height: 1; color: var(--accent); }
.stat-label { font-size: 16px; line-height: 1.5; color: var(--light-2); }
.stat-source { font-size: 12px; color: var(--light-3); margin-top: auto; }

/* quote */
.quote-band { border-top: 1px solid rgba(238, 242, 247, 0.12); border-bottom: 1px solid rgba(238, 242, 247, 0.12); padding: clamp(72px, 9vw, 120px) 0; background: var(--night-2); }
.big-quote { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.quote-rule { display: block; width: 64px; height: 3px; background: var(--red); }
.big-quote blockquote { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; color: var(--light); }
.big-quote figcaption { font-size: 13px; letter-spacing: 0.06em; color: var(--light-3); }

/* reading order */
.reading-order { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.reading-order li { border-top: 2px solid var(--ink); padding: 20px 24px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.reading-order li span { font-size: 12px; }
.reading-order li a { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink) !important; text-decoration: none; }
.reading-order li a:hover { color: var(--blue) !important; }

/* ---------------------------------------------------------------- footers */
.footer-full { background: var(--white); color: var(--ink); padding: 96px 0 40px; }
.footer-full .muted, .footer-full .label { color: var(--grey); }
.footer-full .eyebrow-sm { color: var(--blue); }
.footer-full-inner { display: flex; flex-direction: column; gap: 64px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 80px; justify-content: space-between; }
.subscribe { flex: 1 1 360px; max-width: 540px; display: flex; flex-direction: column; gap: 16px; }
.subscribe p { margin: 0; font-size: 17px; line-height: 1.6; }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); font-family: var(--sans); font-size: 17px; }
.subscribe button { height: 52px; padding: 0 22px; font-size: 14px; }
.footer-navs { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--grey-2); }
.footer-slim { background: var(--night-2); color: var(--light-4); padding: 32px 0; }
.footer-slim-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }
.footer-slim a { color: var(--accent) !important; }

/* ---------------------------------------------------------------- essay and brief hero */
.essay-hero { background: var(--night); color: var(--light); }
.essay-hero-inner { max-width: 1000px; margin: 0 auto; padding: clamp(72px, 9vw, 112px) var(--gutter) 72px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.standfirst { margin: 0; max-width: 680px; font-style: italic; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--light-2); }
.meta-light { margin: 0; font-size: 13px; letter-spacing: 0.06em; color: var(--light-3); }
.parts-nav { border-top: 1px solid var(--line); }
.parts-nav-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; font-size: 13px; letter-spacing: 0.04em; }
.parts-nav a { flex: 1 1 200px; text-align: center; padding: 18px 12px; color: var(--light-4) !important; text-decoration: none; border-bottom: 3px solid transparent; }
.parts-nav a:hover { color: var(--light) !important; }
.parts-nav a[aria-current="page"] { color: var(--light) !important; border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- reading layout */
.reading { padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 96px); }
.sec-pad { padding: clamp(56px, 7vw, 96px) 0 48px; }
.sec-pad-bottom { padding: 24px 0 clamp(64px, 8vw, 104px); }
.reading-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.toc { flex: 1 1 200px; max-width: 240px; align-self: stretch; font-size: 13px; }
.toc-sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 128px); overflow-y: auto; }
.toc-label { font-size: 12px; letter-spacing: 0.16em; padding-bottom: 10px; }
.toc-links { display: flex; flex-direction: column; }
.toc-links a { color: var(--grey) !important; text-decoration: none; padding: 8px 0 8px 14px; border-left: 2px solid var(--rule); line-height: 1.35; }
.toc-links a:hover, .toc-links a.active { color: var(--ink) !important; border-left-color: var(--ink); }
.toc-tools { padding-top: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--grey); }
.toc-tools a, .toc-tools .link-btn { padding: 8px 0; color: var(--blue); }
@media (max-width: 860px) {
  .toc { max-width: none; flex-basis: 100%; }
  .toc-sticky { position: static; max-height: none; }
  .toc-links { display: none; }
  .toc-tools { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding-top: 0; }
  .toc-label { display: none; }
  .reading-inner { gap: 24px; }
}

/* ---------------------------------------------------------------- prose */
.prose { flex: 999 1 560px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 24px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--ink); }
.prose-essay { font-size: clamp(18px, 1.6vw, 21px); gap: 26px; }
.prose > * { margin: 0; }
.prose h2 { font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: -0.015em; font-size: clamp(26px, 2.8vw, 32px); line-height: 1.12; margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-top: 16px; }
.prose h4, .prose h5 { font-family: var(--sans); font-weight: 600; font-size: 1em; margin-top: 8px; }
.h-num { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--blue); vertical-align: middle; padding-right: 12px; letter-spacing: 0; }
.h-code { font-family: var(--mono); font-size: 0.72em; font-weight: 500; color: var(--blue); padding-right: 10px; letter-spacing: 0; font-stretch: 100%; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose li > p { margin: 0; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 8px 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 0.92em; }
.prose blockquote p { margin: 0 0 12px; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); }
.prose-essay > p:first-of-type { display: flow-root; }
.prose-essay > p:first-of-type::first-letter { float: left; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 78px; line-height: 0.82; padding: 8px 14px 0 0; color: var(--red); }

/* figures from the papers */
.prose .fig { margin: 8px 0 0; background: var(--white); border: 1px solid var(--rule); padding: 16px; }
.prose .fig img { display: block; width: 100%; height: auto; }
.prose .fig-caption { margin-top: 0 !important; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--grey); }
.prose .fig + .fig-caption { margin-top: -12px !important; }

/* tables: full width of the column, scroll sideways on small screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); margin: 8px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: var(--white); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); background: var(--paper-2); }
.prose td:first-child { font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) { .prose table { min-width: 560px; font-size: 14px; } }

.next-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px !important; }
.next-dark, .next-light { flex: 1 1 280px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.next-dark { background: var(--night); color: var(--light) !important; }
.next-light { border: 1px solid var(--ink); color: var(--ink) !important; }
.next-dark:hover, .next-light:hover { transform: translateY(-2px); }
.next-title { font-size: 26px; line-height: 1.15; }
.next-cards .mono { font-size: 13px; }
.next-cards .label-accent, .next-cards .blue { font-size: 12px; letter-spacing: 0.16em; }

/* ---------------------------------------------------------------- programme hub */
.pillar-hero { background: var(--night); color: var(--light); }
.pillar-hero-inner { padding-top: clamp(64px, 8vw, 88px); padding-bottom: clamp(64px, 8vw, 96px); display: flex; flex-direction: column; gap: 22px; max-width: 1280px; }
.crumbs { font-size: 12px; letter-spacing: 0.16em; color: var(--light-3); text-transform: uppercase; line-height: 1.8; }
.crumbs a { color: var(--light-3) !important; }
.tagline { margin: 0; font-style: italic; font-size: clamp(22px, 2.4vw, 28px); }
.pillar-summary { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--light-2); }
.pillar-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--light-3); }
.brief-heading { font-size: clamp(26px, 2.8vw, 32px) !important; }

.paper-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.paper-list li { border-bottom: 1px solid var(--rule); }
.paper-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 24px 0; color: var(--ink) !important; text-decoration: none; }
.paper-list a:hover .paper-title { color: var(--blue); }
.paper-n { flex: 0 0 64px; font-size: 28px; }
.paper-main { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.paper-title { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; }
.paper-desc { font-size: 17px; line-height: 1.5; color: var(--grey); }
.paper-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 24px; font-size: 13px; }
.arrow { font-size: 20px; }
@media (max-width: 720px) { .paper-n { flex-basis: 100%; font-size: 20px; } .paper-meta { display: none; } .paper-list a { gap: 6px; } }

.connects { background: var(--night); color: var(--light); padding: clamp(64px, 8vw, 88px) 0 clamp(72px, 8vw, 96px); }
.connects-row { display: flex; flex-wrap: wrap; gap: 24px; }
.connect { flex: 1 1 280px; border-top: 2px solid var(--accent); padding: 24px 0; color: var(--light) !important; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.connect:hover .connect-title { color: var(--accent); }
.connect-title { font-size: 24px; line-height: 1.15; }
.connect .dim { font-size: 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- paper page */
.subbar { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.subbar-inner { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.subbar-crumb { letter-spacing: 0.12em; }
.num-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.num-nav a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #B3BAC5; color: var(--ink) !important; text-decoration: none; }
.num-nav a:hover { border-color: var(--ink); }
.num-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--light) !important; }
.paper-hero { padding: clamp(56px, 7vw, 80px) 0 56px; }
.paper-standfirst { margin: 0; max-width: 780px; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.5; color: var(--ink-2); }
.paper-meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--ink); }
.paper-meta-row > .mono { font-size: 13px; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.tool-buttons a, .tool-buttons .link-btn { border: 1px solid var(--ink); color: var(--ink) !important; text-decoration: none; padding: 12px 16px; }
.tool-buttons a:hover, .tool-buttons .link-btn:hover { background: var(--ink); color: var(--paper) !important; }
.reading-paper { padding-top: 0; }

.brief-band { padding: 0 0 72px; }
.brief-box { background: var(--night); color: var(--light); padding: 40px; display: flex; flex-direction: column; gap: 28px; border-top: 3px solid var(--accent); }
.brief-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.brief-cols > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.brief-cols p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--light-2); }

.prevnext { border-top: 1px solid var(--rule); }
.prevnext-inner { display: flex; flex-wrap: wrap; }
.prevnext a { flex: 1 1 320px; padding: 36px 24px 36px 0; color: var(--ink) !important; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.prevnext .pn-next { padding: 36px 0 36px 24px; align-items: flex-end; text-align: right; border-left: 1px solid var(--rule); }
.prevnext .mono { font-size: 12px; letter-spacing: 0.12em; }
.pn-title { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; }
.prevnext a:hover .pn-title { color: var(--blue); }
@media (max-width: 720px) { .prevnext .pn-next { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }

/* ---------------------------------------------------------------- programme in brief */
.section-intro { font-size: 1.05em; color: var(--ink-2); font-style: italic; }
.read-more { font-size: 14px; }
.read-more a { text-decoration: none; }
.closing { margin: 40px 0 0 !important; display: flex; flex-direction: column; gap: 24px; }
.closing blockquote { margin: 0; padding: 0; border: 0; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--light); font-family: var(--mono); font-size: 13px; padding: 12px 18px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- print and PDF
   The downloadable PDFs are made from the web pages using these rules, so they always match. */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 18mm 18mm 20mm; }
  html { scroll-padding-top: 0; }
  body, body.light-page { background: #fff !important; color: var(--ink); font-size: 10.5pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .topbar, .subbar, .toc, .prevnext, footer, .tool-buttons, .toc-tools, .parts-nav,
  .next-cards, .toast, .skip, .read-more, .btn-row { display: none !important; }
  .print-only { display: block; }
  .print-mast { font-family: var(--mono); font-size: 8pt; letter-spacing: 0.18em; color: var(--blue); border-bottom: 1px solid var(--ink); padding-bottom: 6pt; margin-bottom: 18pt; display: flex; justify-content: space-between; }

  /* title block */
  .essay-hero, .paper-hero { background: #fff !important; color: var(--ink) !important; padding: 0 0 14pt !important; border-bottom: 2px solid var(--ink); margin-bottom: 18pt; }
  .essay-hero-inner { padding: 0 !important; align-items: flex-start; text-align: left; gap: 10pt; max-width: none; }
  .wrap-mid, .wrap, .reading-inner { max-width: none; padding: 0; margin: 0; }
  .paper-hero .stack-24 { gap: 10pt; }
  .eyebrow { color: var(--blue) !important; font-size: 8pt; }
  .display-essay, .display-paper { font-size: 28pt; line-height: 1.05; color: var(--ink); }
  .standfirst, .paper-standfirst { color: var(--ink-2) !important; font-size: 13pt; max-width: none; }
  .meta-light { color: var(--grey) !important; font-size: 8.5pt; }
  .paper-meta-row { border-top: 0; padding-top: 0; }
  .paper-meta-row > .mono { font-size: 8.5pt; }

  /* body text */
  .reading, .reading-paper, .sec-pad { padding: 0 !important; }
  .reading-inner { display: block; }
  .prose, .prose-essay { max-width: none; font-size: 10.5pt; line-height: 1.55; gap: 8pt; display: block; }
  .prose > * + * { margin-top: 8pt; }
  .prose h2 { font-size: 16pt; margin-top: 20pt !important; break-after: avoid; page-break-after: avoid; }
  .prose h3 { font-size: 12.5pt; margin-top: 14pt !important; break-after: avoid; page-break-after: avoid; }
  .prose h4, .prose h5 { break-after: avoid; }
  .h-num { font-size: 11pt; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .prose a { color: inherit; text-decoration: none; }
  .prose-essay > p:first-of-type::first-letter { font-size: 44pt; padding: 4pt 8pt 0 0; }
  .prose blockquote { break-inside: avoid; }
  .table-wrap { overflow: visible; break-inside: auto; }
  .prose table { font-size: 8.5pt; min-width: 0 !important; }
  .prose th { font-size: 7pt; }
  .prose th, .prose td { padding: 5pt 6pt; }
  .prose tr { break-inside: avoid; page-break-inside: avoid; }
  .prose thead { display: table-header-group; }
  .prose .fig { break-inside: avoid; padding: 6pt; }
  .prose .fig-caption { font-size: 8pt; }
  .brief-band { padding: 0 0 14pt; }
  .brief-box { padding: 14pt; break-inside: avoid; }
  .section-intro { font-size: 11pt; }
  .closing blockquote { font-size: 15pt; }
}
