:root {
  --bg: #05070b;
  --panel: rgba(6, 9, 14, 0.76);
  --panel-strong: rgba(3, 5, 9, 0.88);
  --gold: #b99a62;
  --gold-bright: #d6c08a;
  --red: #8f1d24;
  --red-bright: #c33742;
  --blue: #8db3d9;
  --ink: #f0ece2;
  --muted: #b8ad9c;
  --border: rgba(185, 154, 98, 0.42);
  --shadow: rgba(0, 0, 0, 0.54);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 21, 31, .28), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(76, 104, 137, .22), transparent 30%),
    linear-gradient(180deg, #070a10 0%, #05070b 48%, #020306 100%);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; }

.site-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(280px, 680px) minmax(280px, 540px) minmax(24px, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 28px 0 44px;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(2,4,8,.92), rgba(5,7,12,.42) 48%, rgba(2,3,6,.96)),
    radial-gradient(circle at 72% 60%, rgba(143, 29, 36, .16), transparent 36%);
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(185,154,98,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,154,98,.12) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 74%, transparent 100%);
}

.shade { position: absolute; inset: 0; z-index: -1; }

.top-nav {
  grid-column: 2 / 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a,
.button {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.62);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.top-nav a {
  padding: 10px 14px;
  font-family: Cinzel, serif;
  font-size: 0.82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.top-nav a:hover,
.button:hover,
.character-card:hover,
.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 154, 98, .82);
  box-shadow: 0 0 22px rgba(141, 179, 217, .13), 0 0 34px rgba(143, 29, 36, .13);
}

.file-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 22px 80px var(--shadow);
  backdrop-filter: blur(7px);
}

.hero-panel {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: center;
  padding: clamp(28px, 4vw, 52px);
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: Cinzel, serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1, h2, h3 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  letter-spacing: .035em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
}

.tagline {
  margin: 10px 0 24px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.intro, .section-heading p, .lore-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-family: Cinzel, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .82rem;
}
.button.primary {
  background: linear-gradient(135deg, rgba(143, 29, 36, .72), rgba(27, 58, 79, .58));
  border-color: rgba(185, 154, 98, .66);
}

.quick-files {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 22px;
  min-height: 160px;
  background: var(--panel-strong);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card-number {
  color: var(--red-bright);
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  font-size: .8rem;
}

.mini-card h2 { margin-top: 12px; font-size: 1.35rem; letter-spacing: .04em; }
.mini-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }

.archive-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 12px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2, .lore-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.character-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(3, 5, 9, .74);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.character-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  background: rgba(0,0,0,.35);
}

.character-card .card-meta {
  min-height: 96px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(185,154,98,.26);
  background: linear-gradient(180deg, rgba(6,9,14,.94), rgba(3,5,9,.98));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.character-card h3 {
  font-size: 1.03rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--ink);
}

.character-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.two-column {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
  padding-bottom: 96px;
}

.lore-card { padding: clamp(24px, 4vw, 42px); }
.lore-card .button { margin-top: 16px; }


.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.dossier-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 0;
  border: 1px solid rgba(185,154,98,.62);
  background: #05070b;
  box-shadow: 0 26px 90px rgba(0,0,0,.78);
}

.dossier-modal img {
  width: 100%;
  height: 100%;
  max-height: 780px;
  object-fit: cover;
  object-position: center top;
}

.modal-copy { padding: clamp(24px, 4vw, 46px); }
.modal-copy h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-role {
  color: var(--gold-bright);
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 16px;
}
.modal-copy p { line-height: 1.72; color: var(--muted); }
.modal-hook { color: var(--ink) !important; border-left: 2px solid var(--red-bright); padding-left: 16px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(3,5,9,.9);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-hero { grid-template-columns: 18px 1fr 18px; grid-template-rows: auto auto auto; }
  .top-nav, .hero-panel, .quick-files { grid-column: 2 / 3; }
  .hero-panel { grid-row: 2; }
  .quick-files { grid-row: 3; grid-template-columns: 1fr 1fr; }
  .top-nav { justify-content: flex-start; }
  .two-column { grid-template-columns: 1fr; }
  .dossier-modal { grid-template-columns: 1fr; }
  .dossier-modal img { max-height: 560px; }
}

