/**
 * America 250 Proof™ — History Hunt
 * hh-style.css  |  Version 1.0
 *
 * All visual styling for the History Hunt page.
 * Imports Playfair Display + Inter via Google Fonts (handled in HTML head).
 *
 * Color tokens match the flag palette established in cards-data.js link types:
 *   --red    Old Glory Red   #B22234
 *   --navy   Old Glory Blue  #002868
 *   --gold   Star Gold       #C9A84C
 */

/* ── RESET & TOKENS ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #B22234;
  --red-dark:   #811724;
  --navy:       #002868;
  --navy2:      #143D7A;
  --white:      #fff;
  --off:        #F8F6F2;
  --cream:      #EFE9DA;
  --gold:       #C9A84C;
  --gold2:      #F2D675;
  --ink:        #171717;
  --muted:      #6D6A64;
  --border:     rgba(0, 40, 104, .16);
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--off);
  color: var(--ink);
  line-height: 1.58;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.top {
  background: linear-gradient(135deg, var(--navy), #061B44);
  border-bottom: 5px solid var(--red);
}

.topin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: nowrap;
}

.logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

.logo-text { display: flex; flex-direction: column; gap: .3rem; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold2);
  font-weight: 700;
}

.site-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4.1rem);
  line-height: 1.02;
  margin: .1rem 0;
}

.site-title em { font-style: normal; color: #F0717B; }

.site-sub {
  max-width: 700px;
  color: #D7E2F6;
  font-size: 18px;
  line-height: 1.65;
  margin-top: .2rem;
}

/* state badge — shows when ?state= is active */
.state-badge {
  display: none;         /* shown by JS when state is active */
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-top: .4rem;
  width: fit-content;
}

.badge {
  display: inline-block;
  position: static;
  border: 1px solid rgba(242, 214, 117, .45);
  color: var(--white);
  background: rgba(178, 34, 52, .55);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: .25rem;
}

/* stats row */
.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.1rem;
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.stats b {
  font-family: 'Playfair Display', serif;
  color: var(--gold2);
  font-size: 1.8rem;
  display: block;
  line-height: 1.1;
}

.stats span {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B8C7E5;
}

/* ── STRIPE ─────────────────────────────────────────────────────────────── */
.stripe {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--red)   0, var(--red)   33%,
    var(--white) 33%, var(--white) 66%,
    var(--navy)  66%, var(--navy) 100%
  );
}

/* ── STICKY CONTROLS ─────────────────────────────────────────────────────── */
.ctrl {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 40, 104, .08);
}

.ctrlin {
  max-width: 1180px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  gap: .7rem;
  align-items: center;
  flex-wrap: wrap;
}

.search {
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 260px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}

.search:focus { border-color: var(--navy); }

.filters { display: flex; gap: .4rem; flex-wrap: wrap; }

.fbtn {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: .5rem .85rem;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.fbtn:hover { background: var(--cream); }
.fbtn.on { background: var(--navy); color: var(--gold2); border-color: var(--navy); }

.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 5rem;
}

/* intro box */
.intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.7rem 1.8rem;
  margin-bottom: 1.8rem;
}

.intro h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: .45rem;
}

.intro p {
  font-size: 17px;
  line-height: 1.8;
  color: #45413c;
}

