:root {
  --ink: #172e2b;
  --muted: #576b64;
  --green: #125c4e;
  --line: #d9e1db;
  --paper: #fff;
  --wash: #f4f6f1;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 16px var(--sans);
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
select,
input {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #c58935;
  outline-offset: 3px;
}
i {
  display: inline-flex;
  vertical-align: middle;
}
i svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: #123d37;
  color: #e8f3ea;
  padding: 32px 17px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 11px;
  font: 600 29px var(--serif);
  letter-spacing: -1.5px;
  text-decoration: none;
  padding: 0 9px;
}
.workspace {
  margin: 39px 12px 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid #366057;
  display: grid;
  gap: 7px;
}
.small-label,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.115em;
  font-weight: 700;
  text-transform: uppercase;
}
.workspace .small-label {
  color: #a6c9b7;
}
.workspace strong {
  font-size: 16px;
  font-weight: 550;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #c5d9ce;
  text-decoration: none;
  font-size: 15px;
  border-radius: 7px;
}
.rail nav a:hover {
  background: #204b44;
}
.rail nav a.active {
  background: #cae7d2;
  color: #123d37;
  font-weight: 650;
}
.rail-bottom {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: auto 8px 1px;
  border-top: 1px solid #366057;
  padding-top: 22px;
  color: #bad5c6;
}
.rail-bottom strong,
.rail-bottom small {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.rail-bottom small {
  font-size: 12px;
  margin-top: 4px;
  color: #b1cbbc;
}
.shell {
  margin-left: 216px;
  min-height: 100vh;
}
.topbar {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: #fafbf8;
}
.topbar b {
  padding: 0 10px;
  font-weight: 400;
  color: #91a097;
}
.topbar strong {
  color: var(--ink);
  font-weight: 550;
}
.date {
  display: flex;
  gap: 8px;
  align-items: center;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 32px clamp(22px, 3vw, 52px) 50px;
}
.intro {
  margin-bottom: 25px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 500 clamp(39px, 4vw, 59px) / 1.08 var(--serif);
  letter-spacing: -0.053em;
  margin: 9px 0;
}
h2 {
  font: 500 27px/1.15 var(--serif);
  letter-spacing: -0.035em;
}
.intro p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 265px);
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 6px #18392a05;
}
.casebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #edf4ec;
  padding: 13px 23px;
  border-bottom: 1px solid #d5e1d5;
}
.casetype {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #285849;
}
.badge {
  font-size: 12px;
  color: #475f50;
  background: #fff9;
  border: 1px solid #cfddcf;
  padding: 4px 8px;
  border-radius: 5px;
}
.casebody {
  padding: 24px clamp(18px, 2.1vw, 34px);
}
.topic {
  display: inline-block;
  color: #406f60;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.vignette {
  line-height: 1.6;
  font-size: 17px;
  color: #32453d;
}
.prompt {
  font: 520 clamp(21px, 2vw, 29px) / 1.23 var(--serif);
  letter-spacing: -0.028em;
  margin: 14px 0 22px;
}
.options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 13px;
  color: var(--ink);
  min-height: 45px;
  font-size: 15px;
  line-height: 1.35;
}
.letter {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  background: #f3f5f0;
  border: 1px solid #e0e5dc;
  color: #5a695f;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
}
.option:hover:enabled {
  border-color: #729c88;
  background: #f9fbf7;
}
.option.selected,
.option.correct {
  border-color: #3e866d;
  background: #edf7ee;
}
.selected .letter,
.correct .letter {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.option.incorrect {
  border-color: #b26c59;
  background: #fcf0ea;
}
.option .last {
  margin-left: auto;
}
.casefoot {
  padding: 15px 23px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.primary,
.secondary,
.quiet {
  font-size: 14px;
  font-weight: 620;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.3;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 11px 16px;
  min-height: 41px;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:disabled {
  opacity: 0.6;
}
.primary:hover:enabled {
  background: #104a40;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--green);
}
.quiet {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 7px 0;
}
.quiet:hover {
  color: var(--green);
  text-decoration: underline;
}
.side {
  display: grid;
  gap: 15px;
}
.sidecard {
  padding: 21px;
}
.sidehead {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 17px;
}
.sidehead h2 {
  font: 650 17px var(--sans);
  letter-spacing: -0.025em;
}
.iconbox {
  background: #edf3ea;
  border-radius: 7px;
  padding: 7px;
  color: var(--green);
}
.metrics {
  display: flex;
  gap: 16px;
  align-items: center;
}
.ring {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(#39826b var(--angle), #e6eee4 0);
  border-radius: 100%;
  flex: none;
}
.ring:before {
  content: "";
  position: absolute;
  inset: 5px;
  background: white;
  border-radius: 100%;
}
.ring b {
  position: relative;
  font: 500 26px var(--serif);
}
.metrics strong,
.metrics small {
  display: block;
}
.metrics strong {
  font-size: 15px;
}
.metrics small,
.meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.sidecounts {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.sidecounts b {
  color: var(--ink);
}
.filterlabel {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
select,
input[type="search"] {
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd7cc;
  border-radius: 6px;
  padding: 10px 11px;
  width: 100%;
  min-height: 41px;
  font-size: 14px;
}
select {
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, #51695e 50%),
    linear-gradient(135deg, #51695e 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.sourcecard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dcebdc;
  border: 1px solid #c8ddcb;
  border-radius: 12px;
  padding: 21px;
  min-height: 142px;
}
.sourcecard h2 {
  font-size: 25px;
  margin: 9px 0 5px;
}
.sourcecard .small-label {
  font-size: 11px;
  color: #3e6b57;
}
.sourcecard .meta {
  max-width: 60%;
  color: #3c5c4b;
}
.books {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 97px;
  height: 96px;
  transform: rotate(-14deg);
  z-index: -1;
}
.books span {
  position: absolute;
  background: #719c80;
  border: 1px solid #476f57;
  border-radius: 3px 7px 7px 3px;
  width: 32px;
  height: 94px;
  left: 24px;
  box-shadow:
    inset 5px 0 #ffffff32,
    inset 0 -11px #678e73;
}
.books span:before,
.books span:after {
  content: "";
  position: absolute;
  left: 7px;
  right: 6px;
  height: 2px;
  top: 12px;
  background: #d9ead6;
}
.books span:after {
  top: 16px;
}
.books span + span {
  background: #326652;
  left: 59px;
  top: -8px;
  transform: rotate(8deg);
}
.feedback {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.feedback strong {
  display: block;
  margin-bottom: 7px;
}
.feedback p,
.facttext {
  font-size: 16px;
  line-height: 1.55;
}
.sources {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
}
.evidence {
  padding: 12px 14px;
  border-left: 3px solid #91b6a2;
  background: #f4f7f2;
  font-size: 14px;
  line-height: 1.5;
}
.evidence b,
.evidence a {
  font-size: 12px;
}
.evidence p {
  font-size: 14px;
  margin: 3px 0;
}
.pagelink {
  color: var(--green);
  text-underline-offset: 3px;
}
.librarybar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 18px;
}
.librarymeta,
.pager {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.factrow {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.factrow .topic {
  margin-bottom: 5px;
}
.rowfoot,
.pager {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.rowfoot {
  margin-top: 9px;
}
.pager {
  justify-content: flex-end;
}
.empty {
  padding: 30px;
}
.empty p {
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 18px;
}
.logrow {
  display: grid;
  grid-template-columns: minmax(9ch, max-content) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.grade {
  justify-self: start;
  white-space: nowrap;
  background: #e6f2e9;
  color: #245f49;
  font-size: 13px;
  border-radius: 5px;
  padding: 5px 8px;
  text-align: center;
}
.grade.again {
  background: #fae9e1;
  color: #944e35;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #133e35;
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 4px 15px #0002;
}
.loading {
  color: var(--muted);
  padding: 30px;
  line-height: 1.6;
}
.logdetail {
  margin-top: 15px;
}
.sidecard .quiet {
  margin-top: 6px;
}
@media (min-width: 1550px) {
  .rail {
    width: 245px;
  }
  .shell {
    margin-left: 245px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .casebody {
    padding: 32px 38px;
  }
  .option {
    padding: 13px;
  }
  .sidecard {
    padding: 25px;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 175px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .shell {
    margin-left: 175px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr) 216px;
    gap: 14px;
  }
  .sidecard,
  .sourcecard {
    padding: 16px;
  }
  .brand {
    padding-inline: 2px;
    gap: 7px;
    font-size: 24px;
  }
  .metrics {
    gap: 9px;
  }
}
@media (max-width: 850px) {
  .rail {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 16px;
  }
  .workspace,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: flex;
    margin-left: auto;
  }
  .rail nav a {
    padding: 9px;
    font-size: 14px;
    gap: 6px;
  }
  .shell {
    margin: 0;
  }
  .brand {
    padding: 0;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .topbar {
    height: 43px;
  }
  main {
    padding-top: 22px;
  }
}
@media (max-width: 670px) {
  .rail {
    flex-wrap: wrap;
    gap: 10px;
  }
  .rail nav {
    margin: 0;
    width: 100%;
    justify-content: space-between;
  }
  .rail nav a {
    flex: 1;
    justify-content: center;
    font-size: 13px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .side {
    grid-template-columns: 1fr 1fr;
  }
  .sourcecard {
    grid-column: 1/-1;
    min-height: 100px;
  }
  .topbar {
    padding: 0 16px;
  }
  .date {
    font-size: 12px;
  }
  main {
    padding: 20px 14px 36px;
  }
  .intro {
    margin-bottom: 17px;
  }
  .casebar,
  .casefoot {
    padding: 12px 15px;
  }
  .casebody {
    padding: 18px 15px;
  }
  .sidecard {
    padding: 13px;
  }
  .sidehead {
    gap: 6px;
  }
  .sidehead h2 {
    font-size: 15px;
  }
  .metrics {
    flex-wrap: wrap;
  }
  .librarybar {
    grid-template-columns: 1fr;
  }
  .logrow {
    grid-template-columns: minmax(9ch, max-content) minmax(0, 1fr);
    gap: 8px 12px;
  }
  .logrow > button {
    grid-column: 2;
    justify-self: start;
  }
  .vignette {
    font-size: 16px;
  }
  .prompt {
    font-size: 23px;
  }
  .option {
    padding: 10px;
  }
  .sidecounts {
    flex-wrap: wrap;
    gap: 4px;
  }
  .ring {
    width: 50px;
    height: 50px;
  }
}

.skip-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.casefoot {
  flex-wrap: wrap;
}
.feedback h3 {
  margin: 18px 0 5px;
}
.factrating {
  border: 0;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.factrating label {
  position: relative;
  cursor: pointer;
}
.factrating span {
  display: block;
  padding: 5px 12px;
  font-weight: 600;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.factrating input,
.visually-hidden {
  height: 1px;
  width: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.factrating input:checked + span {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.factrating input:focus-visible + span {
  outline: 3px solid #c58935;
  outline-offset: 2px;
}
#update-count {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 650;
}

.coverage {
  padding: 20px 22px;
  margin-bottom: 18px;
}
.coverage-head,
.coverage-total,
.factheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.coverage-head h2 {
  font-size: 24px;
}
.coverage-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 100%;
}
.coverage-head select {
  max-width: min(270px, 62vw);
}
.coverage-total {
  justify-content: flex-start;
  gap: 6px;
  align-items: baseline;
  margin-top: 14px;
  color: var(--muted);
}
.coverage-total b {
  font: 500 30px var(--serif);
  color: var(--ink);
}
.coverage-total strong {
  margin-left: auto;
  color: var(--green);
}
.coverage-meter {
  display: block;
  width: 100%;
  height: 8px;
  border: none;
  appearance: none;
  border-radius: 8px;
  background: #e4ece4;
  margin: 6px 0 9px;
  overflow: hidden;
}
.coverage-meter::-webkit-progress-bar {
  background: #e4ece4;
  border-radius: 8px;
}
.coverage-meter::-webkit-progress-value {
  background: var(--green);
  border-radius: 8px;
}
.coverage-meter::-moz-progress-bar {
  background: var(--green);
}
.librarybar {
  grid-template-columns: 1fr;
}
.library-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.library-filters button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
}
.library-filters button[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.library-filters span {
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.fact-status {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #f0f2ed;
  color: var(--muted);
}
.fact-status.is-due {
  background: #fff1d8;
  color: #795011;
}
.fact-status.scheduled {
  background: #e6f2e9;
  color: #245f49;
}
.factheading {
  margin-bottom: 6px;
}
.factheading .topic {
  margin: 0;
}
.fact-review-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.strength {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 14px;
}
.strength-label {
  font-weight: 600;
}
.strength-track {
  display: inline-block;
  width: 7.6rem;
  height: 0.7rem;
  border: none;
  background: linear-gradient(
    to right,
    #347860 0 var(--fill),
    #dfe8e1 var(--fill) 100%
  );
  border-radius: 3px;
  overflow: hidden;
  mask-image: repeating-linear-gradient(
    90deg,
    #000 0 calc(20% - 2px),
    transparent calc(20% - 2px) 20%
  );
}
@media (forced-colors: active) {
  .strength-track {
    forced-color-adjust: none;
    background: linear-gradient(
      to right,
      Highlight 0 var(--fill),
      GrayText var(--fill) 100%
    );
  }
}
.strength small {
  color: var(--muted);
  font-size: 13px;
}
.strength-guide {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.strength-guide details {
  flex: 1;
  min-width: 170px;
}
.strength-guide summary {
  cursor: pointer;
  color: var(--green);
}
.strength-guide p {
  max-width: 56ch;
  margin-top: 8px;
  line-height: 1.5;
}
.strength-guide label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.strength-guide select {
  width: auto;
  min-height: 34px;
  padding-block: 6px;
}

#next-status:not(:empty) {
  display: block;
  padding: 0 23px 12px;
}
#next-status:empty {
  display: none;
}
