/* ==========================================================================
   IBACTP® FULL-CONTENT MODERN REDESIGN SYSTEM
   Preserves 100% of authentic content while transforming visual hierarchy,
   imagery, interactive sub-navigation, and modern card styling.
   ========================================================================== */

:root {
  --ib-primary: #0066e0;
  --ib-primary-dark: #07193b;
  --ib-primary-deep: #040e24;
  --ib-accent-cyan: #00c8ff;
  --ib-accent-gold: #e5a922;
  --ib-accent-emerald: #10b981;
  --ib-surface-card: #ffffff;
  --ib-surface-tint: #f8fafc;
  --ib-surface-alt: #f1f5f9;
  --ib-border-light: #e2e8f0;
  --ib-border-subtle: rgba(226, 232, 240, 0.8);
  --ib-text-dark: #0f172a;
  --ib-text-body: #334155;
  --ib-text-muted: #64748b;
  --ib-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --ib-shadow-card-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --ib-radius: 14px;
}

/* Global Typography & Polish */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--ib-text-body) !important;
  background-color: #fcfdfe !important;
  line-height: 1.68 !important;
  -webkit-font-smoothing: antialiased !important;
}

/* --------------------------------------------------------------------------
   MODERN HERO SECTION WITH DUAL COLUMN & PHOTOREALISTIC VISUALS
   -------------------------------------------------------------------------- */
.ax-hero, .sup-hero, .ib-hero, .exam-hero {
  position: relative !important;
  background: radial-gradient(circle at 85% 20%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 15% 90%, rgba(229, 169, 34, 0.08) 0%, transparent 45%),
              linear-gradient(140deg, #040e24 0%, #07193b 50%, #0c2656 100%) !important;
  color: #ffffff !important;
  padding: 56px 0 68px !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ax-hero::before, .sup-hero::before, .ib-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: #3ee1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-badge-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: #00c8ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00c8ff;
}

.ax-hero__t, .sup-hero__t, .ib-hero h1, .ax-hero h1, .sup-hero h1 {
  font-size: 38px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  margin: 0 0 16px !important;
}

.ax-hero__t span, .sup-hero__t span, .ib-hero h1 span {
  background: linear-gradient(120deg, #ffffff 40%, #70c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ax-hero__lede, .sup-hero__lede, .ib-hero p.ib-hero__lead, .ax-hero p {
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: #cbd5e1 !important;
  margin: 0 0 24px !important;
  max-width: 620px !important;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.hero-visual-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 102, 224, 0.2);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
}

.hero-visual-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(7, 25, 59, 0.95) 0%, rgba(7, 25, 59, 0.7) 70%, transparent 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-visual-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #38a5ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual-stats {
  display: flex;
  gap: 16px;
}

.hero-stat-item {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-item strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
}

/* Breadcrumb Styling */
.breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin-bottom: 20px !important;
}

.breadcrumb a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.breadcrumb a:hover {
  color: #00c8ff !important;
}

.breadcrumb span {
  color: #64748b !important;
}

/* --------------------------------------------------------------------------
   STICKY SUB-NAVIGATION / TABLE OF CONTENTS BAR
   -------------------------------------------------------------------------- */
.ib-sticky-toc {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ib-border-light);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 12px 0;
  margin-bottom: 24px;
}

.toc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.toc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ib-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-pills-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.toc-pill-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ib-text-body);
  background: var(--ib-surface-tint);
  border: 1px solid var(--ib-border-light);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-pill-btn:hover, .toc-pill-btn.active {
  background: var(--ib-primary);
  color: #ffffff;
  border-color: var(--ib-primary);
  box-shadow: 0 2px 8px rgba(0, 102, 224, 0.25);
}

/* --------------------------------------------------------------------------
   SECTION WRAPPERS & MODERN CARD PANELS
   -------------------------------------------------------------------------- */
.ab-sec, .ib-section {
  padding: 40px 0 !important;
  position: relative;
}

