@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&family=Poiret+One&display=swap');

:root {
  --bg: #020a10;
  --ink: #06141b;
  --deep: #071b22;
  --deep2: #09252d;
  --gold: #c58b3b;
  --gold2: #f1ca78;
  --cream: #f5dca4;
  --teal: #0d3a43;
  --coral: #b15b45;
  --muted: #9fb5b2;
  --line: rgba(226, 166, 75, .76);
  --thin-line: rgba(232, 183, 93, .48);
  --shadow: 0 32px 96px rgba(0,0,0,.52);
  --deco: 'Poiret One', 'Josefin Sans', 'Avenir Next', 'Futura', sans-serif;
  --nav: 'Josefin Sans', 'Avenir Next', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 48%, rgba(20, 78, 86, .36), transparent 34rem),
    radial-gradient(circle at 18% 52%, rgba(194, 109, 66, .11), transparent 30rem),
    linear-gradient(180deg, #01070c 0%, #071922 42%, #02080d 100%);
  overflow-x: hidden;
  font-family: var(--nav);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
}
body::before {
  background:
    linear-gradient(90deg, rgba(238, 198, 112, .028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(238, 198, 112, .022) 1px, transparent 1px),
    linear-gradient(48deg, transparent 0 48%, rgba(129, 185, 174, .034) 49%, rgba(129, 185, 174, .034) 51%, transparent 52%);
  background-size: 58px 58px, 58px 58px, 210px 210px;
  opacity: .62;
}
body::after {
  background: radial-gradient(circle at center, rgba(238, 198, 112, .08), transparent 55%);
  opacity: .7;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: clamp(72px, 10vh, 96px);
  padding: 0 clamp(26px, 3.6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(209, 151, 61, .36);
  background: linear-gradient(180deg, rgba(1, 7, 12, .96), rgba(4, 14, 19, .88));
  position: relative;
  z-index: 10;
}

.brand {
  font-family: var(--deco);
  text-transform: uppercase;
  letter-spacing: .035em;
  color: var(--gold2);
  font-size: clamp(1.22rem, 2.2vw, 2.15rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(239, 201, 117, .12);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.35vw, 38px);
  color: #d5b36d;
}
.main-nav a {
  font-family: var(--nav);
  text-transform: uppercase;
  letter-spacing: .115em;
  font-weight: 500;
  font-size: clamp(.72rem, .92vw, .93rem);
  opacity: .93;
}
.main-nav a:hover { color: #ffe3a2; }
.search-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(214, 154, 61, .8);
  background: transparent;
  color: var(--gold2);
  cursor: pointer;
  font-size: 1.05rem;
}
.menu-button { display: none; }

.bg-flags {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.flag {
  position: absolute;
  width: 122px;
  height: 96px;
  background: rgba(126, 42, 43, .26);
  border: 1px solid rgba(224, 177, 91, .14);
  filter: blur(.2px);
  opacity: .35;
}
.flag::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 8, 13, .75);
}
.flag-left-one { left: 5.2vw; top: 24vh; transform: rotate(-12deg); }
.flag-left-two { left: 7.1vw; top: 35vh; transform: rotate(-10deg); }
.flag-right-one { right: 6.4vw; top: 27vh; transform: rotate(8deg); }
.flag-right-two { right: 5.5vw; top: 38vh; transform: rotate(8deg); }
.flag-right-three { right: 6.2vw; bottom: 18vh; transform: rotate(18deg); opacity: .28; }

.hero-shell {
  min-height: calc(100vh - clamp(72px, 10vh, 96px));
  padding: clamp(16px, 2.4vh, 24px) clamp(18px, 2vw, 38px) clamp(18px, 2.2vh, 30px);
}

.hero-frame {
  min-height: calc(100vh - clamp(72px, 10vh, 96px) - clamp(38px, 5.2vh, 58px));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(18px, 3vw, 56px);
  padding: clamp(28px, 5.3vh, 66px) clamp(26px, 5.6vw, 112px) clamp(28px, 5vh, 56px);
  border: 2px solid rgba(216, 154, 62, .84);
  box-shadow:
    inset 0 0 0 1px rgba(239, 201, 117, .22),
    inset 0 0 0 16px rgba(0,0,0,.08),
    0 28px 90px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at 67% 48%, rgba(29, 88, 92, .26), transparent 27rem),
    linear-gradient(90deg, rgba(5, 21, 28, .88), rgba(8, 30, 38, .64) 49%, rgba(4, 15, 22, .74)),
    rgba(3, 13, 20, .8);
  overflow: hidden;
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  inset: 16px;
  pointer-events: none;
}
.hero-frame::before {
  border: 1px solid rgba(236, 187, 93, .38);
}
.hero-frame::after {
  inset: 28px;
  border: 1px solid rgba(236, 187, 93, .16);
  background:
    linear-gradient(90deg, rgba(239,201,117,.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(239,201,117,.018) 1px, transparent 1px),
    linear-gradient(55deg, transparent 0 49%, rgba(138, 187, 181, .028) 49.4% 50.6%, transparent 51%);
  background-size: 56px 56px, 56px 56px, 190px 190px;
  mask-image: linear-gradient(90deg, black, rgba(0,0,0,.84), black);
}

.corner {
  position: absolute;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 3;
}
.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--line);
}
.corner-tl { left: 25px; top: 25px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.corner-tr { right: 25px; top: 25px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.corner-bl { left: 25px; bottom: 25px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.corner-br { right: 25px; bottom: 25px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.corner-tl::before, .corner-bl::before { left: 14px; width: 1px; height: 34px; }
.corner-tl::before { top: 0; } .corner-bl::before { bottom: 0; }
.corner-tl::after, .corner-bl::after { top: 14px; height: 1px; width: 34px; left: 0; }
.corner-bl::after { top: auto; bottom: 14px; }
.corner-tr::before, .corner-br::before { right: 14px; width: 1px; height: 34px; }
.corner-tr::before { top: 0; } .corner-br::before { bottom: 0; }
.corner-tr::after, .corner-br::after { top: 14px; height: 1px; width: 34px; right: 0; }
.corner-br::after { top: auto; bottom: 14px; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 690px);
  text-align: center;
  justify-self: center;
  transform: translateY(-.6vh);
}

.date-rule {
  width: min(100%, 590px);
  margin: 0 auto clamp(20px, 3.2vh, 34px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.date-rule span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold2));
}
.date-rule span:last-child {
  background: linear-gradient(90deg, var(--gold2), transparent);
}
.date-rule strong {
  display: block;
  font-family: var(--nav);
  text-transform: uppercase;
  letter-spacing: .36em;
  font-size: clamp(.72rem, 1.1vw, .98rem);
  color: var(--gold2);
  white-space: nowrap;
}

h1 {
  margin: 0;
  color: #f2c981;
  text-transform: uppercase;
  line-height: .94;
  text-shadow:
    0 2px 0 rgba(0,0,0,.28),
    0 0 22px rgba(237, 186, 91, .12);
}
.title-line {
  display: block;
  font-family: var(--deco);
  font-weight: 400;
  letter-spacing: .092em;
}
.title-great {
  font-size: clamp(3.05rem, 6.6vw, 7.7rem);
}
.title-miami {
  font-family: var(--deco);
  font-weight: 400;
  font-size: clamp(3.05rem, 6.25vw, 7.3rem);
  letter-spacing: .092em;
  transform: none;
  margin: clamp(3px, .5vh, 8px) auto clamp(5px, .8vh, 11px);
}
.title-hurricane {
  font-size: clamp(2.75rem, 5.55vw, 6.35rem);
  letter-spacing: .10em;
}

.deco-divider {
  width: min(100%, 545px);
  margin: clamp(22px, 3.2vh, 34px) auto clamp(15px, 2.2vh, 22px);
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 10px;
  align-items: center;
}
.deco-divider span { height: 1px; background: linear-gradient(90deg, transparent, var(--gold2)); }
.deco-divider span:last-child { background: linear-gradient(90deg, var(--gold2), transparent); }
.divider-fan {
  color: var(--gold2);
  display: block;
  width: 64px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(239, 201, 117, .10));
}
.divider-fan path {
  fill: rgba(197, 139, 59, .08);
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.subline {
  margin: 0;
  font-family: var(--nav);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(.72rem, 1.05vw, .95rem);
  color: #dfad63;
}

.hero-art-wrap {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(45vw, 610px);
  max-width: 100%;
  filter: drop-shadow(0 34px 56px rgba(0,0,0,.5));
}
.hero-art-wrap::before {
  content: '';
  position: absolute;
  inset: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 201, 117, .20), rgba(17, 82, 87, .08) 47%, transparent 70%);
  filter: blur(12px);
}
.hero-art {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .main-nav { gap: 15px; }
  .hero-frame { grid-template-columns: .93fr .9fr; padding-left: 48px; padding-right: 48px; }
  .hero-art-wrap { width: min(45vw, 520px); }
}

@media (max-width: 860px) {
  .site-header { height: 70px; padding: 0 22px; }
  .brand { font-size: 1.35rem; }
  .main-nav { display: none; }
  .menu-button { display: inline-flex; border:1px solid rgba(216,154,62,.58); background:transparent; color:var(--gold2); text-transform:uppercase; letter-spacing:.15em; padding:10px 12px 8px; }
  .hero-shell { min-height: auto; }
  .hero-frame { min-height: auto; grid-template-columns: 1fr; padding: 38px 24px 34px; gap: 18px; }
  .hero-copy { order: 1; }
  .hero-art-wrap { order: 2; width: min(78vw, 480px); }
  .date-rule { gap: 12px; margin-bottom: 18px; }
  .date-rule strong { letter-spacing: .24em; }
  .title-great { font-size: clamp(3rem, 15vw, 5.1rem); }
  .title-miami { font-size: clamp(3rem, 14vw, 5.1rem); letter-spacing: .092em; }
  .title-hurricane { font-size: clamp(2.5rem, 12vw, 4.35rem); }
  .subline { letter-spacing: .18em; }
}

@media (max-height: 720px) and (min-width: 900px) {
  .site-header { height: 70px; }
  .hero-shell { padding-top: 14px; padding-bottom: 14px; }
  .hero-frame { min-height: calc(100vh - 98px); padding-top: 28px; padding-bottom: 26px; }
  .hero-art-wrap { width: min(42vw, 510px); }
  .date-rule { margin-bottom: 18px; }
  .deco-divider { margin-top: 22px; margin-bottom: 14px; }
}


/* Batch 2: curated exhibit architecture. Hero/header styles above are preserved. */
.exhibit-section,
.museum-scroll {
  position: relative;
  width: min(1480px, calc(100vw - 36px));
  margin: clamp(34px, 7vw, 96px) auto;
}
.section-kicker,
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--nav);
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--gold2);
  font-size: .74rem;
}
.exhibit-section h2,
.room-narrative h2,
.modal-text h2 {
  margin: 0;
  font-family: var(--deco);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #f4cd87;
}
.exhibit-section h2 { font-size: clamp(2.35rem, 5vw, 6rem); max-width: 980px; }
.section-lede {
  max-width: 780px;
  color: #c9d5cf;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;
}
.chapter-intro {
  padding: clamp(38px, 6vw, 82px) clamp(22px, 4vw, 70px);
  border: 1px solid rgba(216, 154, 62, .52);
  background:
    linear-gradient(135deg, rgba(5,22,30,.92), rgba(10,41,48,.58)),
    radial-gradient(circle at 82% 20%, rgba(177,91,69,.16), transparent 30rem);
  box-shadow: var(--shadow);
}
.chapter-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.chapter-card {
  min-height: 250px;
  padding: 24px 22px;
  border: 1px solid rgba(241,202,120,.42);
  color: var(--cream);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(9,37,45,.88), rgba(3,13,20,.88)),
    repeating-linear-gradient(45deg, rgba(241,202,120,.025) 0 1px, transparent 1px 12px);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.chapter-card:hover,
