/* Base layout */
:root {
  --cs-bg: #050816;
  --cs-surface: #0b1020;
  --cs-surface-soft: #111827;
  --cs-accent: #38bdf8;
  --cs-accent-soft: rgba(56, 189, 248, 0.08);
  --cs-border-subtle: rgba(148, 163, 184, 0.25);
  --cs-text-main: #e5e7eb;
  --cs-text-muted: #9ca3af;
  --cs-eyebrow: #a5b4fc;
  --cs-heading: #f9fafb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 35%, #000 100%);
  color: var(--cs-text-main);
  line-height: 1.6;
}

/* Report container */
.cs-report {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* Header */
.cs-report__header {
  background: radial-gradient(circle at top left, #1d4ed8, #020617 65%);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem 2.25rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.cs-report__header::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.2), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.cs-report__header > * {
  position: relative;
  z-index: 1;
}

.cs-report__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-eyebrow);
  margin: 0 0 0.75rem;
}

.cs-report__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--cs-heading);
}

.cs-report__subtitle {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--cs-text-main);
  max-width: 36rem;
}

.cs-report__meta {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.78rem;
  color: var(--cs-text-muted);
}

.cs-report__meta-item {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.4);
}

/* Sections */
.cs-report__section {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  background: var(--cs-surface);
  border-radius: 1.3rem;
  border: 1px solid var(--cs-border-subtle);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.65);
}

.cs-report__section--outlook {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.06),
    rgba(52, 211, 153, 0.05)
  );
  border-color: rgba(52, 211, 153, 0.5);
}

.cs-report__section-title {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-heading);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.55rem;
}

.cs-report__section p {
  margin: 0.6rem 0;
  font-size: 0.96rem;
  color: var(--cs-text-main);
}

.cs-report__section ul {
  margin: 0.6rem 0 0.2rem 1.2rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--cs-text-main);
}

.cs-report__section li {
  margin: 0.25rem 0;
}

/* Cards on the Mediation index */
.cs-card {
  position: relative;
  margin-top: 1rem;
  padding: 1.5rem 1.35rem 1.3rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, #111827, #020617 75%);
  border: 1px solid var(--cs-border-subtle);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.cs-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.18), transparent 45%);
  opacity: 0.55;
  pointer-events: none;
}

.cs-card > * {
  position: relative;
  z-index: 1;
}

.cs-card--report {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cs-card__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--cs-heading);
}

.cs-card__summary {
  margin: 0.3rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--cs-text-main);
}

.cs-card__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: var(--cs-accent);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.cs-card__button:hover {
  background: var(--cs-accent-soft);
  border-color: var(--cs-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* TOC on YTD page */
.cs-report__toc {
  margin-top: 1.8rem;
  padding: 1.4rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.cs-report__toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cs-text-muted);
}

.cs-report__toc-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.cs-report__toc-list a {
  color: var(--cs-accent);
  text-decoration: none;
}

.cs-report__toc-list a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .cs-report {
    padding: 2rem 1.1rem 2.5rem;
  }

  .cs-report__header {
    padding: 1.6rem 1.3rem 1.9rem;
  }

  .cs-report__meta {
    flex-direction: column;
  }

  .cs-report__section {
    padding: 1.4rem 1.2rem;
  }
}
