/* ─────────────────────────────────────────────────────────────────────────
   immi.tv — Guide / T2 Article Styles
   Covers: article layout, hero, key facts, TOC, practitioner note,
   lead magnet CTA, FAQ accordion, related content, consultation CTA,
   freshness banner, sticky sidebar, breadcrumb
   ───────────────────────────────────────────────────────────────────────── */

/* ── Variables (extend chrome.css tokens) ──────────────────────────────── */
:root {
  --guide-max-w: 800px;
  --sidebar-w: 280px;
  --guide-gap: 40px;
  --practitioner-bg: #f0fdf4;
  --practitioner-border: #166534;
  --key-facts-bg: #fffbeb;
  --key-facts-border: #d97706;
  --freshness-bg: #fef3c7;
  --freshness-border: #d97706;
  --faq-border: #e7e2d9;
  --cta-bg: #166534;
  --cta-text: #fafaf5;
  --ca-accent: #dc2626;
  --au-accent: #d97706;
  --compare-accent: #166534;
  --toc-bg: #f5f0e8;
  --related-bg: #f5f0e8;
  /* ⛔ FOREST GRADIENT 2026-08-25 (NCP-102, owner option A). Was #d97706 amber. This is the
     EXACT hero of the 582 occupation pages, so AU now reads as one identity across 207
     `.au` pages + the corpus. ⚠ The hero's text is already rgba(255,255,255,.85-.9) — the
     component was always built for a DARK ground and amber was the outlier, so contrast
     improves rather than degrades. Other jurisdictions keep their own tokens. */
  --hero-au-bg: linear-gradient(135deg, #0b4b34 0%, #0d6745 60%, #167b51 100%);
  --hero-ca-bg: #dc2626;
  --hero-compare-bg: #166534;
  --hero-process-bg: #1c1917;
  --hero-cases-bg: #92400e;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.guide-breadcrumb {
  font-size: 13px;
  color: var(--stone);
  padding: 14px 0 0;
  margin-bottom: 0;
}
.guide-breadcrumb a {
  color: var(--stone);
  text-decoration: none;
}
.guide-breadcrumb a:hover {
  color: var(--forest);
}
.guide-breadcrumb .bc-sep {
  margin: 0 6px;
  color: var(--stone-light);
}

/* ── Article Hero (full-width, full colour, replaces strip + guide-hero card) ── */
.article-hero {
  width: 100%;
  padding: 88px 24px 80px;
}
.article-hero.au {
  background: var(--hero-au-bg);
}
.article-hero.ca {
  background: var(--hero-ca-bg);
}
.article-hero.cs {
  background: var(--hero-cases-bg);
}
.article-hero.cmp {
  background: var(--hero-compare-bg);
}
.article-hero.prc {
  background: var(--hero-process-bg);
}
.article-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.article-hero .guide-jurisdiction-badge,
.article-hero .case-scenario-badge {
  background: rgba(255, 255, 255, 0.97);
  color: var(--brown);
  border: 1px solid rgba(28, 25, 23, 0.15);
}
.article-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}
.article-hero .guide-meta {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.article-hero .guide-meta-sep {
  color: rgba(255, 255, 255, 0.45);
}
.article-hero .guide-mara-badge {
  color: rgba(255, 255, 255, 0.9);
}
.article-hero .guide-lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Layout: article + sidebar ─────────────────────────────────────────── */
.guide-layout {
  max-width: calc(var(--guide-max-w) + var(--sidebar-w) + var(--guide-gap));
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: var(--guide-max-w) var(--sidebar-w);
  gap: var(--guide-gap);
  align-items: start;
}
.guide-body {
  min-width: 0;
}
.guide-sidebar {
  position: sticky;
  top: calc(132px + 24px);
  min-width: 0;
}

@media (max-width: 1000px) {
  .guide-layout {
    grid-template-columns: 1fr;
    max-width: var(--guide-max-w);
  }
  .guide-sidebar {
    display: none;
  }
}

/* ── Freshness Banner ───────────────────────────────────────────────────── */
/* ⛔ SPANS THE WHOLE GRID (NCP-104, 2026-08-25). `.guide-layout` is a 2-column grid
   (800px 280px) and this banner is injected at RUNTIME by `guide-template.js`, so it was never
   accounted for as a grid child: it took column 1, pushed `main.guide-body` into the 280px
   SIDEBAR column, and wrapped `aside.guide-sidebar` onto row 2. Measured on live and preview
   alike — main rendered at x=1024, w=280. ⚠ A runtime-injected element is still a layout
   participant; nothing in the markup showed it, which is why this survived. */
.freshness-banner {
  grid-column: 1 / -1;

  background: var(--freshness-bg);
  border-left: 4px solid var(--freshness-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--brown);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.freshness-banner .freshness-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.freshness-banner strong {
  color: var(--rust);
}

/* ── Article Hero ───────────────────────────────────────────────────────── */
.guide-hero {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.guide-hero-accent {
  height: 6px;
}
.guide-hero-accent.au {
  background: var(--hero-au-bg);
}
.guide-hero-accent.ca {
  background: var(--hero-ca-bg);
}
.guide-hero-accent.cmp {
  background: var(--hero-compare-bg);
}
.guide-hero-accent.prc {
  background: var(--hero-process-bg);
}

.guide-hero-inner {
  padding: 28px 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.guide-jurisdiction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.guide-jurisdiction-badge.au {
  background: var(--amber-faint);
  color: var(--rust);
  border: 1px solid var(--amber-light);
}
.guide-jurisdiction-badge.ca {
  background: #fef2f2;
  color: var(--ca-accent);
  border: 1px solid #fecaca;
}
.guide-jurisdiction-badge.both {
  background: var(--forest-faint);
  color: var(--forest);
  border: 1px solid var(--forest-light);
}
.guide-jurisdiction-badge.process {
  background: #f5f5f4;
  color: var(--brown);
  border: 1px solid var(--border);
}

.guide-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 16px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 16px;
}
.guide-meta-sep {
  color: var(--border-dark);
}
.guide-meta a {
  color: var(--stone);
  text-decoration: none;
}
.guide-meta a:hover {
  color: var(--forest);
}
.guide-mara-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--forest);
  font-size: 12px;
}

.guide-lede,
.answer-capsule {
  font-size: 17px;
  line-height: 1.65;
  color: var(--brown-mid);
  font-weight: 400;
}

/* ── Key Facts Box ──────────────────────────────────────────────────────── */
.guide-key-facts {
  background: var(--key-facts-bg);
  border: 1px solid var(--key-facts-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.guide-key-facts-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 12px;
}
.guide-key-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.guide-key-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-key-fact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stone);
}
.guide-key-fact-value {
  font-size: 22px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
}
.guide-key-fact-sub {
  font-size: 12px;
  color: var(--stone);
}
.guide-key-facts-source {
  font-size: 12px;
  color: var(--stone-light);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Table of Contents ──────────────────────────────────────────────────── */
.guide-toc {
  background: var(--toc-bg);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.guide-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.guide-toc-toggle {
  font-size: 18px;
  color: var(--stone);
  transition: transform 0.2s;
}
.guide-toc.collapsed .guide-toc-toggle {
  transform: rotate(-90deg);
}
.guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-toc.collapsed .guide-toc-list {
  display: none;
}
.guide-toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
}
.guide-toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--brown);
  text-decoration: none;
  line-height: 1.4;
}
.guide-toc-list li a:hover {
  color: var(--forest);
}
.guide-toc-list li a::before {
  content: counter(toc-counter);
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  min-width: 18px;
  flex-shrink: 0;
}
.guide-toc-list {
  counter-reset: toc-counter;
}