.chapter-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(241,202,120,.9);
  box-shadow: 0 26px 54px rgba(0,0,0,.32);
}
.chapter-card span,
.chapter-card em { display: block; }
.chapter-card span { color: var(--gold2); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; margin-bottom: 18px; }
.chapter-card strong { display:block; font-family: var(--deco); font-weight:400; text-transform:uppercase; letter-spacing:.06em; line-height:1.05; color:#f7d592; font-size: clamp(1.42rem, 2vw, 2.2rem); }
.chapter-card em { color: #a7bfba; font-style: normal; line-height: 1.45; margin-top: 18px; }

.museum-scroll {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}
.room-narrative {
  position: sticky;
  top: calc(clamp(72px, 10vh, 96px) + 24px);
  min-height: 640px;
  padding: clamp(26px, 3.3vw, 48px);
  border: 1px solid rgba(216,154,62,.62);
  background:
    linear-gradient(180deg, rgba(2,10,16,.94), rgba(7,27,34,.88)),
    radial-gradient(circle at 100% 0%, rgba(241,202,120,.12), transparent 18rem);
  box-shadow: var(--shadow);
}
.room-narrative h2 { font-size: clamp(2rem, 3.6vw, 4.2rem); }
.room-narrative p:not(.eyebrow) { color: #cadbd6; line-height: 1.7; font-size: 1.05rem; }
.room-actions { display:flex; flex-wrap:wrap; gap:12px; margin: 28px 0; }
.reader-button,
.room-actions a,
.source-link,
.scan-demo,
.modal-tools button {
  border: 1px solid rgba(241,202,120,.66);
  background: rgba(5,22,30,.72);
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 12px 15px 10px;
  cursor: pointer;
}
.room-actions a { display:inline-flex; align-items:center; }
.room-progress { list-style:none; padding:0; margin:34px 0 0; counter-reset: room; }
.room-progress li {
  counter-increment: room;
  display:flex;
  gap: 12px;
  align-items:center;
  color: #8ba9a5;
  padding: 11px 0;
  border-top: 1px solid rgba(241,202,120,.14);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
}
.room-progress li::before { content: '0' counter(room); color: rgba(241,202,120,.76); }
.room-progress li.active { color: #f5dca4; }
.room-plates { display: grid; gap: 52px; }
.exhibit-plate {
  min-height: 760px;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  opacity: .72;
  transition: opacity .3s ease, transform .3s ease;
}
.exhibit-plate.active { opacity: 1; transform: translateX(-8px); }
.plate-media {
  min-height: clamp(360px, 55vw, 610px);
  border: 1px solid rgba(241,202,120,.5);
  box-shadow: 0 30px 70px rgba(0,0,0,.42);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.plate-media::before,
.scan-demo::before,
.modal-art::before {
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 25%, rgba(241,202,120,.28), transparent 20rem),
    linear-gradient(135deg, rgba(13,58,67,.9), rgba(2,10,16,.96) 58%, rgba(177,91,69,.22));
}
.plate-media::after,
.scan-demo::after,
.modal-art::after {
  content:'';
  position:absolute;
  inset:24px;
  border: 1px solid rgba(241,202,120,.42);
  background:
    repeating-linear-gradient(0deg, rgba(245,220,164,.028) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(245,220,164,.018) 0 1px, transparent 1px 10px);
}
.plate-postcard::before { background: radial-gradient(circle at 68% 28%, rgba(241,202,120,.22), transparent 22rem), linear-gradient(135deg, rgba(13,58,67,.95), rgba(2,10,16,.96)); }
.plate-storm::before { background: radial-gradient(circle at 45% 40%, rgba(241,202,120,.3), transparent 12rem), conic-gradient(from 20deg, rgba(2,10,16,.92), rgba(13,58,67,.95), rgba(241,202,120,.3), rgba(2,10,16,.96)); }
.plate-bay::before { background: linear-gradient(165deg, rgba(2,10,16,.95), rgba(13,58,67,.8) 52%, rgba(241,202,120,.22)), repeating-linear-gradient(8deg, rgba(245,220,164,.09) 0 2px, transparent 2px 18px); }
.plate-ledger::before { background: linear-gradient(135deg, rgba(5,22,30,.96), rgba(177,91,69,.2)), repeating-linear-gradient(0deg, rgba(241,202,120,.1) 0 1px, transparent 1px 44px); }
.plate-caption {
  width: min(700px, 88%);
  margin: -64px auto 0;
  position: relative;
  z-index: 2;
  padding: 26px;
  border: 1px solid rgba(241,202,120,.52);
  background: rgba(2,10,16,.9);
  backdrop-filter: blur(12px);
}
.plate-caption span { color: var(--gold2); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }
.plate-caption h3 { margin: 10px 0; font-family: var(--deco); font-weight:400; text-transform:uppercase; letter-spacing:.055em; font-size: clamp(1.55rem, 2.6vw, 2.9rem); color:#f7d592; }
.plate-caption p { color: #c2d2ce; line-height: 1.6; }

.timeline-strip { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.timeline-strip button {
  min-height: 140px;
  padding: 18px;
  border:1px solid rgba(241,202,120,.36);
  background:rgba(7,27,34,.74);
  color:var(--cream);
  text-align:left;
}
.timeline-strip span { display:block; color:var(--gold2); text-transform:uppercase; letter-spacing:.18em; font-size:.7rem; margin-bottom:10px; }
.timeline-strip strong { font-family:var(--deco); font-weight:400; text-transform:uppercase; letter-spacing:.05em; font-size:1.35rem; }
.scan-section { display:grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr); gap:24px; align-items:stretch; }
.scan-demo { position:relative; min-height: 260px; overflow:hidden; text-align:left; display:flex; flex-direction:column; justify-content:flex-end; }
.scan-demo span, .scan-demo strong { position:relative; z-index:2; }
.scan-demo strong { font-family:var(--deco); font-weight:400; text-transform:uppercase; letter-spacing:.05em; font-size:2rem; margin-top:10px; }
.archive-section,
.sources-section { padding: 46px; border-top: 1px solid rgba(241,202,120,.28); }

.exhibit-modal[hidden] { display:none; }
.exhibit-modal { position: fixed; inset:0; z-index: 50; display:grid; place-items:center; padding: 28px; }
.modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, 96vw);
  max-height: 88vh;
  overflow:auto;
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  border: 1px solid rgba(241,202,120,.7);
  background: #06141b;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.modal-close { position:absolute; right:14px; top:12px; z-index:4; width:42px; height:42px; border:1px solid rgba(241,202,120,.6); background:rgba(2,10,16,.9); color:var(--gold2); font-size:2rem; line-height:1; cursor:pointer; }
.modal-art { min-height: 560px; position:relative; overflow:hidden; }
.modal-text { padding: clamp(28px, 4vw, 54px); }
.modal-text h2 { font-size: clamp(2rem, 4vw, 4rem); }
.modal-text p:not(.eyebrow) { color:#cbdad6; line-height:1.65; }
.modal-tools { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }

@media (max-width: 980px) {
  .chapter-card-grid,
  .timeline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .museum-scroll,
  .scan-section,
  .modal-panel { grid-template-columns: 1fr; }
  .room-narrative { position: relative; top: auto; min-height: auto; }
  .exhibit-plate { min-height: auto; margin-bottom: 40px; }
  .modal-art { min-height: 360px; }
}
@media (max-width: 620px) {
  .exhibit-section,
  .museum-scroll { width: min(100vw - 24px, 1480px); margin: 40px auto; }
  .chapter-card-grid,
  .timeline-strip { grid-template-columns: 1fr; }
  .chapter-intro { padding: 30px 18px; }
  .plate-caption { width: 94%; margin-top: -38px; padding: 20px; }
  .room-actions { display:grid; }
  .modal-panel { width: 100%; }
}


/* Batch 3: source/photo viewer system. Hero/header and Batch 2 layout above are preserved. */
.plate-media.source-thumb { padding:0; border:1px solid rgba(241,202,120,.5); background:#020a10; width:100%; text-align:initial; }
.source-thumb img { width:100%; height:100%; object-fit:cover; display:block; position:relative; z-index:1; transition: transform .25s ease, filter .25s ease; }
.source-thumb:hover img { transform: scale(1.025); filter: contrast(1.05) saturate(1.05); }
.plate-media.source-thumb::before,
.plate-media.source-thumb::after { pointer-events:none; z-index:2; background:none; }
.batch3-source-lab { grid-template-columns: minmax(0, .9fr) minmax(340px, .72fr); }
.viewer-callouts { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.viewer-callouts span { border:1px solid rgba(241,202,120,.38); color:#f1ca78; padding:10px 12px 8px; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; background:rgba(2,10,16,.48); }
.primary-viewer-demo { min-height:380px; padding:0; border-color:rgba(241,202,120,.7); }
.scan-demo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.68; filter:sepia(.18) contrast(1.08); }
.scan-demo span, .scan-demo strong { padding-left:24px; padding-right:24px; text-shadow:0 2px 12px rgba(0,0,0,.9); }
.scan-demo strong { padding-bottom:24px; }
.rose-section { padding:clamp(34px,5vw,70px); border:1px solid rgba(216,154,62,.42); background:linear-gradient(135deg,rgba(5,22,30,.78),rgba(2,10,16,.92)); }
.rose-header, .ledger-header { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.66fr); gap:28px; align-items:end; }
.source-rail { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:34px; }
.source-card { min-height:310px; padding:0; overflow:hidden; position:relative; border:1px solid rgba(241,202,120,.38); background:#020a10; color:var(--cream); text-align:left; cursor:pointer; }
.source-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.72; }
.source-card::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(2,10,16,.94)); }
.source-card span, .source-card strong { position:relative; z-index:2; display:block; margin-left:18px; margin-right:18px; }
.source-card span { margin-top:210px; color:var(--gold2); text-transform:uppercase; letter-spacing:.18em; font-size:.7rem; }
.source-card strong { margin-top:8px; font-family:var(--deco); font-weight:400; text-transform:uppercase; letter-spacing:.05em; font-size:1.45rem; line-height:1.05; color:#f7d592; }
.source-ledger-section { border:1px solid rgba(216,154,62,.36); padding:clamp(34px,5vw,64px); background:rgba(2,10,16,.36); }
.ledger-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:28px; }
.ledger-card { min-height:170px; padding:20px; border:1px solid rgba(241,202,120,.34); background:linear-gradient(180deg,rgba(7,27,34,.76),rgba(2,10,16,.9)); color:var(--cream); text-align:left; cursor:pointer; }
.ledger-card span { color:var(--gold2); text-transform:uppercase; letter-spacing:.2em; font-size:.68rem; }
.ledger-card strong { display:block; margin-top:12px; font-family:var(--deco); font-weight:400; color:#f7d592; text-transform:uppercase; letter-spacing:.05em; font-size:1.35rem; line-height:1.08; }
.ledger-card em { display:block; color:#a7bfba; font-style:normal; margin-top:14px; line-height:1.35; }
.source-viewer .modal-panel.source-viewer-panel { width:min(1360px,97vw); max-height:92vh; grid-template-columns:minmax(0,1.35fr) minmax(330px,.58fr); }
.viewer-stage { min-height:min(78vh,860px); display:grid; grid-template-rows:auto 1fr; background:#01070c; }
.viewer-toolbar { display:flex; flex-wrap:wrap; gap:8px; padding:12px; border-bottom:1px solid rgba(241,202,120,.22); background:rgba(2,10,16,.94); position:relative; z-index:5; }
.viewer-toolbar button, .viewer-tabs button { border:1px solid rgba(241,202,120,.5); background:rgba(7,27,34,.78); color:var(--gold2); text-transform:uppercase; letter-spacing:.11em; padding:9px 11px 7px; cursor:pointer; font-size:.72rem; }
.viewer-toolbar button:hover, .viewer-tabs button:hover, .viewer-tabs button.active { background:rgba(197,139,59,.2); border-color:rgba(241,202,120,.9); }
.viewer-canvas { position:relative; overflow:hidden; min-height:560px; cursor:grab; background:radial-gradient(circle at 50% 50%,rgba(13,58,67,.32),#01070c 70%); touch-action:none; }
.viewer-canvas.dragging { cursor:grabbing; }
#viewer-image { position:absolute; left:50%; top:50%; max-width:none; transform-origin:center center; user-select:none; -webkit-user-drag:none; box-shadow:0 20px 70px rgba(0,0,0,.62); }
.viewer-info { padding:clamp(24px,3.2vw,46px); overflow:auto; }
.viewer-info h2 { font-size:clamp(1.8rem,3.2vw,3.55rem); }
.viewer-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 16px; }
.viewer-tab-panel { color:#cbdad6; line-height:1.65; border-top:1px solid rgba(241,202,120,.24); padding-top:16px; white-space:pre-line; }
.viewer-tab-panel strong { color:#f5dca4; }
body.viewer-open { overflow:hidden; }
@media (max-width: 1120px) { .source-rail, .ledger-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .source-viewer .modal-panel.source-viewer-panel, .rose-header, .ledger-header { grid-template-columns:1fr; } .viewer-stage { min-height:520px; } }
@media (max-width: 620px) { .source-rail, .ledger-grid { grid-template-columns:1fr; } .batch3-source-lab { grid-template-columns:1fr; } .source-card { min-height:260px; } .source-card span { margin-top:165px; } .viewer-canvas { min-height:390px; } .source-viewer .modal-panel.source-viewer-panel { max-height:94vh; } }

/* Batch 3 Rose Mahoney refinement: readable rail titles, no-crop article cards, and flipbook controls. */
.plate-media.source-thumb.contain-thumb img,
.source-card.contain-card img {
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, rgba(248,245,237,.96), rgba(228,223,209,.96));
  padding: 10px;
  opacity: .96;
}

.source-card span,
.source-card strong {
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 6px 10px;
  background: rgba(2, 10, 16, .46);
  box-shadow: 0 0 0 10px rgba(2, 10, 16, .34);
  backdrop-filter: blur(2px);
  text-shadow: 0 2px 10px rgba(0,0,0,.92);
}
.source-card span { border-top: 1px solid rgba(241,202,120,.3); }
.source-card strong { border-bottom: 1px solid rgba(241,202,120,.22); }

.viewer-page-indicator {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(241,202,120,.36);
  background: rgba(7,27,34,.6);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 9px 11px 7px;
  font-size: .72rem;
}
.viewer-toolbar button[hidden], .viewer-page-indicator[hidden] { display: none !important; }
.viewer-toolbar button:disabled {
  opacity: .42;
  cursor: default;
}

@media (max-width: 620px) {
  .source-card span,
  .source-card strong {
    max-width: calc(100% - 28px);
    box-shadow: 0 0 0 8px rgba(2, 10, 16, .34);
  }
}


/* Refinement: simplified Rose Mahoney viewer without caption/transcript/metadata/rights tabs. */
.viewer-tabs, .viewer-tab-panel { display:none !important; }
.viewer-info { display:flex; flex-direction:column; justify-content:flex-start; }
#modal-copy { max-width: 36ch; }


/* Batch 4: deeper navigation, interactive timeline, storm map, archive filtering. */
.exhibit-jump-nav {
  margin-top: clamp(18px, 3vw, 38px);
  margin-bottom: clamp(22px, 4vw, 54px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(241,202,120,.36);
  background: rgba(2,10,16,.62);
  box-shadow: 0 18px 52px rgba(0,0,0,.26);
}
.exhibit-jump-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(241,202,120,.24);
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  background: rgba(7,27,34,.62);
}
.exhibit-jump-nav a:hover { border-color: rgba(241,202,120,.75); background: rgba(197,139,59,.14); }

.timeline-header,
.map-header,
.archive-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .64fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
  margin-bottom: 28px;
}
.batch4-timeline,
.storm-map-section,
.batch4-archive {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(216,154,62,.42);
  background:
    radial-gradient(circle at 85% 15%, rgba(177,91,69,.14), transparent 28rem),
    linear-gradient(135deg, rgba(5,22,30,.82), rgba(2,10,16,.94));
}
.timeline-workbench {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(320px, .7fr);
  gap: 22px;
  align-items: stretch;
}
.timeline-rail {
  display: grid;
  gap: 10px;
  position: relative;
}
.timeline-rail::before {
  content:'';
  position:absolute;
  left: 25px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(241,202,120,.65), transparent);
}
.timeline-moment {
  position: relative;
  min-height: 116px;
  padding: 18px 18px 18px 64px;
  text-align: left;
  color: var(--cream);
  border: 1px solid rgba(241,202,120,.26);
  background: rgba(2,10,16,.58);
  cursor: pointer;
}
.timeline-moment::before {
  content:'';
  position:absolute;
  left: 17px;
  top: 28px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(241,202,120,.75);
  background: #06141b;
  box-shadow: 0 0 0 5px rgba(2,10,16,.9);
}
.timeline-moment.active,
.timeline-moment:hover {
  border-color: rgba(241,202,120,.78);
  background: linear-gradient(135deg, rgba(13,58,67,.78), rgba(2,10,16,.82));
}
.timeline-moment.active::before {
  background: var(--gold2);
  box-shadow: 0 0 18px rgba(241,202,120,.55), 0 0 0 5px rgba(2,10,16,.9);
}
.timeline-moment span,
.timeline-moment em { display:block; }
.timeline-moment span { color: var(--gold2); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; margin-bottom: 7px; }
.timeline-moment strong { font-family: var(--deco); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color:#f7d592; font-size: clamp(1.35rem, 2vw, 2rem); }
.timeline-moment em { color:#a7bfba; font-style: normal; margin-top: 8px; line-height: 1.35; }
.timeline-detail,
.map-panel {
  padding: clamp(24px, 3.4vw, 46px);
  border: 1px solid rgba(241,202,120,.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(241,202,120,.11), transparent 18rem),
    rgba(2,10,16,.74);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.timeline-detail h3,
.map-panel h3 {
  margin: 0 0 14px;
  font-family: var(--deco);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .055em;
  color:#f7d592;
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: 1;
}
.timeline-detail p:not(.eyebrow),
.map-panel p:not(.eyebrow) { color:#cbdad6; line-height:1.65; font-size: 1.06rem; }
.timeline-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.timeline-detail-actions button,
.timeline-detail-actions a,
.map-layer-controls button,
.archive-filters button {
  border:1px solid rgba(241,202,120,.52);
  background:rgba(7,27,34,.74);
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.11em;
  padding:10px 12px 8px;
  cursor:pointer;
  font-size:.72rem;
}
.timeline-detail-actions a { display:inline-flex; align-items:center; }

.storm-map-workbench {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(310px,.55fr);
  gap:24px;
  align-items:stretch;
}
.deco-map {
  min-height: clamp(440px, 56vw, 720px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241,202,120,.48);
  background:
    radial-gradient(circle at 72% 40%, rgba(13,58,67,.58), transparent 20rem),
    linear-gradient(145deg, #031017, #09252d 56%, #020a10);
  box-shadow: 0 28px 74px rgba(0,0,0,.38);
}
.map-grid {
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(241,202,120,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241,202,120,.032) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 55% 45%, black, transparent 80%);
}
.storm-track-svg { position:absolute; inset:0; width:100%; height:100%; }
.coastline,
.keys-line {
  fill:none;
  stroke: rgba(245,220,164,.58);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
}
.track-line {
  fill:none;
  stroke: rgba(241,202,120,.85);
  stroke-width: 6;
  stroke-linecap: round;
  filter: url(#glow);
}
.track-dot {
  fill: #06141b;
  stroke: var(--gold2);
  stroke-width: 4;
  cursor: pointer;
}
.track-dot.active { fill: var(--gold2); filter: url(#glow); }
.map-label {
  fill: #f5dca4;
  font-family: var(--nav);
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-label.small { font-size: 18px; opacity: .8; }
.impact-marker {
  position:absolute;
  transform: translate(-50%, -50%);
  padding: 7px 9px 5px;
  border: 1px solid rgba(241,202,120,.58);
  background: rgba(2,10,16,.64);
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  opacity: .8;
}
.impact-marker.active {
  background: rgba(177,91,69,.42);
  box-shadow: 0 0 24px rgba(241,202,120,.24);
  opacity: 1;
}
.marker-miami { left: 65%; top: 39%; }
.marker-bay { left: 58%; top: 46%; }
.marker-beach { left: 69%; top: 34%; }
.map-layer-controls { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.map-layer-controls button.active,
.archive-filters button.active {
  background: rgba(197,139,59,.22);
  border-color: rgba(241,202,120,.9);
}

.archive-filters {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin: 26px 0;
}
.archive-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.archive-card {
  min-height: 185px;
  padding: 20px;
  border: 1px solid rgba(241,202,120,.34);
  color: var(--cream);
  text-align:left;
  cursor:pointer;
  background:
    linear-gradient(180deg, rgba(7,27,34,.76), rgba(2,10,16,.9)),
    repeating-linear-gradient(45deg, rgba(241,202,120,.025) 0 1px, transparent 1px 12px);
}
.archive-card[hidden] { display:none; }
.archive-card span { color:var(--gold2); text-transform:uppercase; letter-spacing:.2em; font-size:.68rem; }
.archive-card strong { display:block; margin-top:12px; font-family:var(--deco); font-weight:400; color:#f7d592; text-transform:uppercase; letter-spacing:.05em; font-size:1.45rem; line-height:1.08; }
.archive-card em { display:block; color:#a7bfba; font-style:normal; margin-top:14px; line-height:1.35; }

@media (max-width: 1120px) {
  .exhibit-jump-nav { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .timeline-header, .map-header, .archive-header,
  .timeline-workbench, .storm-map-workbench { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .exhibit-jump-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .batch4-timeline, .storm-map-section, .batch4-archive { padding: 28px 16px; }
  .timeline-moment { padding-left: 54px; }
  .archive-grid { grid-template-columns: 1fr; }
  .deco-map { min-height: 390px; }
}


/* Batch 5: exhibit polish, mobile refinement, source credibility layer, and stronger archive filters. */
.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 100;
  transform: translateY(-170%);
  padding: 10px 14px 8px;
  border: 1px solid rgba(241,202,120,.72);
  background: rgba(2,10,16,.96);
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}
.skip-link:focus { transform: translateY(0); }

.exhibit-jump-nav {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid rgba(241,202,120,.18);
  background: linear-gradient(180deg, rgba(2,10,16,.92), rgba(2,10,16,.66));
  backdrop-filter: blur(10px);
}
.exhibit-jump-nav a {
  border: 1px solid rgba(241,202,120,.22);
  color: #dcb66d;
  padding: 8px 10px 6px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .68rem;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.exhibit-jump-nav a:hover,
.exhibit-jump-nav a:focus-visible {
  border-color: rgba(241,202,120,.7);
  background: rgba(197,139,59,.14);
  color: #ffe3a2;
}

.source-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(241,202,120,.28);
  background: linear-gradient(180deg, rgba(2,10,16,.68), rgba(7,27,34,.48));
  color: #bfd0cc;
  line-height: 1.55;
}
.source-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
}
.source-note p { margin: 0; }

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 24px;
}
.archive-filter-bar button {
  border: 1px solid rgba(241,202,120,.38);
  background: rgba(5,22,30,.72);
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 11px 13px 9px;
  cursor: pointer;
  font-size: .72rem;
}
.archive-filter-bar button.active,
.archive-filter-bar button:hover {
  background: rgba(197,139,59,.2);
  border-color: rgba(241,202,120,.9);
}

.batch5-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.archive-item {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(241,202,120,.34);
  background:
    linear-gradient(180deg, rgba(7,27,34,.76), rgba(2,10,16,.92)),
    repeating-linear-gradient(45deg, rgba(241,202,120,.035) 0 1px, transparent 1px 13px);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.archive-item:hover {
  transform: translateY(-4px);
  border-color: rgba(241,202,120,.75);
}
.archive-item.is-hidden {
  display: none;
}
.archive-item span {
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
}
.archive-item strong {
  display: block;
  margin-top: 12px;
  font-family: var(--deco);
  font-weight: 400;
  color: #f7d592;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.45rem;
  line-height: 1.05;
}
.archive-item em {
  display: block;
  color: #a7bfba;
  font-style: normal;
  margin-top: 14px;
  line-height: 1.35;
}
.archive-count {
  color: #a7bfba;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  margin-top: 18px;
}

.citation-staging {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(241,202,120,.28);
  background: rgba(2,10,16,.44);
}
.citation-staging h3 {
  margin: 0 0 10px;
  font-family: var(--deco);
  font-weight: 400;
  color: #f7d592;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
}
.citation-staging p {
  color: #bfd0cc;
  line-height: 1.55;
}
.citation-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.citation-pill-row span {
  border: 1px solid rgba(241,202,120,.32);
  color: var(--gold2);
  padding: 9px 11px 7px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  background: rgba(7,27,34,.5);
}

/* Make long timeline denser on desktop and cleaner on mobile. */
.timeline-rail {
  max-height: min(74vh, 760px);
  overflow: auto;
  padding-right: 8px;
}
.timeline-moment {
  min-height: unset;
}

/* Mobile polish pass */
@media (max-width: 860px) {
  .exhibit-jump-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .exhibit-jump-nav a {
    flex: 0 0 auto;
  }
  .hero-shell {
    padding-top: 12px;
  }
  .room-narrative {
    padding: 24px 18px;
  }
  .timeline-workbench,
  .storm-map-workbench {
    gap: 18px;
  }
  .timeline-rail {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .batch5-archive-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .source-note {
    font-size: .94rem;
  }
}

@media (max-width: 620px) {
  .exhibit-jump-nav {
    top: 0;
    padding: 8px 10px;
  }
  .timeline-header h2,
  .map-header h2,
  .archive-header h2,
  .rose-header h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
  .timeline-moment strong {
    font-size: 1.25rem;
  }
  .timeline-detail,
  .map-panel {
    padding: 22px 18px;
  }
  .batch5-archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .archive-filter-bar button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .viewer-toolbar {
    gap: 6px;
  }
  .viewer-toolbar button,
  .viewer-page-indicator {
    font-size: .64rem;
    padding: 8px 8px 6px;
  }
  .citation-staging {
    padding: 18px;
  }
}


/* Batch 6: Weather Bureau / Richard Gray source room and timeline heading fit fix. */
.timeline-date-heading {
  white-space: nowrap;
  font-size: clamp(2.15rem, 4.35vw, 5.7rem) !important;
  letter-spacing: .045em !important;
}

.plate-weather {
  background: #020a10;
  padding: 0;
}
.plate-weather img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(245,240,225,.96), rgba(215,208,188,.94));
  padding: 14px;
}

.weather-bureau-section {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(216,154,62,.42);
  background:
    radial-gradient(circle at 82% 18%, rgba(241,202,120,.12), transparent 24rem),
    linear-gradient(135deg, rgba(5,22,30,.8), rgba(2,10,16,.92));
}
.weather-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .66fr);
  gap: 28px;
  align-items: end;
}
.weather-source-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 34px;
}

.source-card.contain-card img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(248,245,237,.96), rgba(228,223,209,.96));
  padding: 10px;
}

@media (max-width: 1120px) {
  .weather-source-rail,
  .weather-header {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 860px) {
  .timeline-date-heading {
    font-size: clamp(1.6rem, 7.5vw, 3.2rem) !important;
    letter-spacing: .018em !important;
  }
  .weather-header {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .weather-source-rail {
    grid-template-columns: 1fr;
  }
  .timeline-date-heading {
    font-size: clamp(1.28rem, 6.7vw, 2.3rem) !important;
    letter-spacing: .005em !important;
  }
}


/* Batch 6 refinement: remove separate jump bars and integrate navigation into the main header. */
.exhibit-jump-nav {
  display: none !important;
}

.site-header {
  position: relative;
}

.main-nav {
  gap: clamp(9px, 1.25vw, 22px);
}

.main-nav a {
  font-size: clamp(.62rem, .78vw, .84rem);
  letter-spacing: .085em;
  white-space: nowrap;
}

.weather-source-rail .source-card.contain-card img,
.plate-weather img {
  object-fit: contain;
  background: linear-gradient(180deg, rgba(248,245,237,.98), rgba(226,220,205,.98));
  image-rendering: auto;
}

.weather-source-rail .source-card {
  min-height: 360px;
}

.weather-source-rail .source-card span {
  margin-top: 245px;
}

@media (max-width: 1220px) {
  .main-nav {
    gap: 9px;
  }
  .main-nav a {
    font-size: .66rem;
    letter-spacing: .065em;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
}


/* Batch 6 full-resolution refinement */
.source-viewer .modal-panel.source-viewer-panel {
  width:min(1460px,98vw);
  grid-template-columns:minmax(0,1.62fr) minmax(260px,.42fr);
}
.viewer-stage {
  min-height:min(82vh,920px);
}
.viewer-canvas {
  min-height:620px;
  background: radial-gradient(circle at 50% 50%, rgba(14,60,70,.28), #01070c 72%);
}
.viewer-info {
  border-left:1px solid rgba(241,202,120,.16);
}
.viewer-info h2 {
  font-size:clamp(1.65rem,2.8vw,3.1rem);
  line-height:1.02;
}
#modal-copy {
  line-height:1.5;
  max-width:34ch;
}
.shadow-caption-demo span,
.shadow-caption-demo strong {
  display:inline-block;
  width:fit-content;
  max-width:calc(100% - 48px);
  padding:8px 12px;
  background:rgba(2,10,16,.50);
  box-shadow:0 0 0 12px rgba(2,10,16,.34);
  backdrop-filter:blur(2px);
  text-shadow:0 2px 12px rgba(0,0,0,.92);
}
.shadow-caption-demo span { margin-bottom:10px; }
.shadow-caption-demo strong { margin-bottom:24px; }
.scan-demo span, .scan-demo strong {
  padding-left:0; padding-right:0;
}
.weather-source-rail .source-card {
  min-height:340px;
}
.weather-source-rail .source-card img {
  opacity:.98;
  padding:8px;
}
.weather-source-rail .source-card::after {
  background:linear-gradient(180deg, transparent 32%, rgba(2,10,16,.88));
}
.weather-source-rail .source-card span { margin-top:214px; }
.weather-source-rail .source-card strong { font-size:1.32rem; }
.weather-source-rail .source-card span,
.weather-source-rail .source-card strong,
.scan-demo span,
.scan-demo strong {
  border-top:1px solid rgba(241,202,120,.30);
  border-bottom:1px solid rgba(241,202,120,.20);
}
@media (max-width:1120px) {
  .source-viewer .modal-panel.source-viewer-panel {
    grid-template-columns:1fr;
    width:min(96vw,1320px);
  }
  .viewer-stage { min-height:560px; }
  .viewer-canvas { min-height:500px; }
}
@media (max-width:620px) {
  .viewer-canvas { min-height:420px; }
  .shadow-caption-demo span,
  .shadow-caption-demo strong {
    max-width:calc(100% - 28px);
    box-shadow:0 0 0 8px rgba(2,10,16,.34);
  }
}

.source-card span,
.source-card strong {
  background: rgba(2, 10, 16, .52);
  box-shadow: 0 0 0 10px rgba(2, 10, 16, .36);
}


/* Batch 7: plate preview cleanup and Miami Beach / storm surge room */
.preview-thumb img {
  object-fit: cover !important;
  object-position: center center !important;
  background: #0b1419;
  padding: 0 !important;
  opacity: .98 !important;
}
.plate-bay.preview-thumb img, .plate-beach.preview-thumb img { object-position:center top !important; }
.scan-demo img {
  opacity:.86;
  filter: sepia(.10) contrast(1.04);
}
.miami-beach-section {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(216,154,62,.42);
  background:
    radial-gradient(circle at 18% 20%, rgba(241,202,120,.12), transparent 22rem),
    linear-gradient(135deg, rgba(5,22,30,.76), rgba(2,10,16,.92));
}
.beach-header {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.66fr);
  gap:28px;
  align-items:end;
}
.beach-source-rail {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:34px;
}
.beach-source-rail .source-card img { opacity:.82; }
.beach-source-rail .source-card::after {
  background: linear-gradient(180deg, transparent 18%, rgba(2,10,16,.90));
}
.beach-source-rail .source-card span,
.beach-source-rail .source-card strong,
.scan-demo span,
.scan-demo strong {
  background: rgba(2,10,16,.50);
  box-shadow: 0 0 0 10px rgba(2,10,16,.34);
}
@media (max-width:1120px) {
  .beach-source-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .beach-header { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .beach-source-rail { grid-template-columns:1fr; }
}


/* Batch 8: Downtown Miami room and standardized overlay polish */
.downtown-section {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(216,154,62,.42);
  background:
    radial-gradient(circle at 78% 22%, rgba(241,202,120,.10), transparent 20rem),
    linear-gradient(135deg, rgba(5,22,30,.78), rgba(2,10,16,.94));
}
.downtown-header {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.66fr);
  gap:28px;
  align-items:end;
}
.downtown-source-rail {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:34px;
}
.plate-downtown.preview-thumb img { object-position:center top !important; }
.downtown-source-rail .source-card img { opacity:.84; }
.downtown-source-rail .source-card::after {
  background: linear-gradient(180deg, transparent 18%, rgba(2,10,16,.90));
}
/* standardize readable overlay boxes */
.source-card span,
.source-card strong,
.scan-demo span,
.scan-demo strong,
.archive-item span,
.archive-item strong {
  text-shadow: 0 2px 12px rgba(0,0,0,.92);
}
.downtown-source-rail .source-card span,
.downtown-source-rail .source-card strong,
.beach-source-rail .source-card span,
.beach-source-rail .source-card strong,
.weather-source-rail .source-card span,
.weather-source-rail .source-card strong,
.scan-demo span,
.scan-demo strong {
  background: rgba(2,10,16,.52);
  box-shadow: 0 0 0 10px rgba(2,10,16,.34);
}
@media (max-width:1120px) {
  .downtown-source-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .downtown-header { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .downtown-source-rail { grid-template-columns:1fr; }
}


/* Batch 8 polish: remove bad Rose Mahoney headline crop usage and tighten overlay readability. */
.plate-caption,
.source-card span,
.source-card strong,
.scan-demo span,
.scan-demo strong {
  text-rendering: geometricPrecision;
}

.source-card span,
.source-card strong,
.scan-demo span,
.scan-demo strong {
  background: rgba(2, 10, 16, .54);
  box-shadow: 0 0 0 10px rgba(2, 10, 16, .35);
}

.preview-thumb img {
  filter: contrast(1.03) saturate(1.02);
}

.rose-section .source-card img[src*="scan_demo_rose_preview"],
.plate-bay img[src*="plate04_rose_preview"] {
  object-fit: cover !important;
  object-position: center top !important;
}


/* Batch 9: document evidence room and hurricane-book library */
.documents-section,
.book-library-section {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(216,154,62,.42);
  background:
    radial-gradient(circle at 18% 20%, rgba(241,202,120,.08), transparent 22rem),
    linear-gradient(135deg, rgba(5,22,30,.78), rgba(2,10,16,.94));
}
.documents-header {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.68fr);
  gap:28px;
  align-items:end;
}
.documents-source-rail,
.book-source-rail {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:34px;
}
.document-card img,
.plate-documents.preview-thumb img {
  object-fit: cover !important;
  object-position: center top !important;
}
.document-card::after {
  background: linear-gradient(180deg, transparent 18%, rgba(2,10,16,.92));
}
.document-card span,
.document-card strong,
.book-source-rail .source-card span,
.book-source-rail .source-card strong,
.documents-source-rail .source-card span,
.documents-source-rail .source-card strong {
  background: rgba(2,10,16,.56);
  box-shadow: 0 0 0 10px rgba(2,10,16,.35);
  text-shadow: 0 2px 12px rgba(0,0,0,.92);
}
.book-library-section .source-card img { opacity:.88; }
@media (max-width:1120px) {
  .documents-source-rail,
  .book-source-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .documents-header { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .documents-source-rail,
  .book-source-rail { grid-template-columns:1fr; }
}


/* Batch 9 functionality/format fix */
.room-narrative {
  overflow: visible;
  max-height: none;
}

.room-narrative h2,
.room-title {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.room-narrative h2 {
  font-size: clamp(2.05rem, 4.15vw, 4.8rem);
  line-height: .98;
}

.room-narrative .room-progress {
  margin-top: 22px;
  padding-bottom: 12px;
}

.room-progress li {
  line-height: 1.25;
}

.plate-documents {
  cursor: zoom-in;
}

.documents-section,
.book-library-section {
  scroll-margin-top: 90px;
}

@media (max-height: 760px) and (min-width: 861px) {
  .room-narrative {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }
  .room-narrative h2 {
    font-size: clamp(1.85rem, 3.5vw, 3.9rem);
  }
  .room-narrative p {
    font-size: .95rem;
    line-height: 1.45;
  }
}

@media (max-width: 860px) {
  .room-narrative {
    max-height: none;
    overflow: visible;
  }
}


/* Batch 9 hard fix: no hyphenation or clipped room text/links */
.room-narrative,
.room-narrative * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.room-narrative h2,
.room-title {
  font-size: clamp(1.65rem, 3.25vw, 3.65rem) !important;
  line-height: 1.02 !important;
  letter-spacing: .04em !important;
  white-space: normal;
}

.room-narrative {
  max-height: none !important;
  overflow: visible !important;
}

.room-progress {
  display: grid;
  gap: 8px;
  margin-top: 20px !important;
  padding-bottom: 18px !important;
}

.room-progress li {
  line-height: 1.18 !important;
  white-space: normal;
}

@media (max-height: 820px) and (min-width: 861px) {
  .room-narrative {
    max-height: calc(100vh - 94px) !important;
    overflow-y: auto !important;
    padding-bottom: 22px !important;
  }
  .room-narrative h2,
  .room-title {
    font-size: clamp(1.45rem, 2.8vw, 3.05rem) !important;
  }
  .room-narrative p {
    font-size: .92rem !important;
    line-height: 1.42 !important;
  }
}

.miami-beach-section,
.downtown-section,
.documents-section,
.book-library-section {
  scroll-margin-top: 90px;
}

/* Functionality reset hardening: keep vertical room titles short/readable and prevent browser hyphenation. */
.room-title, .room-title *, .museum-room-title, .museum-room-title * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.single-book-card {
  grid-template-columns: minmax(220px, 360px);
  justify-content: start;
}

/* Functionality reset: restore modal caption/transcript/metadata/rights tabs after earlier simplified viewer rule. */
.source-viewer .viewer-tabs { display:flex !important; }
.source-viewer .viewer-tab-panel { display:block !important; }


/* Repair pass: viewer should not show browser blue selection/focus boxes during pan/zoom. */
.viewer-canvas, #viewer-image {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.viewer-canvas:focus, #viewer-image:focus { outline: none !important; }
.viewer-toolbar button[data-rotate-view] { min-width: 92px; }


/* Repair pass 2: single fit control and reliable full-image opening in source viewer. */
.source-viewer .modal-panel.source-viewer-panel {
  height: min(92vh, 920px);
  max-height: 92vh;
  display: grid;
}
.source-viewer .viewer-stage {
  min-height: 0 !important;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.source-viewer .viewer-canvas {
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}
.source-viewer #viewer-image {
  max-width: none !important;
  max-height: none !important;
  will-change: transform;
}
.source-viewer .viewer-toolbar button:focus,
.source-viewer .viewer-tabs button:focus {
  outline: 1px solid rgba(241,202,120,.32);
  outline-offset: 2px;
}
@media (max-width: 1120px) {
  .source-viewer .modal-panel.source-viewer-panel { height: 94vh; }
  .source-viewer .viewer-stage { min-height: 52vh !important; }
}


/* Pass 7: true colorization workflow uses alternate image files, not CSS tinting. */
.viewer-toolbar button[data-colorize-view].active,
.viewer-toolbar button[data-high-contrast-view].active {
  background: rgba(197,139,59,.32);
  border-color: rgba(241,202,120,1);
  color: #fff0c5;
}


/* Pass18: make image switching/fitting invisible until the new image has loaded and fit-to-screen has been applied. */
.viewer-canvas::after { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 50%, rgba(14,60,70,.18), rgba(1,7,12,.96) 72%); opacity:0; transition:opacity .12s ease; z-index:20; }
.viewer-canvas.is-loading::after { opacity:1; }
.viewer-canvas.is-loading #viewer-image { opacity:0 !important; visibility:hidden !important; }
#viewer-image { transition:opacity .12s ease; will-change:transform, opacity; backface-visibility:hidden; }

/* Pass18: standardize card/box heights and grid behavior for a more uniform archive presentation. */
.source-rail,.book-source-rail,.documents-source-rail,.archive-grid,.ledger-grid,.batch5-archive-grid { align-items:stretch; }
.book-source-rail,.archive-grid,.batch5-archive-grid,.ledger-grid { grid-auto-rows:1fr; }
.source-card,.archive-item,.ledger-card,.um-image-card,.um-video-card { display:flex; flex-direction:column; justify-content:flex-end; height:100%; }
.source-card { min-height:320px; }
.archive-item { min-height:220px; }
.ledger-card { min-height:190px; }
.book-source-rail { grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); }
.archive-grid,.batch5-archive-grid,.ledger-grid { grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }

/* Pass18: University of Miami / Ibis story section and robust video thumbnail link. */
.um-hurricane-section { position:relative; overflow:hidden; background:linear-gradient(135deg, rgba(2,10,16,.96), rgba(9,42,48,.92)); border-top:1px solid rgba(241,202,120,.18); border-bottom:1px solid rgba(241,202,120,.18); }
.um-hurricane-grid { display:grid; grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr); gap:clamp(22px,4vw,48px); align-items:start; }
.um-hurricane-copy .section-lede { max-width:70ch; }
.um-hurricane-points { margin:22px 0 0; padding-left:20px; color:#d7e5df; line-height:1.65; }
.um-hurricane-points li { margin-bottom:10px; }
.um-video-card,.um-image-card { border:1px solid rgba(241,202,120,.22); background:rgba(0,0,0,.24); box-shadow:0 24px 60px rgba(0,0,0,.32); padding:14px; }
.um-video-link { display:block; text-decoration:none; }
.um-video-frame { position:relative; aspect-ratio:9 / 16; max-height:620px; margin:0 auto; background:#01070c; overflow:hidden; }
.um-video-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.um-video-badge { position:absolute; left:16px; bottom:16px; border:1px solid rgba(241,202,120,.52); background:rgba(1,7,12,.78); color:#fff2cf; padding:10px 14px 8px; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.um-video-note { margin:12px 4px 0; color:#a7bfba; line-height:1.45; }
.um-section-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.um-section-actions button,.um-section-actions a { border:1px solid rgba(241,202,120,.38); background:rgba(197,139,59,.16); color:#fff2cf; padding:11px 14px; text-transform:uppercase; letter-spacing:.08em; font-size:.74rem; text-decoration:none; cursor:pointer; }
.um-image-card img { width:100%; height:260px; object-fit:cover; object-position:center; display:block; }
.um-image-card span { display:block; margin-top:10px; color:#f1ca78; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; }
.um-image-card strong { display:block; margin-top:4px; color:white; font-size:1.15rem; }
@media (max-width:980px) { .um-hurricane-grid { grid-template-columns:1fr; } .um-video-frame { max-height:560px; } }


/* Pass19: HURDAT tracking map */
.hurdat-shell {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.95fr);
  gap:22px;
  align-items:start;
}
.hurdat-stage-card,
.hurdat-panel-card {
  border:1px solid rgba(241,202,120,.26);
  background:linear-gradient(180deg, rgba(3,12,18,.96), rgba(5,20,28,.93));
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  padding:16px;
}
.hurdat-toolbar {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.hurdat-toolbar button {
  border:1px solid rgba(241,202,120,.45);
  background:rgba(197,139,59,.15);
  color:#fff0c9;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:.7rem;
  padding:10px 12px;
  cursor:pointer;
}
.hurdat-toolbar button:hover { background:rgba(197,139,59,.24); }
.hurdat-map-viewport {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(241,202,120,.22);
  background:#031421;
  min-height:620px;
  touch-action:none;
  cursor:grab;
}
.hurdat-map-viewport:active { cursor:grabbing; }
.hurdat-map-svg { width:100%; height:auto; display:block; }
.artdeco-rays path {
  fill:none;
  stroke:rgba(241,202,120,.06);
  stroke-width:2;
}
.landmass, .island {
  fill:rgba(216,198,149,.18);
  stroke:rgba(241,202,120,.38);
  stroke-width:1.8;
}
.city-point circle { fill:#f1ca78; stroke:#04131d; stroke-width:1.2; }
.city-point text, .region-label, .ocean-label {
  fill:rgba(255,242,207,.82);
  font-size:18px;
  letter-spacing:.08em;
}
.city-point.secondary text, .city-point.secondary circle { opacity:.45; }
.region-label { font-size:22px; text-transform:uppercase; letter-spacing:.14em; fill:rgba(241,202,120,.78); }
.ocean-label { font-size:20px; letter-spacing:.16em; fill:rgba(152,208,230,.40); }
.hurdat-track-line {
  fill:none;
  stroke:#f1ca78;
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.92;
}
.storm-size-halo {
  fill:rgba(241,202,120,.05);
  stroke:rgba(241,202,120,.30);
  stroke-width:2;
  opacity:0;
  transition:opacity .18s ease;
}
[data-hurdat-map].detail-zoom .storm-size-halo { opacity:1; }
.hurdat-point { cursor:pointer; }
.hurdat-point .point-outer { fill:rgba(1,7,12,.86); stroke:var(--point-color, #f1ca78); stroke-width:3.2; }
.hurdat-point .point-inner { fill:var(--point-color, #f1ca78); }
.hurdat-point .point-label {
  fill:#fff0cf;
  font-size:16px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:0;
}
[data-hurdat-map].detail-zoom .hurdat-point .point-label,
[data-hurdat-map].detail-zoom .city-point.primary text,
[data-hurdat-map].deep-zoom .city-point.secondary text,
[data-hurdat-map].deep-zoom .city-point.secondary circle { opacity:1; }
.hurdat-point.active .point-outer {
  stroke:#ffffff;
  filter: drop-shadow(0 0 10px rgba(241,202,120,.9));
}
.status-ts { --point-color:#f5d07d; }
.status-h1, .status-h2 { --point-color:#ef9a57; }
.status-h3 { --point-color:#ec7455; }
.status-h4, .status-h5 { --point-color:#e35559; }
.status-lo, .status-td { --point-color:#7ac6dd; }
.hurdat-slider-wrap { margin-top:14px; }
.hurdat-slider-wrap label {
  display:block; margin-bottom:6px; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; color:#f1ca78;
}
.hurdat-slider-wrap input[type="range"] { width:100%; }
.hurdat-legend {
  display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; color:#d5e0dc; font-size:.82rem;
}
.legend-swatch, .legend-halo { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.legend-swatch.low { background:#7ac6dd; }
.legend-swatch.ts { background:#f5d07d; }
.legend-swatch.h { background:#ef9a57; }
.legend-swatch.mh { background:#e35559; }
.legend-halo { border:2px solid rgba(241,202,120,.5); background:transparent; }
.hurdat-panel-card h3 { margin:0 0 16px; }
.hurdat-metrics {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px;
}
.hurdat-metrics div {
  border:1px solid rgba(241,202,120,.20); background:rgba(255,255,255,.02); padding:12px;
}
.hurdat-metrics span { display:block; color:#f1ca78; text-transform:uppercase; letter-spacing:.12em; font-size:.66rem; }
.hurdat-metrics strong { display:block; margin-top:6px; color:#fff0cf; font-size:1rem; }
.hurdat-note, .hurdat-meta { color:#d5e0dc; line-height:1.55; }
.hurdat-meta { font-size:.92rem; }
.hurdat-rail {
  margin-top:16px; display:grid; gap:10px; max-height:360px; overflow:auto; padding-right:4px;
}
.hurdat-rail-item {
  text-align:left; border:1px solid rgba(241,202,120,.22); background:rgba(255,255,255,.02); color:#fff0cf; padding:12px; cursor:pointer;
}
.hurdat-rail-item span { display:block; color:#f1ca78; text-transform:uppercase; letter-spacing:.12em; font-size:.68rem; }
.hurdat-rail-item strong { display:block; margin-top:4px; font-family:var(--deco); font-weight:400; font-size:1.05rem; }
.hurdat-rail-item em { display:block; margin-top:6px; color:#a7bfba; font-style:normal; line-height:1.35; }
.hurdat-rail-item.active { border-color:rgba(241,202,120,.72); background:rgba(197,139,59,.12); }
@media (max-width: 1120px) {
  .hurdat-shell { grid-template-columns:1fr; }
  .hurdat-map-viewport { min-height:500px; }
}


/* Pass20: timeline/HURDAT integration polish and QA-driven layout tightening. */
.timeline-detail-actions a[data-timeline-map-link] {
  border-color: rgba(241,202,120,.42);
  background: rgba(197,139,59,.12);
}
.status-td { --point-color:#7ac6dd; }
.hurdat-map-section .section-lede,
.timeline-source-note p,
.map-source-note p {
  max-width: 86ch;
}
.hurdat-map-viewport {
  min-height: clamp(420px, 58vw, 680px);
}
.hurdat-panel-card {
  position: sticky;
  top: 18px;
}
@media (max-width: 1120px) {
  .hurdat-panel-card { position: static; }
}


/* Pass21: HURDAT map visual repair — land visibility, stronger zoom, and reduced label collisions. */
.hurdat-map-viewport {
  min-height: 720px;
}
.landmass {
  fill: rgba(196,166,99,.72) !important;
  stroke: rgba(255,226,158,.72) !important;
  stroke-width: 2.2 !important;
}
.island {
  fill: rgba(213,188,126,.78) !important;
  stroke: rgba(255,226,158,.74) !important;
  stroke-width: 1.8 !important;
}
.peninsula { fill: rgba(196,166,99,.66) !important; }
.cuba, .cuba-east, .puerto-rico, .haiti { fill: rgba(178,145,82,.72) !important; }
.hurdat-point .point-label,
.city-point text,
.region-label,
.ocean-label {
  paint-order: stroke;
  stroke: rgba(1,7,12,.9);
  stroke-width: 4px;
  stroke-linejoin: round;
}
/* Keep the default map clean. Labels now reveal in stages instead of all colliding. */
.city-point.secondary text,
.city-point.secondary circle,
.hurdat-point .point-label {
  opacity: 0 !important;
}
.city-point.primary text {
  opacity: .68;
  font-size: 12px;
  letter-spacing: .08em;
}
.city-point.primary circle { opacity: .88; }
.region-label {
  font-size: 15px;
  opacity: .72;
  letter-spacing: .18em;
}
.ocean-label {
  font-size: 14px;
  opacity: .38;
  letter-spacing: .18em;
}
[data-hurdat-map].detail-zoom .hurdat-point.active .point-label {
  opacity: 1 !important;
  font-size: 11px;
}
[data-hurdat-map].detail-zoom .city-point.primary text {
  opacity: .92;
  font-size: 10px;
}
[data-hurdat-map].deep-zoom .city-point.secondary circle { opacity: .62 !important; }
[data-hurdat-map].deep-zoom .city-point.secondary text {
  opacity: .72 !important;
  font-size: 8px;
}
[data-hurdat-map].deep-zoom .region-label { opacity: .30; font-size: 12px; }
[data-hurdat-map].deep-zoom .ocean-label { opacity: .18; }
.hurdat-point .point-outer { stroke-width: 2.2; }
.hurdat-point .point-inner { r: 4; }
.hurdat-point.active .point-outer { stroke-width: 4; }
.hurdat-track-line { stroke-width: 4.2; }
.hurdat-toolbar button {
  min-width: 96px;
}
@media (max-width: 1120px) {
  .hurdat-map-viewport { min-height: 560px; }
}


/* Pass22: replace bad hand-drawn geography with real rendered coastline basemap. */
.hurdat-map-viewport {
  min-height: 680px;
  position: relative;
  background:#08293a;
}
.hurdat-base-map {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  user-select:none;
  pointer-events:none;
  filter: saturate(.88) contrast(1.04) brightness(.9);
}
.hurdat-map-svg {
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  min-height:680px;
  display:block;
  background:transparent !important;
}
/* Hide previous generated land polygons; real land is in the basemap image. */
[data-hurdat-geography], .landmass, .island { display:none !important; }
.hurdat-track-line {
  stroke:#ffd978;
  stroke-width:3.5;
  opacity:.95;
  filter: drop-shadow(0 0 7px rgba(255,217,120,.75));
}
.hurdat-point .point-outer { stroke-width:2.6; }
.hurdat-point .point-inner { opacity:.98; }
/* Labels: show only the active storm label unless deeply zoomed; avoid the unreadable text pileup. */
.hurdat-point .point-label,
.city-point text,
.city-point circle { opacity:0; transition:opacity .18s ease; }
.hurdat-point.active .point-label { opacity:1; font-size:15px; paint-order:stroke; stroke:#061822; stroke-width:4px; stroke-linejoin:round; }
[data-hurdat-map].deep-zoom .hurdat-point .point-label { opacity:.55; font-size:12px; }
[data-hurdat-map].deep-zoom .hurdat-point.active .point-label { opacity:1; font-size:15px; }
[data-hurdat-map].detail-zoom .city-point.primary circle,
[data-hurdat-map].detail-zoom .city-point.primary text { opacity:1; }
[data-hurdat-map].deep-zoom .city-point.secondary circle,
[data-hurdat-map].deep-zoom .city-point.secondary text { opacity:.85; }
.city-point text {
  font-size:13px;
  fill:#fff2cf;
  paint-order:stroke;
  stroke:#071a22;
  stroke-width:4px;
  stroke-linejoin:round;
  letter-spacing:.05em;
}
.region-label, .ocean-label { display:none !important; }
.storm-size-halo { stroke:#fff0c7; fill:rgba(255,217,120,.08); }
.timeline-no-jump-note {
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(241,202,120,.34);
  color:#a7bfba;
  padding:10px 12px 8px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.72rem;
}
@media (max-width: 1120px) {
  .hurdat-map-viewport, .hurdat-map-svg { min-height:560px; }
}
@media (max-width: 680px) {
  .hurdat-map-viewport, .hurdat-map-svg { min-height:420px; }
}


/* Pass23: Leaflet map replacement and timeline usability cleanup. */
.timeline-workbench {
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr) !important;
  align-items: start !important;
}
.timeline-rail {
  max-height: 72vh;
  overflow: auto;
  padding-right: 8px;
}
.timeline-detail {
  position: sticky;
  top: 18px;
  min-height: 420px;
}
.timeline-detail-actions .show-map-button {
  border:1px solid rgba(241,202,120,.38);
  background:rgba(197,139,59,.16);
  color:#fff2cf;
  padding:11px 14px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.74rem;
  cursor:pointer;
}
@media (max-width: 980px) {
  .timeline-workbench { grid-template-columns:1fr !important; }
  .timeline-rail { max-height:none; overflow:visible; }
  .timeline-detail { position:relative; top:auto; min-height:auto; }
}

.leaflet-map-section {
  position:relative;
}
.leaflet-track-shell {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(360px,.8fr);
  gap:22px;
  align-items:start;
}
.leaflet-map-card,
.leaflet-track-panel {
  border:1px solid rgba(241,202,120,.26);
  background:linear-gradient(180deg,rgba(3,12,18,.96),rgba(5,20,28,.93));
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  padding:16px;
}
.leaflet-map-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}
.leaflet-map-toolbar button {
  border:1px solid rgba(241,202,120,.45);
  background:rgba(197,139,59,.15);
  color:#fff0c9;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:.68rem;
  padding:10px 12px;
  cursor:pointer;
}
.leaflet-map-toolbar button:hover { background:rgba(197,139,59,.26); }
.leaflet-hurdat-map {
  width:100%;
  min-height:620px;
  height:72vh;
  max-height:820px;
  border:1px solid rgba(241,202,120,.28);
  background:#031421;
}
.leaflet-container {
  font-family: inherit;
  background:#031421;
}
.leaflet-control-attribution {
  background:rgba(1,7,12,.76) !important;
  color:#d5e0dc !important;
}
.leaflet-control-attribution a { color:#f1ca78 !important; }
.leaflet-tc-marker {
  display:grid;
  place-items:center;
  border-radius:50%;
  border:3px solid #06141b;
  box-shadow:0 0 0 2px rgba(255,242,207,.92), 0 6px 18px rgba(0,0,0,.55);
  color:#071019;
  font-family:var(--deco);
  font-weight:700;
  letter-spacing:.02em;
  transform:rotate(-12deg);
}
.leaflet-tc-marker span {
  display:grid;
  place-items:center;
  width:68%;
  height:68%;
  border-radius:50%;
  background:rgba(255,242,207,.85);
  font-size:.72rem;
  transform:rotate(12deg);
}
.leaflet-tc-marker.ts { background:#f5d07d; }
.leaflet-tc-marker.cat1 { background:#ef9a57; }
.leaflet-tc-marker.cat3 { background:#ec7455; }
.leaflet-tc-marker.cat4 { background:#e35559; }
.leaflet-tc-marker.td { background:#7ac6dd; }
.leaflet-tc-marker.active {
  box-shadow:0 0 0 4px #fff, 0 0 28px rgba(241,202,120,.96), 0 8px 24px rgba(0,0,0,.6);
}
.leaflet-storm-popup strong,
.leaflet-storm-popup span {
  display:block;
}
.leaflet-storm-popup strong { color:#071019; font-size:1rem; }
.leaflet-storm-popup span { font-weight:700; margin-top:4px; }
.leaflet-storm-popup p { margin:8px 0 0; line-height:1.35; }
.leaflet-map-legend {
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  margin-top:12px;
  color:#d5e0dc;
  font-size:.86rem;
  align-items:center;
}
.tc-symbol {
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  margin-right:6px;
  border:2px solid rgba(255,242,207,.8);
  color:#071019;
  font-size:.65rem;
  font-weight:800;
  vertical-align:middle;
}
.legend-ts { background:#f5d07d; }
.legend-h1 { background:#ef9a57; }
.legend-h3 { background:#ec7455; }
.legend-h4 { background:#e35559; }
.track-sample {
  display:inline-block;
  width:34px;
  height:4px;
  background:#f1ca78;
  box-shadow:0 0 0 2px rgba(3,16,23,.8);
  margin-right:6px;
  vertical-align:middle;
}
.leaflet-track-panel h3 {
  font-family:var(--deco);
  font-weight:400;
  color:#f7d592;
  font-size:clamp(1.9rem,3vw,3.2rem);
  line-height:1;
  margin:0 0 18px;
}
.leaflet-metrics {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.leaflet-metrics div {
  border:1px solid rgba(241,202,120,.22);
  background:rgba(255,255,255,.025);
  padding:12px;
}
.leaflet-metrics span {
  display:block;
  color:#f1ca78;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.66rem;
}
.leaflet-metrics strong {
  display:block;
  margin-top:6px;
  color:#fff0cf;
  font-size:.98rem;
  line-height:1.18;
}
.leaflet-point-note {
  color:#d5e0dc;
  line-height:1.55;
  margin:16px 0;
}
.leaflet-point-list {
  display:grid;
  gap:9px;
  max-height:360px;
  overflow:auto;
  padding-right:4px;
}
.leaflet-point-list-item {
  text-align:left;
  border:1px solid rgba(241,202,120,.22);
  background:rgba(255,255,255,.02);
  color:#fff0cf;
  padding:10px 12px;
  cursor:pointer;
}
.leaflet-point-list-item span {
  display:block;
  color:#f1ca78;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.66rem;
}
.leaflet-point-list-item strong {
  display:block;
  margin-top:4px;
  font-family:var(--deco);
  font-weight:400;
  font-size:1rem;
}
.leaflet-point-list-item em {
  display:block;
  margin-top:4px;
  color:#a7bfba;
  font-style:normal;
  line-height:1.3;
}
.leaflet-point-list-item.active {
  border-color:rgba(241,202,120,.76);
  background:rgba(197,139,59,.14);
}
@media (max-width: 1120px) {
  .leaflet-track-shell { grid-template-columns:1fr; }
  .leaflet-hurdat-map { min-height:520px; height:62vh; }
}


/* Pass24: Art Deco / archival restyle for working Leaflet map. */
.leaflet-map-section {
  background:
    radial-gradient(circle at 16% 12%, rgba(241,202,120,.09), transparent 30%),
    linear-gradient(135deg, rgba(2,10,16,.98), rgba(7,29,37,.95));
}
.leaflet-map-card,
.leaflet-track-panel {
  position:relative;
  border:1px solid rgba(241,202,120,.42);
  background:
    linear-gradient(180deg,rgba(3,12,18,.97),rgba(5,20,28,.94)),
    repeating-linear-gradient(45deg, rgba(241,202,120,.035) 0 1px, transparent 1px 13px);
  box-shadow:0 24px 65px rgba(0,0,0,.44), inset 0 0 0 1px rgba(255,242,207,.05);
}
.leaflet-map-card::before,
.leaflet-track-panel::before {
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid rgba(241,202,120,.17);
  pointer-events:none;
  z-index:2;
}
.leaflet-map-toolbar {
  position:relative;
  z-index:3;
  padding-bottom:8px;
  border-bottom:1px solid rgba(241,202,120,.18);
}
.leaflet-map-toolbar button {
  border:1px solid rgba(241,202,120,.56);
  background:linear-gradient(180deg,rgba(197,139,59,.24),rgba(7,27,34,.82));
  color:#fff2cf;
  box-shadow:inset 0 0 0 1px rgba(255,242,207,.04);
}
.leaflet-map-toolbar button.active,
.leaflet-map-toolbar button:hover {
  background:linear-gradient(180deg,rgba(241,202,120,.28),rgba(197,139,59,.17));
  border-color:rgba(255,242,207,.82);
}
.leaflet-hurdat-map {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(241,202,120,.42);
  box-shadow:inset 0 0 50px rgba(0,0,0,.55);
}
.leaflet-hurdat-map::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:450;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(241,202,120,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241,202,120,.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(1,7,12,.32) 100%);
  background-size:52px 52px, 52px 52px, auto;
  mix-blend-mode:screen;
}
.leaflet-hurdat-map::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:451;
  background:linear-gradient(180deg,rgba(4,16,24,.22),rgba(241,202,120,.06));
}
.leaflet-container .leaflet-tile-pane img {
  filter: sepia(.28) saturate(.62) hue-rotate(142deg) brightness(.68) contrast(1.12);
  opacity:.86;
}
.leaflet-container .leaflet-control-zoom a {
  background:rgba(2,10,16,.88) !important;
  color:#f1ca78 !important;
  border-color:rgba(241,202,120,.45) !important;
}
.leaflet-container .leaflet-control-zoom a:hover { background:rgba(197,139,59,.24) !important; }
.leaflet-control-attribution {
  font-size:10px !important;
  letter-spacing:.04em;
}
.leaflet-interactive { outline:none; }

.leaflet-tc-marker.deco-tc-marker {
  border-radius:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
  display:grid !important;
  place-items:center !important;
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.62)) drop-shadow(0 0 5px rgba(241,202,120,.32));
}
.deco-tc-marker svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.deco-tc-marker .tc-swirl-a,
.deco-tc-marker .tc-swirl-b {
  fill:var(--storm-fill,#f1ca78);
  stroke:#06141b;
  stroke-width:3.2;
  stroke-linejoin:round;
}
.deco-tc-marker span {
  position:relative;
  z-index:2;
  width:40% !important;
  height:40% !important;
  border-radius:50%;
  display:grid !important;
  place-items:center !important;
  background:rgba(255,242,207,.92) !important;
  color:#06141b;
  font-family:var(--deco);
  font-weight:800;
  font-size:.58rem !important;
  line-height:1;
  border:1px solid rgba(6,20,27,.72);
  transform:none !important;
}
.deco-tc-marker.storm span { width:52% !important; height:52% !important; font-size:.54rem !important; }
.deco-tc-marker.ts { --storm-fill:#f5d07d; }
.deco-tc-marker.td { --storm-fill:#7ac6dd; }
.deco-tc-marker.cat1 { --storm-fill:#eeb46b; }
.deco-tc-marker.cat2 { --storm-fill:#ec9654; }
.deco-tc-marker.cat3 { --storm-fill:#e96f50; }
.deco-tc-marker.cat4 { --storm-fill:#d94854; }
.deco-tc-marker.active {
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.65)) drop-shadow(0 0 13px rgba(255,242,207,.96)) drop-shadow(0 0 20px rgba(241,202,120,.70));
}
.deco-tc-marker.active svg { transform:scale(1.1); }

.leaflet-deco-label {
  pointer-events:none;
  text-align:center;
  color:#fff2cf;
  text-shadow:0 2px 5px rgba(0,0,0,.9), 0 0 8px rgba(1,7,12,.9);
  font-family:var(--sans);
}
.leaflet-deco-label span {
  display:inline-block;
  padding:2px 5px;
  background:rgba(2,10,16,.24);
  border-radius:2px;
}
.leaflet-deco-label.region span,
.leaflet-deco-label.ocean span {
  font-family:var(--deco);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(241,202,120,.82);
  background:rgba(2,10,16,.10);
}
.leaflet-deco-label.ocean span { color:rgba(159,211,223,.52); font-style:italic; }
.leaflet-deco-label.city span {
  font-size:.75rem;
  letter-spacing:.08em;
  color:rgba(255,242,207,.92);
  border:1px solid rgba(241,202,120,.15);
}
.leaflet-hurdat-map.wide-view .leaflet-deco-label.city.secondary,
.leaflet-hurdat-map.wide-view .leaflet-deco-label.city.primary { opacity:0; }
.leaflet-hurdat-map.regional-view .leaflet-deco-label.city.secondary { opacity:0; }
.leaflet-hurdat-map.detail-view .leaflet-deco-label.region.major,
.leaflet-hurdat-map.detail-view .leaflet-deco-label.ocean { opacity:.28; }

.leaflet-obs-marker {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  color:#fff2cf;
  background:rgba(2,10,16,.82);
  border:1px solid rgba(241,202,120,.80);
  transform:rotate(45deg);
  box-shadow:0 5px 12px rgba(0,0,0,.55), 0 0 12px rgba(241,202,120,.24);
}
.leaflet-obs-marker span { transform:rotate(-45deg); font-size:.82rem; }
.leaflet-obs-marker.wind { border-color:#e96f50; }
.leaflet-obs-marker.surge { border-color:#7ac6dd; }
.leaflet-obs-marker.pressure { border-color:#f5d07d; }
.leaflet-obs-marker.impact { border-color:#fff2cf; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background:#fff2cf !important;
  color:#071019 !important;
  border:1px solid rgba(197,139,59,.55);
  box-shadow:0 16px 32px rgba(0,0,0,.42) !important;
}
.leaflet-storm-popup strong {
  font-family:var(--deco);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.leaflet-storm-popup span {
  color:#8b5a16;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
}
.obs-sample {
  display:inline-block;
  width:18px;
  height:18px;
  border:1px solid rgba(241,202,120,.84);
  background:rgba(2,10,16,.82);
  transform:rotate(45deg);
  margin-right:8px;
  vertical-align:middle;
}
.deco-mini-symbol {
  border-radius:0 !important;
  clip-path:polygon(50% 0, 61% 27%, 90% 22%, 69% 50%, 90% 78%, 61% 73%, 50% 100%, 39% 73%, 10% 78%, 31% 50%, 10% 22%, 39% 27%);
}
.leaflet-map-legend {
  border-top:1px solid rgba(241,202,120,.18);
  padding-top:12px;
}

/* Pass25: raster-period Leaflet map refinement. */
.leaflet-track-shell {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, .78fr) !important;
  gap: 18px !important;
}
.leaflet-hurdat-map {
  min-height: 470px !important;
  height: min(58vh, 585px) !important;
  max-height: 585px !important;
  background:#0b3954 !important;
}
.leaflet-map-card { padding:14px !important; }
.leaflet-container .leaflet-tile-pane img { filter:none !important; opacity:1 !important; }
.leaflet-image-layer { image-rendering: auto; }
.leaflet-hurdat-map::before {
  background:
    linear-gradient(90deg, rgba(241,202,120,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241,202,120,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(1,7,12,.26) 100%) !important;
  background-size:70px 70px, 70px 70px, auto !important;
}
.leaflet-deco-label {
  opacity:0;
  transition:opacity .16s ease;
}
.leaflet-deco-label span {
  background:rgba(2,10,16,.34) !important;
  border:1px solid rgba(241,202,120,.13);
  white-space:nowrap;
  paint-order:stroke;
}
.leaflet-deco-label.region span,
.leaflet-deco-label.ocean span {
  background:rgba(2,10,16,.12) !important;
  border:0;
  font-size:.82rem;
}
.leaflet-deco-label.city span {
  font-size:.70rem !important;
  padding:3px 6px;
  background:rgba(2,10,16,.54) !important;
}
.leaflet-deco-label.route span {
  font-size:.62rem !important;
  color:rgba(255,242,207,.88);
  text-transform:uppercase;
  letter-spacing:.08em;
  background:rgba(52,30,12,.42) !important;
  border:1px solid rgba(241,202,120,.22);
}
.leaflet-hurdat-map.wide-view .leaflet-deco-label.z-wide,
.leaflet-hurdat-map.regional-view .leaflet-deco-label.z-wide,
.leaflet-hurdat-map.regional-view .leaflet-deco-label.z-regional,
.leaflet-hurdat-map.detail-view .leaflet-deco-label.z-wide,
.leaflet-hurdat-map.detail-view .leaflet-deco-label.z-regional,
.leaflet-hurdat-map.detail-view .leaflet-deco-label.z-detail,
.leaflet-hurdat-map.deep-view .leaflet-deco-label { opacity:1 !important; }
.leaflet-hurdat-map.detail-view .leaflet-deco-label.ocean,
.leaflet-hurdat-map.deep-view .leaflet-deco-label.ocean { opacity:.35 !important; }
.leaflet-hurdat-map.deep-view .leaflet-deco-label.region { opacity:.56 !important; }
.leaflet-hurdat-map.deep-view .leaflet-deco-label.city { opacity:.95 !important; }
/* Observation diamonds stay out of the way until users zoom into local detail. */
.leaflet-obs-marker { opacity:0; transform:rotate(45deg) scale(.78) !important; width:22px !important; height:22px !important; }
.leaflet-hurdat-map.deep-view .leaflet-obs-marker { opacity:.92; }
.leaflet-obs-marker span { font-size:.64rem !important; }
/* Keep storm symbols legible but less bulky over local labels. */
.leaflet-tc-marker.deco-tc-marker { transform:scale(.88) !important; }
.deco-tc-marker.active { transform:scale(1.02) !important; }
.deco-tc-marker span { font-size:.52rem !important; }
.deco-tc-marker.storm span { font-size:.48rem !important; }
/* Track should read as engraved gold line over blue water. */
.leaflet-overlay-pane path[stroke="#f1ca78"] { filter: drop-shadow(0 0 4px rgba(241,202,120,.55)); }
@media (max-width:1120px) {
  .leaflet-track-shell { grid-template-columns:1fr !important; }
  .leaflet-hurdat-map { min-height:430px !important; height:55vh !important; }
}
@media (max-width:680px) {
  .leaflet-hurdat-map { min-height:360px !important; height:50vh !important; }
}
.leaflet-hurdat-map.wide-view .leaflet-tc-marker.deco-tc-marker { transform:scale(.62) !important; }
.leaflet-hurdat-map.regional-view .leaflet-tc-marker.deco-tc-marker { transform:scale(.76) !important; }
.leaflet-hurdat-map.detail-view .leaflet-tc-marker.deco-tc-marker { transform:scale(.9) !important; }
.leaflet-hurdat-map.deep-view .leaflet-tc-marker.deco-tc-marker { transform:scale(1) !important; }
.leaflet-hurdat-map .leaflet-tc-marker.deco-tc-marker.active { transform:scale(1.08) !important; }


/* Pass26: clean Leaflet map reset — NHC-style symbols, no clutter, zoom-dependent labels. */
.leaflet-nhc-clean-map .section-lede { max-width: 88ch; }
.leaflet-nhc-clean-map .leaflet-track-shell {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, .78fr) !important;
  gap: 18px !important;
}
.leaflet-nhc-clean-map .leaflet-hurdat-map {
  min-height: 500px !important;
  height: min(60vh, 620px) !important;
  max-height: 620px !important;
  background:#0e5a82 !important;
}
.leaflet-nhc-clean-map .leaflet-container .leaflet-tile-pane img {
  filter: sepia(.12) saturate(.82) hue-rotate(164deg) brightness(.72) contrast(1.08) !important;
  opacity:.92 !important;
}
.leaflet-nhc-clean-map .leaflet-hurdat-map::before {
  background:
    linear-gradient(90deg, rgba(241,202,120,.030) 1px, transparent 1px),
    linear-gradient(0deg, rgba(241,202,120,.030) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(1,7,12,.24) 100%) !important;
  background-size:78px 78px, 78px 78px, auto !important;
}
.leaflet-nhc-clean-map .leaflet-hurdat-map::after {
  background:linear-gradient(180deg,rgba(3,14,23,.10),rgba(10,47,67,.06)) !important;
}

/* NHC-like storm and hurricane symbols. */
.leaflet-tc-marker.nhc-tc-marker,
.leaflet-tc-marker.nhc-tc-marker.deco-tc-marker {
  position:relative;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.70));
}
.nhc-tc-marker svg.nhc-symbol-svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.nhc-tc-marker .nhc-backplate {
  fill:rgba(4,16,23,.68);
  stroke:rgba(255,242,207,.80);
  stroke-width:3.5;
}
.nhc-tc-marker .nhc-band {
  fill:var(--storm-fill,#f1ca78);
  stroke:#06141b;
  stroke-width:2.6;
  stroke-linejoin:round;
}
.nhc-tc-marker .nhc-eye {
  fill:#fff2cf;
  stroke:#06141b;
  stroke-width:2.4;
}
.nhc-tc-marker span {
  position:relative;
  z-index:3;
  display:grid !important;
  place-items:center !important;
  width:32% !important;
  height:32% !important;
  border-radius:50%;
  background:#fff2cf !important;
  color:#06141b !important;
  font-family:var(--deco);
  font-weight:900;
  font-size:.54rem !important;
  line-height:1;
  border:1px solid rgba(6,20,27,.82);
}
.nhc-tc-marker.storm span { width:45% !important; height:45% !important; font-size:.47rem !important; }
.nhc-tc-marker.td { --storm-fill:#7ac6dd; }
.nhc-tc-marker.ts { --storm-fill:#f5d07d; }
.nhc-tc-marker.cat1 { --storm-fill:#eeb46b; }
.nhc-tc-marker.cat2 { --storm-fill:#ec9654; }
.nhc-tc-marker.cat3 { --storm-fill:#e96f50; }
.nhc-tc-marker.cat4 { --storm-fill:#d94854; }
.nhc-tc-marker.active {
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.75)) drop-shadow(0 0 10px rgba(255,242,207,.95)) drop-shadow(0 0 18px rgba(241,202,120,.72));
}
.leaflet-hurdat-map.wide-view .nhc-tc-marker { transform:scale(.58) !important; }
.leaflet-hurdat-map.regional-view .nhc-tc-marker { transform:scale(.72) !important; }
.leaflet-hurdat-map.detail-view .nhc-tc-marker { transform:scale(.88) !important; }
.leaflet-hurdat-map.deep-view .nhc-tc-marker { transform:scale(1.02) !important; }
.leaflet-hurdat-map .nhc-tc-marker.active { transform:scale(1.14) !important; }

/* Labels: default hidden; reveal only as zoom allows. */
.leaflet-nhc-clean-map .leaflet-deco-label {
  opacity:0 !important;
  transition: opacity .15s ease;
  pointer-events:none;
}
.leaflet-nhc-clean-map .leaflet-deco-label span {
  white-space:nowrap;
  background:rgba(2,10,16,.42) !important;
  border:1px solid rgba(241,202,120,.14);
  padding:2px 5px;
  border-radius:2px;
  text-shadow:0 2px 5px rgba(0,0,0,.95), 0 0 7px rgba(1,7,12,.95);
}
.leaflet-nhc-clean-map .leaflet-deco-label.region span,
.leaflet-nhc-clean-map .leaflet-deco-label.ocean span {
  border:0;
  background:rgba(2,10,16,.10) !important;
  font-size:.78rem !important;
  letter-spacing:.14em !important;
}
.leaflet-nhc-clean-map .leaflet-deco-label.city span {
  font-size:.62rem !important;
  letter-spacing:.055em !important;
  background:rgba(2,10,16,.66) !important;
}
.leaflet-nhc-clean-map .leaflet-deco-label.label-large span { font-size:.92rem !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.wide-view .leaflet-deco-label.region.z-wide,
.leaflet-nhc-clean-map .leaflet-hurdat-map.wide-view .leaflet-deco-label.ocean.z-wide { opacity:.72 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.regional-view .leaflet-deco-label.z-wide,
.leaflet-nhc-clean-map .leaflet-hurdat-map.regional-view .leaflet-deco-label.z-regional { opacity:.82 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.detail-view .leaflet-deco-label.z-wide,
.leaflet-nhc-clean-map .leaflet-hurdat-map.detail-view .leaflet-deco-label.z-regional { opacity:.28 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.detail-view .leaflet-deco-label.city.z-detail { opacity:.88 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-deco-label.region,
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-deco-label.ocean { opacity:.20 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-deco-label.city.z-detail,
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-deco-label.city.z-deep { opacity:.92 !important; }
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-deco-label.route.z-deep { opacity:.70 !important; }

/* Observation notes and routes stay out of the way until users request them and zoom in. */
.leaflet-nhc-clean-map .leaflet-obs-marker {
  width:16px !important;
  height:16px !important;
  opacity:0 !important;
  transform:rotate(45deg) scale(.55) !important;
}
.leaflet-nhc-clean-map .leaflet-hurdat-map.deep-view .leaflet-obs-marker { opacity:.75 !important; }
.leaflet-nhc-clean-map .leaflet-obs-marker span { font-size:.46rem !important; }
.leaflet-nhc-clean-map .leaflet-map-toolbar button:not(.active)[data-leaflet-toggle] {
  opacity:.72;
  background:rgba(7,27,34,.62);
}
.leaflet-nhc-clean-map .leaflet-map-legend { font-size:.78rem; gap:9px 12px; }
.leaflet-nhc-clean-map .tc-symbol { width:20px; height:20px; font-size:.56rem; }

@media (max-width:1120px) {
  .leaflet-nhc-clean-map .leaflet-track-shell { grid-template-columns:1fr !important; }
  .leaflet-nhc-clean-map .leaflet-hurdat-map { min-height:430px !important; height:56vh !important; }
}
@media (max-width:680px) {
  .leaflet-nhc-clean-map .leaflet-hurdat-map { min-height:360px !important; height:50vh !important; }
}

/* Launch preview copyright/footer additions */
.preview-copyright-panel {
  max-width: 1060px;
  margin: 3rem auto;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  text-align: center;
  border: 1px solid rgba(238,198,111,.42);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(5,14,26,.88), rgba(21,26,43,.74));
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
}
.preview-site-footer {
  max-width: 1180px;
  margin: 3rem auto 1.25rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(238,198,111,.34);
  color: rgba(244,236,215,.72);
  text-align: center;
  font-size: .92rem;
}
.preview-site-footer p { margin: .35rem auto; max-width: 900px; }
.preview-site-footer strong { color: #fff4d7; }
.preview-site-footer a { color: #f3d487; text-decoration: none; border-bottom: 1px solid rgba(243,212,135,.5); }
