/* Shared styles for FAQ topic pages */
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Inter-VariableFont_opsz,wght.woff2") format("woff2");
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Brand helpers */
.brand-blue {
  background-color: #23245f;
}
.brand-blue-text {
  color: #23245f;
}
.brand-orange {
  background: #ff7f00;
}
.hover-brand-orange:hover {
  background: #e67300;
}
.hero-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-subtitle {
  line-height: 1.6;
  font-weight: 400;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: #ff7f00;
}
.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 8px;
}

/* Cards for related links */
.faq-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: #333;
}
.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #23245f, #ff7f00);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 127, 0, 0.2);
}
.faq-card:hover::before {
  transform: scaleX(1);
}
.faq-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}
.faq-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #23245f;
  margin-bottom: 0.25rem;
}
.faq-card-description {
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-card-cta {
  color: #23245f;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Visual Steps */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}
.step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #23245f;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Schematic */
.schematic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .schematic {
    grid-template-columns: repeat(4, 1fr);
  }
}
.node {
  background: #fff;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: #23245f;
}
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow: auto;
}
.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.data th,
.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
.data th {
  background: #f8fafc;
  color: #23245f;
  font-weight: 800;
}
.data tr:last-child td {
  border-bottom: none;
}

/* Checklist */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
}
.check-item {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 12px 12px 44px;
}
.check-item::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff7f00;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(255, 127, 0, 0.35);
}

/* Callouts */
.callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 16px;
  border-radius: 10px;
}
.note {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.timeline-item {
  position: relative;
  margin-bottom: 16px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #23245f;
  box-shadow: 0 0 0 3px #fff;
}
.timeline-time {
  font-weight: 800;
  color: #23245f;
  margin-bottom: 4px;
}

/* Compact CTA */
.cta-compact {
  background: linear-gradient(135deg, #23245f 0%, #2d2f6b 100%);
  border-radius: 16px;
  padding: 22px;
  color: #fff;
}
.cta-compact a {
  color: #000;
  background: #ff7f00;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.cta-compact a:hover {
  background: #e67300;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

/* Spacing scale and layout utilities (non-destructive) */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}
/* Vertical stack utility: apply consistent vertical rhythm among direct children */
.stack {
  --stack-space: var(--space-6);
}
.stack > * + * {
  margin-top: var(--stack-space);
}
.stack-2 {
  --stack-space: var(--space-2);
}
.stack-3 {
  --stack-space: var(--space-3);
}
.stack-4 {
  --stack-space: var(--space-4);
}
.stack-5 {
  --stack-space: var(--space-5);
}
.stack-6 {
  --stack-space: var(--space-6);
}
.stack-8 {
  --stack-space: var(--space-8);
}
.stack-10 {
  --stack-space: var(--space-10);
}
.stack-12 {
  --stack-space: var(--space-12);
}

/* Reading width helpers */
.measure {
  max-width: 65ch;
}
.measure-wide {
  max-width: 75ch;
}
.measure-narrow {
  max-width: 52ch;
}
.center {
  margin-left: auto;
  margin-right: auto;
}

/* Visual dividers to break up content sections without heavy borders */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.08)
  );
  border: 0;
}

/* Relax gaps on complex grids to avoid cramped feel */
.step-grid {
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .step-grid {
    gap: var(--space-6);
  }
}
.schematic {
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .schematic {
    gap: var(--space-4);
  }
}
.checklist {
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .checklist {
    gap: var(--space-4);
  }
}

/* Slightly roomier cards for better scanability on dense pages */
.step-card {
  padding: 20px;
}
.faq-card {
  padding: 1.5rem 1.75rem;
}

/* Typography tweaks for readability in content blocks */
.lead {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.95;
}
.small-muted {
  font-size: 0.92rem;
  color: #6b7280;
}
