/*
 * DiffuseMind Design System v2 — Synthesis Report Styles
 * Page-specific styles for the weekly intelligence report.
 * Requires: site.css (loaded first)
 */

/* ===== PAGE LAYOUT ===== */
.page-content {
  padding: 48px 0 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}

.page-subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-light);
}

.section-header-intelligence {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ===== CONTENT CARDS ===== */
.content-card,
.article-group-card {
  background: var(--surface-warm);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rule-light);
}

.article-group-card.featured {
  background: var(--surface-warm);
}

.article-group-card p {
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 0.75em;
}

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

/* ===== SECTION PROSE (unwrapped content — Landscape Pulse, Forward Look) ===== */
.section-prose {
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 1rem;
}

.section-prose p {
  margin-bottom: 0.75em;
}

.section-prose p:last-child {
  margin-bottom: 0;
}

/* ===== DEVELOPMENT CARDS ===== */
.group-header {
  margin-bottom: 12px;
}

.group-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
}

.group-title a {
  color: var(--ink);
  text-decoration: none;
}

.group-title a:hover {
  color: var(--accent);
}

.publisher-list {
  margin-top: 11px;
}

.significance-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b5a45;
  background: #e8dfd4;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.group-content {
  margin-bottom: 12px;
}

.group-summary > div {
  margin-bottom: 0.75em;
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.group-summary > div:last-child {
  margin-bottom: 0;
}

.group-summary p {
  margin: 0;
}

.group-footer {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--rule-light);
}

.group-footer strong {
  font-weight: 600;
  color: var(--ink-muted);
}

/* Entity tags */
.upvote {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-right: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.upvote:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== ENTITY MOMENTUM TABLE ===== */
.momentum-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.momentum-table th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid var(--rule);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.momentum-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink);
}

.link-accent {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.link-accent:hover {
  color: var(--accent-deep);
}

/* ===== EMERGING SIGNAL ===== */
.emerging-signal {
  border-left: 3px solid var(--warning);
  padding-left: 1rem;
  margin: 0;
}

/* ===== FORWARD LOOK ===== */
.forward-list {
  padding-left: 1.5rem;
  margin: 0;
}

.forward-list li {
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.forward-list li:last-child {
  margin-bottom: 0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: var(--rule-light);
  margin: 2.5rem 0;
}


.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  color: #fff;
  background: var(--accent-deep);
  border: 1px solid var(--accent-deep);
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--rule);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}

/* ===== CONFIDENTIAL NOTICE ===== */
.confidential-notice {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 3rem;
}

/* ===== SYNTHESIS END-FOOTER (deep navy CTA block) ===== */
.synthesis-end-footer {
  background: var(--accent-deep);
  padding: 60px 0 0;
  margin: 0;
  color: #fff;
}

/* Paint page bottom navy so no white line peeks below the footer */
html:has(.synthesis-end-footer) {
  background: var(--accent-deep);
}

.end-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
}

.end-footer-brand .end-footer-wordmark {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.end-footer-brand .end-footer-tagline {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.end-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.end-footer-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.end-footer-links a:hover {
  color: #fff;
}

.end-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
}

.end-footer-bottom span {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}

.end-footer-bottom a {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.end-footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Hide standard site-footer on synthesis pages (absorbed into navy block) */
.synthesis-end-footer + .site-footer {
  display: none;
}

@media (max-width: 640px) {
  .end-footer-main {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .end-footer-links {
    align-items: center;
  }

  .end-footer-bottom {
    text-align: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-tertiary { color: var(--ink-muted); }
.text-sm { font-size: 0.8rem; }
.lead { font-family: var(--sans); font-size: 0.95rem; font-weight: 300; color: var(--ink-muted); }

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] .article-group-card {
  background: var(--surface-warm);
  border-color: var(--rule);
}

[data-theme="dark"] .significance-badge {
  background: var(--rule);
  color: var(--ink-muted);
}

[data-theme="dark"] .upvote {
  border-color: var(--rule);
  color: var(--accent);
}

[data-theme="dark"] .upvote:hover {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .page-title { font-size: 1.6rem; }

  .group-header {
    flex-direction: column;
  }

  .article-group-card {
    padding: 1rem;
    overflow-x: auto;
  }

  .momentum-table {
    font-size: 0.75rem;
  }


  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

