/* AML KYC Knowledge Hub — global styles
   Authoritative blue + gold (AUSTRAC-aligned) infographic system */

/* FAQ accordion (also used by FAQPage schema section) */
.faq-list { display:flex; flex-direction:column; gap:10px; }
.faq-item { background:#fff; border:1px solid rgba(12,30,59,.08); border-radius:14px; padding:0; overflow:hidden; transition:border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color:rgba(12,30,59,.18); box-shadow:0 4px 14px rgba(12,30,59,.06); }
.faq-item summary { list-style:none; cursor:pointer; padding:18px 22px; display:flex; justify-content:space-between; align-items:center; gap:14px; font-family:var(--serif,Georgia); font-size:18px; font-weight:600; color:var(--ink-900,#0A1426); line-height:1.35; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item .faq-chev { color:var(--ink-500,#5A6480); flex-shrink:0; transition:transform .2s; }
.faq-item[open] .faq-chev { transform:rotate(180deg); }
.faq-item p { margin:0; padding:0 22px 20px; color:var(--ink-700,#2A3754); font-size:15px; line-height:1.65; max-width:72ch; }


:root {
  --navy-900: #061838;
  --navy-800: #0B2545;
  --navy-700: #13315C;
  --navy-600: #1B4079;
  --navy-500: #2A6FBE;
  --navy-100: #E6EEF8;
  --navy-50:  #F4F8FD;

  --gold-500: #FFD60A;
  --gold-600: #E6B800;
  --gold-100: #FFF6CC;

  --ink-900: #0A1426;
  --ink-700: #2A3754;
  --ink-500: #5A6480;
  --ink-300: #A6AEC2;
  --ink-100: #E6E9F0;
  --paper:   #F8F6F0;
  --paper-2: #FBFAF5;
  --white:   #ffffff;

  --red-500: #C8362F;
  --red-100: #FBE8E6;
  --green-500: #1F8A5B;
  --green-100: #E2F4EB;
  --amber-500: #D08700;
  --amber-100: #FFF1D1;

  --serif: "Newsreader", "Source Serif 4", "Times New Roman", Georgia, serif;
  --sans:  "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(6,24,56,.06), 0 1px 3px rgba(6,24,56,.04);
  --shadow-md: 0 6px 24px rgba(6,24,56,.08), 0 2px 6px rgba(6,24,56,.05);
  --shadow-lg: 0 24px 60px rgba(6,24,56,.18), 0 4px 12px rgba(6,24,56,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-600);
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topnav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display:flex; align-items:center; gap: 10px; color: var(--white); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--gold-500); color: var(--navy-900);
  border-radius: 6px; display:grid; place-items:center;
  font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1;
}
.nav-links { display:flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 14px; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold-500); }
.nav-spacer { flex: 1; }
.nav-search {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  width: 220px;
  font-family: var(--sans);
}
.nav-search::placeholder { color: rgba(255,255,255,.5); }
.nav-search:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255,214,10,.10), transparent 60%),
    radial-gradient(600px 600px at 0% 100%, rgba(43,111,190,.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--white);
}
.hero h1 .gold { color: var(--gold-500); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 56ch; margin-top: 18px; }
.hero-stats { display:flex; gap: 32px; margin-top: 36px; }
.hero-stat-num { font-family: var(--serif); font-size: 44px; color: var(--gold-500); line-height: 1; }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; letter-spacing: .08em; text-transform: uppercase; }

.hero-search {
  position: relative;
  margin-top: 36px;
  max-width: 540px;
}
.hero-search input {
  width: 100%;
  padding: 18px 22px 18px 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
}
.hero-search input::placeholder { color: rgba(255,255,255,.55); }
.hero-search input:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.hero-search svg { position:absolute; left: 20px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.6); }

.hero-side {
  position: relative;
  z-index: 1;
}

