/* ============================================================
   USCISFees — Immigration fees & tools
   Style differs from RetireMetrics:
   - Lighter, brighter palette (red/blue/cream patriotic feel)
   - Inter for body + Fraunces for display (vs DM Sans + Lora)
   - More card-density, less heavy navy backgrounds
   - Rounded square corners, subtle borders, soft shadows
   ============================================================ */

:root {
  /* Palette */
  --ink:         #1a1d29;
  --ink-soft:    #3d4458;
  --muted:       #6b7280;
  --muted-soft:  #9ca3af;
  --line:        #e5e7eb;
  --line-soft:   #f1f3f6;
  --bg:          #fbfaf7;
  --bg-card:     #ffffff;
  --bg-warm:     #fdf8f0;

  /* Brand */
  --brand:       #c0392b;
  --brand-dark:  #962d22;
  --brand-soft:  #fdecea;
  --accent:      #1e4d8c;
  --accent-soft: #e8f0fa;
  --gold:        #d4a544;
  --gold-soft:   #faf3df;

  /* Status colors */
  --good:        #16a34a;
  --good-soft:   #ecfdf5;
  --warn:        #d97706;
  --warn-soft:   #fef3c7;
  --info:        #2563eb;
  --info-soft:   #eff6ff;

  /* Misc */
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:      0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg:   0 12px 32px rgba(15, 23, 42, 0.10);
}

/* Reset & base */
* { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.serif { font-family: 'Fraunces', 'Times New Roman', serif; }

/* ============================================================ HEADER */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}
.navbar-brand .stripe { color: var(--brand); }
.navbar-brand .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-right: 0.5rem;
  vertical-align: -7px;
}
.navbar-nav .nav-link {
  color: var(--ink-soft) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.navbar-nav .nav-link:hover { background: var(--line-soft); color: var(--ink) !important; }
.navbar-nav .nav-link.active { color: var(--brand) !important; background: var(--brand-soft); }
.navbar-toggler { border: 1px solid var(--line); padding: 0.3rem 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826,29,41,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================ AD SLOT */
.ad-slot {
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 8px, var(--line-soft) 8px, var(--line-soft) 16px),
    var(--bg);
  border: 1px dashed #cfd5dd;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 0.2rem;
}
.ad-slot .ad-size { font-size: 0.68rem; color: var(--muted-soft); letter-spacing: 0.04em; }
.ad-leaderboard { height: 90px; max-width: 728px; width: 100%; margin: 0 auto; }
.ad-rectangle   { width: 300px; height: 250px; }
.ad-inline      { height: 90px; max-width: 728px; width: 100%; margin: 0 auto; }

/* ============================================================ HERO */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(212,165,68,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(30,77,140,0.08) 0%, transparent 55%),
    var(--bg-warm);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 33%, #fff 33%, #fff 66%, var(--accent) 66%);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}
.hero-tag .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.hero-tag .pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent-word {
  color: var(--brand);
  font-style: italic;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--ink-soft); color: var(--ink); }