/* ── Body Typography ────────────────────────────────────────────────────── */
.guide-article {
  line-height: 1.75;
  font-size: 16px;
  color: var(--brown);
}
.guide-article h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--brown);
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.25;
}
.guide-article h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.guide-article h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown);
  margin: 28px 0 10px;
}
.guide-article p {
  margin-bottom: 18px;
}
.guide-article p:last-child {
  margin-bottom: 0;
}
.guide-article a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-article a:hover {
  color: var(--forest-mid);
}
.guide-article ul,
.guide-article ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.guide-article li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Tables */
.guide-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.guide-table th {
  background: var(--brown);
  color: var(--cream);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.guide-table tr:nth-child(even) td {
  background: var(--cream);
}
.guide-table-caption {
  font-size: 12px;
  color: var(--stone);
  margin-top: 8px;
}

/* Definition callout (P3 DECODE) */
.guide-definition {
  background: var(--forest-faint);
  border-left: 4px solid var(--forest);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
}
.guide-definition-term {
  font-weight: 700;
  color: var(--forest);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Numbered steps (HowTo schema support) */
.guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-bottom: 28px;
}
.guide-steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.guide-steps li::before {
  content: counter(step-counter);
  min-width: 32px;
  height: 32px;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-step-content {
  flex: 1;
}
.guide-step-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

/* ── Practitioner Note ──────────────────────────────────────────────────── */
.guide-practitioner {
  background: var(--practitioner-bg);
  border-left: 4px solid var(--practitioner-border);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.guide-practitioner-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-practitioner-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--forest-light);
}
.guide-practitioner-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--brown);
}
.guide-practitioner-marn {
  font-size: 12px;
  color: var(--forest);
  margin-top: 10px;
  font-weight: 600;
}

