/* ── Shared global styles for the CTA Study Guide ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Dark theme (default) ── */
:root {
  --bg:       #16131e;
  --surface:  #211d2e;
  --surface2: #2b2640;
  --border:   #3c3655;
  --accent:   #7dd3fc;
  --accent2:  #6ee7b7;
  --green:    #6ee7b7;
  --yellow:   #ca8a04;
  --red:      #fca5a5;
  --text:     #f5f3ff;
  --muted:    #a8a4c0;
  --code-bg:  #11101a;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:       #f5f3ff;
  --surface:  #ffffff;
  --surface2: #ede9fe;
  --border:   #c4b5fd;
  --accent:   #0284c7;
  --accent2:  #059669;
  --green:    #059669;
  --yellow:   #b45309;
  --red:      #dc2626;
  --text:     #1e1b4b;
  --muted:    #6d6a85;
  --code-bg:  #ede9fe;
}

/* ── Theme toggle button in nav ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--accent); }
.theme-toggle svg   { pointer-events: none; display: block; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Shared top nav ── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-right: auto;
}

.site-nav .brand span {
  color: var(--accent);
}

.site-nav .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--text); }

.site-nav .badge {
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: auto;
}

/* ── Shared page header band ── */
.page-hero {
  padding: 48px 48px 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

/* ── Placeholder content ── */
.placeholder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
  gap: 16px;
}

.placeholder-icon { font-size: 52px; }

.placeholder-wrap h2 {
  font-size: 25px;
  font-weight: 700;
}

.placeholder-wrap p {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}

.coming-soon-badge {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
