/* =========================================
   RISK AND COMPLIANCE (FOR LENDERS)
   Page-level styles for /partners/risk-and-compliance
   (site/partners/risk-and-compliance/index.html).
   Loads after: tailwind, site, launch, corporate (whose "Lender pages:
   navy-led B2B surfaces" block styles the navy hero, bands, icon lists,
   split bands, stage ledger, FAQ and close band).
   The page answers a compliance reviewer in order: who is responsible (role
   map), what runs at each stage (ledger, evidence column marked as yours),
   collections conduct (navy), data roles, accountability, certificates and
   the due-diligence exchange.
   Sections: Hero role map · Why · Controls · Conduct · Data roles ·
   Accountability · Certificates · Due diligence · Responsive
   ========================================= */

/* ---------- Hero role map ---------- */
.risk-hero .corporate-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.role-map {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 14px;
  background: #12233a;
}
.role-map figcaption {
  margin-bottom: 18px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.role-map figcaption span {
  color: var(--partner-mint);
}
.role-map__party {
  padding: 18px 20px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 12px;
}
.role-map__party--lender {
  border-color: var(--partner-mint);
  background: #153c3e;
}
.role-map h2 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 700;
}
.role-map p {
  margin: 6px 0 0;
  color: var(--partner-text-dark);
  font-size: 14px;
  line-height: 1.55;
}
.role-map strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--partner-mint);
  font-size: 14px;
  font-weight: 600;
}
.role-map strong .pi {
  width: 16px;
  height: 16px;
}
.role-map__link {
  position: relative;
  padding: 18px 0;
  text-align: center;
}
.role-map__link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--partner-mint);
  opacity: 0.6;
}
.role-map__link span {
  position: relative;
  padding: 4px 12px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 999px;
  background: #12233a;
  color: var(--partner-text-dark);
  font-size: 12px;
}
.role-map__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--partner-mint);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.role-map__more .pi {
  width: 18px;
  height: 18px;
}

/* ---------- Why ---------- */
.risk-why p {
  font-size: 17px;
}
.band-split__body .risk-why__lead {
  color: var(--navy);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.band-split__body .risk-why__point {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Controls ---------- */
.risk-controls {
  background: var(--mist);
  border-top: 1px solid var(--line);
}
.risk-controls .stage-ledger thead th:nth-child(1) {
  width: 20%;
}
.risk-controls .stage-ledger thead th:nth-child(2) {
  width: 22%;
}
.risk-controls .stage-ledger thead th:nth-child(3) {
  width: 34%;
}
.risk-controls .stage-ledger thead th:nth-child(3) {
  background: var(--navy);
}
.risk-controls .stage-ledger thead th:nth-child(4) {
  background: var(--forest);
}

/* ---------- Conduct ---------- */
.risk-conduct .icon-list {
  margin-top: 40px;
}
.risk-conduct .risk-conduct__then {
  margin: 48px 0 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}
.risk-conduct .risk-conduct__flows {
  margin-top: 16px;
}

/* ---------- Data roles ---------- */
.data-roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.data-roles__party {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.data-roles__party--lender {
  border-color: var(--forest);
  background: #f1f8f4;
}
.data-roles__party .pi {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--forest);
}
.data-roles__party strong {
  color: var(--navy);
  font-size: 17px;
}
.data-roles__party span {
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}
.data-roles__link {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.data-roles__link .pi {
  color: var(--forest);
}
.band-split__body .data-roles + p {
  font-size: 16px;
}

/* ---------- Accountability ---------- */
.risk-accountability {
  background: var(--mist);
  border-top: 1px solid var(--line);
}
.risk-accountability__list {
  margin-top: 40px;
}

/* ---------- Certificates ---------- */
.risk-certs h2 {
  font-size: clamp(24px, 2.4vw, 30px);
}
.risk-certs .icon-list a {
  color: var(--partner-mint);
}

/* ---------- Due diligence ---------- */
/* A two-way exchange of equal weight: the pack we hand over (navy, its four
   document types as icons) and what we ask back (mint), joined by a swap mark. */
.risk-dd__exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  margin-top: 40px;
}
.risk-dd__side {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 14px;
}
.risk-dd__side--give {
  background: var(--navy);
}
.risk-dd__side--ask {
  border: 1px solid var(--lender-accent-line);
  background: #f7fbf9;
}
.risk-dd .risk-dd__lead {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}
.risk-dd .risk-dd__side--give .risk-dd__lead {
  color: white;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.risk-dd__pack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: auto 0 0;
  padding: 0;
  padding-top: 28px;
  list-style: none;
}
.risk-dd__pack li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--partner-line-dark);
  color: var(--partner-text-dark);
  font-size: 15px;
  font-weight: 600;
}
.risk-dd__pack .pi {
  flex: none;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 9px;
  border: 1px solid var(--partner-mint);
  border-radius: 50%;
  color: var(--partner-mint);
  stroke-width: 1.5;
}
.risk-dd__swap {
  align-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--lender-accent-line);
  border-radius: 50%;
  background: white;
  color: var(--forest);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .risk-hero .corporate-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .role-map {
    max-width: 560px;
  }
  .risk-dd__exchange {
    grid-template-columns: minmax(0, 1fr);
  }
  .risk-dd__swap {
    justify-self: center;
    transform: rotate(90deg);
  }
}
@media (max-width: 767px) {
  .data-roles {
    grid-template-columns: minmax(0, 1fr);
  }
  .data-roles__link .pi {
    transform: rotate(90deg);
  }
  .risk-dd__side {
    padding: 22px;
  }
  .risk-dd__pack {
    grid-template-columns: minmax(0, 1fr);
  }
}
