/* decision_tree block — multi-step eligibility / decision checker.
   Ported from design-export/student-life/financial-support.html. No literal
   colour (the prototype's rgba(255,255,255,…) progress dots become the
   --on-dark-rgb channel). Option/outcome CTAs reuse the .btn family. */

.decision-tree .tree { max-width: 42rem; margin-inline: auto; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); border: 1px solid var(--line); }

.tree__head { background: var(--surface-dark-alt); color: var(--white); padding: 1rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* The title carries .title-font, which sets --text-heading (navy). On the dark
   head bar that is navy-on-navy, so re-assert white. */
.tree__head-title { color: var(--white); }
.tree__head-title { font-size: 1.3125rem; text-transform: uppercase; letter-spacing: .04em; }
.tree__dots { display: flex; gap: .4rem; flex: 0 0 auto; }
.tree__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--on-dark-rgb), .28); transition: background var(--transition); }
.tree__dots span[data-on="true"] { background: var(--btn-accent-bg); }

.tree__body { padding: 1.8rem 1.6rem 1.6rem; }
.tree__q { font-size: 1.75rem; margin-bottom: .5rem; }
.tree__help { font-size: var(--fs-min); color: var(--muted); margin-bottom: 1.2rem; }

.tree__opts { display: grid; gap: .7rem; }
/* white option button on a white panel: the border is the only thing marking the
   control's bounds, so it carries the 3:1 interactive weight (WCAG 1.4.11) */
.tree__opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; width: 100%; background: var(--white); border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; cursor: pointer; font: inherit; transition: border-color var(--transition); }
.tree__opt:hover { border-color: var(--accent); }
.tree__opt b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; }
.tree__opt small { display: block; font-size: var(--fs-min); color: var(--muted); margin-top: .15rem; }
.tree__opt i { color: var(--link); font-size: 1.3rem; font-style: normal; flex: 0 0 auto; }

.tree__outcome-title { font-size: 1.9rem; margin: .5rem 0 .7rem; }
.tree__outcome-body { font-size: var(--fs-min); line-height: 1.6; margin-bottom: 1rem; max-width: 58ch; }
.tree__points { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.tree__points li { display: flex; gap: .6rem; font-size: var(--fs-min); line-height: 1.55; color: var(--muted); }
.tree__point-check { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.tree__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }

.tree__foot { display: flex; gap: 1.2rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tree__foot button { background: none; border: 0; font: inherit; cursor: pointer; color: var(--link); }
.tree__foot .tree__reset { color: var(--muted); }
.tree__note { margin: 0; padding: 1rem 1.6rem; background: var(--light); font-size: var(--fs-min); color: var(--muted); line-height: 1.5; }
