/* Global chrome (all pages) + homepage. Homepage rules are scoped under .page-home. */
:root {
  --cta: #3c8527; --cta-hi: #6cc04a; --cta-lo: #1f4d14;
  --night: #121212; --night2: #1e1e1e; --paper: #f2efe6;
  --rose: #c1121f;
  --head: "Silkscreen", "VT323", ui-monospace, Menlo, monospace;
}
:focus-visible { outline: 3px solid #ffd24d; outline-offset: 2px; }

.ctf-strip {
  background: #111; color: #f3e3a0; font-size: 13px; line-height: 1.3;
  padding: 6px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #000;
}
.ctf-strip .team-badge { margin-left: 0; flex: none; }

.site-header { background: #1b1b1b; border-bottom: 4px solid var(--cta); position: relative; z-index: 5; }
.site-header-in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.wordmark {
  font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 2px; color: #fff;
  text-decoration: none; text-shadow: 3px 3px 0 #000; white-space: nowrap;
}
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; color: #fff; font-family: var(--head); font-size: 14px; padding: 8px 12px; border: 2px solid #555; display: inline-block; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { position: absolute; top: 100%; left: 0; min-width: 200px; background: #1b1b1b; border: 2px solid #555; display: grid; z-index: 10; }
.nav-menu nav a { color: #fff; text-decoration: none; padding: 12px 16px; font-family: var(--head); font-size: 14px; }
.nav-menu nav a:hover { background: var(--cta); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.login-link { color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; }
.login-link:hover { text-decoration: underline; }

.cta {
  display: inline-block; background: var(--cta); color: #fff; text-decoration: none; text-align: center;
  font-family: var(--head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 22px; border: 3px solid; border-color: var(--cta-hi) var(--cta-lo) var(--cta-lo) var(--cta-hi);
  box-shadow: 0 4px 0 #0e2a08, 0 0 0 2px #0b1a07; text-shadow: 2px 2px 0 rgba(0,0,0,.45);
}
.cta:hover { background: #4a9c33; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #0e2a08, 0 0 0 2px #0b1a07; }
.cta-sm { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
.cta-lg { font-size: 18px; padding: 16px 30px; }
.cta-ghost { background: rgba(0,0,0,.35); border-color: #bbb #444 #444 #bbb; box-shadow: 0 4px 0 #000; }
.cta-ghost:hover { background: rgba(255,255,255,.15); }

.site-footer { background: #111; color: #bdbdbd; border-top: 4px solid var(--cta); margin-top: auto; }
.site-footer-in { max-width: 1160px; margin: 0 auto; padding: 28px 16px 24px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-footer h2 { font-family: var(--head); font-size: 14px; color: #fff; margin: 0 0 10px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #d7d7d7; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.fine { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #333; font-size: 12px; letter-spacing: .5px; color: #9a9a9a; }

/* Account pages: keep the content area filling space between header and footer */
.page-account .wrap { flex: 1; }

/* ---------- Homepage ---------- */
.page-home { background: var(--night); }
.page-home main { display: block; background: var(--night); color: #eee; }
.page-home h1, .page-home h2, .page-home h3 { font-family: var(--head); text-transform: uppercase; line-height: 1.15; margin: 0; font-weight: 700; }

.page-home .hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.page-home .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-home .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,20,.82) 0%, rgba(5,6,20,.45) 55%, rgba(5,6,20,0) 100%); }
.page-home .hero-in { position: relative; z-index: 1; max-width: 1160px; width: 100%; margin: 0 auto; padding: 56px 16px; }
.page-home .eyebrow { font-family: var(--head); color: #ffd24d; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
.page-home .hero h1 { font-size: clamp(30px, 7vw, 64px); max-width: 14ch; text-shadow: 4px 4px 0 #000; margin-bottom: 16px; }
.page-home .lede { font-size: 18px; max-width: 46ch; margin: 0 0 24px; text-shadow: 1px 1px 0 #000; }
.page-home .hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.page-home .band { padding: 52px 0; }
.page-home .band-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.page-home .band h2 { font-size: clamp(22px, 4vw, 34px); margin-bottom: 20px; }
.page-home .band-light { background: var(--paper); color: #1c1c1c; border-top: 6px solid #d9d4c3; }
.page-home .band-light a:not(.cta) { color: #1d4f91; }
.page-home .band-dark { background: var(--night2); color: #eee; }
.page-home .kicker { font-family: var(--head); font-size: 13px; color: var(--rose); text-transform: uppercase; margin: 0 0 8px; letter-spacing: 1px; }
.page-home .promo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.page-home .promo p { font-size: 17px; max-width: 52ch; }
.page-home .promo-art { border: 4px solid #222; box-shadow: 6px 6px 0 #c9c3ae; }
.page-home .promo-svg { display: block; width: 100%; height: auto; }
.page-home .narrow-copy p { max-width: 62ch; font-size: 17px; }
.page-home .vmark { width: 36px; height: 20px; fill: var(--rose); display: block; margin-top: 8px; opacity: .8; }

.page-home .cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.page-home .card { display: flex; flex-direction: column; height: 100%; background: #2a2a2a; color: #eee; text-decoration: none; border: 3px solid; border-color: #4a4a4a #0a0a0a #0a0a0a #4a4a4a; }
.page-home .card:hover { background: #333; transform: translateY(-3px); }
.page-home .card-art { aspect-ratio: 16 / 9; background: #000; }
.page-home .thumb { display: block; width: 100%; height: 100%; }
.page-home .card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.page-home .card h3 { font-size: 15px; line-height: 1.35; }
.page-home .card p { margin: 0; font-size: 14.5px; color: #cfcfcf; flex: 1; }
.page-home .card time { font-size: 12.5px; color: #a8a8a8; }
.page-home .tagpill { align-self: flex-start; font-family: var(--head); font-size: 11px; text-transform: uppercase; padding: 3px 8px; background: #444; color: #fff; }
.page-home .tag-update, .page-home .tag-events { background: #8f1d1d; }
.page-home .tag-accounts { background: #1f5a8f; }
.page-home .tag-safety { background: #8a6a00; }
.page-home .tag-community { background: #2c6a1a; }

.page-home .tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.page-home .tile { background: #2a2a2a; border: 3px solid; border-color: #4a4a4a #0a0a0a #0a0a0a #4a4a4a; padding: 24px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.page-home .tile h3 { font-size: 18px; }
.page-home .tile p { margin: 0; color: #cfcfcf; }
.page-home .tile-art { width: 64px; height: 64px; }

@media (max-width: 860px) {
  .page-home .cards, .page-home .tiles { grid-template-columns: repeat(2, 1fr); }
  .page-home .promo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-home .cards, .page-home .tiles { grid-template-columns: 1fr; }
  .page-home .hero { min-height: 400px; }
  .page-home .band { padding: 36px 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .ctf-strip { font-size: 12px; flex-wrap: wrap; }
  .site-header-in { gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
  .header-actions .cta { display: none; } /* too wide for a phone header; the hero has its own */
  .wordmark { font-size: 17px; letter-spacing: 1px; }
  .login-link { font-size: 14px; }
  .nav-menu summary { padding: 6px 8px; font-size: 12px; }
}
.nav-inline { display: none; flex: 1; gap: 4px; }
.nav-inline a { color: #fff; text-decoration: none; font-family: var(--head); font-size: 14px; text-transform: uppercase; padding: 8px 12px; }
.nav-inline a:hover { background: var(--cta); }
@media (min-width: 761px) {
  .nav-inline { display: flex; }
  .nav-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) { .page-home .card:hover { transform: none; } .cta:active { transform: none; } }
