/* t20 Egypt · t20egypt.com · site stylesheet
   Brand: red #A20F17, wordmark "t20", mashrabiya texture, Inter. */

:root {
  --red: #A20F17;
  --red-deep: #6E0A0F;
  --red-ink: #4A0509;
  --red-tint: #FBEDEE;
  --ink: #1B1516;
  --ink-2: #5B5254;
  --muted: #8A8082;
  --stone: #F5F1EF;
  --line: #E7DFDD;
  --paper: #FFFFFF;
  --focus: #1B1516;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 18px 50px -24px rgba(27, 21, 22, .35);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='166' viewBox='0 0 96 166'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.2'%3E%3Cpath d='M48 3 90 27v48L48 99 6 75V27z'/%3E%3Cpath d='M48 21 74 36v30L48 81 22 66V36z'/%3E%3Cpath d='M0 86 42 110v48L0 182M96 86 54 110v48l42 24'/%3E%3Cpath d='M-14 110 12 125v30M110 110 84 125v30'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='166' viewBox='0 0 96 166'%3E%3Cg fill='none' stroke='%231B1516' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M48 3 90 27v48L48 99 6 75V27z'/%3E%3Cpath d='M48 21 74 36v30L48 81 22 66V36z'/%3E%3Cpath d='M0 86 42 110v48L0 182M96 86 54 110v48l42 24'/%3E%3Cpath d='M-14 110 12 125v30M110 110 84 125v30'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-red :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.on-red .lead { color: rgba(255,255,255,.9); }
.measure { max-width: 66ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.on-red .eyebrow { color: rgba(255,255,255,.85); }
.kb { text-transform: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.ar { font-family: "Noto Naskh Arabic", "Amiri", "Geeza Pro", "Traditional Arabic", serif; direction: rtl; unicode-bidi: isolate; }
.tabular { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.stone { background: var(--stone); }
.on-red { background: var(--red); color: #fff; }
.on-red.patterned { background-image: var(--pattern), linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%); background-size: 96px 166px, auto; }
.stone.patterned { background-image: var(--pattern-dark); background-size: 96px 166px; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.section-head .lead { margin-top: 4px; }
.grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split-center { align-items: center; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none; border: 1.5px solid transparent; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn svg[fill="currentColor"] { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-red .btn-primary { background: #fff; color: var(--red); border-color: #fff; }
.on-red .btn-primary:hover { background: var(--red-tint); border-color: var(--red-tint); color: var(--red-deep); }
.on-red .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-red .btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--red); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-red .link-arrow { color: #fff; }

/* Header */
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 200; text-decoration: none; }
.skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--red); }
.brand .wordmark { width: 64px; height: auto; }
.brand-suffix { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--stone); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav .btn { margin-left: 8px; padding: 11px 16px; font-size: .9rem; }
.nav a.btn-primary { color: #fff; background: var(--red); }
.nav a.btn-primary:hover { background: var(--red-deep); color: #fff; }
.nav-toggle { display: none; appearance: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; align-items: center; gap: 8px; }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .brand-suffix { display: none; }
}

/* Hero (home) */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: end; padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 96px); }
.hero-wordmark { width: min(100%, 520px); color: #fff; margin-bottom: 26px; }
.hero h1 { color: #fff; }
.hero-side { border-left: 1px solid rgba(255,255,255,.35); padding-left: clamp(20px, 3vw, 40px); display: grid; gap: 22px; }
.hero-side p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero-slogan { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; color: #fff; }
.hero-slogan .ar { font-size: 1.7rem; line-height: 1; }
.hero-slogan .en { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.35); padding-top: 24px; } }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.stat { padding: clamp(24px, 3vw, 36px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stat b.word { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; padding-top: .2em; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: .95rem; line-height: 1.4; max-width: 22ch; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.pillar { border-top: 3px solid var(--red); padding-top: 22px; }
.pillar h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.pillar p { color: var(--ink-2); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Rotation marker (Center / West / East) */
.rotation { display: grid; gap: 22px; }
.rotation-line { position: relative; height: 2px; background: rgba(255,255,255,.55); margin: 34px 24px 0; }
.rotation-line span { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.rotation-line span.now { width: 30px; height: 30px; background: transparent; border: 2px solid #fff; }
.rotation-line span.now::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.rotation-line label { position: absolute; top: -34px; transform: translateX(-50%); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.rotation-line small { position: absolute; top: 22px; transform: translateX(-50%); font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.8); white-space: nowrap; }
.rotation-cadence { margin-top: 48px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.rotation-cadence::before { content: ""; width: 48px; height: 1px; background: rgba(255,255,255,.7); }

/* Cards & lists */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .eyebrow { margin-bottom: 4px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.list-rule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list-rule li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.list-rule li h3 { font-size: 1.1rem; }
.list-rule li p { color: var(--ink-2); font-size: .98rem; }
.list-rule li .tag { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
@media (max-width: 720px) { .list-rule li { grid-template-columns: 1fr; gap: 8px; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checklist li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--red-tint); border: 1.5px solid var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A20F17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: center; margin-top: 2px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--paper); }
.person .initials { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.person.is-chair .initials { background: var(--ink); }
.person h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.person .role { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.person p { color: var(--ink-2); font-size: .95rem; margin-top: 8px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* Events archive */
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.year-group:last-of-type { border-bottom: 1px solid var(--line); }
.year-group .year { font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; position: sticky; top: 96px; align-self: start; }
.event { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.event + .event { margin-top: 12px; }
.event summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; }
.event summary::-webkit-details-marker { display: none; }
.event summary .when { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.event summary h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.event summary .chev { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .2s ease, background-color .2s ease; }
.event summary .chev svg { width: 14px; height: 14px; }
.event[open] summary .chev { transform: rotate(180deg); background: var(--stone); }
.event .body { padding: 0 20px 22px; color: var(--ink-2); font-size: .97rem; max-width: 72ch; }
.event .body ul { padding-left: 20px; margin: 10px 0 0; }
.event .body li + li { margin-top: 4px; }
@media (max-width: 720px) { .year-group { grid-template-columns: 1fr; gap: 12px; } .year-group .year { position: static; } }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 80px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { margin-top: 20px; }

/* Callout */
.callout { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.callout h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.callout p { color: rgba(255,255,255,.8); margin-top: 8px; max-width: 60ch; }
.callout .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.callout .btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.callout .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.callout .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.callout .btn-row { flex-direction: column; align-items: stretch; }
.callout .btn-row .btn { justify-content: center; }
@media (max-width: 760px) { .callout .btn-row { flex-direction: row; } }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; align-content: start; }
.contact-card .eyebrow { margin-bottom: 2px; }
.contact-card a.big { font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--ink); word-break: break-word; }
.contact-card a.big:hover { color: var(--red); }
.contact-card p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding-block: clamp(48px, 6vw, 72px) 32px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-brand .wordmark { width: 96px; color: #fff; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 34ch; }
.footer-slogan { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.footer-slogan .ar { font-size: 1.4rem; line-height: 1; color: #fff; }
.footer-slogan .en { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.footer-col h4 { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; font-size: .96rem; }
.footer-col p { font-size: .96rem; color: rgba(255,255,255,.8); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.prose { max-width: 66ch; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; margin: .6em 0 0; }
.prose li + li { margin-top: .35em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.figure-slogan { display: grid; place-items: center; padding: clamp(24px, 4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.figure-slogan img { width: min(100%, 440px); }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: .8rem; font-weight: 500; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--paper); }

/* Members directory */
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--stone); }
.avatar.initials { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.avatar-lg { width: 148px; height: 148px; font-size: 2.4rem; }
.on-red .avatar.initials { background: #fff; color: var(--red); }
.member h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.member h3 a { text-decoration: none; color: var(--ink); }
.member h3 a:hover { color: var(--red); }
.member .headline { color: var(--ink-2); font-size: .95rem; margin-top: 6px; }
.member-links { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.icon-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink-2); }
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover { color: #fff; background: var(--red); border-color: var(--red); }
.member-hero-grid { display: grid; grid-template-columns: 148px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.member-hero .lead { max-width: 60ch; }
@media (max-width: 900px) { .members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .members { grid-template-columns: 1fr; } .member-hero-grid { grid-template-columns: 1fr; } }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 150px 1fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.pub-meta { display: grid; gap: 8px; justify-items: start; }
.pub-meta time { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: var(--red-tint); border-radius: 999px; padding: 5px 10px; }
.pub h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.pub h3 a { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; }
.pub h3 a svg { width: 14px; height: 14px; flex: none; transform: translateY(1px); color: var(--muted); }
.pub h3 a:hover { color: var(--red); }
.pub .by { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.pub .by a { text-decoration: none; font-weight: 600; color: var(--ink); }
.pub .by a:hover { color: var(--red); }
.pub p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; max-width: 64ch; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 8px; } .pub-meta { grid-auto-flow: column; align-items: center; gap: 12px; } }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,21,22,.12); }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="file"] { font: inherit; font-size: .92rem; color: var(--ink-2); padding: 10px 0; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); margin-right: 12px; cursor: pointer; }
.field.check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.field.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.field.check label { font-weight: 500; color: var(--ink-2); }
.form .btn-row { margin-top: 24px; }
.form button.btn { font: inherit; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .field.span-2 { grid-column: auto; } }

/* Callout with two buttons */
.callout .btn-row { gap: 12px; }
.pub h3 a.ar { font-size: 1.25rem; line-height: 1.5; flex-direction: row-reverse; justify-content: flex-end; }
