/* Supplier Risk Control page — scoped UI */
.risk-page {
  --rk-navy: #0f2c59;
  --rk-navy-panel: #0f2249;
  --rk-navy-mid: #1d3557;
  --rk-gold: #dac0a3;
  --rk-orange: #f97316;
}

/* Hero pricing box (navy hero) */
.risk-page .svc-module-hero--navy .svc-price-hero {
  display: block;
  margin: 1.75rem 0 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3.5vw, 1.85rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  background: transparent;
}

.risk-page .svc-module-hero--navy .svc-price-hero__amount {
  margin: 0 0 0.65rem;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--rk-orange);
}

.risk-page .svc-module-hero--navy .svc-price-hero__note {
  margin: 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.risk-page .svc-module-hero--navy .svc-price-hero__note strong {
  color: #ffffff;
}

.risk-page .risk-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.risk-page .risk-section--muted {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.risk-page .risk-section__head {
  margin: 0 0 0.65rem;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--rk-navy);
}

.risk-page .risk-section__lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted, #64748b);
}

/* Five dimensions grid */
.risk-dimensions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .risk-dimensions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .risk-dimensions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .risk-dim-card:nth-child(4),
  .risk-dim-card:nth-child(5) {
    grid-column: span 1;
  }
}

.risk-dim-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 44, 89, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.risk-dim-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 12px 32px rgba(15, 44, 89, 0.1);
}

.risk-dim-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--rk-orange), #ea580c);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.risk-dim-card__title {
  margin: 0;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rk-navy);
}

.risk-dim-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted, #64748b);
}

/* Document library */
.risk-doc-library {
  margin-top: 2.75rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  scroll-margin-top: calc(var(--header-h, 76px) + 1rem);
}

.risk-doc-library h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rk-navy);
}

.risk-doc-library > p {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted, #64748b);
}

.risk-doc-library .doc-report-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 600px) {
  .risk-doc-library .doc-report-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.risk-doc-library .doc-report-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.risk-doc-library .doc-report-links li::marker {
  content: none;
}

.risk-doc-library .doc-report-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200, #e2e8f0);
  background: var(--white, #fff);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cbd-navy-light, #1e3a5f);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.risk-doc-library .doc-report-links a:hover {
  border-color: var(--orange, #f97316);
  background: #fff7ed;
  color: var(--orange, #f97316);
  text-decoration: none;
}

.risk-doc-library .doc-report-links a::before {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f97316'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 1.5L18.5 9H13V3.5zM8 11h8v2H8v-2zm0 4h5v2H8v-2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Bottom CTA anchor before footer */
.risk-page .svc-module-cta__box {
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.55) 0%, #f8fafc 100%);
  box-shadow:
    0 4px 6px -1px rgba(15, 44, 89, 0.08),
    0 10px 24px -4px rgba(15, 44, 89, 0.1);
}

/* Credit screening panel */
.risk-credit {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #fff;
}

.risk-credit__panel {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 1rem;
  border: 1px solid rgba(218, 192, 163, 0.25);
  background: linear-gradient(155deg, var(--rk-navy-panel) 0%, var(--rk-navy) 100%);
  box-shadow: 0 20px 56px rgba(15, 34, 73, 0.35);
}

.risk-credit__panel h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-head, Inter, sans-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #fff;
}

.risk-credit__panel > p {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.88);
}

.risk-credit__panel > p strong {
  color: var(--rk-gold);
  font-weight: 700;
}

.risk-credit__row {
  margin-bottom: 1rem;
}

.risk-credit__row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.9);
}

.risk-credit__row input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.risk-credit__row input::placeholder {
  color: rgba(248, 250, 252, 0.45);
}

.risk-credit__row input:hover {
  border-color: rgba(218, 192, 163, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.risk-credit__row input:focus {
  outline: none;
  border-color: var(--rk-orange);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.risk-credit__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.88rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(180deg, var(--rk-orange), #ea580c);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.risk-credit__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.5);
}

.risk-credit__status {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.85);
}

.risk-credit__status.is-error {
  color: #fecaca;
}

.risk-credit__status.is-success {
  color: #bbf7d0;
}

/* Pitfall cards */
.risk-pitfalls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .risk-pitfalls {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.risk-pitfall-card {
  margin: 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border: 1px solid #f1f5f9;
  border-left: 4px solid var(--rk-orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 44, 89, 0.06);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--navy-mid, #1e293b);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.risk-pitfall-card:hover {
  box-shadow: 0 6px 20px rgba(15, 44, 89, 0.08);
  transform: translateX(2px);
}

.risk-pitfall-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 800;
  color: var(--rk-navy);
}

/* Promo band — inherit shared hub styles; ensure readable text on dark card */
.risk-page .sh-promo__title {
  color: #f8fafc;
}

.risk-page .container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
