/* Top Secret/Majic site. Palette sampled from assets/TSM TRIANGLE GRID 4K.jpg (see project CLAUDE.md § Look).
   Overpass stands in for Interstate until a web license is confirmed. */
:root {
  --night: #070125;
  --indigo: #140152;
  --floor: #000027;
  --grid: #2313b7;
  --grid-soft: #4a3fd6;
  --cyan: #09d1fd;
  --cyan-light: #8ee8ff;
  --sun-yellow: #fdf03d;
  --redacted: #ff7a4a;
  --text: #ecebff;
  --muted: #b3aee8;
  --font: "Interstate", "Overpass", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font); line-height: 1.5; }
a { color: var(--cyan); }
a:hover { color: var(--cyan-light); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cyan); color: var(--night); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.mono { font-family: var(--mono); }
.cyan { color: var(--cyan); }
.yellow { color: var(--sun-yellow); }
.dim { color: var(--muted); }
.small { font-size: 14px; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--cyan); }
.label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
h1, .h1 { margin: 0; font-size: 47px; line-height: 1.08; font-weight: 800; max-width: 900px; }
h2 { margin: 0; font-size: 34px; font-weight: 800; }
.lede { margin: 0; font-size: 20px; line-height: 1.65; color: var(--muted); max-width: 820px; }

/* Navigation */
.topnav { background: var(--night); border-bottom: 1px solid var(--grid); position: relative; z-index: 5; }
body:has(.hero) .topnav { position: absolute; top: 0; left: 0; right: 0; background: rgba(7, 1, 37, 0.72); border-bottom: 0; }
.topnav nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 48px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand .brand-bug { height: 34px; }
/* The show's on-screen bug, bottom right of video players, sitting above the player's control bar. */
.player-bug { position: absolute; right: 16px; bottom: 56px; width: 64px; height: auto; pointer-events: none; opacity: 0.9; z-index: 1; }
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; }
.navlinks a { color: var(--text); text-decoration: none; }
.navlinks a.current { color: var(--cyan); }
.navlinks .soon { color: var(--muted); opacity: 0.7; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--cyan); color: var(--night) !important; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: 0.12em; padding: 16px 24px; border-radius: 2px; }
.btn-primary.small { font-size: 13px; padding: 12px 18px; font-weight: 600; }
.btn-primary:hover { background: var(--cyan-light); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; padding: 14px 22px; border: 1px solid var(--cyan); background: rgba(7, 1, 37, 0.78); border-radius: 2px; }
.block { display: flex; width: 100%; }

