/*
 * MIDNIGHT ARCHIVE
 * A cinematic, high-contrast exhibition treatment for the complete census.
 * Loaded after the embedded legacy stylesheet; selectors below intentionally
 * reset the inherited brown interface without changing the document model.
 */

:root {
  --ink: #05070c;
  --ink2: #080b13;
  --paper: #070a11;
  --panel: #0d111b;
  --panel2: #121825;
  --rule: #293246;
  --line: #293246;
  --line2: #495572;
  --gold: #d9ad5b;
  --gold2: #f5d894;
  --text: #f5f2e9;
  --muted: #9da6b7;
  --shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

html { background: #03050a; }

body.design-midnight {
  background:
    radial-gradient(circle at 75% -10%, rgba(65, 87, 135, .21), transparent 33rem),
    radial-gradient(circle at 10% 24%, rgba(217, 173, 91, .07), transparent 30rem),
    #03050a;
  color: var(--text);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.design-midnight .app {
  width: min(100%, 1680px);
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 42px 64px;
  overflow: clip;
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.018) 50%, transparent 100%),
    #070a11;
  box-shadow: 0 0 120px rgba(0,0,0,.8);
}

.design-midnight h1,
.design-midnight h2,
.design-midnight h3,
.design-midnight h4,
.design-midnight h5,
.design-midnight .lead,
.design-midnight .hero-deck {
  font-family: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
}

/* Hero */
.design-midnight .hero {
  position: relative;
  margin: 0 -42px;
  overflow: hidden;
  display: grid;
  border: 0;
  border-bottom: 1px solid rgba(245,216,148,.22);
  background:
    linear-gradient(90deg, rgba(3,5,10,.98) 0%, rgba(5,8,15,.91) 48%, rgba(5,8,16,.48) 100%),
    radial-gradient(circle at 78% 45%, rgba(217,173,91,.18), transparent 26rem),
    #05070c;
}

.design-midnight .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(90deg, transparent 0 74px, rgba(245,216,148,.15) 75px, transparent 76px),
    linear-gradient(180deg, transparent 0 74px, rgba(245,216,148,.07) 75px, transparent 76px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 58%);
}

.design-midnight .hero::after {
  content: "ARCHIVE / 1858";
  position: absolute;
  right: 28px;
  top: 50%;
  color: rgba(245,216,148,.42);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .28em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.design-midnight .hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1510px);
  margin: auto;
  padding: 72px 74px 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr);
  gap: 56px;
  align-items: center;
}

.design-midnight .hero-copy { max-width: 720px; }

.design-midnight .design-badge {
  width: fit-content;
  margin-bottom: 52px;
  color: var(--gold2);
}

.design-midnight .design-badge span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,216,148,.44);
  border-radius: 50%;
  color: var(--gold2);
}

