:root {
  color-scheme: dark;
  --bg: #03070d;
  --text: #f3f6fb;
  --muted: #93a2b8;
  --muted-dark: #66758b;
  --line: rgba(151, 170, 198, 0.17);
  --blue: #3d7dff;
  --blue-light: #6ea3ff;
  --cyan: #38d9b0;
  --surface: #08101b;
  --page: min(1160px, calc(100% - 40px));
  --ease: cubic-bezier(.22, .8, .18, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #02050a; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(45, 105, 220, .16), transparent 30%),
    #02050a;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.page-width { width: var(--page); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; border-radius: 9px; color: #06101e; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; padding-top: 14px; }
.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(170, 198, 240, .14);
  border-radius: 18px;
  background: rgba(5, 10, 18, .52);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .35s var(--ease);
}
.site-header.scrolled .nav-shell {
  background: rgba(5, 10, 18, .88);
  border-color: rgba(170, 198, 240, .22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 780; letter-spacing: -.02em; }
.brand-badge { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; margin-left: 18px; }
.nav-links, .nav-actions { display: flex; align-items: center; }
.nav-links { gap: 4px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #a7b8d1;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(78, 145, 249, .16); }
.nav-actions { gap: 7px; }
.cash-balance {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 8px;
  border: 1px solid rgba(126, 172, 255, .28);
  border-radius: 11px;
  color: #f3f8ff;
  background: linear-gradient(145deg, rgba(8, 22, 44, .9), rgba(4, 13, 28, .72));
  font-size: 12px;
  font-weight: 800;
}
.cash-balance svg { width: 17px; height: 17px; fill: rgba(108, 164, 255, .2); stroke: #9bc4ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 740;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nav-button:hover { transform: translateY(-1px); }
.nav-button-ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.nav-button-primary { border-color: transparent; background: linear-gradient(135deg, var(--blue-light), #377ce5); }
[data-discord-login][hidden] { display: none; }
.discord-account { position: relative; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 3px 5px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 20, 32, .82); }
.discord-account[hidden] { display: none; }
.discord-profile { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.discord-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; background: #101a29; }
.discord-profile-copy { min-width: 0; display: grid; gap: 1px; }
.discord-name { max-width: 110px; overflow: hidden; color: #e9eef7; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.discord-rank { max-width: 110px; overflow: hidden; color: #91b9f5; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.discord-logout { min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; color: #aebbd0; background: rgba(255,255,255,.055); font: inherit; font-size: 10px; font-weight: 720; cursor: pointer; }
.discord-logout:hover { color: white; background: rgba(255,255,255,.1); }
.discord-profile-menu { position: absolute; z-index: 3; top: calc(100% + 9px); right: 0; min-width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,13,22,.98); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
.discord-profile-menu[hidden] { display: none; }
.discord-profile-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: #c8faec; font-size: 12px; font-weight: 750; }
.discord-profile-menu a:hover { background: rgba(56,217,176,.1); }
.discord-profile-menu-rank { display: block; padding: 4px 3px 10px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.menu-button { display: none; width: 42px; height: 42px; margin-left: auto; padding: 11px; border: 0; border-radius: 50%; background: #111b29; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 3px; background: white; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(120px, 16vh, 160px) 0 120px;
  background:
    radial-gradient(circle at 78% 42%, rgba(48, 110, 230, .22), transparent 34%),
    #02050a;
}
.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-kicker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(242,246,252,.82);
  background: rgba(5, 8, 13, .5);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-kicker strong { color: #fff; }
.hero-kicker i { width: 1px; height: 12px; background: rgba(255,255,255,.24); }
.hero-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(56,217,176,.7); animation: statusPulse 2.4s ease-in-out infinite; }
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 7.4vw, 88px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: .9;
}
.hero-lead {
  max-width: 480px;
  margin: 22px 0 0;
  color: rgba(210, 222, 240, .88);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 450;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual {
  position: relative;
  min-height: min(52vh, 480px);
}
.hero-glow {
  position: absolute;
  inset: 8% 4% 4% 8%;
  background: radial-gradient(circle at 50% 50%, rgba(61, 125, 255, .45), transparent 68%);
  filter: blur(28px);
  animation: glowBreathe 5.5s ease-in-out infinite;
}
.hero-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 184, 240, .2);
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  background: #07101c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: frameFloat 9s ease-in-out infinite alternate;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 320px);
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 10, .55) 42%, #02050a 100%);
  pointer-events: none;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #5b92ff, #2f6ef0);
  border-color: rgba(150, 190, 255, .35);
  box-shadow: 0 0 0 1px rgba(80, 140, 255, .2), 0 12px 34px rgba(45, 110, 240, .38), inset 0 1px 0 rgba(255,255,255,.22);
}
.button-primary:hover {
  box-shadow: 0 0 0 1px rgba(120, 170, 255, .35), 0 16px 40px rgba(45, 110, 240, .5), inset 0 1px 0 rgba(255,255,255,.28);
}
.button-secondary {
  border-color: rgba(130, 170, 230, .35);
  background: rgba(8, 14, 24, .72);
  box-shadow: inset 0 0 22px rgba(61, 125, 255, .08);
  backdrop-filter: blur(10px);
}
.button-secondary:hover { border-color: rgba(160, 195, 255, .5); background: rgba(255,255,255,.05); }

.trust-band {
  position: relative;
  margin-top: -48px;
  padding: 10px 0 48px;
  z-index: 1;
}
.trust-band-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.trust-fade {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -.045em;
  mask-image: linear-gradient(180deg, #000 28%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000 28%, transparent 96%);
}
.live-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)); gap: 10px; }
.live-metrics div {
  min-height: 84px;
  display: grid;
  place-content: center;
  padding: 14px 10px;
  border: 1px solid rgba(113, 158, 224, .14);
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(160deg, rgba(12, 24, 44, .55), rgba(6, 12, 22, .72));
}
.live-metrics strong { display: block; color: #9ec4ff; font-size: 26px; letter-spacing: -.04em; }
.live-metrics span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.trust-band-inner > p { margin: 0; color: var(--muted-dark); font-size: 11px; }

.section { padding: 78px 0; }
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-grid, .path-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.story-media, .path-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(113, 158, 224, .14);
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: #07101c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.story-media img, .path-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2, .path-copy h2, .internet-cta h2, .join-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: .98;
}
.story-copy > p, .path-copy > p, .internet-cta p, .join-panel > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
}
.story-stats div { padding-top: 14px; border-top: 1px solid var(--line); }
.story-stats dt { font-size: 24px; font-weight: 780; letter-spacing: -.04em; }
.story-stats dd { margin: 4px 0 0; color: var(--muted-dark); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.path-copy ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding: 0;
  color: #aab8ca;
  font-size: 14px;
  list-style: none;
}
.path-copy li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 2px;
}
/* End responsive homepage styles. */
.internet-cta { padding-top: 20px; padding-bottom: 20px; }
.internet-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(113, 158, 224, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 30, 58, .92), rgba(5, 11, 20, .94));
}

