/* rameshm.com — Design System
   Google Material 3 / Modern Glassmorphism aesthetic
   Theme: Modern Indigo & Amber, Light/Dark adaptive with persistent override */

:root {
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Light Theme (Default fallback) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.82);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-subtle: rgba(99, 102, 241, 0.1);
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);

  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #4f46e5;
  
  --code-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  color-scheme: light dark;
}

/* System Dark Preference or Explicit Dark Mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-canvas: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #162238;
    --bg-surface-glass: rgba(15, 23, 42, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(99, 102, 241, 0.35);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-subtle: rgba(99, 102, 241, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-light: #fbbf24;
    --accent-amber-subtle: rgba(245, 158, 11, 0.15);
    --accent-emerald: #10b981;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.15);

    --btn-primary-bg: #f8fafc;
    --btn-primary-text: #090d16;
    --btn-primary-hover: #e2e8f0;

    --code-bg: #131d33;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
  }
}

/* Explicit Dark Override via data-theme */
:root[data-theme="dark"] {
  --bg-canvas: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162238;
  --bg-surface-glass: rgba(15, 23, 42, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-subtle: rgba(99, 102, 241, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-amber-subtle: rgba(245, 158, 11, 0.15);
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.15);

  --btn-primary-bg: #f8fafc;
  --btn-primary-text: #090d16;
  --btn-primary-hover: #e2e8f0;

  --code-bg: #131d33;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
}

/* Explicit Light Override via data-theme */
:root[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.82);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-glow: rgba(99, 102, 241, 0.25);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-subtle: rgba(99, 102, 241, 0.1);
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);

  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #4f46e5;

  --code-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* Ambient Radial Glow on Hero Background */
.hero-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 520px;
  background: radial-gradient(circle 450px at 50% 120px, var(--border-glow), transparent 70%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-amber-light);
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.1em;
}

.muted {
  color: var(--text-muted);
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light) 75%, var(--accent-amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container & Sections */
.wrap {
  width: min(74rem, 100% - 2.5rem);
  margin-inline: auto;
  position: relative;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(74rem, 100% - 4.5rem);
  }
}

section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.brand:hover .brand-badge {
  transform: rotate(3deg) scale(1.05);
  transition: transform 0.2s ease;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 52rem) {
  .nav {
    display: flex;
  }
}

.nav a {
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: var(--border-subtle);
}

.nav a[aria-current='page'] {
  color: var(--text-main);
  background: var(--primary-subtle);
  font-weight: 650;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Toggle Button */
.theme-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--primary-light);
  transform: scale(1.05);
  background: var(--border-subtle);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-btn .icon-moon { display: none; }
.theme-btn .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-btn .icon-sun { display: none; }
}

:root[data-theme="dark"] .theme-btn .icon-moon { display: block; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: none; }
:root[data-theme="light"] .theme-btn .icon-moon { display: none; }
:root[data-theme="light"] .theme-btn .icon-sun { display: block; }

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 52rem) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 4.5rem;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  transition: transform 0.25s ease;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a[aria-current='page'] {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Buttons */
.btn, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn-link {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary-light);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--accent-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-link:hover {
  color: var(--accent-amber-light);
  text-decoration-thickness: 3px;
}

/* Hero Section */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 58rem) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-pill:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--text-main);
  transform: translateY(-1px);
}

.hero-card {
  width: 100%;
  max-width: 29rem;
  margin-inline: auto;
}

.hero-hint {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-top: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Track Record Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-amber));
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.metric-figure {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.metric-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* 3D Flip Flashcards */
.flip {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  cursor: pointer;
  border-radius: var(--radius-lg);
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.flip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.28), 0 0 0 1px var(--border-glow);
}

.flip:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-light);
}

.flip-inner {
  display: grid;
  flex: 1;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border-radius: var(--radius-lg);
}

/* Hover-to-flip on devices that support hover */
@media (hover: hover) {
  .flip:hover .flip-inner {
    transform: rotateY(180deg);
  }
}

/* Flipped / pinned state (on mobile/tap, keyboard, or clicked to lock) */
.flip[data-flipped='true'] .flip-inner {
  transform: rotateY(180deg) !important;
}

.face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.face.front {
  border-top: 4px solid var(--accent-amber);
}

.face.back {
  transform: rotateY(180deg);
  border-top: 4px solid var(--primary-light);
  background: var(--bg-surface-elevated);
}

/* Face Header */
.face-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.card-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-problem {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-solution {
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.flip-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--border-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.flip:hover .flip-hint-badge .flip-icon {
  transform: rotate(180deg);
  transition: transform 0.5s ease;
}

.flip-hint-badge.solution-badge {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-problem-text, .card-solution-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.card-stack-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.stack-preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flip-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.25s ease;
}

.flip:hover .flip-cta-pill {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(2px);
}

/* Outcome Box on Back Face */
.outcome-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.2rem;
}

.outcome-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.outcome-icon svg {
  width: 14px;
  height: 14px;
}

.outcome-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.outcome-details strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
}

