/* ═══════════════════════════════════════════════════════════════
   aml-hub.css — AML & Financial Compliance Hub (/aml-compliance/)
   Depends on main.css for :root tokens, resets, .igc-wrap, etc.
═══════════════════════════════════════════════════════════════ */

/* ── Amber + track tokens ───────────────────────────────────── */
.aml-hub {
  --aml-amber:      #F59E0B;
  --aml-amber-glow: #FCD34D;
  --aml-amber-soft: rgba(245,158,11,0.12);
  --aml-amber-ring: rgba(245,158,11,0.35);
  --aml-ca:         #10B981;
  --aml-ca-soft:    rgba(16,185,129,0.10);
  --aml-ca-ring:    rgba(16,185,129,0.30);
  --aml-us:         #60A5FA;
  --aml-us-soft:    rgba(96,165,250,0.10);
  --aml-us-ring:    rgba(96,165,250,0.30);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.aml-hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.aml-hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(245,158,11,0.12) 0%,
    rgba(245,158,11,0.04) 45%,
    transparent 70%);
  filter: blur(1px);
}
.aml-hero__inner {
  position: relative;
  max-width: 820px;
}
.aml-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--igc-text-dim);
  margin-bottom: 1.75rem;
}
.aml-crumbs a {
  color: var(--igc-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.aml-crumbs a:hover { color: var(--aml-amber-glow); }
.aml-crumbs__sep { opacity: 0.4; }
.aml-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: var(--aml-amber-soft);
  border: 1px solid var(--aml-amber-ring);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aml-amber-glow);
  margin-bottom: 1.5rem;
}
.aml-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aml-amber-glow);
  animation: aml-pulse 2s ease-in-out infinite;
}
@keyframes aml-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.aml-hero__h1 {
  font-size: clamp(2.25rem, 3.5vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--igc-text);
}
.aml-hero__h1 em {
  font-style: normal;
  color: var(--aml-amber-glow);
}
.aml-hero__tagline {
  font-size: 1.125rem;
  color: var(--igc-text-dim);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.aml-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-md);
  background: var(--igc-bg-elev);
  overflow: hidden;
}
.aml-stat {
  flex: 1;
  min-width: 160px;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--igc-border);
}
.aml-stat:last-child { border-right: none; }
.aml-stat__val {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--igc-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.aml-stat__val span { color: var(--aml-amber-glow); }
.aml-stat__lbl {
  font-size: 0.8rem;
  color: var(--igc-text-dim);
  font-weight: 500;
}
.aml-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.aml-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--igc-radius-sm);
  background: var(--aml-amber);
  color: #0A0500;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.5), 0 4px 16px rgba(245,158,11,0.2);
}
.aml-btn-primary:hover {
  background: var(--aml-amber-glow);
  color: #0A0500;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(252,211,77,0.5), 0 8px 24px rgba(245,158,11,0.3);
}
.aml-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--igc-radius-sm);
  background: transparent;
  color: var(--igc-text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--igc-border-mid);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.aml-btn-ghost:hover {
  color: var(--igc-text);
  transform: translateY(-1px);
}

/* ── Section scaffolding ────────────────────────────────────── */
.aml-section { padding: 5rem 0; }
.aml-section--alt { background: var(--igc-bg-elev); }
.aml-section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aml-amber-glow);
  margin-bottom: 0.75rem;
}
.aml-section__h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.aml-section__lede {
  font-size: 1rem;
  color: var(--igc-text-dim);
  max-width: 640px;
  line-height: 1.65;
}
.aml-section__head { margin-bottom: 3rem; }

