/* ==========================================================================
   Bank support page (avhishek.in/bank-support)
   Built on the site tokens from site.css. The headline uses the gold foil
   shared with the cards page; the accent is the brand orange from the
   wordmark dot (#fc6e20), used for the RBI step, link underlines and the
   jump highlight.
   ========================================================================== */

.sp {
  --sp-gutter: 20px;
  --sp-accent: #fc6e20;         /* brand orange; dark ink on it is 7.6:1 */
  --sp-ok: #15803d;
  --sp-bar-top: 74px;           /* bottom edge of the pinned site header */
  width: min(1180px, 100% - 2 * var(--sp-gutter));
  margin-inline: auto;
  padding-block: 32px 96px;
}
html[data-theme="dark"] .sp {
  --sp-ok: #4ade80;
}
.sp:focus { outline: none; }
.sp :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
.sp :where(ul, ol) { padding: 0; list-style: none; }
@media (min-width: 720px) { .sp { --sp-gutter: 32px; } }

/* ---------- Hero ---------- */
.sp-hero {
  display: grid;
  gap: 36px;
  padding-block: 8px 24px;
}
.sp-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px !important;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.sp-verified-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-ok) 18%, transparent);
}
.sp-title {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.sp-title > span { display: block; }
.sp-title-foil {
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #a8741b 0%, #6f4610 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .sp-title-foil { background-image: linear-gradient(180deg, #f3d99a 0%, #b88a3e 100%); }
@media (forced-colors: active) { .sp-title-foil { background: none; color: CanvasText; } }
.sp-lead {
  max-width: 38ch;
  margin-top: 20px !important;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.sp-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sp-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.sp-hero-link svg { flex: none; }

/* Bank picker */
.sp-picker-wrap {
  min-width: 0;
  padding: 20px 20px 16px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 12px 32px -16px rgb(0 0 0 / 0.12);
}
.sp-picker-title {
  margin-bottom: 12px !important;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.sp-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 4px;
}
.sp-pick {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 92px;
  padding: 12px 6px 10px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.sp-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .sp-pick:hover { background: var(--surface-muted); } }
@media (prefers-reduced-motion: no-preference) { .sp-pick:active { scale: 0.96; } }
.sp-pick-logo,
.sp-bank-logo {
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.08);
}
.sp-pick-logo { width: 44px; height: 44px; border-radius: 13px; }
.sp-pick-logo img { width: 30px; height: 30px; object-fit: contain; }
.sp-logo-fallback { color: #1d1d1f; font-size: 0.8125rem; font-weight: 700; }
.sp-pick-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- Escalation guide ---------- */
.sp-guide {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.sp-guide-head { display: grid; gap: 10px; max-width: 60ch; }
.sp-guide-head h2,
.sp-dir-bar h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.sp-guide-head p { color: var(--muted); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.sp-guide-steps {
  display: grid;
  gap: 28px;
  margin-top: 32px !important;
  counter-reset: none;
}
.sp-guide-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
}
.sp-guide-steps li > :not(.sp-guide-num) { grid-column: 2; }
/* connector between steps on narrow screens */
.sp-guide-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 17.5px;
  inset-block: 40px -24px;
  width: 1px;
  background: var(--line-strong);
}
.sp-guide-num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--page);
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sp-guide-rbi .sp-guide-num { background: var(--sp-accent); color: #1a1206; }
.sp-guide-steps h3 { margin-top: 6px !important; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.sp-guide-steps p {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.sp-guide-head a,
.sp-guide-steps a,
.sp-rbi-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sp-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Directory ---------- */
.sp-directory { margin-top: 72px; }
.sp-dir-bar {
  position: sticky;
  top: var(--sp-bar-top);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.sp-count {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.sp-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  max-width: 440px;
  min-height: 48px;
  margin-inline-start: auto;
  padding-inline: 16px;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: text;
}
.sp-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.sp-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.sp-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.sp-search input::placeholder { color: var(--muted); }

.sp-list { display: grid; gap: 10px; margin-top: 8px; }

/* Bank card */
.sp-bank {
  scroll-margin-top: 72px;   /* plus the root scroll-padding (92px) = just under the search bar */
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.sp-bank[open] {
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 14px 36px -18px rgb(0 0 0 / 0.16);
}
.sp-bank.is-flash { animation: sp-flash 1400ms ease-out; }
@keyframes sp-flash {
  0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
.sp-bank-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 18px 12px 14px;
  border-radius: 21px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.sp-bank-summary::-webkit-details-marker { display: none; }
.sp-bank-summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .sp-bank-summary:hover { background: var(--surface-soft); } }
.sp-bank[open] .sp-bank-summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.sp-bank-logo { width: 48px; height: 48px; border-radius: 14px; }
.sp-bank-logo img { width: 32px; height: 32px; object-fit: contain; }
.sp-bank-name { display: grid; gap: 2px; min-width: 0; }
.sp-bank-name strong { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.sp-bank-name span { color: var(--muted); font-size: 0.875rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.sp-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: rotate 200ms var(--ease, ease-out);
}
.sp-bank[open] .sp-chevron { rotate: 180deg; }

.sp-bank-body {
  display: grid;
  gap: 24px;
  padding: 20px 18px 22px;
  border-top: 1px solid var(--line);
}
.sp-col-title {
  margin-bottom: 10px !important;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Contact rows: the whole row dials or opens mail; copy sits at the end. */
.sp-rows { display: grid; gap: 6px; }
.sp-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.sp-row-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 13px 0 0 13px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sp-row-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) {
  .sp-row-link:hover { background: var(--surface-muted); }
  .sp-row-link:hover .sp-row-value { text-decoration: underline; text-underline-offset: 3px; }
}
.sp-row-icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.sp-copy {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-end: 1px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sp-copy:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .sp-copy:hover { background: var(--surface-muted); color: var(--text); } }
.sp-copy-icons { position: relative; width: 18px; height: 18px; }
.sp-copy-icons svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transition-property: opacity, scale, filter;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.sp-icon-check { opacity: 0; scale: 0.25; filter: blur(4px); color: var(--sp-ok); }
.sp-copy.is-copied .sp-icon-copy { opacity: 0; scale: 0.25; filter: blur(4px); }
.sp-copy.is-copied .sp-icon-check { opacity: 1; scale: 1; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .sp-copy-icons svg { transition-property: opacity; scale: 1 !important; filter: none !important; }
}

.sp-subgroup { margin-top: 12px; }
.sp-sublabel { margin-bottom: 6px !important; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.sp-missing { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* Email steps inside a bank */
.sp-steps { display: grid; }
.sp-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding-bottom: 18px;
}
.sp-step:last-child { padding-bottom: 0; }
.sp-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 13.5px;
  inset-block: 32px 4px;
  width: 1px;
  background: var(--line-strong);
}
.sp-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sp-step-rbi .sp-step-num { border-color: transparent; background: var(--sp-accent); color: #1a1206; }
.sp-step-body { min-width: 0; }
.sp-step-title { margin: 3px 0 8px !important; font-size: 0.9375rem; font-weight: 650; line-height: 1.35; }
.sp-step-note { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.sp-rbi-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  font-size: 0.9375rem;
}

.sp-empty {
  padding: 40px 16px;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}
.sp-fineprint {
  max-width: 70ch;
  margin-top: 28px !important;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.sp-paylink { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.sp-paylink a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sp-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Layout steps ---------- */
@media (min-width: 640px) {
  .sp-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .sp-guide-steps li:not(:last-child)::before { display: none; }
}
@media (min-width: 780px) {
  .sp-bank-body { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; padding: 22px 22px 26px; }
  .sp-bank-summary { padding-inline: 18px 22px; }
}
@media (min-width: 960px) {
  .sp-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
    padding-block: 24px 32px;
  }
  .sp-picker-wrap { padding: 24px 24px 20px; }
  .sp-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sp-guide-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  /* one rule across the four steps */
  .sp-guide-steps li { grid-template-columns: minmax(0, 1fr); }
  .sp-guide-steps li > :not(.sp-guide-num) { grid-column: 1; }
  .sp-guide-num { grid-row: auto; margin-bottom: 8px; }
  .sp-guide-steps li:not(:last-child)::before {
    display: block;
    inset-inline: 46px -20px;
    inset-block: 18px auto;
    width: auto;
    height: 1px;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .sp { --sp-bar-top: 68px; padding-block: 16px 72px; }
  .sp-hero { gap: 28px; }
  .sp-picker-wrap { margin-inline: -4px; padding: 16px 0 12px; border-radius: 24px; }
  .sp-picker-title { padding-inline: 16px; }
  /* a plain grid that grows downwards: 4 banks per row */
  .sp-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding-inline: 8px;
  }
  .sp-pick { min-height: 84px; padding: 10px 2px 8px; gap: 6px; }
  .sp-pick-name { font-size: 0.75rem; }
  .sp-guide { margin-top: 48px; padding-top: 32px; }
  .sp-directory { margin-top: 56px; }
  .sp-search { flex-basis: 100%; max-width: none; margin-inline-start: 0; }
  .sp-bank { scroll-margin-top: 112px; }
  .sp-bank-summary { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 12px; }
  .sp-bank-logo { width: 44px; height: 44px; border-radius: 13px; }
  .sp-bank-logo img { width: 30px; height: 30px; }
  .sp-bank-body { padding: 18px 12px 20px; }
}

@media print {
  .sp-dir-bar, .sp-picker-wrap, .sp-copy { display: none; }
  .sp-bank { break-inside: avoid; }
}