/* ── Lead Magnet CTA (Block 6) ──────────────────────────────────────────── */
.guide-lead-cta {
  border-radius: 10px;
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.guide-lead-cta.au-cta {
  background: var(--amber);
}
.guide-lead-cta.ca-cta {
  background: var(--ca-accent);
}
.guide-lead-cta.cmp-cta {
  background: var(--forest);
}
.guide-lead-cta.gen-cta {
  background: var(--brown);
}

.guide-lead-cta-text {
  flex: 1;
}
.guide-lead-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}
.guide-lead-cta-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}
.guide-lead-cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.guide-lead-cta-btn {
  display: inline-block;
  background: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.guide-lead-cta.au-cta .guide-lead-cta-btn {
  color: var(--rust);
}
.guide-lead-cta.ca-cta .guide-lead-cta-btn {
  color: var(--ca-accent);
}
.guide-lead-cta.cmp-cta .guide-lead-cta-btn {
  color: var(--forest);
}
.guide-lead-cta.gen-cta .guide-lead-cta-btn {
  color: var(--brown);
}
.guide-lead-cta-btn:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .guide-lead-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ── FAQ Block ──────────────────────────────────────────────────────────── */
.guide-faq {
  margin: 40px 0;
}
.guide-faq-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 20px;
}
.guide-faq-item {
  border-bottom: 1px solid var(--faq-border);
}
.guide-faq-item:first-of-type {
  border-top: 1px solid var(--faq-border);
}
.guide-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--brown);
  gap: 12px;
  user-select: none;
}
.guide-faq-q:hover {
  color: var(--forest);
}
.guide-faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.guide-faq-item.open .guide-faq-icon {
  transform: rotate(45deg);
  color: var(--forest);
}
.guide-faq-a {
  display: none;
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--brown-mid);
}
.guide-faq-a p {
  margin-bottom: 12px;
}
.guide-faq-a p:last-child {
  margin-bottom: 0;
}
.guide-faq-item.open .guide-faq-a {
  display: block;
}

/* ── Related Content ────────────────────────────────────────────────────── */
.guide-related {
  background: var(--related-bg);
  border-radius: 10px;
  padding: 24px;
  margin: 40px 0;
}
.guide-related-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 16px;
}
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 700px) {
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
}
.guide-related-card {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.guide-related-card:hover {
  border-color: var(--forest);
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.08);
}
.guide-related-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 6px;
}
.guide-related-card-tag.news-tag {
  color: var(--ca-accent);
}
.guide-related-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.4;
}
.guide-related-card:hover .guide-related-card-title {
  color: var(--forest);
}

