/* InstantGPA v53 — aligned tool workspaces and permanently visible grading scale. */

/* Every non-overview tool uses the same width from the intro strip through
   the actual table/card below it. */
.workspace-tool-frame {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-top: clamp(14px, 2vw, 26px);
}

.workspace-tool-frame > .student-workspace-head {
  width: 100%;
  margin: 0 0 10px;
  padding: 16px 18px;
  gap: 16px;
}

.workspace-tool-frame > .student-workspace-head h2 {
  font-size: clamp(23px, 2.2vw, 30px);
}

.workspace-tool-frame > .student-workspace-head p {
  max-width: none;
  font-size: 12px;
}

.workspace-tool-frame .profile-bar {
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 14px;
}

.workspace-tool-frame .workspace-nav {
  width: 100%;
  margin-bottom: 8px;
}

.workspace-tool-frame .workspace-subnav {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
}

.workspace-tool-frame .student-tool-guide {
  width: 100%;
  grid-template-columns: minmax(225px, .82fr) minmax(430px, 1.18fr);
  gap: 16px;
  margin: 0 0 12px;
  padding: 14px 16px;
}

.workspace-tool-frame .student-tool-guide .student-tool-guide__title > span {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

.workspace-tool-frame .student-tool-guide ol {
  gap: 6px;
}

.workspace-tool-frame .student-tool-guide li {
  min-height: 44px;
  padding: 7px 8px;
}

.workspace-tool-frame .tool-host {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* The GPA entry table is intentionally wider, so its whole page frame follows
   that same width instead of letting only the table escape the shell. */
.workspace-tool-frame--gpa {
  width: min(88vw, 1380px);
  max-width: calc(100vw - 36px);
}

.workspace-tool-frame--gpa .tool-host.tool-host--gpa-entry {
  position: static;
  left: auto;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  transform: none;
}

/* The grading scale is not a disclosure. It is a permanent continuation of
   the country, university, and grading-system fields. */
.grading-scale-inline {
  margin-top: 12px;
  overflow: visible;
  border: 1px solid var(--ig-line);
  border-radius: 14px;
  background: #fafcff;
}

.grading-scale-inline__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--ig-line);
  color: var(--ig-navy-900);
}

.grading-scale-inline__heading > span {
  font-size: 13px;
  font-weight: 850;
}

.grading-scale-inline__heading small {
  color: var(--ig-muted);
  font-size: 11px;
  font-weight: 650;
  text-align: end;
}

.grading-scale-inline > .grading-editor {
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0 0 14px 14px;
}

.grading-scale-inline__empty {
  display: grid;
  gap: 4px;
  min-height: 92px;
  place-content: center;
  padding: 16px;
  color: var(--ig-copy);
  text-align: center;
}

.grading-scale-inline__empty strong {
  color: var(--ig-navy-900);
  font-size: 15px;
}

.grading-scale-inline__empty span {
  font-size: 12px;
  line-height: 1.5;
}

/* Make the academic setup comfortable to read while preserving its compact
   two-row layout. */
.home-stage--portal .student-setup-head {
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 13px;
}

.home-stage--portal .student-setup-head > span {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.home-stage--portal .student-setup-head strong {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.2;
}

.home-stage--portal .student-setup-head small {
  font-size: 13px;
  line-height: 1.45;
}

.home-stage--portal .context-title strong {
  font-size: 17px;
}

.home-stage--portal .context-title span,
.home-stage--portal .setup-intro {
  font-size: 12px;
  line-height: 1.45;
}

.home-stage--portal .field > span {
  font-size: 11px;
}

.home-stage--portal .field select,
.home-stage--portal .field input {
  min-height: 43px;
  height: 43px;
  font-size: 14px;
}

.home-stage--portal .grading-editor__heading strong {
  font-size: 14px;
}

.home-stage--portal .grading-editor__heading span,
.home-stage--portal .grade-head {
  font-size: 10px;
}

.home-stage--portal .grade-row input {
  font-size: 13px;
}

@media (max-width: 820px) {
  .workspace-tool-frame,
  .workspace-tool-frame--gpa {
    width: 100%;
    max-width: none;
    padding-top: 12px;
  }

  .workspace-tool-frame > .student-workspace-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .workspace-tool-frame .student-tool-guide {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .grading-scale-inline__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grading-scale-inline__heading small {
    text-align: start;
  }
}
