/* =========================================================
   ARKATYPE FARMS: THE GREAT POND SCHEDULE
   Style Sheet & Design System
   ========================================================= */

:root {
  /* Core Palette - Warm Storybook Theme (Default) */
  --bg-page: #fbf7ee;
  --bg-card: #ffffff;
  --bg-card-subtle: #f6f0e2;
  --bg-accent: #eef6f0;
  
  --text-main: #2b231a;
  --text-muted: #5e5246;
  --text-lead: #3a2e22;

  --color-primary: #1e5c38;       /* Deep Forest Green */
  --color-primary-hover: #154529;
  --color-secondary: #9c4221;     /* Rich Terracotta */
  --color-accent-amber: #d97706;  /* Golden Honey */
  --color-accent-blue: #0284c7;   /* Pond Water Blue */
  --color-accent-blue-light: #e0f2fe;
  
  --border-light: #e5dac9;
  --border-card: #dcd0bc;
  --shadow-sm: 0 2px 8px rgba(43, 35, 26, 0.06);
  --shadow-md: 0 6px 20px rgba(43, 35, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 35, 26, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-newspaper: 'Playfair Display', Georgia, serif;
  --font-sans: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;

  --story-font-size: 1.18rem;
  --story-line-height: 1.85;
}

/* ----------------- Reading Themes ----------------- */
body.theme-sunny {
  --bg-page: #fffef2;
  --bg-card: #ffffff;
  --bg-card-subtle: #fdf6d8;
  --bg-accent: #f0fdf4;
  --text-main: #1c1917;
  --color-primary: #15803d;
  --color-accent-blue: #0284c7;
  --border-light: #fef08a;
  --border-card: #fde047;
}

body.theme-sepia {
  --bg-page: #f4ecd8;
  --bg-card: #fbf5e6;
  --bg-card-subtle: #ebdcb9;
  --bg-accent: #e5d2a6;
  --text-main: #382c1e;
  --color-primary: #5c3818;
  --border-light: #dfcaa2;
  --border-card: #cbaf7c;
}

body.theme-night {
  --bg-page: #131822;
  --bg-card: #1c2433;
  --bg-card-subtle: #242f42;
  --bg-accent: #1e3a47;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-lead: #f1f5f9;
  --color-primary: #38bdf8;
  --color-primary-hover: #7dd3fc;
  --color-secondary: #fb923c;
  --border-light: #334155;
  --border-card: #475569;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* ----------------- Font Size Controls ----------------- */
body.font-normal {
  --story-font-size: 1.05rem;
  --story-line-height: 1.75;
}
body.font-large {
  --story-font-size: 1.25rem;
  --story-line-height: 1.88;
}
body.font-xlarge {
  --story-font-size: 1.45rem;
  --story-line-height: 1.95;
}

/* ----------------- Base CSS Reset ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----------------- Top Announcement Bar ----------------- */
.gazette-top-bar {
  background: #1a3826;
  color: #d1fae5;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.3px;
}
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ----------------- Navigation ----------------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 15px;
}
.farm-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}
.story-logo {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.nav-links a:hover {
  background: var(--bg-accent);
  color: var(--color-primary);
}

/* ----------------- Hero Section ----------------- */
.hero-section {
  padding: 45px 0 35px 0;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid #fde68a;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.illustration-frame {
  position: relative;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pond-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.floating-caption {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #1e293b;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ----------------- Interactive Reading Controls Card ----------------- */
.reading-controls-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.controls-header {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.controls-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.audio-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border-card);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 24px;
  font-size: 1.05rem;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.appearance-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
}
.appearance-controls select {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
}
.narration-status {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-indicator {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ----------------- Section Headings ----------------- */
.section-heading {
  margin-bottom: 35px;
}
.text-center {
  text-align: center;
}
.sub-badge {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  display: inline-block;
  margin-bottom: 6px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------- Characters Section ----------------- */
.characters-section {
  padding: 55px 0 45px 0;
}
.character-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.char-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.char-avatar-box {
  background: var(--bg-card-subtle);
  padding: 24px;
  text-align: center;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.char-svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}
.char-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.char-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.char-role {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: block;
}
.char-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.char-species {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.char-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 18px;
  flex: 1;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trait-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-accent);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Specific Card Accents */
.card-black { border-top: 6px solid #1e293b; }
.card-gruff { border-top: 6px solid var(--color-primary); }
.card-brown { border-top: 6px solid #9c4221; }

/* ----------------- Story Chapters Section ----------------- */
.story-section {
  padding: 45px 0;
}
.story-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.chapter-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  padding: 38px 42px;
  position: relative;
  transition: all 0.3s ease;
}
.chapter-card.active-narration {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 92, 56, 0.25), var(--shadow-md);
}
.chapter-header {
  margin-bottom: 22px;
  border-bottom: 2px dashed var(--border-light);
  padding-bottom: 14px;
}
.chapter-number {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 4px;
}
.chapter-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.chapter-body p {
  font-size: var(--story-font-size);
  line-height: var(--story-line-height);
  color: var(--text-main);
  margin-bottom: 18px;
}
.interactive-quote {
  background: var(--bg-card-subtle);
  border-left: 5px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.interactive-quote p {
  margin-bottom: 10px;
}
.sound-chip {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.sound-chip:hover {
  background: var(--color-secondary);
  color: #ffffff;
}
.illustration-inline {
  text-align: center;
  margin: 26px 0;
}
.inline-photo {
  max-width: 220px;
  border-radius: var(--radius-md);
  border: 3px solid var(--border-card);
  box-shadow: var(--shadow-md);
}
.inline-caption {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.story-bullets {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-bullets li {
  background: var(--bg-card-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: var(--story-font-size);
  line-height: 1.6;
}
.highlight-box {
  background: #fef9c3;
  border-left-color: var(--color-accent-amber);
  color: #713f12;
}
.the-end-text {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-top: 30px;
  letter-spacing: 2px;
}

/* ----------------- Newspaper Special Edition Section ----------------- */
.newspaper-section {
  padding: 50px 0;
}
.newspaper-outer {
  background: #faf6eb;
  color: #26221c;
  border: 3px solid #3d372e;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 35px 40px;
  font-family: var(--font-newspaper);
}
body.theme-night .newspaper-outer {
  background: #ede6d6;
  color: #1a1714;
}
.newspaper-masthead {
  text-align: center;
}
.newspaper-meta-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 2px solid #26221c;
  padding-bottom: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.newspaper-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.1;
}
.newspaper-tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: #4a4237;
  margin-bottom: 12px;
}
.newspaper-rule {
  height: 4px;
  background: #26221c;
  border-top: 1px solid #26221c;
  border-bottom: 1px solid #26221c;
  margin-bottom: 25px;
}
.newspaper-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 35px;
}
.breaking-label {
  display: inline-block;
  background: #991b1b;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.newspaper-headline {
  font-size: 1.95rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 10px;
}
.newspaper-byline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #635849;
  border-bottom: 1px solid #d4c8b2;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.newspaper-lead-col p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}
.newspaper-quote {
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid #26221c;
  padding-left: 14px;
  margin: 18px 0;
  color: #1a1714;
}
.quote-author {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}
.newspaper-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-box {
  background: #f0e9d6;
  border: 1px solid #d4c8b2;
  border-radius: var(--radius-sm);
  padding: 16px;
}
.side-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid #c8bc9f;
  padding-bottom: 4px;
}
.poll-bar {
  margin-top: 10px;
}
.poll-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.bar-fill {
  height: 14px;
  background: #1e293b;
  border-radius: 4px;
}
.bar-fill-brown {
  background: #9c4221;
}
.classifieds p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ----------------- The Schedule Section ----------------- */
.schedule-section {
  padding: 50px 0;
}
.schedule-board {
  background: var(--bg-card);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 38px 35px;
  max-width: 900px;
  margin: 0 auto;
}
.schedule-board-header {
  text-align: center;
  margin-bottom: 30px;
}
.board-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--bg-accent);
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.schedule-board-header h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.board-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}
.schedule-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.time-card {
  background: var(--bg-card-subtle);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  transition: transform 0.2s;
}
.time-card:hover {
  transform: translateY(-3px);
}
.time-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}
.slot-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.slot-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.slot-guest {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.slot-activity {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Signatures */
.schedule-footer {
  border-top: 2px dashed var(--border-light);
  padding-top: 24px;
}
.signatures {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sig-box {
  text-align: center;
}
.sig-mark, .seal-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}
.sig-line {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-top: 1px solid var(--text-muted);
  padding-top: 4px;
  display: block;
}
.official-seal {
  background: var(--bg-accent);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
}
.print-action-bar {
  margin-top: 24px;
}

/* ----------------- Facts & Quiz Section ----------------- */
.facts-section {
  padding: 50px 0 70px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}
.fact-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.fact-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.fact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.fact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Quiz */
.quiz-card {
  background: var(--bg-card);
  border: 2px solid var(--color-accent-amber);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.quiz-header {
  text-align: center;
  margin-bottom: 25px;
}
.quiz-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.quiz-question {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.q-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.opt-btn:hover:not(:disabled) {
  background: var(--bg-accent);
  border-color: var(--color-primary);
}
.opt-btn.correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #14532d !important;
  font-weight: 700;
}
.opt-btn.wrong {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #7f1d1d !important;
}
.feedback {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}
.feedback.correct-text { color: #15803d; }
.feedback.wrong-text { color: #b91c1c; }

.quiz-score-banner {
  background: #ecfdf5;
  border: 2px solid #34d399;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}
.quiz-score-banner h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #065f46;
  margin-bottom: 6px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------- Footer ----------------- */
.site-footer {
  background: #192b20;
  color: #e2e8f0;
  padding: 45px 0 35px 0;
  border-top: 4px solid var(--color-primary);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.footer-left p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}
.footer-left .copy {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #64748b;
}
.quick-nav {
  font-family: var(--font-heading);
  font-size: 0.92rem;
}
.quick-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.quick-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ----------------- Responsive Breakpoints ----------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .character-cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .newspaper-content-grid {
    grid-template-columns: 1fr;
  }
  .schedule-slots-grid {
    grid-template-columns: 1fr;
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .chapter-card {
    padding: 24px 20px;
  }
  .newspaper-outer {
    padding: 20px 16px;
  }
  .newspaper-title {
    font-size: 2.2rem;
  }
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    gap: 8px;
  }
}

/* ----------------- Print Stylesheet ----------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .gazette-top-bar,
  .site-header,
  .reading-controls-card,
  .print-action-bar,
  .facts-section,
  .site-footer,
  .sound-chip {
    display: none !important;
  }
  .schedule-board {
    border: 2px solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}