/* ── Consultation CTA (Block 9) ─────────────────────────────────────────── */
.guide-consultation-cta {
  background: var(--forest);
  color: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}
.guide-consultation-cta h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.guide-consultation-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.guide-consultation-cta .btn-consult {
  display: inline-block;
  background: #fff;
  color: var(--forest);
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.guide-consultation-cta .btn-consult:hover {
  opacity: 0.9;
}

/* ── Disclaimer ─────────────────────────────────────────────────────────── */
.guide-disclaimer {
  border-top: 2px solid var(--border);
  border-left: 3px solid var(--stone-light);
  background: var(--warm-white);
  margin-top: 48px;
  padding: 20px 20px 20px 18px;
  font-size: 12.5px;
  color: var(--stone);
  line-height: 1.7;
  border-radius: 0 4px 4px 0;
}
.guide-disclaimer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-mid);
  margin-bottom: 10px;
}
.guide-disclaimer-heading svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.guide-disclaimer p {
  margin-bottom: 8px;
}
.guide-disclaimer p:last-child {
  margin-bottom: 0;
}
.guide-disclaimer strong {
  color: var(--brown-mid);
  font-weight: 600;
}
.guide-disclaimer a {
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-disclaimer a:hover {
  color: var(--brown);
}
.guide-disclaimer-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--stone-light);
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
}
.sidebar-card p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sidebar-card .btn-sidebar {
  display: block;
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-card .btn-sidebar:hover {
  background: var(--forest-mid);
}
.sidebar-card .btn-sidebar-ghost {
  display: block;
  border: 2px solid var(--forest);
  color: var(--forest);
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 8px;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar-card .btn-sidebar-ghost:hover {
  background: var(--forest);
  color: #fff;
}
.sidebar-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-tool-list li {
  margin-bottom: 8px;
}
.sidebar-tool-list li a {
  font-size: 14px;
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-tool-list li a:hover {
  text-decoration: underline;
}
.sidebar-tool-list li a::before {
  content: "→";
  color: var(--stone);
}

/* ── Mobile sticky bottom bar — styles moved to chrome.css ── */

/* ── Category Hub Pages ──────────────────────────────────────────────────── */
/* ⛔ LEFT ALIGNED, matching the occupation hero (owner 2026-08-26). Measured before: the hub hero
   was `text-align:center` with the pill at x=594 and the h1 at x=370; the occupation hero is
   `start`, pill and h1 both at x=130. Centre vs left was the most visible difference between the
   two families once the gradient and pill matched. */
/* ⛔ HORIZONTAL INSET MATCHES THE OCCUPATION HERO, AND IT IS RESPONSIVE — measured on
   `.hero .wrap` at four widths: 130px at 1440, 20px at 1100 and 768, 13px at 390. A flat 130px
   would leave a 390px phone just 130px of text. The breakpoints below reproduce that ramp. */
.hub-hero {
  padding: 88px 130px 80px;
  text-align: left;
}
.hub-hero.au {
  background: var(--hero-au-bg);
}
.hub-hero.ca {
  background: var(--hero-ca-bg);
}
.hub-hero.cmp {
  background: var(--hero-compare-bg);
}
.hub-hero.prc {
  background: var(--hero-process-bg);
}
.hub-hero.cs {
  background: var(--hero-cases-bg);
}

/* ⛔ THE SAME PILL THE OCCUPATION HERO USES (owner 2026-08-26 — the two families must be
   identical). Measured on `.hero .eyebrow` of an occupation page: 11px/700, uppercase,
   letter-spacing 0.88px, colour rgb(28,25,23) on rgba(255,255,255,.97), padding 4px 12px,
   border-radius 20px, 1px border rgba(28,25,23,.15) — a white pill sized to its text (121px).
   The hub version was plain uppercase text at 12px in rgba(255,255,255,.8), no background, no
   padding, no radius, stretched the full 1392px. ⚠ `display:inline-block` is what stops it
   spanning the hero; without it the pill is the width of the row. */
.hub-hero-eyebrow {
  /* ⛔ ONE VALUE PER PROPERTY. The first attempt PREPENDED the pill declarations into this block
     and left the originals below them — so `font-size: 12px`, `color: rgba(255,255,255,.8)` and
     `letter-spacing: 0.1em` still won by source order, and the result was WHITE TEXT ON A WHITE
     PILL: unreadable, and worse than before the change. Later declaration wins at equal
     specificity; a "more specific" rule was never the issue. */
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: rgb(28, 25, 23);
  background: rgba(255, 255, 255, 0.97);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(28, 25, 23, 0.15);
  margin-bottom: 12px;
}
.hub-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.2;
}
.hub-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.hub-cta-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.hub-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  text-decoration: none;
  display: block;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.hub-card:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.1);
  transform: translateY(-2px);
}
.hub-card-pillar {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: inline-block;
}
.hub-card-pillar.p2 {
  background: #dcfce7;
  color: var(--forest);
}
.hub-card-pillar.p3 {
  background: var(--amber-light);
  color: var(--rust);
}
.hub-card-pillar.p5 {
  background: var(--forest-faint);
  color: var(--forest);
  border: 1px solid var(--forest-light);
}

