@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

/* ── Design tokens (matches Vanquish / newer article styling) ── */

:root {
  --brand: #0a7ea4;
  --ink: #121619;
  --muted: #53616a;
  --bg: #ffffff;
  --accent: #e8f6fb;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1418;
    --ink: #e6eef2;
    --muted: #9fb0b9;
    --accent: #0d2730;
    --shadow: none;
    --brand: #22d3ee;
  }
  img { opacity: .96; }
}

/* ── Reset ── */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

h1 {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  margin: .2em 0 .4em;
  font-size: clamp(28px, 4.8vw, 46px);
  color: var(--ink);
}

h2 {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  margin: 34px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--ink);
}

h3 {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  margin: 20px 0 10px;
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 600;
  color: var(--ink);
}

h4 {
  font-weight: 600;
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 1rem 20px;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--muted);
}

li strong, li b {
  color: var(--ink);
}

/* ── Layout ── */

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── Hero ── */

header.hero, .hero {
  background: linear-gradient(180deg, var(--accent), transparent);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  background: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 13px;
  font-family: Inter, sans-serif;
}

.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin-top: 8px;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

.heroimg {
  flex-shrink: 0;
}

/* ── Cards ── */

.card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,.065);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* ── Check items ── */

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.check b {
  color: #0e8f6e;
  flex-shrink: 0;
}

.check div {
  color: var(--muted);
}

/* ── Grid ── */

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 1rem;
}

.grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Stat grid ── */

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
  background: rgba(10,126,164,0.08);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
}

/* ── Buttons / CTA ── */

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn, .cta .btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 0;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn.secondary:hover {
  background: var(--accent);
}

/* ── Sections ── */

main.wrap, main[role="main"].wrap {
  padding-top: 1.5rem;
}

main section, main .wrap section {
  margin-bottom: 2rem;
}

main section h2 {
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand);
}

/* ── Footer (within article HTML) ── */

footer, .au-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, transparent, var(--accent));
}

footer .wrap, footer .footer-inner,
.au-footer .footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding: 20px;
}

footer .footer-inner > div {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--brand);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── Tables ── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  text-align: left;
}

th {
  background: var(--accent);
  font-weight: 600;
}

/* ── Images ── */

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ── Base44 readability container ── */

.b44-readability-container,
.b44-readability-styles {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Index page ── */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  height: 40px;
  width: auto;
}

.practice-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
}

.header-nav a:hover {
  background: var(--accent);
  text-decoration: none;
}

.index-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.index-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.index-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.index-hero p {
  font-size: 1.125rem;
  color: var(--muted);
}

.category-section {
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: Inter, sans-serif;
  padding-left: 0.75rem;
  border-left: 4px solid var(--brand);
  margin-bottom: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.content-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,.065);
  border-radius: var(--radius);
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.content-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* ── Site footer (index page) ── */

.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, transparent, var(--accent));
  padding: 2rem 0;
}

.site-footer .footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-branding strong {
  color: var(--ink);
  font-size: 1.125rem;
}

.footer-branding p,
.footer-contact p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy a {
  color: var(--brand);
}

/* ── Language toggle ── */

.lang-toggle {
  display: flex;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 0.375rem;
  overflow: hidden;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  background: var(--accent);
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
}

/* ── Responsive ── */

@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .heroimg {
    min-width: auto;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Print ── */

@media print {
  header.hero, footer, .au-footer, .btn, .cta, .site-header, .site-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: #fff;
    color: #000;
  }
}
