/* Phantoms Reignited — styles from the website design (dark steel blue, cyan, Phoenix orange). */
:root {
  --bg: #0b1620;
  --bg-deep: #070f16;
  --bg-card-band: #0e1c27;
  --panel: #142533;
  --panel-alt: #1b3142;
  --raised: #21394c;
  --line: #2a4458;
  --line-soft: #1d3242;
  --line-strong: #355870;
  --text: #d6e2ea;
  --text-2: #c9d7e1;
  --muted: #a9bccb;
  --muted-2: #8ea5b5;
  --faint: #5d7a8e;
  --cyan: #4cc3f0;
  --cyan-hover: #9fe0fb;
  /* The site's contrast colour: Phoenix orange. Red is kept for danger (bans, losses, errors). */
  --accent: #ff652b;
  --red: #c8302f;
  --red-text: #ff8a80;
  --green: #46d27a;
  --green-text: #6fe39b;
  --gold: #ffd166;
  --silver: #d6e2ea;
  --bronze: #e0a36b;
  --phoenix: #f26b3a;
  --phoenix-fill: #d4552a;
  --head: 'Oswald', system-ui, sans-serif;
  --body: 'Roboto', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; color: #fff; margin: 0; line-height: 1.15; }
h2 { font-size: 22px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted-2); }
.faint { color: var(--faint); }
.orange { color: var(--phoenix); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hatch { background-color: #13222e; background-image: repeating-linear-gradient(135deg, rgba(76,195,240,.06) 0 2px, transparent 2px 14px); }

/* top bar */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 28px; padding-top: 8px; padding-bottom: 8px;
  font-family: var(--head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.topbar a, .topbar span, .topbar button { color: var(--muted-2); }
.topbar .accent { color: var(--cyan); }
.topbar .me { display: flex; align-items: center; gap: 8px; color: #fff; }
.topbar form { margin: 0; }
.topbar button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.avatar { border-radius: 50%; background: var(--raised); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); color: var(--text-2); flex-shrink: 0; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; border: 2px solid var(--phoenix); }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 112px; height: 112px; font-size: 44px; border: 3px solid var(--cyan); }

/* header */
.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { padding-top: 36px; }
.brand-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 18px; color: #fff; }
.brand:hover { color: #fff; }
.wordmark { display: flex; flex-direction: column; gap: 6px; }
.wordmark .top { font-family: var(--head); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: .04em; }
.wordmark .bottom { align-self: flex-start; background: #fff; color: var(--bg); font-family: var(--head); font-weight: 500; font-size: 18px; letter-spacing: .52em; padding: 3px 6px 3px 12px; }
.tagline { max-width: 360px; color: var(--muted-2); font-size: 14px; }
.mainnav { display: flex; flex-wrap: wrap; gap: 2px; font-family: var(--head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.mainnav a { padding: 12px 22px; background: var(--panel); color: var(--text-2); border-top: 3px solid transparent; }
.mainnav a:hover { color: #fff; background: var(--raised); }
.mainnav a.active { background: var(--bg); color: #fff; border-top-color: var(--cyan); }
.mainnav a.download { background: var(--accent); color: #fff; border-top-color: var(--accent); }

/* layout */
.page { padding-top: 28px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.page > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.page.full > .main { flex-basis: 100%; }
.band { background: var(--bg-card-band); border-bottom: 1px solid var(--line-soft); }
.band .wrap { padding-top: 28px; padding-bottom: 28px; }
.page-title { font-size: 34px; }
.kicker { font-family: var(--head); font-size: 13px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.panel.phoenix { border-top: 3px solid var(--phoenix); }
.panel.danger { border-top: 3px solid var(--red); }
.panel h2 { font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.kv { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.kv > :first-child { color: var(--muted); }
.kv > :last-child { color: #fff; }
.empty { padding: 22px 18px; border: 1px dashed var(--line-strong); background: var(--bg-card-band); color: var(--muted-2); font-size: 14px; display: flex; align-items: center; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 1px solid var(--line-strong);
  background: var(--raised); color: #fff; font-family: var(--head); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn.primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.btn.primary:hover { color: var(--bg); }
.btn.red { background: var(--accent); border-color: var(--accent); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.phoenix { background: var(--phoenix-fill); border-color: var(--phoenix-fill); border-radius: 10px; letter-spacing: .06em; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.phoenix-mark { width: 24px; height: 24px; border-radius: 6px; flex: none; display: block; }

/* tabs and chips */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); }
.tabs a, .tabs button { min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center; border: 0; background: var(--panel); color: var(--text-2);
  font-family: var(--head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tabs a:hover { color: #fff; }
.tabs .on { background: var(--cyan); color: var(--bg); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .label { font-family: var(--head); font-size: 13px; letter-spacing: .1em; color: var(--muted-2); margin-right: 4px; }
.chip { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-2); font-size: 14px; }
.chip:hover { color: #fff; }
.chip.on { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; font-family: var(--head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pill.green { background: rgba(70,210,122,.15); color: var(--green-text); }
.pill.red { background: rgba(200,48,47,.22); color: var(--red-text); }
.pill.gold { background: rgba(255,209,102,.15); color: var(--gold); }
.pill.grey { background: var(--raised); color: var(--text-2); }
.pill.orange { color: var(--phoenix); border: 1px solid var(--phoenix); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { background: var(--bg-deep); font-family: var(--head); font-weight: 500; letter-spacing: .08em; text-align: left; color: #fff; padding: 12px 14px; text-transform: uppercase; }
table.data td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text-2); }
table.data tbody tr:nth-child(odd) { background: var(--panel); }
table.data tbody tr:nth-child(even) { background: var(--panel-alt); }
table.data tr.me td { background: #2a1d16; border-top: 2px solid var(--phoenix); }
table.data tr.selected td { background: var(--raised); }
table.data .num { font-family: var(--head); font-size: 15px; }
.rank-1 { color: var(--gold); } .rank-2 { color: var(--silver); } .rank-3 { color: var(--bronze); }
.pager { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--head); font-size: 14px; }
.pager a, .pager span { min-width: 38px; min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--text-2); }
.pager .on { background: var(--cyan); color: var(--bg); }
.pager .gap { background: transparent; min-width: 20px; padding: 0 4px; }

/* stat strip */
.stat-strip { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); }
.stat-strip .wrap { padding-top: 16px; padding-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 24px; }
.stat { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--head); }
.stat .k { font-size: 12px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.stat .v { font-size: 26px; color: #fff; }
.stat .v.gold { color: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
.tile .k { font-family: var(--head); font-size: 12px; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }
.tile .v { font-family: var(--head); font-size: 26px; color: #fff; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--text); }
.card:hover { color: var(--text); border-color: var(--line-strong); }
.card .art { height: 140px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; letter-spacing: .1em; background-size: cover; background-position: center; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card .meta { font-family: var(--head); font-size: 12px; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.card h3 { font-size: 19px; font-weight: 500; }
.bar { height: 6px; background: var(--raised); }
.bar > span { display: block; height: 100%; background: var(--cyan); }

/* hero */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background-size: cover; background-position: center; border: 1px solid var(--line); }
.hero .caption { width: 100%; padding: 22px 24px; background: linear-gradient(transparent, rgba(7,15,22,.92) 40%); display: flex; flex-direction: column; gap: 8px; }
.hero h2 { font-size: 34px; }

/* home carousel: a scroll-snap strip, enhanced by site.js */
.carousel { display: flex; flex-direction: column; gap: 10px; }
.carousel .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); }
.carousel .slides::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: start; border: 0; }
.carousel-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.carousel .dots { display: flex; gap: 6px; margin-left: auto; }
.carousel .dots a { width: 28px; height: 6px; background: var(--line-strong); position: relative; }
.carousel .dots a::after { content: ""; position: absolute; inset: -19px -2px; } /* 44px touch target */
.carousel .dots a[aria-current] { background: var(--cyan); }
.download-cta { flex-direction: column; gap: 0; min-height: 76px; }
.download-cta span { font-size: 28px; font-weight: 700; line-height: 1.1; }
.download-cta small { font-size: 14px; letter-spacing: .14em; }
.side-cta { justify-content: flex-start; min-height: 56px; font-size: 19px; background: var(--panel-alt); }
.side-cta.discord { gap: 14px; }

/* news list */
.news-lead, .news-row { background: var(--panel); border: 1px solid var(--line); display: flex; flex-wrap: wrap; }
.news-lead .art, .news-row .art { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; letter-spacing: .1em; background-size: cover; background-position: center; }
.news-lead .art { flex: 1 1 340px; min-height: 280px; }
.news-row .art { flex: 0 1 220px; min-height: 130px; }
.news-lead .body, .news-row .body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.news-lead .body { padding: 24px 26px; }
.news-row .body { padding: 16px 20px; gap: 6px; }
.news-lead .meta, .news-row .meta { font-family: var(--head); font-size: 13px; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.news-lead h1 { font-size: 32px; text-transform: uppercase; }
.news-lead p { color: var(--text-2); }
.news-lead h1 a, .news-row h3 a { color: #fff; }
.news-lead h1 a:hover, .news-row h3 a:hover { color: var(--cyan-hover); }
.news-row h3 { font-size: 20px; font-weight: 500; }
.event-row { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; color: var(--text-2); font-size: 14px; }
.event-row .date { min-width: 58px; text-align: center; background: var(--bg-deep); padding: 6px 4px; font-family: var(--head); font-size: 13px; color: var(--cyan); }

/* download page */
.download-hero { border-bottom: 1px solid var(--line-soft); }
.download-hero-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.download-video { position: relative; flex: 1 1 420px; aspect-ratio: 16 / 9; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.download-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.download-video:hover .play-button { transform: scale(1.05); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.specs dt { font-family: var(--head); letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; font-size: 13px; }
.specs dd { margin: 0; color: #fff; }

/* game guide */
.guide-banner .wrap { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.guide-title { font-family: var(--head); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: .06em; color: #fff; }
.guide-tabs { background: var(--bg-deep); }
.guide-tabs .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3px; font-family: var(--head); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.guide-tabs a { padding: 14px 10px; background: #214a66; color: var(--text-2); border-bottom: 3px solid transparent; }
.guide-tabs a:hover { background: #2a5470; color: #fff; }
.guide-tabs a[aria-current] { background: var(--bg); color: #fff; border-bottom-color: var(--cyan); }
.guide { padding-top: 36px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.guide-intro { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.guide-intro .art { flex: 1 1 380px; min-height: 260px; background-size: cover; background-position: center; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; letter-spacing: .1em; }
.guide-heading { background: var(--bg-deep); padding: 12px 18px; font-size: 24px; letter-spacing: .06em; }
.guide-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-cards h3 { color: var(--cyan); }
.guide-cards p { color: var(--text-2); font-size: 14px; }
.guide-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.guide-steps b { color: #fff; font-weight: 500; }
.card.link { color: inherit; transition: border-color .15s; }
.card.link:hover { color: inherit; border-color: var(--cyan); }
.card.link:hover h3 { color: #fff; }
.guide-class { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.guide-class .art { flex: 1 1 300px; min-height: 200px; max-width: 100%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; letter-spacing: .1em; background-size: cover; background-position: center; }
.guide-class h3 { font-size: 28px; color: var(--cyan); letter-spacing: .04em; }
.guide-class p { color: var(--text-2); }
.guide-ability { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 14px; background: var(--bg-deep); border-left: 3px solid var(--cyan); font-size: 14px; color: var(--text-2); }
.guide-ability b { font-family: var(--head); font-weight: 600; letter-spacing: .08em; color: #fff; min-width: 90px; }
.guide-maps { margin-top: 4px; }
/* class portraits: 300 × 320 on black, fading to the page navy at the bottom */
.class-art { background-color: #000; background-repeat: no-repeat; background-position: center top, center; background-size: contain, cover; }
.class-art.assault { background-image: url("../img/classes/assault.jpg"), linear-gradient(#000, #09111c); }
.class-art.recon { background-image: url("../img/classes/recon.jpg"), linear-gradient(#000, #09111c); }
.class-art.support { background-image: url("../img/classes/support.jpg"), linear-gradient(#000, #09111c); }
.guide-class .art.class-art { flex: 0 1 300px; aspect-ratio: 300 / 320; min-height: 0; border-color: var(--line-soft); }
.card .art.class-art { height: 200px; background-size: cover; background-position: center 20%, center; }
/* the three full-body cutouts side by side, Recon in front */
.guide-intro .class-lineup { position: relative; min-height: 340px; overflow: hidden; display: block;
  background-image: radial-gradient(ellipse 60% 30% at 50% 100%, rgba(76,195,240,.22), transparent 70%), repeating-linear-gradient(135deg, rgba(76,195,240,.06) 0 2px, transparent 2px 14px); }
.class-lineup img { position: absolute; bottom: 8px; height: 92%; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.class-lineup .assault { left: 50%; transform: translateX(-118%); }
.class-lineup .support { left: 50%; transform: translateX(18%); }
.class-lineup .recon { left: 50%; transform: translateX(-50%); height: 84%; z-index: 1; }
@media (max-width: 480px) { .guide-intro .class-lineup { min-height: 260px; } }
.guide-maps .kicker { margin-right: 6px; }
.guide-next { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.conduct-index { flex: 0 1 240px; position: sticky; top: 16px; gap: 4px; background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; }
.conduct-index a { padding: 6px 0; color: var(--text-2); font-size: 14px; }
.conduct-index a:hover { color: #fff; }
.conduct section { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 16px; }
.conduct section h2 { margin: 14px 0 8px; }
.article ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
@media (max-width: 640px) { .guide-title { font-size: 40px; } .conduct-index { position: static; } }

.friend-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; color: #fff; font-size: 14px; }
.friend-row:hover { color: var(--cyan-hover); }

/* profile header */
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.player .who { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player h1 { font-size: 40px; }
.player .tag { font-family: var(--head); font-size: 24px; color: var(--muted-2); }
.level-badge { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.level-badge .lv { position: absolute; right: -4px; bottom: -4px; min-width: 40px; height: 40px; padding: 0 6px; background: var(--bg); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 16px; color: #fff; }
.match { background: var(--panel); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 16px; }
.match .what { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.match .nums { display: flex; gap: 18px; font-family: var(--head); font-size: 15px; color: var(--text-2); }
.result { min-width: 56px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 14px; letter-spacing: .1em; }
.result.won { background: rgba(70,210,122,.15); color: var(--green-text); }
.result.lost { background: rgba(200,48,47,.2); color: var(--red-text); }
.result.draw { background: var(--raised); color: var(--text-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label-text { font-family: var(--head); font-size: 13px; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }
.input, textarea.input, select.input { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-strong); color: #fff; font-family: var(--body); font-size: 15px; }
.input::placeholder { color: var(--faint); }
textarea.input { resize: vertical; line-height: 1.6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); }
.segmented { display: flex; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { min-height: 40px; padding: 0 14px; margin-right: -1px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-2); font-size: 13px; }
.segmented input:checked + span { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 700; }
.segmented input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.setting { padding: 14px 18px; border-top: 1px solid #21394c; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.setting .what { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.setting .what b { color: #fff; font-weight: 500; }
.setting .what small { color: var(--muted-2); font-size: 13px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--phoenix); background: var(--panel); color: var(--muted); font-size: 14px; }
.notice.ok { border-left-color: var(--green); color: var(--green-text); }
.notice.warn { border-left-color: var(--gold); color: var(--gold); }
.validation { color: var(--red-text); font-size: 13px; }
.article p { margin: 0 0 14px; color: var(--text-2); font-size: 16px; line-height: 1.7; }

/* footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.footer-cols { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 8px; }
.footer-cols h2 { font-size: 16px; font-weight: 500; letter-spacing: .08em; color: var(--cyan); margin-bottom: 4px; }
.footer-cols a { color: var(--text-2); font-size: 14px; }
.footer-base { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.runby { display: flex; align-items: center; gap: 12px; }
.runby small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted-2); }
.runby b { font-family: var(--head); font-weight: 400; font-size: 18px; letter-spacing: .04em; color: var(--phoenix); }
.disclaimer { max-width: 640px; color: var(--muted-2); font-size: 12px; }

/* staff CMS */
.cms { min-height: 100vh; display: flex; flex-direction: column; }
.cms-top { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cms-top .brand { gap: 12px; font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: .06em; }
.cms-badge { font-family: var(--head); font-size: 12px; letter-spacing: .14em; color: var(--bg); background: var(--phoenix); padding: 2px 8px; }
.cms-body { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; }
.cms-nav { flex: 0 0 220px; background: var(--bg-card-band); border-right: 1px solid var(--line-soft); padding: 18px 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--head); font-size: 15px; letter-spacing: .06em; }
.cms-nav a { padding: 10px 22px; border-left: 3px solid transparent; color: var(--muted); }
.cms-nav a:hover { background: var(--panel); color: #fff; }
.cms-nav a.on { border-left-color: var(--cyan); background: var(--panel); color: #fff; }
.cms-nav .tag { margin-left: 8px; padding: 0 6px; font-size: 11px; letter-spacing: .1em; color: var(--phoenix); border: 1px solid var(--phoenix); vertical-align: 1px; }
.cms-nav .tag.attention { background: var(--phoenix); color: var(--bg); }
.cms-top form { margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted-2); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.link-button:hover { color: #fff; }
.cms-nav .hint { margin: 18px 22px 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--body); font-size: 12px; letter-spacing: 0; color: var(--faint); }
.cms-main { flex: 1 1 700px; min-width: 0; padding: 26px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.split > .wide { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .narrow { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.red-text { color: var(--red-text); }
.green-text { color: var(--green-text); }

/* media: viewer, grid and tiles (public page, CMS library and the home page tile) */
.viewer { background: var(--panel); border: 1px solid var(--line); }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; max-height: 620px; width: 100%; display: flex; align-items: center; justify-content: center; background-color: var(--bg-deep); overflow: hidden; }
.viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer-stage.small { max-height: 220px; }
.viewer-stage .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.viewer-stage .play img { object-fit: cover; }
.play-button { position: relative; width: 88px; height: 88px; border-radius: 50%; background: rgba(7,15,22,.8); border: 2px solid var(--cyan); display: flex; align-items: center; justify-content: center; }
.play:hover .play-button { background: rgba(7,15,22,.95); transform: scale(1.05); }
.viewer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.viewer-title { font-family: var(--head); font-weight: 500; font-size: 20px; color: #fff; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-content: start; align-items: start; }
.media-grid.cms { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-tile { display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line); color: var(--text-2); }
.media-tile:hover { color: #fff; border-color: var(--line-strong); }
.media-tile[aria-current] { border-color: var(--cyan); }
.media-tile.dim { opacity: .55; }
.media-tile .art { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; letter-spacing: .1em; overflow: hidden; }
.media-tile .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile .cap { padding: 8px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.media-tile .cap small { font-size: 12px; color: var(--muted-2); }
.media-tile.home .cap { font-family: var(--head); font-size: 17px; color: #fff; padding: 10px 14px 12px; }
.media-tile.home .cap small { font-size: 12px; letter-spacing: .12em; color: var(--cyan); }
.badge-play { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(7,15,22,.85); display: flex; align-items: center; justify-content: center; }
.status-badge { position: absolute; top: 6px; left: 6px; padding: 1px 8px; font-family: var(--head); font-size: 11px; letter-spacing: .1em; }
.badge-pending { background: var(--phoenix); color: var(--bg); }
.badge-declined { background: var(--red); color: #fff; }
.badge-hidden { background: var(--raised); color: var(--text-2); }
.badge-home { background: var(--cyan); color: var(--bg); }
.tabs .count { margin-left: 8px; padding: 0 6px; font-size: 12px; color: var(--muted-2); }
.tabs .on .count { color: var(--bg); }
.tabs .count.attention { background: var(--phoenix); color: var(--bg); }
.submit-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; border: 2px dashed var(--line-strong); text-align: center; color: var(--text-2); cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--cyan); }
.dropzone input[type=file] { max-width: 100%; color: var(--text-2); }
.dropzone small { max-width: 560px; }
.segmented.multi { gap: 6px; }
.segmented.multi span { margin-right: 0; }
.segmented input:disabled + span { opacity: .45; cursor: not-allowed; }

/* CMS news editor and post bodies */
.editor { display: flex; flex-direction: column; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--bg-deep); border: 1px solid var(--line-strong); border-bottom: 0; }
.editor-toolbar[hidden] { display: none; }
.editor-toolbar .tb { min-height: 34px; min-width: 38px; padding: 0 10px; background: transparent; border: 1px solid transparent; color: var(--text-2); font-family: var(--head); font-size: 13px; letter-spacing: .04em; cursor: pointer; }
.editor-toolbar .tb:hover { background: var(--panel); border-color: var(--line-strong); color: #fff; }
.editor-toolbar .tb:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.editor textarea { font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.6; }
.cover-picker summary { cursor: pointer; color: var(--cyan); font-size: 14px; padding: 4px 0; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.cover-grid button { display: flex; flex-direction: column; gap: 4px; padding: 0 0 6px; background: var(--panel); border: 2px solid var(--line); color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; }
.cover-grid button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.cover-grid button span { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-grid button:hover, .cover-grid button[aria-pressed="true"] { border-color: var(--cyan); color: #fff; }
[data-schedule-field][hidden] { display: none; }
.article h2 { font-size: 24px; margin: 22px 0 10px; }
.article strong { color: #fff; }
.article figure { margin: 0 0 16px; }
.article figure img { width: 100%; display: block; border: 1px solid var(--line); }
.article figcaption { color: var(--muted); font-size: 13px; padding-top: 6px; }
.article .post-video { margin: 0 0 16px; border: 1px solid var(--line); }
.article .table-wrap { margin: 0 0 16px; }
.patch-table td:not(:first-child), .patch-table th:not(:first-child) { text-align: right; }

@media (max-width: 640px) {
  .wordmark .top { font-size: 34px; }
  .mainnav a { padding: 10px 14px; }
  .player h1 { font-size: 30px; }
  .cms-nav { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .cms-nav .hint { display: none; }
  .cms-main { padding: 18px 16px 40px; }
}
