/* career-paths.html — page-only composition. Tabs behaviour comes from system.js (WAI-ARIA, arrows,
   Home/End); here the tablist is drawn as a career line: four stages in order, plus a branch. */

.page-hero-media img { object-position: 30% 50%; }

/* ---------- the career line (tablist) ---------- */
.stages-section { isolation: isolate; overflow: clip; }
.career-line { position: relative; margin-bottom: clamp(32px, 4vw, 56px); }
.stage-tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 0 12px; }
.cl-rail { position: absolute; left: 11px; top: 11px; width: calc((100% - 48px) / 5.15 * 3 + 36px); height: 2px; border-radius: 2px; background: var(--d-line-2); }
.cl-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pine-bright), var(--mint-hi)); box-shadow: 0 0 12px rgba(138, 217, 199, .6); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .8s var(--ease-out); }
.stage-tabs [role="tab"] { position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; min-height: 44px; padding: 40px 12px 14px 0; border: 0; border-radius: var(--r-md); background: transparent; color: var(--d-muted); text-align: left; cursor: pointer; transition: color var(--dur-fast); }
.stage-tabs [role="tab"]:hover { color: var(--d-text); }
.st-node { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--c0); box-shadow: inset 0 0 0 1.5px var(--d-line-2); transition: box-shadow .4s, background-color .4s; }
.st-node::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--mint); opacity: 0; transform: scale(.3); transition: transform .45s var(--ease-out), opacity .3s; }
.st-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(138, 217, 199, .14), 0 0 22px rgba(138, 217, 199, .7); opacity: 0; transition: opacity .45s; }
.stage-tabs [role="tab"]:hover .st-node { box-shadow: inset 0 0 0 1.5px rgba(138, 217, 199, .6); }
.stage-tabs [role="tab"].is-passed .st-node { box-shadow: inset 0 0 0 1.5px var(--mint); }
.stage-tabs [role="tab"].is-passed .st-node::before { opacity: 1; transform: scale(.6); }
.stage-tabs [role="tab"][aria-selected="true"] .st-node { box-shadow: inset 0 0 0 1.5px var(--mint); }
.stage-tabs [role="tab"][aria-selected="true"] .st-node::before { opacity: 1; transform: scale(1); }
.stage-tabs [role="tab"][aria-selected="true"] .st-node::after { opacity: 1; }
.st-name { font-size: var(--t-h4); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.st-sub { font-size: var(--t-micro); color: var(--d-faint); }
.stage-tabs [role="tab"][aria-selected="true"] { color: #fff; }
.stage-tabs [role="tab"][aria-selected="true"] .st-sub { color: var(--mint); }
.stage-tabs [role="tab"]:focus-visible { outline-offset: 6px; }
/* the branch: outside the training sequence; a square node sets it apart */
.st-branch { padding-left: 0; }
.st-branch .st-node { border-radius: 7px; }
.st-branch .st-node::before { border-radius: 3px; }
.st-branch .st-node::after { border-radius: 10px; }

/* ---------- stage panel ---------- */
.stage-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--split-gap); align-items: start; padding-top: clamp(32px, 3.6vw, 48px); border-top: 1px solid var(--d-line); }
.stage-panel:focus-visible { outline-offset: 8px; }
.sp-title { font-size: var(--t-h3); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; color: #fff; text-wrap: balance; max-width: 18ch; }
.sp-lede { margin-top: 18px; font-size: var(--t-lead); line-height: 1.55; color: var(--d-lede) !important; max-width: 52ch; }
.sp-body { margin-top: 16px; font-size: var(--t-text); line-height: 1.6; max-width: 56ch; }
.sp-sub { margin-top: 32px; font-size: var(--t-small); font-weight: 500; color: var(--d-text); }
.sp-takeaways { margin-top: 14px; }
.sp-guide { margin-top: 32px; }
.sp-side { display: grid; gap: 20px; min-width: 0; }
.sp-questions h4 { font-size: var(--t-body); font-weight: 500; color: #fff; margin-bottom: 8px; }
.sp-questions .ticks li:first-child { border-top: 0; }
.sp-faq summary { font-size: var(--t-body); padding: 20px 52px 20px 0; }
.sp-faq .ans { padding-bottom: 22px; }
.sp-faq .ans p { font-size: var(--t-text); }

/* ---------- bring questions (photo + text) ---------- */
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; }
.plan-split h2 { max-width: 13ch; }

@media (max-width: 1000px) {
  /* the career line turns vertical: a list you scan top to bottom */
  .stage-tabs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cl-rail { left: 11px; top: 12px; width: 2px; height: calc(80% - 36px); }
  .cl-fill { transform-origin: top; transform: scaleY(var(--f, 0)); background: linear-gradient(180deg, var(--pine-bright), var(--mint-hi)); }
  .stage-tabs [role="tab"] { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; min-height: 56px; padding: 0 0 0 44px; }
  .st-node { top: 0; }
  .stage-tabs [role="tab"] { padding-top: 0; padding-bottom: 20px; }
  .st-sub { text-align: right; }
  .st-branch { margin-top: 12px; padding-top: 16px !important; border-top: 1px dashed var(--d-line-2); border-radius: 0; }
    .st-branch .st-node { top: 16px; }
  .stage-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .st-name { font-size: 18px; }
  .sp-faq summary { font-size: 17px; }
}
