:root {
  --risk-ink: #0f172a;
  --risk-ink-soft: #334155;
  --risk-muted: #64748b;
  --risk-line: #dbe3f0;
  --risk-surface: rgba(255, 255, 255, 0.88);
  --risk-surface-strong: #ffffff;
  --risk-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --risk-radius-xl: 28px;
  --risk-radius-lg: 22px;
  --risk-radius-md: 16px;
  --risk-brand: #2563eb;
  --risk-brand-deep: #12306e;
  --risk-accent: #bfdbfe;
  --risk-warm: #f59e0b;
  --risk-success: #059669;
}

* {
  box-sizing: border-box;
}

body.risk-article-page {
  margin: 0;
  color: var(--risk-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
    radial-gradient(circle at 0% 24%, rgba(14, 165, 233, 0.08), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 38%, #f3f7fb 100%);
}

.risk-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.risk-breadcrumb {
  margin: 10px 0 14px;
  font-size: 0.9rem;
  color: var(--risk-muted);
}

.risk-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #173174 48%, #10214d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--risk-radius-xl);
  padding: 36px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.risk-hero::before,
.risk-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.risk-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 10% 90%, rgba(96, 165, 250, 0.18), transparent 22%);
}

.risk-hero::after {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.14), transparent 64%);
}

.risk-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.82fr);
  gap: 28px;
  align-items: end;
}

.risk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #bfdbfe;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16);
}

.risk-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 4.7vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.risk-hero-lead {
  margin-top: 16px;
  max-width: 760px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
}

.risk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.risk-btn,
.risk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.risk-btn {
  background: #ffffff;
  color: var(--risk-brand-deep);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.risk-btn:hover,
.risk-btn-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.risk-btn:hover {
  background: #dbeafe;
}

.risk-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.risk-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.risk-hero-panel {
  display: grid;
  gap: 14px;
}

.risk-panel-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 18px;
}

.risk-panel-card h2,
.risk-panel-card h3 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-panel-card p,
.risk-panel-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.6;
}

.risk-hero-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.risk-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
}

.risk-pill-label {
  display: block;
  margin-bottom: 4px;
  color: #bfdbfe;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.risk-pill-value {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 320px;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.risk-main {
  display: grid;
  gap: 20px;
}

.risk-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--nav-top-offset) + 24px);
  display: grid;
  gap: 16px;
}

.risk-card {
  background: var(--risk-surface);
  border: 1px solid var(--risk-line);
  border-radius: var(--risk-radius-lg);
  padding: 22px;
  box-shadow: var(--risk-shadow);
}

.risk-card h2,
.risk-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.risk-card p {
  margin: 0 0 12px;
  color: var(--risk-ink-soft);
}

.risk-card p:last-child,
.risk-card ul:last-child,
.risk-card ol:last-child {
  margin-bottom: 0;
}

.risk-card ul,
.risk-card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--risk-ink-soft);
}

.risk-card li + li {
  margin-top: 10px;
}

.risk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--risk-brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.risk-kicker::before {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--risk-brand), #60a5fa);
}

.risk-highlight-grid,
.risk-detail-grid,
.risk-related-grid,
.risk-steps-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.risk-mini-card {
  background: var(--risk-surface-strong);
  border: 1px solid var(--risk-line);
  border-radius: var(--risk-radius-md);
  padding: 16px;
}

.risk-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.risk-mini-card p {
  margin: 0;
  font-size: 0.96rem;
}

.risk-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.risk-checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.risk-checklist li::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0, rgba(37, 99, 235, 0.18) 34%, transparent 36%),
    linear-gradient(135deg, #60a5fa, var(--risk-brand));
  box-shadow: inset 0 0 0 6px #eff6ff;
}

.risk-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.risk-summary-list li {
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--risk-ink-soft);
}

.risk-takeaway {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #bfdbfe;
}

.risk-methodology {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
}

.risk-related-card {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98));
  border: 1px solid var(--risk-line);
  border-radius: var(--risk-radius-md);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.risk-related-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.08);
}

.risk-related-card span {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--risk-brand);
}

.risk-related-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--risk-ink);
}

.risk-related-card p {
  margin: 0;
  color: var(--risk-muted);
  font-size: 0.94rem;
}