/* Hero */
.hero { position: relative; width: 100%; height: clamp(620px, 56.25vw, 960px); background: url(https://static.wixstatic.com/media/f038b7_b798e9838b70405ab482f3a5f20e3d8e~mv2.jpg) center top / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px 40px; }
.ep-frame { width: clamp(280px, 38%, 640px); aspect-ratio: 16 / 9; border: 1px solid var(--cyan); box-shadow: 0 0 28px rgba(9, 209, 253, 0.45); background: #000; }
.ep-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ep-facade { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ep-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playpill { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; min-height: 40px; border: 1px solid var(--cyan); border-radius: 2px; background: rgba(7, 1, 37, 0.88); color: var(--text); font: 600 13px var(--font); letter-spacing: 0.14em; }

/* Landing sections */
.band-bottom { border-bottom: 1px solid var(--grid); }
#about .stack { padding-top: 96px; padding-bottom: 80px; }
.intro { padding-top: 88px; padding-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--grid); border: 1px solid var(--grid); padding: 0; margin-bottom: 72px; }
.stats div { background: var(--night); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: 36px; font-weight: 800; }
.stats span { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.panel { background: var(--indigo); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.panel > .wrap { padding-top: 72px; padding-bottom: 72px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.chart-scroll { overflow-x: auto; }
.bars, .bar-labels { display: grid; gap: 12px; min-width: 640px; }
.bars { align-items: end; height: 300px; border-bottom: 1px solid var(--grid-soft); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; font-size: 14px; }
.bar div { width: 100%; background: var(--grid); border-top: 3px solid var(--cyan); }
.bar.undated div { background: transparent; border: 1px dashed var(--muted); }
.bar-labels { padding-top: 10px; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--night); border: 1px solid var(--grid); text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--cyan); color: var(--text); }
.card .mono { font-size: 13px; }
.card-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge-redacted { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--redacted); border: 1px solid var(--redacted); padding: 2px 6px; }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-top: 88px; padding-bottom: 88px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--grid); text-decoration: none; color: var(--text); background: var(--night); }
.tile.dashed { border-style: dashed; border-color: var(--grid-soft); }
.tile b { font-size: 26px; font-weight: 800; }
.tile span:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); }
a.tile:hover { border-color: var(--cyan); color: var(--text); }
.sitefoot { border-top: 1px solid var(--grid); padding: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* List page */
.listhead { padding-top: 48px; padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 999 1 360px; }
.search input, .release select { width: 100%; min-height: 48px; padding: 0 16px; font: 16px var(--font); color: var(--text); background: var(--indigo); border: 1px solid var(--grid-soft); border-radius: 2px; }
.search input::placeholder { color: var(--muted); }
.release { flex: 1 1 180px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 13px var(--font); letter-spacing: 0.1em; padding: 12px 14px; min-height: 44px; border-radius: 2px; border: 1px solid var(--grid-soft); background: transparent; color: var(--text); cursor: pointer; }
.chip.on { background: var(--cyan); border-color: var(--cyan); color: var(--night); }
.records { list-style: none; margin: 0 0 96px; padding: 0; }
.records .decade h2 { font-size: 22px; padding: 32px 0 10px; border-bottom: 1px solid var(--grid); color: var(--cyan); font-family: var(--mono); font-weight: 600; letter-spacing: 0.08em; }
.row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(35, 19, 183, 0.6); align-items: baseline; }
.rdate { font-size: 13px; }
.rmain { display: flex; flex-direction: column; gap: 4px; }
.rmain a { color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; }
.rmain a:hover { color: var(--cyan); }
.rsub { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rid { font-size: 12px; }
.hidden { display: none !important; }

/* Record page */
.record { padding-top: 40px; padding-bottom: 96px; }
body:not(:has(.hero)) { background-color: var(--night); background-image: linear-gradient(rgba(35, 19, 183, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 19, 183, 0.22) 1px, transparent 1px); background-size: 64px 64px; }
.player { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--grid); background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.imgfig { margin: 0; background: var(--indigo); border: 1px solid var(--grid); padding: 20px; text-align: center; }
.imgfig img { max-height: 720px; width: auto; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rid-big { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; }
.chip-static { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; padding: 4px 8px; border: 1px solid var(--grid-soft); }
.h-record { font-size: 41px; line-height: 1.1; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--muted); }
.facts span:first-child { color: var(--text); font-weight: 600; }
.cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.docside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.docthumb { margin: 0; background: var(--indigo); border: 1px solid var(--grid); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.docthumb img { width: 100%; max-height: 520px; object-fit: contain; background: var(--floor); display: block; }
.docthumb figcaption { font-size: 13px; }
.main-col { flex: 999 1 520px; min-width: 0; }
.official { padding: 28px; background: var(--indigo); border: 1px solid var(--grid); font-size: 18px; line-height: 1.7; }
.official p { margin: 0 0 18px; }
.official p:last-child { margin-bottom: 0; }
.summary { padding: 24px 28px; border: 1px dashed var(--grid-soft); font-size: 17px; line-height: 1.7; }
.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--grid); border: 1px solid var(--grid); }
.details div { background: var(--night); padding: 16px 20px; }
.details dt { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.details dd { margin: 6px 0 0; font-size: 16px; }
.record h2 { font-size: 22px; }
.neighbors { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--grid); padding-top: 28px; }
.neighbors a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); max-width: 440px; }
.neighbors a.right { text-align: right; margin-left: auto; }
.neighbors .mono { font-size: 13px; letter-spacing: 0.1em; }

/* Phones */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topnav nav { padding: 14px 16px; }
  .navlinks { gap: 14px; font-size: 12px; }
  h1, .h1 { font-size: 34px; }
  .h-record { font-size: 30px; }
  h2 { font-size: 26px; }
  .lede { font-size: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .details { grid-template-columns: 1fr; }
  .sitefoot { padding: 32px 16px; }
  .hero { height: 640px; }
  .ep-frame { width: min(100%, 340px); }
}