/* ==========================================================================
   NEWSPAPER.CSS — Core Shared Styles
   Rewind Daily (broadsheet) & The Daily Hoopoe (magazine)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties — Defaults (overridden per edition)
   -------------------------------------------------------------------------- */
:root {
  --bg: #f5f0e8;
  --text: #1a2332;
  --accent: #c49b3c;
  --headline: #1a2332;
  --border: #d4c5a9;
  --red: #8b2500;
  --muted: #6b5b47;
  --white: #ffffff;
  --surface: #fdfcf9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--headline);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background-color: var(--accent);
  color: var(--white);
}


/* --------------------------------------------------------------------------
   Typography Utility Classes
   -------------------------------------------------------------------------- */
.font-headline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

.font-ui {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-magazine {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
}

.font-arabic {
  font-family: 'Amiri', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
  direction: rtl;
  text-align: right;
  line-height: 2;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-justify { text-align: justify; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-red    { color: var(--red); }
.text-small  { font-size: 0.85rem; }
.text-tiny   { font-size: 0.75rem; }
.text-large  { font-size: 1.25rem; }

.italic { font-style: italic; }
.bold   { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.01em; }


/* --------------------------------------------------------------------------
   Newspaper Grid System — 12 Columns
   -------------------------------------------------------------------------- */
.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.col-full       { grid-column: span 12; }
.col-half       { grid-column: span 6; }
.col-third      { grid-column: span 4; }
.col-two-thirds { grid-column: span 8; }
.col-quarter    { grid-column: span 3; }

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .newspaper-grid {
    gap: 1rem;
  }

  .col-half,
  .col-third,
  .col-two-thirds,
  .col-quarter,
  .col-1, .col-2, .col-3, .col-4,
  .col-5, .col-6, .col-7, .col-8,
  .col-9, .col-10, .col-11 {
    grid-column: span 12;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .col-quarter {
    grid-column: span 6;
  }

  .col-third {
    grid-column: span 6;
  }
}


/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  width: 100%;
  border-top: 4px solid var(--text);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.masthead::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--border);
  position: absolute;
  bottom: -4px;
  left: 0;
}

.masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--headline);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.masthead-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.masthead-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.masthead-rule {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}


/* --------------------------------------------------------------------------
   Section Dividers
   -------------------------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--border);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.section-divider::before {
  margin-right: 1rem;
}

.section-divider::after {
  margin-left: 1rem;
}

.section-divider span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

/* Default ornament when no content provided */
.section-divider:empty::before {
  margin-right: 0.5rem;
}

.section-divider:empty::after {
  margin-left: 0.5rem;
}

.section-divider:empty::before {
  flex: 1;
}

.section-divider:empty::after {
  flex: 1;
}

/* Ornamental diamond divider */
.section-divider--ornament::before {
  margin-right: 0;
}

.section-divider--ornament::after {
  margin-left: 0;
}

.section-divider--ornament {
  display: block;
  text-align: center;
  border: none;
  position: relative;
  height: 1px;
  background-color: var(--border);
}

.section-divider--ornament::before {
  content: '\25C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg);
  padding: 0 0.75rem;
  font-size: 0.6rem;
  color: var(--muted);
  height: auto;
  flex: none;
  margin: 0;
}


/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--headline);
  line-height: 1.3;
}

.section-header--small {
  font-size: 1.1rem;
  border-bottom-width: 1px;
}

.section-header--accent {
  border-bottom-color: var(--accent);
}

.section-subheader {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */
.article-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--headline);
  margin-bottom: 0.5rem;
}

