/* Misfits — shared shell (sidebar + content grid) */

:root {
  --navy: #00004C;
  --blue: #0033A0;
  --green: #00DC00;
  --gray: #636363;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  background: #ffffff;
  color: var(--navy);
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Soft glow, concentrated low, fading toward the top */
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(0,220,0,0.10) 0%, transparent 45%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 177px;
}

.nav a {
  position: relative;
  display: block;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px 10px 22px;
  border-radius: 10px 10px 0 10px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(74,144,217,0.10);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(74,144,217,0.24) 0%, rgba(0,51,160,0.16) 100%);
  box-shadow: inset 0 0 0 1px rgba(74,144,217,0.4), 0 4px 16px rgba(0,0,0,0.28);
}

.nav a.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0,220,0,0.85);
}

/* ---- Content ---- */
.content {
  padding: 64px 72px 120px;
  max-width: 960px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.page-sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 56px;
}

.section { margin-bottom: 56px; }

.section-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e2e2;
}

.page-body {
  padding: 56px 72px 120px;
}

/* ---- Reusable resource-card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 10px 10px 0 10px;
  box-shadow: 0 1px 2px rgba(0,20,80,0.04), 0 8px 20px rgba(0,20,80,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.res-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,20,80,0.08), 0 16px 30px rgba(0,20,80,0.12);
}

.res-card-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px 4px 0 4px;
}

.res-card-badge.custom { background: rgba(0,220,0,0.12); color: #0a7a00; }
.res-card-badge.wip { background: rgba(0,51,160,0.08); color: var(--blue); }

.res-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.res-card-note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.res-card-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.res-card-link:hover { color: var(--navy); }

/* ---- Banner page (gradient header + white body below) ---- */
.content.banner-page {
  padding: 0;
  max-width: none;
}

.page-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #00004C 0%, #0a2880 52%, #1646CC 100%);
  padding: 76px 72px;
  color: #fff;
}

/* Particle-trail texture, fading in from the right, sitting behind the banner content */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.55) 0%, transparent 42%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.55) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.page-banner-icon,
.page-banner-divider,
.page-banner-title {
  position: relative;
  z-index: 1;
}

.page-banner-icon {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.page-banner-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.page-banner-title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.page-banner-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-top: 14px;
}

/* ---- Page sub-menu (sits directly under a page banner) ---- */
.page-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding: 18px 72px;
  background: #fff;
  box-shadow: inset 0 -1px 0 #ececec;
}

.page-submenu a {
  position: relative;
  display: block;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.18s ease;
}

.page-submenu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.page-submenu a:hover { color: var(--navy); }

.page-submenu a:hover::after { width: 100%; }

.page-submenu a.active {
  color: var(--navy);
}

.page-submenu a.active::after {
  width: 100%;
}

/* ---- Full-bleed content (embeds an original page unmodified) ---- */
.content.full-bleed {
  padding: 0;
  max-width: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.embed-frame {
  width: 100%;
  flex: 1;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; align-items: center; gap: 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .content { padding: 40px 24px 80px; }
}
