/* ==========================================================================
   #er-risk — "Plain about the risk." The four layers in front of a member's money, in the page's own
   ruled-cell system (the same as the figures row above it): boxed on every side, hairline dividers,
   a mono number, a quiet line icon, the name and one line. The last cell is the money, in ink.
   ========================================================================== */
#er-risk .rk { margin-top: clamp(40px, 4.4vw, 64px); }
#er-risk .rk-cap { margin-bottom: 16px; color: var(--ink-50); }
#er-risk .rk-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; border: 1px solid var(--rule); }
/* each cell rides a shared subgrid, so numbers, names and lines sit level across the row */
#er-risk .rk-row > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; padding: clamp(24px, 2.4vw, 32px); min-width: 0; }
#er-risk .rk-row > li + li { border-left: 1px solid var(--rule); }
#er-risk .rk-top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
#er-risk .rk-top .label { color: var(--ink-50); }
#er-risk .rk-ic { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#er-risk .rk-row h3 { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
#er-risk .rk-p { font-size: 15.5px; line-height: 1.45; color: var(--ink-70); max-width: 28ch; text-wrap: pretty; }
#er-risk .rk-you { background: var(--ink); color: var(--on-ink); border-left-color: var(--ink) !important; }
#er-risk .rk-you .label { color: var(--on-ink-50); }
#er-risk .rk-you .rk-ic { stroke: var(--on-ink); }
#er-risk .rk-you .rk-p { color: var(--on-ink-70); }
#er-risk .rk-you .rk-p b { color: var(--on-ink); font-weight: 600; }

/* tablet: two up, the money spanning the last row */
@media (max-width: 1100px) {
  #er-risk .rk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  #er-risk .rk-row > li { grid-row: auto; grid-template-rows: auto auto 1fr; }
  #er-risk .rk-row > li { border-left: 0 !important; border-top: 1px solid var(--rule); }
  #er-risk .rk-row > li:nth-child(-n+2) { border-top: 0; }
  #er-risk .rk-row > li:nth-child(even) { border-left: 1px solid var(--rule) !important; }
  #er-risk .rk-row > .rk-you { grid-column: 1 / -1; border-left: 0 !important; border-top-color: var(--ink); }
}
/* phones: one per row, roomier cells */
@media (max-width: 640px) {
  #er-risk .rk-row { grid-template-columns: minmax(0, 1fr); }
  #er-risk .rk-row > li, #er-risk .rk-row > li:nth-child(n) { padding: 28px 22px 30px; border-left: 0 !important; border-top: 1px solid var(--rule); }
  #er-risk .rk-row > li:first-child { border-top: 0; }
  #er-risk .rk-p { max-width: none; }
}
