/* =============================================================================
   YMYL Price-Forecast Editorial Section — Visual Overhaul v2
   Loaded only on singular coin pages + methodology/editorial-standards.
   ============================================================================= */

/* === Editorial article shell === */
.ed-forecast {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
  position: relative;
}

.ed-forecast-header {
  margin-bottom: 2.5rem;
}

.ed-forecast-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #0a0a0a;
  margin: 0 0 1rem 0;
}

.ed-disclaimer {
  margin: 1rem 0 1.5rem 0;
  font-size: 0.875rem;
  color: #525252;
  border-left: 3px solid #ea580c;
  padding: 0.625rem 0.875rem;
  font-style: italic;
  background: linear-gradient(90deg, #fff7ed 0%, #fafaf9 100%);
  border-radius: 0 4px 4px 0;
}

/* === Byline block — newspaper-style === */
.ed-byline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #404040;
  padding: 1.25rem 0;
  border-top: 2px solid #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.5rem;
}

.ed-byline a {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ea580c;
}

.ed-byline a:hover {
  color: #ea580c;
}

.ed-byline-credential {
  color: #6b7280;
  font-weight: 400;
}

.ed-reviewer {
  font-size: 0.875rem;
  color: #525252;
}

.ed-dates {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  padding-top: 0.25rem;
  border-top: 1px dashed #e5e7eb;
  margin-top: 0.25rem;
}

.ed-dates time {
  font-style: normal;
  color: #1a1a1a;
  font-weight: 600;
}

.ed-coi {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-radius: 4px;
}

/* === Table of Contents (sticky, generated client-side) === */
.ed-toc {
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #ea580c;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.ed-toc-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ea580c;
  margin-bottom: 0.75rem;
  display: block;
}

.ed-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.ed-toc li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.ed-toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  counter-increment: toc-counter;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 700;
  min-width: 1.75rem;
}

.ed-toc ol {
  counter-reset: toc-counter;
}

.ed-toc a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}

.ed-toc a:hover {
  border-bottom-color: #ea580c;
  color: #ea580c;
}

/* === Body typography === */
.ed-forecast-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.ed-forecast-body section {
  margin-top: 2.5rem;
  scroll-margin-top: 2rem;
}

.ed-forecast-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem 0;
  color: #0a0a0a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a1a;
}

.ed-forecast-body h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 1.5rem 0 0.5rem 0;
  color: #1a1a1a;
}

.ed-forecast-body p {
  margin-bottom: 1rem;
}

.ed-forecast-body a {
  color: #ea580c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ed-forecast-body a:hover {
  text-decoration-thickness: 2px;
}

.ed-forecast-body strong {
  font-weight: 700;
  color: #0a0a0a;
}

/* === Analyst targets comparison table === */
.ed-analyst-table-wrap {
  margin: 1.5rem 0 2rem 0;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.ed-analyst-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  background: #fff;
}

.ed-analyst-table caption {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  padding: 0.75rem 1rem;
  text-align: left;
  background: #fafaf9;
  border-bottom: 1px solid #e5e7eb;
}

.ed-analyst-table thead th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #6b7280;
  text-align: left;
  padding: 0.625rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.ed-analyst-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.ed-analyst-table tbody tr:last-child td {
  border-bottom: none;
}

.ed-analyst-table tbody tr:hover {
  background: #fafaf9;
}

.ed-analyst-table .ed-analyst-name {
  font-weight: 700;
  color: #0a0a0a;
}

.ed-analyst-table .ed-analyst-firm {
  color: #6b7280;
  font-size: 0.8125rem;
  display: block;
  margin-top: 0.125rem;
}

.ed-analyst-table .ed-target {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: #0a0a0a;
  font-size: 1rem;
}

.ed-analyst-table .ed-target--bull {
  color: #16a34a;
}

.ed-analyst-table .ed-target--bear {
  color: #dc2626;
}

/* === Path / Scenario cards (3-column grid) === */
.ed-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

