/* =====================================================================
   WC26 v3 — Shared app shell styles (sidebar + topbar + content).
   Imported by every page that needs the post-registration nav.
   Palette: LIGHT mode per design-source/project/screens.jsx
   ===================================================================== */

:root {
  --bg:        #f1f4fa;
  --card:      #ffffff;
  --card-alt:  #f7f9fd;
  --border:    #d8dfeb;
  --text:      #0d1a30;
  --text-2:    #5a6a82;
  --muted:     #8a9ab0;
  --gold:      #b88500;
  --gold-halo: rgba(184, 133, 0, 0.10);
  --green:     #00b25a;
  --green-ink: #ffffff;
  --green-wash:rgba(0, 178, 90, 0.08);
  --red:       #d33b3b;
  --omx-red:   #E4002B;
  --shell-bg:  #e6ebf3;
  --shell-border:#c3cad8;
  --f-head:    'Oswald', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex: 0 0 232px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar__head {
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar__logo {
  height: 36px; width: auto; display: block; margin-bottom: 10px;
}
.sidebar__caption {
  font-family: var(--f-mono); font-size: 9px; color: var(--muted);
  letter-spacing: 2px;
}
.sidebar__caption strong { color: var(--omx-red); font-weight: 700; }

.sidenav { flex: 1; padding: 12px 10px; overflow: auto; }
.sidenav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px;
  color: var(--text-2);
  border-left: 3px solid transparent;
  margin-left: -3px;
  cursor: pointer;
}
.sidenav__item:hover { background: var(--card-alt); color: var(--text); }
.sidenav__item.is-active {
  background: var(--green-wash);
  color: var(--green);
  border-left-color: var(--green);
}
.sidenav__icon {
  width: 18px; height: 18px; display: grid; place-items: center;
}
.sidenav__label {
  font-family: var(--f-head); font-weight: 600; font-size: 13px;
  letter-spacing: 0.5px; flex: 1;
}
.sidenav__group { margin: 6px 0; }
.sidenav__group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--f-head); font-weight: 700; font-size: 13px;
}
.sidenav__sub {
  display: block;
  padding: 6px 12px 6px 42px;
  font-family: var(--f-body); font-size: 12px;
  color: var(--text-2);
  border-radius: 6px;
}
.sidenav__sub:hover { background: var(--card-alt); color: var(--text); }
.sidenav__sub.is-active { color: var(--green); font-weight: 600; }
.sidenav__sub-group {
  margin-left: 28px;
  border-left: 1px dashed var(--border);
}
.sidenav__sub--child { padding-left: 18px; }

.sideuser {
  padding: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sideuser__avatar {
  width: 36px; height: 36px; border-radius: 18px;
  background: var(--green); color: var(--green-ink);
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: 13px;
}
.sideuser__name {
  font-family: var(--f-head); font-weight: 700; font-size: 13px;
}
.sideuser__meta {
  font-size: 10px; color: var(--text-2); font-family: var(--f-mono);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; flex: 0 0 60px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 16px;
}
.topbar__title {
  font-family: var(--f-head); font-weight: 700; font-size: 18px;
  letter-spacing: 0.5px;
}
.topbar__spacer { flex: 1; }
.topbar__chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 18px;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-2);
}
.topbar__chip--green::before { content: "●"; color: var(--green); }
.topbar__rank {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 18px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
}

.content { flex: 1; overflow: auto; padding: 28px; }

/* Universal blue hero — welcome left + flag banners right (per Jeff CTO) */
.shell-hero {
  position: relative;
  background: linear-gradient(120deg, #1a2f50 0%, #2a4374 60%, #3d5d9e 100%);
  border-radius: 14px;
  padding: 20px 26px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  color: #e2eaf8;
}
.shell-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(255,215,0,0.18), transparent 55%);
  pointer-events: none;
}
.shell-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 28px;
  align-items: center;
}
.shell-hero__welcome-block { min-width: 0; }
.shell-hero__eyebrow {
  font-family: var(--f-mono); font-size: 11px; color: #FFD700;
  letter-spacing: 3px; margin-bottom: 8px;
}
.shell-hero__welcome-big {
  font-family: var(--f-head); font-weight: 700;
  font-size: 32px; color: #fff; line-height: 1;
  letter-spacing: 0.5px; margin: 0;
}

.shell-hero__teams { display: flex; gap: 14px; }
.shell-team {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: #fff;
}
.shell-team__label {
  font-family: var(--f-mono); font-size: 9px; color: #fff;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,0.10);
  padding: 3px 8px; border-radius: 4px;
}
.shell-team__banner {
  width: 64px; height: 40px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  font-family: var(--f-head); font-weight: 700; font-size: 14px;
  color: #fff; letter-spacing: 1px;
}
.shell-team[data-shell="cheering"] .shell-team__banner {
  background: linear-gradient(180deg, #b88500 0%, #d6a014 100%);
  border-color: #FFD700;
}
.shell-team[data-shell="home"] .shell-team__banner {
  background: linear-gradient(180deg, #00b25a 0%, #06d06d 100%);
  border-color: #00e676;
}
.shell-team__name {
  font-family: var(--f-head); font-weight: 700; font-size: 12px;
  color: #e2eaf8;
}
@media (max-width: 720px) {
  .shell-hero__inner { grid-template-columns: 1fr; }
  .shell-hero__teams { justify-content: flex-start; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card--accent-green { border-left: 3px solid var(--green); }

.section { margin-bottom: 28px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--f-head); font-weight: 700; font-size: 20px; margin: 0;
}
.section__aside {
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
}

.holding {
  display: grid; place-items: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-2);
}
.holding__title {
  font-family: var(--f-head); font-weight: 700; font-size: 28px;
  color: var(--text); margin: 0 0 8px;
}
.holding__sub {
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

@media (max-width: 1100px) {
  .sidebar { display: none; }
}
@media (max-width: 700px) {
  .content { padding: 16px; }
}
