/* Percentage to GPA, points grade and assignment calculators: additions on top of tools.css and score-tools.css
   (same tokens, light and dark). */

/* space reserved until the script has built the tool */
#convert-tool:not(.is-ready) { min-height: 760px; }
#points-tool:not(.is-ready) { min-height: 820px; }
#plan-tool:not(.is-ready) { min-height: 560px; }
@media (max-width: 999px) { #convert-tool:not(.is-ready) { min-height: 1300px; } #points-tool:not(.is-ready) { min-height: 1200px; } #plan-tool:not(.is-ready) { min-height: 900px; } }

/* course rows (percentage to GPA) */
.pl-rows { display: grid; gap: 0; margin-top: 4px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, .6fr) minmax(0, 1.25fr) 44px; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.pl-rows > .pl-row--head + .pl-row { border-top: 0; }
.pl-row--head { border-top: 0; padding: 8px 0 2px; font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pl-cell { min-width: 0; }
.pl-cell--rm { display: flex; justify-content: center; }
.pl-fl { display: none; font: 600 13px/1.2 var(--sans); color: var(--text-2); margin-bottom: 4px; }
.pl-rowout { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text-2); min-height: 0; }
.pl-rowout:empty { display: none; }
@media (max-width: 719px) {
  .pl-row--head { display: none !important; }
  .pl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 0; }
  .pl-cell--name, .pl-cell--level { grid-column: 1 / -1; }
  .pl-cell--rm { grid-column: 1 / -1; justify-content: flex-end; }
  .pl-fl { display: block; }
}
.pl-settings { padding-top: 14px; border-top: 1px solid var(--line); }
.pl-settings > * + * { margin-top: 14px; }
.pl-gpaout:empty { display: none; }

/* result figures */
.pl-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 519px) { .pl-figs { grid-template-columns: minmax(0, 1fr); } }
.pl-num { display: block; margin-top: 4px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: -.02em; color: var(--text); }
.pl-cap { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.tl-both .pl-num { font-size: clamp(26px, 3vw, 34px); }
.pl-chart { margin-top: 18px; }

/* assignment plan steps */
.pl-steps { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: plstep; display: grid; gap: 8px; }
.pl-step { counter-increment: plstep; position: relative; padding: 10px 12px 10px 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pl-step::before { content: counter(plstep); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.pl-step--due { border-color: var(--text-3); }
.pl-step-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; }
.pl-step-t { font: 700 15px/1.35 var(--sans); color: var(--text); }
.pl-step-d { font: 600 14px/1.35 var(--sans); color: var(--text-2); white-space: nowrap; }
.pl-step-tip { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pl-actions { margin-top: 16px; }

@media print { .pl-actions, .tl-final-form { display: none !important; } }
