:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: 42px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.notice {
  display: inline-block;
  margin: 1em 0;
  padding: 0.8em 1em;
  background: #cfe8ff;
  color: #0f4d8b;
  border: 1px solid #3d82c7;
  border-radius: 8px;
  /* font-size: 14px; */
}

.notice--caution {
  border-color: #ff6600;
  background-color: #ff660022;
  color: #ff6600;
}

.code-block {
  padding:10px;
  border:1px solid #ccc;
  border-radius:5px;
  font-size: 87.5%;
  word-wrap: break-word;
  background: #f5f5f5;
  color: #e83e8c;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.resource-list {
  padding-left: 18px;
}

.resource-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.resource-list a:hover {
  text-decoration: underline;
}

.course-search {
  width: 100%;
  padding: 12px;
  margin-bottom: 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.video-section {
  margin-bottom: 40px;
}

.video-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.video-card h3 {
  margin: 0 0 0.1em;
}

.video-meta {
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 0.7em;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1.2em;
}

.button {
  display: inline-block;
  color: white;
  background: var(--primary);
  padding: 0.6em 1em 0.5em;
  border: 1px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
  cursor: pointer;
}

.button:hover {
  opacity: 0.9;
}


/* "Mark as complete" styling */

.completed::after {
  content: "";
  display: inline-block;
  position: relative;
  top: -2px;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  background-image: url(/check.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.button--complete {
  border-color: var(--muted);
  background: var(--muted);
  /* font-size: 13px; */
}

.button--complete:hover {
  /* background: #f3f4f6; */
}

.complete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #374151;
}

/* Hide default checkbox */
.complete-toggle input {
  display: none;
}

/* Switch background */
.slider {
  position: relative;
  width: 42px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.2s;
}

/* Knob */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Checked state */
.complete-toggle input:checked + .slider {
  background: #22c55e;
}

.complete-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13px;
  color: #6b7280;
}

.footer {
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.footer small {
  font-size: 1em;
}


/* Table of contents */

#toc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.toc-section:not(:last-child) {
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.toc-section summary {
  cursor: pointer;
  font-size: 15px;
  padding: 6px 0;
}

.toc-section ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.toc-section li {
  margin-bottom: 6px;
}

.toc-section a {
  text-decoration: none;
  color: #2563eb;
  font-size: 14px;
}

.toc-section a:hover {
  text-decoration: underline;
}


/* Download list */

/* Container styling */
.download-list {
  /* max-width: 600px; */
  /* padding: 0; */
  list-style: none;
  padding: 16px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

/* Individual list items */
.download-list__item:not(:last-child) {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Clickable title */
.download-list__link {
  display: inline-block;
  /* font-weight: 600; */
  color: #0066cc;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.download-list__link:hover {
  text-decoration: underline;
  color: #004499;
}

/* Description text */
.download-list__description {
  margin: 0;
  font-size: 0.9em;
  color: #555;
  line-height: 1.4;
}
