/* swiftbic.org — Core Stylesheet (Trust Navy + Cyan Design System) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --navy-900: #0A1F44;
  --navy-800: #102A56;
  --navy-700: #1B3A6B;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --ink: #0F172A;
  --slate-500: #4B5563;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --bg: #F6F8FB;
  --white: #ffffff;
  --ok: #10B981;
  --err: #EF4444;
  --border: #E2E8F0;
  
  /* Radii */
  --radius-card: 16px;
  --radius-ctrl: 12px;
  --radius-pill: 999px;
  
  /* Shadows */
  --shadow: 0 4px 20px rgba(10, 31, 68, 0.06);
  --shadow-lift: 0 10px 30px rgba(10, 31, 68, 0.12);
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

html.dark {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --ink: #f8fafc;
  --slate-500: #94a3b8;
  --slate-400: #64748b;
  --slate-200: #334155;
  --bg: #030712;
  --white: #0b0f19;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M0 0 L28 16.16 L56 0 M56 48.5 L28 64.66 L0 48.5 M28 16.16 L28 48.5 M0 48.5 L0 97 M56 48.5 L56 97 M28 64.66 L28 97' fill='none' stroke='rgba(10, 31, 68, 0.025)' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 50%);
  background-size: 56px 97px, 100% 800px;
  background-repeat: repeat, no-repeat;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M0 0 L28 16.16 L56 0 M56 48.5 L28 64.66 L0 48.5 M28 16.16 L28 48.5 M0 48.5 L0 97 M56 48.5 L56 97 M28 64.66 L28 97' fill='none' stroke='rgba(255, 255, 255, 0.025)' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 50%);
  background-size: 56px 97px, 100% 800px;
  background-repeat: repeat, no-repeat;
}

a {
  color: #0e7490;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover {
  color: #0891b2;
  text-decoration: underline;
}

html.dark a {
  color: var(--cyan-400);
}

html.dark a:hover {
  color: #22d3ee;
}

/* Header & Navigation */
header {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.1);
}

nav {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  gap: 1rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--cyan-400);
}

.logo:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-200);
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  color: var(--cyan-400);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--slate-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--cyan-400);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(10, 31, 68, 0.1);
    z-index: 99;
  }
  .nav-links.show {
    display: flex;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--slate-200);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-400);
}

.theme-toggle .moon-icon {
  display: none;
}

html.dark .theme-toggle .sun-icon {
  display: none;
}

html.dark .theme-toggle .moon-icon {
  display: block;
}

html.dark .theme-toggle {
  color: var(--cyan-400);
}

/* Pulsating Button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.pulsating-button {
  background: var(--cyan-500);
  color: var(--navy-900);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  animation: pulse 2s infinite;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.pulsating-button svg {
  flex-shrink: 0;
}

.pulsating-button:hover {
  background: var(--cyan-400);
  transform: translateY(-1px);
}

.pulsating-button:active {
  transform: translateY(0);
}

/* Main Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 3.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--white);
}

.hero p {
  color: var(--slate-200);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--slate-400);
  flex-wrap: wrap;
}

.stats span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stats strong {
  color: var(--cyan-400);
}

.offline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

/* Search input centerpiece */
.search-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--slate-200);
}

.search-wrap {
  display: flex;
  gap: 0.75rem;
}

#q {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-ctrl);
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#q:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.btn-cyan {
  background: var(--cyan-500);
  color: var(--navy-900);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.btn-cyan:hover {
  background: var(--cyan-400);
  transform: translateY(-1px);
}

.btn-cyan:active {
  transform: translateY(0);
}

.search-hint {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.8rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.kbd {
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.chip:hover {
  border-color: #0e7490;
  color: #0e7490;
  background: var(--white);
  text-decoration: none;
}

html.dark .chip:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-500);
}

/* Breadcrumbs & Statbar */
.crumb {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.crumb a {
  color: var(--slate-500);
  font-weight: 400;
}

.crumb a:hover {
  color: var(--cyan-500);
}

.statbar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--slate-500);
  margin: 0.5rem 0 1.5rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-ctrl);
  border: 1px solid var(--slate-200);
}

.statbar strong {
  color: var(--navy-800);
}