@media (max-width: 560px) {
  .site-hero { padding-top: 18px; }
  .top-nav a { font-size: .72rem; padding: 8px 10px; }
  .hero-panel { padding: 24px; }
  h1 { font-size: 3.1rem; }
  .intro { font-size: .94rem; }
  .button { width: 100%; }
  .quick-files { grid-template-columns: 1fr; }
  .archive-section { width: min(100% - 26px, 1180px); padding-top: 58px; }
}

/* --- Character gallery size normalization patch --- */
.archive-section {
  width: min(1320px, calc(100% - 48px)) !important;
}

.card-gallery {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  display: grid !important;
  gap: 24px !important;
  align-items: stretch !important;
}

#heroes-gallery {
  grid-template-columns: repeat(3, minmax(0, 250px)) !important;
  justify-content: center !important;
}

#support-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

#rogues-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.character-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.character-card img {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  padding: 8px !important;
  background: rgba(0,0,0,.38) !important;
}

.character-card .card-meta {
  min-height: 104px !important;
  flex: 1 0 auto !important;
}

@media (max-width: 1180px) {
  #support-gallery,
  #rogues-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #heroes-gallery,
  #support-gallery,
  #rogues-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 540px) {
  .archive-section {
    width: min(100% - 28px, 440px) !important;
  }
  #heroes-gallery,
  #support-gallery,
  #rogues-gallery {
    grid-template-columns: 1fr !important;
  }
}


/* Dossier content upgrade */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.character-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.character-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}

.character-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-copy h3 {
  margin: 24px 0 10px;
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1rem;
}

.modal-details {
  margin-top: 22px;
  border-top: 1px solid rgba(185, 154, 98, .28);
  padding-top: 18px;
}

.modal-details p,
.modal-details li {
  color: var(--muted);
  line-height: 1.68;
}

.modal-details ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.dossier-stat-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.dossier-stat-grid p {
  margin: 0;
}

.modal-details strong {
  color: var(--ink);
}

@media (min-width: 1180px) {
  #rogues .card-gallery {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
  }
}


/* Restored home-page Calder City map panel */
.home-map {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  align-self: start;
  min-height: 310px;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 24%, rgba(141,179,217,.18), transparent 18%),
    linear-gradient(135deg, rgba(6,9,14,.86), rgba(3,5,9,.94));
}

.map-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.map-header h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.map-grid {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(185,154,98,.26);
  background:
    linear-gradient(rgba(185,154,98,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,154,98,.08) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(240,236,226,.22), transparent 6%),
    radial-gradient(circle at 44% 60%, rgba(143,29,36,.16), transparent 18%),
    rgba(0,0,0,.18);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  overflow: hidden;
}

.map-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(185,154,98,.28);
  clip-path: polygon(7% 12%, 53% 4%, 91% 19%, 84% 72%, 61% 92%, 22% 80%, 5% 48%);
}

.map-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(195,55,66,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 30%, rgba(195,55,66,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 70%, rgba(195,55,66,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 79% 73%, rgba(195,55,66,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 53% 52%, rgba(214,192,138,.95) 0 3px, transparent 4px);
  pointer-events: none;
}

.map-district {
  position: absolute;
  z-index: 2;
  color: rgba(240,236,226,.88);
  font-family: Cinzel, Georgia, serif;
  font-size: .63rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
  white-space: nowrap;
}

.old-cathedral { left: 8%; top: 18%; }
.castle-nightshade { right: 8%; top: 17%; }
.crypt-district { left: 14%; bottom: 20%; }
.city-hall { left: 43%; top: 47%; }
.blacklace-house { right: 8%; bottom: 18%; }
.calder-cemetery { left: 34%; bottom: 8%; }

.map-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,154,98,.52), transparent);
  transform-origin: left center;
}

.line-one { left: 22%; top: 30%; width: 52%; transform: rotate(12deg); }
.line-two { left: 25%; top: 70%; width: 56%; transform: rotate(-17deg); }
.line-three { left: 52%; top: 53%; width: 34%; transform: rotate(43deg); }

.map-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .88rem;
}

@media (min-width: 981px) {
  .quick-files {
    align-self: end;
  }
}

@media (max-width: 980px) {
  .top-nav, .hero-panel, .home-map, .quick-files {
    grid-column: 2 / 3;
  }
  .home-map {
    grid-row: 3;
  }
  .quick-files {
    grid-row: 4;
  }
  .site-hero {
    grid-template-rows: auto auto auto auto;
  }
}


