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

:root {
  --navy: #0d2347;
  --blue: #1a3a6b;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }

/* TOPBAR */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--navy); z-index: 100; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.topbar-logo { height: 32px; width: auto; object-fit: contain; }
.topbar-badge { background: rgba(255,255,255,0.12); color: #93c5fd; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.4px; }

/* LAYOUT */
.layout { display: flex; margin-top: var(--topbar-h); min-height: calc(100vh - var(--topbar-h)); }

/* SIDEBAR */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); position: fixed; top: var(--topbar-h); bottom: 0; overflow-y: auto; padding: 24px 0 40px; }
.sidebar-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 0 20px 12px; }
.sidebar ul { list-style: none; }
.sidebar ul li a { display: block; padding: 9px 20px; font-size: 13.5px; color: var(--text-muted); text-decoration: none; border-left: 3px solid transparent; transition: all 0.15s; }
.sidebar ul li a:hover { color: var(--accent); background: #eff6ff; }
.sidebar ul li a.active { color: var(--accent); font-weight: 600; border-left-color: var(--accent); background: #eff6ff; }
.sidebar-divider { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 18px 20px 6px !important; pointer-events: none; }
.sidebar-support { padding: 20px; margin-top: 24px; border-top: 1px solid var(--border); }
.support-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.support-email { font-size: 12px; color: var(--accent); text-decoration: none; word-break: break-all; }
.support-email:hover { text-decoration: underline; }

/* CONTENT */
.content { margin-left: var(--sidebar-w); flex: 1; padding: 48px 60px 80px; max-width: 860px; }

/* SECTIONS */
section { margin-bottom: 72px; padding-top: 8px; }
section h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.section-icon { font-size: 22px; }
.section-intro { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; }
.section-intro code { background: #f1f5f9; border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font-size: 12.5px; }
section h3 { font-size: 17px; font-weight: 700; color: var(--blue); margin: 28px 0 12px; }
section p { margin-bottom: 14px; color: var(--text); }
section ol, section ul { padding-left: 22px; margin-bottom: 16px; }
section li { margin-bottom: 7px; }
section a { color: var(--accent); text-decoration: none; }
section a:hover { text-decoration: underline; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%); border-radius: 20px; padding: 48px 48px 40px; margin-bottom: 36px; text-align: center; }
.hero-logo { height: 40px; margin-bottom: 24px; }
.hero h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.hero-sub { font-size: 16px; color: #93c5fd; max-width: 500px; margin: 0 auto 24px; line-height: 1.6; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.chip-blue { background: rgba(59,130,246,0.25); color: #93c5fd; }
.chip-green { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.chip-navy { background: rgba(255,255,255,0.1); color: #e2e8f0; }

/* STEPS GRID */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: box-shadow 0.2s; }
.step-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.step-num { width: 36px; height: 36px; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-body p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* TABLE */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
thead tr { background: #f8fafc; }
th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ALERTS */
.alert { padding: 14px 16px; border-radius: 10px; margin: 16px 0; font-size: 13.5px; line-height: 1.6; }
.alert-tip { background: #ecfdf5; border-left: 4px solid #10b981; color: #065f46; }
.alert-important { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }
.alert-note { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a8a; }
.alert-caution { background: #fff1f2; border-left: 4px solid #f43f5e; color: #881337; }

/* CODE */
.code-block { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 10px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8; margin: 12px 0 20px; overflow-x: auto; }
.code-highlight { color: #60a5fa; }
code { background: #f1f5f9; border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; font-family: 'Courier New', monospace; }

/* BADGES */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-navy { background: #dbeafe; color: #1e3a8a; }

/* PREREQ */
.prereq-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 0 0 24px; }
.prereq-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.prereq-box ul { padding-left: 20px; }
.prereq-box li { font-size: 13.5px; margin-bottom: 6px; }

/* TAG */
.tag-required { background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }

/* CHECKLIST */
.checklist-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 16px; }
.checklist-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 6px 0; cursor: pointer; }
.check-item input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* SUPPORT BLOCK */
.support-block { background: linear-gradient(135deg, var(--navy), #1e3a8a); border-radius: 16px; padding: 36px 40px; text-align: center; margin-top: 40px; }
.support-block-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.support-block p { color: #93c5fd; margin-bottom: 24px; }
.support-btn { display: inline-block; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; padding: 12px 32px; border-radius: 30px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.support-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 24px 20px 60px; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px; }
}