/* Dynamic Content Titles */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--navy-900);
}

p {
  margin-bottom: 1rem;
  color: var(--ink);
}

.lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

/* Result Card */
.result {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result:hover, .result.sel {
  border-color: var(--cyan-500);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.r-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.r-code {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-500);
  letter-spacing: 0.05em;
}

.copy {
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate-500);
  transition: all 0.15s;
}

.copy:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-500);
  background: rgba(6, 182, 212, 0.02);
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
}

.badge.b11 {
  background: #E6FDF9;
  color: var(--ok);
  border-color: #A7F3D0;
}

.r-bank {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  color: var(--navy-900);
}

.r-loc {
  font-size: 0.92rem;
  color: var(--slate-500);
}

.r-branch {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ⭐ Signature 4-Tile BIC Decode Visual */
.decode {
  display: block;
  margin-bottom: 1.5rem;
}

.decode h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.decode-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
}

.seg {
  flex: 1;
  min-width: 70px;
  text-align: center;
  border-radius: var(--radius-ctrl);
  padding: 0.8rem 0.5rem;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.seg b {
  display: block;
  font-size: 1.35rem;
  color: var(--cyan-400);
  letter-spacing: 0.08em;
}

.seg small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow);
}

caption {
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--slate-200);
  color: var(--navy-900);
}

th {
  background: var(--navy-800);
  color: var(--white);
  text-align: left;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
}

td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: rgba(10, 31, 68, 0.01);
}

tr:hover td {
  background: rgba(6, 182, 212, 0.02);
}

/* Cards & Containers */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-block;
  background: var(--cyan-500);
  color: var(--navy-900);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  box-shadow: var(--shadow);
}

.cta:hover {
  background: var(--cyan-400);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--navy-900);
}

/* Accordions for FAQ */
.faq dt {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.faq dd {
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}

details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-ctrl);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

details[open] {
  border-color: var(--cyan-500);
}

summary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  cursor: pointer;
  outline: none;
  display: list-item;
}

details p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* Wise-Style Validator Results */
.wise-result-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.wise-status-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.circular-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.circular-badge.ok {
  background: #D1FAE5;
  border: 3px solid var(--ok);
  color: #065F46;
}

.circular-badge.err {
  background: #FEE2E2;
  border: 3px solid var(--err);
  color: #991B1B;
}

.wise-status-title {
  flex: 1;
  min-width: 250px;
}

.wise-status-title h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
}

.wise-status-title p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-500);
}

.wise-copy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: var(--bg);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-ctrl);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wise-copy-banner button {
  font-family: 'Inter', sans-serif;
  letter-spacing: normal;
}

.wise-breakdown-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.wise-breakdown-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--bg);
  padding-bottom: 0.5rem;
}

.wise-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--bg);
  font-size: 0.95rem;
}

.wise-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wise-label {
  color: var(--slate-500);
  font-weight: 500;
}

.wise-value {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy-900);
}

.wise-value-text {
  font-weight: 600;
  color: var(--navy-900);
}

.wise-alert-card {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-ctrl);
  padding: 1rem 1.25rem;
  color: #78350F;
  font-size: 0.92rem;
}

.wise-alert-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.wise-alert-card button {
  margin-top: 0.5rem;
}

.wise-helper-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.wise-helper-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-ctrl);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.wise-helper-card h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wise-helper-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Toast popup */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lift);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
}

/* Citation & Disclaimer */
.cite {
  font-size: 0.78rem;
  color: var(--slate-500);
  border-top: 1px dashed var(--slate-200);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}

.disclaimer {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-ctrl);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: #78350F;
  margin: 1.5rem 0;
  line-height: 1.5;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate-500);
  font-size: 0.85rem;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

footer .disclaimer {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* Accessibility Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 2px;
}

