:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5d6878;
  --line: #d9dee7;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #006b7f;
  --accent-strong: #004f5e;
  --accent-soft: #e4f5f7;
  --warn: #9a5a00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1rem, 5vw, 4rem) 2.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1;
}

.intro {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.course-link,
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.course-link,
.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.course-link:hover,
.button.primary:hover {
  background: var(--accent-strong);
}

main {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.toolbar a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  background: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.toolbar a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.td-list {
  display: grid;
  gap: 1rem;
}

.td-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
  background: var(--panel);
}

.number {
  width: fit-content;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.td-main p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.button {
  color: var(--accent-strong);
  background: #ffffff;
}

.button:hover {
  background: var(--accent-soft);
}

.missing {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: var(--muted);
  background: #f3f5f8;
  font-weight: 700;
}

footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (max-width: 720px) {
  .site-header {
    display: block;
    padding-top: 2rem;
  }

  .course-link {
    margin-top: 1.25rem;
  }

  .td-card {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: flex-start;
  }

  .button,
  .course-link {
    width: 100%;
  }
}
