:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202125;
  background: #f4f6f9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid #777;
  border-radius: 5px;
  padding: 9px 16px;
  color: inherit;
}
button:hover {
  background: #edf1f7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2b70e6;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: #244ec8;
  color: #fff;
  border-color: #244ec8;
  border-radius: 25px;
  font-weight: 700;
  padding: 12px 26px;
}
.primary:hover {
  background: #153994;
}
.secondary {
  border: 2px solid #244ec8;
  color: #244ec8;
  border-radius: 25px;
  font-weight: 700;
}
.text {
  border: 0;
  background: transparent;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.muted {
  color: #586071;
}
.top {
  background: #182c53;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 5vw;
}
.brand {
  font-size: 24px;
  font-weight: 700;
}
.brand small {
  font-size: 14px;
  font-weight: 400;
  margin-left: 15px;
}
.home {
  max-width: 1120px;
  margin: 44px auto;
  padding: 0 28px;
}
.home h1 {
  font-size: 34px;
  margin-bottom: 12px;
}
.home h2 {
  font-size: 23px;
  margin-top: 38px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid #c7cfdd;
  border-radius: 8px;
  padding: 27px;
}
.card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}
.card p {
  line-height: 1.6;
}
.eyebrow {
  font-size: 14px;
  color: #4b566b;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background: #e9eef9;
  color: #233b6b;
  font-size: 14px;
  margin-bottom: 16px;
}
.card .primary {
  margin-top: 16px;
}
.exam {
  height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.exam-header {
  min-height: 108px;
  padding: 20px 32px 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  border-bottom: 3px dashed #92969e;
}
.section-label {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 9px;
}
.timer {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 154px;
}
.timer-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}
.timer-controls button {
  font-size: 14px;
  font-weight: 400;
}
.tools {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  flex-wrap: wrap;
}
.tools button {
  border: 0;
  padding: 4px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.tool-icon {
  font-size: 22px;
}
.exam-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
  margin: 32px 0;
}
.passage {
  padding: 0 42px 24px 5vw;
  border-right: 1px solid #a8a8a8;
  overflow: auto;
  line-height: 1.65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}
.question {
  padding: 0 5vw 24px 42px;
  overflow: auto;
  font-size: 18px;
  line-height: 1.5;
}
.math-main {
  display: block;
  overflow: auto;
}
.math-main .question {
  max-width: 860px;
  margin: auto;
  overflow: visible;
}
.question-bar {
  display: flex;
  align-items: center;
  background: #efefef;
  border-bottom: 1px solid #adadad;
  margin-bottom: 22px;
  height: 44px;
  gap: 13px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}
