/* ============================================
   TRIVIA DISNEY — World-Class Design System
   https://triviadisney.com
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Primary — Deep Royal Blue */
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-lighter: #5c6bc0;
  --primary-dark: #0d1452;
  --primary-darker: #080c2f;

  /* Accent — Magic Gold */
  --gold: #f9a825;
  --gold-light: #fdd835;
  --gold-dark: #c17900;
  --gold-glow: rgba(249, 168, 37, 0.25);

  /* Secondary — Enchanted Purple */
  --purple: #6a1b9a;
  --purple-light: #9c4dcc;
  --purple-glow: rgba(106, 27, 154, 0.15);

  /* Semantic Colors */
  --teal: #00897b;
  --red: #c62828;
  --green: #2e7d32;
  --orange: #e65100;

  /* Neutral */
  --cream: #fdf8f0;
  --warm-gray: #f5f0eb;
  --dark: #1a1a2e;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --text-muted: #8a95a5;
  --white: #ffffff;
  --border: #e8e0d6;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-gold: 0 8px 30px var(--gold-glow);
  --shadow-purple: 0 8px 30px var(--purple-glow);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 780px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-progress: 9999;
  --z-header: 1000;
  --z-backdrop: 999;
  --z-back-to-top: 998;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-dark); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 1.8em 0 0.6em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.45rem); margin: 1.5em 0 0.5em; }
h4 { font-size: 1.1rem; margin: 1.2em 0 0.4em; font-family: 'Lato', sans-serif; font-weight: 800; }
p { margin-bottom: 1.1em; }
ul, ol { margin: 0 0 1.2em 1.5em; }
li { margin: 0.4em 0; }

/* ── Reading Progress Bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--purple-light) 100%);
  z-index: var(--z-progress);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-darker) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 20px rgba(13, 20, 82, 0.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}
.site-logo span { color: var(--gold); margin-left: 1px; }
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); text-decoration: none; }
.site-nav a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  margin-left: 0.5rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(249,168,37,0.3);
}
.site-nav a.nav-cta:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 12px rgba(249,168,37,0.4); }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: linear-gradient(90deg, rgba(253,248,240,0.8), rgba(245,240,235,0.6));
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary-light); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* ── Main Layout ── */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
}
.article-content > h1 { text-align: center; margin-bottom: 0.5rem; }
.article-content > h1 + p { text-align: center; color: var(--text-light); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.5rem; }

