:root {
  --ink: #142f35;
  --paper: #f8f6ef;
  --line: #d7d9cf;
  --muted: #526567;
  --green: #176456;
  --gold: #f7b546;
  --w: 1160px;
  font:
    17px/1.55 "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
header {
  background: #fffdf7;
  border-bottom: 1px solid var(--line);
}
.bar,
main,
footer > div,
footer > p {
  max-width: var(--w);
  margin: auto;
}
.bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.055em;
}
.brand b {
  font-weight: 450;
}
.brand img {
  margin-right: 3px;
}
.bar nav,
footer nav,
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 620;
  font-size: 0.9rem;
}
nav a:hover,
nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
main {
  padding: 36px 0 60px;
  min-height: 70vh;
}
.hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #092f35;
  color: white;
  border-radius: 18px;
  padding: clamp(34px, 5.4vw, 80px);
  min-height: 410px;
  display: flex;
  align-items: center;
}
.cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #062c33f5 4%,
    #072d33f0 36%,
    #05272a45 65%,
    transparent
  );
}
.heroCopy {
  max-width: 560px;
}
.heroCopy > p:not(.eyebrow) {
  max-width: 440px;
  color: #edf4ef;
  font-size: 1.09rem;
}
.hero h1 {
  font-size: clamp(3.3rem, 6vw, 5.2rem);
}
h1,
h2,
h3,
p {
  margin: 0 0 0.65em;
}
h1,
h2,
h3 {
  line-height: 1.085;
  letter-spacing: -0.045em;
}
h1,
h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(2.7rem, 5vw, 4.3rem);
}
h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
}
h3 {
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}
.eyebrow {
  font:
    700 0.72rem/1.45 "Inter",
    Arial,
    sans-serif;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: #44605f;
  margin-bottom: 13px;
}
.hero .eyebrow {
  color: #ffca77;
}
p {
  max-width: 72ch;
}
.btn,
button {
  font:
    650 1rem/1.25 "Inter",
    Arial,
    sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #a7b6ad;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.hero .primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c2e2f;
}
.heroLink {
  color: white;
  font-weight: 650;
  font-size: 0.94rem;
}
.actions {
  gap: 12px;
  margin-top: 24px;
}
.btn:hover,
button:hover:enabled {
  box-shadow: inset 0 0 0 2px #738b8059;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 3;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.strip span {
  padding: 0 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.strip span:last-child {
  border: none;
}
.strip b {
  font:
    600 1.4rem Georgia,
    serif;
  margin-right: 4px;
  color: var(--ink);
}
.group {
  margin: 48px 0;
}
.grid,
.lessonLayout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.two,
.lessonLayout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card,
.panel,
.band,
.qbox,
.passage {
  background: #fffefa;
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: 12px;
}
.card {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: #758c80;
}
.card p:not(.eyebrow),
.band p,
.intro > p,
.panel > p,
.group > p:not(.eyebrow) {
  color: var(--muted);
}
.card strong {
  font-size: 0.9rem;
  color: var(--green);
  margin-top: auto;
  padding-top: 10px;
}
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #e8eee5;
}
.band p,
.band h2 {
  margin-bottom: 0.3em;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #eeefe7;
}
footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
footer > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.intro {
  max-width: 840px;
  margin: 24px 0 28px;
}
.lead {
  font-size: 1.12rem;
  line-height: 1.6;
}
.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 24px;
}
.panel {
  margin-bottom: 18px;
}
.panel > h2:not(:first-child) {
  margin-top: 1.2em;
}
.lessonLayout {
  grid-template-columns: 1.65fr 1fr;
  align-items: start;
}
.lessonAction {
  background: #eaf0e8;
}
.skillList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.skillList a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  background: #fffefa;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skillList a:hover {
  border-color: var(--green);
}
ol {
  padding-left: 1.35em;
}
li {
  padding-left: 0.2em;
  margin: 0 0 0.55em;
}
aside,
.notice,
.feedback {
  padding: 16px 18px;
  border-radius: 6px;
  background: #edf3ed;
  border-left: 4px solid var(--green);
  margin: 16px 0;
}
aside p,
.feedback p {
  margin: 0.4em 0 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
select,
input[type="date"] {
  font: inherit;
  padding: 10px;
  border: 1px solid #84958e;
  border-radius: 6px;
  background: #fff;
  max-width: 100%;
  color: var(--ink);
}
select {
  width: 100%;
}
label {
  display: block;
  font-weight: 650;
  margin: 0 0 6px;
}
#match:not(:empty) {
  margin-top: 18px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #ac601b;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  color: #596763;
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--green);
}
.qbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  font-variant-numeric: tabular-nums;
}
.qbar span {
  font-weight: 650;
}
.timer {
  padding: 6px 10px;
  background: var(--ink);
  border-radius: 6px;
  color: white;
}
.qwrap {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.qwrap.withPassage {
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
}
.qbox h2 {
  font:
    650 clamp(1.28rem, 2.5vw, 1.7rem)/1.32 "Inter",
    Arial,
    sans-serif;
  letter-spacing: -0.025em;
}
.option {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: white;
  font-weight: 500;
  line-height: 1.45;
  margin: 4px 0;
}
.option i {
  font-style: normal;
  background: #edf0e9;
  border-radius: 4px;
  align-self: baseline;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 0 6px;
}
.option[aria-pressed="true"] {
  border: 2px solid var(--green);
  background: #eaf3eb;
  color: var(--ink);
  padding: 10px 17px;
}
.passage h2 {
  font-size: 1.5rem;
}
.passage p {
  font-family: Georgia, serif;
  line-height: 1.65;
}
.passage sup {
  font: 650 0.7rem Arial;
  color: var(--muted);
  margin-right: 4px;
}
.supported {
  background: #fff1c9;
}
.feedback.bad {
  background: #fff5e8;
  border-color: #a46725;
}
.small {
  font-size: 0.86rem;
  color: var(--muted);
}
.flag[aria-pressed="true"] {
  background: #fff1c9;
}
.questionMap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.questionMap button {
  min-width: 44px;
  padding: 5px;
}
.questionMap .answered {
  background: #deeee6;
}
.questionMap .flagged {
  border: 2px solid #a46725;
}
.current {
  outline: 2px solid var(--ink);
}
details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  color: var(--green);
  padding: 7px 0;
  font-weight: 650;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0;
}
.stats span {
  background: #eaf0ec;
  border-radius: 6px;
  padding: 7px 12px;
}
.reviewRow {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.dataTable {
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-variant-numeric: tabular-nums;
}
.dataTable th,
.dataTable td {
  padding: 7px 16px;
  text-align: left;
  border: 1px solid var(--line);
}
figure {
  margin: 10px 0;
}
figure svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}
.muted,
.onDevice {
  color: var(--muted);
}
.onDevice {
  font-size: 0.86rem;
}
.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#runner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 14px;
}
.qbox:focus,
.resultTitle:focus {
  outline: none;
}
@media (max-width: 1240px) {
  .bar,
  main,
  footer > div,
  footer > p {
    width: calc(100% - 48px);
  }
}
@media (max-width: 720px) {
  :root {
    font-size: 16px;
  }
  .bar,
  main,
  footer > div,
  footer > p {
    width: calc(100% - 28px);
  }
  .bar {
    min-height: 60px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .brand {
    font-size: 1.15rem;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .bar nav,
  footer nav {
    gap: 12px;
  }
  .bar nav a {
    font-size: 0.84rem;
  }
  main {
    padding-top: 18px;
  }
  .hero {
    min-height: 360px;
    padding: 28px 21px;
  }
  .hero:before {
    background: linear-gradient(90deg, #092d35f5, #092d35df 55%, #092d3577);
  }
  .cover {
    object-position: 67% center;
  }
  .hero h1 {
    font-size: 3.3rem;
  }
  .strip {
    font-size: 0.78rem;
  }
  .strip span {
    padding: 0 4px;
  }
  .strip b {
    display: block;
  }
  .grid,
  .two,
  .lessonLayout,
  .qwrap.withPassage,
  .skillList {
    grid-template-columns: 1fr;
  }
  .band,
  footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .group {
    margin: 32px 0;
  }
  .qbox,
  .passage {
    padding: 18px;
  }
  .qwrap {
    margin: 12px 0;
  }
  .passage p {
    font-size: 0.99rem;
  }
  .actions {
    gap: 8px;
  }
  .questionMap button {
    min-height: 44px;
  }
}
.mobileJump {
  display: none;
}
@media (max-width: 720px) {
  .mobileJump {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
  }
  #question,
  #text {
    scroll-margin-top: 8px;
  }
}
.answerGuide { max-width: 76ch; }
.answer + .answer { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.answer h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.answer p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.35rem, 9.7vw, 3.25rem); }
  .actions, footer nav { flex-wrap: wrap; }
  .bar nav a, footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

#account-actions form { display: grid; gap: .65rem; margin: .85rem 0; justify-items: start; }
#account-actions input { display: block; width: 100%; margin-top: .25rem; }
#account-actions label { max-width: 100%; }
#account-actions form[action="/api/logout/"] button { background: transparent; color: var(--green); border-color: var(--line); }
