/* Shared Institutional Subpage Design System (Refined Capital Polish + Unified CGS Theme) */
:root {
  --visa-blue: #16224e;
  --visa-ink: #0f1d3d;
  --visa-gold: #b6862f;
  --ink: #111a3d;
  --muted: #5f6d92;
  --bg: #f4f7fc;
  --bg-soft: #f0f3f9;
  --card: #ffffff;
  --border: #e6ebf5;
  --success: #1f9d6b;
  --ink-grad: linear-gradient(135deg, #0f1d3d 0%, #16224e 100%);
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(20, 30, 70, .09);
  --shadow-soft: 0 6px 20px rgba(20, 30, 70, .06);
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 50% -6%, #e9f0fb 0%, transparent 62%),
    radial-gradient(920px 520px at 50% 106%, #f7f0e2 0%, transparent 64%),
    var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }
section, .section { padding: 64px 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; color: var(--visa-ink); }
p { margin: 0; color: var(--muted); }

/* Banner */
.top-banner {
  background: #0E163F; color: #fff; text-align: center; padding: 10px 14px;
  font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.top-banner a { color: #fff; text-decoration: underline; font-weight: 600; }

/* Header */
.main-header {
  position: sticky; top: 0; z-index: 70; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1240px; width: min(94%, 1240px); margin: 0 auto; min-height: 64px; padding: 10px 0;
}
.brand-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--visa-blue); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link {
  color: var(--ink); font-size: 0.85rem; font-weight: 600; padding: 8px 10px;
  border-radius: 8px; white-space: nowrap; position: relative; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--visa-blue); background: var(--bg-soft); }
.nav-link.is-active { color: var(--visa-blue); background: #EEF2FA; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  font-weight: 600; font-family: var(--ff); font-size: 13.5px; cursor: pointer;
  transition: filter .2s, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--visa-blue); color: #fff; border-color: var(--visa-blue); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-neutral { background: #F1F5FB; color: var(--visa-blue); border-color: #D5DDEC; }
.btn-neutral:hover { background: #E4ECF8; }
.btn-secondary { background: #fff; color: var(--visa-blue); border-color: var(--visa-blue); }
.btn-secondary:hover { background: var(--bg-soft); }
.mobile-menu-toggle { display: none; }
.nav-mobile-actions { display: none; }

/* Page Hero */
.page-hero {
  background: var(--ink-grad); color: #fff; padding: 56px 0 52px;
}
.breadcrumb { font-size: 12.5px; color: rgba(234,240,255,0.72); margin-bottom: 14px; }
.breadcrumb a { color: #cbd5e1; text-decoration: underline; }
.page-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #E2E8F0; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { color: rgba(234,240,255,0.86); max-width: 720px; font-size: 15.5px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Section Header */
.section-header { max-width: 740px; margin: 0 auto 32px; text-align: center; }
.section-header h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px;
}
.card-tag {
  display: inline-block; align-self: flex-start; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--visa-blue);
  background: #EEF2FA; border: 1px solid #D5DDEC; padding: 3px 9px; border-radius: 99px;
}
.card h3 { font-size: 18px; }
.card p { font-size: 13.8px; }
.subpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.subpills span {
  font-size: 11.5px; font-weight: 600; color: var(--visa-blue);
  background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px;
}
.engine-card { border-top: 3px solid var(--visa-blue); }

/* Spec Table */
.spec-table-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); overflow-x: auto;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.spec-table thead { background: var(--visa-ink); color: #fff; }
.spec-table th {
  text-align: left; padding: 14px 16px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #E2E8F0;
}
.spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--ink); vertical-align: top; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-pill {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; background: #EEF2FA; color: var(--visa-blue);
}

/* Glance Split */
.glance-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.glance-dark { background: var(--ink-grad); color: #fff; border-color: rgba(255,255,255,0.12); }
.glance-dark h3 { color: #fff; }
.glance-dark p { color: rgba(234,240,255,0.82); }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; font-size: 13.8px; }
.checks li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.dl-list { margin: 12px 0 0; display: grid; gap: 10px; }
.dl-row { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 13px; }
.dl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-row dt { color: #cbd5e1; font-weight: 600; }
.dl-row dd { margin: 0; text-align: right; color: #fff; font-weight: 600; }

/* SWIFT Radar */
.radar-shell { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.radar-search { display: flex; gap: 10px; flex-wrap: wrap; }
.radar-input {
  flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: 13.5px;
  color: var(--visa-ink); background: #fff;
}
.radar-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.radar-preset-btn {
  padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: #fff;
  color: var(--visa-ink); font-size: 12px; font-weight: 600; cursor: pointer;
}
.radar-preset-btn.active, .radar-preset-btn:hover { background: var(--visa-blue); color: #fff; border-color: var(--visa-blue); }
.radar-overview {
  margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.radar-badge {
  display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px;
  font-weight: 700; background: #EEF2FA; color: var(--visa-blue); border: 1px solid #D5DDEC;
}
.radar-badge--done { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.radar-grid { margin-top: 20px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.radar-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.radar-steps li { padding-left: 14px; border-left: 3px solid var(--visa-blue); }
.radar-steps h4 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radar-bic { font-family: ui-monospace, monospace; font-size: 11px; background: #EEF2FA; color: var(--visa-blue); padding: 2px 7px; border-radius: 5px; }
.radar-steps p { font-size: 13px; margin-top: 4px; }
.radar-time { display: block; font-size: 11.5px; color: #7c879d; margin-top: 3px; }
.radar-dl { margin: 14px 0 0; display: grid; gap: 9px; font-size: 13px; }
.radar-dl-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.radar-dl-row:last-child { border-bottom: 0; }
.radar-dl-row dt { color: var(--muted); font-weight: 600; }
.radar-dl-row dd { margin: 0; text-align: right; color: var(--visa-ink); font-weight: 600; word-break: break-word; }

/* Contact Form */
.desk-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.desk-steps { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.desk-steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.desk-steps h4 { font-size: 14.5px; color: var(--visa-blue); margin-bottom: 4px; }
.desk-steps p { font-size: 13px; }
.desk-field { margin-bottom: 14px; }
.desk-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--visa-ink); margin-bottom: 6px; }
.desk-field input, .desk-field select, .desk-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--ff); font-size: 14px; color: var(--ink); background: #fff;
}
.desk-field textarea { min-height: 110px; resize: vertical; }

/* Internal SEO Backlink Strip */
.seo-hub-strip {
  margin-top: 40px; padding: 22px 24px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.seo-hub-strip p { font-size: 14px; color: var(--ink); }
.seo-hub-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.main-footer { background: var(--visa-blue); color: #EAF0FF; padding: 48px 0 56px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #cbd5e1; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(234,240,255,0.82); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 16px; text-align: center; font-size: 12.5px; color: rgba(234,240,255,0.7); }

/* Mobile */
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 10px; width: 42px; height: 42px; font-size: 22px; color: var(--visa-blue); flex-shrink: 0;
  }
  .header-actions { display: none !important; }
  .nav-container { position: relative; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px -6px rgba(13, 28, 73, .18); padding: 12px 16px 18px;
    flex-direction: column; align-items: stretch; gap: 4px; z-index: 95;
  }
  .nav-links .nav-link { width: 100%; padding: 11px 14px; font-size: 14.5px; }
  .nav-links.show-menu { display: flex; }
  .nav-mobile-actions {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border);
  }
  .grid-3, .grid-2, .glance-grid, .radar-grid, .desk-grid, .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section, .section { padding: 44px 0; }
  .radar-shell { padding: 16px 14px; }
  .radar-overview > div:last-child { text-align: left !important; }
  .radar-dl-row, .dl-row { flex-direction: column; gap: 2px; }
  .radar-dl-row dd, .dl-row dd { text-align: left; }
  .spec-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .spec-table { min-width: 0 !important; width: 100% !important; display: block; }
  .spec-table thead { display: none; }
  .spec-table tbody { display: grid; gap: 12px; width: 100%; }
  .spec-table tbody tr {
    display: block; width: 100%; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-soft);
  }
  .spec-table td {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    width: 100%; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; text-align: right;
  }
  .spec-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .spec-table td::before {
    content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase;
    color: var(--muted); text-align: left; flex-shrink: 0;
  }
}