/* ── Quick Answer Box ── */
.quick-answer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1.75rem 2.25rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--gold);
}
.quick-answer::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(249,168,37,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.quick-answer-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.quick-answer p { margin: 0; line-height: 1.7; opacity: 0.93; font-size: 0.98rem; }
.quick-answer a { color: var(--gold-light); text-decoration: underline; }

/* ── Table of Contents ── */
.toc {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.toc h3 { margin-top: 0; font-size: 1rem; color: var(--dark); font-family: 'Lato', sans-serif; font-weight: 800; }
.toc ul { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 2rem; }
.toc li { margin: 0.3rem 0; }
.toc a { font-size: 0.92rem; font-weight: 600; }
@media (max-width: 600px) { .toc ul { grid-template-columns: 1fr; } }

/* ── Questions Box ── */
.questions-box { margin: 2rem 0; }
.q-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-light);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.q-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.q-item strong {
  font-size: 1.05rem;
  color: var(--dark);
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.q-item details { margin-top: 0.5rem; }
.q-item summary {
  color: var(--primary-light);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
}
.q-item summary:hover { color: var(--primary); }
.q-item details[open] summary { margin-bottom: 0.5rem; }
.q-item details p {
  background: linear-gradient(135deg, #f8f6f3, var(--warm-gray));
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 0;
  color: var(--text);
  border-left: 3px solid var(--gold);
}
.q-item details p strong { display: inline; font-size: 1rem; }

/* ── MC & TF Questions ── */
.mc-options { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.85rem 0; }
.mc-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.mc-options label:hover { background: #f0ece6; border-color: var(--border); }
.mc-options input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.tf-question { border-left-color: var(--purple); }
.mc-question { border-left-color: var(--teal); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-darker) 100%);
  color: var(--white);
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,168,37,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(106,27,154,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); font-size: 1.5rem; margin: 0 0 0.6rem; position: relative; }
.cta-banner p { opacity: 0.88; max-width: 550px; margin: 0 auto 1.5rem; font-size: 1rem; position: relative; }

/* ── Sister Site Link ── */
.sister-link {
  background: linear-gradient(135deg, #b71c1c 0%, #7f0000 100%);
  color: var(--white);
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2.5rem auto;
  max-width: var(--content-width);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.sister-link::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.sister-link h3 { color: var(--white); margin: 0 0 0.4rem; font-size: 1.2rem; position: relative; }
.sister-link p { margin: 0; opacity: 0.88; font-size: 0.95rem; position: relative; }
.sister-link-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; position: relative; }

/* ── Buttons ── */
.btn-primary, .btn-secondary, .btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(249,168,37,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,168,37,0.4);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); text-decoration: none; }
.btn-white {
  background: var(--white);
  color: #b71c1c;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--gold-light); text-decoration: none; transform: translateY(-1px); }

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-top: 0; font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-light); font-size: 0.94rem; margin-bottom: 1rem; }
.card a { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.card a::after { content: "\2192"; transition: transform var(--transition-fast); }
.card a:hover::after { transform: translateX(3px); }
.card-blue { border-top-color: var(--primary-light); }
.card-gold { border-top-color: var(--gold); }
.card-purple { border-top-color: var(--purple); }
.card-teal { border-top-color: var(--teal); }
.card-red { border-top-color: var(--red); }
.card-green { border-top-color: var(--green); }
.card-orange { border-top-color: var(--orange); }

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-left: 4px solid var(--primary-light);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.blog-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.6rem; }
.blog-card a { font-weight: 700; font-size: 0.85rem; }
.blog-card .tag {
  display: inline-block;
  background: var(--warm-gray);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Category Cards Section ── */
.category-cards { margin: 3rem 0; }
.category-cards h2 { text-align: center; margin-bottom: 0.5rem; }
.category-cards > p { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }

/* ── Sample Section ── */
.sample-section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.sample-section h2 { margin-top: 0; }

/* ── Fact Cards ── */
.fact-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fact-card strong { color: var(--dark); }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(249,168,37,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(106,27,154,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  position: relative;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.2rem; opacity: 0.85; max-width: 620px; margin: 0 auto 2rem; position: relative; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 900px;
  margin: -2.5rem auto 3rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section Intro ── */
.section-intro { text-align: center; margin-bottom: 2.5rem; }
.section-intro h2 { margin-bottom: 0.5rem; }
.section-intro p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ── Quiz Container ── */
.quiz-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
  border: 1px solid var(--border);
}
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.quiz-score { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.quiz-timer { font-size: 1.1rem; font-weight: 700; color: var(--red); font-family: 'Playfair Display', serif; }
.quiz-progress { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.quiz-question { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); line-height: 1.4; }
.quiz-options { display: flex; flex-direction: column; gap: 0.85rem; }
.quiz-option {
  background: linear-gradient(135deg, #faf8f5, #f5f2ed);
  border: 2px solid transparent;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.quiz-option:hover { background: #f0ece6; border-color: var(--primary-light); transform: translateX(4px); }
.quiz-option.correct { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-color: var(--green); }
.quiz-option.wrong { background: linear-gradient(135deg, #ffebee, #ffcdd2); border-color: var(--red); }
.quiz-option.disabled { pointer-events: none; opacity: 0.7; }
.quiz-result { text-align: center; padding: 2rem; }
.quiz-result h2 { margin-bottom: 1rem; }
.quiz-result p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.quiz-start { text-align: center; padding: 3rem 2rem; }
.quiz-start h2 { margin-bottom: 1rem; }
.quiz-start p { max-width: 500px; margin: 0 auto 1.5rem; color: var(--text-light); }
.quiz-start .quiz-meta { display: flex; justify-content: center; gap: 2.5rem; margin: 2rem 0; flex-wrap: wrap; }
.quiz-meta-item { text-align: center; }
.quiz-meta-item .number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.quiz-meta-item .label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Team Names Grid ── */
.team-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.team-name-item {
  background: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
  transition: transform var(--transition-fast);
}
.team-name-item:hover { transform: translateX(4px); }

/* ── Timeline ── */
.timeline { margin: 2rem 0; }
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition-fast);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { transform: translateX(4px); }
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-dark);
  min-width: 80px;
  flex-shrink: 0;
  line-height: 1.3;
}
.timeline-content h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.timeline-content p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

/* ── Personality Quiz ── */
.pq-question {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.pq-question h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.pq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pq-option {
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all var(--transition-fast);
  background: var(--white);
}
.pq-option:hover { border-color: var(--primary-light); background: #f8f6ff; transform: translateY(-2px); }
.pq-option.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.pq-result {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}
.pq-result h2 { color: var(--white); margin-bottom: 0.5rem; }
.pq-result p { opacity: 0.9; }

/* ── QA Controls ── */
.qa-controls {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
.qa-controls button {
  background: var(--white);
  border: 2px solid var(--primary-light);
  color: var(--primary);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}
.qa-controls button:hover { background: var(--primary-light); color: var(--white); transform: translateY(-1px); }

/* ── Print Button ── */
.print-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition-fast);
}
.print-btn:hover { background: var(--warm-gray); border-color: var(--text-muted); }

/* ── Share Bar ── */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
.share-bar a {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.share-bar a:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.share-tw { background: #1da1f2; color: var(--white); }
.share-fb { background: #4267B2; color: var(--white); }
.share-pin { background: #E60023; color: var(--white); }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: var(--z-back-to-top);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── 404 Page ── */
.page-404 { text-align: center; padding: 5rem 1.5rem; }
.page-404 h1 { font-size: 7rem; color: var(--primary); margin-bottom: 0; line-height: 1; }
.page-404 h2 { margin-bottom: 1rem; color: var(--text); }
.page-404 p { color: var(--text-light); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Footer ── */
.site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #111122 100%);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-links h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; margin: 0; }
.footer-links li { margin: 0.5rem 0; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gold); }

/* ── Print Styles ── */
@media print {
  .site-header, .site-footer, .cta-banner, .sister-link,
  .back-to-top, .reading-progress, .share-bar, .qa-controls, .nav-toggle,
  .breadcrumb, .toc { display: none !important; }
  body { background: white; color: black; font-size: 12pt; line-height: 1.5; }
  .q-item { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  details summary { display: none; }
  details { display: block !important; }
  details p { display: block !important; background: #f5f5f5 !important; }
  a[href]::after { content: none; }
  .main { max-width: 100%; padding: 0; }
  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; margin-top: 1em; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: flex; animation: slideDown 0.3s ease; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .site-nav a { width: 100%; padding: 0.8rem 1rem; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .hero { padding: 3rem 1rem 4rem; }
  .hero h1 { font-size: 1.9rem; }
  .stats-bar { flex-direction: column; gap: 1.25rem; margin: -1.5rem 1rem 2rem; padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sister-link { flex-direction: column; text-align: center; padding: 1.75rem; }
  .sister-link-buttons { justify-content: center; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pq-options { grid-template-columns: 1fr; }
  .quiz-header { flex-direction: column; align-items: flex-start; }
  .article-content > h1 { font-size: 1.75rem; }
  .cta-banner { padding: 2rem 1.25rem; }
  .cta-banner h2 { font-size: 1.3rem; }
  .toc { padding: 1.25rem; }
  .toc ul { grid-template-columns: 1fr; }
  .sample-section { padding: 1.5rem; }
  .timeline-item { flex-direction: column; gap: 0.5rem; }
  .team-names-grid { grid-template-columns: 1fr; }
  .page-404 h1 { font-size: 5rem; }
  .quiz-container { padding: 1.5rem; }
  .q-item { padding: 1.1rem 1.25rem; }
  .quick-answer { padding: 1.25rem 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .stat-number { font-size: 1.6rem; }
  .quick-answer { padding: 1rem 1.25rem; }
  .q-item { padding: 1rem; }
  body { font-size: 16px; }
}