.ab-sec--tint, .ib-section--alt {
  background-color: var(--ib-surface-tint) !important;
  border-top: 1px solid var(--ib-border-light);
  border-bottom: 1px solid var(--ib-border-light);
}

.ab-sec--flush {
  padding: 16px 0 !important;
}

.ab-blk {
  margin-bottom: 28px;
}

.ab-blk--full {
  width: 100%;
}

.ab-panel {
  background: var(--ib-surface-card) !important;
  border: 1px solid var(--ib-border-light) !important;
  border-radius: var(--ib-radius) !important;
  padding: 32px !important;
  box-shadow: var(--ib-shadow-card) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin-bottom: 24px;
}

.ab-panel:hover {
  box-shadow: var(--ib-shadow-card-hover) !important;
}

.ab-panel--tint {
  background: linear-gradient(180deg, #ffffff 0%, var(--ib-surface-tint) 100%) !important;
  border-left: 4px solid var(--ib-primary) !important;
}

/* Typography Inside Content */
.ab-h4, .ab-blk__h, .ab-sec h2, .ab-sec h3, .ab-sec h4, .ib-section h2, .ib-section h3 {
  color: var(--ib-text-dark) !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.015em !important;
}

.ab-h4.ab-blk__h {
  font-size: 20px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ib-border-light);
}

.ab-h4.ab-blk__h::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--ib-primary);
  box-shadow: 0 0 6px var(--ib-primary);
}

.ab-p, .ib-section p {
  color: var(--ib-text-body) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  margin-bottom: 16px !important;
}

.ab-p strong, p strong {
  color: var(--ib-text-dark) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   CHECKLISTS & BULLET LISTS ENHANCEMENT
   -------------------------------------------------------------------------- */
.ab-checks, .ab-dots {
  list-style: none !important;
  padding: 0 !important;
  margin: 18px 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.ab-checks li, .ab-dots li {
  position: relative !important;
  padding: 12px 16px 12px 38px !important;
  background: var(--ib-surface-card);
  border: 1px solid var(--ib-border-light);
  border-radius: 10px;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ib-text-body) !important;
  transition: all 0.2s ease;
}

.ab-checks li:hover, .ab-dots li:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateY(-1px);
}

.ab-checks li::before, .ab-dots li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 12px !important;
  top: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  background: #dbeafe !important;
  color: var(--ib-primary) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
}

/* --------------------------------------------------------------------------
   STEP JOURNEYS & CANDIDATE FLOW CHAINS
   -------------------------------------------------------------------------- */
.ab-chain, .ab-blk__flow {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step-counter;
}

.ab-chain li, .ab-blk__flow li {
  counter-increment: step-counter;
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid var(--ib-border-light) !important;
  border-radius: 12px !important;
  padding: 20px 20px 20px 20px !important;
  box-shadow: var(--ib-shadow-card) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.25s ease;
}

.ab-chain li:hover, .ab-blk__flow li:hover {
  border-color: var(--ib-primary);
  box-shadow: var(--ib-shadow-card-hover);
  transform: translateY(-2px);
}

.ab-chain li::before, .ab-blk__flow li::before {
  content: "STEP " counter(step-counter) !important;
  display: inline-block !important;
  align-self: flex-start;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: var(--ib-primary) !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  margin-bottom: 12px !important;
}

/* --------------------------------------------------------------------------
   WIDE FIGURES & SECTION IMAGERY
   -------------------------------------------------------------------------- */
.ab-wide {
  margin: 28px 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--ib-border-light) !important;
  box-shadow: var(--ib-shadow-card) !important;
  background: #0f172a;
}

.ab-wide img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease;
}

.ab-wide:hover img {
  transform: scale(1.02);
}

