* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172e2a; background: #f1f3ef; }
body { margin: 0; line-height: 1.55; }
header { background: #fbfcfa; color: #172e2a; border-bottom: 1px solid #d3dfd5; }
nav { max-width: 65rem; margin: auto; min-height: 4.5rem; padding: .6rem 1.2rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: #244f3d; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 650; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; overflow: hidden; border-radius: 50%; background: white; flex: none; }
.brand-mark img { display: block; width: 100%; height: 100%; transform: scale(1.72); }
.brand-name { color: #192f28; line-height: 1.2; }
.brand-name strong { display: block; color: #176646; }
.nav-actions { display: flex; gap: .7rem 1.25rem; align-items: center; flex-wrap: wrap; }
main { max-width: 65rem; padding: 2rem 1.2rem 4rem; margin: auto; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; }
h2 { margin: 0 0 .5rem; line-height: 1.2; }
a { color: #126348; text-underline-offset: .2em; }
article, main section:not(.grid), fieldset { background: white; border: 1px solid #d2e2da; padding: clamp(1rem, 4vw, 1.8rem); border-radius: .9rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.narrow { max-width: 35rem; margin: 1.5rem auto; }
.academy-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.academy-intro p { max-width: 60ch; margin: 0; color: #425b50; }
.academy-intro h1 { margin-bottom: .55rem; }
.courses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.course-card { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 0; }
.course-card h2 { overflow-wrap: anywhere; }
.course-card p { margin: 0 0 .6rem; }
.course-state { display: inline-block; padding: .2rem .55rem; margin: 0 0 .65rem; border-radius: .4rem; background: #f0ebdf; color: #594a30; font-size: .87rem; font-weight: 650; }
.course-state.published { color: #20553d; background: #e3efe6; }
.course-meta { color: #475d52; font-size: .9rem; }
.course-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .55rem; }
.preview-lessons details, .preview-title { padding-block: .7rem; margin: 0; border-bottom: 1px solid #d9e2db; }
.preview-lessons :is(details,.preview-title):last-child { border-bottom: 0; }
.preview-lessons summary { cursor: pointer; color: #204d38; font-weight: 650; }
.form-message { border-left: 3px solid #176646; background: #e7f1e9; padding: .7rem; }
.helptext { color: #475d52; font-size: .9rem; }
button, .button { display: inline-block; background: #176646; color: white; border: 1px solid #176646; border-radius: .45rem; padding: .65rem 1rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.quiet, .ghost { background: transparent; border-color: #8da99a; color: #244f3d; }
label { display: block; margin: .4rem 0; }
input:not([type=radio]):not([type=hidden]) { width: 100%; padding: .58rem; border: 1px solid #768b82; border-radius: .35rem; font: inherit; }
:focus-visible { outline: 3px solid #b36012; outline-offset: 3px; }
progress { width: 100%; height: 1.2rem; accent-color: #176646; }
li { margin: .35rem 0; }
.status { margin-left: .6rem; color: #305f50; font-size: .9rem; }
.errorlist { color: #982827; }
@media (max-width: 480px) {
  nav { gap: .65rem; }
  .nav-actions { font-size: .9rem; }
  main { padding-top: 1.4rem; }
}