.hub-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: 1.35;
}
.hub-card:hover h3 {
  color: var(--forest);
}
.hub-card-meta {
  font-size: 13px;
  color: var(--stone);
}

/* Country hub sub-category nav */
/* ⛔ PINNED UNDER THE FIXED CHROME (owner 2026-08-26). The hero scrolls away; the section nav
   must not. `top` is the chrome's own stack — nav 60 + ticker 32 + trust bar 40 = 132px, the same
   sum `--offset` uses for body padding, so the two can never disagree.
   ⚠ `position: sticky` was VERIFIED to work here before being used, not assumed: R-052 records
   that `overflow-x: hidden` on html/body turns the element into a scroll container and silently
   breaks sticky. `body` DOES carry `overflow-x: hidden` on this site — but measured 2026-08-26,
   the subnav still pins at exactly 132px after a 1200px scroll. Assuming R-052 applied would have
   cost a JS scroll handler nobody needs.
   ⚠ z-index sits BELOW the chrome (nav/trust are fixed) so it slides under, never over. */
/* ⛔ THE OCCUPATION PAGES' `.subnav`, REPLICATED (owner 2026-08-26 — one nav design site-wide).
   Measured on an occupation page: background #fff, 1px bottom border, items 13.5px/700 in #414d45
   with an underline that turns forest on hover and on the current item. The hub version was a
   beige bar of white PILL buttons with a solid-green active pill — a different component wearing
   the same job. Content still differs (sections vs in-page anchors); design no longer does. */
.hub-subnav {
  position: sticky;
  top: calc(60px + 32px + 40px);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #dfe5df;
  padding: 0 32px;
  box-shadow: 0 1px 0 rgba(23, 33, 27, 0.06);
}
.hub-subnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hub-subnav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--stone);
  margin-right: 4px;
}
.hub-subnav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.hub-subnav a:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.hub-subnav a.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ── Page container utility ─────────────────────────────────────────────── */
.guide-page-wrap {
  background: var(--warm-white);
}
.guide-page-inner {
  max-width: calc(var(--guide-max-w) + var(--sidebar-w) + var(--guide-gap));
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .guide-hero-inner {
    padding: 20px 18px 18px;
  }
  .guide-key-facts {
    padding: 16px 18px;
  }
  .guide-toc {
    padding: 16px 18px;
  }
  .guide-practitioner {
    padding: 16px 18px;
  }
  .guide-lead-cta {
    padding: 20px 18px;
  }
  .guide-consultation-cta {
    padding: 20px 18px;
  }
  .article-hero {
    padding: 64px 20px 56px;
  }
  .hub-hero {
    padding: 64px 20px 56px;
  }
  .guide-layout {
    padding: 32px 16px 100px;
  }
}