/* HERO STAT TILES */
.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: block;
  position: relative;
}
.tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tile-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.tile-icon.red    { background: var(--brand-soft); color: var(--brand); }
.tile-icon.blue   { background: var(--accent-soft); color: var(--accent); }
.tile-icon.gold   { background: var(--gold-soft); color: #a87f25; }
.tile-icon.green  { background: var(--good-soft); color: var(--good); }
.tile-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 0.2rem; }
.tile-value {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tile-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

/* ============================================================ SECTIONS */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-header { margin-bottom: 2.5rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brand);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.section-sub { color: var(--ink-soft); font-size: 0.95rem; max-width: 580px; }

/* ============================================================ TOOL CARDS */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tool-card.featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-warm) 100%);
  border-color: var(--gold);
}
.tool-card.featured:hover { border-color: var(--brand); }
.tool-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ti-red    { background: var(--brand-soft);  color: var(--brand); }
.ti-blue   { background: var(--accent-soft); color: var(--accent); }
.ti-gold   { background: var(--gold-soft);   color: #a87f25; }
.ti-green  { background: var(--good-soft);   color: var(--good); }
.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.status-live { background: var(--good-soft); color: var(--good); }
.status-soon { background: var(--line-soft); color: var(--muted); }
.status-popular { background: var(--gold-soft); color: #a87f25; }
.tool-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.tool-card p {
  font-size: 0.825rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.tool-meta .arrow { color: var(--brand); font-weight: 500; }

/* ============================================================ FEE PREVIEW TABLE */
.fee-preview {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fee-preview-head {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-card) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.fee-preview-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.fee-preview-head p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fee-table thead th {
  background: var(--bg-warm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.75rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.fee-table tbody td {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:hover td { background: var(--bg-warm); }
.fee-form-code {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
}
.fee-form-name { color: var(--ink); }
.fee-form-desc { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.fee-amount {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.fee-amount-online { color: var(--good); }
.discount-tag {
  display: inline-block;
  background: var(--good-soft);
  color: var(--good);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}
.fee-table .link-cell a {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.fee-table .link-cell a:hover { text-decoration: underline; }

.fee-preview-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fee-preview-footer .note { font-size: 0.78rem; color: var(--muted); }
.fee-preview-footer a {
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================ ALERT BOX */
.alert-box {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fbe3df 100%);
  border: 1px solid #f5c8c1;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.alert-box .alert-icon {
  width: 32px; height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.alert-box h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 0.3rem 0;
}
.alert-box p { font-size: 0.825rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.alert-box a { color: var(--brand-dark); font-weight: 600; }

/* ============================================================ CATEGORY GRID */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  transition: height 0.15s;
}
.category-card.cat-family::before     { background: var(--brand); }
.category-card.cat-employment::before { background: var(--accent); }
.category-card.cat-citizenship::before{ background: var(--gold); }
.category-card.cat-visitor::before    { background: var(--good); }
.category-card:hover { border-color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card:hover::before { height: 5px; }
.category-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.category-card p {
  font-size: 0.825rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.category-items { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.category-item-chip {
  font-size: 0.72rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ============================================================ FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}
.faq-item a { color: var(--brand); font-weight: 500; }

/* ============================================================ TRUST STRIP */
.trust-strip {
  background: var(--ink);
  padding: 1.5rem 0;
  color: #d1d5db;
}
.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  justify-content: center;
}
.trust-strip .trust-item strong { color: #fff; font-weight: 500; }

/* ============================================================ FOOTER */
.site-footer {
  background: var(--ink);
  color: #9ca3af;
  padding: 3rem 0 0;
}
.footer-brand-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-brand-logo .stripe { color: #f87171; }
.footer-brand p { font-size: 0.825rem; color: #9ca3af; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1d5db;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 0.825rem;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2d3142;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: #9ca3af;
}
.footer-bottom a { color: #d1d5db; text-decoration: none; }
.disclaimer {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.6;
  padding-bottom: 1.5rem;
}

/* ============================================================ STICKY AD UTILITY */
@media (min-width: 992px) {
  .ad-sticky { position: sticky; top: 80px; }
}

/* ============================================================ INNER PAGE HERO */
.page-hero-inner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0 1.75rem;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0;
  margin: 0 0 1rem 0;
}
.breadcrumb-list a { color: var(--accent); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.page-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.6rem 0;
}
.page-hero-sub {
  font-size: 0.925rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}
.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  text-align: center;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-print:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ============================================================ TABLE OF CONTENTS */
.toc-nav {
  position: sticky;
  top: 80px;
  padding: 0;
}
.toc-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.toc-link {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-left: 2px solid var(--line);
  margin-bottom: 0.05rem;
  transition: border-color 0.15s, color 0.15s;
  border-radius: 0 4px 4px 0;
}
.toc-link:hover { color: var(--brand); border-left-color: var(--brand); }
.toc-link.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 500; }
.toc-divider { border: none; border-top: 1px solid var(--line); margin: 0.75rem 0; }
.toc-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid #f5c8c1;
  width: 100%;
}
.toc-calc-link:hover { background: #fbe3df; color: var(--brand-dark); }

/* ============================================================ FEE LEGEND */
.fee-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}
.legend-item::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-paper::before  { background: var(--line); border: 1px solid var(--muted-soft); }
.legend-online::before { background: var(--good-soft); border: 1px solid #86efac; }
.legend-na::before     { background: var(--bg-warm); border: 1px dashed var(--muted-soft); }

/* ============================================================ FEE SECTIONS */
.fee-section { margin-bottom: 2.5rem; }
.fee-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.fee-section-stripe {
  display: block;
  width: 4px;
  min-height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.stripe-family     { background: var(--brand); }
.stripe-employment { background: var(--accent); }
.stripe-citizenship{ background: var(--gold); }
.stripe-other      { background: var(--muted-soft); }
.stripe-warn       { background: var(--warn); }
.stripe-gold       { background: var(--gold); }
.fee-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}
.fee-section-sub {
  font-size: 0.825rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================ FULL FEE TABLE */
.fee-table-full thead th.col-paper  { min-width: 80px; }
.fee-table-full thead th.col-online { min-width: 100px; }
.fee-table-full thead th.col-note   { min-width: 160px; font-size: 0.68rem; }
.fee-note { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.na-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--muted-soft);
  background: var(--line-soft);
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}
.form-code-link { text-decoration: none; }
.form-code-link:hover .fee-form-code { text-decoration: underline; }
.warn-amount { color: var(--warn); }
.total-row td { background: var(--bg-warm); font-weight: 500; }
.total-amount { color: var(--brand); }
.fee-section-tip {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.825rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.fee-section-tip a { color: var(--accent); font-weight: 500; }
.fee-row-callouts { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.85rem; }
.fee-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1; }
.fee-callout strong { display: block; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.2rem; }
.fee-callout p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================================ FAQ ACCORDION */
.faq-accordion { display: flex; flex-direction: column; gap: 0; }
.faq-detail {
  border-bottom: 1px solid var(--line);
}
.faq-detail:first-child { border-top: 1px solid var(--line); }
.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.faq-detail[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 0 1.1rem 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-body p { margin: 0 0 0.6rem 0; }
.faq-body p:last-child { margin: 0; }
.faq-body ul { padding-left: 1.25rem; margin: 0.4rem 0; }
.faq-body li { margin-bottom: 0.3rem; }
.faq-body a { color: var(--accent); font-weight: 500; }

/* ============================================================ FEES SIDEBAR */
.fees-sidebar { position: sticky; top: 80px; }
.sidebar-cta-card {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-cta-icon { font-size: 1.75rem; margin-bottom: 0.65rem; }
.sidebar-cta-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
}
.sidebar-cta-card p { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 1rem 0; line-height: 1.5; }
.sidebar-source-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.sidebar-source-card h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.source-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.source-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.source-list svg { color: var(--good); flex-shrink: 0; }
.source-note { font-size: 0.72rem; color: var(--muted); margin: 0; line-height: 1.5; }
.sidebar-quick-links {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.sidebar-quick-links h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.15s;
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { color: var(--brand); }
.ql-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-family     { background: var(--brand); }
.dot-employment { background: var(--accent); }
.dot-citizenship{ background: var(--gold); }
.dot-maintenance{ background: var(--good); }
.dot-warn       { background: var(--warn); }

/* ============================================================ PRINT STYLES */
@media print {
  .site-header, .page-hero-stats .btn-print,
  .ad-slot, .fees-sidebar, .toc-nav,
  .trust-strip, .site-footer { display: none !important; }
  .col-lg-2, .col-lg-3 { display: none !important; }
  .col-lg-7 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .fee-section { page-break-inside: avoid; }
  .fee-table-full { font-size: 0.8rem; }
  .page-hero-inner { border-bottom: 2px solid #000; }
}

@media (max-width: 767px) {
  .page-hero-stats { justify-content: flex-start; }
  .fee-table-full thead th.col-note,
  .fee-table-full tbody td.col-note { display: none; }
}

/* ============================================================ VISA BULLETIN — EDITION BADGE */
.vb-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.65rem;
}
.vb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  animation: pulseRing 2.5s infinite;
}
.vb-sep { color: var(--line); }

/* ============================================================ VISA BULLETIN — SECTION */
.vb-section { margin-bottom: 2.75rem; }
.vb-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.vb-section-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-top: 3px;
  white-space: nowrap;
}
.badge-red   { background: var(--brand-soft);  color: var(--brand); border: 1px solid #f5c8c1; }
.badge-blue  { background: var(--accent-soft); color: var(--accent); border: 1px solid #bfdbfe; }
.badge-muted { background: var(--line-soft);   color: var(--muted);  border: 1px solid var(--line); }
.vb-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}
.vb-section-sub {
  font-size: 0.825rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.vb-subsection {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================ VISA BULLETIN — TABS */
.vb-nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 0 1rem;
}
.vb-tab {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.vb-tab:hover { color: var(--ink); }
.vb-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.vb-tab-content { padding: 0; }

/* ============================================================ VISA BULLETIN — TABLE */
.vb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 620px;
}
.vb-table thead th {
  background: var(--bg-warm);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.vb-table thead th.cat-col {
  text-align: left;
  min-width: 190px;
}
.vb-table thead th:first-child { text-align: left; }
.country-sub { display: block; font-size: 0.6rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted-soft); }
.vb-table tbody td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  text-align: center;
}
.vb-table tbody td.cat-cell { text-align: left; }
.vb-table tbody tr:last-child td { border-bottom: none; }
.vb-table tbody tr:hover td { background: var(--bg-warm); }
.cat-cell { min-width: 190px; }
.cat-code {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
}
.cat-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* ── Date & status badges ── */
.vb-current {
  display: inline-block;
  background: var(--good-soft);
  color: var(--good);
  border: 1px solid #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vb-unavail {
  display: inline-block;
  background: var(--line-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
}
.vb-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.vb-recent  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.vb-old     { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.vb-ancient { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============================================================ VISA BULLETIN — LEGEND */
.vb-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.75rem 0 2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--muted);
}
.vb-legend .legend-item { display: flex; align-items: center; gap: 0.5rem; }

/* ============================================================ VISA BULLETIN — HOW TO READ */
.vb-explainer {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.vb-explainer-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.25rem 0;
}
.explainer-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.explainer-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.explainer-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.explainer-card p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.explainer-card a { color: var(--accent); }
.explainer-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-warm);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================ VISA BULLETIN — SIDEBAR */
.vb-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 0; }
.vb-archive-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}
.vb-archive-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.vb-archive-list li:last-child { border-bottom: none; }
.vb-archive-list a { color: var(--accent); text-decoration: none; flex: 1; }
.vb-archive-list a:hover { text-decoration: underline; }
.vb-archive-current { font-weight: 500; color: var(--ink); }
.vb-archive-current em { font-weight: 400; font-style: normal; color: var(--good); font-size: 0.72rem; }
.archive-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.dot-current { background: var(--good); box-shadow: 0 0 0 2px rgba(22,163,74,0.2); }
.vb-vol {
  font-size: 0.68rem;
  color: var(--muted-soft);
  white-space: nowrap;
  margin-left: auto;
}
.vb-official-link {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.25rem;
}
.vb-official-link:hover { text-decoration: underline; }
.vb-fact-list { display: flex; flex-direction: column; gap: 0; }
.vb-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
}
.vb-fact:last-child { border-bottom: none; }
.vb-fact-label { color: var(--muted); white-space: nowrap; }
.vb-fact-value { color: var(--ink); font-weight: 500; text-align: right; }

/* ============================================================ VB PRINT */
@media print {
  .vb-sidebar, .ad-slot, .trust-strip, .site-footer, .site-header { display: none !important; }
  .col-lg-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .col-lg-4 { display: none !important; }
  .vb-section { page-break-inside: avoid; }
}

@media (max-width: 991px) {
  .vb-sidebar { position: static; }
}

/* ============================================================ FEE DETAIL PAGES */
.fee-section-desc {
  color: var(--ink-soft);
  font-size: 0.925rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.fee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
}
.fee-card-body { padding: 0; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.fee-row:last-child { border-bottom: none; }
.fee-row-note { background: var(--line-soft); }
.fee-label { color: var(--ink-soft); flex: 1; }
.fee-highlight {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
}
.fee-save {
  font-weight: 600;
  color: var(--good);
  font-size: 0.875rem;
}
.fee-unavail {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
.fee-card-note {
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.fee-card-note a { color: var(--accent); }
.fee-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.82rem;
}
.fee-meta {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.fee-meta:last-child { border-bottom: none; }
.fee-meta:nth-child(even) { background: var(--line-soft); }
.fee-meta-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 140px;
  flex-shrink: 0;
}

/* Scenario cards */
.scenario-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.scenario-title {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}
.scenario-rows { padding: 0; }
.scenario-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line-soft);
}
.scenario-row:last-child { border-bottom: none; }
.scenario-total {
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}
.scenario-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* Guide cards (hub page) */
.guide-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: var(--bg-card);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  height: 100%;
}
.guide-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.guide-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.guide-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.guide-card-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.guide-card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Section title (guides hub) */
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

/* Prose content (legal pages) */
.prose-content { color: var(--ink-soft); line-height: 1.75; }
.prose-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.prose-content h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.prose-content p { margin-bottom: 1rem; }
.prose-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-content li { margin-bottom: 0.35rem; }
.prose-content a { color: var(--accent); }
.prose-content strong { color: var(--ink); }

/* Sitemap */
.sitemap-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--brand);
}
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sitemap-list li a {
  display: block;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.sitemap-list li a:hover { color: var(--brand); text-decoration: underline; }
.sitemap-list li:last-child a { border-bottom: none; }

/* accent-light alias used in some pages */
:root { --accent-light: var(--accent-soft); }

/* ============================================================ PROCESS TIMELINE */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 2.25rem;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand) 0%, var(--accent) 100%);
  border-radius: 2px;
  opacity: 0.25;
}
.process-step {
  position: relative;
  padding: 0 0 1.75rem 1.25rem;
}
.process-step:last-child { padding-bottom: 0; }
.process-step-num {
  position: absolute;
  left: -2.25rem;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.process-step-last .process-step-num {
  background: var(--good);
}
.process-step-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.process-step-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}
.process-step-sub {
  font-size: 0.825rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.process-step-sub ul {
  margin: 0.4rem 0 0 0;
  padding-left: 1.2rem;
}
.process-step-sub li { margin-bottom: 0.2rem; }
.process-step-sub strong { color: var(--ink); }
.process-step-sub a { color: var(--accent); }
.process-step-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.tag-wait   { background: var(--bg-warm); color: var(--muted); border: 1px solid var(--line); }
.tag-action { background: var(--brand-soft); color: var(--brand); border: 1px solid #f5c8c1; }
.tag-done   { background: var(--good-soft); color: var(--good); border: 1px solid #86efac; }
.tag-info   { background: var(--accent-soft); color: var(--accent); border: 1px solid #bfdbfe; }

/* ============================================================ GUIDE ARTICLE — ARTICLE META */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.article-meta strong { color: var(--ink-soft); }

/* ============================================================ GUIDE CATEGORIES (hub filter tabs) */
.guide-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.guide-filter-tab {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.guide-filter-tab:hover,
.guide-filter-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ============================================================ CALCULATOR */
.calc-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.calc-section { margin-bottom: 1.65rem; }
.calc-section:last-child { margin-bottom: 0; }
.calc-section-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.55rem; display: block;
}
.calc-section-title {
  font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem;
}
.calc-section-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.7rem; }

/* Option pills — radio/checkbox styled as toggles */
.option-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.option-pill input { display: none; }
.option-pill label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--bg-card);
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all 0.14s; user-select: none; line-height: 1.3;
}
.option-pill input:checked + label {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
  font-weight: 600;
}
.option-pill label:hover { border-color: var(--muted-soft); color: var(--ink); background: var(--line-soft); }
.option-pill input:checked + label:hover { background: var(--brand-soft); }

/* Styled select */
.calc-select {
  width: 100%; padding: 0.6rem 2.5rem 0.6rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center;
  background-size: 1rem; appearance: none;
  font-size: 0.9rem; font-family: inherit; color: var(--ink);
  cursor: pointer; transition: border-color 0.14s;
}
.calc-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Slider */
.calc-range-wrap { padding: 0.25rem 0 0.5rem; }
.calc-range {
  width: 100%; height: 6px; appearance: none; border-radius: 3px;
  background: var(--line); outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(192,57,43,0.3);
  cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(192,57,43,0.3);
  cursor: pointer;
}
.calc-range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted-soft); margin-top: 0.4rem; }
.calc-range-value { font-size: 0.875rem; font-weight: 600; color: var(--brand); margin-top: 0.3rem; }

/* Checkbox list */
.check-list { display: flex; flex-direction: column; gap: 0.55rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.check-item input[type="checkbox"] { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check-item-body { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.4; cursor: pointer; }
.check-item-body strong { color: var(--ink); display: block; }

/* Result panel */
.calc-result {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow);
  position: sticky; top: 80px; z-index: 1;
}
.calc-result-title {
  font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.calc-total { font-family: 'Fraunces', serif; font-size: 2.75rem; font-weight: 600; color: var(--brand); line-height: 1; }
.calc-total-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.fee-breakdown { margin-top: 1.1rem; }
.fee-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.84rem; gap: 0.5rem;
}
.fee-line:last-child { border-bottom: none; }
.fee-line-name { color: var(--ink-soft); flex: 1; }
.fee-line-amt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.fee-line.total-row {
  border-top: 2px solid var(--line); margin-top: 0.5rem;
  padding-top: 0.55rem; border-bottom: none;
}
.fee-line.total-row .fee-line-name { font-weight: 700; color: var(--ink); }
.fee-line.total-row .fee-line-amt { font-weight: 700; color: var(--brand); font-size: 0.95rem; }
.fee-line.optional-row .fee-line-name { color: var(--muted); font-style: italic; }
.calc-note { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; line-height: 1.55; padding-top: 0.75rem; border-top: 1px solid var(--line-soft); }

/* Wait time bar */
.wait-months { font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 600; color: var(--brand); line-height: 1; }
.wait-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.wait-bar-track { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 0.85rem 0; }
.wait-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s ease, background 0.5s ease; }
.wait-current { color: var(--good); font-weight: 600; font-size: 0.9rem; }

/* Calculator hub cards */
.calc-hub-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none; display: block; height: 100%;
}
.calc-hub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.calc-hub-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.calc-hub-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.calc-hub-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.calc-hub-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.55rem; border-radius: 100px; margin-bottom: 0.85rem; }
.tag-free { background: var(--good-soft); color: var(--good); }
.tag-interactive { background: var(--accent-soft); color: var(--accent); }