.ab-wide figcaption {
  padding: 10px 18px;
  background: #f8fafc;
  font-size: 12.5px;
  color: var(--ib-text-muted);
  border-top: 1px solid var(--ib-border-light);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   DARK HIGH-TECH STAGE SECTIONS
   -------------------------------------------------------------------------- */
.ax-stage {
  padding: 56px 0;
  position: relative;
}

.ax-stage--dark {
  background: linear-gradient(145deg, #07193b 0%, #040e24 100%) !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ax-stage--dark .ab-panel {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

.ax-stage--dark .ab-h4, .ax-stage--dark .ab-blk__h, .ax-stage--dark h2, .ax-stage--dark h3 {
  color: #ffffff !important;
}

.ax-stage--dark .ab-p {
  color: #cbd5e1 !important;
}

.ax-stage--dark .ab-checks li, .ax-stage--dark .ab-dots li {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* --------------------------------------------------------------------------
   SPLIT SECTIONS (.rx-split)
   -------------------------------------------------------------------------- */
.rx-split {
  padding: 48px 0;
}

.rx-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .rx-split .container {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   NEXT STEP CTA BANNER (.ax-final)
   -------------------------------------------------------------------------- */
.ax-final {
  background: linear-gradient(135deg, #07193b 0%, #0c2656 60%, #0066e0 100%) !important;
  border-radius: 18px !important;
  padding: 40px !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(0, 102, 224, 0.15) !important;
  margin: 32px 0 !important;
  text-align: center !important;
}

.ax-final__k {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #3ee1ff !important;
  margin-bottom: 8px !important;
}

.ab-sec .ax-final h2,
.ab-sec .ax-final .ax-final__t,
.ax-final h2,
.ax-final .ax-final__t,
.ax-final__t {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 auto 12px !important;
  text-align: center !important;
}

.ab-sec .ax-final p,
.ab-sec .ax-final .ax-final__lede,
.ax-final p,
.ax-final .ax-final__lede,
.ax-final__lede {
  font-size: 15px !important;
  color: #e2e8f0 !important;
  max-width: 600px !important;
  margin: 0 auto 20px !important;
  text-align: center !important;
}

.ax-final .btn, .ax-final a.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #07193b;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.ax-final .btn:hover {
  background: #3ee1ff;
  color: #040e24;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   MODERN BUTTONS & ACTIONS
   -------------------------------------------------------------------------- */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0084ff 0%, #0066e0 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 102, 224, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #38a5ff 0%, #0084ff 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 224, 0.5);
  transform: translateY(-1px);
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #3ee1ff;
}

/* Tables Modern Styling */
table, .ab-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 20px 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--ib-border-light) !important;
}

th {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-align: left !important;
  padding: 14px 18px !important;
}

td {
  padding: 13px 18px !important;
  font-size: 14px !important;
  color: var(--ib-text-body) !important;
  border-bottom: 1px solid var(--ib-border-light) !important;
  background: #ffffff !important;
}

tr:nth-child(even) td {
  background: #f8fafc !important;
}

tr:last-child td {
  border-bottom: none !important;
}

/* --------------------------------------------------------------------------
   Full document content rendered inside the redesign's components
   -------------------------------------------------------------------------- */
#full-content .ab-p { font-size: 15px; line-height: 1.75; color: var(--text-body, #334155); margin: 0 0 14px; max-width: 74ch; }
#full-content .ab-h4, #full-content .ab-blk__h {
  font-family: var(--font-display, inherit); font-size: 17px; font-weight: 700;
  color: var(--text-heading, #0f172a); margin: 22px 0 10px;
}
#full-content .ab-panel { background: var(--bg-card-subtle, #f1f5f9); border: 1px solid rgba(15,23,42,.07);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 16px; }
#full-content .ab-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#full-content .ab-checks--two { grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); gap: 9px 24px; }
#full-content .ab-checks li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.6; color: var(--text-body, #334155); }
#full-content .ab-checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--primary-blue, #0284c7);
}
#full-content .ab-chain { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#full-content .ab-chain li { padding: 7px 13px; border-radius: 999px; background: var(--bg-card-subtle, #f1f5f9);
  border: 1px solid rgba(15,23,42,.08); font-size: 12.5px; font-weight: 600; color: var(--text-body, #334155); }
#full-content .ab-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr));
  border: 1px solid rgba(15,23,42,.09); border-radius: 14px; overflow: hidden; margin: 0 0 18px; background: #fff; }
#full-content .ab-spec__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid rgba(15,23,42,.07); }
#full-content .ab-spec__row dt { font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted, #64748b); margin: 0; }
#full-content .ab-spec__row dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text-heading, #0f172a); }
#full-content .ab-blk__cta { display: inline-block; margin: 0 10px 10px 0; }
#full-content .visual-banner-card { border-radius: 14px; overflow: hidden; aspect-ratio: 21/9; }
#full-content .step-node-card { break-inside: avoid; }

/* --------------------------------------------------------------------------
   Narrow-screen containment
   On a 390px screen the nested padding stacked up (container 24 + step card 40
   + step body 16 + panel 32 = 88px each side), leaving ~150px of usable width.
   Grid and flex children default to min-width:auto, so they refused to shrink
   below their min-content width and spilled past the card edge.
   -------------------------------------------------------------------------- */
#full-content .ab-checks,
#full-content .ab-checks > li,
#full-content .ab-spec,
#full-content .ab-spec__row,
#full-content .ab-spec__row > dt,
#full-content .ab-spec__row > dd,
#full-content .ab-chain,
#full-content .ab-chain > li,
#full-content .ab-route,
#full-content .ab-route > li,
#full-content .ab-step,
#full-content .ab-step__label,
#full-content .ab-step__summary { min-width: 0; }

#full-content .ab-checks > li,
#full-content .ab-chain > li,
#full-content .ab-route > li,
#full-content .ab-spec__row > dd,
#full-content .ab-p,
#full-content .ab-step__t { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  #full-content .ab-spec { grid-template-columns: 1fr; }
  #full-content .ab-spec__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  .perfect-container { padding-left: 16px; padding-right: 16px; }
  .step-node-card { padding: 22px 18px; }
  .bento-card { padding: 22px 18px; }
  #full-content .ab-step__body { padding-left: 12px; padding-right: 12px; }
  #full-content .ab-panel { padding: 16px 14px; }
  #full-content .ab-checks--two,
  #full-content .ab-checks--three { grid-template-columns: 1fr; }
  #full-content .ab-step__summary { grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 10px; padding: 12px 12px; }
  #full-content .ab-step__head { width: 42px; height: 42px; }

  /* the pill row is a horizontal scroller at desktop; on a phone that clipped
     the last pills mid-word, so let it wrap instead */
  .subnav-track { flex-wrap: wrap; overflow-x: visible; gap: 10px; }
  .subnav-pills { flex-wrap: wrap; }
  .subnav-link { font-size: 12px; padding: 7px 12px; }
}

/* --------------------------------------------------------------------------
   .ib-container is used 24 times across the ported markup but is only defined
   in the older shared stylesheet, which the perfect_system pages do not load.
   Undefined, it rendered full-bleed with zero padding, so hero copy sat hard
   against the viewport edge.
   -------------------------------------------------------------------------- */
.ib-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .ib-container { padding-left: 16px; padding-right: 16px; }
}

/* --------------------------------------------------------------------------
   Self-contained styling for the appended content section.
   Five of the ported pages (the four resource hubs and the article template)
   load ib-redesign.css, which has no .step-node-card / .bento-card /
   .perfect-container. The renderer emitted those classes regardless, so on
   those 29 pages the content rendered completely unstyled. Everything the
   renderer emits is defined here, scoped to #full-content, so it looks the
   same whichever design stylesheet the page happens to load.
   -------------------------------------------------------------------------- */
#full-content {
  --fc-ink: #0f172a;
  --fc-body: #334155;
  --fc-muted: #64748b;
  --fc-line: #e2e8f0;
  --fc-accent: #4f46e5;
  --fc-bg: #f8fafc;
  background: var(--fc-bg);
}
#full-content .perfect-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
#full-content .bento-header-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fc-accent); background: #eff6ff; border: 1px solid #bfdbfe;
  padding: 5px 12px; border-radius: 6px;
}
#full-content .bento-title {
  font-size: 28px; font-weight: 800; color: var(--fc-ink);
  margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.2;
}
#full-content .bento-desc {
  font-size: 15.5px; line-height: 1.7; color: var(--fc-muted); margin-bottom: 24px;
}
#full-content .bento-card {
  background: #fff; border: 1px solid var(--fc-line); border-radius: 18px;
  padding: 32px; margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
}
#full-content .step-node-card {
  background: #fff; border: 1px solid var(--fc-line); border-left: 6px solid var(--fc-accent);
  border-radius: 18px; padding: 32px 36px; margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  transition: box-shadow .25s ease;
}
#full-content .step-node-card:hover { box-shadow: 0 16px 36px rgba(15,23,42,.09); }
#full-content .step-node-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
#full-content .step-badge-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fc-accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
#full-content .step-node-title {
  font-size: 21px; font-weight: 800; color: var(--fc-ink); margin: 0; line-height: 1.28;
}
#full-content .visual-banner-card {
  border-radius: 14px; overflow: hidden; aspect-ratio: 21/9; background: #e2e8f0;
}
#full-content .visual-banner-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  #full-content .perfect-container { padding: 0 16px; }
  #full-content .step-node-card { padding: 22px 18px; }
  #full-content .bento-card { padding: 22px 18px; }
  #full-content .bento-title { font-size: 22px; }
  #full-content .step-node-title { font-size: 18px; }
}

