@font-face {
  font-family: Studio;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f6fa;
  color: #152b3e;
  font:
    16px/1.6 Studio,
    Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
a {
  color: #126854;
  text-underline-offset: 3px;
}
button {
  border: 1px solid #bccbd7;
  border-radius: 9px;
  padding: 11px 17px;
  background: white;
  color: #152b3e;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  border-color: #137c68;
  background: #ecf8f4;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #d59a08;
  outline-offset: 3px;
}
.primary {
  background: #143a4c;
  border-color: #143a4c;
  color: white;
}
.primary:hover {
  background: #1a5269;
  color: white;
}
.soft {
  background: #e7f6f0;
  border-color: #b1d7c7;
}
.danger {
  color: #a22e2e;
}
.muted,
small {
  color: #536c7d;
}
.preview {
  padding: 8px 5%;
  background: #173b4c;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.09em;
  font-weight: 650;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.preview span {
  letter-spacing: 0;
  font-weight: 400;
}
header {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  border-bottom: 1px solid #d8e1e9;
  padding: 18px max(4vw, 20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #172f41;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-top: 5px;
}
.brand-icon {
  background: #137b67;
  color: white;
  padding: 7px 13px;
  border-radius: 10px;
  font: italic 32px Georgia;
}
nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
nav a {
  text-decoration: none;
  color: #405767;
  font-size: 15px;
  font-weight: 600;
}
.guest {
  font-size: 13px;
  background: #f0f4f8;
  padding: 7px 12px;
  border-radius: 30px;
}
main {
  max-width: 1280px;
  margin: 38px auto;
  padding: 0 26px;
  min-height: 65vh;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: 0 0 15px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 15px;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 12px;
}
p {
  margin: 0 0 15px;
}
.eyebrow {
  font-size: 12px;
  color: #13745e;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}
.intro > div:first-child {
  max-width: 650px;
}
.metric {
  border-left: 3px solid #17866d;
  padding-left: 18px;
  min-width: 180px;
}
.metric strong {
  font-size: 30px;
  display: block;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #d8e3eb;
  border-radius: 14px;
  padding: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card p {
  font-size: 15px;
  flex: 1;
}
.card button {
  width: 100%;
}
.number {
  font: 600 28px Georgia;
  color: #137b67;
}
.tag {
  display: inline-block;
  border: 1px solid #d3e5e0;
  background: #eef8f4;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #126650;
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
input,
select,
textarea {
  border: 1px solid #bdcbd5;
  border-radius: 7px;
  padding: 11px;
  background: white;
  color: #17384b;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 95px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #137b67;
}
.banner {
  padding: 16px 20px;
  border-radius: 10px;
  background: #e8f4f0;
  border: 1px solid #bfdacf;
  margin: 20px 0;
}
.warning {
  background: #fff4d9;
  border-color: #e9cf84;
}
.attempt-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.timer {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}
.question-panel {
  min-height: 530px;
}
.passage {
  border-left: 4px solid #137b67;
  background: #eff7f4;
  padding: 20px;
  margin: 18px 0 24px;
}
.prompt {
  font-size: 20px;
  font-weight: 650;
  margin: 25px 0 18px;
}
.choice {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
  width: 100%;
  margin: 10px 0;
  font-weight: 400;
}
.letter {
  border: 1px solid #cad7df;
  border-radius: 5px;
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}
.choice[aria-pressed="true"] {
  border: 2px solid #168772;
  background: #e6f5ef;
}
.choice.right {
  border: 2px solid #168772;
}
.choice.wrong {
  border-color: #be6363;
  background: #fff0f0;
}
.actions {
  border-top: 1px solid #dce5eb;
  padding-top: 22px;
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.navigator {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.navigator button {
  padding: 8px 0;
  position: relative;
}
.navigator .answered {
  background: #d9eaf4;
}
.navigator .current {
  outline: 2px solid #123e55;
}
.navigator .flagged:after {
  content: "•";
  position: absolute;
  right: 4px;
  top: -6px;
  color: #b56900;
}
.save-state {
  font-size: 13px;
  color: #58717e;
  min-height: 22px;
}
.sequence {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 6px 0;
}
.sequence svg {
  min-width: 94px;
  width: calc(100% / 7 - 7px);
  max-width: 116px;
  border: 1px solid #becdd9;
  border-radius: 8px;
  background: #fff;
}
.figure-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.figure-options button {
  padding: 6px;
}
.figure-options svg {
  width: 100%;
}
.figure-options button[aria-pressed="true"] {
  border: 2px solid #168772;
  background: #e6f5ef;
}
.latin {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 350px;
  border: 2px solid #284b60;
  margin: 24px auto;
}
.latin span {
  border: 1px solid #bccbd7;
  text-align: center;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: 24px;
}
.latin .target {
  background: #d7efe5;
  outline: 3px solid #168772;
  outline-offset: -3px;
  font-weight: 750;
}
.equation {
  font: 22px/1.7 Georgia;
  background: #f5f8fb;
  padding: 14px 20px;
  margin: 10px 0;
}
.value-inputs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.value-inputs label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.value-inputs input {
  width: 100px;
}
.help-step {
  padding: 14px;
  border-left: 3px solid #17856b;
  background: #f0f8f4;
  margin: 12px 0;
}
.score {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 750;
  color: #137b67;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  padding: 16px;
  background: #f3f7fa;
  border-radius: 8px;
}
.stat strong {
  font-size: 25px;
  display: block;
}
.review-row {
  border-top: 1px solid #d9e3ea;
  padding: 18px 0;
}
.review-row summary {
  cursor: pointer;
  font-weight: 650;
}
.review-body {
  padding: 20px 0;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #d9e3ea;
}
dialog {
  border: 1px solid #cddbe3;
  border-radius: 14px;
  padding: 26px;
  width: min(820px, 94vw);
  max-height: 90vh;
  color: #153447;
  overflow: auto;
}
dialog::backdrop {
  background: #19394db3;
}
dialog header {
  padding: 0 0 15px;
  border: 0;
  justify-content: space-between;
}
footer {
  max-width: 1280px;
  padding: 28px;
  margin: auto;
  border-top: 1px solid #d7e2e9;
  font-size: 13px;
  color: #58717e;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #173b4c;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 100;
  box-shadow: 0 8px 25px #152c3e33;
}
#notice:empty {
  display: none;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 6px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 300;
}
progress {
  width: 100%;
  accent-color: #17866c;
  height: 8px;
}
.compact {
  font-size: 14px;
}
.formula {
  font-size: 20px;
  white-space: normal;
}
.policy {
  max-width: 860px;
}
.costinputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.costinputs input {
  width: 100%;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.mock-grid button {
  font-size: 14px;
}
.section-label {
  font-weight: 650;
  color: #496376;
  font-size: 14px;
  margin-bottom: 8px;
}
@media (max-width: 1050px) {
  header {
    flex-wrap: wrap;
    gap: 20px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    gap: 22px;
  }
  .guest {
    margin-left: auto;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .test-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .mock-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 740px) {
  main {
    padding: 0 16px;
    margin: 24px auto;
  }
  .preview {
    font-size: 11px;
    display: block;
  }
  .preview span {
    display: block;
  }
  header {
    padding: 15px 18px;
  }
  .intro {
    display: block;
  }
  .metric {
    margin-top: 20px;
  }
  .split,
  .test-layout {
    grid-template-columns: 1fr;
  }
  .card,
  .panel {
    padding: 20px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 17px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 32px;
  }
  nav {
    gap: 19px;
  }
  nav a {
    white-space: nowrap;
    font-size: 14px;
  }
  .guest {
    font-size: 11px;
  }
  .costinputs {
    grid-template-columns: repeat(2, 1fr);
  }
  .mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    align-items: start;
  }
  .test-layout aside {
    order: 2;
  }
  .sequence svg {
    min-width: 85px;
  }
  .prompt {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}
@media (min-width: 741px) {
  .test-layout aside {
    align-self: start;
  }
}

.answer-frames {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.answer-frames svg {
  width: 110px;
  height: 110px;
  border: 1px solid #bfccd7;
  border-radius: 8px;
}
.panel + .panel {
  margin-top: 20px;
}
nav a[aria-current="page"] {
  color: #116b56;
  text-decoration: underline;
}
.brand {
  font-size: 20px;
}
.guest {
  font-size: 13px;
}

.quick-start {
  margin-top: 20px;
}
.quick-start select {
  max-width: 250px;
}
.intro:has(.quick-start) > div:first-child {
  max-width: 820px;
}
@media (max-width: 740px) {
  .intro:has(.quick-start) .metric {
    display: none;
  }
  .intro:has(.quick-start) h1 {
    font-size: 30px;
  }
  .quick-start button {
    flex-grow: 1;
  }
  .quick-start select {
    max-width: 100%;
    flex-grow: 1;
  }
}

.question-panel,
.test-layout > *,
.panel,
.card {
  min-width: 0;
}
.figure-options > button {
  min-width: 0;
}
.sequence {
  max-width: 100%;
  min-width: 0;
}
.sequence svg {
  flex-shrink: 0;
}
.answer-frames {
  max-width: 100%;
}
@media (max-width: 740px) {
  .test-layout,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .attempt-top > div {
    min-width: 0;
  }
  .attempt-top > div:first-child {
    flex: 1;
  }
  .attempt-top .timer {
    font-size: 18px;
  }
  .attempt-top > div:last-child {
    max-width: 135px;
  }
  .figure-options {
    gap: 5px;
  }
  .figure-options button {
    padding: 3px;
  }
  .prompt {
    overflow-wrap: anywhere;
  }
}
:where(.table-scroll) {
  overflow-x: auto;
}
:where(.table-scroll table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
:where(.table-scroll th, .table-scroll td) {
  padding: 0.65rem;
  text-align: center;
  border: 1px solid #d6e2e8;
}
:where(.help-step s) {
  color: #8b4250;
}
