:root {
  color-scheme: light;
  --pine: #193d32;
  --forest: #235344;
  --leaf: #33725b;
  --ink: #1b3028;
  --muted: #53665b;
  --paper: #f4f6f0;
  --white: #fff;
  --line: #d6dfd5;
  --soft: #e6efe5;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: #102e25; }
:focus-visible { outline: 3px solid #a06f20; outline-offset: 4px; }
h1,h2,h3,p { margin: 0 0 .65em; }
h1,h2 { letter-spacing: -.025em; line-height: 1.13; }
h1 { font: 500 clamp(2.3rem, 5vw, 4.15rem)/1.06 var(--serif); max-width: 24ch; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
h2:not(:first-child) { margin-top: 1.8rem; }
small { color: var(--muted); font-size: .83rem; }
form { margin: 0; }
button,input,select,textarea { font: inherit; }
input:not([type="checkbox"],[type="radio"],[type="hidden"]),select,textarea {
  width: 100%; min-width: 0; display: block; margin-top: .35rem;
  padding: .65rem .75rem; border: 1px solid #a9b8ab; border-radius: .4rem;
  color: var(--ink); background: #fff;
}
input[type="radio"],input[type="checkbox"] { accent-color: var(--forest); }
textarea { resize: vertical; }
label { font-weight: 600; }
button,.button {
  display: inline-flex; gap: .8rem; align-items: center; border: 1px solid var(--forest);
  border-radius: .4rem; padding: .62rem 1rem; color: #fff; background: var(--forest);
  font-weight: 650; text-decoration: none; cursor: pointer; min-height: 44px;
}
button:hover,.button:hover { background: var(--pine); color: #fff; }
.button.light { background: #f3f8eb; color: var(--pine); border-color: #f3f8eb; }
.button.light:hover { background: #dcecd7; }
.button.quiet,button.quiet { background: transparent; color: var(--forest); border-color: var(--line); padding: .35rem .65rem; }
.skip { position: absolute; z-index: 10; left: 1rem; top: -4rem; background: white; padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner,.container,.footer div { max-width: 1240px; margin: 0 auto; padding-inline: clamp(1rem,4vw,3rem); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: .9rem; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.top nav a,.tabs a { padding: .45rem .7rem; border-radius: .35rem; text-decoration: none; font-weight: 600; }
.top nav a[aria-current],.tabs a[aria-current] { background: var(--soft); color: var(--pine); }
.brand { text-decoration: none; color: var(--pine); display: flex; align-items: center; gap: .7rem; }
.brand strong { display: block; font-size: .84rem; color: var(--muted); }
.brand-icon { display: inline-grid; place-items: center; background: var(--pine); color: #fff; border-radius: 50%; width: 40px; aspect-ratio: 1; font: 600 .9rem var(--serif); }
.brand-icon.large { width: 64px; font-size: 1.3rem; margin-bottom: 1.25rem; }
.identity { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: .9rem; }
.container { min-height: calc(100vh - 145px); padding-block: clamp(1.6rem,4vw,3rem); }
.footer { border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); }
.footer div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.hero {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 2rem;
  color: #f8faf2; background: linear-gradient(122deg, #16382d, #2c5a48);
  border-radius: .75rem; padding: clamp(1.5rem,5vw,3.2rem); margin-bottom: 2rem;
}
.hero h1 { margin-bottom: .4em; }
.hero p { max-width: 52ch; color: #e2efdf; margin-bottom: 1.3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats div { min-width: 9rem; padding: .8rem 1rem; border: 1px solid #8fac9b; border-radius: .5rem; }
.hero-stats strong { display: block; font: 500 2.25rem/1.2 var(--serif); }
.hero-stats span { color: #e2efdf; font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: .95rem; }
.stack { display: grid; gap: .8rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: baseline; margin: 1.6rem 0 .75rem; }
.section-heading h2 { margin: 0; }
.card,.row-card,.table-wrap { border: 1px solid var(--line); background: var(--white); border-radius: .55rem; }
.card { padding: clamp(.9rem,3vw,1.45rem); margin-block: .8rem; }
.grid .card,.stack .card { margin-block: 0; }
.card-link { display: block; text-decoration: none; color: var(--ink); }
.card-link:hover,.row-card:hover { border-color: #7e9e8c; background: #fbfdf9; }
.card-link h2 { margin: .45rem 0; font-size: 1.12rem; }
.card p:last-child,.card-link p { margin-bottom: 0; }
.card-link p,.muted { color: var(--muted); }
.row-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .8rem; padding: .85rem 1.1rem; text-decoration: none; color: var(--ink); }
.row-card strong,.row-card small { display: block; }
.row-card small { margin-bottom: .15rem; }
.status { white-space: nowrap; width: fit-content; padding: .23rem .5rem; border-radius: .25rem; background: #edf0ec; color: #354b40; font-size: .78rem; font-weight: 650; }
.status.passed { background: #dceedd; color: #21492c; }
.status.in_review { background: #f7eccf; color: #644d19; }
.status.awaiting_ack,.status.refresh_due { background: #f7eccf; color: #644d19; }
.status.needs_revision { background: #f7e4db; color: #793d2b; }
.status.in_progress { background: #deedf0; color: #265363; }
.metric { display: block; margin-bottom: .25rem; font: 500 2.4rem/1 var(--serif); color: var(--forest); }
.kicker { margin: 1rem 0 .4rem; color: var(--forest); font-size: .86rem; font-weight: 650; }
.intro { color: var(--muted); max-width: 67ch; }
.filters,.tabs,.pagination { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.tabs { margin-bottom: 1.3rem; }
.filters { margin: 1.25rem 0; }
.filters label { flex: 1 0 min(100%,210px); }
.pagination { margin: .85rem 0 1.5rem; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th,td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead { background: var(--soft); }
tr:last-child td { border-bottom: 0; }
.notice,.empty { padding: .85rem 1rem; border-radius: .45rem; background: #f7ecd4; color: #5e4519; margin: 1rem 0; }
.content-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1.2rem; }
.back { display: inline-block; margin-bottom: .6rem; }
.action { margin: 1.1rem 0; }
.asset-list,.criteria { margin: .6rem 0 0; padding-left: 1.35rem; overflow-wrap: anywhere; }
.asset-list li,.criteria li { margin: .4rem 0; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.attempt-form { margin-top: 1.3rem; }
.question { min-width: 0; }
.question legend { padding: 0 .4rem; font-weight: 700; color: var(--forest); }
.prompt { font-weight: 600; }
.options { display: grid; gap: .5rem; }
.options label,.match,.submission { padding: .7rem; border: 1px solid var(--line); border-radius: .4rem; }
.options label { display: flex; align-items: start; gap: .55rem; cursor: pointer; }
.options label:has(input:checked) { border-color: var(--leaf); background: var(--soft); }
.options input { margin-top: .38rem; }
.option-image,.question-image,.match img { display: block; max-width: min(100%,360px); max-height: 220px; object-fit: contain; margin: .5rem 0; }
.match { display: grid; grid-template-columns: minmax(0,135px) minmax(0,1fr); align-items: center; gap: .85rem; margin-block: .5rem; }
.match img { max-width: 100%; }
.marking-detail,.outcome { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.outcome p { margin: .6rem 0 0; }
summary { cursor: pointer; font-weight: 650; }
details.card > .stack { margin-top: .8rem; }
.decision { min-width: 0; border: 1px solid var(--line); padding: .7rem; margin: .85rem 0; border-radius: .4rem; }
.decision legend { font-weight: 650; padding-inline: .35rem; }
.decision label { display: inline-block; margin-right: 1rem; }
.login-layout { min-height: 70vh; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 2rem; }
.login-intro { padding: clamp(1.6rem,5vw,3.5rem); background: var(--soft); border-radius: .75rem; }
.login-intro p { max-width: 35ch; }
.login-form form { display: grid; gap: .55rem; }
.login-form button { margin-top: .7rem; width: fit-content; }
@media (max-width: 760px) {
  .hero,.content-grid,.login-layout { grid-template-columns: 1fr; }
  .identity { margin-left: 0; }
  .top-inner { gap: .6rem 1rem; }
}
@media (max-width: 450px) {
  .row-card { grid-template-columns: 1fr auto; }
  .row-card > span:last-child { display: none; }
  .match { grid-template-columns: 1fr; }
}
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.course-frame {
    display: block;
    width: 100%;
    height: clamp(460px, 76vh, 900px);
    min-height: 60vh;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: white;
}
