:root {
  color-scheme: light;
  --paper: #f1f3f9;
  --surface: #fff;
  --ink: #171c37;
  --muted: #535a70;
  --forest: #171a31;
  --forest-light: #30265a;
  --lime: #b9efd9;
  --line: #dde1ee;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #5c37ad; outline-offset: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem .95rem;
  transform: translateY(-180%);
  background: white;
  color: var(--forest);
}
.skip-link:focus { transform: none; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 34px 18px 24px;
  background: var(--forest);
  color: #f6f3e9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 44px 4px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 39px;
  height: 39px;
  padding-right: 4px;
  border-radius: 10px 10px 3px 10px;
  background: var(--lime);
  color: var(--forest);
  font: italic 2rem/.9 var(--display);
}
.brand-mark span {
  position: absolute;
  right: 4px;
  top: 5px;
  font: 800 .65rem/1 var(--body);
}
.sidebar :focus-visible, .hero :focus-visible { outline-color: #e4f2ac; }
.site-nav { display: grid; gap: 6px; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #dbe0f2;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a span { width: 23px; font-size: 1.18rem; text-align: center; }
.site-nav a:hover { background: #ffffff15; color: white; }
.site-nav a[aria-current] { background: var(--lime); color: var(--forest); }
.sidebar-note {
  margin: auto 4px 0;
  padding-top: 34px;
  max-width: 16ch;
  color: #bbc2df;
  font-size: .78rem;
}

.workspace {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(18px, 3.3vw, 46px);
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(238px, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4.2vw, 61px);
  border-radius: 22px 22px 22px 6px;
  background-color: var(--forest-light);
  background-image:
    linear-gradient(90deg, var(--forest-light) 24%, #30265a10 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, #f4ecff17 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #f4ecff17 31px 32px);
  color: #f9f7ed;
}
.hero-context { margin: 0 0 16px; color: #d3c6ff; font-size: .83rem; font-weight: 700; }
.hero h1 {
  margin: 0;
  font: 400 clamp(3.9rem, 7.3vw, 7.9rem)/.82 var(--display);
  letter-spacing: -.038em;
}
.hero h1 em { display: block; color: var(--lime); font-weight: 400; }
.hero-intro { max-width: 47ch; margin: 23px 0 26px; color: #e4ece3; }
.hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 490px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface);
}
.hero-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}
.hero-search input:focus-visible { outline: 2px solid #496c38; outline-offset: -2px; }
.hero-search button, .solid-button {
  padding: 10px 15px;
  min-height: 45px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 800;
}
.hero-search button { white-space: nowrap; }
.hero-search button:hover, .solid-button:hover { background: #ebf5c9; }

.shortcuts {
  padding: 21px;
  border: 1px solid #deedcf42;
  border-radius: 16px 16px 16px 4px;
  background: #171a31eb;
}
.shortcuts h2 { margin: 0 0 11px; font-size: .92rem; font-weight: 800; }
.shortcuts a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-block: 7px;
  border-top: 1px solid #deedcf32;
  color: #eef4e7;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.shortcuts a:hover { color: var(--lime); }
.shortcut-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dceda523;
  color: var(--lime);
}

.section { margin-top: clamp(36px, 5vw, 66px); scroll-margin-top: 24px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 17px;
}
.section h2 { margin: 0; font: 400 clamp(2.65rem, 4.3vw, 4.25rem)/1 var(--display); letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: .91rem; }

.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.subject-card, .resource-symbol {
  --subject-ground: #e3e9d4;
  --subject-ink: #28472d;
}
.geometria { --subject-ground: #d8ebe6; --subject-ink: #155c53; }
.diferencial { --subject-ground: #f4dfce; --subject-ink: #713e29; }
.lineal { --subject-ground: #e7e0f0; --subject-ink: #523a6f; }
.integral { --subject-ground: #f2e7c2; --subject-ink: #634917; }
.fisica { --subject-ground: #dfe8ef; --subject-ink: #224d68; }
.subject-card {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 86px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.subject-card:hover { border-color: #7e9980; background: #fcfbf2; }
.subject-symbol, .resource-symbol {
  display: grid;
  place-items: center;
  border-radius: 9px 9px 9px 3px;
  background: var(--subject-ground);
  color: var(--subject-ink);
}
.subject-symbol { width: 49px; height: 49px; font: 400 1.9rem/1 var(--display); }
.subject-info { min-width: 0; }
.subject-info strong, .subject-info span { display: block; overflow-wrap: anywhere; }
.subject-info strong { font-size: .93rem; line-height: 1.25; }
.subject-info span { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.subject-arrow { color: #496a56; }

.library {
  display: grid;
  grid-template-columns: minmax(194px, .29fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  background: var(--surface);
}
.filters {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-radius: inherit;
  background: #f0f1f8;
}
.filter-field { display: grid; gap: 6px; font-size: .81rem; font-weight: 800; }
.filter-field input, .filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #bfcdbd;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pills button, .clear-filters, .more-button {
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid #bfcdbd;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: 700 .78rem/1.35 var(--body);
}
.filter-pills .active { border-color: var(--forest-light); background: var(--forest-light); color: white; }
.filter-pills button:hover:not(.active), .clear-filters:hover, .more-button:hover { background: #e5e5f9; }
.clear-filters { justify-self: start; }
.results { min-width: 0; padding: 9px 21px 18px; }
.results-count { margin: 0; padding: 13px 0 10px; color: var(--muted); font-size: .81rem; font-weight: 700; }
.resource-row {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 1px;
  border-top: 1px solid #e2e5ef;
}
.resource-symbol { width: 36px; height: 36px; font-size: .92rem; }
.resource-info h3 { margin: 0; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.28; }
.resource-info p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.resource-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #285541;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.resource-action:hover { background: #e9efdd; text-decoration: underline; }
.more-button { margin-top: 14px; padding-inline: 14px; }
.library-note { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.library-note a, .footer a { color: #285541; text-underline-offset: 3px; }

.empty-state { padding: 18px 0; border-top: 1px solid var(--line); }
.empty-state h3, .empty-state p { margin: 0 0 7px; }
.empty-state p { color: var(--muted); }
.topic-suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.topic-group { padding: 9px 12px; background: #f0f1f8; border-radius: 7px; font-size: .82rem; }
.topic-group div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.topic-group span { color: var(--muted); font-size: .78rem; }

.tutoring {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .75fr);
  align-items: start;
  gap: 20px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #d3daea;
  border-radius: 16px 16px 16px 5px;
  background: #e8ecf7;
}
.tutoring p { margin: 7px 0 13px; color: var(--muted); }
.solid-button { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.schedule-list { display: grid; gap: 9px; }
.schedule-list .schedule-empty, .schedule-item {
  display: grid;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #d3daea;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: .88rem;
}
.schedule-item span { color: var(--muted); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 31px;
  padding: 16px 0 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .79rem;
}
.video-dialog {
  width: min(850px, calc(100% - 24px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--forest);
  color: white;
}
.video-dialog::backdrop { background: #0b1b17d9; }
.video-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; }
.video-dialog-head button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: white; }
.video-frame { aspect-ratio: 16/9; background: #0b1b17; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1130px) {
  body { grid-template-columns: 167px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 em { display: inline; }
  .shortcuts { padding: 12px 16px; }
}
@media (max-width: 720px) {
  body { display: block; }
  .sidebar { position: static; min-height: auto; padding: 11px 13px 8px; }
  .brand { margin: 0 0 9px 3px; }
  .brand-mark { width: 32px; height: 32px; font-size: 1.65rem; }
  .site-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .site-nav a { justify-content: center; gap: 4px; min-height: 42px; padding-inline: 2px; font-size: .75rem; }
  .site-nav a span { width: auto; }
  .sidebar-note { display: none; }
  .workspace { padding: 15px; }
  .hero h1 { font-size: clamp(3.15rem, 10.5vw, 5.7rem); }
  .section { scroll-margin-top: 12px; }
}
@media (max-width: 540px) {
  .hero { padding: 24px 16px 18px; }
  .hero h1 em { display: block; }
  .hero-context { margin-bottom: 12px; }
  .hero-intro { margin: 15px 0 19px; }
  .hero-search input { padding-inline: 7px; font-size: .86rem; }
  .hero-search button { padding-inline: 9px; }
  .subject-card { grid-template-columns: 37px minmax(0, 1fr); padding: 8px; gap: 7px; }
  .subject-symbol { width: 37px; height: 37px; font-size: 1.45rem; }
  .subject-arrow { display: none; }
  .subject-info strong { font-size: .83rem; }
  .subject-info span { font-size: .7rem; }
  .library, .tutoring { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-field:has(.filter-pills) { grid-column: 1 / -1; }
  .results { padding: 6px 12px 14px; }
  .resource-row { grid-template-columns: 31px minmax(0, 1fr); gap: 5px 9px; padding-block: 9px; }
  .resource-symbol { width: 31px; height: 31px; }
  .resource-action { grid-column: 2; justify-self: start; min-height: 32px; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero {
  border: 1px solid #514176;
  border-radius: 24px;
  box-shadow: 0 16px 44px #201a4122;
}

.shortcuts { border-color: #afa5dc59; border-radius: 18px; }
.shortcuts .shortcut-featured {
  margin-bottom: 3px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: #b9efd9;
  color: #18353b;
}
.shortcuts .shortcut-featured:hover { background: #dcf7ec; color: #18353b; }
.shortcut-featured .shortcut-icon { background: #214a4a1a; color: #18353b; }

.tutorial-select {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 800;
}
.tutorial-select select {
  min-width: 0;
  min-height: 43px;
  padding: 6px 10px;
  border: 1px solid #cbd0e3;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-weight: 650;
}
.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  align-items: start;
  gap: 15px;
}
.video-catalog { min-width: 0; }
.video-catalog:has(+ [hidden]) { grid-column: 1 / -1; }
.video-empty, .practice {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.video-empty {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 258px;
  background: linear-gradient(147deg, #e5e0fa, #f7f7ff 72%);
}
.empty-play, .video-play {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #29234d;
  color: white;
}
.empty-play { width: 48px; height: 48px; margin-bottom: 14px; }
.video-empty h3, .practice h3 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1.85rem, 2.5vw, 2.45rem)/1 var(--display);
}
.video-empty p { margin: 9px 0 15px; color: var(--muted); }
.video-empty a { color: #382678; font-weight: 800; text-underline-offset: 3px; }

.video-progress {
  display: grid;
  gap: 4px;
  padding: 0 0 12px;
}
.video-progress p { margin: 0; color: var(--muted); font-size: .83rem; font-weight: 750; }
.video-progress progress { width: 100%; height: .62rem; accent-color: #5f4790; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 11px; }
.video-card { --subject-ground: #e2ead3; --subject-ink: #28472d; }
.video-card.geometria { --subject-ground: #d0f0e8; --subject-ink: #155c53; }
.video-card.diferencial { --subject-ground: #eadbf5; --subject-ink: #523a6f; }
.video-card.lineal { --subject-ground: #e1def9; --subject-ink: #403580; }
.video-card.integral { --subject-ground: #faeac6; --subject-ink: #634917; }
.video-card.fisica { --subject-ground: #d7e8fb; --subject-ink: #224d68; }
.video-card button {
  display: grid;
  align-content: start;
  width: 100%;
  height: 100%;
  padding: 7px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.video-card button:hover { border-color: #a398c0; box-shadow: 0 6px 16px #28204514; }
.video-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 9px;
  background: var(--subject-ground);
  color: var(--subject-ink);
}
.video-glyph { font: 400 clamp(3rem, 6vw, 5.4rem)/1 var(--display); }
.video-play { position: absolute; bottom: 8px; left: 8px; width: 36px; height: 36px; border-radius: 9px; font-size: .77rem; }
.video-time { position: absolute; right: 8px; bottom: 8px; padding: 1px 5px; border-radius: 5px; background: #29234d; color: white; font-size: .68rem; }
.video-card-title { padding: 8px 5px 1px; font-size: .93rem; font-weight: 800; overflow-wrap: anywhere; }
.video-card-meta { padding: 0 5px; color: var(--muted); font-size: .76rem; }
.video-seen { padding: 6px 5px 0; color: #1d6754; font-size: .74rem; font-weight: 800; }

.practice { background: white; box-shadow: 0 6px 18px #2820450c; }
.practice .practice-topic { margin: 5px 0 11px; color: #635393; font-size: .78rem; font-weight: 800; }
.practice fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.practice legend { padding: 0; font-size: .93rem; font-weight: 760; }
.practice-options { display: grid; gap: 6px; margin-top: 8px; }
.practice-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: .86rem;
}
.practice-options input { flex: none; margin: 0; accent-color: #684bb1; }
.practice-options label:has(:checked) { border-color: #947cc8; background: #f0eaff; }
.practice-feedback { margin: 9px 0 0; padding: 8px 10px; border-radius: 7px; background: #f8edd9; color: #593b17; font-size: .84rem; }
.practice-feedback[data-correcto="true"] { background: #e3f6ed; color: #1d5242; }
.practice-actions, .player-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.practice-actions button, .player-tools button { min-height: 42px; padding: 6px 11px; border-radius: 8px; font-size: .82rem; font-weight: 800; }
.practice-actions button:not(.solid-button) { border: 1px solid var(--line); background: white; color: #4e387d; }
.practice-actions button:disabled { opacity: .58; cursor: default; }
.player-tools { justify-content: space-between; margin: 0; padding: 9px 16px; }
.player-tools button { border: 0; background: var(--lime); color: var(--forest); }
.player-tools a { color: white; font-size: .87rem; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .tutorial-layout { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .site-nav a { padding-inline: 0; font-size: .69rem; }
  .site-nav a span { display: none; }
  .tutorial-select { gap: .42rem; }
  .tutorial-select select { max-width: min(190px, 57vw); }
  .video-empty { min-height: 0; }
}

.grade-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  align-items: start;
  gap: 14px;
}
.grade-inputs, .grade-summary {
  padding: clamp(15px, 2.8vw, 26px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.grade-goal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.grade-goal label { font-weight: 800; }
.grade-help { margin: 10px 0 15px; color: var(--muted); font-size: .86rem; }
.grade-goal input, .grade-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid #cbd0e3;
  border-radius: 8px;
  background: #fcfcff;
  color: var(--ink);
  font-size: .89rem;
}
.grade-goal input { max-width: 77px; font-weight: 800; }
.grade-calculator input[aria-invalid="true"] { border-color: #ac3e55; }
.grade-columns, .grade-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(48px, .35fr) minmax(63px, .4fr) 34px;
  gap: 7px;
  align-items: center;
}
.grade-columns { margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.grade-row + .grade-row { margin-top: 6px; }
.grade-add, .grade-remove {
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #4e387d;
  font-weight: 800;
}
.grade-add { margin-top: 12px; font-size: .83rem; }
.grade-remove { font-size: 1.1rem; }
.grade-remove:disabled { opacity: .42; cursor: default; }
.grade-add:hover, .grade-remove:hover:not(:disabled) { background: #f0eaff; }
.grade-error { margin: 10px 0 0; color: #992c48; font-size: .86rem; }
.grade-summary { background: linear-gradient(148deg, #e5e0fa, #fcfbff 76%); }
.grade-answer > span { display: block; color: #51437b; font-size: .83rem; font-weight: 800; }
.grade-answer strong { display: block; margin: 7px 0; color: var(--ink); font: 400 clamp(2.4rem, 5.4vw, 4.5rem)/.95 var(--display); }
.grade-answer p { margin: 0; color: var(--muted); font-size: .86rem; }
.grade-breakdown { margin: 15px 0 0; }
.grade-breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #d9d5e9; font-size: .83rem; }
.grade-breakdown dd { margin: 0; font-weight: 800; white-space: nowrap; }

@media (max-width: 900px) {
  .grade-calculator { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .grade-columns, .grade-row { grid-template-columns: minmax(57px, 1fr) 49px 57px 29px; gap: 4px; }
  .grade-row input { padding-inline: 5px; }
}