.number {
  height: 44px;
  min-width: 42px;
  display: grid;
  place-items: center;
  background: #292929;
  color: white;
  font-weight: bold;
}
.mark {
  border: 0;
  background: transparent;
  padding: 5px;
}
.mark[aria-pressed="true"] {
  color: #1648c5;
  font-weight: bold;
}
.eliminate-toggle {
  margin-left: auto;
  background: white;
  border: 1px solid #222;
  padding: 2px 7px;
  margin-right: 9px;
  font-weight: bold;
}
.eliminate-toggle[aria-pressed="true"] {
  background: #244ec8;
  color: white;
}
.prompt {
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 24px;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  border: 1px solid #4a4a4a;
  border-radius: 7px;
  padding: 13px 16px;
  min-height: 58px;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.choice[aria-checked="true"] {
  border: 3px solid #2455c5;
  padding: 11px 14px;
  background: #eef3ff;
}
.letter {
  border: 1px solid #333;
  min-width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Arial;
  font-size: 16px;
}
.choice[aria-checked="true"] .letter {
  background: #244ec8;
  color: white;
  border-color: #244ec8;
}
.choice p {
  margin: 0;
}
.strike {
  text-decoration: line-through;
  opacity: 0.45;
}
.exclude {
  padding: 4px 8px;
  min-width: 36px;
  border-radius: 50%;
}
.exam-footer {
  border-top: 3px dashed #92969e;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
}
.exam-footer .nav {
  background: #292929;
  color: white;
  border-radius: 7px;
  font-weight: 700;
}
.footer-actions {
  display: flex;
  gap: 15px;
}
.answer-input {
  display: block;
  border: 2px solid #333;
  width: 210px;
  padding: 12px;
  margin: 16px 0;
  font-size: 23px;
}
.response-help {
  font-size: 15px;
  color: #444;
}
.question img,
.passage img,
.breakdown img {
  max-width: 100%;
  height: auto !important;
}
.question table,
.passage table {
  width: auto !important;
  min-width: 160px;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
}
.question td,
.passage td {
  padding: 6px 13px;
  border: 1px solid #444;
}
.question td p {
  margin: 0;
}
dialog {
  border: 1px solid #929baa;
  border-radius: 10px;
  box-shadow: 0 12px 60px #0003;
  max-width: min(680px, 92vw);
  width: 600px;
  padding: 28px;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #101c355c;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.dialog-head h2 {
  font-size: 23px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 25px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.grid button {
  padding: 0;
  min-height: 40px;
  position: relative;
  border-radius: 3px;
}
.grid .answered {
  background: #244ec8;
  color: white;
}
.grid .flagged:after {
  content: "⚑";
  position: absolute;
  right: -5px;
  top: -13px;
  color: #204cba;
  font-size: 20px;
}
.grid .current {
  outline: 3px solid #242424;
  outline-offset: 3px;
}
.legend {
  font-size: 14px;
  line-height: 1.9;
}
.center-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background: #f5f7fa;
}
.center-card {
  max-width: 680px;
  width: 92%;
  padding: 48px;
  text-align: center;
  background: white;
  border: 1px solid #cbd2df;
  border-radius: 10px;
}
.big-clock {
  font-size: 62px;
  font-variant-numeric: tabular-nums;
  margin: 28px;
}
.center-card p {
  line-height: 1.7;
}
.score {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}
.results-table {
  border-collapse: collapse;
  width: 100%;
  background: white;
}
.results-table th,
.results-table td {
  text-align: left;
  border-bottom: 1px solid #d8dce5;
  padding: 13px;
}
.correct {
  color: #216b42;
}
.incorrect {
  color: #b43127;
}
.breakdown {
  padding: 20px 0;
  line-height: 1.7;
}
.notes {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  margin-top: 16px;
}
#calculator {
  position: fixed;
  right: 35px;
  top: 125px;
  width: 560px;
  max-width: 94vw;
  height: 480px;
  z-index: 15;
  background: white;
  box-shadow: 0 8px 35px #0005;
  border: 1px solid #657089;
  border-radius: 7px;
  overflow: hidden;
  resize: both;
  min-width: 300px;
  min-height: 250px;
}
#calculator[hidden] {
  display: none;
}
#calc-handle {
  height: 44px;
  background: #eceff4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  cursor: move;
  touch-action: none;
}
#calc-handle button {
  border: 0;
  background: transparent;
}
#calc-content {
  height: calc(100% - 44px);
}
#calc-content iframe {
  border: 0;
  width: 100%;
  height: 100%;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #172b4b;
  color: white;
  border-radius: 6px;
  padding: 14px 22px;
  z-index: 50;
  display: none;
  max-width: 90vw;
}
.highlight {
  background: #ffeb80;
}
.line-reader {
  position: fixed;
  left: 0;
  right: 0;
  top: 45%;
  height: 38px;
  pointer-events: none;
  border-top: 2px solid #dcad31;
  border-bottom: 2px solid #dcad31;
  box-shadow:
    0 -500px 0 480px #17223822,
    0 500px 0 480px #17223822;
  z-index: 8;
}
.error {
  background: #fff0ee;
  padding: 16px;
  border: 1px solid #b43127;
}
.home a {
  color: #244ec8;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.small {
  font-size: 14px;
}
@media (max-width: 760px) {
  .exam-header {
    padding: 15px;
    grid-template-columns: 1fr auto;
  }
  .tools {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .section-label {
    font-size: 17px;
  }
  .exam-main {
    display: block;
    overflow: auto;
    margin: 20px 0;
  }
  .passage {
    border-right: 0;
    border-bottom: 1px solid #ccc;
    padding: 0 22px 22px;
    overflow: visible;
  }
  .question {
    padding: 22px;
    overflow: visible;
  }
  .exam-footer {
    padding: 12px;
    flex-wrap: wrap;
  }
  .exam-footer > span {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .home {
    padding: 0 16px;
  }
  .brand small {
    display: block;
    margin: 6px 0 0;
  }
  .results-table {
    font-size: 14px;
  }
  .results-table td,
  .results-table th {
    padding: 10px 5px;
  }
}

.top button {
  color: #202125;
}

/* AmberBook homepage and results; exam typography stays separate. */
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --amber: #ffbf00;
  font-family: Inter, Arial, sans-serif;
}
.top {
  background: #ffbf00;
  color: #201c11;
  border-bottom: 1px solid #d4a000;
}
.home .primary,
.center-card .primary {
  background: #ffbf00;
  border-color: #ffbf00;
  color: #201c11;
}
.home .primary:hover,
.center-card .primary:hover {
  background: #e8ae00;
}
.home .tag {
  background: #fff3cc;
  color: #665000;
}
.home .card {
  border-color: #dedcd3;
}
.status {
  display: inline-block;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.status.unfinished {
  color: #a22222;
  background: #ffe8e8;
}
.status.finished {
  color: #17623b;
  background: #dff4e7;
}
.section-score {
  font-size: 32px;
  font-weight: 700;
  margin: 20px 0;
}
.exam,
.exam .question-bar,
.exam .letter,
dialog {
  font-family: "Myriad Pro", "MyriadPro-Regular", Arial, sans-serif;
}
.exam .passage,
.exam .prompt,
.exam .choice,
.breakdown {
  font-family: "Minion Pro", "MinionPro-Regular", Georgia, serif;
}
.pause-banner {
  background: #b32626;
  color: white;
  padding: 10px 24px;
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
}
.exam-header,
.exam-footer {
  flex-shrink: 0;
}
.exam-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.footer-right {
  display: contents;
}

.exam-footer .nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.exam-footer .footer-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
dialog.navigator-popup {
  position: fixed;
  inset: auto auto var(--nav-bottom, 100px) 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 590px;
  max-width: calc(100vw - 24px);
  max-height: min(70dvh, 600px);
  z-index: 25;
  border-radius: 7px;
}
dialog.navigator-popup .dialog-actions {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .footer-right {
    gap: 12px;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-head {
    flex-wrap: wrap;
  }
}




@font-face {
  font-family: "Myriad Pro";
  src: url("/fonts/MYRIADPRO-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("/fonts/MYRIADPRO-SEMIBOLD.OTF") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("/fonts/MYRIADPRO-BOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("/fonts/MYRIADPRO-BOLDIT.OTF") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionPro-It.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionPro-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minion Pro";
  src: url("/fonts/MinionPro-BoldIt.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@media (max-width: 760px) {
  .exam-footer {
    grid-template-columns: 1fr;
  }

  .exam-footer .nav {
    grid-column: 1;
    grid-row: 1;
  }

  .exam-footer .footer-actions {
    grid-column: 1;
    grid-row: 2;
  }
}