.article-headline--hero {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.article-headline--secondary {
  font-size: 1.4rem;
}

.article-headline--tertiary {
  font-size: 1.15rem;
}

.article-subheadline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: justify;
  color: var(--text);
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article-body p {
  margin-bottom: 0.85rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article-byline strong {
  color: var(--text);
  font-weight: 600;
}

.article-lead {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-image {
  margin: 1rem 0;
  position: relative;
}

.article-image figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   Drop Cap
   -------------------------------------------------------------------------- */
.drop-cap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--accent);
  font-weight: 900;
}


/* --------------------------------------------------------------------------
   Verse References & Badges
   -------------------------------------------------------------------------- */
.verse-ref {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.verse-ref::before {
  content: '[';
  color: var(--muted);
  font-weight: 400;
}

.verse-ref::after {
  content: ']';
  color: var(--muted);
  font-weight: 400;
}

.verse-ref:hover {
  text-decoration: underline;
}

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.priority-badge--highest {
  background-color: #8b2500;
  color: #fce4d6;
}

.priority-badge--high {
  background-color: #c49b3c;
  color: #fdf8ef;
}

.priority-badge--medium {
  background-color: #5a6e4e;
  color: #e8efe4;
}

.priority-badge--low {
  background-color: #7f8c8d;
  color: #ecf0f1;
}

.priority-badge--lowest {
  background-color: #b0a89a;
  color: #faf8f5;
}

.category-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.category-badge--prophet {
  background-color: #c49b3c;
  color: #fdf8ef;
}

.category-badge--spiritual_entity {
  background-color: #7b5ea7;
  color: #f0ebf5;
}

.category-badge--group {
  background-color: #2d5a3d;
  color: #e0f0e6;
}

.category-badge--historical {
  background-color: #8b4513;
  color: #fae8d8;
}


/* --------------------------------------------------------------------------
   Quote Block
   -------------------------------------------------------------------------- */
.quote-block {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.quote-block--large {
  font-size: 1.3rem;
  padding-left: 1.5rem;
  border-left-width: 4px;
}


/* --------------------------------------------------------------------------
   Speaker & Stats
   -------------------------------------------------------------------------- */
.speaker-name {
  font-family: 'Inter', sans-serif;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--headline);
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--headline);
  line-height: 1.1;
}

.stat-number--large {
  font-size: 3rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   Section: Breaking News
   -------------------------------------------------------------------------- */
.section-breaking-news {
  background-color: color-mix(in srgb, var(--bg) 90%, var(--text) 10%);
  border: 2px solid var(--text);
  padding: 1.5rem;
  position: relative;
}

.section-breaking-news::before {
  content: 'BREAKING';
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background-color: var(--red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.75rem;
}

.section-breaking-news .article-headline {
  font-size: 2.2rem;
  font-weight: 900;
}


/* --------------------------------------------------------------------------
   Section: Editorial
   -------------------------------------------------------------------------- */
.section-editorial {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.section-editorial .article-body {
  font-size: 1.15rem;
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   Section: Character Spotlight
   -------------------------------------------------------------------------- */
.section-character-spotlight {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.character-card {
  border: 1px solid var(--border);
  padding: 1rem;
  min-width: 250px;
  flex: 1;
  background-color: var(--surface);
  transition: box-shadow var(--transition-normal);
}

.character-card:hover {
  box-shadow: var(--shadow-md);
}

.character-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--headline);
}

.character-card__category {
  margin-bottom: 0.5rem;
}

.character-card__stats {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

.character-card__description {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   Section: Witness Testimony
   -------------------------------------------------------------------------- */
.section-witness-testimony {
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1px solid var(--border);
}

.testimony-item {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  break-inside: avoid;
}

.testimony-item__speaker {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--headline);
  margin-bottom: 0.25rem;
}

.testimony-item__text {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
}

.testimony-item__ref {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .section-witness-testimony {
    column-count: 1;
  }
}


/* --------------------------------------------------------------------------
   Section: Scene Report
   -------------------------------------------------------------------------- */
.section-scene-report {
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--bg) 95%, var(--accent) 5%) 100%);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.scene-group {
  margin-bottom: 1rem;
}

.scene-group:last-child {
  margin-bottom: 0;
}

.scene-group__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.scene-group__value {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
}

.scene-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}


/* --------------------------------------------------------------------------
   Section: Psychology Column — Need Bars
   -------------------------------------------------------------------------- */
.section-psychology-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .section-psychology-column {
    grid-template-columns: 1fr;
  }
}

.need-bar {
  height: 24px;
  background-color: color-mix(in srgb, var(--border) 50%, var(--bg) 50%);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.need-bar__fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
  min-width: 2px;
}

.need-bar__fill--physiological { background: linear-gradient(90deg, #8b4513, #a0522d); }
.need-bar__fill--safety        { background: linear-gradient(90deg, #2d5a3d, #3d7a52); }
.need-bar__fill--belonging     { background: linear-gradient(90deg, #c49b3c, #dab555); }
.need-bar__fill--esteem        { background: linear-gradient(90deg, #7b5ea7, #9575bd); }
.need-bar__fill--actualization { background: linear-gradient(90deg, #004aad, #1a6cd4); }
.need-bar__fill--transcendence { background: linear-gradient(90deg, #8b2500, #b33a1a); }

.need-bar__label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.need-bar__value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* --------------------------------------------------------------------------
   Section: Relationship Web
   -------------------------------------------------------------------------- */
.section-relationship-web {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.relationship-card {
  border: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface);
  transition: box-shadow var(--transition-fast);
  flex: 0 1 auto;
}

.relationship-card:hover {
  box-shadow: var(--shadow-sm);
}

.relationship-card__arrow {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.relationship-card__type {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.relationship-card__names {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   Section: Spiritual Barometer
   -------------------------------------------------------------------------- */
.section-spiritual-barometer {
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.barometer-gauge {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.barometer-gauge__level {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.barometer-gauge__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}

.barometer-gauge__marker--active {
  box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(196, 155, 60, 0.3);
}

.barometer-gauge__name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  flex: 1;
}

.barometer-gauge__score {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   Section: Power Index
   -------------------------------------------------------------------------- */
.section-power-index {
  list-style: none;
  counter-reset: power-rank;
}

.power-rank {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: power-rank;
}

.power-rank:last-child {
  border-bottom: none;
}

.power-rank::before {
  content: counter(power-rank);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.power-rank__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
}

.power-rank__score {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.power-rank__bar {
  width: 80px;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.power-rank__bar-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: width var(--transition-slow);
}


/* --------------------------------------------------------------------------
   Section: Consequence Ledger
   -------------------------------------------------------------------------- */
.section-consequence-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.section-consequence-ledger__header {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  background-color: color-mix(in srgb, var(--border) 40%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.section-consequence-ledger__header:first-child {
  border-right: 1px solid var(--border);
}

.section-consequence-ledger__action,
.section-consequence-ledger__consequence {
  padding: 0.75rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.section-consequence-ledger__action {
  border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
  .section-consequence-ledger {
    grid-template-columns: 1fr;
  }

  .section-consequence-ledger__action {
    border-right: none;
  }
}


/* --------------------------------------------------------------------------
   Section: Daily Action
   -------------------------------------------------------------------------- */
.section-daily-action {
  background-color: color-mix(in srgb, var(--accent) 8%, var(--bg) 92%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border) 70%);
  padding: 1.25rem;
}

.action-item {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
}

.action-item:last-child {
  margin-bottom: 0;
}

.action-item::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}


/* --------------------------------------------------------------------------
   Section: Dua Corner
   -------------------------------------------------------------------------- */
.section-dua-corner {
  background-color: color-mix(in srgb, var(--accent) 5%, var(--white) 95%);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}

.section-dua-corner::before {
  content: '\2726';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: color-mix(in srgb, var(--accent) 5%, var(--white) 95%);
  padding: 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
}

.section-dua-corner::after {
  content: '\2726';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: color-mix(in srgb, var(--accent) 5%, var(--white) 95%);
  padding: 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
}

.dua-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
  color: var(--text);
}

.dua-text--arabic {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.3rem;
  line-height: 2;
  font-style: normal;
  margin-bottom: 0.5rem;
}

.dua-source {
  text-align: center;
  margin-top: 0.75rem;
}


/* --------------------------------------------------------------------------
   Section: Reflection Pool
   -------------------------------------------------------------------------- */
.section-reflection-pool {
  list-style: none;
}

.reflection-question {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  border-bottom: 1px dotted var(--border);
}

.reflection-question:last-child {
  border-bottom: none;
}

.reflection-question::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: normal;
  color: var(--accent);
  line-height: 1;
}


/* --------------------------------------------------------------------------
   Section: Cross Reference
   -------------------------------------------------------------------------- */
.section-cross-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.section-cross-reference a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.section-cross-reference a:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  text-decoration: none;
}


/* --------------------------------------------------------------------------
   Section: Theme Cloud
   -------------------------------------------------------------------------- */
.section-theme-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.theme-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text);
  background-color: var(--surface);
  transition: all var(--transition-fast);
  cursor: default;
  white-space: nowrap;
}

.theme-tag:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.theme-tag--large {
  font-size: 0.9rem;
  padding: 4px 14px;
  font-weight: 600;
}

.theme-tag--small {
  font-size: 0.65rem;
  padding: 2px 8px;
}

.theme-tag--active {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}


/* --------------------------------------------------------------------------
   Section: Archetype Analysis
   -------------------------------------------------------------------------- */
.section-archetype-analysis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.archetype-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  background-color: var(--surface);
  transition: box-shadow var(--transition-normal);
}

.archetype-card:hover {
  box-shadow: var(--shadow-md);
}

.archetype-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.archetype-card__type {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.archetype-card__description {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* --------------------------------------------------------------------------
   Section: Voice of Verse (Audio)
   -------------------------------------------------------------------------- */
.section-voice-of-verse {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-voice-of-verse__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.section-voice-of-verse__play:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.section-voice-of-verse__info {
  flex: 1;
}

.section-voice-of-verse__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.section-voice-of-verse__meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

.section-voice-of-verse__progress {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.section-voice-of-verse__progress-bar {
  height: 100%;
  background-color: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}


/* --------------------------------------------------------------------------
   Section: Weekly Challenge
   -------------------------------------------------------------------------- */
.section-weekly-challenge {
  border: 2px dashed var(--accent);
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--accent) 4%, var(--white) 96%);
  text-align: center;
}

.section-weekly-challenge__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.section-weekly-challenge__description {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   Navigation — Edition Nav
   -------------------------------------------------------------------------- */
.edition-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--bg) 95%, var(--text) 5%);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.edition-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
}

.edition-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.edition-nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.edition-nav__links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.edition-nav__links a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .edition-nav {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}


/* --------------------------------------------------------------------------
   Hub Page
   -------------------------------------------------------------------------- */
.hub-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .hub-hero {
    grid-template-columns: 1fr;
  }
}

.hub-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  transition: background-color var(--transition-slow);
}

.hub-half--rewind {
  background-color: #f5f0e8;
}

.hub-half--rewind:hover {
  background-color: #f0ead8;
}

.hub-half--hoopoe {
  background-color: #faf5ef;
}

.hub-half--hoopoe:hover {
  background-color: #f5f0e5;
}

.hub-half__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-half__subtitle {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hub-half__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.hub-half__cta:hover {
  background-color: var(--text);
  color: var(--white);
  text-decoration: none;
}

.edition-card {
  border: 1px solid var(--border);
  padding: 1rem;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: left;
  text-decoration: none;
  color: var(--text);
  display: block;
  background-color: var(--surface);
}

.edition-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
}

.edition-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.edition-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.edition-card__excerpt {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.edition-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .edition-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .edition-card-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--accent);
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.site-footer__copy {
  margin-top: 0.5rem;
  font-size: 0.7rem;
}


/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .edition-nav,
  .site-footer,
  .section-voice-of-verse,
  .section-weekly-challenge,
  button,
  .btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 10pt;
  }

  .masthead {
    border-top-color: black !important;
    border-bottom-color: black !important;
  }

  .newspaper-grid {
    display: block;
  }

  .col-half,
  .col-third,
  .col-two-thirds,
  .col-quarter {
    width: 100%;
    float: none;
  }

  .article-headline {
    page-break-after: avoid;
  }

  .section-breaking-news,
  .section-dua-corner,
  .section-daily-action {
    border-color: black !important;
    background: white !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  .priority-badge,
  .category-badge {
    border: 1px solid #999 !important;
    background: transparent !important;
    color: black !important;
  }

  .need-bar__fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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


/* --------------------------------------------------------------------------
   Utility: Spacing
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }


/* --------------------------------------------------------------------------
   Utility: Display & Layout
   -------------------------------------------------------------------------- */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   Utility: Borders & Decorative
   -------------------------------------------------------------------------- */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-left   { border-left: 1px solid var(--border); }
.border-right  { border-right: 1px solid var(--border); }
.border        { border: 1px solid var(--border); }

.ornamental-rule {
  text-align: center;
  border: none;
  margin: 1.5rem 0;
  overflow: visible;
  position: relative;
  height: 1px;
  background-color: var(--border);
}

.ornamental-rule::before {
  content: '\2726  \2726  \2726';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg);
  padding: 0 1rem;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.5em;
}


/* --------------------------------------------------------------------------
   Scrollbar (Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}