.join { padding-bottom: 56px; }
.join-panel {
  display: grid;
  justify-items: center;
  padding: 52px 28px;
  border: 1px solid rgba(113, 158, 224, .16);
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(69,133,241,.16), transparent 42%), linear-gradient(150deg, #0b1727, #050a12 72%);
}
.join-logo { width: 52px; height: 52px; margin-bottom: 16px; object-fit: contain; }
.join-panel .hero-actions { justify-content: center; }

.site-footer { padding: 8px 0 36px; }
.footer-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(113, 158, 224, .14);
}
.footer-row p { margin: 0; color: var(--muted-dark); font-size: 11px; }
.footer-row p:last-child { text-align: right; }
.footer-row a:hover { color: var(--blue-light); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes glowBreathe {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes frameFloat {
  from { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  to { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-10px); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(56,217,176,.55); }
  50% { box-shadow: 0 0 18px rgba(56,217,176,.95); }
}

html.leaving-for-internet body {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), filter .28s var(--ease);
}

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; }
  .hero-frame { transform: none; animation: none; }
  .story-grid, .path-grid { grid-template-columns: 1fr; gap: 28px; }
  .internet-cta-inner { flex-direction: column; align-items: flex-start; }
  .live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 420px); }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 28px, 1120px); }
  .site-header { padding-top: 8px; }
  .nav-shell { width: min(100% - 20px, 1080px); }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 10px;
    right: 10px;
    display: none;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(5,10,18,.98);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
  }
  .site-nav.open { display: block; }
  .nav-links, .nav-actions { align-items: stretch; flex-direction: column; gap: 3px; }
  .nav-actions { margin-top: 8px; }
  .nav-button, .cash-balance, .discord-account { width: 100%; }
  .hero { padding: 110px 0 70px; }
  .hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-actions .button { flex: 1; min-width: 140px; }
  .section { padding: 56px 0; }
  .join-panel { padding: 42px 22px; }
  .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .footer-row p:last-child { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Owner panel */
.owner-page { min-height: 100vh; background: radial-gradient(circle at 80% 0%, rgba(35,94,177,.18), transparent 34%), #03070d; }
.owner-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 80px; }
.owner-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.owner-back { color: var(--muted); font-size: 12px; }
.owner-hero { max-width: 720px; padding: 90px 0 56px; }
.owner-hero h1 { margin: 0; font-size: clamp(54px, 9vw, 96px); line-height: .92; letter-spacing: -.075em; }
.owner-hero > p:last-child { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.owner-notice { padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: rgba(10,17,28,.8); }
.owner-notice[hidden], .owner-form[hidden] { display: none; }
.owner-notice a { color: var(--blue-light); text-decoration: underline; }
.owner-form { display: grid; gap: 14px; }
.owner-card { display: grid; grid-template-columns: minmax(260px, 1.15fr) repeat(2, minmax(210px, .85fr)); gap: 28px; align-items: start; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(13,23,36,.92), rgba(7,13,22,.88)); }
.owner-card > div:first-child { grid-row: 1 / span 3; }
.owner-card h2 { margin: 5px 0 9px; font-size: 22px; letter-spacing: -.035em; }
.owner-card p:not(.owner-step) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.owner-step { margin: 0; color: var(--blue-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.owner-card label { position: relative; display: grid; gap: 8px; color: #c4d0df; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.owner-card select, .owner-card input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid rgba(151,170,198,.2); border-radius: 11px; outline: none; color: var(--text); background: #080f19; font: inherit; font-size: 12px; }
.owner-card select:focus, .owner-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,145,249,.12); }
.owner-card option { background: #080f19; }
.field-hint { position: absolute; right: 13px; bottom: 15px; color: var(--muted-dark); font-size: 10px; pointer-events: none; }
.owner-card-small { grid-template-columns: minmax(260px, 1.15fr) minmax(210px, .85fr) minmax(210px, .85fr); }
.owner-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 10px; padding: 15px 16px 15px 22px; border: 1px solid rgba(116,166,255,.22); border-radius: 16px; background: rgba(6,12,20,.94); box-shadow: 0 18px 55px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.owner-savebar p { margin: 0; color: var(--muted); font-size: 11px; }
.owner-savebar .button { border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, #68a6ff, #357dec); }
.owner-savebar .button:disabled { opacity: .55; cursor: wait; }
.owner-heading .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 780; }
.owner-heading .brand-badge { width: 31px; height: 31px; display: grid; place-items: center; }
.owner-heading .brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.owner-hero .kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--blue-light); font-size: 10px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.owner-hero .kicker span { width: 25px; height: 1px; background: currentColor; }
@media (max-width: 900px) {
  .owner-card, .owner-card-small { grid-template-columns: 1fr 1fr; }
  .owner-card > div:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .owner-shell { width: min(100% - 24px, 1080px); padding-top: 14px; }
  .owner-hero { padding: 64px 4px 40px; }
  .owner-card, .owner-card-small { grid-template-columns: 1fr; padding: 22px; }
  .owner-card > div:first-child { grid-column: auto; }
  .owner-savebar { align-items: stretch; flex-direction: column; }
  .owner-savebar .button { width: 100%; }
}

/* Staff-published site update banner */
.site-update-banner {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  right: 0;
  color: #f5f7fb;
  background: linear-gradient(90deg, #2f6ef0, #3d7dff 45%, #2f6ef0);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 28px rgba(20, 60, 160, .28);
}
.site-update-banner[hidden] { display: none !important; }
.site-update-banner-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: min(1100px, calc(100% - 28px));
  min-height: 38px;
  margin: 0 auto;
  padding: 8px 40px;
  text-align: center;
}
.site-update-banner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: min(720px, 100%);
}
.site-update-banner-bar p {
  margin: 0;
  color: #f3f6fb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.site-update-banner-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #eef4ff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.site-update-banner-bar a:hover { color: #fff; }
.site-update-banner-dismiss {
  position: absolute;
  top: 50%;
  right: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #e7eefc;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.site-update-banner-dismiss:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-update-banner-details {
  color: rgba(243, 246, 251, .82);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  white-space: pre-wrap;
}
.site-update-banner-details[hidden] { display: none !important; }
body.has-site-banner { padding-top: var(--site-banner-height, 40px); }
body.has-site-banner .site-header,
body.has-site-banner .stage-chrome { top: var(--site-banner-height, 40px); }

/* ==========================================================================
   Single-stage homepage — one locked viewport
   ========================================================================== */
html:has(body.home-stage),
body.home-stage {
  height: 100%;
  overflow: hidden;
}
body.home-stage {
  margin: 0;
  background: #02050a;
  overscroll-behavior: none;
}

.stage-chrome {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.stage-chrome > *,
.stage-chrome-actions {
  pointer-events: auto;
}
.stage-chrome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage-link {
  color: rgba(232, 240, 255, .78);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
  transition: color .2s ease;
}
.stage-link:hover { color: #fff; }
.stage-link-strong {
  padding: 8px 12px;
  border: 1px solid rgba(170, 198, 240, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 12, 22, .45);
  backdrop-filter: blur(10px);
}
.stage-chrome .discord-account {
  background: rgba(8, 14, 24, .72);
  backdrop-filter: blur(12px);
}
.stage-chrome .discord-profile-menu {
  right: 0;
  left: auto;
  bottom: auto;
  top: calc(100% + 8px);
}

.stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding:
    calc(72px + env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    calc(28px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
}
.stage-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  animation: stageDrift 28s ease-in-out infinite alternate;
}
.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(2, 8, 18, .18), rgba(2, 5, 10, .72) 68%, rgba(1, 3, 8, .92) 100%),
    linear-gradient(180deg, rgba(2, 5, 10, .55) 0%, transparent 28%, transparent 58%, rgba(2, 5, 10, .78) 100%);
  pointer-events: none;
}

.stage-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0;
  width: min(100%, 720px);
  text-align: center;
  animation: stageRise .9s var(--ease) both;
}
.stage-logo {
  width: clamp(72px, 14vw, 108px);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
  animation: stageLogoIn 1s var(--ease) both;
}
.stage-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 9vw, 84px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: .92;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.stage-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 22px 0 0;
  padding: 10px 16px;
  color: rgba(236, 243, 255, .9);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: stageRise .9s var(--ease) .12s both;
}
.stage-stats strong {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stage-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3be0a8;
  box-shadow: 0 0 0 0 rgba(59, 224, 168, .55);
  animation: stagePulse 2.2s ease-out infinite;
}
.stage-stats-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .28);
}
.stage-status {
  margin: 8px 0 0;
  color: rgba(186, 202, 224, .72);
  font-size: 12px;
  font-weight: 500;
  animation: stageRise .9s var(--ease) .18s both;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  animation: stageRise .9s var(--ease) .24s both;
}
.stage-actions .button {
  min-width: 148px;
  backdrop-filter: blur(8px);
}

