/* ============================================================
   Aegis Learn — explainer articles + interactive career widgets
   Shared by /learn/*.html and the "Explainer" block embedded in
   every program page. Every rule is scoped under .axl so it can
   sit inside pages that load Bootstrap 3, 4 or 5 without leaking.
   Palette from design-system.md only.
   ============================================================ */
.axl, .axl * { box-sizing: border-box; }
.axl {
  --axl-red: #a7283d; --axl-crimson: #862127; --axl-gold: #cbaa5c; --axl-gold-light: #f4d780;
  --axl-teal: #40b094; --axl-ink: #0a0a0a; --axl-text: #1a1a1a; --axl-text-2: #3a3131;
  --axl-muted: #6b6b73; --axl-line: #ececef; --axl-bg: #fff; --axl-bg-2: #fafafa; --axl-bg-3: #f5f5f7;
  --axl-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px -8px rgba(0,0,0,.08);
  --axl-shadow-lg: 0 4px 8px rgba(0,0,0,.04), 0 24px 48px -12px rgba(0,0,0,.16);
  font-family: 'Poppins', -apple-system, system-ui, sans-serif; color: var(--axl-text-2);
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 16px;
}
.axl a { color: var(--axl-red); text-decoration: none; }
.axl a:hover { color: var(--axl-crimson); text-decoration: underline; }
.axl img { max-width: 100%; height: auto; }
.axl .axl-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.axl .axl-narrow { max-width: 820px; }