/* Responsive adjust */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1.25rem;
    border-radius: 14px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .search-wrap {
    flex-direction: column;
  }
  .btn-cyan {
    padding: 0.8rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  main {
    padding: 1.5rem 1rem 3rem;
  }
  .statbar {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .wise-copy-banner {
    font-size: 1.05rem;
  }
}

/* View Transitions Theme Toggle Animation */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
.dark::view-transition-old(root) {
  z-index: 9999;
}
.dark::view-transition-new(root) {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Authority Layer & Glossary Styles */
.glossary-link {
  color: var(--cyan-500);
  text-decoration: none;
  border-bottom: 1.5px dashed var(--cyan-400);
  transition: all 0.2s ease;
}
.glossary-link:hover {
  color: var(--cyan-400);
  border-bottom-style: solid;
  background-color: rgba(34, 211, 238, 0.05);
}
html.dark .glossary-link {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-500);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
  box-shadow: var(--shadow-lift);
}
.guide-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
  font-size: 1.2rem;
  font-family: 'Space Grotesk', sans-serif;
}
html.dark .guide-card h3 {
  color: var(--white);
}
.guide-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}
.guide-card-footer {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan-500);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
html.dark .guide-card-footer {
  color: var(--cyan-400);
}

.sources-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-top: 3rem;
}
.sources-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.source-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.source-link {
  color: var(--navy-900);
  font-weight: 500;
  text-decoration: none;
}
html.dark .source-link {
  color: var(--white);
}
.source-link:hover {
  color: var(--cyan-500);
}
html.dark .source-link:hover {
  color: var(--cyan-400);
}
.source-badge {
  background: rgba(10, 31, 68, 0.05);
  color: var(--slate-500);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
html.dark .source-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-400);
}

.glossary-az-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--card);
  padding: 0.75rem;
  border-radius: var(--radius-ctrl);
  border: 1px solid var(--border);
}
.glossary-az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--slate-500);
  border-radius: 8px;
  transition: all 0.2s;
}
.glossary-az-link:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-500);
}
.glossary-az-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.glossary-section {
  margin-bottom: 3rem;
}
.glossary-letter-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-500);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.glossary-terms-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.glossary-term-item h3 {
  margin: 0 0 0.5rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
}
.glossary-term-item h3 a {
  color: var(--navy-900);
  text-decoration: none;
}
html.dark .glossary-term-item h3 a {
  color: var(--white);
}
.glossary-term-item h3 a:hover {
  color: var(--cyan-500);
}
.glossary-term-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive Navigation Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--slate-300);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.dropdown-trigger:hover {
  color: var(--cyan-400);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  min-width: 170px;
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
  border-bottom: none !important;
  background: transparent !important;
}

.dropdown-menu a:hover {
  background: var(--navy-800) !important;
  color: var(--cyan-400) !important;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive styles for mobile navigation dropdown */
@media (max-width: 640px) {
  .dropdown {
    width: 100%;
    display: block;
  }
  .dropdown-trigger {
    display: none !important; /* Hide dropdown trigger on mobile menu stack */
  }
  .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    animation: none !important;
  }
  .dropdown-menu a {
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
    border-left: 2px solid var(--cyan-500) !important;
    margin-left: 0.5rem !important;
    border-radius: 0 !important;
  }
}

/* Site Footer Navy Redesign */
.site-footer {
  background-color: var(--navy-900) !important;
  color: #94a3b8 !important; /* Muted light slate */
  padding: 3rem 1.5rem 2rem !important;
  font-size: 0.9rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background-color 0.3s ease !important;
  margin-top: 3rem !important;
}

.footer-container {
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.footer-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-brand {
  max-width: 450px !important;
}

.footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  margin-bottom: 0.75rem !important;
}

.footer-logo img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

.footer-logo span {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.35rem !important;
  color: #ffffff !important; /* Always white on dark footer background! */
}

.footer-logo .highlight {
  color: var(--cyan-400) !important;
}

.footer-tagline {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.footer-trust-chips {
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.trust-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

.footer-divider {
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin: 2rem 0 !important;
}

.footer-links-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

@media (max-width: 640px) {
  .footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .footer-top {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

.footer-column h3 {
  color: #ffffff !important; /* Always white headings on dark footer background! */
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 1rem !important;
}

.footer-column ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.footer-column a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  transition: color 0.15s ease !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.footer-column a:hover {
  color: var(--cyan-400) !important;
}

.footer-disclaimer {
  color: #64748b !important; /* More muted gray for disclaimer */
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  margin: 0 0 1.5rem 0 !important;
  text-align: left !important;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
}


