/* Academia: what she owes the academy for a month. Only tokens from tokens.css. */
.ac-head { align-items: flex-end; margin-bottom: var(--e-24); }
.ac-head h1 { margin-top: var(--e-2); }
.ac-step { display: flex; align-items: center; gap: var(--e-12); flex-wrap: wrap; }
.ac-step h2 { font-size: var(--t-xl); }
.ac-figs { margin-top: var(--e-20); }
.ac-rule { margin-top: var(--e-24); color: var(--ink2); font-size: var(--t-s); max-width: 62ch; }
.ac-files { margin-top: var(--e-16); }

/* A student: name and the academy's part on top, each payment counted below. */
.ac-st { padding: var(--e-12) 0; }
.ac-st-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-12); }
.ac-st-h .t { font-weight: var(--w-strong); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-cut { display: inline-flex; align-items: baseline; gap: var(--e-6); flex: none; }
.ac-cut small { color: var(--soft); font-size: var(--t-xs); }
.ac-lines { list-style: none; margin: var(--e-4) 0 0; padding: 0; }
.ac-line { display: grid; grid-template-columns: calc(var(--base) * 5) minmax(0, 1fr) auto; gap: var(--e-12); align-items: baseline; width: calc(100% + var(--e-20)); margin: 0 calc(var(--e-10) * -1); padding: var(--e-4) var(--e-10); border: 0; border-radius: var(--r-m); background: none; color: var(--ink2); font-size: var(--t-s); text-align: left; }
.ac-line:hover { background: var(--tint); }
.ac-line:active { background: var(--tint2); }
.ac-line .ac-d { color: var(--soft); white-space: nowrap; }
.ac-line .ac-w { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-st-f { display: flex; justify-content: space-between; gap: var(--e-12); margin-top: var(--e-4); padding-top: var(--e-4); border-top: 1px dashed var(--line); color: var(--soft); font-size: var(--t-s); }
.ac-sum { margin-top: var(--e-12); padding-top: var(--e-12); border-top: 1px solid var(--line2); }
/* On a phone the grid column must not grow to a long name; figures go two by two. */
@media (max-width: 899.98px) { .grid2.ac-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 719.98px) {
  .ac-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-20) var(--e-16); }
  .ac-files .btn { flex: 1 1 0; padding: 0 var(--e-12); }
}
