:root {
  --ink: #35473f;
  --muted: #647068;
  --bg: #faf9f6;
  --sage: #e8eedf;
  --lavender: #ede7f3;
  --line: #d9ddd3;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button:disabled {
  opacity: 1 !important;
  color: #68716c !important;
  background: #e3e4e0 !important;
  border-color: #d2d5cd !important;
  cursor: not-allowed;
  box-shadow: none !important;
}
a.primary,
a.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.primary {
  background: #526a5d;
  color: #fff;
  border: 1px solid #526a5d;
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 23px;
  box-shadow: 0 5px 12px #33453712;
}
.primary:hover {
  background: #405b4d;
}
.outline {
  background: #ffffff6b;
  border: 1px solid #9ba99e;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 18px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8b72aa;
  outline-offset: 3px;
}
h1:focus {
  outline: none;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.2rem;
}
.small {
  font-size: 0.875rem;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.brand small {
  font-size: 0.75rem;
}
.workspace {
  max-width: 1180px;
  padding-top: 42px;
  padding-bottom: 80px;
}
.breadcrumb {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-underline-offset: 4px;
}
.access-note {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid #b5a1c7;
  background: #eeebf1;
}
.access-note small {
  display: block;
  font-size: 0.875rem;
}
.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.program {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #cfd7c5;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}
.program h2,
.program h3 {
  font-family: Prata, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.35;
}
.program p {
  flex: 1;
}
.sage {
  background: var(--sage);
}
.muted {
  background: #eeedea;
  border-color: #dbdcd6;
  color: #6a706c;
}
.pill {
  display: inline-block;
  border: 1px solid #b6c2ad;
  border-radius: 30px;
  font-size: 0.875rem;
  padding: 4px 12px;
}
.block-card {
  margin: 30px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-row > div {
  flex: 1;
}
.lesson-number {
  color: #78866d;
  font-size: 1rem;
  min-width: 28px;
}
.block-test {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--lavender);
  margin-top: 20px;
  padding: 22px;
  border-radius: 10px;
}
.lesson-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
}
.lesson-nav {
  height: fit-content;
  border-radius: 12px;
}
.lesson-nav details {
  margin-top: 24px;
}
.lesson-nav summary {
  cursor: pointer;
  font-size: 1rem;
}
.lesson-copy {
  margin: 30px 0;
}
.lesson-copy p {
  margin: 0 0 20px;
}
.video-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: #e8e6ed;
  border: 1px solid #d9d0e2;
  border-radius: 12px;
  margin-top: 24px;
  overflow: hidden;
}
.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 6px;
  background: #0008;
  color: white;
  font-size: 0.75rem;
  pointer-events: none;
}
.pre-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assignment {
  border-radius: 12px;
  padding: 26px;
}
.assignment h2 {
  font-size: 1.8rem;
}
.review-note {
  padding: 16px;
  border-left: 3px solid #9681aa;
  background: #f1eaf5;
  margin: 20px 0;
}
.field {
  margin: 20px 0;
}
.field input,
.field textarea,
.field select,
select {
  border: 1px solid #b5c0b4;
  border-radius: 7px;
  background: #fff;
  min-height: 48px;
  padding: 12px;
  color: #33473b;
  max-width: 100%;
  width: 100%;
}
.field input[type="file"] {
  font-size: 0.875rem;
}
.form-error {
  color: #993c35;
  background: #f8e9e5;
  padding: 10px 14px;
  border-radius: 6px;
}
.form-error:empty {
  display: none;
}
.test-page {
  max-width: 850px;
}
.question {
  border: 0;
  margin: 34px 0;
  padding: 0;
}
.question legend {
  font-weight: 600;
  margin-bottom: 15px;
}
.choice {
  background: #fff;
  border-radius: 7px;
  gap: 12px;
}
.choice input {
  accent-color: #526a5d;
}
.feedback {
  border-radius: 8px;
}
.login {
  max-width: 520px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #314b3b;
  color: white;
  padding: 14px 24px;
  z-index: 30;
  border-radius: 10px;
  max-width: 90vw;
}
dialog {
  border-radius: 16px;
  max-width: min(740px, 94vw);
  max-height: 90vh;
}
dialog h2 {
  padding-right: 20px;
  margin-bottom: 22px;
}
.admin-tabs {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin: 30px 0;
  padding-bottom: 12px;
}
.admin-tabs a {
  white-space: nowrap;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 7px;
  background: #e9ece4;
}
.admin-tabs a.active {
  background: #526a5d;
  color: white;
}
.editor {
  background: white;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 24px 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.editor-grid .wide {
  grid-column: 1/-1;
}
.admin-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row .actions {
  gap: 10px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: #526a5d;
}
.chip {
  font-size: 0.875rem;
  background: #ece6f0;
  border-radius: 5px;
  padding: 4px 9px;
}
.quiz-editor {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.invite-link {
  width: 100%;
  font-size: 0.875rem;
  word-break: break-all;
}
.table-wrap {
  overflow: auto;
}
.table-wrap td {
  min-width: 140px;
  font-size: 0.9rem;
}
header {
  height: auto;
  min-height: 104px;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
header nav {
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
header .login-link {
  white-space: nowrap;
}
.help-text {
  color: var(--muted);
  font-size: 0.875rem;
}
.status-empty {
  padding: 30px;
  background: #eeecef;
  border-radius: 10px;
}
.hero-picture img {
  object-fit: cover;
}
.platform-intro {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38rem;
  margin-bottom: 28px;
  color: var(--muted);
}
.landing-hero {
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.landing-hero > div { min-width: 0; }
.promo-player {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #cbd5c6;
  box-shadow: 0 18px 44px #35473f0e;
}
.promo-cover {
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: linear-gradient(135deg, #e8eedf, #e7e0ed);
  padding: 24px;
}
.promo-wordmark { font: 2.3rem Prata, Georgia, serif; }
.promo-play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid #526a5d;
  border-radius: 50%;
  background: #526a5d;
  color: #fff;
  box-shadow: 0 8px 20px #35473f20;
}
.promo-play:hover { background: #405b4d; }
.promo-play svg { display: block; }
.promo-caption { text-align: center; font-size: 0.9rem; }
.promo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 22px;
  background: #f4f5ef;
}
.landing-catalog .program { gap: 18px; }
.landing-catalog .program h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.landing-catalog .program-lead { flex: none; margin: 0; }
.program-topics { margin: 0 0 20px; padding-left: 22px; }
.program-topics li { padding-left: 4px; margin: 6px 0; }
.landing-catalog .program-topics { flex: 1; }
.landing-catalog .outline { background: #faf9f6; color: var(--ink); }
.landing-catalog .outline:hover { background: #fff; border-color: #526a5d; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}
footer {
  gap: 16px;
}
progress {
  accent-color: #526a5d;
  width: 100%;
  height: 6px;
}
@media (max-width: 720px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  .program {
    padding: 26px;
  }
  .workspace {
    padding-left: 20px;
    padding-right: 20px;
  }
  .block-card {
    padding: 20px;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .lesson-layout {
    display: flex;
    flex-direction: column;
  }
  .lesson-main {
    width: 100%;
    order: 0;
  }
  .lesson-nav {
    width: 100%;
    order: 1;
  }
  .lesson-row {
    gap: 12px;
  }
  .lesson-row .outline {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
  .block-test {
    flex-direction: column;
    align-items: stretch;
  }
  .block-test .primary,
  .block-test .outline {
    width: 100%;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-picture {
    max-height: 360px;
  }
  .hero-picture img {
    height: 360px;
  }
  .hero-copy {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .assignment {
    padding: 20px;
  }
  .admin-tabs {
    margin: 20px 0;
  }
  header {
    min-height: 83px;
    padding: 20px;
  }
  .brand small {
    display: none;
  }
  header nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.95rem;
  }
  header > .outline {
    margin-left: auto;
  }
  .login {
    padding: 35px 20px;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .lesson-row p {
    font-size: 0.875rem;
  }
  footer {
    flex-wrap: wrap;
    padding: 24px;
  }
  .cert-sheet {
    padding: 10px;
  }
}
@media print {
  body > header,
  body > main,
  body > footer,
  #notice,
  dialog > .close,
  #print {
    display: none !important;
  }
  dialog {
    display: block;
    position: static;
    border: 0;
    max-width: none;
    max-height: none;
    width: 100%;
  }
  dialog::backdrop {
    background: white;
  }
  .cert-sheet {
    border: 2px solid #526a5d;
    padding: 50px;
  }
}
.intro-panel {
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 26px 32px;
  background: #e7e3ee;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.intro-panel svg {
  flex: none;
}
.intro-panel h2 {
  font-size: 1.6rem;
}
.intro-panel p {
  margin-top: 6px;
}
header nav {
  display: flex;
}
@media (max-width: 720px) {
  .intro-panel {
    margin: 0 20px 32px;
    padding: 22px;
  }
  .intro-panel h2 {
    font-size: 1.4rem;
  }
}
