/* GPA calculator: on top of ../calc/calc.css */
#tabs { margin-bottom: 16px; }
.gp-top { margin: 0 0 12px; }
.gp-head, .gp-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 80px 150px 40px; gap: 6px; align-items: start; }
.gp-rows.notype .gp-row, .gp-head:has(#typeHead[hidden]) { grid-template-columns: minmax(0, 1fr) 96px 80px 40px; }
.gp-head { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 2px 4px; }
.gp-rows { display: grid; gap: 6px; }
.gp-in { width: 100%; text-align: left; min-height: 42px; font-size: 15px; }
.gp-sel { width: 100%; min-height: 42px; font-size: 14px; }
@media (max-width: 600px) {
  .gp-head { display: none; }
  .gp-row, .gp-rows.notype .gp-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1.3fr) 40px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .gp-name { grid-column: 1 / 4; }
  .gp-x { grid-column: 4; grid-row: 1; }
  .gp-type { grid-column: 3 / 5; }
  .gp-rows.notype .gp-cr { grid-column: 2 / 4; }
}
.gp-echo { display: block; font-size: 11px; color: var(--muted); min-height: 14px; padding: 2px 2px 0; white-space: nowrap; }
.gp-x { min-width: 36px; min-height: 42px; }
.gp-paste { margin-top: 12px; }
.gp-paste summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.gp-pastebox { min-height: 110px; margin-top: 8px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; }
.gp-prior { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.gp-prior .cx-set { margin: 6px 0 0; }
.gp-small { width: 6.5em; }
.gp-tiny { width: 4.5em; }
.gp-res { max-width: 420px; margin-top: 8px; }
.gp-res td.n { font-size: 18px; font-weight: 700; color: var(--text); }
.gp-olbl { margin: 14px 0 6px; }
.gp-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 420px; font-size: 13px; }
.gp-others li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.gp-others li b { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gp-others li.on { background: rgba(149, 214, 0, .08); color: var(--text); }
.gp-letters { max-width: 420px; }
.gp-letters td { border-top: 0; padding: 3px 4px; }
.gp-sc { width: 100%; min-height: 38px; text-align: left; font-size: 14px; }
.gp-bonus { margin-top: 14px; }
.gp-bonus .cx-set { margin: 6px 0 0; }
.gp-grid { margin: 0 0 12px; }
.gp-grid .cx-in { width: 7em; }
.gp-tout { margin-top: 14px; }
.gp-whatif { margin-top: 14px; }
.gp-whatif b { font-size: 18px; color: var(--accent); }
.gp-printonly { display: none; }
#p-convert .cx-set { margin: 4px 0 8px; }
@media print { .gp-printonly { display: block; font-size: 12px; } .gp-x, #tabs, .gp-paste, .gp-sel { display: none !important; } .gp-in { border: 0; padding: 0; min-height: 0; } }
