/* The public school website: Home, News, Calendar, Athletics, About, Contact Us */
:root {
  --white: #FFFFFF; --navy: #102232; --navy-2: #1A3349; --navy-3: #0A1824; --gold: #E2AB29; --gold-2: #C9921A; --red: #941314;
  --ink: #102232; --muted: #5E6B78; --page: #F5F6F8; --line: #E1E5EA; --gold-soft: #FBF1DA; --navy-soft: #E8EDF2; --red-soft: #F7E7E7;
  --green: #1E6B3A; --green-soft: #E3F4E8;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand strong { display: block; font-size: 15.5px; line-height: 1.15; }
.brand span { display: block; font-size: 11.5px; color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 9px 12px; border-radius: 6px; color: #DCE3EA; }
.nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.nav .signin { margin-left: 8px; background: var(--gold); color: var(--navy); font-weight: 800; padding: 9px 16px; }
.nav .signin:hover { background: #EDBB45; color: var(--navy); }
.nav .nav-signout { display: none; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; display: block; }
/* signed in: who you are, like the dashboard header */
.me-chip { display: flex; align-items: center; gap: 4px; margin-left: 6px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); flex: none; }
.me-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); padding: 5px 8px 5px 5px; border-radius: 10px; }
.me-link:hover { background: rgba(255,255,255,.08); }
.me-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1); flex: none; }
.me-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-text b { font-size: 14px; font-weight: 700; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.me-text small { font-size: 12px; color: rgba(255,255,255,.68); white-space: nowrap; display: flex; align-items: center; gap: 4px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.me-text small img { width: 14px; height: 14px; object-fit: contain; flex: none; }
.me-out { width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
.me-out:hover { background: rgba(255,255,255,.1); color: var(--white); }
.me-out svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
  font: 800 15px var(--font); text-decoration: none; white-space: nowrap; transition: transform .12s, background-color .12s, box-shadow .12s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(226,171,41,.28); }
.btn.gold:hover { background: #EDBB45; }
.btn.navy { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.btn.discord { background: #5865F2; color: #fff; box-shadow: 0 6px 18px rgba(88,101,242,.3); }
.btn.discord:hover { background: #4752C4; }
.btn.small { height: 38px; padding: 0 14px; font-size: 13.5px; }
.link { font-weight: 800; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 17px; height: 17px; flex: none; }
.link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- heroes */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 720px; height: 720px; right: -200px; top: -260px; background: rgba(255,255,255,.035); }
.hero::after { width: 420px; height: 420px; right: 40px; top: -60px; background: rgba(255,255,255,.04); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); }

.home-hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 104px; }
.home-hero h1 { margin-top: 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.home-hero h1 em { font-style: normal; color: var(--gold); display: block; }
.home-hero .tagline { margin-top: 18px; font-size: clamp(17px, 1.8vw, 21px); color: #C9D3DD; font-weight: 500; font-style: italic; }
.home-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.home-hero .mascot { justify-self: end; width: min(430px, 100%); filter: drop-shadow(0 24px 50px rgba(0,0,0,.45)); margin-bottom: -150px; }

.page-hero .wrap { padding-top: 46px; padding-bottom: 50px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-hero h1 { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.page-hero p { margin-top: 10px; color: #C9D3DD; font-size: 17px; max-width: 60ch; line-height: 1.55; }
.page-hero .mascot-sm { width: 150px; margin-bottom: -50px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.4)); flex: none; }
.stripe { height: 6px; background: linear-gradient(to bottom, var(--gold) 0 4px, var(--red) 4px 6px); }

/* ---------------------------------------------------------------- facts strip (home) */
.facts { position: relative; z-index: 2; margin-top: -54px; }
.facts .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 760px; }
.fact { background: var(--white); border-radius: 12px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(16,34,50,.10); border-top: 4px solid var(--gold); display: flex; gap: 14px; align-items: center; }
.fact .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.fact .ic svg { width: 23px; height: 23px; }
.fact span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact b { display: block; font-size: 18px; margin-top: 3px; }

/* ---------------------------------------------------------------- sections */
main { flex: 1; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section.white { background: var(--white); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.eyebrow.dark { color: var(--gold-2); }

.mission { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.mission h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-top: 8px; line-height: 1.15; }
.mission blockquote { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; font-weight: 500; padding-left: 24px; border-left: 5px solid var(--gold); color: var(--navy-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .14s, box-shadow .14s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,34,50,.10); }
.post-card .band { height: 8px; background: var(--c, var(--navy)); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--navy-soft); border-bottom: 4px solid var(--c, var(--navy)); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .in { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card p { color: var(--muted); line-height: 1.55; font-size: 14.5px; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.kind { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .03em;
  background: var(--navy-soft); color: var(--navy); }
.kind.article { background: #EDE9FE; color: #5B21B6; } .kind.announcement { background: var(--gold-soft); color: #7A5A0E; } .kind.athletics { background: var(--green-soft); color: var(--green); }
.pin { color: var(--red); font-weight: 800; font-size: 12px; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 12px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.err-box { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 16px 18px; font-weight: 600; }

/* event list (home + athletics) */
.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.panel h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.panel h3 svg { width: 20px; height: 20px; color: var(--gold-2); }
.events { list-style: none; padding: 0; margin-top: 12px; }
.events li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.events li:first-child { border-top: 0; }
.datebox { width: 54px; flex: none; text-align: center; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.datebox span { display: block; background: var(--c, var(--navy)); color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 0; text-transform: uppercase; }
.datebox b { display: block; font-size: 21px; padding: 3px 0 4px; }
.events .what { flex: 1; min-width: 0; }
.events .what strong { display: block; font-size: 15px; }
.events .what small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.tag.no_school { background: var(--red-soft); color: var(--red); } .tag.early_release { background: var(--gold-soft); color: #7A5A0E; }
.tag.game { background: var(--green-soft); color: var(--green); } .tag.event { background: var(--navy-soft); color: var(--navy); }
.score { font-weight: 800; font-size: 15px; white-space: nowrap; }
.score .W { color: var(--green); } .score .L { color: var(--red); } .score .T { color: var(--muted); }

/* call to action band */
.roar { position: relative; overflow: hidden; background: var(--red); color: var(--white); }
.roar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px); }
.roar .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.roar h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.roar p { color: #F3D4D4; margin-top: 8px; font-size: 17px; }
.roar .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- news */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { text-decoration: none; padding: 8px 15px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.chips a:hover { color: var(--ink); border-color: #C5CDD6; }
.chips a[aria-current="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 28px; align-items: center; color: var(--muted); font-weight: 600; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.article { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px 40px 40px; }
.article .hero { margin: -36px -40px 26px; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--navy-soft); }
.article .hero img { width: 100%; max-height: 460px; object-fit: cover; }
.article h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin-top: 12px; }
.article .lead { font-size: 19px; color: var(--muted); margin-top: 14px; line-height: 1.55; }
.article .byline { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.article .byline img { width: 34px; height: 34px; }
.prose { margin-top: 24px; font-size: 17px; line-height: 1.75; color: #1E2F3E; }
.prose p + p, .prose ul + p, .prose p + ul, .prose h2 + p, .prose ul + ul { margin-top: 16px; }
.prose h2 { font-size: 22px; margin: 30px 0 4px; color: var(--navy); }
.prose ul { padding-left: 22px; } .prose li { margin: 6px 0; } .prose li::marker { color: var(--gold-2); }
.prose figure { margin: 26px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--navy-soft); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.prose a { color: var(--navy); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; word-break: break-word; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--muted); margin-bottom: 16px; }
.back svg { width: 16px; height: 16px; flex: none; }
.back:hover { color: var(--ink); }
.side-list { display: grid; gap: 10px; }
.side-list a { display: block; text-decoration: none; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.side-list a:hover { border-color: var(--gold); }
.side-list strong { display: block; font-size: 15px; line-height: 1.35; }
.side-list small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------------------------------------------------------------- calendar */
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-bar h2 { font-size: 26px; margin-right: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.month .dow { padding: 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFBFC; border-bottom: 1px solid var(--line); text-align: center; }
.month .day { min-height: 112px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.month .day:nth-child(7n) { border-right: 0; }
.month .day.out { background: #FAFBFC; } .month .day.out .num { color: #B3BCC6; }
.month .day.weekend { background: #FCFCFD; }
.month .num { font-size: 13px; font-weight: 800; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.month .day.today .num { background: var(--gold); color: var(--navy); }
.ev { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 3px 6px; border-radius: 5px; background: var(--navy-soft); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--navy); }
.ev.no_school { background: var(--red-soft); color: var(--red); border-left-color: var(--red); }
.ev.early_release { background: var(--gold-soft); color: #7A5A0E; border-left-color: var(--gold); }
.ev.game { background: var(--green-soft); color: var(--green); border-left-color: var(--green); }
.agenda { margin-top: 24px; }

/* ---------------------------------------------------------------- athletics */
.team-card { display: flex; flex-direction: column; text-decoration: none; padding: 22px 22px 20px; position: relative; transition: transform .14s, box-shadow .14s; border-top: 5px solid var(--navy); }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,34,50,.10); border-top-color: var(--gold); }
.team-card .sport { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.team-card h3 { font-size: 21px; margin-top: 6px; }
.team-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; flex: 1; }
.team-card .rec { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.team-card .rec b { display: block; font-size: 20px; color: var(--ink); }
.team-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.big-record { display: flex; gap: 10px; }
.big-record div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 18px; text-align: center; }
.big-record b { display: block; font-size: 30px; color: var(--gold); line-height: 1.1; }
.big-record span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #C9D3DD; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .n { font-weight: 800; color: var(--navy); width: 56px; font-size: 17px; }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.cap { display: inline-block; margin-left: 6px; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; }
.coach-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 12px; }
.coach-list li { display: flex; gap: 12px; align-items: center; }
.coach-list .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; flex: none; }
.coach-list small { display: block; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- about / contact */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.info-list { list-style: none; padding: 0; display: grid; gap: 0; }
.info-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; padding-top: 4px; }
.info-list .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 21px; height: 21px; }
.info-list span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-list b { display: block; font-size: 16px; margin-top: 2px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.value .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--gold-soft); color: #7A5A0E; display: grid; place-items: center; }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: 18px; margin-top: 12px; }
.value p { color: var(--muted); margin-top: 6px; line-height: 1.55; font-size: 14.5px; }
.discord-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #5865F2 0%, #3C45A5 100%); color: var(--white); border-radius: 16px; padding: 38px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.discord-card::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -150px; background: rgba(255,255,255,.07); }
.discord-card h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
.discord-card p { margin-top: 10px; color: #E0E3FF; line-height: 1.6; font-size: 16.5px; max-width: 56ch; white-space: pre-line; }
.discord-card .btn { position: relative; z-index: 1; background: var(--white); color: #3C45A5; height: 56px; font-size: 16.5px; padding: 0 28px; }
.discord-card .logo { width: 64px; height: 64px; color: var(--white); margin-bottom: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; font-size: 16px; } .steps span { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: block; margin-top: 4px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--navy-3); color: #B9C4CF; margin-top: auto; }
.site-foot .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 20px 34px; }
.site-foot .fbrand { display: flex; gap: 12px; align-items: center; color: var(--white); text-decoration: none; }
.site-foot .fbrand img { width: 54px; height: 54px; }
.site-foot .fbrand strong { display: block; font-size: 16px; } .site-foot .fbrand span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.site-foot p { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 36ch; }
.site-foot h4 { color: var(--white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-foot a { text-decoration: none; } .site-foot a:hover { color: var(--white); text-decoration: underline; }
.site-foot .bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-foot .bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; font-size: 13px; }
.site-foot .bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--white); }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 19px; height: 19px; }

/* skeletons */
.skel { background: linear-gradient(90deg, #EEF1F4 0%, #F7F8FA 50%, #EEF1F4 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 160px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--navy); padding: 10px 16px 18px; box-shadow: 0 16px 30px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); border-radius: 0; }
  .nav .signin { margin: 8px 0 0; text-align: center; }
  .nav .nav-signout { display: block; color: #F3C1C1; }
  .menu-btn { display: block; }
  .site-head .wrap:has(.me-chip) .menu-btn { margin-left: 0; order: 3; }
  .me-chip { margin-left: auto; border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .me-text { display: none; }
  .me-chip { gap: 0; }
  .me-out { display: none; }
  .me-link { padding: 3px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand div { min-width: 0; }
  .brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 980px) {
  .home-hero .wrap { grid-template-columns: 1fr; padding-bottom: 90px; }
  .home-hero .mascot { display: none; }
  .facts .grid, .cards, .values, .steps { grid-template-columns: 1fr 1fr; }
  .mission, .two, .article-wrap, .about-grid { grid-template-columns: 1fr; }
  .site-foot .top { grid-template-columns: 1fr 1fr; }
  .page-hero .mascot-sm { display: none; }
  .discord-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand strong { font-size: 14px; } .brand img { width: 40px; height: 40px; }
  .facts .grid, .cards, .values, .steps { grid-template-columns: 1fr; }
  .site-foot .top { grid-template-columns: 1fr; }
  .article { padding: 24px 20px 28px; }
  .article .hero { margin: -24px -20px 20px; }
  .discord-card { padding: 28px 22px; }
  .month .dow { padding: 8px 2px; font-size: 11px; }
  .month .day { min-height: 54px; padding: 4px 3px; }
  .month .ev { font-size: 0; padding: 0; height: 6px; border-left: 0; border-radius: 3px; }
  .section { padding: 44px 0; }
  .btn { height: 46px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