/* Real Calder City archive map image panel */
.home-map {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  align-self: start;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  background: #05070b;
}

.map-art-panel {
  position: relative;
  margin: 0;
  min-height: 420px;
  height: 100%;
  border: 0;
  background: #05070b;
  overflow: hidden;
}

.map-art-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: brightness(.82) contrast(1.08) saturate(.92);
}

.map-art-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,5,9,.12), transparent 28%, rgba(3,5,9,.20)),
    linear-gradient(0deg, rgba(3,5,9,.55), transparent 40%, rgba(3,5,9,.22));
  pointer-events: none;
}

.map-art-panel figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(185,154,98,.42);
  background: linear-gradient(90deg, rgba(3,5,9,.82), rgba(3,5,9,.38));
  box-shadow: 0 16px 42px rgba(0,0,0,.38);
}

.map-art-panel figcaption strong {
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.4rem, 2.3vw, 2.45rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.map-art-panel figcaption span:last-child {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.48;
  font-size: .92rem;
}

/* Hide the old CSS-drawn map parts if an older browser/cache keeps any behind */
.home-map .map-header,
.home-map .map-grid,
.home-map .map-note {
  display: none !important;
}

@media (max-width: 980px) {
  .top-nav, .hero-panel, .home-map, .quick-files {
    grid-column: 2 / 3;
  }
  .home-map {
    grid-row: 3;
  }
  .quick-files {
    grid-row: 4;
  }
  .site-hero {
    grid-template-rows: auto auto auto auto;
  }
  .map-art-panel,
  .map-art-panel img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .map-art-panel,
  .map-art-panel img {
    min-height: 260px;
  }
  .map-art-panel figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .map-art-panel figcaption span:last-child {
    font-size: .82rem;
  }
}


/* Homepage layout repair: restore strong left title panel and real map artwork */
.site-hero {
  min-height: 100vh;
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(430px, 570px) minmax(460px, 660px);
  grid-template-rows: auto auto auto;
  gap: 28px 32px;
  align-content: center;
  justify-content: center;
  padding: 64px 0 72px;
}

.top-nav {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: end;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: stretch;
  min-height: 470px;
  padding: clamp(34px, 4vw, 54px);
}

.home-map {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: stretch;
  padding: 0 !important;
  overflow: hidden;
  min-height: 470px;
  background: #05070b;
  border: 1px solid rgba(185,154,98,.44);
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
}

.home-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
  filter: brightness(.78) contrast(1.08) saturate(.92);
}

.home-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 0 52%, rgba(0,0,0,.22) 100%),
    linear-gradient(0deg, rgba(3,5,9,.20), transparent 38%, rgba(3,5,9,.10));
  pointer-events: none;
}

.quick-files {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-self: start;
}

.quick-files .mini-card {
  min-height: 135px;
}

.hero-panel h1,
h1 {
  font-size: clamp(5.4rem, 8vw, 8.8rem);
  line-height: .82;
}

.hero-panel .intro {
  max-width: 58ch;
}

/* Disable earlier fake/overlay map caption rules */
.map-art-panel,
.map-art-panel figcaption,
.map-header,
.map-grid,
.map-note {
  display: none !important;
}

@media (max-width: 1100px) {
  .site-hero {
    width: min(100% - 36px, 760px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding-top: 42px;
  }

  .top-nav,
  .hero-panel,
  .home-map,
  .quick-files {
    grid-column: 1 !important;
  }

  .top-nav { grid-row: 1 !important; justify-self: start; flex-wrap: wrap; }
  .hero-panel { grid-row: 2 !important; }
  .home-map { grid-row: 3 !important; min-height: 360px; }
  .home-map img { min-height: 360px; }
  .quick-files { grid-row: 4 !important; grid-template-columns: 1fr 1fr; }

  .hero-panel h1,
  h1 {
    font-size: clamp(4rem, 14vw, 6.2rem);
  }
}

@media (max-width: 560px) {
  .site-hero {
    width: min(100% - 24px, 100%);
    gap: 18px;
    padding-top: 24px;
  }

  .hero-panel {
    min-height: auto;
    padding: 24px;
  }

  .home-map,
  .home-map img {
    min-height: 260px;
  }

  .quick-files {
    grid-template-columns: 1fr;
  }
}


/* Calder City map restored as full homepage backdrop */
.site-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 48px clamp(28px, 6vw, 92px) 76px;
  display: grid !important;
  grid-template-columns: minmax(460px, 620px) minmax(340px, 520px);
  grid-template-rows: auto 1fr;
  gap: 34px 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3,5,9,.96), rgba(3,5,9,.76) 44%, rgba(3,5,9,.88)),
    #030509;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/calder-city-archive-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .48;
  filter: brightness(.72) contrast(1.08) saturate(.88);
  transform: scale(1.03);
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 34% 42%, rgba(143,29,36,.16), transparent 30%),
    radial-gradient(circle at 70% 30%, rgba(185,154,98,.09), transparent 24%),
    linear-gradient(180deg, rgba(3,5,9,.30), rgba(3,5,9,.88));
  pointer-events: none;
}