/* ── hub subnav items: identical to `.subnav a` on the occupation pages ───────────────────── */
.hub-subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  scrollbar-width: thin;
  max-width: none;
}
.hub-subnav-label {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #8a968f;
  padding: 11px 8px 11px 0;
  white-space: nowrap;
}
.hub-subnav a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 11px 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: #414d45;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.hub-subnav a:hover {
  color: #0d5c3d;
  border-bottom-color: #9fc7ae;
}
/* ⛔ `.active` is the class these pages already carry; the occupation pages call the same state
   `.is-current`. Both are styled here so neither name is a silent no-op. */
.hub-subnav a.active,
.hub-subnav a.is-current {
  color: #0d5c3d;
  border-bottom-color: #0d5c3d;
  font-weight: 700;
  background: none;
}


/* ── hub hero inset ramp — the occupation hero's measured values ─────────────────────────── */
@media (max-width: 1200px) {
  .hub-hero { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .hub-hero { padding-left: 13px; padding-right: 13px; }
}


/* ══ HUB HERO + NAV — REPLICATING THE OCCUPATION PAGES (owner 2026-08-26) ═════════════════════
   ⛔ The rule the owner set: the same page ELEMENT serves the same PURPOSE, so it carries the same
   design; only its content differs. These values are MEASURED off an occupation page at four
   widths, never estimated.

   The defect this fixes: the hub h1 and lede were block-CENTRED by `max-width` + auto margins even
   though their text was left-aligned — h1 at x=370 and lede at x=440 against the eyebrow at x=130.
   Three elements of one hero starting at three different x positions is what "not aligned
   properly" looks like. ⚠ `text-align` was never the problem; the auto margins were. */

/* the hero's text column — left edge shared by eyebrow, h1 and lede */
.hub-hero h1,
.hub-hero p {
  margin-left: 0;
  margin-right: 0;
}
.hub-hero h1 {
  /* occupation: 76px @1440 · 66px @1100 · 46px @768 · 48px @390 — a clamp, not a step */
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 0.98;
  max-width: 774px;
  margin-top: 13px;
  margin-bottom: 18px;
}
.hub-hero p {
  font-size: 19px;
  line-height: 1.55;
  max-width: 710px;
  margin-bottom: 28px;
}
.hub-hero-eyebrow {
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .hub-hero p { font-size: 17px; }
}

/* the nav's inner rail — the SAME left edge as the hero above it.
   occupation `.subnav .wrap`: margin 0 98px @1440, 0 20px @1100/768, 0 13px @390, inside a nav
   with padding 0 32px — so the rail starts at x=130, 36/40, 13. Reproduced exactly. */
.hub-subnav-inner {
  margin: 0 98px;
}
@media (max-width: 1200px) {
  .hub-subnav-inner { margin: 0 20px; }
}
@media (max-width: 480px) {
  /* ⛔ THE NAV LOSES ITS OWN PADDING AT MOBILE, exactly as `.subnav` does — measured: the
     occupation rail sits at x=13 at 390px. Keeping the 32px padding put the hub rail at x=45,
     so the nav no longer lined up with the hero above it. The inset must be produced by ONE
     box, not two that each contribute. */
  .hub-subnav { padding: 0; }
  .hub-subnav-inner { margin: 0 13px; }
}


/* ⛔ ONE HERO, ONE DEFINITION. `.hub-hero-inner` exists only because processing-times was
   converted from `.article-hero` onto this component; the hero already owns the horizontal
   inset, so the inner wrapper must add none of its own or the content lands twice-inset.
   ⚠ THE REASON THIS PAGE KEPT DIVERGING: it used a DIFFERENT hero component, so every fix
   applied to `.hub-hero` missed it. Styling `.article-hero` to match would have created a
   second definition to keep in step — the thing that caused the drift in the first place. */
.hub-hero-inner {
  margin: 0;
  padding: 0;
  max-width: none;
}
.hub-hero .guide-meta {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.hub-hero .guide-meta-sep { color: rgba(255, 255, 255, 0.45); }
.hub-hero .guide-mara-badge { color: rgba(255, 255, 255, 0.9); }
.hub-hero .guide-lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 710px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