/* no results */
.nores { display: none; text-align: center; color: var(--muted); padding: 2rem; }

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.sec {
  margin: 2.4rem 0 1rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.sec.verse    { background: var(--navy);     border-left: 5px solid var(--gold); }
.sec.prechorus{ background: var(--red-dark); border-left: 5px solid #FFC7CD; }
.sec.chorus   { background: var(--red);      border-left: 5px solid var(--white); }
.sec.outro    { background: #171717;         border-left: 5px solid var(--gold); }

.sec h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
}

.sec .pill {
  font-size: 12px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  padding: .18rem .65rem;
  border-radius: 999px;
}

.sec .note {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255,255,255,.68);
  font-style: italic;
}

/* ── CARD GRID ───────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}

.card:hover {
  border-color: var(--navy2);
  box-shadow: 0 4px 16px rgba(0, 40, 104, .08);
}

.card.open {
  background: #F4F7FF;
  border-color: var(--navy);
}

.card.hide { display: none; }

/* card top row */
.ctop { display: flex; gap: .7rem; align-items: flex-start; }

.lyric {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 700;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  flex: 1;
}

.plus {
  font-size: 26px;
  color: #8a8580;
  line-height: 1;
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}

.card.open .plus { transform: rotate(45deg); color: var(--red); }

/* label badges */
.label {
  display: inline-block;
  margin: .55rem .4rem .4rem 0;
  border-radius: 999px;
  padding: .22rem .65rem;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.lbl-v  { background: #EAF0FF; color: var(--navy); }
.lbl-pc,
.lbl-c  { background: #FAE8EA; color: var(--red-dark); }
.lbl-o  { background: #171717; color: var(--gold2); }

/* theme tags */
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: .24rem .65rem;
  font-size: 12.5px;
  font-weight: 700;
}

.t-founding   { background: #EAF0FF; color: #002868; }
.t-revolution { background: #FAE8EA; color: #8B1A27; }
.t-expansion  { background: #E8F5EE; color: #1A5C36; }
.t-rights     { background: #EDE9FE; color: #3B1F8C; }
.t-innovation { background: #E6F1FF; color: #0D4E8C; }
.t-military   { background: #FAE8EA; color: #8B1A27; }
.t-resilience { background: #FEF3C7; color: #7C4A0A; }

/* hint line */
.hint {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  margin: .25rem 0;
}

/* ── CARD DETAIL (expanded) ──────────────────────────────────────────────── */
.detail {
  display: none;
  border-top: 1px solid var(--border);
  margin-top: .9rem;
  padding-top: .9rem;
}

.card.open .detail { display: block; }

/* numbered reference items */
.di {
  display: flex;
  gap: .6rem;
  margin: .55rem 0;
}

.num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
  flex-shrink: 0;
}

.dt {
  font-size: 16px;
  color: #38342f;
  line-height: 1.7;
}

/* symbolic meaning block */
.meaning {
  background: var(--navy);
  border-radius: 10px;
  color: #CAD7F2;
  font-style: italic;
  font-size: 15px;
  padding: .8rem .95rem;
  margin-top: .85rem;
  line-height: 1.8;
}

.meaning b {
  display: block;
  color: var(--gold2);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  margin-bottom: .25rem;
}

/* ── EXPLORE FURTHER LINKS ───────────────────────────────────────────────── */
.explore {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed rgba(0, 40, 104, .2);
}

.explore-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: .55rem;
}

.explore-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* base link pill */
.elink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .38rem .75rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}

.elink:hover { opacity: .85; transform: translateY(-1px); }

.elink svg { width: 11px; height: 11px; flex-shrink: 0; }

/* institution color coding */
.elink.archives    { background: #EAF0FF; color: #002868; border-color: #002868; }
.elink.loc         { background: #FAE8EA; color: #8B1A27; border-color: #8B1A27; }
.elink.smithsonian { background: #E8F5EE; color: #1A5C36; border-color: #1A5C36; }
.elink.nps         { background: #FEF3C7; color: #7C4A0A; border-color: #C9A84C; }
.elink.nasa        { background: #E6F0FF; color: #0D3B8C; border-color: #0D3B8C; }
.elink.yale        { background: #EDE9FE; color: #3B1F8C; border-color: #3B1F8C; }
.elink.pbs         { background: #E6F1FF; color: #0D4E8C; border-color: #0D4E8C; }
.elink.khan        { background: #F0FFF4; color: #1A5C36; border-color: #2D8C4E; }
.elink.miller      { background: #F8F0FF; color: #4A1580; border-color: #7C3CBD; }
.elink.docs        { background: #FFF8E8; color: #7C4A0A; border-color: #C9A84C; }
.elink.state       { background: #E8F5FF; color: #0D4E8C; border-color: #4A90D9; }

/* ── STATE CONTEXT BLOCK ─────────────────────────────────────────────────── */
/*
   Shown inside each card when a state override is active.
   Sits between the Explore Further links and the bottom of the detail panel.
*/
.state-context {
  display: none;
  margin-top: .9rem;
  padding: .8rem .95rem;
  background: #EAF5FF;
  border-left: 3px solid #4A90D9;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: #1A3D6B;
  line-height: 1.7;
}

.state-context b {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #0D4E8C;
  margin-bottom: .3rem;
}

/* ── GUITAR RIFF BLOCK ───────────────────────────────────────────────────── */
.guitar {
  margin-top: 2.4rem;
  background: var(--navy);
  border-top: 5px solid var(--red);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  color: #B8C7E5;
}

.guitar h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.55rem;
  margin-bottom: .8rem;
}

.guitar ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .55rem;
  list-style: none;
}

.guitar li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .8rem;
  font-size: 15px;
  line-height: 1.65;
}

/* ── RESOURCE PANEL ──────────────────────────────────────────────────────── */
.resource-panel {
  margin-top: 2.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.rp-header {
  background: var(--navy);
  padding: 1.2rem 1.5rem;
  border-bottom: 3px solid var(--gold);
}

.rp-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: .25rem;
}

.rp-header p {
  color: #B8C7E5;
  font-size: 15px;
  line-height: 1.6;
}

.rp-body {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.rp-cat h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: .7rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--gold);
}

.rp-cat ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }

.rp-cat li a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: var(--navy2);
  text-decoration: none;
  font-weight: 500;
}

.rp-cat li a:hover { color: var(--red); text-decoration: underline; }

.rp-cat li a svg { width: 10px; height: 10px; flex-shrink: 0; color: var(--muted); }

.rp-cat li span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  padding-left: 15px;
  line-height: 1.45;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.foot {
  border-top: 2px solid var(--red);
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 15px;
  max-width: 900px;
  font-style: italic;
  line-height: 1.75;
}

.foot-sources {
  display: block;
  margin-top: .85rem;
  font-style: normal;
  font-size: 14px;
  background: var(--cream);
  border-radius: 10px;
  padding: .9rem 1rem;
  border-left: 3px solid var(--gold);
  color: #45413c;
}

.foot-sources strong {
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: .25rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .grid               { grid-template-columns: 1fr; }
  .count              { margin-left: 0; }
  .sec .note          { display: none; }
  .topin              { align-items: flex-start; }
  .search             { width: 100%; }
  .logo-img           { width: 90px; height: 90px; }
  .rp-body            { grid-template-columns: 1fr; }
  .explore-links      { flex-direction: column; }
}

/* ── STATE SUPPLEMENT BLOCK ──────────────────────────────────────────────── */
/*
   Shown inside each card when a state supplement is active.
   Sits BELOW the core Explore Further links — always additive, never replacing.
   The dashed top border visually signals "this is additional, supplemental content."
*/
.state-supplement {
  margin-top: .9rem;
  padding: .75rem .9rem;
  background: #EAF5FF;
  border-left: 3px solid #4A90D9;
  border-top: 1px dashed #4A90D9;
  border-radius: 0 10px 10px 0;
}

.supp-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #0D4E8C;
  margin-bottom: .4rem;
}

.supp-text {
  font-size: 15px;
  color: #1A3D6B;
  line-height: 1.7;
  margin-bottom: .55rem;
}

.supp-links { margin-top: .4rem; }

/* ── STATE PICKER ────────────────────────────────────────────────────────── */
.state-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: .25rem;
}

.state-picker {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}

.state-picker:focus,
.state-picker:hover { border-color: var(--navy); }

.state-clear {
  padding: .35rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.state-clear:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ── FINAL READABILITY + MOBILE OVERRIDES ─────────────────────────────────
   Added for public History Hunt release.
   Keeps the header compact and makes text easier to read on desktop/mobile.
*/
@media (max-width: 780px) {
  .topin {
    padding: 1.45rem 1rem 1.15rem;
    gap: 1rem;
  }

  .logo-wrap {
    flex-wrap: nowrap;
    align-items: center;
    gap: .9rem;
  }

  .logo-img {
    width: 88px;
    height: 88px;
  }

  .site-title {
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

  .site-sub {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .badge {
    display: none;
  }

  .stats {
    gap: 1.25rem;
    padding: .85rem 1rem 1rem;
  }

  .stats b {
    font-size: 1.45rem;
  }

  .stats span {
    font-size: 11px;
  }

  .ctrlin {
    padding: .75rem 1rem;
  }

  .search {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .count {
    margin-left: 0;
  }

  .main {
    padding: 1.3rem 1rem 4rem;
  }

  .intro {
    padding: 1.2rem 1.15rem;
  }

  .intro h2 {
    font-size: 1.65rem;
  }

  .intro p {
    font-size: 16px;
    line-height: 1.7;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sec {
    padding: .8rem .9rem;
  }

  .sec h2 {
    font-size: 1.35rem;
  }

  .lyric {
    font-size: 1.18rem;
    line-height: 1.42;
  }

  .hint,
  .dt,
  .meaning,
  .state-context,
  .supp-text {
    font-size: 15.5px;
  }

  .elink {
    font-size: 13px;
    white-space: normal;
  }

  .guitar ul,
  .rp-body {
    grid-template-columns: 1fr;
  }
}


/* ── FINAL HEADER FIX: compact, aligned, no giant empty hero gap ─────────── */
.top {
  background: linear-gradient(135deg, var(--navy), #061B44);
  border-bottom: 5px solid var(--red);
}

.topin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.45rem 1.5rem 1.1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.logo-img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.site-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  line-height: .98;
  margin: 0;
}

.site-title em {
  font-style: normal;
  color: #F0717B;
}

.site-sub {
  max-width: 760px;
  color: #D7E2F6;
  font-size: 18px;
  line-height: 1.55;
  margin-top: .15rem;
}

.state-badge {
  display: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .34rem .85rem;
  border-radius: 999px;
  margin-top: .35rem;
  width: fit-content;
}

.a250p-logo {
  width: 180px;
  max-width: 18vw;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
  margin: 0;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}

.badge {
  display: none;
}

.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: .8rem 1.5rem 1rem;
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.stats b {
  font-family: 'Playfair Display', serif;
  color: var(--gold2);
  font-size: 1.75rem;
  display: block;
  line-height: 1.05;
}

.stats span {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B8C7E5;
}

/* Remove accidental vertical dead space caused by page-level overrides */
.top,
.topin,
.logo-wrap,
.logo-text {
  min-height: 0;
}

/* Mobile header */
@media (max-width: 780px) {
  .topin {
    padding: 1.25rem 1rem 1rem;
    gap: .9rem;
  }

  .logo-img {
    width: 96px;
    height: 96px;
  }

  .site-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .site-sub {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .a250p-logo {
    width: 90px;
    max-width: 24vw;
  }

  .stats {
    padding: .8rem 1rem 1rem;
    gap: 1.15rem;
  }

  .stats b {
    font-size: 1.35rem;
  }

  .stats span {
    font-size: 10.5px;
  }
}

@media (max-width: 560px) {
  .topin {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-wrap {
    flex-direction: column;
    text-align: center;
  }

  .state-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .a250p-logo {
    width: 110px;
    max-width: 42vw;
  }

  .stats {
    justify-content: center;
    text-align: center;
  }
}


/* FL JEA polish */
.supp-badges{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.65rem}.supp-badge{display:inline-flex;padding:.22rem .55rem;border-radius:999px;background:#fff3c4;border:1px solid rgba(199,158,35,.5);color:#6d5100;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.visit-this-place{margin-top:.9rem;padding:.85rem .95rem;border:1px solid rgba(0,51,102,.14);border-left:4px solid var(--red);border-radius:12px;background:#f8fbff}.visit-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:var(--navy);margin-bottom:.45rem}.visit-city{color:var(--muted);font-size:13px}.fl-standards{margin-top:.75rem;padding:.65rem .75rem;border-radius:10px;background:#eef4ff;color:var(--navy);font-size:13px;line-height:1.5}.fl-discoveries{margin:1.25rem 0 1.5rem;padding:1.15rem;border:1px solid var(--border);border-top:4px solid var(--red);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.fl-discoveries-head .eyebrow{margin:0 0 .25rem;color:var(--red);text-transform:uppercase;letter-spacing:.14em;font-weight:900;font-size:12px}.fl-discoveries-head h2{margin:0;font-family:"Playfair Display",serif;color:var(--navy);font-size:clamp(28px,4vw,44px)}.fl-discovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}.fl-discovery-card{padding:.85rem;border:1px solid rgba(0,51,102,.13);border-radius:14px;background:rgba(255,255,255,.78)}.fl-discovery-card span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-bottom:.45rem;border-radius:999px;background:var(--navy);color:#fff;font-size:12px;font-weight:900}.fl-discovery-card b{display:block;color:var(--navy);font-weight:900}.fl-discovery-card p{margin:.25rem 0 0;color:var(--muted);font-size:13px;line-height:1.45}@media(max-width:900px){.fl-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.fl-discovery-grid{grid-template-columns:1fr}}


/* clickable Top 15 discovery cards */
.fl-discovery-card {
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.fl-discovery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 51, 102, .12);
}


/* ── PRODUCTION FIX: Extra Credit FL Discovery collapsed by default ─────── */
.fl-extra-credit .fl-discovery-card.extra {
  padding: 0 !important;
  overflow: hidden !important;
}

.fl-extra-credit .fl-extra-head {
  width: 100% !important;
  display: block !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  padding: .9rem !important;
  cursor: pointer !important;
  font: inherit !important;
}

.fl-extra-credit .fl-extra-head small {
  display: inline-block !important;
  margin: .35rem 0 .15rem !important;
  color: var(--red) !important;
  text-transform: uppercase !important;
  letter-spacing: .09em !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.fl-extra-credit .fl-extra-cue {
  display: inline-block !important;
  margin-top: .55rem !important;
  color: var(--navy) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.fl-extra-credit .fl-extra-detail {
  display: none !important;
  border-top: 1px solid rgba(0,51,102,.13) !important;
  padding: .95rem !important;
  background: #fff !important;
}

.fl-extra-credit .fl-discovery-card.extra.open .fl-extra-detail {
  display: block !important;
}

.fl-extra-credit .fl-extra-detail p {
  color: #38342f !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin: 0 0 .8rem !important;
}