.top-nav {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: end;
  display: flex;
  gap: 10px;
  margin: 0;
}

.hero-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: center;
  min-height: 0;
  padding: clamp(34px, 4vw, 54px);
  background: rgba(4,7,12,.82);
  backdrop-filter: blur(2px);
  box-shadow: 0 28px 80px rgba(0,0,0,.52);
}

.quick-files {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quick-files .mini-card {
  min-height: 150px;
  background: rgba(4,7,12,.76);
  backdrop-filter: blur(2px);
}

.hero-panel h1,
h1 {
  font-size: clamp(5.2rem, 7.5vw, 8.6rem);
  line-height: .82;
}

.hero-panel .intro {
  max-width: 58ch;
}

/* The Calder map is a page backdrop now, not a separate card. */
.home-map,
.map-art-panel,
.map-art-panel figcaption,
.map-header,
.map-grid,
.map-note {
  display: none !important;
}

@media (max-width: 1100px) {
  .site-hero {
    grid-template-columns: minmax(0, 760px);
    grid-template-rows: auto auto auto;
    padding: 34px clamp(18px, 5vw, 38px) 60px;
    align-items: start;
  }

  .top-nav,
  .hero-panel,
  .quick-files {
    grid-column: 1 !important;
  }

  .top-nav {
    grid-row: 1 !important;
    justify-self: start;
    flex-wrap: wrap;
  }

  .hero-panel {
    grid-row: 2 !important;
  }

  .quick-files {
    grid-row: 3 !important;
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel h1,
  h1 {
    font-size: clamp(4rem, 14vw, 6.2rem);
  }
}

@media (max-width: 560px) {
  .site-hero {
    padding: 24px 14px 48px;
  }

  .hero-panel {
    padding: 24px;
  }

  .quick-files {
    grid-template-columns: 1fr;
  }
}


/* Oxblood quick archive panels over the Calder City map backdrop */
.quick-files .mini-card {
  background:
    linear-gradient(135deg, rgba(42, 8, 13, .88), rgba(7, 8, 13, .82) 58%, rgba(25, 5, 9, .86));
  border-color: rgba(185, 154, 98, .58);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .46),
    0 0 28px rgba(120, 22, 30, .20),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.quick-files .mini-card:hover {
  background:
    linear-gradient(135deg, rgba(55, 10, 17, .94), rgba(9, 10, 16, .86) 56%, rgba(32, 6, 11, .90));
  border-color: rgba(214, 179, 112, .75);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, .56),
    0 0 36px rgba(143, 29, 36, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.quick-files .mini-card .number,
.quick-files .mini-card span:first-child {
  color: rgba(210, 56, 68, .92);
}

.quick-files .mini-card h2,
.quick-files .mini-card h3 {
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}

.quick-files .mini-card p,
.quick-files .mini-card a {
  color: rgba(224, 213, 194, .92);
}

/* Keep the main title panel dark so the oxblood boxes stand apart */
.hero-panel {
  background: rgba(4, 7, 12, .86);
  border-color: rgba(185, 154, 98, .48);
}



/* Case Files section */
.case-files-section {
  border-top: 1px solid rgba(185, 154, 98, .20);
}

.case-gallery {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  gap: 26px;
  justify-content: center;
}

.case-file-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(185, 154, 98, .48);
  background:
    linear-gradient(180deg, rgba(5, 7, 12, .88), rgba(3, 4, 8, .96));
  box-shadow:
    0 22px 62px rgba(0, 0, 0, .50),
    0 0 34px rgba(143, 29, 36, .14);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}

.case-file-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(185, 154, 98, .25);
  pointer-events: none;
  z-index: 2;
}

.case-file-card:hover,
.case-file-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(214, 192, 138, .78);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, .62),
    0 0 42px rgba(143, 29, 36, .24);
  outline: none;
  filter: brightness(1.04);
}