.outcome-details span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.back-stack-wrap {
  margin-top: 0.25rem;
}

.face-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.face-actions.back-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.flip-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-subtle);
  font-size: 0.88rem;
  font-weight: 600;
}

.flip-back-btn:hover {
  color: var(--primary-light);
}

.no-js .flip-inner {
  display: block;
  transform: none !important;
}
.no-js .face.back {
  transform: none;
  margin-top: 1.5rem;
}
.no-js [data-flip] {
  display: none;
}

/* Tags and Chips */
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-subtle);
  background: var(--code-bg);
  transition: all 0.15s ease;
}

.tags li:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
}

/* Grids and Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card.feature {
  border-top: 4px solid var(--accent-amber);
  background: var(--bg-surface-elevated);
}

/* Featured App Section */
.app-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .app-feature {
    grid-template-columns: 1fr 16rem;
    gap: 3.5rem;
  }
}

.app-art-wrap {
  width: 100%;
  max-width: 16rem;
  justify-self: center;
  position: relative;
}

.app-art {
  width: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-art-wrap:hover .app-art {
  transform: scale(1.03) rotate(-1deg);
}

.status {
  font-size: 0.95rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Skills Layout & Filter Tabs */
.skills-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  color: var(--text-main);
  border-color: var(--primary-light);
  background: var(--border-subtle);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.skill-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.skill-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.skill-group.hidden {
  display: none;
}

.skill-group h3 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skills li:last-child {
  border-bottom: 0;
}

.skills strong {
  display: block;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.skills span {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.glance {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.glance-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.glance-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.glance-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.8rem;
  border-left: 2px solid var(--border-medium);
  position: relative;
}

.timeline > li {
  position: relative;
  padding-bottom: 2.75rem;
}

.timeline > li::before {
  content: '';
  position: absolute;
  left: calc(-1.8rem - 7px);
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 3px solid var(--bg-canvas);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.timeline h3 {
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
}

.timeline .when {
  color: var(--text-subtle);
  font-size: 0.92rem;
  font-weight: 550;
  margin-bottom: 0.85rem;
}

.timeline ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.timeline ul li {
  margin-bottom: 0.5rem;
}

/* Certifications */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cert-list li strong {
  font-weight: 650;
  color: var(--text-main);
}

.cert-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Blog */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding-block: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  transition: transform 0.15s ease;
}

.post-list li:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.post-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.post-list h3 a {
  text-decoration: none;
  color: var(--text-main);
}

.post-list h3 a:hover {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-amber);
}

.meta {
  color: var(--text-subtle);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prose {
  max-width: 44rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
}

.prose h2, .prose h3 {
  font-family: var(--font-display);
  margin-top: 2.4rem;
}

.prose h2 { font-size: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5rem; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.prose pre {
  background: var(--code-bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.55;
  border-left: 4px solid var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.92rem;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.75rem 1.5rem;
  border-left: 4px solid var(--accent-amber);
  background: var(--accent-amber-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
}

.legal {
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-head {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 0;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
}

.crumbs {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-subtle);
}

/* Contact List & Copy Button */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.copy-email-btn {
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  transition: all 0.15s ease;
}

.copy-email-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Toast Alert Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Floating Back-To-Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--bg-surface);
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* ==========================================================================
   System Design Interview Preparation Portal
   ========================================================================== */

/* Hero Section */
.sd-hero {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.sd-home-spotlight-card {
  border: 2px solid var(--border-glow);
  background: linear-gradient(135deg, var(--bg-surface-elevated), rgba(99, 102, 241, 0.08));
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.sd-home-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-amber), var(--accent-emerald));
}

.sd-spotlight-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sd-spotlight-text {
  max-width: 44rem;
}

.sd-spotlight-stat-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex-shrink: 0;
}

.sd-spotlight-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-sm);
}

.sd-stat-big {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
}

.sd-spotlight-stat span:not(.sd-stat-big) {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SYSTEM DESIGN CENTERING & READABILITY DESIGN SYSTEM
   ========================================================================== */

/* Centered Reading Column for System Design Pages */
.sd-reading-col {
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-curriculum-container {
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
}

/* Centered Section Headers on System Design */
.sd-centered-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.sd-centered-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem) !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.4rem !important;
}

.sd-centered-head p {
  margin-inline: auto;
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Hero Centering for System Design */
.sd-hero-inner,
.sd-day-hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-day-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

/* System Design Heading Scale Overrides (Reduced & Balanced) */
.sd-hero h1,
.sd-day-title,
.sd-roadmap-title,
.page-head.sd-day-hero h1,
.page-head.sd-roadmap-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 0.55rem !important;
  text-align: center;
  text-wrap: balance;
}

.sd-day-subtitle,
.sd-roadmap-subtitle,
.sd-hero .lede {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: var(--text-muted);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

/* In-Article Concept Markdown Typography (Readable, Balanced Headings) */
.sd-concept-prose {
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--text-main);
  padding-inline: 0.25rem;
}

.sd-concept-prose p {
  margin: 0 0 1.25em;
  color: var(--text-main);
}

.sd-concept-prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem) !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-main);
  margin-top: 2.25rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sd-concept-prose h1:first-child {
  margin-top: 0 !important;
}