@keyframes stageDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes stageRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stageLogoIn {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stagePulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 224, 168, .5); }
  70% { box-shadow: 0 0 0 12px rgba(59, 224, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 224, 168, 0); }
}

@media (max-width: 640px) {
  .stage-content h1 { font-size: clamp(40px, 12vw, 56px); }
  .stage-stats {
    gap: 8px 12px;
    padding: 0;
    font-size: 12px;
  }
  .stage-stats-sep { display: none; }
  .stage-actions { width: 100%; }
  .stage-actions .button { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .stage-chrome .discord-name,
  .stage-chrome .discord-rank { max-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-photo img,
  .stage-content,
  .stage-logo,
  .stage-stats,
  .stage-status,
  .stage-actions,
  .stage-live {
    animation: none !important;
  }
  .stage-photo img { transform: scale(1.04); }
}
/* End responsive homepage styles. */
/* PCSO public homepage */
.pcso-home { --pcso-navy:#092d55; --pcso-blue:#0d477f; --pcso-red:#c62835; --pcso-ink:#142434; color:#1d2b38; background:#f4f5f6; font-family:Arial,Helvetica,sans-serif; }
.pcso-home a { text-decoration:none; }.pcso-wrap{width:min(1180px,calc(100% - 40px));margin:auto}.pcso-alert{background:var(--pcso-red);color:#fff;padding:11px 0;font-size:13px}.pcso-alert-inner{display:flex;align-items:center;justify-content:center;position:relative;padding:0 42px}.pcso-alert-close{position:absolute;right:0;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#fff;font-size:23px;line-height:1;padding:2px 7px;cursor:pointer}.pcso-alert-close:hover{background:rgba(0,0,0,.16);border-radius:3px}.pcso-header{background:#fff;border-bottom:1px solid #dfe3e7;position:sticky;top:0;z-index:20}.pcso-nav{min-height:86px;display:flex;align-items:center;justify-content:space-between}.pcso-brand{display:flex;align-items:center;gap:12px;color:var(--pcso-navy)}.pcso-brand img{width:55px;height:55px;object-fit:contain}.pcso-brand span{display:flex;flex-direction:column;line-height:1.05}.pcso-brand b{font-size:11px;letter-spacing:.14em;font-weight:700}.pcso-brand strong{font-size:18px;letter-spacing:.04em}.pcso-links{display:flex;align-items:center;gap:28px;color:#344858;font-size:14px;font-weight:700}.pcso-links a:hover,.pcso-text-link{color:var(--pcso-red)}.pcso-button{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:2px;font-weight:700;letter-spacing:.01em}.pcso-button-red{background:var(--pcso-red);color:#fff!important}.pcso-button-red:hover{background:#a91f2b}.pcso-button-light{border:1px solid rgba(255,255,255,.7);color:#fff}.pcso-menu{display:none;background:none;border:1px solid #ccd4dc;padding:10px 14px;font-weight:700}.pcso-hero{min-height:590px;display:flex;align-items:center;position:relative;background:url('assets/pcso-home-hero.png') center 42%/cover no-repeat;color:#fff}.pcso-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,21,41,.9),rgba(3,21,41,.52) 52%,rgba(3,21,41,.2))}.pcso-hero-content{position:relative;padding:86px 0}.pcso-eyebrow{margin:0 0 14px;text-transform:uppercase;letter-spacing:.16em;color:var(--pcso-red);font-size:12px;font-weight:800}.pcso-hero .pcso-eyebrow{color:#f5b5b9}.pcso-hero h1{font-family:Georgia,serif;font-size:clamp(44px,6vw,78px);line-height:1.02;font-weight:500;margin:0 0 24px}.pcso-hero h1 em{font-style:normal;color:#f4c0c4}.pcso-hero-copy{max-width:530px;line-height:1.7;font-size:17px;color:#e8edf2;margin-bottom:32px}.pcso-hero-actions{display:flex;gap:12px;flex-wrap:wrap}.pcso-section{padding:90px 0}.pcso-services{background:#fff}.pcso-section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:35px}.pcso-section-heading h2,.pcso-about h2{font-family:Georgia,serif;color:var(--pcso-navy);font-size:42px;font-weight:500;margin:0}.pcso-section-heading>p{max-width:380px;color:#647382;line-height:1.6;margin:0}.pcso-service-grid,.pcso-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pcso-card{padding:30px;border:1px solid #dce2e7;border-top:4px solid var(--pcso-red);color:var(--pcso-ink);transition:transform .2s,box-shadow .2s}.pcso-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(13,43,70,.12)}.pcso-icon{display:grid;place-items:center;width:40px;height:40px;background:#edf3f8;color:var(--pcso-blue);font-size:22px}.pcso-card h3{font-size:22px;margin:22px 0 10px;color:var(--pcso-navy)}.pcso-card p,.pcso-news-body p{color:#657584;line-height:1.6}.pcso-arrow,.pcso-text-link{color:var(--pcso-red);font-weight:800;font-size:14px}.pcso-news{background:#eef1f3}.pcso-news-grid article{background:#fff}.pcso-news-image{height:175px;background-size:cover;background-position:center}.pcso-news-image-one{background-image:url('assets/pcso-mass-shift-banner.png')}.pcso-news-image-two{background-image:url('assets/pcso-promotions.png')}.pcso-news-image-three{background-image:url('assets/pcso-application-banner.png')}.pcso-news-body{padding:24px}.pcso-news-body h3{color:var(--pcso-navy);font:500 24px Georgia,serif;margin:8px 0}.pcso-date{color:var(--pcso-red)!important;text-transform:uppercase;font-size:11px!important;letter-spacing:.12em;font-weight:800}.pcso-about{background:var(--pcso-navy);color:#e4edf6;padding:80px 0}.pcso-about h2{color:#fff}.pcso-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}.pcso-about p{font-size:17px;line-height:1.75;margin-top:0}.pcso-footer{background:#061d35;color:#dbe7f2;padding:34px 0}.pcso-footer-grid{display:flex;align-items:center;justify-content:space-between;gap:25px}.pcso-footer .pcso-brand{color:#fff}.pcso-footer p{line-height:1.7;margin:0;text-align:center}.pcso-footer a:last-child{color:#f2b2b7;font-weight:700}.pcso-footer small{color:#8da2b7}.pcso-home .skip-link{color:#111}.pcso-home .js .pcso-menu{display:none}
@media(max-width:760px){.pcso-wrap{width:min(100% - 28px,580px)}.pcso-nav{min-height:72px}.pcso-brand img{width:44px;height:44px}.pcso-brand strong{font-size:14px}.pcso-menu{display:block!important}.pcso-links{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:18px 20px;flex-direction:column;align-items:stretch;gap:14px;box-shadow:0 12px 20px rgba(0,0,0,.12)}.pcso-links.open{display:flex}.pcso-links .pcso-button{text-align:center}.pcso-hero{min-height:560px}.pcso-hero h1{font-size:48px}.pcso-section{padding:60px 0}.pcso-section-heading{display:block}.pcso-section-heading>p{margin-top:14px}.pcso-service-grid,.pcso-news-grid,.pcso-about-grid{grid-template-columns:1fr}.pcso-about-grid{gap:20px}.pcso-footer-grid{flex-direction:column;text-align:center}.pcso-footer .pcso-brand{justify-content:center}}

/* Dark embed inspired homepage theme */

/* PCSO homepage quick-links bar (below hero) — matches dark gray/black site theme */
.pcso-quick-links {
  background: #0d0e10;
  border-top: 3px solid #676b74;
  border-bottom: 3px solid #676b74;
  padding: 28px 0 22px;
}
.pcso-quick-links-inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
  justify-items: center;
}
.pcso-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 140px;
  text-align: center;
  color: #f1f2f4 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 4px;
}
.pcso-quick-link img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}
.pcso-quick-link:hover {
  color: #fff !important;
}
.pcso-quick-link:hover img {
  transform: translateY(-2px);
  transition: transform .15s ease;
  filter: brightness(1.12);
}

/* Shared PCSO subpage shell */
.pcso-page-main { padding: 48px 0 72px; background: #f4f5f6; min-height: 55vh; }
.pcso-page-main h1 {
  font-family: Georgia, serif;
  color: var(--pcso-navy, #092d55);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  margin: 0 0 12px;
}
.pcso-page-lead { color: #647382; line-height: 1.65; max-width: 720px; margin: 0 0 28px; }
.pcso-page-card {
  background: #fff;
  border: 1px solid #dce2e7;
  border-top: 4px solid var(--pcso-red, #c62835);
  padding: 24px;
}
.pcso-page-card h2 { margin: 0 0 10px; color: var(--pcso-navy, #092d55); font-size: 22px; }
.pcso-page-card p, .pcso-page-card li { color: #657584; line-height: 1.65; }
.pcso-call-list { display: grid; gap: 12px; margin-top: 8px; }
.pcso-call-item {
  border: 1px solid #dce2e7;
  background: #fafbfc;
  padding: 14px 16px;
}
.pcso-call-item strong { display: block; color: #092d55; margin-bottom: 4px; }
.pcso-call-meta { color: #657584; font-size: 14px; line-height: 1.5; }
.pcso-call-empty, .pcso-call-status { color: #657584; margin: 0; }
.pcso-call-units { margin-top: 6px; color: #147f4a; font-size: 13px; font-weight: 700; }

@media (max-width: 980px) {
  .pcso-quick-links-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pcso-quick-links-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcso-quick-link img { width: 64px; height: 64px; }
}

.pcso-home { --pcso-navy:#111214; --pcso-blue:#b9c0ca; --pcso-red:#b93442; --pcso-ink:#f0f1f3; color:#e8e9eb; background:#090a0c; }
.pcso-alert { background:#17181b; border-bottom:1px solid #303238; color:#f0f1f3; }
.pcso-alert strong { color:#ef6875; }
.pcso-header { background:#0d0e10; border-bottom:1px solid #2a2c31; }
.pcso-brand { color:#f1f2f4; }.pcso-links { color:#b9bcc3; }.pcso-links a:hover,.pcso-text-link { color:#fff; }
.pcso-button-red { background:#34363b; border:1px solid #555961; }.pcso-button-red:hover { background:#45484f; }
.pcso-button-light { border-color:#6b6f77; color:#e8e9eb; }
.pcso-hero { background-color:#111214; }.pcso-hero-shade { background:linear-gradient(90deg,rgba(5,6,8,.94),rgba(8,9,11,.72) 55%,rgba(8,9,11,.42)); }
.pcso-hero .pcso-eyebrow,.pcso-eyebrow { color:#aeb2ba; }.pcso-hero h1 em { color:#bfc3ca; }
.pcso-services { background:#0b0c0e; }.pcso-section-heading h2,.pcso-about h2 { color:#f2f3f4; }
.pcso-section-heading>p { color:#92969f; }.pcso-card { background:#121316; border-color:#2c2e34; border-top-color:#676b74; color:#e8e9eb; }.pcso-card:hover { box-shadow:0 12px 30px rgba(0,0,0,.35); }.pcso-icon { background:#202227; color:#d4d7dc; }.pcso-card h3 { color:#f1f2f4; }.pcso-card p,.pcso-news-body p { color:#a4a8b0; }.pcso-arrow { color:#d9dbe0; }
.pcso-news { background:#101114; }.pcso-news-grid article { background:#17181b; }.pcso-news-body h3 { color:#f1f2f4; }.pcso-date { color:#aeb2ba!important; }
.pcso-about { background:#08090b; color:#c5c8ce; border-top:1px solid #27292e; }.pcso-footer { background:#050607; color:#b7bbc2; border-top:1px solid #27292e; }.pcso-footer .pcso-brand { color:#f1f2f4; }.pcso-footer a:last-child { color:#d1d4d9; }
@media(max-width:760px){.pcso-links{background:#0d0e10;box-shadow:0 12px 20px rgba(0,0,0,.45)}.pcso-menu{background:#17181b;color:#e8e9eb;border-color:#44474e}}

/* PCSO News & Events block — news carousel left, events right (gray/black brand) */
.pcso-news {
  padding: 0 0 72px !important;
  background: #0e0f11;
}
.pcso-news-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: #1a1b1e;
  border-top: 1px solid #2c2e34;
  border-bottom: 1px solid #2c2e34;
  color: #f1f2f4;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}
.pcso-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 320px);
  gap: 0;
  align-items: stretch;
}
.pcso-news-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 28px 8px 0;
}
.pcso-news-carousel-mount { min-height: 220px; }
.pcso-news-empty,
.pcso-events-empty {
  margin: 24px 0;
  color: #92969f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pcso-news-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
}
.pcso-news-nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8b9099;
  font-size: 34px;
  line-height: 1;
  padding: 8px 0;
  cursor: pointer;
}
.pcso-news-nav:hover { color: #f1f2f4; }
.pcso-news-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pcso-news-card {
  flex: 0 0 min(240px, 78%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #15161a;
  border: 1px solid #4a4e56;
  min-height: 280px;
}
.pcso-news-card-image {
  height: 118px;
  background: #202227 center / cover no-repeat;
  border-bottom: 1px solid #2c2e34;
}
.pcso-news-card-image-fallback {
  background:
    linear-gradient(135deg, #2a2c31 0%, #17181b 55%, #101114 100%);
}
.pcso-news-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 42px;
}
.pcso-news-card-body h3 {
  margin: 0 0 8px;
  color: #f1f2f4;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.pcso-news-card-body p {
  margin: 0;
  color: #a4a8b0;
  font-size: 13px;
  line-height: 1.45;
}
.pcso-news-card-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #34363b;
  border: 1px solid #555961;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}
.pcso-news-card-more:hover { background: #45484f; }
.pcso-news-all,
.pcso-upcoming-all {
  display: inline-block;
  align-self: flex-start;
  margin-top: 18px;
  color: #cfd2d7 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.pcso-news-all:hover,
.pcso-upcoming-all:hover { color: #fff !important; }
.pcso-upcoming {
  padding: 8px 0 8px 28px;
  border-left: 1px solid #4a4e56;
}
.pcso-upcoming-title {
  margin: 0 0 14px;
  color: #f1f2f4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pcso-upcoming-list { display: grid; gap: 0; }
.pcso-upcoming-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #3a3d44;
}
.pcso-upcoming-item:not(.pcso-upcoming-item-has-image) {
  grid-template-columns: 1fr;
}
.pcso-upcoming-item:last-child { border-bottom: 0; }
.pcso-upcoming-image {
  width: 72px;
  height: 72px;
  background: #1a1c20 center / cover no-repeat;
  border: 1px solid #2c2e34;
}
.pcso-upcoming-copy { min-width: 0; }
.pcso-upcoming-item h3 {
  margin: 0 0 6px;
  color: #f1f2f4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
}
.pcso-upcoming-when {
  margin: 0 0 4px;
  color: #e0e2e6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.pcso-upcoming-where {
  margin: 0;
  color: #aeb2ba;
  font-size: 13px;
  line-height: 1.45;
}
.pcso-upcoming-all { align-self: flex-end; margin-left: auto; }

.pcso-events-page,
.pcso-news-page {
  background: #0b0c0e !important;
  color: #e8e9eb;
}
.pcso-events-page .pcso-page-lead,
.pcso-news-page .pcso-page-lead {
  color: #a4a8b0 !important;
  max-width: 760px;
}
.pcso-events-title,
.pcso-news-page-title {
  margin: 0 0 14px !important;
  color: #f1f2f4 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(36px, 5vw, 52px) !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pcso-events-search,
.pcso-news-search {
  position: relative;
  display: block;
  margin: 28px 0 8px;
}
.pcso-events-search-icon,
.pcso-news-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b9099;
  font-size: 16px;
  pointer-events: none;
}
.pcso-events-search input,
.pcso-news-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #3a3d44;
  border-radius: 2px;
  background: #121316;
  color: #f1f2f4;
  font: inherit;
  font-size: 15px;
}
.pcso-events-search input::placeholder,
.pcso-news-search input::placeholder { color: #7d828b; }
.pcso-events-search input:focus,
.pcso-news-search input:focus {
  outline: none;
  border-color: #676b74;
  box-shadow: 0 0 0 3px rgba(103, 107, 116, .25);
}
.pcso-events-directory,
.pcso-news-directory {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.pcso-events-row,
.pcso-news-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid #2c2e34;
}
.pcso-events-row:not(.pcso-events-row-has-image),
.pcso-news-row:not(.pcso-news-row-has-image) {
  grid-template-columns: 1fr;
}
.pcso-events-row-image,
.pcso-news-row-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1a1c20 center / cover no-repeat;
  border: 1px solid #2c2e34;
}
.pcso-events-row-body,
.pcso-news-row-body { min-width: 0; }
.pcso-events-row:first-child,
.pcso-news-row:first-child { border-top: 1px solid #2c2e34; }
.pcso-events-row h2,
.pcso-news-row h2 {
  margin: 0 0 8px;
  color: #f1f2f4;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.25;
}
.pcso-events-when,
.pcso-news-row-date {
  margin: 0 0 6px;
  color: #e0e2e6;
  font-size: 15px;
  font-weight: 700;
}
.pcso-events-where {
  margin: 0;
  color: #aeb2ba;
  font-size: 15px;
  line-height: 1.45;
}
.pcso-events-desc,
.pcso-news-row-summary {
  margin: 10px 0 0;
  color: #92969f;
  font-size: 14px;
  line-height: 1.55;
  max-width: 760px;
}
.pcso-events-page .pcso-text-link,
.pcso-news-page .pcso-text-link { color: #cfd2d7; }
.pcso-events-page .pcso-text-link:hover,
.pcso-news-page .pcso-text-link:hover { color: #fff; }

/* Admin content manager */
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.admin-content-card {
  background: #121316;
  border: 1px solid #2c2e34;
  padding: 20px;
}
.admin-content-card h2 {
  margin: 0 0 14px;
  color: #f1f2f4;
  font-size: 18px;
}
.admin-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-form label {
  display: grid;
  gap: 6px;
  color: #c4c7ce;
  font-size: 13px;
  font-weight: 700;
}
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3a3d44;
  border-radius: 2px;
  background: #0d0e10;
  color: #e8e9eb;
  font: inherit;
}
.admin-form textarea { min-height: 88px; resize: vertical; }
.admin-form button,
.admin-item-delete {
  appearance: none;
  border: 1px solid #555961;
  background: #34363b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
}
.admin-form button:hover,
.admin-item-delete:hover { background: #45484f; }
.admin-item-list {
  display: grid;
  gap: 10px;
}
.admin-item {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #2c2e34;
}
.admin-item-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #1a1c20 center / cover no-repeat;
  border: 1px solid #2c2e34;
}
.admin-form input[type="file"] {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #c4c7ce;
}
.admin-item > div:not(.admin-item-thumb) {
  flex: 1;
  min-width: 0;
}
.admin-item strong {
  display: block;
  color: #f1f2f4;
  margin-bottom: 4px;
}
.admin-item span {
  color: #92969f;
  font-size: 13px;
  line-height: 1.4;
}
.admin-item-delete { padding: 8px 10px; flex-shrink: 0; }
.admin-status {
  margin: 0 0 12px;
  color: #aeb2ba;
  font-size: 14px;
}

@media (max-width: 980px) {
  .pcso-news-layout { grid-template-columns: 1fr; }
  .pcso-news-panel { padding: 0 0 24px; }
  .pcso-upcoming {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #4a4e56;
  }
  .admin-content-grid { grid-template-columns: 1fr; }
  .pcso-events-row,
  .pcso-news-row {
    grid-template-columns: 1fr;
  }
}



/* Admin panel — radio talk logs */
.admin-status { margin: 0 0 14px; color: #aeb2ba; font-size: 14px; }
.admin-content-grid { display: grid; gap: 22px; margin-top: 18px; }
.admin-content-card {
  background: #121316;
  border: 1px solid #2c2e34;
  padding: 20px;
}
.admin-content-card h2 {
  margin: 0;
  color: #f1f2f4;
  font-size: 18px;
}
.admin-radio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-refresh {
  appearance: none;
  border: 1px solid #555961;
  background: #34363b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}
.admin-refresh:hover { background: #45484f; }
.admin-table-wrap { overflow: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #2c2e34;
  vertical-align: top;
  color: #c4c7ce;
}
.admin-table th {
  color: #f1f2f4;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-table td strong { color: #f1f2f4; }
.pcso-home .pcso-page-main { background: #0b0c0e; color: #e8e9eb; }
.pcso-home .pcso-page-lead { color: #a4a8b0; }