.case-file-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #030509;
}

.case-card-copy {
  position: relative;
  z-index: 3;
  padding: 16px 17px 20px;
  border-top: 1px solid rgba(185, 154, 98, .30);
  background:
    linear-gradient(180deg, rgba(7, 9, 15, .92), rgba(4, 5, 9, .98));
}

.case-card-copy h3 {
  margin: 4px 0 9px;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.case-card-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
  font-size: .84rem;
}

@media (max-width: 720px) {
  .case-gallery {
    width: min(100% - 28px, 420px);
    grid-template-columns: 1fr;
  }
}



/* Separate page layout */
body.home-page {
  min-height: 100vh;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 22px 32px 10px;
  background: linear-gradient(180deg, rgba(2, 3, 7, .92), rgba(2, 3, 7, .55), rgba(2, 3, 7, 0));
}

.home-shell {
  min-height: calc(100vh - 78px);
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(340px, .9fr);
  gap: 34px;
  align-items: center;
}

.home-shell .quick-files {
  position: static;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

.archive-intro,
.standalone-cases .section-heading {
  width: min(100% - 48px, 1180px);
  margin: 0 auto 30px;
  padding-top: 40px;
}

.archive-intro h1,
.standalone-cases h1 {
  margin: 0 0 14px;
  font-family: Cinzel, Georgia, serif;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .9;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.archive-intro p:not(.eyebrow),
.standalone-cases .section-heading p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.filter-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.location-grid {
  width: min(100% - 48px, 1180px);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
}

.location-card {
  min-height: 190px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(42, 8, 13, .78), rgba(7, 8, 13, .82) 58%, rgba(25, 5, 9, .80));
}

.location-card h2 {
  margin: 8px 0 12px;
  font-family: Cinzel, Georgia, serif;
  color: var(--ink);
  text-transform: uppercase;
}

.location-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.top-nav a[aria-current="page"] {
  background: rgba(107, 23, 31, .72);
  border-color: rgba(214, 179, 112, .72);
  color: var(--ink);
}

@media (max-width: 980px) {
  .home-shell {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 16px 14px 8px;
  }

  .home-shell {
    width: min(100% - 28px, 560px);
  }

  .home-shell .quick-files {
    grid-template-columns: 1fr;
  }
}


/* Home page Calder City map backdrop restoration */
body.home-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(1, 2, 6, .50) 0%, rgba(1, 2, 6, .20) 44%, rgba(1, 2, 6, .52) 100%),
    radial-gradient(circle at 38% 44%, rgba(109, 20, 29, .16), transparent 42%),
    url("assets/calder-city-archive-bg.png") center center / cover fixed no-repeat,
    #020307;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 3, 7, .12), rgba(2, 3, 7, .30)),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, .38) 72%, rgba(0, 0, 0, .72) 100%);
}

body.home-page .home-shell {
  position: relative;
  z-index: 1;
}



/* Homepage audio entry gate */
.sound-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(143, 29, 36, .22), transparent 34%),
    linear-gradient(180deg, rgba(2, 3, 7, .78), rgba(2, 3, 7, .94));
  backdrop-filter: blur(6px);
}

.sound-gate[hidden] {
  display: none !important;
}

.sound-gate-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(42, 8, 13, .90), rgba(4, 7, 12, .92) 58%, rgba(2, 3, 7, .96));
  border-color: rgba(214, 179, 112, .62);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .66),
    0 0 48px rgba(143, 29, 36, .20);
}

.sound-gate-panel h2 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: .9;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.sound-gate-panel p:not(.eyebrow) {
  margin: 0 auto 26px;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.65;
}

.sound-gate-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sound-gate-actions .button {
  cursor: pointer;
}

.sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(185, 154, 98, .48);
  background: rgba(4, 7, 12, .82);
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.44);
}

.sound-toggle:hover {
  border-color: rgba(214, 179, 112, .76);
  box-shadow: 0 0 28px rgba(143, 29, 36, .20);
}