/* An image the client asked for inside the copy ("Put IMAGE HERE"). */
.ab-blk__banner {
  margin: 26px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b2f;
}
.ab-blk__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Lines the client hyperlinked to an external resource in their document
   (App\Support\SourceLinks). Marked so they read as an outbound link rather
   than as body copy. */
.rs-p--src a, .ab-p--src a { display: inline-flex; align-items: center; gap: 6px; }
.rs-p--src a, .ab-p--src a,
.ab-checks a, .rs-list__items a, .ab-blk__h a {
  color: #1b4ea8;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.rs-p--src a:hover, .ab-p--src a:hover,
.ab-checks a:hover, .rs-list__items a:hover, .ab-blk__h a:hover { color: #0f2f6b; }
.ax-stage--dark .rs-p--src a, .ax-stage--dark .ab-p--src a,
.ax-stage--dark .ab-checks a, .ax-stage--dark .ab-blk__h a { color: #c9a227; }

/* The support contact form, built to the field list in the client's
   SUPPORT & CONTACT US document. */
.sup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.sup-form__legend {
  grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #6b7280;
}
.sup-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sup-field--wide { grid-column: 1 / -1; }
.sup-field > label,
.sup-choice legend { font-size: 13.5px; font-weight: 600; color: #0b1f3f; }
.sup-field > label span[aria-hidden] { color: #b91c1c; }
.sup-field input[type=text],
.sup-field input[type=email],
.sup-field input[type=tel],
.sup-field select,
.sup-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d7dEE8; border-radius: 8px;
  box-sizing: border-box; font-family: inherit; font-size: 14px; background: #f8fafc;
  color: #0b1f3f;
}
.sup-field textarea { resize: vertical; min-height: 120px; }
.sup-field input:focus, .sup-field select:focus, .sup-field textarea:focus {
  outline: 2px solid #2563eb; outline-offset: 1px; background: #fff;
}
.sup-field input[type=file] { font-size: 13px; }
.sup-hint { font-size: 12px; color: #6b7280; }
.sup-choice { border: 0; padding: 0; margin: 0; }
.sup-choice legend { padding: 0 0 8px; }
.sup-choice label { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-weight: 500; }
.sup-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; font-weight: 400; }
.sup-consent input { margin-top: 3px; flex: 0 0 auto; }
.sup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup-note { grid-column: 1 / -1; margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.sup-note--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sup-note--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
@media (max-width: 720px) { .sup-form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Resource Feature Cards - Single Clean Content & Spec Grid Fix
   ========================================================================== */
.rx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rx-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  flex: 1;
}
.rx-card__t {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 750;
  line-height: 1.3;
  color: #0b1f3f;
}
.rx-card__full {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding-top: 0;
}
.rx-card__full .ab-p {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}
.rx-card__full .ab-blk__h {
  font-size: 15px;
  font-weight: 700;
  color: #0b1f3f;
  margin: 10px 0 2px;
}
.rx-card__full .ab-panel {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin: 4px 0 0;
}
.rx-card__full .ab-blk__lead {
  font-size: 13.5px;
  font-weight: 650;
  color: #1e293b;
  margin-bottom: 8px;
}
.rx-card__full .ab-checks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.rx-card__full .ab-checks li {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.rx-card__full .ab-p--src {
  margin-top: auto;
  padding-top: 10px;
}
.rx-card__full .ab-p--src a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}
.rx-card__full .ab-p--src a:hover {
  text-decoration: underline;
  color: #0b1f3f;
}
.rx-card__full .ab-blk__cta {
  margin-top: auto;
  padding-top: 8px;
}
.rx-card__full .ab-btn {
  font-size: 12.5px;
  padding: 8px 16px;
}

/* Fix for .ab-spec inside cards (prevents bad squished 4-column design) */
.rx-card .ab-spec {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
}
.rx-card .ab-spec__row {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  padding: 10px 14px !important;
  border-right: none !important;
  border-bottom: 1px solid #edf2f7 !important;
  gap: 3px !important;
}
.rx-card .ab-spec__row:last-child {
  border-bottom: none !important;
}
.rx-card .ab-spec dt {
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #0b1f3f !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
.rx-card .ab-spec dd {
  font-size: 12.5px !important;
  color: #475569 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* Dark theme support for rx-card when inside dark stages */
.ax-stage--dark .rx-card__t {
  color: #ffffff;
}
.ax-stage--dark .rx-card__full .ab-p {
  color: rgba(255, 255, 255, 0.8);
}
.ax-stage--dark .rx-card__full .ab-blk__h {
  color: #ffffff;
}
.ax-stage--dark .rx-card__full .ab-panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.ax-stage--dark .rx-card__full .ab-blk__lead {
  color: #ffffff;
}
.ax-stage--dark .rx-card__full .ab-checks li {
  color: rgba(255, 255, 255, 0.85);
}
.ax-stage--dark .rx-card .ab-spec {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.ax-stage--dark .rx-card .ab-spec__row {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.ax-stage--dark .rx-card .ab-spec dt {
  color: var(--brand-gold, #e0a92e) !important;
}
.ax-stage--dark .rx-card .ab-spec dd {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --------------------------------------------------------------------------
   BALANCED 4-CARD GRID & FEATURED SPLIT SECTION
   -------------------------------------------------------------------------- */
.rx-cards--4,
.rx-cards:has(> .rx-card:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 820px) {
  .rx-cards--4,
  .rx-cards:has(> .rx-card:nth-child(4):last-child) {
    grid-template-columns: 1fr !important;
  }
}

.rx-split {
  display: grid !important;
  grid-template-columns: minmax(320px, 420px) 1fr !important;
  gap: clamp(24px, 3.5vw, 48px) !important;
  align-items: start !important;
  margin-top: clamp(40px, 4vw, 64px) !important;
  padding: clamp(24px, 3vw, 40px) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05) !important;
}

.rx-split--flip .rx-split__media {
  order: 2 !important;
}

.rx-split__media {
  margin: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  aspect-ratio: 4/3 !important;
  background: #eef1f6 !important;
  position: sticky !important;
  top: 96px !important;
}

.rx-split__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.rx-split__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.rx-split__n {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(11, 27, 51, 0.9) !important;
  border: 1px solid rgba(224, 169, 46, 0.6) !important;
  color: var(--brand-gold, #e0a92e) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

.rx-split__t {
  margin: 0 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f1b2d !important;
}

@media (max-width: 900px) {
  .rx-split {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }
  .rx-split__media {
    position: static !important;
    max-height: 320px !important;
  }
  .rx-split--flip .rx-split__media {
    order: 0 !important;
  }
}