@media (min-width: 768px) {
  .ed-path-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ed-path-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ed-path-card--a {
  border-top: 4px solid #16a34a;
}

.ed-path-card--b {
  border-top: 4px solid #d97706;
}

.ed-path-card--c {
  border-top: 4px solid #dc2626;
}

.ed-path-card .ed-path-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.ed-path-card--a .ed-path-label { color: #16a34a; }
.ed-path-card--b .ed-path-label { color: #d97706; }
.ed-path-card--c .ed-path-label { color: #dc2626; }

.ed-path-card h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0 0 0.75rem 0;
  color: #0a0a0a;
}

.ed-path-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0.625rem;
  color: #262626;
}

.ed-path-card .ed-watch {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.8125rem;
  color: #525252;
}

.ed-path-card .ed-watch-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

/* === Catalyst cards (2-column grid on desktop) === */
.ed-catalyst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin: 1.5rem 0 2rem 0;
}

@media (min-width: 768px) {
  .ed-catalyst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ed-catalyst-card {
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.125rem 1.25rem;
  position: relative;
}

.ed-catalyst-card::before {
  content: "▲";
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  color: #ea580c;
  font-size: 0.75rem;
}

.ed-catalyst-card h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 800;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem 0;
  padding-right: 1.5rem;
  color: #0a0a0a;
  line-height: 1.25;
}

.ed-catalyst-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 0;
  color: #262626;
}

.ed-catalyst-card .ed-catalyst-watch {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #d4d4d4;
  font-size: 0.8125rem;
  color: #525252;
  font-style: italic;
}

/* === Key stats grid (KPI box at top of editorial) === */
.ed-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
}

@media (min-width: 768px) {
  .ed-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ed-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.875rem 1rem;
}

.ed-stat-card .ed-stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.ed-stat-card .ed-stat-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ed-stat-card .ed-stat-detail {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* === Pull quote === */
.ed-pullquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #0a0a0a;
  border-left: 4px solid #ea580c;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  text-wrap: balance;
}

.ed-pullquote::before {
  content: "\201C";
  color: #ea580c;
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.25rem;
}

.ed-pullquote-attr {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: #6b7280;
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 0.75rem;
}

/* === Callout boxes === */
.ed-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #fafaf9;
  border-left: 3px solid #ea580c;
  border-radius: 4px;
}

.ed-callout--coverage-note {
  background: #fffbeb;
  border-left-color: #d97706;
}

.ed-callout p {
  margin: 0;
}

/* === Sources list === */
.ed-forecast-body #sources {
  background: #fafaf9;
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 3rem;
}

.ed-forecast-body #sources h3 {
  border-bottom: 2px solid #ea580c;
  margin-top: 0;
}

.ed-forecast-body #sources ol {
  list-style: none;
  padding-left: 0;
  counter-reset: source-counter;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ed-forecast-body #sources li {
  counter-increment: source-counter;
  padding-left: 2.25rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: #404040;
}

.ed-forecast-body #sources li::before {
  content: counter(source-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.0625rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: #ea580c;
  background: #fff;
  border: 1px solid #ea580c;
  border-radius: 3px;
  padding: 0.0625rem 0.375rem;
}

/* === Live label === */
.ed-live-label {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ea580c;
  background: #fff7ed;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* === Methodology footer link === */
.ed-forecast-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid #1a1a1a;
}

.ed-methodology-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ed-methodology-link a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #ea580c;
}

.ed-methodology-link a:hover {
  background: #fff7ed;
}

/* === T3 modifier === */
.ed-forecast--t3 .ed-forecast-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* === Stable modifier === */
.ed-forecast--stable .ed-forecast-header h2 {
  color: #0c4a6e;
}

/* === FAQ section === */
.ed-faq-section {
  margin-top: 3rem;
}

.ed-faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.ed-faq-item summary {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #0a0a0a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ed-faq-item summary::after {
  content: "+";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 400;
  color: #ea580c;
  font-size: 1.25rem;
  margin-left: 1rem;
}

.ed-faq-item[open] summary::after {
  content: "−";
}

.ed-faq-item summary::-webkit-details-marker {
  display: none;
}

.ed-faq-item p {
  margin: 0.75rem 0 0 0;
  color: #404040;
  font-size: 0.9375rem;
  line-height: 1.6;
}
