/* Manifesto editorial composition. Loaded after legacy page rules. */

body.manifesto-editorial {
  padding-top: 56px;
  background: #F9FAFB;
}

.manifesto-editorial .sec-more { display: none !important; }
.manifesto-editorial .sec-collapse {
  max-height: none !important;
  overflow: visible !important;
}
.manifesto-editorial .sec-collapse::after { display: none !important; }

.manifesto-editorial .hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  margin: 0;
  padding: 80px 0 40px;
  display: grid;
  align-items: end;
  text-align: left;
  overflow: hidden;
  background: #1A2129;
  color: #fff;
}

.manifesto-editorial .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.manifesto-editorial .hero .container {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-width: 1180px;
  padding-inline: 20px;
}

.manifesto-editorial .hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 14vw, 78px);
  line-height: .98;
  letter-spacing: -.035em;
  color: #fff;
  text-align: left;
  text-wrap: balance;
}

.manifesto-editorial .hero h1 span { color: #FF5B04; }

.manifesto-editorial .hero .manifesto-lead {
  max-width: 690px;
  margin: 22px 0 0;
  font-family: var(--font-reading);
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.48;
  color: rgba(255,255,255,.7);
}

.manifesto-editorial .hero #product {
  justify-content: flex-start !important;
  margin-top: 28px !important;
}

.national-gap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  padding: 1px;
  background: rgba(255,255,255,.14);
}

.national-gap-item {
  min-width: 0;
  padding: 18px 14px;
  background: rgba(255,255,255,.035);
}

.national-gap-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(27px, 8vw, 42px);
  font-weight: 400;
  line-height: 1;
  color: #FF5B04;
}

.national-gap-item span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-reading);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.66);
}

.chapter-index {
  position: sticky;
  top: 56px;
  z-index: 50;
  width: 100%;
  display: flex;
  gap: 0;
  padding: 0 16px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.chapter-index::-webkit-scrollbar { display: none; }
.chapter-index a {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}
.chapter-index a:hover,
.chapter-index a:focus-visible { color: var(--accent-text); }

.manifesto-editorial .side-timeline { display: none; }

.manifesto-editorial .section {
  padding: 56px 0;
}

.manifesto-editorial .section:nth-of-type(even) {
  background: #fff;
}

.manifesto-editorial .section > .container {
  max-width: 1120px;
  padding-inline: 20px;
}

.manifesto-editorial .section-title {
  max-width: 800px;
  font-size: clamp(31px, 8vw, 52px);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.manifesto-editorial .prose {
  max-width: 760px;
}

.manifesto-editorial .prose p,
.manifesto-editorial .what-if p,
.manifesto-editorial .manifesto p,
.manifesto-editorial .timeline-desc,
.manifesto-editorial .phase-card p,
.manifesto-editorial .crisis-stat .stat-desc,
.manifesto-editorial .evidence-card .ev-label {
  font-family: var(--font-reading);
}

.manifesto-editorial .prose p,
.manifesto-editorial .what-if p {
  font-size: 18px;
  line-height: 1.72;
}

.institution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 30px 0;
  padding: 1px;
  background: var(--border);
}

.institution-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
}
.institution-card img { width: 42px; height: 42px; margin-bottom: 32px; }
.institution-card strong {
  margin-top: auto;
  font-size: 19px;
}
.institution-card p {
  margin: 8px 0 0;
  font-family: var(--font-reading);
  color: var(--text-secondary);
  line-height: 1.55;
}

.manifesto-editorial .breaking {
  padding: 26px 22px;
  border-left-width: 2px;
}