/* ---------- type ---------- */
.axl .axl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--axl-red); margin: 0 0 14px; }
.axl .axl-eyebrow .axl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--axl-red); box-shadow: 0 0 0 4px rgba(167,40,61,.14); }
.axl h1, .axl h2, .axl h3, .axl h4 { font-family: 'Poppins', sans-serif; color: var(--axl-text); margin: 0 0 14px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-transform: none; }
.axl h1 { font-size: clamp(32px, 5vw, 52px); }
.axl h2 { font-size: clamp(26px, 3.4vw, 36px); }
.axl h3 { font-size: 20px; }
.axl h4 { font-size: 16px; }
.axl .axl-grad { background: linear-gradient(135deg, var(--axl-red), var(--axl-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.axl .axl-lead { font-size: 18px; color: var(--axl-muted); max-width: 70ch; margin: 0 0 20px; }
.axl p { margin: 0 0 16px; }
.axl ul, .axl ol { margin: 0 0 18px; padding-left: 22px; }
.axl li { margin-bottom: 8px; }
.axl strong { color: var(--axl-text); font-weight: 600; }
.axl .axl-mono { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }

/* ---------- buttons ---------- */
.axl .axl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: transform .18s, box-shadow .18s, background .18s; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.axl .axl-btn-red { background: var(--axl-red); color: #fff !important; box-shadow: 0 8px 20px -6px rgba(167,40,61,.5); }
.axl .axl-btn-red:hover { background: var(--axl-crimson); transform: translateY(-1px); color: #fff !important; }
.axl .axl-btn-gold { background: linear-gradient(135deg, var(--axl-gold), var(--axl-gold-light)); color: #2a1a08 !important; box-shadow: 0 8px 20px -6px rgba(203,170,92,.5); }
.axl .axl-btn-gold:hover { transform: translateY(-1px); color: #2a1a08 !important; }
.axl .axl-btn-ghost { background: #fff; color: var(--axl-text) !important; border-color: rgba(0,0,0,.14); }
.axl .axl-btn-ghost:hover { border-color: var(--axl-red); color: var(--axl-red) !important; }
.axl .axl-btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 9px; }

/* ---------- article hero ---------- */
.axl .axl-hero { padding: 120px 0 48px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(167,40,61,.08), transparent 60%), linear-gradient(180deg, #fafaf7, #fff); border-bottom: 1px solid var(--axl-line); }
.axl .axl-crumbs { font-size: 13px; color: var(--axl-muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.axl .axl-crumbs a { color: var(--axl-muted); }
.axl .axl-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--axl-muted); margin-top: 18px; }
.axl .axl-meta span strong { color: var(--axl-text); }

/* ---------- layout: sticky TOC + article ---------- */
.axl .axl-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 72px; align-items: start; }
.axl .axl-toc { position: sticky; top: 96px; font-size: 14px; }
.axl .axl-toc h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--axl-muted); margin-bottom: 12px; }
.axl .axl-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--axl-line); }
.axl .axl-toc li { margin: 0; }
.axl .axl-toc a { display: block; padding: 7px 0 7px 14px; color: var(--axl-text-2); border-left: 2px solid transparent; margin-left: -2px; line-height: 1.35; }
.axl .axl-toc a:hover, .axl .axl-toc a.is-active { color: var(--axl-red); border-left-color: var(--axl-red); text-decoration: none; }
.axl .axl-toc .axl-toc-cta { margin-top: 22px; padding: 18px; background: var(--axl-ink); border-radius: 14px; color: #fff; }
.axl .axl-toc .axl-toc-cta p { font-size: 13px; color: rgba(255,255,255,.7); margin: 0 0 12px; }
.axl .axl-toc .axl-toc-cta strong { color: #fff; display: block; margin-bottom: 4px; font-size: 14px; }
.axl .axl-article > section { margin-bottom: 56px; scroll-margin-top: 96px; }
.axl .axl-article section > h2 { padding-top: 6px; }

/* ---------- definition box (built for featured snippets / AI answers) ---------- */
.axl .axl-def { background: #fff; border: 1px solid var(--axl-line); border-left: 4px solid var(--axl-red); border-radius: 14px; padding: 22px 26px; margin: 0 0 28px; box-shadow: var(--axl-shadow); }
.axl .axl-def .axl-def-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--axl-red); margin-bottom: 8px; display: block; }
.axl .axl-def p { font-size: 17.5px; line-height: 1.6; color: var(--axl-text); margin: 0; }

/* ---------- cards ---------- */
.axl .axl-grid { display: grid; gap: 18px; }
.axl .axl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.axl .axl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.axl .axl-grid-4 { grid-template-columns: repeat(4, 1fr); }
.axl .axl-card { background: #fff; border: 1px solid var(--axl-line); border-radius: 16px; padding: 22px; box-shadow: var(--axl-shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.axl .axl-card:hover { transform: translateY(-2px); box-shadow: var(--axl-shadow-lg); border-color: rgba(167,40,61,.18); }
.axl .axl-card h3, .axl .axl-card h4 { margin-bottom: 8px; }
.axl .axl-card p { font-size: 14.5px; color: var(--axl-muted); margin: 0; }
.axl .axl-card .axl-ic { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; background: rgba(167,40,61,.08); }
.axl .axl-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: rgba(203,170,92,.16); color: #7a5a1a; margin-bottom: 10px; }
.axl .axl-tag-red { background: rgba(167,40,61,.1); color: var(--axl-red); }
.axl .axl-tag-teal { background: rgba(64,176,148,.14); color: #1f7a63; }
.axl .axl-steps { counter-reset: axl; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.axl .axl-steps li { position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--axl-line); border-radius: 14px; margin: 0; }
.axl .axl-steps li::before { counter-increment: axl; content: counter(axl, decimal-leading-zero); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 10px; background: var(--axl-ink); color: var(--axl-gold); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.axl .axl-steps li strong { display: block; margin-bottom: 4px; }
.axl .axl-steps li span { font-size: 14.5px; color: var(--axl-muted); }
.axl .axl-callout { background: var(--axl-ink); color: rgba(255,255,255,.86); border-radius: 18px; padding: 28px 30px; position: relative; overflow: hidden; }
.axl .axl-callout::before { content: ''; position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(167,40,61,.5), transparent 65%); filter: blur(30px); }
.axl .axl-callout h3, .axl .axl-callout h4 { color: #fff; }
.axl .axl-callout p { position: relative; }
.axl .axl-callout a { color: var(--axl-gold-light); }
.axl .axl-callout strong { color: #fff; }
.axl .axl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 20px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--axl-shadow); }
.axl .axl-table th, .axl .axl-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--axl-line); vertical-align: top; }
.axl .axl-table th { background: var(--axl-bg-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--axl-muted); }
.axl .axl-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.axl details.axl-faq { background: #fff; border: 1px solid var(--axl-line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.axl details.axl-faq summary { padding: 18px 54px 18px 22px; cursor: pointer; font-weight: 600; color: var(--axl-text); list-style: none; position: relative; font-size: 15.5px; }
.axl details.axl-faq summary::-webkit-details-marker { display: none; }
.axl details.axl-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--axl-bg-3); display: flex; align-items: center; justify-content: center; font-weight: 400; color: var(--axl-red); transition: transform .2s; }
.axl details.axl-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.axl details.axl-faq .axl-faq-body { padding: 0 22px 20px; font-size: 15px; color: var(--axl-text-2); }

/* ============================================================
   WIDGETS
   ============================================================ */
.axl .axw { background: #fff; border: 1px solid var(--axl-line); border-radius: 20px; padding: 26px; margin: 24px 0 32px; box-shadow: var(--axl-shadow); position: relative; }
.axl .axw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.axl .axw-head h3 { margin: 0 0 4px; font-size: 18px; }
.axl .axw-head p { margin: 0; font-size: 13.5px; color: var(--axl-muted); }
.axl .axw-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7a5a1a; background: rgba(203,170,92,.18); padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.axl .axw-foot { font-size: 12px; color: var(--axl-muted); margin: 16px 0 0; }

/* salary explorer */
.axl .axw-slider { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; font-size: 14px; }
.axl .axw-slider input[type=range] { flex: 1; accent-color: var(--axl-red); height: 4px; cursor: pointer; }
.axl .axw-slider output { min-width: 112px; font-weight: 700; color: var(--axl-text); text-align: right; }
.axl .axw-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.axl .axw-role { border: 1px solid var(--axl-line); border-radius: 14px; padding: 14px 16px; background: var(--axl-bg-2); }
.axl .axw-role .axw-role-name { font-weight: 600; color: var(--axl-text); font-size: 14.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; align-items: baseline; }
.axl .axw-role .axw-role-val { font-weight: 700; color: var(--axl-red); font-size: 15px; white-space: nowrap; }
.axl .axw-role .axw-bar { height: 7px; border-radius: 100px; background: var(--axl-line); margin: 10px 0 6px; overflow: hidden; }
.axl .axw-role .axw-bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--axl-red), var(--axl-gold)); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.axl .axw-role small { font-size: 12px; color: var(--axl-muted); }

/* compare */
.axl .axw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.axl .axw-tab { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--axl-line); background: #fff; font-size: 13px; font-weight: 600; color: var(--axl-text-2); cursor: pointer; font-family: inherit; }
.axl .axw-tab[aria-selected=true] { background: var(--axl-ink); color: #fff; border-color: var(--axl-ink); }
.axl .axw-cmp { display: grid; gap: 12px; }
.axl .axw-cmp-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--axl-line); font-size: 14.5px; }
.axl .axw-cmp-row:last-child { border-bottom: 0; }
.axl .axw-cmp-row b { color: var(--axl-muted); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }

/* quiz */
.axl .axw-q { display: none; }
.axl .axw-q.is-on { display: block; }
.axl .axw-q h4 { font-size: 16.5px; margin-bottom: 14px; }
.axl .axw-opts { display: grid; gap: 8px; }
.axl .axw-opt { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--axl-line); background: var(--axl-bg-2); cursor: pointer; font-size: 14.5px; font-family: inherit; color: var(--axl-text-2); transition: border-color .15s, background .15s; }
.axl .axw-opt:hover { border-color: var(--axl-red); background: #fff; }
.axl .axw-progress { height: 4px; background: var(--axl-line); border-radius: 100px; margin-bottom: 18px; overflow: hidden; }
.axl .axw-progress i { display: block; height: 100%; background: var(--axl-red); transition: width .3s; }
.axl .axw-result { display: none; }
.axl .axw-result.is-on { display: block; }
.axl .axw-result .axw-rec { background: var(--axl-ink); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 14px; }
.axl .axw-result .axw-rec small { color: var(--axl-gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 6px; }
.axl .axw-result .axw-rec h4 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.axl .axw-result .axw-rec p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0 0 14px; }
.axl .axw-reset { background: none; border: 0; color: var(--axl-muted); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0; }

/* roadmap */
.axl .axw-road { display: grid; gap: 10px; }
.axl .axw-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--axl-line); border-radius: 14px; background: var(--axl-bg-2); cursor: pointer; }
.axl .axw-step input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--axl-red); cursor: pointer; }
.axl .axw-step strong { display: block; font-size: 14.5px; }
.axl .axw-step span { font-size: 13.5px; color: var(--axl-muted); }
.axl .axw-step em { font-style: normal; font-size: 12px; color: var(--axl-muted); white-space: nowrap; background: #fff; border: 1px solid var(--axl-line); padding: 3px 9px; border-radius: 100px; }
.axl .axw-step.is-done { opacity: .62; }
.axl .axw-step.is-done strong { text-decoration: line-through; }
.axl .axw-road-sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--axl-muted); margin-top: 14px; }

