:root {
  --bg: #f5f7fb;
  --paper: #fff;
  --ink: #18243d;
  --muted: #58667e;
  --line: #dce3ee;
  --blue: #254fc3;
  --navy: #122440;
  --teal: #007563;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #dc9818;
  outline-offset: 4px;
}
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand span {
  color: #92b6ff;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
aside .eyebrow {
  color: #aebed4;
}
.side-sub {
  color: #b8c7dc;
  font-size: 14px;
  margin-top: 5px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  color: #d4dfee;
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 15px;
}
.nav a.active,
.nav a:hover {
  background: #2b4161;
  color: white;
}
.side-progress {
  margin-top: auto;
  font-size: 14px;
  color: #c3d0e2;
}
.bar {
  height: 7px;
  border-radius: 10px;
  background: #dce5f2;
  overflow: hidden;
  margin: 12px 0;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.2s;
}
aside .bar {
  background: #334861;
}
aside .bar i {
  background: #9fbdff;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
aside .small {
  color: #b8c7dc;
}
.main {
  max-width: 1190px;
  width: 100%;
  padding: 42px 48px 70px;
  margin: 0 auto;
}
h1 {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin: 7px 0 14px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
.intro {
  max-width: 720px;
  color: var(--muted);
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pill {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  white-space: nowrap;
}
.stats {
  display: flex;
  gap: 25px;
  margin: 23px 0 30px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.stats strong {
  font-size: 24px;
  display: block;
  line-height: 1.4;
}
.stats span {
  font-size: 14px;
  color: var(--muted);
}
.next {
  background: #e9efff;
  border: 1px solid #cbd8fa;
  border-left: 4px solid var(--blue);
  padding: 21px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.next h3 {
  margin: 4px 0;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.weeknav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}
.weekbtn {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 13px 14px;
  color: var(--muted);
}
.weekbtn strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}
.weekbtn.active {
  border-color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
  background: #f0f4ff;
}
.weekbtn small {
  font-size: 13px;
}
.weekheading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.weekheading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.task {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 11px;
  overflow: hidden;
}
.task-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
}
.task-head > input {
  width: 21px;
  height: 21px;
  flex: none;
  margin: 6px 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.task details {
  width: 100%;
  min-width: 0;
}
.task summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
.task summary::-webkit-details-marker {
  display: none;
}
.task-title {
  font-weight: 650;
}
.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.kind {
  color: var(--blue);
}
.duration {
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
}
.chevron {
  display: inline-block;
  font-size: 18px;
  margin-left: 14px;
}
.task details[open] .chevron {
  transform: rotate(90deg);
}
.task.done .task-title {
  color: #66756d;
  text-decoration: line-through;
}
.task.done {
  background: #f6fbf8;
  border-color: #cce1d5;
}
.task-body {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 16px;
}
.task-body p {
  max-width: 780px;
}
.finish {
  padding: 12px 14px;
  background: #f1f5fb;
  border-radius: 7px;
  font-size: 14px;
  margin-top: 16px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.links a {
  background: #f2f5fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  text-decoration: none;
}
.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.resource {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.resource a {
  font-weight: 650;
  text-decoration: none;
}
.resource p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}
.group {
  margin-bottom: 28px;
}
.panel {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}
.disclosure {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.disclosure > summary {
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
}
.disclosure[open] > summary {
  margin-bottom: 15px;
}
.disclosure li {
  margin-bottom: 8px;
}
.hint {
  border: 1px dashed #bdc7d8;
  background: #fafbfe;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
}
.hint summary {
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.hint p {
  font-size: 14px;
  margin: 12px 0 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 650;
  color: var(--muted);
  background: #f6f8fc;
}
.table-wrap {
  overflow: auto;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}
code {
  background: #edf1f8;
  padding: 2px 5px;
  border-radius: 4px;
}
pre {
  background: #14253d;
  color: #edf3ff;
  padding: 20px;
  border-radius: 8px;
  overflow: auto;
  line-height: 1.7;
}
textarea {
  width: 100%;
  border: 1px solid #bdc8da;
  border-radius: 7px;
  padding: 12px;
  min-height: 100px;
  resize: vertical;
  background: white;
  color: var(--ink);
}
label.field {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 15px 0 5px;
}
select {
  border: 1px solid #bdc8da;
  padding: 7px;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.prob {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.prob:last-child {
  border: 0;
}
.prob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.prob a {
  font-weight: 600;
  text-decoration: none;
}
.badge {
  font-size: 12px;
  color: var(--teal);
  margin-left: 7px;
}
.muted {
  color: var(--muted);
}
.hidden,
[hidden] {
  display: none !important;
}
.empty {
  padding: 30px;
  text-align: center;
}
.save-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
ul,
ol {
  padding-left: 24px;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: #edf2fc;
  font-size: 14px;
}
.section-intro {
  margin-bottom: 25px;
  color: var(--muted);
}
footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.checklist label {
  display: flex;
  gap: 11px;
  margin: 12px 0;
}
.checklist input {
  width: 18px;
  accent-color: var(--teal);
}
@media (max-width: 1000px) {
  .main {
    padding: 30px 25px;
  }
  .layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  aside {
    padding: 25px 15px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  aside {
    position: relative;
    height: auto;
    padding: 20px;
    gap: 15px;
  }
  .brand {
    font-size: 21px;
  }
  .side-sub,
  .side-progress {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .nav a {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 10px;
  }
  .main {
    padding: 25px 18px;
  }
  .topline {
    align-items: flex-start;
  }
  .pill {
    display: none;
  }
  h1 {
    font-size: 29px;
  }
  .weeknav {
    grid-template-columns: repeat(2, 1fr);
  }
  .next {
    align-items: flex-start;
    padding: 17px;
    flex-direction: column;
    gap: 10px;
  }
  .stats {
    gap: 24px;
  }
  .resource-list {
    grid-template-columns: 1fr;
  }
  .task-head {
    padding: 14px 12px;
  }
  .prob-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .weekheading {
    display: block;
  }
  .panel {
    padding: 17px;
  }
  .task summary {
    gap: 7px;
  }
  .chevron {
    margin-left: 6px;
  }
  td,
  th {
    padding: 9px;
  }
}
@media print {
  aside,
  .next,
  .weeknav,
  button,
  select,
  textarea {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .view {
    display: block !important;
  }
  .task,
  .panel,
  .disclosure {
    break-inside: avoid;
  }
  details > * {
    display: block !important;
  }
  body {
    background: white;
  }
  .week {
    display: block !important;
  }
}
.session-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.session-steps li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step-time {
  font-weight: 650;
  color: var(--blue);
  font-size: 14px;
  padding-top: 2px;
}
.session-steps p {
  font-size: 15px;
  color: var(--muted);
  margin: 5px 0 0;
}
.task-body a {
  overflow-wrap: anywhere;
}
@media (max-width: 500px) {
  .session-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.topic-meta {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.topic-card summary {
  line-height: 1.5;
}
input[type="email"],
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 11px;
  border: 1px solid #bdc8da;
  border-radius: 7px;
}
form {
  margin: 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.save-note {
  min-height: 20px;
}
.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.htmx-request button {
  opacity: 0.65;
}
.error {
  color: #9c263c;
}
.success {
  color: var(--teal);
}
.attempt {
  padding: 15px;
  border-left: 3px solid var(--line);
  margin: 12px 0;
}
.attempt pre {
  white-space: pre-wrap;
}
.login {
  max-width: 500px;
  margin: 10vh auto;
  padding: 25px;
}
.logout {
  padding: 10px 13px;
  color: #d4dfee;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.task-complete {
  padding-top: 4px;
}
.task-complete button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #718198;
  border-radius: 4px;
  background: white;
  color: var(--teal);
  font-weight: bold;
}
.stats {
  flex-wrap: wrap;
}
.weekbtn {
  text-decoration: none;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.site-notice {
  padding: 12px;
  border: 1px solid #e6c36e;
  border-radius: 7px;
  background: #fff8e7;
  margin: 16px 0;
}
.login input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
}