.sd-concept-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.42rem) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--text-main);
  margin-top: 1.85rem !important;
  margin-bottom: 0.65rem !important;
}

.sd-concept-prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--text-main);
  margin-top: 1.45rem !important;
  margin-bottom: 0.5rem !important;
}

.sd-concept-prose h4 {
  font-family: var(--font-display);
  font-size: 1.02rem !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--text-muted);
  margin-top: 1.2rem !important;
  margin-bottom: 0.4rem !important;
}

/* Question Bank & Accordion Content Headings */
.sd-q-content.prose {
  max-width: 100%;
}

.sd-q-content.prose h1,
.sd-q-content.prose h2,
.sd-q-content.prose h3 {
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.45rem !important;
  font-weight: 700 !important;
}

/* Global Progress Dashboard Card */
.sd-progress-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-progress-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.sd-tracker-pill {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  text-transform: uppercase;
  background: var(--primary-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-progress-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sd-stat-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sd-stat-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.sd-stat-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sd-progress-bar-wrap {
  width: 100%;
  margin-bottom: 0.85rem;
}

.sd-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--code-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.sd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.sd-progress-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sd-reset-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sd-reset-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Mode Switcher Tabs */
.sd-hub-tab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.sd-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sd-hub-tab:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.sd-hub-tab.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sd-tab-panel {
  display: none;
  animation: sdFadeIn 0.3s ease;
}

.sd-tab-panel.active {
  display: block;
}

@keyframes sdFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Day Curriculum Cards */
.sd-day-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--primary-light);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sd-day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
}

.sd-day-num-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.sd-phase-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  background: var(--accent-amber-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.sd-time-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--code-bg);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-day-progress-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sd-day-card-topics {
  margin: 1rem 0 1.25rem 0;
}

.sd-day-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.sd-day-progress-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sd-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.sd-day-progress-indicator.completed .sd-mini-dot {
  background: var(--accent-emerald);
}

.sd-day-progress-indicator.completed {
  color: var(--accent-emerald);
}

.sd-day-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 3D Flashcard Deck Styles */
.sd-deck-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 50rem;
  margin-inline: auto;
}

.sd-deck-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sd-toolbar-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.sd-select-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sd-select-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.sd-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.sd-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-light);
  cursor: pointer;
}

.sd-fc-stage-container {
  perspective: 1200px;
  max-width: 50rem;
  margin: 0 auto;
}

.sd-fc-stage {
  width: 100%;
  min-height: 420px;
  cursor: pointer;
  position: relative;
  outline: none;
}

.sd-fc-inner {
  position: relative;
  width: 100%;
  min-height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-lg);
  display: grid;
}

.sd-fc-stage[data-flipped="true"] .sd-fc-inner {
  transform: rotateY(180deg);
}

.sd-fc-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.sd-fc-stage:hover .sd-fc-face {
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.2), 0 0 0 1px var(--border-glow);
}

.sd-fc-face.sd-fc-front {
  border-top: 5px solid var(--accent-amber);
}

.sd-fc-face.sd-fc-back {
  transform: rotateY(180deg);
  border-top: 5px solid var(--primary-light);
  background: var(--bg-surface-elevated);
}

.sd-fc-face-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sd-fc-day-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-fc-qnum-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-fc-category-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: var(--accent-amber-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-fc-status-indicator {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-subtle);
}

.sd-fc-status-indicator.mastered {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sd-fc-back-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
}

.sd-fc-question-body {
  margin: auto 0;
  text-align: center;
  padding: 1.5rem 0;
}

.sd-fc-question-text {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

.sd-fc-hint-box {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  background: var(--code-bg);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.sd-fc-hint-label {
  font-weight: 700;
  color: var(--text-main);
}

.sd-fc-face-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.sd-fc-flip-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--border-subtle);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.sd-fc-stage:hover .sd-fc-flip-prompt {
  background: var(--primary-subtle);
  color: var(--primary-light);
}

/* Flashcard Back Answer Body */
.sd-fc-answer-body {
  overflow-y: auto;
  max-height: 380px;
  padding-right: 0.5rem;
}

.sd-fc-verbal-callout {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
}

.sd-fc-verbal-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  margin-bottom: 0.35rem;
}

