/* The Balloon History Archive design system.
   Palette: deep navy for navigation and editorial sections, archival ivory for museum pages, antique brass as a sparing accent,
   charcoal text, warm stone rules. Type: Libre Baskerville for headlines, Source Sans 3 for text, IBM Plex Mono for identifiers. */
:root {
  --navy: #152B3C; --navy-2: #0E1E2B; --navy-3: #1F3A4F;
  --ivory: #F7F4ED; --ivory-2: #EFEAE0;
  --brass: #B09261; --brass-2: #8F7449; --brass-3: #D7C49E;
  --charcoal: #292D30; --stone: #DED9CE; --stone-2: #C9C2B4;
  --paper: #FFFFFF;
  --tint: #F7F4ED;
  --tint-2: #EFEAE0;
  --ink: #292D30;
  --ink-2: #4F545A;
  --ink-3: #7C8288;
  --rule: #DED9CE;
  --link: #1F3A4F;
  --link-2: #152B3C;
  --accent: #152B3C;
  --accent-2: #0E1E2B;
  --dark: #152B3C;
  --ok-bg: #E7F3EA; --ok-fg: #1F6B35;
  --serif: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --display: var(--serif);
  --body: var(--sans);
  --ui: var(--sans);
  --wrap: 1360px;
  --measure: 720px;
  --gutter: 24px;
  --radius: 4px;
  --t: 180ms ease;
  /* legacy names still used in markup */
  --sky: var(--paper); --ink-soft: var(--ink-2); --rule-soft: var(--rule); --red: var(--link); --red-deep: var(--link-2); --gold: var(--brass); --blue: var(--link); --blue-deep: var(--link-2); --cream: var(--ivory);
  /* story pages share the palette */
  --st-navy: #152B3C; --st-yellow: #F7F4ED; --st-blue: #B09261; --st-sand: #F7F4ED; --st-font: var(--serif);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .45em; letter-spacing: 0; color: var(--ink); }
h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 20px; }
.mono, .reg, code { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-2); margin: 0 0 10px; }
p { margin: 0 0 1em; max-width: 68ch; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }

/* Masthead: brand, five destinations with menus, universal search */
.masthead { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.08); }
.masthead-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.nav .mobile-search { display: none; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; color: var(--brass-3); }
.brand img { width: 40px; height: 40px; display: block; border-radius: 50%; }
.nav { display: flex; gap: 2px; margin-left: 8px; align-items: stretch; }
.navg { position: relative; }
.navg > a, .navg > button { font: 600 15px/1 var(--sans); color: rgba(255,255,255,.88); background: transparent; border: 0; padding: 25px 13px 23px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.navg > a:hover, .navg > button:hover, .navg.open > button { color: #fff; text-decoration: none; }
.navg.on > a, .navg.on > button { border-bottom-color: var(--brass); color: #fff; }
.navg > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.navg .menu { display: none; position: absolute; left: 0; top: 100%; min-width: 280px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-top: 2px solid var(--brass); box-shadow: 0 16px 40px rgba(14,30,43,.18); padding: 10px 0; z-index: 40; }
.navg.open .menu { display: block; }
.navg .menu a { display: block; padding: 10px 18px; color: var(--ink); font-size: 15px; font-weight: 600; }
.navg .menu a small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.navg .menu a:hover { background: var(--ivory); text-decoration: none; }
.navg .menu .menu-head { padding: 8px 18px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-2); }
.head-search { margin-left: auto; display: flex; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); height: 40px; width: 300px; transition: width var(--t), background var(--t); }
.head-search:focus-within { background: #fff; width: 380px; }
.head-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 12px; font-size: 15px; outline: none; }
.head-search:focus-within input { color: var(--ink); }
.head-search input::placeholder { color: rgba(255,255,255,.7); }
.head-search:focus-within input::placeholder { color: var(--ink-3); }
.head-search button { border: 0; background: transparent; color: inherit; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.head-search:focus-within button { color: var(--navy); }
.head-search svg { width: 18px; height: 18px; }
.curator-link { font-size: 13px; color: rgba(255,255,255,.6); margin-left: 8px; white-space: nowrap; }

/* Home: photograph header with the search */
.hero-photo { position: relative; min-height: min(72vh, 680px); background-size: cover; background-position: center 40%; background-color: var(--dark); color: #fff; display: flex; align-items: flex-end; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.15) 0%, rgba(10,14,20,.25) 40%, rgba(10,14,20,.82) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 48px; }
.hero-photo h1 { color: #fff; max-width: 16ch; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-photo p.lede { color: rgba(255,255,255,.88); font-size: 19px; max-width: 58ch; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.hero-credit:hover { color: #fff; }
.search-big { display: flex; border: 0; background: var(--paper); margin: 28px 0 12px; max-width: 680px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.search-big:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 10px 40px rgba(0,0,0,.35); }
.search-big input { flex: 1; border: 0; background: transparent; padding: 16px 18px; font-size: 18px; min-width: 0; outline: none; color: var(--ink); }
.search-big input::placeholder { color: var(--ink-3); }
.search-big button { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0 26px; cursor: pointer; }
.search-big button:hover { background: var(--accent-2); }
.hero-photo .hint { font-size: 14.5px; color: rgba(255,255,255,.8); max-width: 70ch; }
.hero-photo .hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 22px 0 18px; list-style: none; font-size: 14px; color: var(--ink-2); }
.counts b { color: var(--ink); font-weight: 800; font-size: 20px; margin-right: 6px; letter-spacing: -0.02em; }

/* Home sections */
.home-sec { padding: 48px 0; border-top: 1px solid var(--rule); }
.home-sec.tinted { background: var(--tint); border-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2, .sec-title { margin: 0; }
.sec-head a.all { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sec-lede { color: var(--ink-2); margin: -10px 0 20px; }
.sampler { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.tile { color: var(--ink); display: block; }
.tile img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--tint); }
.tile .cap { font-size: 14px; line-height: 1.35; margin-top: 9px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .cap small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; margin-top: 2px; }
.tile:hover { text-decoration: none; } .tile:hover .cap { text-decoration: underline; text-underline-offset: 3px; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.slide { color: var(--ink); display: block; }
.slide img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--tint); }
.slide .cap { font-size: 14px; line-height: 1.35; margin-top: 9px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide:hover { text-decoration: none; } .slide:hover .cap { text-decoration: underline; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 48px; }
.home-grid h3 { margin-bottom: 10px; }
.home-grid p { font-size: 15px; color: var(--ink-2); }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-top: 1px solid var(--rule); }
.linklist li:last-child { border-bottom: 1px solid var(--rule); }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--ink); font-size: 15px; }
.linklist a small { color: var(--ink-3); font-size: 13px; }
.linklist a:hover { color: var(--link); text-decoration: none; }

/* Chips: quiet grey filters */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chip { font-size: 13.5px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 5px 10px; cursor: pointer; line-height: 1.3; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: var(--ink-3); margin-left: 4px; }
.chip.on small { color: #c9ccd1; }

/* Search */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-block: 32px 80px; }
.rail { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.rail h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.rail h4:first-child { margin-top: 0; }
.rail .chips { gap: 4px; }
.rail .chip { font-size: 13px; padding: 3px 8px; border-color: transparent; background: var(--tint); }
.rail .chip:hover { background: var(--tint-2); }
.rail .chip.on { background: var(--ink); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.toolbar .q { flex: 1 1 320px; display: flex; border: 2px solid var(--ink); background: var(--paper); }
.toolbar .q input { flex: 1; border: 0; background: transparent; padding: 10px 14px; font-size: 16px; outline: none; min-width: 0; }
.toolbar .q button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--ink); font-size: 18px; }
.toolbar input[type=text] { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 8px 10px; font-size: 14px; width: 150px; }
.toolbar select { border: 1px solid var(--rule); background: var(--paper); padding: 8px 10px; font-size: 14px; color: var(--ink); }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { background: var(--tint); border-color: transparent; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 20px; }
.results.list { grid-template-columns: 1fr; gap: 0; }
.card { color: var(--ink); display: grid; grid-template-rows: auto 1fr; gap: 0; }
.card:hover { text-decoration: none; } .card:hover .ttl { text-decoration: underline; text-underline-offset: 3px; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--tint); }
.card .doc { aspect-ratio: 4 / 3; width: 100%; background: var(--tint); display: grid; place-items: center; font-size: 12px; color: var(--ink-2); position: relative; overflow: hidden; }
.card .doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .doc span { position: relative; background: var(--paper); padding: 3px 8px; font-weight: 600; }
.card .meta { font-size: 13px; color: var(--ink-3); margin: 10px 0 3px; }
.card .ttl { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .reg { display: inline-block; font-weight: 700; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.results.list .card { grid-template-columns: 150px 1fr; grid-template-rows: none; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.results.list .card:last-child { border-bottom: 1px solid var(--rule); }
.results.list .card .meta { margin-top: 0; }
.results.list .card .ttl { -webkit-line-clamp: 2; font-size: 17px; }
.results.list .card .ds { font-size: 15px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { display: block; margin: 36px auto 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 11px 26px; font-weight: 700; cursor: pointer; }
.more:hover { background: var(--ink); color: #fff; }
.empty { padding-block: 48px; color: var(--ink-2); }
.empty h3 { color: var(--ink); }

/* Item page */
.item { padding-block: 28px 80px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .85fr); gap: 56px; align-items: start; }
.figure { background: var(--tint); padding: 0; }
.figure img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--tint); }
.figure .open { font-size: 13px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); background: var(--paper); border-bottom: 1px solid var(--rule); }
.figure .open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item h1 { font-size: clamp(26px, 3vw, 38px); }
.item .dateline, .dateline { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.item .desc { font-size: 17.5px; line-height: 1.6; }
.facts { border-top: 1px solid var(--rule); margin-top: 22px; font-size: 15px; }
.facts dt { font-weight: 700; color: var(--ink); padding-top: 12px; font-size: 13px; }
.facts dd { margin: 3px 0 12px; color: var(--ink-2); }
.facts a { margin-right: 12px; display: inline-block; }
.regtag { display: inline-block; font-weight: 700; color: var(--ink); background: var(--tint); padding: 4px 10px; margin: 0 6px 6px 0; font-size: 14px; }
.regtag:hover { background: var(--ink); color: #fff; text-decoration: none; }
.notes { background: var(--tint); padding: 14px 16px; font-size: 15px; color: var(--ink-2); margin-top: 20px; }
.related { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 28px; }

/* Balloon lookup */
.lookup { padding-block: 32px 80px; }
.lookup .toolbar { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; font-size: 13px; color: var(--ink-2); background: var(--paper); border-bottom: 2px solid var(--ink); }
td.reg { font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
td.num { text-align: right; white-space: nowrap; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--tint); }
.balloon-head { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; margin-top: 8px; }
.balloon-head .bigreg { font-weight: 800; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.seg { display: inline-flex; border: 1px solid var(--ink); overflow: hidden; font-size: 13.5px; }
.seg a { padding: 7px 12px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--ink); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; background: var(--tint); color: var(--ink-2); }
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }

/* Registry panel (The HAB Database) */
.hab { margin-top: 32px; background: var(--tint); padding: 20px 24px 22px; }
.hab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hab-head h2 { margin: 0; font-size: 20px; }
.credit { font-size: 12.5px; color: var(--ink-2); }
.hab-body { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 24px; margin-top: 14px; }
.hab-photos img { width: 100%; display: block; background: var(--dark); }
.hab-photos a + a img { width: calc(33.33% - 4px); display: inline-block; margin: 6px 6px 0 0; }
.hab .facts { margin: 0; border-top: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; } ul.plain li { margin: 2px 0; }

/* People and collections */
.index-grid { columns: 3 240px; column-gap: 40px; padding-block: 10px 80px; }
.index-grid a { display: block; break-inside: avoid; padding: 7px 0; font-size: 15px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.index-grid a:hover { color: var(--link); text-decoration: none; }
.index-grid a small { color: var(--ink-3); margin-left: 6px; }
.index-grid a[hidden] { display: none; }
.people-q { display: flex; align-items: center; max-width: 560px; margin: 0 0 24px; border: 2px solid var(--ink); background: var(--paper); }
.people-q input { flex: 1; border: 0; background: transparent; padding: 10px 14px; font-size: 16px; outline: none; min-width: 0; }
.people-q button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--ink); font-size: 18px; }
.people-q .btn-lite { margin-right: 6px; white-space: nowrap; }

/* Ask and Videos forms */
.ask { padding-block: 40px 80px; max-width: 860px; }
.ask textarea { width: 100%; min-height: 100px; border: 2px solid var(--ink); padding: 14px 16px; background: var(--paper); font-size: 17px; resize: vertical; }
.ask textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--tint-2); }
.ask .row { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.btn { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 22px; cursor: pointer; }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-lite { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 6px 12px; cursor: pointer; text-decoration: none; }
.btn-lite:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-lite[disabled], .btn-lite[disabled]:hover { background: var(--tint); color: var(--ink-2); border-color: var(--rule); cursor: default; }
.btn-lite.is-cover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-lite.curate.is-on { background: var(--link); color: #fff; border-color: var(--link); }
.examples { font-size: 14.5px; color: var(--ink-2); }
.examples button { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0 4px; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.answer { background: var(--tint); padding: 22px 24px; margin-top: 26px; font-size: 17px; }
.answer sup a { font-size: 11px; font-weight: 700; margin-left: 1px; }
.sources { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 14px; }
.sources ol { padding-left: 22px; margin: 6px 0 0; }
.sources li { margin: 5px 0; }
.thinking { color: var(--ink-2); font-size: 14.5px; }
.err { color: #A3261D; }
.item-ask { max-width: none; padding: 32px 0 10px; margin-top: 36px; border-top: 1px solid var(--rule); }
.item-ask h2 { font-size: 22px; margin: 0; }
.item-ask textarea { min-height: 76px; margin-top: 14px; }

/* Videos */
.progress { margin-top: 26px; background: var(--tint); padding: 18px 22px; }
.progress ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.progress li::before { content: "○ "; }
.progress li.done { color: var(--ink); } .progress li.done::before { content: "● "; color: var(--link); }
.progress li.now { color: var(--ink); font-weight: 700; } .progress li.now::before { content: "● "; }
.progress details { margin-top: 10px; }
.episode { margin-top: 30px; background: var(--paper); border: 1px solid var(--rule); padding: 0 0 18px; }
.ep-kicker { font-size: 13px; color: #fff; opacity: .8; font-weight: 600; }
.episode h2 { margin: 4px 0 6px; font-size: 28px; line-height: 1.15; }
.episode audio { width: 100%; }
.ep-tools { display: flex; gap: 8px; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; font-size: 14px; }
.copied { color: var(--ink-2); font-size: 13px; }
.episode details { margin-top: 12px; } .episode summary { font-weight: 700; cursor: pointer; }
.script p { font-size: 17px; line-height: 1.6; }
.film { overflow: hidden; }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; outline: none; cursor: pointer; }
.stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.stage .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.stage .slide .bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(28px) brightness(.55) saturate(.9); aspect-ratio: auto; }
.stage .slide .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.stage .slide.on { opacity: 1; }
.stage .slide.on .fg { animation: kb 26s ease-in-out forwards; }
.stage .slide.on .bg { animation: kbbg 26s linear forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes kbbg { from { transform: scale(1); } to { transform: scale(1.08); } }
.titlecard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 6% 7%; color: #fff; background: linear-gradient(180deg, rgba(14,17,22,.1), rgba(14,17,22,.85)); transition: opacity .8s; }
.titlecard h2 { color: #fff; font-size: clamp(22px, 4vw, 44px); margin: 6px 0 8px; letter-spacing: -0.02em; }
.titlecard p { margin: 0; opacity: .85; font-size: clamp(14px, 1.8vw, 19px); max-width: 60ch; }
.stage.playing .titlecard { opacity: 0; pointer-events: none; }
.bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 30px; padding-left: 6px; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: opacity .4s; }
.stage.playing .bigplay { opacity: 0; pointer-events: none; }
.caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(0deg, rgba(14,17,22,.85), rgba(14,17,22,0)); color: #fff; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; opacity: 0; transition: opacity .6s; }
.caption.show { opacity: 1; }
.caption a { color: #fff; opacity: .8; font-size: 12.5px; white-space: nowrap; }
.fs { position: absolute; top: 10px; right: 10px; border: 0; background: rgba(0,0,0,.45); color: #fff; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.film audio { width: calc(100% - 48px); margin: 16px 24px 0; }
.film .ep-tools, .film details, .film .sources { margin-left: 24px; margin-right: 24px; }
.revise, .col-pick { margin: 12px 24px 0; padding: 14px 16px; background: var(--tint); font-size: 14px; }
.revise label { font-weight: 700; display: block; margin-bottom: 6px; }
.revise textarea { min-height: 90px; margin-top: 0; }
.col-pick { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.col-pick label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.col-label { font-weight: 700; }
.len { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.len select { font: inherit; padding: 6px 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.editor input[type=text] { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); margin-bottom: 12px; }
.ed-scene { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; margin-bottom: 16px; }
.ed-pic { display: grid; gap: 6px; }
.ed-pic .ed-thumb { width: 140px; height: 105px; object-fit: contain; background: var(--dark); }
.ed-cap { width: 100%; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); margin-top: 6px; }
.ed-picker { grid-column: 1 / -1; margin-top: 4px; padding: 12px; background: var(--paper); border: 2px solid var(--accent); }
.ed-pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ed-opt.is-on { border-color: var(--accent); }
.ed-q { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rule); margin-bottom: 8px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 380px; overflow: auto; }
.ed-opt { border: 2px solid transparent; background: var(--tint); padding: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.ed-opt:hover { border-color: var(--accent); }
.ed-opt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--dark); }
.ed-opt span { display: block; font-size: 11px; line-height: 1.25; padding: 4px 5px; max-height: 3.8em; overflow: hidden; }
.ed-scene textarea { min-height: 70px; line-height: 1.45; }

/* Video shelf and collections */
.shelf { margin-top: 48px; }
.shelf h2 { margin: 0 0 16px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 20px; }
.ep-card { display: block; color: var(--ink); }
.ep-card:hover { text-decoration: none; } .ep-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.ep-play, .play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; padding-left: 3px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.ep-meta { padding: 10px 0 0; display: grid; gap: 4px; }
.ep-meta strong { font-size: 16px; line-height: 1.3; }
.ep-meta span { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-meta em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.ep-q { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.episodes-home { padding: 44px 0; }
.col-sec { margin-top: 40px; }
.col-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.col-head h2 { margin: 0; }
.col-head p { margin: 0; color: var(--ink-2); flex: 1 1 100%; }
.col-tools { display: inline-flex; gap: 6px; }
.curator-link { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.curator-bar { margin-top: 22px; font-size: 14px; }
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0; padding: 14px 18px; background: var(--tint); font-size: 15px; }
.review-bar strong { color: var(--link); }
h2 .count { display: inline-block; min-width: 28px; padding: 0 9px; margin-left: 8px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 15px; line-height: 28px; text-align: center; vertical-align: middle; }
.review-more { margin-top: 28px; }
.review-more summary { font-weight: 700; cursor: pointer; margin-bottom: 14px; }

/* Films (video items) */
.vid { position: relative; aspect-ratio: 4/3; background: var(--dark); overflow: hidden; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.vid-tag { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); padding: 2px 8px; }
.player { position: relative; aspect-ratio: 16/9; background: var(--dark); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.films { margin-top: 32px; }
.film-fig { margin: 0 0 22px; }
.film-fig figcaption { font-size: 14px; margin-top: 8px; }

/* Exhibits */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.ex-card { display: block; color: var(--ink); }
.ex-card:hover { text-decoration: none; } .ex-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ex-blank { width: 100%; aspect-ratio: 3/2; background: var(--tint); display: block; }
.ex-cover { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; background: var(--dark); }
.ex-cover img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ex-cover .bg { object-fit: cover; filter: blur(22px) brightness(.5); transform: scale(1.15); }
.ex-cover .fg { object-fit: contain; }
.ex-meta { padding: 12px 0 0; }
.ex-meta strong { display: block; font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.ex-meta span { color: var(--ink-3); font-size: 13.5px; }
.exhibit { padding-block: 28px 80px; }
.ex-head { margin: 20px 0 36px; max-width: 72ch; }
.ex-head .lede { font-size: 20px; }
.ex-wall { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 1000px; }
.ex-item { margin: 0; }
.ex-item img { width: 100%; max-height: 82vh; object-fit: contain; background: var(--tint); }
.ex-item .doc { background: var(--tint); display: grid; place-items: center; position: relative; }
.ex-item .doc img { max-height: 62vh; }
.ex-item .doc span { position: absolute; left: 12px; top: 12px; background: #fff; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.ex-item figcaption { padding: 12px 0 0; font-size: 14px; }
.ex-item figcaption strong { display: block; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 2px; }
.ex-item figcaption > span { color: var(--ink-3); }
.ex-item figcaption p { font-size: 16px; margin: 8px 0 0; max-width: 72ch; color: var(--ink-2); }
.ex-tools { display: inline-flex; gap: 6px; margin-top: 10px; }
.ex-ep { aspect-ratio: 16/9; }
.ex-ep img { opacity: .9; }

/* Prerender fallback and footer */
.prerender { padding-block: 30px; }
.prerender img { max-width: 720px; }
.foot { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 64px; padding: 56px 0 40px; font-size: 15px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.foot-brand strong { font-family: var(--serif); font-size: 19px; color: #fff; display: block; margin-bottom: 6px; }
.foot-brand p { max-width: 42ch; margin: 0 0 10px; }
.foot h4 { color: var(--brass-3); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 9px; }
.foot-credits { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.62); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.foot-credits p { margin: 0; max-width: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .hero-photo { min-height: 60vh; } .hero-inner { padding-top: 80px; padding-bottom: 36px; } .hero-photo { flex-wrap: wrap; } .hero-credit { position: static; display: block; flex: 0 0 100%; padding: 0 var(--gutter) 10px; }
  .masthead-row { min-height: 60px; gap: 10px; flex-wrap: nowrap; }
  .brand { font-size: 15px; min-width: 0; }
  .brand span { white-space: normal; line-height: 1.15; }
  .brand img { width: 34px; height: 34px; }
  .head-search { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .nav { display: none; position: fixed; left: 0; right: 0; top: 60px; bottom: 0; background: var(--navy); flex-direction: column; margin: 0; overflow: auto; padding: 8px 0 40px; gap: 0; }
  .nav.open { display: flex; }
  .navg > a, .navg > button { width: 100%; padding: 15px var(--gutter); font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); justify-content: space-between; }
  .navg.on > a, .navg.on > button { border-bottom-color: rgba(255,255,255,.08); color: var(--brass-3); }
  .navg .menu { position: static; box-shadow: none; border: 0; background: var(--navy-2); min-width: 0; padding: 6px 0; }
  .navg .menu a { color: rgba(255,255,255,.9); padding: 11px calc(var(--gutter) + 12px); }
  .navg .menu a small { color: rgba(255,255,255,.55); }
  .navg .menu a:hover { background: rgba(255,255,255,.06); }
  .navg .menu .menu-head { color: var(--brass-3); }
  .nav .mobile-search { display: block; padding: 12px var(--gutter) 6px; }
  .nav .mobile-search form { display: flex; background: #fff; border-radius: var(--radius); }
  .nav .mobile-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-size: 17px; background: transparent; outline: none; }
  .nav .mobile-search button { border: 0; background: var(--brass); color: #fff; font-weight: 700; padding: 0 16px; border-radius: 0 var(--radius) var(--radius) 0; }
  body.menu-open { overflow: hidden; }
  .layout { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  .rail { position: static; max-height: none; background: var(--tint); padding: 14px; margin-bottom: 10px; }
  .rail summary { font-weight: 700; cursor: pointer; }
  .item-grid { grid-template-columns: 1fr; gap: 28px; }
  .results.list .card { grid-template-columns: 110px 1fr; }
  .sampler, .strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
  .ed-scene { grid-template-columns: 1fr; } .ed-scene img { width: 100%; height: 120px; }
  .hab-body { grid-template-columns: 1fr; }
  .film audio { width: calc(100% - 32px); margin: 14px 16px 0; }
  .film .ep-tools, .film details, .film .sources, .revise, .col-pick { margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 861px) { .rail summary { display: none; } .rail details { display: contents; } }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .stage .slide .bg { filter: brightness(.35); }
  .stage .slide.on .bg, .stage .slide.on .fg { animation: none; }
  .stage .slide .fg { transform: translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stage .slide { transition: none; }
  .stage .slide.on .fg, .stage .slide.on .bg { animation: none; }
}
.page-h1 { margin-top: 40px; }

/* Picture-led browsing */
.feature-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .feature-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-tiles { grid-template-columns: 1fr; } }
.ftile { position: relative; display: flex; align-items: flex-end; min-height: 220px; background: var(--accent) center/cover no-repeat; color: #fff; overflow: hidden; }
.ftile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0) 30%, rgba(10,14,20,.85) 100%); }
.ftile:hover { text-decoration: none; } .ftile:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ftile-text { position: relative; padding: 18px 20px; display: grid; gap: 3px; }
.ftile-text strong { font-size: 22px; letter-spacing: -0.02em; }
.ftile-text span { font-size: 14px; color: rgba(255,255,255,.85); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 20px; }
.cover-grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 16px; }
.cover-card { color: var(--ink); display: block; }
.cover-card img, .cover-blank { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--tint-2); display: block; }
.cover-meta { padding: 10px 0 0; }
.cover-meta strong { display: block; font-size: 16px; line-height: 1.3; }
.cover-meta span { color: var(--ink-3); font-size: 13px; }
.cover-card:hover { text-decoration: none; } .cover-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.decade-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.dtile { position: relative; aspect-ratio: 4/3; background: var(--accent) center/cover no-repeat; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.dtile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0) 35%, rgba(10,14,20,.8) 100%); }
.dtile span { position: relative; padding: 12px 14px; font-size: 13px; color: rgba(255,255,255,.85); display: grid; }
.dtile strong { font-size: 24px; letter-spacing: -0.02em; color: #fff; }
.dtile:hover { text-decoration: none; } .dtile:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.person-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 16px; }
.person-row.wide { margin: 8px 0 32px; }
.person { color: var(--ink); text-align: center; display: grid; justify-items: center; gap: 4px; }
.person img, .person-blank { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: var(--tint-2); display: block; margin-bottom: 6px; }
.person strong { font-size: 15px; line-height: 1.25; }
.person small { color: var(--ink-3); font-size: 12.5px; }
.person:hover { text-decoration: none; } .person:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ask-panel { background: var(--accent); color: #fff; padding: 56px 0; margin-top: 8px; }
.ask-panel h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.ask-panel p { color: rgba(255,255,255,.88); font-size: 17px; max-width: 48ch; }
.ask-panel-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.ask-examples { display: grid; gap: 10px; }
.ask-examples a { color: #fff; border: 1.5px solid rgba(255,255,255,.6); padding: 12px 16px; font-size: 16px; font-weight: 600; }
.ask-examples a:hover { background: #fff; color: var(--accent); text-decoration: none; }
.col-block { padding: 36px 0 8px; border-top: 1px solid var(--rule); margin-top: 28px; }
.col-block h2 a { color: var(--ink); }
td.thumb { width: 64px; padding-right: 10px; }
td.thumb img { width: 56px; height: 42px; object-fit: cover; background: var(--tint-2); display: block; }
th.thumb-h { width: 64px; }
@media (max-width: 860px) {
  .ask-panel-inner { grid-template-columns: 1fr; gap: 20px; }
  .ask-panel { padding: 40px 0; }
  td.thumb, th.thumb-h { display: none; }
  .person img, .person-blank { width: 84px; height: 84px; }
}

/* Articles */
.articles .lede em, .art-kicker em { font-style: italic; }
.art-series { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.art-card { color: var(--ink); display: block; }
.art-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; background: var(--tint); border: 1px solid var(--rule); }
.art-meta { padding: 10px 0 0; }
.art-meta strong { display: block; font-size: 16px; line-height: 1.3; }
.art-meta span { color: var(--ink-3); font-size: 13px; }
.art-card:hover { text-decoration: none; } .art-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.article { padding-block: 28px 80px; }
.art-head { max-width: 76ch; margin: 16px 0 28px; }
.art-kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.pdf-frame { position: relative; aspect-ratio: 3/4; max-height: 86vh; background: var(--tint); }
.pdf-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-page { margin: 0 0 24px; }
.art-page img { width: 100%; background: var(--tint); border: 1px solid var(--rule); }
.art-page figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.art-open { margin-top: 14px; display: flex; gap: 8px; }
.art-side h3 { font-size: 15px; margin: 22px 0 6px; }
.art-side h3:first-child { margin-top: 0; }
.art-side p { font-size: 15px; color: var(--ink-2); }
.art-research { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.art-research img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--tint); }
.art-toc { padding-left: 20px; margin: 0; font-size: 14.5px; }
.art-toc li { margin: 6px 0; } .art-toc li.on > a { font-weight: 700; color: var(--ink); }
.art-toc small { color: var(--ink-3); }
.art-nav { display: grid; gap: 8px; margin-top: 22px; font-size: 14px; }
@media (max-width: 860px) { .art-body { grid-template-columns: 1fr; gap: 28px; } .pdf-frame { max-height: none; } }

/* ---------- Story pages (Ask the archive), after the Air and Space Museum story layout ---------- */
:root { --st-navy: #0F1B2D; --st-yellow: #F5D64A; --st-blue: #4FA8DE; --st-sand: #F4F1EA; --st-font: 'Barlow', 'Manrope', system-ui, sans-serif; }
.ask-page .ask { padding-bottom: 36px; }
.st { font-family: var(--st-font); color: #111; margin-top: 10px; }
.st h1, .st h2, .st h3, .st strong { font-family: var(--st-font); letter-spacing: -0.01em; }
.st p { font-size: 17px; line-height: 1.6; }
.st sup { white-space: nowrap; line-height: 0; }
.st sup a { font-size: 11px; font-weight: 700; margin-left: 2px; color: var(--accent); }
/* subtle contour-line background */
.st-lines { background-color: #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%23000' stroke-opacity='0.07' stroke-width='1.2'><path d='M-50 120c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 220c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 320c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 420c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 520c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 620c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 720c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 820c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 920c200-90 380 60 560-20s240-160 440-110'/></svg>"); background-size: 900px 900px; }
/* hero */
.st-hero { position: relative; height: clamp(260px, 36vw, 440px); background: var(--st-navy) center/cover no-repeat; background-size: cover, cover; background-position: center, center; display: flex; align-items: flex-end; }
.st-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,0) 45%); }
.st-hero h1 { position: relative; margin: 0 0 0 max(24px, calc((100% - 1320px) / 2)); color: var(--st-yellow); font-size: clamp(34px, 5vw, 66px); font-weight: 800; line-height: 1.05; }
.st-hero h1 span { display: inline-block; background: var(--st-navy); padding: 16px 30px 14px 24px; }
.st-crumbs { font-size: 14px; font-weight: 600; padding: 16px 0 0; color: #333; }
.st-crumbs a { color: #111; font-weight: 700; }
.st-crumbs span { font-weight: 500; }
/* centered lead column */
.st-col { max-width: 760px; margin: 60px auto 0; padding: 0 20px; }
.st-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; font-size: 16px; padding: 0 0 18px; margin: 0 0 26px; border-bottom: 1px solid #ddd; }
.st-jump strong { font-weight: 800; }
.st-jump a { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.st-lead { font-size: 21px; font-weight: 800; line-height: 1.5; margin: 0 0 18px; }
.st-intro { margin: 0; color: #222; }
/* alternating split sections */
.st-sec { margin-top: 48px; }
.st-sec.plain .st-sec-in { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.st-sec.split .st-sec-in { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.st-sec.split.img-left .st-sec-in .st-text { order: 2; }
.st-sec.split.img-left .st-sec-in .st-fig { order: 1; }
.st-sec.split .st-text { padding: 56px 48px 56px max(36px, calc((100% - 1960px) / 2 + 36px)); display: flex; flex-direction: column; justify-content: flex-start; }
.st-sec.split .st-text, .st-sec.plain, .st-also, .st-learn { background-color: #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%23000' stroke-opacity='0.07' stroke-width='1.2'><path d='M-50 120c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 220c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 320c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 420c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 520c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 620c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 720c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 820c200-90 380 60 560-20s240-160 440-110'/><path d='M-50 920c200-90 380 60 560-20s240-160 440-110'/></svg>"); background-size: 900px 900px; }
.st-sec.sand .st-text, .st-sec.sand.plain, .st-sec.sand .st-cards { background-color: var(--st-sand); }
.st-sec.sand { background-color: var(--st-sand); }
.st-kicker { font-size: 15px; font-weight: 800; margin: 0 0 14px !important; color: #111; }
.st-sec h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.05; margin: 0 0 16px; }
.st-sec .st-text p { margin: 0 0 14px; }
.st-fig { margin: 0; position: relative; min-height: 320px; background-size: cover; background-position: center; }
.st-fig a, .st-fig img { display: block; width: 100%; height: 100%; }
.st-fig img { object-fit: cover; min-height: 320px; opacity: 0; transition: opacity .35s ease; }
.st-fig img.in { opacity: 1; }
.st-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15,27,45,.82); color: #fff; font-size: 13.5px; line-height: 1.45; padding: 8px 14px; }
.st-fig figcaption sup a { color: var(--st-yellow); }
.st-btn { display: inline-block; margin-top: 10px; background: var(--st-blue); color: #0A1A2A; border: 1.5px solid #0A1A2A; padding: 10px 20px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; font-family: var(--st-font); }
.st-btn:hover { background: #3A96D0; text-decoration: none; }
/* three-up story cards */
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 36px; align-items: start; }
.st-cards > * { min-width: 0; }
.st-card { display: block; color: #111; }
.st-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e5de; }
.st-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card-img img.doc, .st-obj-img img.doc { object-fit: cover; object-position: top center; background: #fff; }
.st-card-img:has(img.doc), .st-obj-img:has(img.doc) { border: 1px solid #ddd; box-sizing: border-box; background: #fff; }
.st-doc { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #555; font-size: 13px; }
.st-card strong { display: block; font-size: 22px; line-height: 1.15; margin: 12px 0 6px; font-weight: 800; }
.st-card .arr { font-weight: 400; }
.st-card p { font-size: 15.5px; line-height: 1.55; margin: 0; color: #222; }
.st-card:hover strong { text-decoration: underline; }
.st-card-meta { color: #555 !important; }
/* also in the collection */
.st-also, .st-learn { padding: 48px 0 56px; margin-top: 48px; }
.st-learn { background-color: var(--st-sand); }
.st-center-h { text-align: center; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; margin: 0 0 26px; }
.st-objs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.st-obj { display: block; color: #111; }
.st-obj-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e5de; }
.st-obj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-tag { position: absolute; left: 0; top: 14px; background: var(--st-blue); color: #0A1A2A; font-size: 12.5px; font-weight: 700; padding: 5px 12px; }
.st-obj-title { display: block; font-size: 17px; line-height: 1.35; margin-top: 10px; }
.st-obj:hover .st-obj-title { text-decoration: underline; }
.st-center { text-align: center; margin: 30px 0 0; }
/* footer: topics and sources */
.st-foot { padding: 48px 0 20px; }
.st-foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.st-foot h3 { font-size: 20px; margin: 0 0 12px; }
.st-topics { list-style: none; padding: 0; margin: 0; }
.st-topics li { margin: 0 0 8px; }
.st-topics a { font-weight: 700; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.story-sources { margin-top: 0; font-size: 14px; }
.story-sources .src-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.st-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #111; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; z-index: 30; }
.st-top:hover { background: #111; color: #fff; text-decoration: none; }
@media (max-width: 900px) {
  .st-sec.split .st-sec-in { grid-template-columns: 1fr; min-height: 0; }
  .st-sec.split.img-left .st-sec-in .st-text, .st-sec.split .st-sec-in .st-text { order: 2; padding: 28px 20px 36px; }
  .st-sec.split .st-sec-in .st-fig { order: 1; min-height: 0; }
  .st-fig img { min-height: 0; aspect-ratio: 4 / 3; }
  .st-cards, .st-objs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .st-card strong { font-size: 18px; }
  .st-foot-in { grid-template-columns: 1fr; }
  .st-hero h1 { margin-left: 0; }
  .st-hero h1 span { padding: 12px 18px 10px 16px; }
}
@media (max-width: 560px) {
  .st-cards, .st-objs { grid-template-columns: 1fr; }
  .st-col { margin-top: 36px; }
}

/* story loading: title plus a balloon drifting along the bar */
.st-loading { margin-top: 36px; padding: 40px 0 48px; background: var(--st-sand); font-family: var(--st-font); }
.st-loading .wrap { max-width: 860px; }
.st-load-stage { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.st-load-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.05; margin: 0 0 26px; transition: opacity .3s; }
.st-sky { position: relative; height: 120px; background: linear-gradient(#DCEBFA, #F4F8FD); border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; }
.st-sky.has-hero { background-blend-mode: normal; }
.st-track { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 6px; background: rgba(15,27,45,.12); border-radius: 3px; }
.st-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.st-balloon { position: absolute; bottom: 30px; width: 40px; height: 56px; margin-left: -20px; transition: left .4s ease; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); left: 0; }
.st-balloon svg { width: 100%; height: 100%; display: block; }
.cloud { position: absolute; top: 18px; width: 70px; height: 22px; background: #fff; border-radius: 20px; opacity: .9; animation: drift linear infinite; }
.cloud::before { content: ""; position: absolute; left: 18px; top: -12px; width: 34px; height: 34px; background: #fff; border-radius: 50%; }
.cloud.c1 { left: 10%; animation-duration: 22s; } .cloud.c2 { left: 55%; top: 40px; transform: scale(.7); animation-duration: 30s; } .cloud.c3 { left: 80%; top: 12px; transform: scale(.85); animation-duration: 26s; }
.st-load-note { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift { from { margin-left: 0; } to { margin-left: -900px; } }
@media (prefers-reduced-motion: reduce) { .st-balloon, .cloud { animation: none; } }

/* stories: home row, index page, curator table */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-tile { display: block; color: var(--ink); position: relative; }
.story-tile:hover { text-decoration: none; }
.story-tile img, .story-blank { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--st-navy, #0F1B2D); }
.story-tile-text { display: block; padding: 12px 0 0; }
.story-tile strong { display: block; font-family: var(--st-font); font-size: 22px; line-height: 1.15; font-weight: 800; }
.story-tile-text span { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-tile:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.story-grid.big { margin-top: 24px; }
.stories-page { padding-bottom: 60px; }
.st-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.st-table td { padding: 12px 10px; border-top: 1px solid var(--rule); vertical-align: top; font-size: 15px; }
.st-row-img { width: 120px; } .st-row-img img { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.st-row-tools { width: 320px; text-align: right; } .st-row-tools .btn-lite { margin: 0 0 6px 6px; }
.st-row-tools .danger { color: #A3261D; }
.muted { color: var(--ink-soft); font-size: 13.5px; }
.st-curator { margin-top: 36px; padding: 14px 16px; background: var(--tint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } .st-row-tools { width: auto; text-align: left; } .st-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--rule); } .st-table td { display: block; padding: 6px 0; border: 0; } }

.credit-box { margin-top: 18px; padding: 14px 16px; background: var(--tint); font-size: 14px; line-height: 1.55; border-left: 3px solid var(--accent); }
.credit-box strong { display: block; margin-bottom: 4px; }
.credit-box p { margin: 0; color: var(--ink-2); }

.page-prose { max-width: 760px; padding-block: 36px 60px; }
.page-prose h1 { font-size: 34px; margin: 0 0 12px; }
.page-prose h2 { font-size: 20px; margin: 30px 0 8px; }
.page-prose p, .page-prose li { font-size: 17px; line-height: 1.6; }
.page-prose .lede { font-size: 20px; color: var(--ink-2); }
.credit-line { color: var(--ink-soft); font-size: 14px; }
.use-row .muted { font-size: 13px; color: var(--ink-soft); }

.ex-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 0 0 44px; max-width: 1000px; }
.ex-videos.one { grid-template-columns: 1fr; }
.ex-video { margin: 0; }
.ex-video figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; }
.ex-vcard { display: block; aspect-ratio: 16/9; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.exv-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; background: var(--tint); padding: 16px; max-height: 360px; overflow: auto; }
.exv-col label { display: block; font-size: 14px; margin: 4px 0; }
.exv-col strong { display: block; margin-bottom: 6px; }
.ex-videos .curator-bar { grid-column: 1 / -1; margin: 0; }

/* Exhibit pages in the story design language */
.ex2 .st-hero h1 span { background: var(--st-navy); }
.ex2-lead { margin-top: 40px; }
.ex2-lead .st-kicker { color: #4A5568; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.ex2 .ex-videos { background: var(--st-navy); color: #fff; margin: 40px 0 0; max-width: none; display: block; padding: 40px 0 44px; }
.ex2-videos-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.ex2 .ex-videos.one .ex2-videos-in { grid-template-columns: minmax(0, 960px); justify-content: center; }
.ex2 .ex-video figcaption { color: #fff; }
.ex2 .ex-videos .curator-bar { color: #fff; }
.ex2-items { margin-top: 8px; }
.ex2 .st-sec { margin-top: 0; }
.ex2 .st-sec.split .st-sec-in { min-height: 440px; align-items: center; }
.ex2-num { font-family: var(--st-font); font-size: 56px; font-weight: 800; line-height: 1; color: var(--st-blue); margin: 0 0 10px !important; }
.ex2 .st-sec.sand .ex2-num { color: #C9A227; }
.ex2 .st-sec h2 { font-size: clamp(26px, 2.8vw, 38px); }
.ex2 .st-text p { font-size: 17px; line-height: 1.55; color: #222; }
.ex2-fig { margin: 0; display: grid; place-items: center; background: var(--st-navy); min-height: 320px; position: relative; }
.ex2 .st-sec.sand .ex2-fig { background: #E9E4D6; }
.ex2-fig a { display: grid; place-items: center; width: 100%; height: 100%; position: relative; }
.ex2-fig img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.ex2 .ex-tools { margin-top: 16px; }
.st-also-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.st-also-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.st-objs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
@media (max-width: 860px) {
  .ex2 .st-sec.split .st-sec-in { grid-template-columns: 1fr; min-height: 0; }
  .ex2 .st-sec.split .st-text { padding: 28px var(--gutter) 32px; order: 2; }
  .ex2 .st-sec.split .ex2-fig { order: 1; min-height: 0; }
  .ex2-fig img { max-height: 60vh; }
  .ex2-num { font-size: 40px; }
}
.ex2 .st-text .st-btn { align-self: flex-start; }

/* ---------- Redesign: home page, hub pages and shared editorial components ---------- */
.kicker.light { color: var(--brass-3); }
.btn { border-radius: var(--radius); font-family: var(--sans); }
.btn.brass { background: var(--brass); color: #fff; } .btn.brass:hover { background: var(--brass-2); }
.btn-lite { border-radius: var(--radius); }
.btn-lite.light { border-color: rgba(255,255,255,.6); color: #fff; } .btn-lite.light:hover { background: #fff; color: var(--navy); }
.page { padding: 36px 0 60px; }
.page-head { max-width: 820px; margin: 0 0 36px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { margin: 0; }
.sec-head { align-items: flex-end; margin-bottom: 24px; }
.sec-head .kicker { margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.home-sec { padding: 56px 0; border-top: 1px solid var(--rule); }
.home-sec.ivory { background: var(--ivory); border-top: 0; }
.home-sec.feature-sec { background: var(--paper); }

/* Hero */
.hero-photo { min-height: min(78vh, 720px); background-position: center 40%; }
.hero-photo::before { background: linear-gradient(180deg, rgba(21,43,60,.15) 0%, rgba(21,43,60,.45) 55%, rgba(14,30,43,.92) 100%); }
.hero-inner { padding-top: 110px; padding-bottom: 56px; }
.hero-photo h1 { font-size: clamp(36px, 5.4vw, 68px); max-width: 14ch; margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-photo p.lede { color: rgba(255,255,255,.9); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.search-big { border-radius: var(--radius); overflow: hidden; margin: 26px 0 12px; max-width: 700px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.search-big input { font-size: 17px; padding: 15px 18px; }
.search-big button { background: var(--brass); padding: 0 28px; } .search-big button:hover { background: var(--brass-2); }
.hero-credit { font-family: var(--sans); }

/* Statistics line */
.stats { padding: 22px var(--gutter) 6px; }
.stats p { font-family: var(--serif); font-size: 16px; color: var(--ink-2); max-width: none; margin: 0; letter-spacing: .01em; line-height: 1.8; }
.stats b { color: var(--ink); font-weight: 700; font-size: 19px; }
.stats span { color: var(--brass); margin: 0 6px; }

/* Entry points */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.entry { color: var(--ink); display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.entry img, .entry .cover-blank { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--stone); transition: transform var(--t); }
.entry:hover { text-decoration: none; } .entry:hover img { transform: scale(1.02); } .entry:hover strong { color: var(--brass-2); }
.entry-text { display: block; padding: 14px 0 0; }
.entry-text strong { font-family: var(--serif); font-size: 20px; display: block; margin-bottom: 3px; }
.entry-text span { color: var(--ink-2); font-size: 15px; }

/* Featured exhibition */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.feature-img { display: block; background: var(--ivory-2); border-radius: var(--radius); overflow: hidden; }
.feature-img img { width: 100%; max-height: 640px; object-fit: contain; display: block; }
.feature-text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.feature-text h2 a { color: var(--ink); } .feature-text h2 a:hover { color: var(--brass-2); text-decoration: none; }
.feature-text p { font-size: 17px; }
.feature-text .meta { color: var(--ink-3); font-size: 14px; }
.feature-text .btn { display: inline-block; margin-top: 6px; }
.ex-grid.small { margin-top: 36px; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
.spot-img img { width: 100%; max-height: 560px; object-fit: contain; display: block; background: var(--ivory-2); }
.spot-text h2 { font-size: clamp(24px, 2.6vw, 34px); } .spot-text h2 a { color: var(--ink); }
.spot-text .meta { color: var(--ink-3); font-size: 14px; margin-top: -6px; }
.spot-text p { font-size: 17px; }

/* This day */
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.today-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; color: var(--ink); align-items: start; }
.today-item img { width: 110px; height: 110px; object-fit: cover; background: var(--stone); }
.today-item .today-text { display: grid; gap: 3px; }
.today-item .doc-tile.sq { width: 110px; height: 110px; aspect-ratio: auto; }
.today-item b { font-family: var(--mono); color: var(--brass-2); font-size: 13px; }
.today-item strong { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.today-item em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.today-item:hover { text-decoration: none; } .today-item:hover strong { text-decoration: underline; }

/* Decades and people reuse existing tiles with the new palette */
.dtile { background-color: var(--navy); }
.dtile strong { font-family: var(--serif); }
.person strong { font-size: 15px; }
.person span { color: var(--ink-3); font-size: 13px; }

/* Articles and recent rows */
.art-row, .recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.art-card, .recent { color: var(--ink); display: block; }
.art-card img, .recent img, .doc-tile { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); display: block; }
.doc-tile { position: relative; display: grid; place-items: center; background: var(--ivory-2); overflow: hidden; }
.doc-tile img { position: absolute; inset: 0; object-position: top; }
.doc-tile span { position: relative; background: var(--paper); padding: 3px 8px; font-size: 12px; font-weight: 700; }
.art-card strong, .recent strong { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.35; margin: 10px 0 3px; }
.art-card span, .recent span { color: var(--ink-3); font-size: 13.5px; }
.art-card:hover, .recent:hover { text-decoration: none; } .art-card:hover strong, .recent:hover strong { text-decoration: underline; }

/* Contribute band */
.contrib-band { background: var(--navy); color: #fff; padding: 56px 0; margin-top: 24px; }
.contrib-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.contrib-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); }
.contrib-band p { color: rgba(255,255,255,.82); font-size: 17px; }
.contrib-inner > div:last-child { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Manufacturers */
.mfr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.mfr-card { color: var(--ink); display: block; }
.mfr-card img, .mfr-card .cover-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); display: block; }
.mfr-meta { display: block; padding-top: 10px; }
.mfr-meta strong { font-family: var(--serif); font-size: 18px; display: block; }
.mfr-meta span { color: var(--ink-3); font-size: 13.5px; }
.mfr-card:hover { text-decoration: none; } .mfr-card:hover strong { text-decoration: underline; }

/* Timeline */
.era-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.era-nav a { font-size: 14px; font-weight: 600; border: 1px solid var(--rule); padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.era-nav a:hover { background: var(--ivory); text-decoration: none; }
.era { padding: 28px 0 8px; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.era h2 { font-size: 22px; margin-bottom: 18px; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px 16px; }
.year { color: var(--ink); display: block; }
.year img, .year .cover-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); display: block; }
.year-meta { display: grid; gap: 2px; padding-top: 8px; }
.year-meta strong { font-family: var(--mono); font-size: 18px; color: var(--navy); }
.year-meta span { color: var(--ink-3); font-size: 13px; }
.year-meta em { font-style: normal; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.year:hover { text-decoration: none; } .year:hover strong { text-decoration: underline; }

/* Contribute form */
.contrib { display: grid; gap: 16px; max-width: 760px; margin: 24px 0; }
.contrib label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contrib input, .contrib textarea { border: 1px solid var(--stone-2); border-radius: var(--radius); padding: 10px 12px; font-size: 16px; font-weight: 400; background: #fff; }
.contrib input:focus, .contrib textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.contrib .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contrib .hide { display: none; }
.contrib .muted { color: var(--ink-3); font-size: 14px; }
.ok-note { background: var(--ok-bg); color: var(--ok-fg); padding: 12px 16px; border-radius: var(--radius); }

@media (max-width: 1024px) {
  .entries { grid-template-columns: repeat(2, 1fr); }
  .feature, .spotlight { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .entries { grid-template-columns: 1fr; gap: 20px; }
  .contrib-inner { grid-template-columns: 1fr; } .contrib-inner > div:last-child { justify-content: flex-start; }
  .contrib .f2 { grid-template-columns: 1fr; }
  .home-sec { padding: 40px 0; }
  .stats p { font-size: 15px; }
  .hero-photo h1 { font-size: 36px; }
  .today-item { grid-template-columns: 84px 1fr; } .today-item img { width: 84px; height: 84px; }
}

/* Search page */
.search-head { padding: 32px var(--gutter) 0; }
.search-head h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.search-head .lede { font-size: 17px; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-top: 10px; overflow-x: auto; }
.tab { padding: 10px 16px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab small { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.on { color: var(--navy); border-bottom-color: var(--brass); }
.layout { padding-top: 24px; }
.card .ds { font-size: 14px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: #F3E6C4; color: inherit; padding: 0 1px; }
.also-people { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.card .ttl { font-family: var(--sans); font-weight: 600; }
.results.list .card .ttl { font-family: var(--serif); font-weight: 700; }
.toolbar .q { border-radius: var(--radius); border-color: var(--stone-2); }
.toolbar .q:focus-within { border-color: var(--navy); }
.more { border-radius: var(--radius); }

/* Artifact page */
.item { padding-block: 24px 60px; }
.item .crumbs { margin-bottom: 18px; }
.item-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 48px; }
.item-side h1 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.item-side .desc { font-size: 17px; line-height: 1.6; }
.viewer { position: relative; background: var(--ivory-2); display: grid; place-items: center; min-height: 240px; border-radius: var(--radius); overflow: hidden; }
.viewer img { width: 100%; max-height: 82vh; object-fit: contain; cursor: zoom-in; display: block; }
.doc-viewer img { cursor: default; object-position: top; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; background: rgba(21,43,60,.92); color: #fff; border: 0; border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.zoom-btn:hover { background: var(--navy-2); }
.media-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 2px; font-size: 13px; color: var(--ink-3); }
.media-foot .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.media-foot .pn { margin-left: auto; display: inline-flex; gap: 14px; }
.media-foot a { font-weight: 600; }
.transcript { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.transcript summary { font-weight: 700; cursor: pointer; }
.transcript pre { white-space: pre-wrap; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 0; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.flag { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); background: var(--ivory); border: 1px solid var(--stone); border-radius: 999px; padding: 3px 10px; cursor: help; }
.aircraft, .people-line { margin: 14px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aircraft .col-label, .people-line .col-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-2); margin-right: 4px; }
.regtag { font-family: var(--mono); font-size: 13px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--stone); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 10px; }
.tools .muted { font-size: 13px; color: var(--ink-3); flex-basis: 100%; }
.cite { background: var(--ivory); border: 1px solid var(--stone); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 14px; display: grid; gap: 10px; }
.cite-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cite-head .mono { font-size: 12px; color: var(--ink-3); }
.cite label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.cite textarea { font: 13px/1.5 var(--mono); border: 1px solid var(--stone-2); border-radius: var(--radius); padding: 8px; background: #fff; resize: vertical; }
.cite .muted { font-size: 13px; color: var(--ink-3); margin: 0; }
.facts-wrap { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 10px; }
.facts-wrap summary { font-weight: 700; cursor: pointer; }
.facts { border-top: 0; margin-top: 6px; }
.correct { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 10px; }
.correct summary { font-weight: 700; cursor: pointer; }
.correct form { display: grid; gap: 12px; margin-top: 12px; }
.correct label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.correct input, .correct textarea { border: 1px solid var(--stone-2); border-radius: var(--radius); padding: 8px 10px; font-size: 15px; font-weight: 400; }
.correct .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.correct .hide { display: none; }
.correct .muted { font-size: 13px; color: var(--ink-3); }
.related .sec-head { margin-bottom: 18px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0B1620; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; background: rgba(0,0,0,.35); }
.lb-bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-tools { display: inline-flex; gap: 6px; }
.lb-tools button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: var(--radius); min-width: 40px; height: 36px; padding: 0 12px; font-size: 15px; cursor: pointer; }
.lb-tools button:hover { background: rgba(255,255,255,.24); }
.lb-stage { overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: grab; }
.lb-stage img { max-width: 100%; max-height: 100%; transform-origin: center; transition: transform 60ms linear; user-select: none; }
.lb-hint { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); margin: 0; padding: 8px; }
body.lb-open { overflow: hidden; }
@media (max-width: 860px) {
  .item-grid { grid-template-columns: 1fr; gap: 24px; }
  .correct .f2 { grid-template-columns: 1fr; }
  .media-foot .mono { max-width: 100%; }
}
[hidden] { display: none !important; }
.cite textarea, .correct textarea, .correct input { max-width: 100%; width: 100%; box-sizing: border-box; }
.facts dd.mono, .cite-head .mono { word-break: break-all; }
.item-side { min-width: 0; }

/* Aircraft and manufacturer pages */
.aircraft-page { padding-bottom: 60px; }
.ac-hero { position: relative; min-height: 380px; background: var(--navy) center/cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.ac-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,43,60,.2) 0%, rgba(14,30,43,.55) 50%, rgba(14,30,43,.95) 100%); }
.ac-hero.plain { min-height: 0; }
.ac-hero-in { position: relative; padding-top: 70px; padding-bottom: 34px; width: 100%; }
.ac-hero .crumbs.light, .ac-hero .crumbs.light a { color: rgba(255,255,255,.75); }
.ac-reg { font-size: clamp(34px, 5vw, 64px); font-weight: 500; color: var(--brass-3); margin: 0 0 4px; letter-spacing: .02em; }
.ac-hero h1 { color: #fff; font-size: clamp(26px, 3vw, 42px); margin-bottom: 8px; }
.ac-name { font-weight: 400; font-style: italic; color: rgba(255,255,255,.85); }
.ac-meta { color: rgba(255,255,255,.85); font-size: 16px; margin: 0; max-width: none; }
.ac-hero .hero-credit { position: absolute; }
.ac-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 56px; padding-top: 36px; }
.ac-main section { margin-bottom: 44px; }
.ac-side .facts { margin-top: 0; border-top: 0; }
.ac-side .chips-dd { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-side .chips-dd a { margin: 0; }
.muted { color: var(--ink-3); } .small { font-size: 13.5px; }
.same-model h3 { font-size: 16px; margin: 24px 0 10px; }
.same-model li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.tl { border-left: 2px solid var(--stone); margin-left: 10px; padding-left: 28px; }
.tl-year { position: relative; margin-bottom: 28px; }
.tl-year h3 { font-size: 15px; color: var(--brass-2); margin: 0 0 12px; position: relative; }
.tl-year h3::before { content: ""; position: absolute; left: -36px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); border: 2px solid var(--paper); }
.tl-list { display: grid; gap: 14px; }
.tl-entry { display: grid; grid-template-columns: 96px 1fr; gap: 16px; color: var(--ink); align-items: start; }
.tl-entry.note { grid-template-columns: 1fr; background: var(--ivory); padding: 10px 14px; border-radius: var(--radius); }
.tl-entry.note p { margin: 0; font-size: 15px; }
.tl-entry img { width: 96px; height: 96px; object-fit: cover; background: var(--stone); display: block; }
.tl-doc { position: relative; width: 96px; height: 96px; background: var(--ivory-2); display: grid; place-items: center; overflow: hidden; }
.tl-doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: top; }
.tl-doc span { position: relative; background: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; }
.tl-text { display: grid; gap: 3px; }
.tl-text strong { font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.tl-text span { color: var(--ink-3); font-size: 13px; }
.tl-text em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.tl-entry:hover { text-decoration: none; } .tl-entry:hover strong { text-decoration: underline; }
.tl-dot { display: none; }
.models { width: 100%; border-collapse: collapse; font-size: 15px; }
.models th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-2); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.models td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); }
.models td:first-child a { font-weight: 600; }

/* People */
.people-page .people-q { max-width: 520px; margin: 0 0 28px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 30px 0 10px; position: sticky; top: 66px; background: var(--paper); padding: 10px 0; z-index: 5; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; border-radius: var(--radius); color: var(--ink); border: 1px solid var(--rule); }
.letters a:hover { background: var(--ivory); text-decoration: none; }
.letter-group { padding: 22px 0 6px; scroll-margin-top: 130px; }
.letter-group h2 { font-size: 26px; color: var(--brass-2); margin-bottom: 12px; }
.person-blank.big { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--ivory-2); display: block; }
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin: 18px 0 20px; align-items: start; }
.bio-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--stone); display: block; }
.bio-portrait .small { display: block; margin-top: 6px; line-height: 1.3; }
.bio-line { font-family: var(--serif); font-size: 18px; margin: 0 0 12px; max-width: none; }
.bio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; max-width: none; }
.bio-row .col-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-2); margin-right: 4px; }
.bio-tools { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: none; }
.chip small { margin-left: 4px; }
@media (max-width: 860px) {
  .ac-body { grid-template-columns: 1fr; gap: 28px; }
  .bio { grid-template-columns: 1fr; } .bio-portrait img { max-width: 220px; }
  .tl { margin-left: 6px; padding-left: 20px; } .tl-year h3::before { left: -28px; }
  .tl-entry { grid-template-columns: 72px 1fr; } .tl-entry img, .tl-doc { width: 72px; height: 72px; }
  .letters { top: 60px; }
}

.milestones { margin: 8px 0 0; }
.ms-tl { margin-top: 22px; }
.ms-body { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.ms-body img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); display: block; }
.ms-body h4 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.ms-body p { font-size: 16px; margin: 0 0 8px; }
.ms-src { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; align-items: baseline; }
.ms-src .col-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-2); }
.era-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 700px) { .ms-body { grid-template-columns: 1fr; } .ms-body img { max-width: 260px; } }
.ms-body > div:only-child { grid-column: 1 / -1; }

/* Collections as rooms */
.rooms-sec { margin-bottom: 44px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.rooms.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 18px; }
.room { color: var(--ink); display: block; }
.room img, .room .cover-blank { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); display: block; border-radius: var(--radius); }
.room-text { display: grid; gap: 3px; padding-top: 10px; }
.room-text strong { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.rooms.small .room-text strong { font-size: 16px; }
.room-text span { color: var(--ink-3); font-size: 13.5px; }
.room-text em { font-style: normal; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.room:hover { text-decoration: none; } .room:hover strong { text-decoration: underline; }
.folders-h { margin: 20px 0 10px; font-size: 24px; }
.col-bio .bio-portrait img { aspect-ratio: 4 / 3; }

.ask-how { margin-top: 18px; max-width: 760px; }
.ask-how summary { font-weight: 700; cursor: pointer; }
.ask-how ul { margin: 10px 0 0; padding-left: 20px; } .ask-how li { margin-bottom: 6px; font-size: 15.5px; }
.src-kind { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2); background: var(--ivory); border: 1px solid var(--stone); border-radius: 999px; padding: 1px 7px; margin: 0 4px; vertical-align: middle; }

th.sortable button { all: unset; cursor: pointer; font: inherit; color: inherit; }
th.sortable button:hover { color: var(--brass-2); text-decoration: underline; }
th.sortable.on button { color: var(--navy); }

.player.vertical { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; max-width: calc(80vh * 9 / 16); }

/* Films */
.films-home { border-top: 0; }
.film-feature { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 40px; align-items: center; }
.film-feature .player { width: 100%; max-width: 380px; margin: 0; }
.film-feature .player.vertical { max-height: none; }
.film-text h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 6px 0 12px; } .film-text h3 a { color: var(--ink); }
.film-text p { font-size: 17px; }
.film-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; margin-top: 36px; }
.film-card { color: inherit; display: block; }
.film-thumb { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 300px; background: var(--navy-2); border-radius: var(--radius); overflow: hidden; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-thumb .play-badge { width: 48px; height: 48px; font-size: 18px; }
.film-card strong { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.3; margin: 10px 0 2px; }
.film-card span:last-child { font-size: 13px; color: var(--ink-3); }
.film-card:hover { text-decoration: none; } .film-card:hover strong { text-decoration: underline; }
.films-list { margin-bottom: 20px; }
.films-list .film-row { margin-top: 20px; }
@media (max-width: 760px) { .film-feature { grid-template-columns: 1fr; } .film-feature .player { max-width: 320px; margin: 0 auto; } }
.films-home .player { background: var(--navy); box-shadow: 0 20px 50px rgba(21,43,60,.25); border-radius: var(--radius); overflow: hidden; }
.story-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.story-row .story-tile strong { font-size: 18px; font-weight: 700; }
@media (max-width: 600px) { .story-row { grid-template-columns: 1fr; } }

/* Redacted documents and the curator's review page */
.rd-doc { display: block; background: var(--ivory-2); padding: 12px; border-radius: var(--radius); }
.rd-doc .rd-page, .rd-doc img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); margin: 0 0 12px; }
.rd-note { font-size: .85rem; color: var(--ink-soft); margin: 8px 0 0; }
img.img-pending { visibility: hidden; }
.rd-stats { margin: 0 0 12px; } .rd-stats .bad { color: #9b2c2c; }
.redactions .curator-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.rd-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; font-size: .85rem; }
.rd-card img, .rd-card .doc { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.rd-card strong { font-weight: 600; line-height: 1.3; } .rd-card span { color: var(--ink-soft); } .rd-card.bad span { color: #9b2c2c; }
.rd-pages { display: grid; gap: 28px; max-width: 1000px; }
.rd-edit { position: relative; cursor: crosshair; touch-action: none; user-select: none; border: 1px solid var(--stone); background: #fff; }
.rd-edit img { display: block; width: 100%; height: auto; pointer-events: none; }
.rd-box { position: absolute; background: #000; opacity: .82; outline: 1px solid var(--brass); pointer-events: none; }
.rd-bar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--ivory); border-top: 1px solid var(--stone); cursor: default; font-size: .85rem; }
.rd-bar span { margin-right: auto; color: var(--ink-soft); }
.rd-workers { list-style: none; margin: 0 0 12px; padding: 0; font-size: .85rem; } .rd-workers li { padding: 2px 0; }
.rd-diag { margin: 0 0 20px; padding: 12px 16px; background: var(--ivory-2); border-radius: var(--radius); font-size: .85rem; } .rd-diag li { margin: 4px 0; } .rd-diag li.failed b, .rd-diag li.started b { color: #9b2c2c; } .rd-diag span { color: var(--ink-soft); word-break: break-word; }
.own { margin: 0 0 8px; padding-left: 20px; } .own li { margin: 3px 0; } .own-h { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.own-src a { display: inline-block; min-width: 18px; padding: 0 4px; font-size: .72rem; text-align: center; border: 1px solid var(--stone); border-radius: 3px; text-decoration: none; }
.rd-flag { display: block; font-style: normal; color: #7a4a00; background: #fbf3df; padding: 4px 6px; border-radius: 3px; } .rd-flag-box { background: #fbf3df; color: #5c3a00; padding: 10px 14px; border-radius: var(--radius); max-width: 900px; }

/* Contributions: the band above the footer, the dialog, readers' notes, the curator's review page */
.contrib-band { background: var(--ivory-2); border-top: 1px solid var(--stone); padding: 22px 0; }
.contrib-band[hidden] { display: none; }
.contrib-band .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.contrib-band p { margin: 0; max-width: 62ch; color: var(--ink-soft); } .contrib-band strong { color: var(--ink); }
.btn-brass { font: inherit; font-weight: 600; padding: 10px 18px; border: 1px solid var(--brass); background: transparent; color: var(--navy); border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.btn-brass:hover { background: var(--brass); color: #fff; }
.contrib-dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.contrib-dlg::backdrop { background: rgba(21,43,60,.6); }
.contrib-dlg form { padding: 28px 28px 22px; display: grid; gap: 14px; position: relative; }
.contrib-dlg h2 { margin: 0; font-size: 1.35rem; } .contrib-dlg .kicker { margin: 0; }
.contrib-dlg label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; } .contrib-dlg label small { font-weight: 400; color: var(--ink-soft); }
.contrib-dlg label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; } .contrib-dlg label.check[hidden] { display: none; }
.contrib-dlg input:not([type=checkbox]):not([type=file]), .contrib-dlg textarea, .contrib-dlg select, .contrib-card input:not([type=checkbox]), .contrib-card textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--stone); border-radius: var(--radius); background: #fff; width: 100%; box-sizing: border-box; }
.contrib-dlg .f2, .contrib-card .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .contrib-dlg .f2, .contrib-card .f2 { grid-template-columns: 1fr; } .contrib-dlg form { padding: 22px 18px 18px; } }
.dlg-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.dlg-foot { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reader-notes { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--stone); max-width: 760px; }
.reader-note { margin: 18px 0; padding: 16px 18px; background: var(--ivory-2); border-left: 3px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; }
.reader-note p { margin: 0 0 8px; } .reader-note footer { font-size: .85rem; color: var(--ink-soft); }
.reader-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; } .reader-files img { max-width: 100%; max-height: 420px; display: block; border-radius: var(--radius); }
.contrib-card { border: 1px solid var(--stone); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; background: #fff; display: grid; gap: 10px; max-width: 900px; }
.contrib-card header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; } .contrib-card .from { margin: 0; font-size: .9rem; }
.contrib-card blockquote { margin: 0; padding: 10px 14px; background: var(--ivory-2); border-left: 3px solid var(--stone); }
.contrib-card label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; } .contrib-card label small { font-weight: 400; color: var(--ink-soft); }
.contrib-files { display: flex; flex-wrap: wrap; gap: 12px; } .contrib-files .cf { width: 170px; font-weight: 400; } .contrib-files img, .contrib-files .doc { width: 170px; height: 130px; object-fit: cover; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--ivory-2); border: 1px solid var(--stone); border-radius: var(--radius); text-decoration: none; }
.contributions .curator-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; } .contributions > .curator-bar { margin-bottom: 20px; }
#curatorNav .badge { background: var(--brass); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .75rem; }
.contrib-dlg .hide { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-row { max-width: 760px; margin: 0 0 16px; } .cp-label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 5px; } .cp-label span { color: var(--ink-soft); }
.cp-bar { height: 8px; background: var(--stone); border-radius: 4px; overflow: hidden; } .cp-bar i { display: block; height: 100%; background: var(--brass); }
.cp-list { padding-left: 18px; font-size: .9rem; } .cp-list .bad { color: #9b2c2c; } .copies .curator-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 28px; }
.reader-notes.inline { margin: 22px 0 6px; padding-top: 0; border-top: 0; max-width: none; }
.reader-notes.inline h2 { font-family: var(--ui, inherit); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); margin: 0 0 8px; font-weight: 700; }
.reader-notes.inline .reader-note { margin: 0 0 10px; padding: 12px 14px; } .reader-notes .small { font-size: .8rem; margin: 6px 0 0; }
.rm-list { list-style: none; padding: 0; } .rm-list li { padding: 12px 0; border-bottom: 1px solid var(--stone); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .rm-list li b { flex: 1 1 320px; }

/* First paint: until the first page is drawn, the space is held open and the band and footer stay out of sight,
   so a visitor never sees an empty page with only a footer */
#main { min-height: 100vh; }
body.boot:not(.pre) #main:not(:has(.prerender))::before { content: 'Opening the archive…'; display: block; padding: 22vh 24px 0; text-align: center; font-family: var(--serif, Georgia, serif); font-size: 20px; color: #8a8478; }
body.boot .contrib-band, body.boot .foot { display: none; }