/* ---------- Section headers ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 56px 0; }
section.block.alt { background: var(--paper-2); }
section.block.deep { background: var(--navy-900); color: var(--white); }
section.block.deep h2 { color: var(--white); }
section.block.deep .eyebrow { color: var(--gold-500); }

.section-head { display:flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap;}
.section-head h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; max-width: 18ch;}
.section-head p { color: var(--ink-500); max-width: 46ch; font-size: 15px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--ink-100);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }

/* Industry grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
  min-height: 220px;
  transition: all .2s ease;
  color: var(--ink-900);
  position: relative;
  overflow: hidden;
}
.industry-card:hover {
  border-color: var(--navy-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.industry-card .ic {
  width: 48px; height: 48px;
  background: var(--navy-50);
  color: var(--navy-700);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.industry-card h3 { font-size: 22px; line-height: 1.15; margin-bottom: 6px;}
.industry-card .ic-meta { color: var(--ink-500); font-size: 13px; margin-top: auto; padding-top: 16px; display:flex; align-items:center; gap: 8px;}
.industry-card .ic-tag {
  font-size: 11px;
  background: var(--gold-100);
  color: var(--navy-800);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.industry-card .ic-arrow {
  position: absolute; top: 22px; right: 22px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--navy-50);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.industry-card:hover .ic-arrow { background: var(--gold-500); color: var(--navy-900);}

/* Topic / role grid */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;}
.topic-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ink-900);
  transition: all .2s ease;
}
.topic-card:hover { border-color: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.topic-card .badge {
  display: inline-flex; align-items:center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-600); font-weight: 600;
}
.topic-card h3 { font-size: 26px; line-height: 1.15;}
.topic-card p { color: var(--ink-500); font-size: 14px; margin: 0;}
.topic-card ul { padding: 0; margin: 6px 0 0; list-style: none; font-size: 13px; color: var(--ink-700);}
.topic-card ul li { padding: 6px 0; border-top: 1px dashed var(--ink-100); display: flex; gap: 8px;}
.topic-card ul li::before { content: "→"; color: var(--gold-600); }
.topic-card ul li:first-child { border-top: none; }

/* Pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy-700);
  letter-spacing: .04em;
}
.pill.gold { background: var(--gold-100); color: var(--navy-900);}
.pill.red { background: var(--red-100); color: var(--red-500);}
.pill.green { background: var(--green-100); color: var(--green-500);}
.pill.amber { background: var(--amber-100); color: var(--amber-500);}

/* CTA buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all .15s ease;
  font-family: var(--sans);
  text-decoration: none;
}
.btn.primary { background: var(--gold-500); color: var(--navy-900);}
.btn.primary:hover { background: var(--gold-600); }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3);}
.btn.ghost:hover { background: rgba(255,255,255,.08);}
.btn.dark { background: var(--navy-900); color: var(--white);}
.btn.dark:hover { background: var(--navy-700);}
.btn.outline { background: transparent; color: var(--navy-700); border: 1px solid var(--navy-100);}
.btn.outline:hover { background: var(--navy-50);}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 40px;
  margin-top: 0;
}
footer.site h4 { color: var(--white); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px;}
footer.site a { color: rgba(255,255,255,.7); display: block; font-size: 14px; padding: 4px 0;}
footer.site a:hover { color: var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display:flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.disclaimer {
  background: rgba(255,255,255,.04);
  padding: 16px 20px; border-radius: 8px;
  font-size: 13px; line-height: 1.5;
  border-left: 3px solid var(--gold-500);
  color: rgba(255,255,255,.7);
  margin-top: 16px;
}

/* ---------- Doc page (infographic style) ---------- */
.doc-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0 88px;
  position: relative;
  overflow: hidden;
}
.doc-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(255,214,10,.10), transparent 60%);
  pointer-events: none;
}
.doc-hero .breadcrumb { position: relative; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 24px;}
.doc-hero .breadcrumb a { color: rgba(255,255,255,.55);}
.doc-hero .breadcrumb a:hover { color: var(--gold-500);}
.doc-hero .breadcrumb span { margin: 0 8px; }
.doc-hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; max-width: 22ch;}
.doc-hero p.lead { font-size: 17px; color: rgba(255,255,255,.78); margin-top: 18px; max-width: 60ch; line-height: 1.55; }
.doc-hero .doc-meta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap;}