/* ── Two-track layout ───────────────────────────────────────── */
.aml-tracks { padding: 5rem 0; background: var(--igc-bg-elev); }
.aml-tracks__intro { margin-bottom: 3rem; }
.aml-tracks__lede {
  font-size: 1rem;
  color: var(--igc-text-dim);
  line-height: 1.65;
  max-width: 700px;
}
.aml-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.aml-track {
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.aml-track--ca {
  border-color: var(--aml-ca-ring);
  background: linear-gradient(135deg, var(--igc-bg-elev) 0%, rgba(16,185,129,0.05) 100%);
}
.aml-track--us {
  border-color: var(--aml-us-ring);
  background: linear-gradient(135deg, var(--igc-bg-elev) 0%, rgba(96,165,250,0.05) 100%);
}
.aml-track__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.aml-track__flag {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.aml-track__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--igc-text);
}
.aml-track__law {
  font-size: 0.775rem;
  color: var(--igc-text-faint);
  line-height: 1.5;
}
.aml-track__law strong {
  color: var(--igc-text-dim);
  font-weight: 600;
}
.aml-track__regulator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}
.aml-track__regulator--ca {
  background: var(--aml-ca-soft);
  color: #6EE7B7;
  border: 1px solid var(--aml-ca-ring);
}
.aml-track__regulator--us {
  background: var(--aml-us-soft);
  color: #93C5FD;
  border: 1px solid var(--aml-us-ring);
}
.aml-obligations { display: flex; flex-direction: column; flex: 1; }
.aml-obligation {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--igc-border);
}
.aml-obligation:last-child { border-bottom: none; }
.aml-obligation__check {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.aml-obligation__check--ca { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.aml-obligation__check--us { background: rgba(96,165,250,0.15); color: #93C5FD; }
.aml-obligation__text {
  font-size: 0.875rem;
  color: var(--igc-text);
  line-height: 1.4;
}
.aml-obligation__cite {
  display: block;
  font-size: 0.75rem;
  color: var(--igc-text-dim);
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.aml-track__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--igc-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  width: fit-content;
  border: 1px solid;
}
.aml-track__cta--ca {
  color: #6EE7B7;
  border-color: var(--aml-ca-ring);
  background: var(--aml-ca-soft);
}
.aml-track__cta--ca:hover { background: rgba(16,185,129,0.2); color: #A7F3D0; }
.aml-track__cta--us {
  color: #93C5FD;
  border-color: var(--aml-us-ring);
  background: var(--aml-us-soft);
}
.aml-track__cta--us:hover { background: rgba(96,165,250,0.2); color: #BFDBFE; }

/* ── Threshold table ────────────────────────────────────────── */
.aml-table-section { padding: 5rem 0; }
.aml-table-wrap {
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-md);
  overflow: hidden;
}
.aml-table {
  width: 100%;
  border-collapse: collapse;
}
.aml-table thead tr { background: var(--igc-bg-elev-2); }
.aml-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--igc-text-dim);
  border-bottom: 1px solid var(--igc-border);
}
.aml-table th:nth-child(2) { color: #6EE7B7; }
.aml-table th:nth-child(3) { color: #93C5FD; }
.aml-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--igc-border);
  vertical-align: top;
  color: var(--igc-text-dim);
}
.aml-table tr:last-child td { border-bottom: none; }
.aml-table tr:nth-child(even) td { background: var(--igc-bg-glass); }
.aml-table .col-label {
  font-weight: 600;
  color: var(--igc-text);
}
.aml-table .col-ca { color: #A7F3D0; }
.aml-table .col-us { color: #BFDBFE; }
.aml-table-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--igc-text-faint);
  padding: 0.75rem 1.25rem;
  background: var(--igc-bg-glass);
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-sm);
}

/* ── Topics grid ────────────────────────────────────────────── */
.aml-topics { padding: 5rem 0; }
.aml-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.aml-topic-chip {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--igc-radius-md);
  background: var(--igc-bg-elev);
  border: 1px solid var(--igc-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.aml-topic-chip:hover {
  border-color: var(--aml-amber-ring);
  background: rgba(245,158,11,0.05);
  transform: translateY(-1px);
}
.aml-topic-icon { font-size: 1.25rem; flex-shrink: 0; }
.aml-topic-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--igc-text);
  line-height: 1.25;
}
.aml-topic-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--aml-amber-glow);
  background: var(--aml-amber-soft);
  border: 1px solid var(--aml-amber-ring);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.aml-topic-chip.is-empty .aml-topic-count {
  color: var(--igc-text-faint);
  background: var(--igc-bg-glass);
  border-color: var(--igc-border);
}
.aml-topic-chip.is-empty .aml-topic-label { opacity: 0.7; }

