/* ATAR Engine calculator — uses the site's Bricks/brand variables with fallbacks to the brand hexes. */
.ae-calc{--ae-ink:var(--ae-slate-ink,#22303E);--ae-grey:var(--ae-slate-grey,#4A5A6A);--ae-blue:var(--ae-dusty-blue,#5F84A8);--ae-yel:var(--ae-pencil-yellow,#F1C15B);--ae-sk:var(--ae-sky,#9CC2E2);--ae-hz:var(--ae-haze,#D7E6F2);--ae-cl:var(--ae-cloud,#F3F6F9);
  display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr);color:var(--ae-grey);font-family:inherit}
@media (min-width:900px){.ae-calc{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:start}.ae-calc__result{position:sticky;top:6rem}}
.ae-calc__inputs{background:#fff;border:1px solid var(--ae-hz);border-radius:var(--radius-card,20px);padding:clamp(1rem,3vw,1.75rem)}
.ae-calc__dataset{margin:0 0 1rem;font-size:var(--text-s,.9375rem)}
.ae-calc__badge{display:inline-block;margin-left:.4rem;padding:.1rem .5rem;border-radius:999px;background:var(--ae-yel);color:var(--ae-ink);font-size:.75rem;font-weight:600}
.ae-calc__fieldset{border:0;margin:0;padding:0}
.ae-calc__legend{font-weight:600;color:var(--ae-ink);font-size:var(--h4,1.25rem);margin-bottom:.25rem}
.ae-calc__hint{margin:0 0 1rem;font-size:var(--text-s,.9375rem)}
.ae-calc__rows{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.6rem}
.ae-calc__row{display:grid;grid-template-columns:minmax(0,1fr) 5.5rem 2.75rem;gap:.5rem;align-items:center}
.ae-calc__input{box-sizing:border-box;width:100%;height:2.875rem;line-height:1.2;padding:.6rem .8rem;border:1.5px solid var(--ae-hz);border-radius:var(--radius-input,12px);background:#fff;color:var(--ae-ink);font:inherit}
.ae-calc__input:focus-visible,.ae-calc button:focus-visible,.ae-calc summary:focus-visible{outline:2px solid var(--ae-blue);outline-offset:2px}
.ae-calc__score{text-align:center;font-variant-numeric:tabular-nums}
.ae-calc__input--narrow{max-width:8rem}
.ae-calc__remove{height:2.875rem;border:0;border-radius:var(--radius-input,12px);background:var(--ae-cl);color:var(--ae-ink);font-size:1.25rem;cursor:pointer}
.ae-calc__add,.ae-calc__reset{min-height:2.75rem;padding:.6rem 1.1rem;border-radius:12px;font:inherit;font-weight:500;cursor:pointer}
.ae-calc__add{border:1.5px solid var(--ae-blue);background:#fff;color:var(--ae-ink)}
.ae-calc__reset{margin-top:1rem;border:0;background:none;color:var(--ae-grey);text-decoration:underline}
.ae-calc__more{margin-top:1.25rem;border-top:1px solid var(--ae-hz);padding-top:1rem}
.ae-calc__more summary{cursor:pointer;color:var(--ae-ink);font-weight:500}
.ae-calc__label{display:block;margin:.75rem 0 .35rem;font-size:var(--text-s,.9375rem)}
.ae-calc__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ae-res__card{background:var(--ae-ink);color:#fff;border-radius:var(--radius-xl,24px);padding:1.5rem 1.75rem}
.ae-res__label{margin:0;color:var(--ae-sk);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.ae-res__score{margin:.25rem 0;font-size:var(--text-score,clamp(4rem,3.2rem + 3.5vw,6rem));font-weight:700;line-height:1;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums}
.ae-res__score--empty{color:var(--ae-sk)}
.ae-res__sub{margin:0;color:var(--ae-hz);font-size:var(--text-s,.9375rem)}
.ae-res__warnings{margin:1rem 0 0;padding:.9rem 1rem .9rem 2rem;background:#FFF7E3;border:1px solid var(--ae-yel);border-radius:12px;color:var(--ae-ink);font-size:var(--text-s,.9375rem)}
.ae-res__table{width:100%;margin-top:1rem;border-collapse:collapse;background:#fff;border:1px solid var(--ae-hz);border-radius:12px;overflow:hidden;font-size:var(--text-s,.9375rem);font-variant-numeric:tabular-nums}
.ae-res__table caption{text-align:left;padding:0 0 .4rem;color:var(--ae-ink);font-weight:600}
.ae-res__table th,.ae-res__table td{padding:.5rem .6rem;border-bottom:1px solid var(--ae-hz);text-align:right}
.ae-res__table th[scope=row],.ae-res__table thead th:first-child{text-align:left;color:var(--ae-ink);font-weight:500}
.ae-res__table thead th{background:var(--ae-cl);font-weight:600;color:var(--ae-ink)}
.ae-res__note{margin:.75rem 0 0;font-size:.8125rem}
.ae-res__note a{color:var(--secondary-d-2,#3e5a75)}
.ae-res__excl{margin-top:.75rem;font-size:var(--text-s,.9375rem)}
.ae-calc__error{padding:1rem;border:1px solid var(--ae-yel);border-radius:12px;background:#FFF7E3;color:var(--ae-ink)}
@media (max-width:540px){.ae-calc__row{grid-template-columns:minmax(0,1fr) 2.875rem;row-gap:.4rem;padding-bottom:.6rem;border-bottom:1px solid var(--ae-hz)}.ae-calc__select{grid-column:1 / -1}.ae-calc__score{text-align:left}.ae-res__table th:nth-child(2),.ae-res__table td:nth-child(2){display:none}}
@media (prefers-reduced-motion:reduce){.ae-calc *{transition:none!important}}
.ae-res__table td:nth-child(4){white-space:nowrap}
/* SACE / TCE rows */
.ae-calc__row--sace{grid-template-columns:minmax(0,1fr) 4.75rem minmax(0,9.5rem) 5rem 2.75rem}
.ae-calc__row--tce{grid-template-columns:minmax(0,1fr) minmax(0,11rem) 5rem auto 2.75rem}
.ae-calc__row--tce>span:empty{display:none}
.ae-calc__row--tce:has(>span:empty){grid-template-columns:minmax(0,1fr) minmax(0,11rem) 2.75rem}
.ae-calc__head{display:none}
@media (min-width:600px){.ae-calc__head--sace{display:grid;grid-template-columns:minmax(0,1fr) 4.75rem minmax(0,9.5rem) 5rem 2.75rem;gap:.5rem;margin-bottom:.35rem;font-size:.8125rem;font-weight:600;color:var(--ae-ink)}}
@media (max-width:599px){
  .ae-calc__row--sace{grid-template-columns:4.5rem minmax(0,1fr) 4.5rem 2.75rem;padding-bottom:.6rem;border-bottom:1px solid var(--ae-hz)}
  .ae-calc__row--sace>input[data-f=name]{grid-column:1/-1}
  .ae-calc__row--tce{grid-template-columns:minmax(0,1fr) 4.5rem 2.75rem;padding-bottom:.6rem;border-bottom:1px solid var(--ae-hz)}
  .ae-calc__row--tce:has(>span:empty){grid-template-columns:minmax(0,1fr) 2.75rem}
  .ae-calc__row--tce>select[data-f=courseId]{grid-column:1/-1}
}
/* Result call to action */
.ae-res__cta{margin:1rem 0 0}
.ae-res__link{display:inline-block;padding:.75rem 1.1rem;border-radius:12px;background:var(--ae-yel);color:var(--ae-ink);font-weight:600;text-decoration:none}
.ae-res__link:hover{text-decoration:underline}
.ae-res__table small{color:var(--ae-grey);font-weight:400}

.ae-calc__rownote{grid-column:1/-1;margin:.25rem 0 0;font-size:.8125rem;color:#8a5a00;}

/* ae-mobile-rows: each subject row becomes a labelled card on phones */
@media (max-width: 640px) {
  .ae-calc .ae-calc__rows { padding: 0; margin: 0 0 .25rem; }
  .ae-calc .ae-calc__row { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) 7.5rem; column-gap: .6rem; row-gap: .35rem; align-items: center; padding: .75rem .85rem .9rem !important; margin: 0 0 .65rem !important; border: 1px solid #D7E6F2 !important; border-radius: 16px; background: #fff; }
  .ae-calc .ae-calc__row > .ae-calc__sr { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; overflow: visible !important; white-space: normal !important; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: .8125rem; font-weight: 600; line-height: 1.3; color: #4A5A6A; }
  .ae-calc .ae-calc__row > .ae-calc__sr:first-child { grid-column: 1 / -1; padding-right: 2.25rem !important; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #5F84A8; }
  .ae-calc .ae-calc__row > :nth-child(2) { grid-column: 1 / -1; }
  .ae-calc .ae-calc__row > :nth-child(3) { grid-column: 1; font-size: 0 !important; }
  .ae-calc .ae-calc__row > :nth-child(3)::after { content: "Your result"; font-size: .875rem; font-weight: 600; color: #22303E; }
  .atar-calculator[data-system="vce"] .ae-calc__row > :nth-child(3)::after { content: "Study score (0 to 50)"; }
  .atar-calculator[data-system="hsc"] .ae-calc__row > :nth-child(3)::after { content: "Expected HSC mark"; }
  .atar-calculator[data-system="qce"] .ae-calc__row > :nth-child(3)::after { content: "Expected result"; }
  .atar-calculator[data-system="wace"] .ae-calc__row > :nth-child(3)::after { content: "Expected score"; }
  .atar-calculator[data-system="tce"] .ae-calc__row > :nth-child(3)::after { content: "Expected award"; }
  .ae-calc .ae-calc__row > :nth-child(4) { grid-column: 2; width: 100%; }
  .ae-calc .ae-calc__row--tce > span { grid-column: 1 / -1; }
  .ae-calc .ae-calc__row .ae-calc__remove { position: absolute; top: .4rem; right: .4rem; width: 2.25rem; height: 2.25rem; min-height: 0; padding: 0; display: grid; place-items: center; border: 0 !important; border-radius: 10px; background: transparent !important; color: #8A99A8; font-size: 1.25rem; line-height: 1; box-shadow: none !important; }
  .ae-calc .ae-calc__row .ae-calc__remove:hover, .ae-calc .ae-calc__row .ae-calc__remove:focus-visible { background: #F3F6F9 !important; color: #22303E; }
  /* SA / NT: subject, then Credits | Type | Scaled score */
  .ae-calc .ae-calc__row--sace { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr); }
  .ae-calc .ae-calc__row--sace > :nth-child(3) { grid-column: 1; grid-row: 3; font-size: .8125rem !important; }
  .ae-calc .ae-calc__row--sace > :nth-child(3)::after { content: none; }
  .ae-calc .ae-calc__row--sace > :nth-child(4) { grid-column: 1; grid-row: 4; }
  .ae-calc .ae-calc__row--sace > :nth-child(5) { grid-column: 2; grid-row: 3; }
  .ae-calc .ae-calc__row--sace > :nth-child(6) { grid-column: 2; grid-row: 4; }
  .ae-calc .ae-calc__row--sace > :nth-child(7) { grid-column: 3; grid-row: 3; }
  .ae-calc .ae-calc__row--sace > :nth-child(8) { grid-column: 3; grid-row: 4; }
  .ae-calc .ae-calc__row--sace .ae-calc__rownote { grid-column: 1 / -1; grid-row: 5; }
  .ae-calc .ae-calc__row--sace select, .ae-calc .ae-calc__row--sace input { min-width: 0; width: 100%; }
  /* TAS: award names are long, so the award box gets its own full-width line */
  .ae-calc .ae-calc__row--tce > :nth-child(3) { grid-column: 1 / -1; margin-top: .15rem !important; }
  .ae-calc .ae-calc__row--tce > :nth-child(4) { grid-column: 1 / -1; width: 100% !important; max-width: none !important; }
  .ae-calc .ae-calc__row--tce > span:empty { display: none; }
  .ae-calc .ae-calc__row--tce > span input { width: 100% !important; }
  .ae-calc .ae-calc__head { display: none !important; }
}