/* ===================================
   /lcps-gpa-calculator only. Builds on css/acl-tools.css (shared tool classes, including the
   .elig-result block and .tool-input) and adds the course rows, the two GPA numerals, and
   hairline tables. Editorial: no tints or boxes. Tokens come from eduavenues-ui.css; no raw
   colors here.
   =================================== */

.lg-hint {
  margin: 0 0 20px;
}

.lg-head,
.lg-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 88px minmax(0, 1.7fr) 112px 64px;
  gap: 10px;
  align-items: center;
}

.lg-head {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--mc-ink);
  color: var(--mc-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lg-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--mc-line);
}

.lg-row .tool-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.lg-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--mc-ink);
  font: inherit;
  font-size: 0.9375rem;
}

.lg-select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.lg-cell--remove {
  text-align: right;
}

.lg-cell--remove .elig-link-button {
  min-height: 44px;
  font-size: 0.875rem;
}

.lg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 20px 0 0;
}

.lg-actions .btn {
  min-height: 46px;
}

/* Two numerals, side by side, like the writing practice total. */
.lg-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 64px;
  margin: 8px 0 0;
}

.lg-num-big {
  margin: 0;
  color: var(--mc-ink);
  font-size: clamp(2.75rem, 1.9rem + 3.5vw, 4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lg-num-label {
  margin: 8px 0 0;
  color: var(--mc-ink);
  font-size: 1rem;
  font-weight: 600;
}

.lg-num-label small {
  display: block;
  margin-top: 2px;
  color: var(--mc-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.lg-math {
  margin-top: 20px;
}

.lg-math[hidden] {
  display: none;
}

.lg-math summary {
  color: var(--color-accent-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

/* Tables: hairline rules, tabular figures. */
.lg-table-wrap {
  margin: 16px 0 0;
  overflow-x: auto;
}

.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.lg-table th,
.lg-table td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--mc-line);
  color: var(--mc-ink);
  text-align: left;
  vertical-align: top;
}

.lg-table th:last-child,
.lg-table td:last-child {
  padding-right: 0;
}

.lg-table thead th {
  border-bottom-color: var(--mc-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  vertical-align: bottom;
}

.lg-table tbody th {
  font-weight: 500;
}

.lg-table .lg-num {
  text-align: right;
  white-space: nowrap;
}

.lg-scale {
  max-width: 520px;
}

@media (max-width: 720px) {
  .lg-head {
    display: none;
  }

  .lg-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'name name'
      'grade credit'
      'level level'
      'remove remove';
    padding: 14px 0;
  }

  .lg-cell--name {
    grid-area: name;
  }

  .lg-cell--grade {
    grid-area: grade;
  }

  .lg-cell--credit {
    grid-area: credit;
  }

  .lg-cell--level {
    grid-area: level;
  }

  .lg-cell--remove {
    grid-area: remove;
  }

  .lg-cell--remove .elig-link-button {
    min-height: 32px;
  }

  .lg-actions .btn {
    width: 100%;
  }

  .lg-table {
    font-size: 0.875rem;
  }

  .lg-table th,
  .lg-table td {
    padding-right: 10px;
  }
}

@media print {
  .lg-actions,
  .lg-cell--remove {
    display: none;
  }
}
