:root {
  color-scheme: light;
  --paper: #f6f6ef;
  --ink: #143c35;
  --strong: #00443c;
  --muted: #546d64;
  --line: #d6e0d3;
  --sage: #eaf0e4;
  --lime: #dceaa8;
  --white: #fff;
  --radius: 14px;
  font:
    16px/1.6 "Segoe UI",
    system-ui,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 650;
  max-width: 16ch;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 650;
}
h3 {
  font-size: 1.18rem;
  font-weight: 650;
}
p + a,
p + p {
  margin-top: 12px;
}
a {
  color: var(--strong);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #617e34;
  outline-offset: 3px;
}
.wrap {
  width: min(1320px, calc(100% - 96px));
  margin: auto;
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.topnav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  flex-wrap: wrap;
}
.topnav a {
  font-size: 0.88rem;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.topnav a[aria-current],
.topnav a:hover {
  border-bottom-color: #97ad91;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: white;
  padding: 8px;
  z-index: 5;
}
.skip:focus {
  top: 1rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--sage);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 650;
}
.pill.ok {
  background: var(--lime);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.63rem 1.08rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  background: var(--white);
  min-height: 42px;
}
.btn:hover:not(:disabled) {
  border-color: #829e87;
}
.btn.primary {
  color: white;
  background: var(--strong);
  border-color: var(--strong);
}
.btn.primary:hover:not(:disabled) {
  background: #0e5549;
}
.btn[aria-pressed="true"] {
  background: var(--sage);
  border-color: #80a18c;
}
.intro {
  padding: 52px 0 32px;
  display: grid;
  gap: 16px;
}
.intro > p:not(.kicker) {
  max-width: 66ch;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pad {
  padding: clamp(18px, 3vw, 34px);
}
.stack {
  display: grid;
  align-content: start;
  gap: 16px;
}
.section {
  margin: 24px 0 48px;
}
.section > h2 {
  margin-bottom: 16px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  margin-top: 50px;
  color: var(--muted);
  font-size: 0.82rem;
}
.notice {
  padding: 13px 16px;
  background: var(--sage);
  border-left: 3px solid #aec28c;
  border-radius: 4px;
  color: var(--ink);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.field {
  display: grid;
  gap: 5px;
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #a8bdad;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 400;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
progress {
  display: block;
  width: 100%;
  height: 12px;
  accent-color: var(--strong);
}
[hidden] {
  display: none !important;
}
.hub-feature {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.hub-feature .pad {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 15px;
  min-height: 230px;
}
.hub-index {
  background: var(--sage);
  border-left: 1px solid var(--line);
}
.hub-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  counter-reset: capsule;
}
.hub-index li {
  counter-increment: capsule;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.hub-index li::before {
  content: counter(capsule, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--muted);
}
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.services article {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.services article a {
  align-self: end;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast .wrap {
    gap: 6px;
    flex-wrap: wrap;
    padding: 9px 0;
  }
  .topnav {
    gap: 14px;
  }
  .topnav a {
    padding: 6px 0;
  }
  .intro {
    padding: 32px 0 24px;
  }
  .hub-feature,
  .services {
    grid-template-columns: 1fr;
  }
  .hub-index {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hub-feature .pad {
    min-height: 0;
  }
}

.learning {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2.5fr);
  align-items: start;
  gap: 18px;
}
.toc {
  overflow: hidden;
  background: #eff2e9;
}
.toc-head {
  padding: 18px 18px 12px;
}
.toc details {
  padding: 0 12px;
  border-top: 1px solid var(--line);
}
.toc summary {
  padding: 11px 5px;
  font-weight: 650;
  cursor: pointer;
}
.toc ol {
  display: grid;
  gap: 3px;
  padding: 0 0 12px;
  list-style: none;
  margin: 0;
}
.toc a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.9rem;
}
.toc a[aria-current="page"] {
  background: var(--white);
  box-shadow: inset 3px 0 #2d6754;
  font-weight: 650;
}
.toc a:hover {
  background: var(--white);
}
.toc .muted {
  padding: 0 5px 10px;
}
.lesson {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.lesson-head {
  display: grid;
  gap: 8px;
}
.lesson-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
}
.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0;
  list-style: none;
}
.step-list a {
  display: block;
  text-decoration: none;
  padding: 6px 12px;
  border-bottom: 3px solid transparent;
  font-size: 0.89rem;
}
.step-list a[aria-current="step"] {
  font-weight: 650;
  border-color: #7c9c39;
}
.lesson ul {
  margin: 0;
  padding-left: 23px;
}
.lesson ul li + li {
  margin-top: 5px;
}
.module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
.rows {
  display: grid;
  gap: 0;
}
.rows > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  background: var(--sage);
  border-radius: 9px;
  padding: 12px;
}
.metric strong {
  display: block;
  font-size: 1.6rem;
}
.admin-form {
  display: grid;
  gap: 13px;
}
.admin-form .actions {
  margin-top: 5px;
}
audio {
  width: 100%;
  max-width: 400px;
}
.error {
  color: #882f20;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.checkline input {
  accent-color: var(--strong);
}
.feedback:empty {
  display: none;
}
@media (max-width: 760px) {
  .learning,
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-card {
    grid-template-columns: 1fr;
  }
  .module-card .btn {
    justify-self: start;
  }
  .step-list a {
    padding-inline: 8px;
  }
  .toc {
    order: 2;
  }
}