/* ── Per-topic article sections ─────────────────────────────── */
.aml-topic-sections {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.aml-topic-section {
  scroll-margin-top: 80px; /* offset for sticky header on anchor jump */
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-lg);
  background: var(--igc-bg-elev);
  padding: 1.75rem 2rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aml-topic-section:target {
  border-color: var(--aml-amber-ring);
  box-shadow: 0 0 0 1px var(--aml-amber-ring), 0 8px 32px rgba(245,158,11,0.08);
}
.aml-topic-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--igc-border);
}
.aml-topic-section__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.aml-topic-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--igc-text);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}
.aml-topic-section__desc {
  font-size: 0.85rem;
  color: var(--igc-text-dim);
  margin: 0;
  line-height: 1.5;
}
.aml-topic-section__count {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--aml-amber-glow);
  background: var(--aml-amber-soft);
  border: 1px solid var(--aml-amber-ring);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.aml-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.aml-topic-list li {
  border-bottom: 1px solid var(--igc-border);
}
.aml-topic-list li:last-child { border-bottom: none; }
.aml-topic-article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: padding 0.15s, color 0.15s;
}
.aml-topic-article:hover {
  padding-left: 0.625rem;
}
.aml-topic-article:hover .aml-topic-article__title {
  color: var(--aml-amber-glow);
}
.aml-topic-article:hover .aml-topic-article__arrow {
  transform: translateX(3px);
  color: var(--aml-amber-glow);
}
.aml-topic-article__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--igc-text);
  line-height: 1.4;
  transition: color 0.15s;
}
.aml-topic-article__meta {
  font-size: 0.75rem;
  color: var(--igc-text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.aml-topic-article__arrow {
  color: var(--igc-text-faint);
  transition: transform 0.15s, color 0.15s;
}
.aml-topic-empty {
  padding: 1rem 1.25rem;
  background: var(--igc-bg-glass);
  border: 1px dashed var(--igc-border-mid);
  border-radius: var(--igc-radius-md);
}
.aml-topic-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--igc-text-dim);
  line-height: 1.5;
}
.aml-topic-empty strong {
  color: var(--igc-text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .aml-topic-article {
    grid-template-columns: 1fr auto;
    gap: 0.625rem;
  }
  .aml-topic-article__meta { grid-column: 1; font-size: 0.7rem; }
  .aml-topic-article__arrow { grid-row: 1 / span 2; }
  .aml-topic-section { padding: 1.25rem 1.25rem 1rem; }
  .aml-topic-section__head { gap: 0.75rem; }
}

/* ── Article cards ──────────────────────────────────────────── */
.aml-art-section { padding: 5rem 0; background: var(--igc-bg-elev); }
.aml-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.aml-art-card {
  background: var(--igc-bg);
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.aml-art-card:hover {
  border-color: var(--aml-amber-ring);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.08);
}
.aml-art-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--aml-amber-soft);
  color: var(--aml-amber-glow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.aml-art-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--igc-text);
  line-height: 1.35;
  flex: 1;
  margin: 0;
}
.aml-art-excerpt {
  font-size: 0.85rem;
  color: var(--igc-text-dim);
  line-height: 1.6;
  margin: 0;
}
.aml-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid var(--igc-border);
}
.aml-art-meta {
  font-size: 0.775rem;
  color: var(--igc-text-faint);
  font-weight: 500;
}
.aml-art-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--aml-amber-glow);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.aml-art-card:hover .aml-art-link { gap: 0.4rem; }
.aml-art-cta-wrap { text-align: center; }
.aml-art-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aml-amber-glow);
  border: 1px solid var(--aml-amber-ring);
  padding: 0.625rem 1.25rem;
  border-radius: var(--igc-radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.aml-art-cta:hover { background: var(--aml-amber-soft); color: var(--aml-amber-glow); }

/* ── Primary sources ────────────────────────────────────────── */
.aml-sources { padding: 4rem 0; background: var(--igc-bg-elev); }
.aml-sources-card {
  background: var(--igc-bg-elev-2);
  border: 1px solid var(--igc-border);
  border-radius: var(--igc-radius-lg);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.aml-sources-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--igc-text-faint);
  margin-bottom: 0.75rem;
}
.aml-sources-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--igc-text);
  margin-bottom: 0.5rem;
}
.aml-sources-sub {
  font-size: 0.85rem;
  color: var(--igc-text-dim);
  line-height: 1.6;
}
.aml-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aml-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--igc-bg-glass);
  border: 1px solid var(--igc-border);
  font-size: 0.775rem;
  color: var(--igc-text-dim);
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.aml-source-tag:hover { border-color: var(--aml-amber-ring); color: var(--aml-amber-glow); }
.aml-sources-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--igc-border);
  font-size: 0.775rem;
  color: var(--igc-text-faint);
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aml-tracks-grid { grid-template-columns: 1fr; }
  .aml-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .aml-art-grid { grid-template-columns: repeat(2, 1fr); }
  .aml-sources-card { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .aml-topics-grid { grid-template-columns: 1fr; }
  .aml-art-grid { grid-template-columns: 1fr; }
  .aml-stats { flex-direction: column; }
  .aml-stat { border-right: none; border-bottom: 1px solid var(--igc-border); }
  .aml-stat:last-child { border-bottom: none; }
}

/* LIGHT-MODE SPLASH KILL — 2026-05-29 audit (Fix #1) */
.igc-light .aml-hero__glow { display: none !important; }