.design-midnight .design-badge b { color: #f7f4ec; }
.design-midnight .design-badge i { color: #9ba5b7; }

.design-midnight .kicker,
.design-midnight .section-kicker {
  color: var(--gold2) !important;
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.design-midnight h1 {
  max-width: none;
  margin: 22px 0 27px;
  color: #f8f4e9;
  font-size: clamp(76px, 9vw, 146px);
  font-weight: 500;
  line-height: .79;
  letter-spacing: -.07em;
  text-shadow: 0 2px 0 rgba(255,255,255,.06), 0 24px 70px rgba(0,0,0,.65);
}

.design-midnight h1.bibliographical-title {
  font-size: clamp(60px, 6.3vw, 102px);
  line-height: .82;
  letter-spacing: -.055em;
}

.design-midnight .bibliographical-title span {
  display: block;
}

.design-midnight .hero-deck {
  max-width: 650px;
  margin: 0;
  color: #c7cbd3;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
}

.design-midnight .hero-deck strong { color: var(--gold2); font-weight: 600; }
.design-midnight .hero-actions { margin-top: 34px; gap: 12px; }

.design-midnight .button {
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid #59657e;
  border-radius: 3px;
  background: rgba(8,11,19,.75);
  color: #e9edf5;
  font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.design-midnight .button.primary,
.design-midnight .hero-actions .primary {
  background: var(--gold) !important;
  border-color: var(--gold2) !important;
  color: #111016 !important;
}

.design-midnight .button:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.3); }

.design-midnight .hero-stage {
  min-height: 0;
  align-self: start;
  grid-row: 1;
  flex-direction: column;
  perspective: 1400px;
  isolation: isolate;
}

.design-midnight .hero-bindings {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 328px;
}

.design-midnight .hero-stage::before {
  content: none;
}

.design-midnight .hero-stage::after {
  content: none;
}

.design-midnight .hero-book {
  top: 16px;
  width: 210px;
  border-radius: 2px;
  outline: 1px solid rgba(245,216,148,.2);
  box-shadow: 0 38px 72px rgba(0,0,0,.74), 0 0 32px rgba(217,173,91,.06);
}

.design-midnight .hero-stage-label {
  position: static;
  margin-top: 8px;
  color: #a9afbb;
  letter-spacing: .18em;
}

.design-midnight .hero-highlight {
  margin: 14px 0 0;
  color: var(--gold2);
  font-family: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.design-midnight .hero-highlight span { display: block; }

.design-midnight .overview-introduction {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 850px;
  margin: 12px auto 0;
}

/* Statistics and navigation */
.design-midnight .stats {
  position: relative;
  z-index: 4;
  margin: 0 -42px;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #232b3d;
  background: #080b12;
}

.design-midnight .stat {
  min-height: 132px;
  padding: 25px 18px 22px;
  display: grid;
  place-content: center;
  border-right: 1px solid #232b3d;
}

.design-midnight .stat b {
  color: var(--gold2);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 52px;
  font-weight: 500;
}

.design-midnight .stat span { color: #8f99ab; letter-spacing: .13em; }

.design-midnight .menu-toggle-btn {
  color: #8893a7;
  background: rgba(255,255,255,.04);
  border-color: rgba(245,216,148,.3);
}
.design-midnight .menu-toggle-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.design-midnight .nav-drawer {
  background: rgba(7,10,17,.98);
  border-color: rgba(245,216,148,.3);
}
.design-midnight .nav-drawer label {
  color: #8893a7;
  border-bottom-color: rgba(245,216,148,.14);
}
.design-midnight .nav-drawer label:hover { color: #fff; background: rgba(255,255,255,.05); }

.design-midnight #t-overview:checked~.topnav label[for=t-overview],
.design-midnight #t-census:checked~.topnav label[for=t-census],
.design-midnight #t-stone:checked~.topnav label[for=t-stone],
.design-midnight #t-production:checked~.topnav label[for=t-production],
.design-midnight #t-compare:checked~.topnav label[for=t-compare],
.design-midnight #t-presentation:checked~.topnav label[for=t-presentation],
.design-midnight #t-network:checked~.topnav label[for=t-network],
.design-midnight #t-people:checked~.topnav label[for=t-people],
.design-midnight #t-sources:checked~.topnav label[for=t-sources] {
  color: var(--gold2);
  background: linear-gradient(180deg, transparent, rgba(217,173,91,.07));
}

/* Main information architecture */
.design-midnight main { width: min(100%, 1420px); margin: 0 auto; padding: 58px 0 110px; }
.design-midnight .panel { max-width: none; padding: 0; }

.design-midnight .intro-grid {
  min-height: 390px;
  grid-template-columns: 1.05fr .8fr;
  gap: 8vw;
  align-items: center;
  margin: 0;
  padding: 34px 0 58px;
}

.design-midnight .display-title {
  max-width: 12ch;
  color: #f7f3e9;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -.055em;
}

.design-midnight .lead { color: #b8c0ce; font-size: clamp(20px, 2vw, 27px); line-height: 1.55; }
.design-midnight .lead strong { color: #fff; }

.design-midnight .overview-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 92px;
  border: 1px solid #2b3449;
  background: #0a0e17;
  box-shadow: var(--shadow);
}

.design-midnight .overview-map a {
  min-height: 148px;
  padding: 30px;
  border-right: 1px solid #2b3449;
  color: #f2f3f4;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent);
}

.design-midnight .overview-map a:last-child { border-right: 0; }
.design-midnight .overview-map a:hover { color: var(--gold2); background: rgba(217,173,91,.065); }
.design-midnight .overview-map span { color: var(--gold); }
.design-midnight .overview-map b { font-family: "Iowan Old Style", Georgia, serif; font-size: 23px; font-weight: 500; }
.design-midnight .overview-map small { color: #858fa2; }

.design-midnight .overview-section { padding: 100px 0; }
.design-midnight .overview-section + .overview-section { border-color: #252e41; }

.design-midnight .overview-marker {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 52px;
}

.design-midnight .overview-marker span { padding-top: 13px; color: var(--gold); }
.design-midnight .overview-marker h2 { max-width: 15ch; color: #f5f1e8; font-size: clamp(42px, 5.4vw, 74px); font-weight: 500; letter-spacing: -.05em; }
.design-midnight .section-head { margin: 55px 0 24px; }
.design-midnight .section-head h2 { color: #f2eee5; font-weight: 500; }
.design-midnight .section-head p { color: #9ca5b5; }

/* Rosetta Stone context */
.design-midnight .overview-stone {
  padding-top: 86px;
}

.design-midnight .stone-context {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 46px;
  align-items: stretch;
}

.design-midnight .stone-figure {
  margin: 0;
  min-height: 590px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.design-midnight .stone-figure img {
  width: 100%;
  height: 100%;
  min-height: 515px;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  filter: sepia(.08) contrast(1.04);
}

.design-midnight .stone-figure figcaption {
  padding: 17px 19px 19px;
}

.design-midnight .stone-figure figcaption b,
.design-midnight .stone-figure figcaption small {
  display: block;
}

.design-midnight .stone-figure figcaption small {
  margin-top: 4px;
}

.design-midnight .stone-summary {
  padding: 42px 46px;
  border: 1px solid #2d374c;
  border-top: 3px solid var(--gold);
  border-radius: 5px;
  background:
    radial-gradient(circle at 90% 5%, rgba(217,173,91,.1), transparent 22rem),
    linear-gradient(145deg, #111725, #0a0e17);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.design-midnight .stone-summary h3,
.design-midnight .stone-connection h3,
.design-midnight .script-band h3 {
  color: #f5f1e7;
  font-weight: 500;
}

.design-midnight .stone-summary > h3 {
  max-width: 16ch;
  margin: 14px 0 20px;
  font-size: clamp(30px, 3.4vw, 49px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.design-midnight .stone-summary > p,
.design-midnight .stone-connection > p,
.design-midnight .plain-language li,
.design-midnight .script-band p {
  color: #adb5c3;
}

.design-midnight .plain-language {
  margin-top: 30px;
  padding: 25px 27px;
  border-left: 3px solid var(--gold);
  background: rgba(4,7,12,.48);
}

.design-midnight .plain-language ul {
  margin: 15px 0 0;
  padding-left: 20px;
}

.design-midnight .plain-language li + li {
  margin-top: 10px;
}

.design-midnight .script-register {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid #2d374c;
  background: #2d374c;
}

.design-midnight .script-band {
  min-height: 210px;
  padding: 29px 30px;
  background:
    linear-gradient(155deg, rgba(217,173,91,.055), transparent 55%),
    #0a0e17;
}

.design-midnight .script-band span {
  color: var(--gold);
  font: 700 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.design-midnight .script-band h3 {
  margin: 14px 0 9px;
  font-size: 27px;
}

.design-midnight .script-band p {
  margin: 0;
}

.design-midnight .stone-connection {
  display: grid;
  grid-template-columns: minmax(270px, .68fr) minmax(0, 1.32fr);
  gap: 48px;
  align-items: start;
  margin-top: 22px;
  padding: 36px 40px;
  border: 1px solid #2d374c;
  border-left: 4px solid var(--gold);
  background: linear-gradient(145deg, #111725, #0a0e17);
}

.design-midnight .stone-connection h3 {
  margin: 12px 0 0;
  font-size: 29px;
  line-height: 1.2;
}

.design-midnight .stone-connection > p {
  margin: 0;
}

.design-midnight .context-source {
  margin: 18px 0 0;
  color: #788397;
  font: 650 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.design-midnight .context-source a {
  color: #aeb8ca;
  text-decoration-color: rgba(217,173,91,.5);
  text-underline-offset: 3px;
}

.design-midnight .context-source a:hover {
  color: var(--gold2);
}

/* Overview modules */
.design-midnight .binding-showcase { gap: 16px; }
.design-midnight .binding-card {
  border: 1px solid #2e384d;
  border-radius: 5px;
  background: linear-gradient(165deg, #121827, #090c14);
  box-shadow: 0 22px 52px rgba(0,0,0,.31);
}
.design-midnight .binding-card:nth-child(even) { transform: translateY(20px); }
.design-midnight .binding-card:hover { transform: translateY(-8px); border-color: rgba(245,216,148,.58); }
.design-midnight .binding-card:nth-child(even):hover { transform: translateY(8px); }
.design-midnight .binding-image { padding: 22px 18px 7px; }
.design-midnight .binding-meta { padding: 17px 18px 20px; border-color: #2b3448; }
.design-midnight .binding-meta h3 { color: #f3f0e8; font-weight: 500; }
.design-midnight .binding-meta p { color: #8993a4; }
.design-midnight .figure-note { margin-top: 34px; color: #788397; }

.design-midnight .evidence-grid { gap: 16px; grid-template-rows: 360px 300px; }
.design-midnight .evidence-card {
  border: 1px solid #313b50;
  border-radius: 5px;
  background: #080b12;
  box-shadow: 0 24px 54px rgba(0,0,0,.32);
}
.design-midnight .evidence-card::after { background: linear-gradient(180deg, transparent 22%, rgba(3,5,10,.96) 100%); }
.design-midnight .evidence-caption { left: 24px; right: 24px; bottom: 22px; }
.design-midnight .evidence-caption b { color: var(--gold2); letter-spacing: .16em; }
.design-midnight .evidence-caption h3 { color: #fff; font-size: 26px; font-weight: 500; }
.design-midnight .evidence-caption p { color: #bac1ce; }

.design-midnight .story-path { gap: 16px; }
.design-midnight .story-step,
.design-midnight .data-card,
.design-midnight .callout {
  border: 1px solid #2d374c;
  border-radius: 5px;
  background: linear-gradient(145deg, #111725, #0a0e17);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.design-midnight .story-step { min-height: 250px; padding: 30px; }
.design-midnight .story-step::before { color: rgba(217,173,91,.08); font-family: Georgia,serif; }
.design-midnight .story-icon { border-color: rgba(245,216,148,.5); color: var(--gold2); }
.design-midnight .story-step h3,
.design-midnight .data-card h3,
.design-midnight .callout h3 { color: #f5f1e7; font-weight: 500; }
.design-midnight .story-step p,
.design-midnight .callout p,
.design-midnight .source-list li { color: #adb5c3; }
.design-midnight .callout { border-left: 4px solid var(--gold); }
.design-midnight .barrow > span { color: #a0a9b8; }
.design-midnight .bar { background: #20283a; }

/* Census */
.design-midnight .master-status {
  margin-bottom: 11px;
  padding: 18px 20px;
  border: 1px solid #2d374a;
  border-left: 3px solid var(--gold);
  background: #0c111b;
  color: #b7bfcc;
}
.design-midnight .master-status strong { color: #f5f2eb; }
.design-midnight #census > .section-kicker { margin: 25px 0 20px; }
.design-midnight .filters { margin: 0 0 32px; gap: 9px; }
.design-midnight .filters label {
  padding: 11px 16px;
  border: 1px solid #39445a;
  border-radius: 3px;
  background: #0b0f18;
  color: #a8b1c0;
  letter-spacing: .09em;
}
.design-midnight .filters label:hover { color: #fff; border-color: #73809a; }
.design-midnight #f-all:checked~.filters label[for=f-all],
.design-midnight #f-presentation:checked~.filters label[for=f-presentation],
.design-midnight #f-original:checked~.filters label[for=f-original],
.design-midnight #f-rebound:checked~.filters label[for=f-rebound],
.design-midnight #f-rich:checked~.filters label[for=f-rich] {
  background: var(--gold);
  border-color: var(--gold2);
  color: #101119;
}

.design-midnight .copy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.design-midnight .copy-card {
  margin: 0;
  border: 1px solid #2b3549;
  border-radius: 5px;
  background: linear-gradient(150deg, #101624, #090d16);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.design-midnight .copy-card:hover { transform: translateY(-3px); border-color: #4b5871; }
.design-midnight .copy-card[open] { grid-column: 1 / -1; border-color: rgba(217,173,91,.55); box-shadow: 0 28px 72px rgba(0,0,0,.4); }
.design-midnight .copy-card summary { min-height: 112px; padding: 15px 36px 15px 18px; grid-template-columns: auto 72px minmax(0,1fr) auto auto; }
.design-midnight .copy-card summary:hover { background: rgba(255,255,255,.025); }
.design-midnight .card-thumb { width: 72px; height: 82px; border: 1px solid #354056; border-radius: 2px; background: #05070b; }
.design-midnight .card-thumb.placeholder { background: #0c1019; color: #69758b; }
.design-midnight .sumtext h3 { color: #f5f2ea; font-size: 19px; font-weight: 550; }
.design-midnight .cid,
.design-midnight .photo-count { color: var(--gold2) !important; }
.design-midnight .sumtext small,
.design-midnight small { color: #969faf; }
.design-midnight summary em { color: var(--gold); }
.design-midnight .copy-body { padding: 31px 34px 40px; border-color: #30394c; background: #0a0e17; }
.design-midnight .badges span { border-color: rgba(245,216,148,.34); background: rgba(217,173,91,.055); color: var(--gold2); }
.design-midnight .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.design-midnight .fact-grid.compare-table { grid-template-columns: 1fr 1fr !important; }
.design-midnight .fact-grid > div,
.design-midnight .record-block {
  padding: 18px;
  border: 1px solid #2c3548;
  border-radius: 4px;
  background: #101521;
  color: #e9eaf0;
}
.design-midnight .fact-grid label,
.design-midnight .record-block h4 { color: var(--gold2) !important; }
.design-midnight .fact-grid p,
.design-midnight .record-block p { color: #c7cbd4; }
.design-midnight .chain { color: #ebe7dc; }
.design-midnight .source-block { border-left: 4px solid var(--gold); }
.design-midnight .warning { border-left-color: #d19a42; background: #201708; color: #e0c99f; }
.design-midnight .no-image,
.design-midnight .no-person-note { border-color: #354056; background: #0d121d; color: #9ca6b7; }

.design-midnight .gallery { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.design-midnight figure { border: 1px solid #2e3749; border-radius: 4px; background: #080b12; }
.design-midnight figure img { background: #05070b; }
.design-midnight figcaption { color: #e6e7eb; border-top: 1px solid #252e40; }
.design-midnight figcaption small { color: #7f899c; }

.design-midnight .people-copy-section { border-color: #30394d; }
.design-midnight .people-copy-section > h4,
.design-midnight .person-mini h5 { color: var(--gold2); }
.design-midnight .people-copy-intro { color: #929daf; }
.design-midnight .person-mini {
  border: 1px solid #303a4f;
  border-radius: 4px;
  background: #101622;
}
.design-midnight .person-mini p { color: #c7ccd5; }
.design-midnight .person-role { color: #d8c69e; }
.design-midnight .evidence-chip { border-color: rgba(245,216,148,.35); background: rgba(217,173,91,.07); color: var(--gold2); }

/* Visual archive, network, people, and sources */
.design-midnight .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.design-midnight .archive-item {
  border: 1px solid #2c3649;
  border-radius: 5px;
  background: #0d121c;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.design-midnight .archive-item:hover { border-color: rgba(245,216,148,.5); transform: translateY(-5px); }
.design-midnight .archive-item img { height: 280px; background: #05070b; }
.design-midnight .archive-item > div { padding: 16px; }
.design-midnight .archive-item h3 { color: #f0eee8; font-weight: 500; }
.design-midnight .archive-item p { color: #929dae; }

.design-midnight .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.design-midnight .network-card,
.design-midnight .person-profile,
.design-midnight .person {
  padding: 22px;
  border: 1px solid #2d374a;
  border-radius: 5px;
  background: linear-gradient(145deg, #111725, #0b0f18);
  color: #c9ced7;
  box-shadow: 0 15px 38px rgba(0,0,0,.2);
}
.design-midnight .network-card h3,
.design-midnight .person h3,
.design-midnight .person-profile h4 { color: var(--gold2); font-weight: 500; }
.design-midnight .network-card p,
.design-midnight .person-profile p { color: #c1c7d1; }
.design-midnight .people-directory-intro,
.design-midnight .people-group > p { color: #9ca6b7; }
.design-midnight .people-group { margin-top: 56px; }
.design-midnight .people-group h3 { color: #f3efe5; font-size: 32px; font-weight: 500; }
.design-midnight .people-profile-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.design-midnight .profile-role { color: #d9c79e !important; }
.design-midnight .profile-links .jump-copy {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  padding: 7px 10px;
  border: 1px solid rgba(245,216,148,.35);
  border-radius: 2px;
  background: rgba(217,173,91,.07);
  color: var(--gold2);
  font-size: 10px;
}
.design-midnight #sources .callout { padding: 30px 34px; }
.design-midnight .source-list { margin: 0; }
.design-midnight .source-list li { padding-left: 5px; margin-bottom: 14px; }
.design-midnight .source-list li::marker { color: var(--gold); }

.design-midnight footer {
  margin: 0 -42px -64px;
  padding: 32px 42px 38px;
  border-top: 1px solid #252e40;
  background: #05080e;
  color: #768196;
  letter-spacing: .14em;
}

/* Lightbox */
.design-midnight .lightbox { background: rgba(2,4,8,.96); backdrop-filter: blur(18px); }
.design-midnight .lightbox-inner { border: 1px solid #48536a; border-radius: 4px; background: #060810; box-shadow: 0 40px 100px #000; }
.design-midnight .lightbox-caption { border-color: #2d3648; color: #d8dce4; background: #0c1019; }
.design-midnight .lightbox-close { border-color: rgba(245,216,148,.55); background: #0c111b; color: var(--gold2); }

/* Responsive */
@media (max-width: 1100px) {
  .design-midnight .app { padding-left: 24px; padding-right: 24px; }
  .design-midnight .hero,
  .design-midnight .stats,
  .design-midnight footer { margin-left: -24px; margin-right: -24px; }
  .design-midnight .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 70px 42px 46px; gap: 12px; text-align: center; }
  /* Reset the desktop placements at the same breakpoint as the columns.
     Otherwise 981–1100px screens get an implicit, zero-width second column
     for the bindings, which pushes the illustrations outside the page. */
  .design-midnight .hero-copy { margin: auto; grid-column: 1; }
  .design-midnight .design-badge { margin-left: auto; margin-right: auto; margin-bottom: 32px; text-align: left; }
  .design-midnight .hero-actions { justify-content: center; }
  .design-midnight .hero-stage { grid-column: 1; grid-row: auto; }
  .design-midnight .hero-bindings { height: 284px; }
  .design-midnight .hero-book { width: 178px; }
  .design-midnight .overview-marker { grid-template-columns: 150px 1fr; }
  .design-midnight .binding-showcase { grid-template-columns: repeat(5, minmax(168px,1fr)); overflow-x: auto; padding: 0 4px 34px; }
  .design-midnight .fact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .design-midnight .app { padding: 0 14px 40px; }
  .design-midnight .hero,
  .design-midnight .stats,
  .design-midnight footer { margin-left: -14px; margin-right: -14px; }
  .design-midnight .hero { min-height: auto; }
  .design-midnight .hero::after { display: none; }
  .design-midnight .hero-inner { padding: 48px 18px 34px; gap: 26px; }
  .design-midnight h1 { font-size: clamp(68px, 21vw, 104px); }
  .design-midnight h1.bibliographical-title {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(38px, 10.8vw, 56px) !important;
    line-height: .88 !important;
  }
  .design-midnight .hero-deck { font-size: 19px; }
  .design-midnight .hero .hero-stage { min-height: 0 !important; }
  .design-midnight .hero-bindings { height: 185px; }
  .design-midnight .hero-book { width: 132px; }
  .design-midnight .stats { grid-template-columns: repeat(2, 1fr); }
  .design-midnight .stat { min-height: 105px; padding: 17px 8px; }
  .design-midnight .stat:nth-child(2) { border-right: 0; }
  .design-midnight .stat:nth-child(-n+2) { border-bottom: 1px solid #232b3d; }
  .design-midnight .stat b { font-size: 40px; }
  .design-midnight main { padding: 38px 0 72px; }
  .design-midnight .intro-grid { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 16px 0 40px; }
  .design-midnight .overview-map { grid-template-columns: 1fr; margin-bottom: 50px; }
  .design-midnight .overview-map a { min-height: 105px; border-right: 0; border-bottom: 1px solid #2b3449; }
  .design-midnight .overview-map a:last-child { border-bottom: 0; }
  .design-midnight .overview-section { padding: 58px 0; }
  .design-midnight .overview-marker { grid-template-columns: 1fr; gap: 10px; }
  .design-midnight .overview-marker span { padding: 0; }
  .design-midnight .stone-context,
  .design-midnight .stone-connection { grid-template-columns: 1fr; }
  .design-midnight .stone-context { gap: 18px; }
  .design-midnight .stone-figure { min-height: 0; }
  .design-midnight .stone-figure img { min-height: 0; height: auto; }
  .design-midnight .stone-summary { padding: 29px 24px; }
  .design-midnight .script-register { grid-template-columns: 1fr; }
  .design-midnight .script-band { min-height: 0; }
  .design-midnight .stone-connection { gap: 18px; padding: 29px 24px; }
  .design-midnight .binding-card:nth-child(even) { transform: none; }
  .design-midnight .evidence-grid { grid-template-columns: 1fr; grid-template-rows: 370px repeat(3, 245px); }
  .design-midnight .evidence-card:first-child,
  .design-midnight .evidence-card:nth-child(4) { grid-row: auto; grid-column: auto; }
  .design-midnight .story-path,
  .design-midnight .overview-bottom,
  .design-midnight .copy-list,
  .design-midnight .network-grid { grid-template-columns: 1fr; }
  .design-midnight .copy-card[open] { grid-column: auto; }
  .design-midnight .copy-card summary { grid-template-columns: auto 62px minmax(0,1fr) auto; padding: 11px 28px 11px 11px; }
  .design-midnight .card-thumb { width: 62px; height: 72px; }
  .design-midnight .photo-count { display: none; }
  .design-midnight .copy-body { padding: 23px 15px 29px; }
  .design-midnight .gallery { grid-template-columns: 1fr; }
  .design-midnight .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .design-midnight footer { margin-bottom: -40px; }
}

@media (max-width: 520px) {
  .design-midnight .hero-bindings { height: 160px; }
  .design-midnight .hero-book { width: 106px; }
  .design-midnight .hero-actions { display: grid; }
  .design-midnight .button { width: 100%; }
  .design-midnight .display-title { font-size: 43px; }
  .design-midnight .overview-marker h2 { font-size: 40px; }
  .design-midnight .fact-grid,
  .design-midnight .people-mini-grid,
  .design-midnight .people-profile-grid,
  .design-midnight .archive-grid { grid-template-columns: 1fr; }
  .design-midnight .archive-item img { height: 240px; }
}