.risk-sidebar .risk-card h3 {
  font-size: 1.05rem;
}

.risk-meta {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--risk-muted);
}

.risk-inline-link,
.risk-card a,
.risk-related-card,
.risk-meta a {
  color: var(--risk-brand);
}

.risk-card a:hover,
.risk-meta a:hover {
  color: #1d4ed8;
}

body.risk-article-page.risk-comparison-page {
  background:
    radial-gradient(circle at 90% 8%, rgba(29, 78, 216, 0.16), transparent 30%),
    radial-gradient(circle at 0% 30%, rgba(14, 165, 233, 0.12), transparent 26%),
    radial-gradient(circle at 100% 80%, rgba(139, 92, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #f3f6fc 42%, #ebf1fa 100%);
}

.risk-comparison-page .risk-breadcrumb {
  margin-top: 8px;
}

.risk-comparison-page .risk-hero {
  background:
    radial-gradient(900px 360px at 50% -120px, rgba(165, 180, 252, 0.25), transparent 70%),
    linear-gradient(140deg, #0a0f24 0%, #112050 32%, #1e1b4b 60%, #312e81 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.22),
    0 12px 30px rgba(67, 56, 202, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.risk-comparison-page .risk-hero::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 10% 90%, rgba(96, 165, 250, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, 0.16), transparent 50%);
}

.risk-comparison-page .risk-hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: top left;
  width: 100%;
  height: 100%;
  inset: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  mask-image: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
}

.risk-comparison-page .risk-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.risk-comparison-page .risk-eyebrow {
  color: #c7d2fe;
}

.risk-comparison-page .risk-eyebrow::before {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  box-shadow: 0 0 0 6px rgba(165, 180, 252, 0.18);
}

.risk-comparison-page .risk-panel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.risk-comparison-page .risk-panel-card h2,
.risk-comparison-page .risk-panel-card h3 {
  color: #c7d2fe;
}

.risk-comparison-page .risk-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.risk-comparison-page .risk-pill-label {
  color: #c7d2fe;
}

.risk-comparison-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-comparison-stat {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px -12px rgba(15, 23, 42, 0.5);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.risk-comparison-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 180, 252, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 38px -14px rgba(67, 56, 202, 0.5);
}

.risk-comparison-stat::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a5b4fc, #60a5fa, #38bdf8);
}

.risk-comparison-stat-label {
  margin: 0;
  color: #c7d2fe;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-comparison-stat-value {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.risk-comparison-page .risk-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.02),
    0 22px 40px -28px rgba(37, 99, 235, 0.18);
}

.risk-comparison-page .risk-card.risk-takeaway {
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(165, 180, 252, 0.18), transparent 60%),
    linear-gradient(135deg, #eef2ff 0%, #f0f7ff 100%);
  border: 1px solid #c7d2fe;
}

.risk-comparison-page .risk-card.risk-methodology {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(254, 215, 170, 0.3), transparent 60%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

.risk-comparison-page .risk-mini-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 26px -16px rgba(37, 99, 235, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.risk-comparison-page .risk-mini-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 22px 42px -22px rgba(67, 56, 202, 0.32);
}

.risk-comparison-page .risk-card h2 {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.risk-comparison-page .risk-kicker {
  color: #4338ca;
}

.risk-comparison-page .risk-kicker::before {
  background: linear-gradient(90deg, #4338ca, #8b5cf6);
}

@media (max-width: 980px) {
  .risk-hero-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .risk-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  body.risk-article-page #nav-placeholder + main.risk-shell {
    padding-top: calc(var(--nav-top-offset) + var(--nav-height) + 8px) !important;
  }

  .risk-shell {
    padding: 0 16px 56px;
  }

  .risk-breadcrumb {
    margin: 4px 0 12px;
    font-size: 0.82rem;
  }

  .risk-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .risk-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.06;
  }

  .risk-hero-lead {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .risk-highlight-grid,
  .risk-detail-grid,
  .risk-related-grid,
  .risk-steps-grid,
  .risk-hero-metrics {
    grid-template-columns: 1fr;
  }

  .risk-hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .risk-comparison-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .risk-btn,
  .risk-btn-secondary {
    width: 100%;
    min-height: 44px;
  }

  .risk-card {
    padding: 18px;
  }
}