/* demand bars */
.axl .axw-bars { display: grid; gap: 10px; }
.axl .axw-barrow { display: grid; grid-template-columns: 170px 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.axl .axw-barrow .axw-bar { height: 12px; background: var(--axl-line); border-radius: 100px; overflow: hidden; }
.axl .axw-barrow .axw-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--axl-red), var(--axl-gold)); border-radius: 100px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.axl .axw-barrow b { text-align: right; color: var(--axl-text); }

/* ---------- embedded explainer block inside program pages ---------- */
.axl.axl-embed { padding: 72px 0; background: var(--axl-bg-2); border-top: 1px solid var(--axl-line); border-bottom: 1px solid var(--axl-line); }
.axl.axl-embed .axl-embed-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.axl.axl-embed .axl-embed-cards { display: grid; gap: 14px; }
.axl.axl-embed .axw { margin: 0; }
.axl.axl-embed .axl-embed-more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- learn hub index ---------- */
.axl .axl-hub-card { display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.axl .axl-hub-card .axl-hub-k { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--axl-gold); }
.axl .axl-hub-card h3 a { color: var(--axl-text); }
.axl .axl-hub-card .axl-hub-link { margin-top: auto; font-weight: 600; font-size: 14px; }

/* grid children must be allowed to shrink below their min-content width on phones */
.axl .axl-hero-grid > *, .axl .axl-embed-grid > *, .axl .axl-layout > *, .axl .axl-grid > *, .axl .axl-stats > *, .axl .axl-timeline > * { min-width: 0; }
.axl .axl-stat b, .axl .axl-card h3, .axl .axl-card h4, .axl h1, .axl h2 { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .axl .axl-layout { grid-template-columns: 1fr; gap: 24px; }
  .axl .axl-toc { position: static; display: none; }
  .axl .axl-grid-3, .axl .axl-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .axl.axl-embed .axl-embed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .axl { font-size: 15px; }
  .axl .axl-hero { padding: 96px 0 36px; }
  .axl .axl-container { padding: 0 16px; }
  .axl .axl-grid-2, .axl .axl-grid-3, .axl .axl-grid-4, .axl .axw-roles { grid-template-columns: 1fr; }
  .axl .axw { padding: 18px; border-radius: 16px; }
  .axl .axw-cmp-row { grid-template-columns: 1fr; gap: 4px; }
  .axl .axw-barrow { grid-template-columns: 1fr; gap: 6px; }
  .axl .axw-barrow b { text-align: left; }
  .axl .axw-step { grid-template-columns: 22px 1fr; }
  .axl .axw-step em { grid-column: 2; justify-self: start; }
  .axl .axl-def { padding: 18px; }
  .axl .axl-def p { font-size: 16px; }
  .axl .axl-callout { padding: 22px; }
  .axl .axl-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .axl * { transition: none !important; animation: none !important; }
}