@media (max-width: 560px) {
  .sound-gate-actions .button {
    width: 100%;
  }

  .sound-toggle {
    right: 12px;
    bottom: 12px;
  }
}


/* Calder City location archive */
body.location-archive-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 3, 7, .34), rgba(2, 3, 7, .68)),
    radial-gradient(circle at 36% 18%, rgba(143, 29, 36, .12), transparent 34%),
    url("assets/locations/calder-city-map-bg.png") center top / cover fixed no-repeat,
    url("assets/calder-city-archive-bg.png") center top / cover fixed no-repeat,
    #020307;
}
body.location-archive-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 7, .34), rgba(2, 3, 7, .10), rgba(2, 3, 7, .42)),
    radial-gradient(circle at 50% 38%, rgba(0,0,0,0) 0 42%, rgba(0,0,0,.22) 100%);
}
.location-archive-section {
  width: min(100% - 48px, 1280px);
  margin: 0 auto 96px;
  position: relative;
  z-index: 1;
}
.location-archive-section .section-heading {
  width: min(100%, 980px);
  margin: 0 0 28px;
}
.location-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 24px;
}
.location-file-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .95fr) minmax(220px, 1fr);
  min-height: 270px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(185, 154, 98, .48);
  background: linear-gradient(135deg, rgba(42, 8, 13, .88), rgba(7, 8, 13, .88) 58%, rgba(2, 3, 7, .94));
  box-shadow: 0 22px 62px rgba(0, 0, 0, .52), 0 0 34px rgba(143, 29, 36, .14);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
.location-file-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(185, 154, 98, .25);
  pointer-events: none;
}
.location-file-card:hover,
.location-file-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(214, 192, 138, .78);
  box-shadow: 0 30px 82px rgba(0, 0, 0, .66), 0 0 42px rgba(143, 29, 36, .24);
  filter: brightness(1.04);
  outline: none;
}
.location-file-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
  background: #030509;
}
.location-card-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 28px;
  background: linear-gradient(90deg, rgba(3, 5, 9, .22), rgba(3, 5, 9, .88) 18%, rgba(3, 5, 9, .96));
}
.location-card-copy h3 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.location-card-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.location-button {
  align-self: flex-start;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(185, 154, 98, .50);
  color: var(--ink);
  background: rgba(143, 29, 36, .48);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.location-modal #modal-image,
.location-modal img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 860px) {
  .location-gallery { grid-template-columns: 1fr; }
  .location-file-card { grid-template-columns: 1fr; }
  .location-file-card img { min-height: 220px; aspect-ratio: 16 / 9; }
  .location-card-copy { background: linear-gradient(180deg, rgba(3, 5, 9, .82), rgba(3, 5, 9, .98)); }
}
@media (max-width: 560px) {
  .location-archive-section { width: min(100% - 28px, 100%); }
  .location-file-card img { min-height: 190px; }
  .location-card-copy { padding: 22px; }
}


/* Location archive image crop fix */
.location-gallery {
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  align-items: start;
}

.location-file-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.location-file-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  display: block;
}

.location-card-copy {
  min-height: 190px;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(3, 5, 9, .94), rgba(3, 5, 9, .98));
}

.location-modal {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, .95fr);
  align-items: start;
}

.location-modal #modal-image {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #020307;
  display: block;
  position: sticky;
  top: 0;
}

.location-modal .modal-copy {
  max-height: none;
  overflow: visible;
}

@media (max-width: 980px) {
  .location-gallery {
    grid-template-columns: 1fr;
  }

  .location-modal {
    width: min(760px, calc(100vw - 28px));
    grid-template-columns: 1fr;
  }

  .location-modal #modal-image {
    position: static;
  }
}

@media (max-width: 560px) {
  .location-gallery {
    grid-template-columns: 1fr;
  }

  .location-file-card img {
    aspect-ratio: 16 / 9;
  }
}


/* Character Archive background restoration */
body.characters-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 3, 7, .42), rgba(2, 3, 7, .72)),
    radial-gradient(circle at 22% 18%, rgba(143, 29, 36, .08), transparent 34%),
    url("assets/character-archive-bg.png") center center / cover fixed no-repeat,
    #020307;
}

body.characters-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 7, .46), rgba(2, 3, 7, .24), rgba(2, 3, 7, .54)),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.34));
}