.sd-fc-verbal-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

.sd-fc-deepdive-wrap {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.sd-fc-flip-back-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.sd-fc-flip-back-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Flashcard Action Bar */
.sd-fc-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.sd-fc-master-btn {
  border-color: var(--accent-emerald) !important;
}

.sd-fc-master-btn.mastered {
  background: var(--accent-emerald) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.sd-fc-counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.sd-fc-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-light);
}

.sd-fc-keyboard-hints {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Question Bank & Search Accordion */
.sd-search-container {
  margin-bottom: 2rem;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1.15rem;
}

.sd-search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.sd-search-field {
  width: 100%;
  padding: 1rem 3rem 1rem 3.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.sd-search-field:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-subtle);
}

.sd-search-clear-btn {
  position: absolute;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem;
}

.sd-cat-pills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sd-cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-cat-pill:hover {
  border-color: var(--primary-light);
  color: var(--text-main);
}

.sd-cat-pill.active {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--primary-light);
  font-weight: 700;
}

.sd-search-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
  max-width: 50rem;
  margin-inline: auto;
}

/* Question Item Accordion */
.sd-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-q-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sd-q-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.sd-q-item.is-mastered {
  border-left: 4px solid var(--accent-emerald);
}

.sd-q-header {
  display: flex;
  align-items: stretch;
  background: transparent;
}

.sd-q-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.sd-q-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sd-q-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.sd-q-cat {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: var(--accent-amber-subtle);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
}

.sd-q-title {
  flex: 1;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.45;
}

.sd-q-chevron {
  color: var(--text-subtle);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sd-q-item.open .sd-q-chevron {
  transform: rotate(180deg);
}

.sd-q-master-chk {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-q-master-chk:hover {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.sd-q-master-chk.mastered {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.sd-q-body {
  padding: 1.35rem 1.75rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.sd-q-takeaway-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.sd-q-takeaway-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  display: block;
  margin-bottom: 0.25rem;
}

.sd-q-takeaway-p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

.sd-q-content {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.sd-q-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Day Subtabs & Panels */
.sd-day-subtabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem auto 0 auto;
}

.sd-day-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-day-tab:hover {
  color: var(--text-main);
  border-color: var(--primary-light);
}

.sd-day-tab.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sd-day-panel {
  display: none;
  animation: sdFadeIn 0.3s ease;
}

.sd-day-panel.active {
  display: block;
}

/* Architecture ASCII Blueprint Terminal Frame */
.code-block-wrap {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-block-wrap.diagram-wrap {
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #090e1a;
}

.code-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.code-block-wrap pre {
  margin: 0;
  padding: 1.35rem 1.5rem;
  overflow-x: auto;
}

code.ascii-diagram {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #38bdf8;
  display: block;
}

/* Tables in Prose */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table-wrap th {
  background: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-main);
  padding: 0.85rem 1.15rem;
  border-bottom: 1.5px solid var(--border-medium);
}

.table-wrap td {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap tr:hover td {
  background: var(--primary-subtle);
}

.callout-quote {
  border-left: 4px solid var(--primary-light);
  background: var(--primary-subtle);
  padding: 0.95rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.25rem 0;
}

.callout-quote p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* 9-Step Framework Grid */
.sd-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sd-framework-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.sd-framework-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sd-framework-step-content h4, .sd-framework-step-content h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.02rem;
  color: var(--text-main);
}

/* Bottom Nav */
.sd-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 50rem;
  margin-inline: auto;
}

.sd-roadmap-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.sd-check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .sd-framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sd-spotlight-stat-box {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sd-framework-grid {
    grid-template-columns: 1fr;
  }
  .sd-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sd-fc-stage {
    min-height: 480px;
  }
  .sd-fc-question-text {
    font-size: 1.35rem;
  }
  .sd-hub-tab-bar {
    border-radius: var(--radius-lg);
  }
  .sd-hub-tab {
    width: 100%;
    justify-content: center;
  }
}

/* Print Stylesheet (Resume View) */
@media print {
  :root {
    --bg-canvas: #ffffff;
    --text-main: #000000;
    --text-muted: #333333;
    --bg-surface: #ffffff;
    --border-subtle: #cccccc;
  }
  body { font-size: 10.5pt; display: block; background: #ffffff !important; }
  .site-header, .site-footer, .actions, .skip, .no-print, .theme-btn, .mobile-nav-toggle, .back-to-top, .toast-container {
    display: none !important;
  }
  section { padding-block: 1rem; }
  .skill-group, .card, .metric-card { border-color: #cccccc; box-shadow: none !important; }
  a { text-decoration: none; color: #000000; }
}