.manifesto-editorial .crisis-grid {
  display: flex;
  width: 100vw;
  gap: 10px;
  margin: 28px 0 0 calc(50% - 50vw);
  padding: 0 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.manifesto-editorial .crisis-stat {
  flex: 0 0 min(80vw, 330px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.manifesto-editorial .crisis-stat .stat-num { font-size: 43px; }
.manifesto-editorial .crisis-stat .stat-desc { margin-top: auto; }

.manifesto-editorial #crisis blockquote {
  min-height: 180px;
  margin: 12px 0 0;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-left: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.manifesto-editorial .comparison-table-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-inline: 0;
}

.manifesto-editorial .timeline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 20px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.manifesto-editorial .timeline::before { display: none; }
.manifesto-editorial .timeline-item {
  flex: 0 0 min(82vw, 350px);
  min-height: 310px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}
.manifesto-editorial .timeline-dot { display: none; }
.manifesto-editorial .timeline-year {
  margin-bottom: 30px;
  font-size: 12px;
}
.manifesto-editorial .timeline-country {
  margin-top: auto;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
}
.manifesto-editorial .timeline-desc {
  font-size: 15px;
  line-height: 1.58;
}

.route-scenario {
  display: grid;
  gap: 1px;
  margin-bottom: 28px;
  padding: 1px;
  background: var(--border);
}
.route-stop,
.route-result {
  position: relative;
  padding: 22px;
  background: #fff;
}
.route-stop::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 24px;
  background: var(--accent);
}
.route-stop span,
.route-result span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.route-stop strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
}
.route-result {
  background: #1A2129;
  color: #fff;
}
.route-result strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 400;
  color: #FF5B04;
}

.manifesto-editorial .what-if {
  padding: 28px 22px;
  background: transparent;
  border: 0;
}

.manifesto-editorial .evidence-grid {
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--border);
}
.manifesto-editorial .evidence-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 0;
}
.manifesto-editorial .evidence-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 38px;
}
.manifesto-editorial .evidence-card .ev-stat {
  margin-top: auto;
  font-size: 43px;
}
.manifesto-editorial .evidence-card .ev-label {
  font-size: 15px;
}

.manifesto-editorial .manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--border);
  border: 0;
}
.manifesto-editorial .manifesto h3 {
  margin: 0;
  padding: 26px 22px;
  background: #1A2129;
  color: #fff;
}
.manifesto-editorial .manifesto p {
  position: relative;
  min-height: 240px;
  margin: 0;
  padding: 70px 22px 24px;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  counter-increment: belief;
}
.manifesto-editorial .manifesto { counter-reset: belief; }
.manifesto-editorial .manifesto p::before {
  content: '0' counter(belief);
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent-text);
}

.manifesto-editorial .phase-grid {
  gap: 1px;
  padding: 1px;
  background: var(--border);
}
.manifesto-editorial .phase-card {
  position: relative;
  margin: 0;
  padding: 24px 22px;
  grid-template-columns: 48px 1fr;
  background: #fff;
  border: 0;
}
.manifesto-editorial .phase-num {
  font-family: var(--font-display);
  font-weight: 400;
}
.manifesto-editorial .phase-card + .phase-card::before {
  content: '';
  position: absolute;
  left: 45px;
  top: -18px;
  width: 1px;
  height: 34px;
  background: var(--accent);
}

@media (min-width: 700px) {
  body.manifesto-editorial { padding-top: 64px; }
  .manifesto-editorial .hero { min-height: 720px; padding-block: 110px 64px; }
  .manifesto-editorial .hero .container,
  .manifesto-editorial .section > .container { padding-inline: 28px; }
  .manifesto-editorial .hero h1 { font-size: clamp(72px, 9vw, 110px); }
  .national-gap { max-width: 760px; }
  .institution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manifesto-editorial #crisis .sec-collapse > .fade-in:not(.prose) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .route-scenario { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .manifesto-editorial .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-editorial .manifesto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-editorial .manifesto h3 { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .chapter-index { display: none; }
  .manifesto-editorial .side-timeline { display: flex; }
  .manifesto-editorial .crisis-grid {
    width: auto;
    margin-left: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .manifesto-editorial .crisis-stat { min-width: 0; }
  .manifesto-editorial .comparison-table-wrap {
    width: auto;
    margin-left: 0;
    border-inline: 1px solid var(--border);
  }
  .manifesto-editorial .timeline {
    width: auto;
    margin-left: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .manifesto-editorial .timeline-item { min-width: 0; }
  .manifesto-editorial .evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manifesto-editorial .manifesto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