body.characters-page .archive-intro,
body.characters-page .archive-grid,
body.characters-page .section-heading,
body.characters-page .gallery,
body.characters-page .character-gallery {
  position: relative;
  z-index: 1;
}


/* Case Files archive background */
body.cases-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 3, 7, .40), rgba(2, 3, 7, .74)),
    radial-gradient(circle at 50% 18%, rgba(143, 29, 36, .10), transparent 36%),
    url("assets/case-files-archive-bg.png") center center / cover fixed no-repeat,
    #020307;
}

body.cases-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 7, .34), rgba(2, 3, 7, .12), rgba(2, 3, 7, .34)),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28));
}

body.cases-page .archive-section,
body.cases-page .section-heading,
body.cases-page .case-gallery {
  position: relative;
  z-index: 1;
}


/* Case narration button */
.case-narration-control {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(185, 154, 98, .34);
  background:
    linear-gradient(135deg, rgba(42, 8, 13, .42), rgba(4, 7, 12, .82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.narration-button {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.narration-button[aria-pressed="true"] {
  border-color: rgba(214, 179, 112, .78);
  box-shadow: 0 0 28px rgba(143, 29, 36, .25);
}


/* Brides of Nightshade archive */
.brides-section {
  border-top: 1px solid rgba(185, 154, 98, .18);
}

.brides-gallery {
  grid-template-columns: minmax(280px, 760px);
  justify-content: center;
}

.brides-gallery .character-card {
  max-width: 760px;
}

.brides-gallery .character-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.brides-gallery .character-card-copy h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.brides-disclaimer {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(195, 55, 66, .46);
  background:
    linear-gradient(135deg, rgba(64, 9, 17, .52), rgba(5, 7, 12, .88));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.brides-disclaimer h3 {
  margin-top: 0;
  color: var(--ink);
}

.bride-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bride-choice {
  cursor: pointer;
  padding: 16px 12px;
  border: 1px solid rgba(185, 154, 98, .48);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(42, 8, 13, .72), rgba(4, 7, 12, .94));
  font-family: Cinzel, Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: transform .2s ease, border-color .2s ease, filter .2s ease;
}

.bride-choice:hover,
.bride-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 192, 138, .86);
  filter: brightness(1.08);
  outline: none;
}

.bride-choice span {
  display: block;
  font-size: .92rem;
}

.bride-choice small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: none;
}

.brides-archive-modal {
  width: min(1180px, 100%);
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr);
}

.brides-archive-modal img {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #030509;
  align-self: start;
}

@media (max-width: 840px) {
  .bride-choice-grid {
    grid-template-columns: 1fr;
  }

  .brides-archive-modal {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   BRIDES DISPLAY FIX
   Wide bride cards must display as landscape website cards,
   not portrait character cards.
   ========================================================= */

/* Brides group card on the Character Archive page */
#brides .brides-gallery,
.brides-gallery {
  display: grid !important;
  grid-template-columns: minmax(320px, 780px) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 0 !important;
}

#brides .brides-gallery .character-card,
.brides-gallery .character-card {
  display: block !important;
  width: 100% !important;
  max-width: 780px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(185, 154, 98, .58) !important;
  background: #020408 !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.48) !important;
}

#brides .brides-gallery .character-card img,
.brides-gallery .character-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #020408 !important;
}

#brides .brides-gallery .character-card .card-meta,
#brides .brides-gallery .character-card-copy,
.brides-gallery .character-card .card-meta,
.brides-gallery .character-card-copy {
  display: none !important;
}

/* Individual Bride popups: show full wide card, no crop */
.dossier-modal.bride-card-modal {
  width: min(1360px, 96vw) !important;
  max-width: 1360px !important;
  grid-template-columns: minmax(560px, 1.25fr) minmax(360px, .75fr) !important;
  align-items: start !important;
}

.dossier-modal.bride-card-modal .dossier-image,
.dossier-modal.bride-card-modal img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 96px) !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #020408 !important;
}

.dossier-modal.bride-card-modal .dossier-content {
  min-width: 0 !important;
}

@media (max-width: 920px) {
  .dossier-modal.bride-card-modal {
    grid-template-columns: 1fr !important;
    width: min(96vw, 760px) !important;
  }

  .dossier-modal.bride-card-modal .dossier-image,
  .dossier-modal.bride-card-modal img {
    max-height: none !important;
  }
}


/* Brides disclaimer audio button */
.brides-disclaimer-audio {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