.doc-body { padding: 0 0 96px; }
.doc-body section { padding: 64px 0; border-bottom: 1px solid var(--ink-100);}
.doc-body section:last-child { border-bottom: none; }
.doc-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 8px; }
.doc-body .step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  margin-bottom: 14px;
}

.kg { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.kg-side .eyebrow { display:block; margin-bottom: 6px; }
.kg-side h2 { margin-bottom: 12px; }
.kg-side p { color: var(--ink-500); font-size: 14px; line-height: 1.55; }

/* Two-up grid */
.cols-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 24px;}
.cols-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px;}
.cols-4 { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px;}

/* Info block — used inside doc pages */
.info {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 24px;
}
.info .icon-wrap {
  width: 44px; height: 44px;
  background: var(--navy-50); color: var(--navy-700);
  border-radius: 10px; display:grid; place-items:center;
  margin-bottom: 14px;
}
.info h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.25;}
.info p { color: var(--ink-700); font-size: 14px; line-height: 1.5; margin: 0; }

.info.dark { background: var(--navy-800); color: var(--white); border-color: transparent; }
.info.dark p { color: rgba(255,255,255,.7); }
.info.dark .icon-wrap { background: rgba(255,255,255,.08); color: var(--gold-500);}

.info.gold { background: var(--gold-100); border-color: transparent;}
.info.warn { background: var(--red-100); border-color: rgba(200,54,47,.2);}
.info.warn .icon-wrap { background: rgba(200,54,47,.12); color: var(--red-500);}
.info.success { background: var(--green-100); border-color: rgba(31,138,91,.2);}
.info.success .icon-wrap { background: rgba(31,138,91,.12); color: var(--green-500);}

/* Big stat */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--navy-50); border-radius: var(--r-md); overflow: hidden;}
.stat-cell { padding: 28px; border-right: 1px solid var(--ink-100); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--navy-800); }
.stat-cell .lbl { color: var(--ink-700); font-size: 13px; margin-top: 8px; }

/* Timeline / steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; top: 18px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--navy-100) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  text-align: center; padding: 0 16px;
}
.step .step-dot {
  width: 36px; height: 36px;
  background: var(--gold-500); color: var(--navy-900);
  border: 3px solid var(--paper);
  border-radius: 999px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  font-family: var(--serif); font-weight: 600;
}
.step h4 { font-size: 18px; line-height: 1.2; margin-bottom: 6px;}
.step p { color: var(--ink-500); font-size: 13px; line-height: 1.5; margin: 0;}

/* Checklist */
.checklist { padding: 0; margin: 0; list-style: none;}
.checklist li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-100);
  font-size: 15px; line-height: 1.5;
}
.checklist li:first-child { border-top: none; }
.checklist li .check {
  width: 22px; height: 22px;
  border: 2px solid var(--navy-700);
  border-radius: 5px;
  display:grid; place-items:center;
  background: var(--white);
  color: var(--gold-500);
  margin-top: 1px;
}

/* Comparison table */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px;}
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink-100);}
.cmp th { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-50);}
.cmp tr:hover td { background: var(--paper-2);}

/* Big number */
.bignum { font-family: var(--serif); font-size: 88px; line-height: .9; color: var(--navy-700); letter-spacing: -0.04em; }
.bignum-gold { color: var(--gold-600); }

/* Tag chips on doc pages */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px;}

/* Cover-art SVG glyphs */
.cover-art {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background: var(--navy-800);
  position: relative; overflow: hidden;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr;}
  .industry-grid { grid-template-columns: repeat(2, 1fr);}
  .topic-grid { grid-template-columns: 1fr;}
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--ink-100);}
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr;}
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kg { grid-template-columns: 1fr; gap: 24px;}
  .steps { grid-template-columns: 1fr; gap: 32px;}
  .steps::before { display: none; }
  .nav-links { display: none; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .topnav-inner { padding: 12px 20px; gap: 14px;}
  .nav-search { width: 140px;}
}
