/* ==========================================================================
   Visa RDR page (visa-rdr.php). Loaded after style.css; every class here is
   prefixed rdrx- so nothing leaks into other pages.
   ========================================================================== */

/* ---- the yes/no branch on the blue band ----
   the node arrows and the gate stem were drawn in light grey for a white
   ground, so they go white here */
.rdrx-flow-band .rdr-node::after { border-color: rgba(255, 255, 255, .7); }
.rdrx-flow-band .rdr-node h3,
.rdrx-flow-band .rdr-out h3 { color: var(--ink); }
.rdrx-flow-band .rdr-node p,
.rdrx-flow-band .rdr-out.is-no p { color: var(--muted); }
.rdrx-flow-band .rdr-out.is-yes p { color: rgba(11, 22, 60, .82); }
.rdrx-flow-band .rdr-node,
.rdrx-flow-band .rdr-out { border-color: transparent; box-shadow: 0 20px 44px rgba(0, 0, 0, .18); }
.rdrx-flow-band .rdr-node.is-gate { border-color: var(--gold); }

/* inline link inside white-on-dark copy */
.rdrx-inline { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(255, 186, 0, .5); }
.rdrx-inline:hover { color: #fff; border-bottom-color: #fff; }

/* ---- three layers, on black ---- */
.rdrx-layer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px;
  border-radius: var(--r-card);
  background: #111;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
a.rdrx-layer:hover,
a.rdrx-layer:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: #161616;
  color: #fff;
}
.rdrx-layer.is-current { background: var(--blue); border-color: var(--blue); }
.rdrx-layer-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: rgba(255, 186, 0, .14);
  color: var(--gold);
  margin-bottom: 20px;
}
.rdrx-layer.is-current .rdrx-layer-icon { background: var(--gold); color: #000; }
.rdrx-layer-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
}
.section-dark .rdrx-layer h3 { font-size: 21px; margin-bottom: 10px; color: #fff; }
.section-dark .rdrx-layer p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .75); margin-bottom: 22px; }
.rdrx-layer-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  transition: gap .2s ease;
}
a.rdrx-layer:hover .rdrx-layer-link { gap: 12px; }
.rdrx-layer-link.is-here { color: #fff; opacity: .7; }

/* ---- where RDR stops: numbered rows ---- */
.rdrx-limits { border-top: 1px solid var(--line); }
.rdrx-limit {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rdrx-limit-num {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--blue);
  color: var(--gold);
}
.rdrx-limit h3 { font-size: 18px; margin: 4px 0 8px; }
.rdrx-limit p { font-size: 15px; margin: 0; }
.rdrx-limit p a { color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--blue-soft); }
.rdrx-limit p a:hover { border-bottom-color: var(--blue); }

/* ---- getting started: four steps on the blue band ---- */
.rdrx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.rdrx-step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}
.rdrx-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--gold);
  color: #000;
  margin-bottom: 18px;
}
.section-blue .rdrx-step h3 { font-size: 18px; margin-bottom: 8px; }
.section-blue .rdrx-step p { font-size: 14.5px; margin: 0; }

@media (max-width: 991.98px) {
  .rdrx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .rdrx-steps { grid-template-columns: 1fr; }
  .rdrx-limit { gap: 16px; }
  .rdrx-limit-num { flex-basis: 40px; height: 40px; }
}

/* the contact link in the CTA note sat blue on the blue band */
.cta-note a { color: var(--gold); border-bottom: 1px solid rgba(255, 186, 0, .5); }
.cta-note a:hover { color: #fff; border-bottom-color: #fff; }
