@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-primary:        #fcfbf8;
  --bg-secondary:      #f5f2ee;
  --bg-card:           #fff;
  --bg-hover:          #efeee9;
  --bg-glass:          #fff;

  --accent-yellow:     #f59e0b;
  --accent-yellow-light: #765013;
  --accent-red:        #aa283a;
  --accent-green:      #21694a;
  --accent-blue:       #23517c;

  --text-primary:      #222628;
  --text-secondary:    #41494e;
  --text-muted:        #555e63;

  --border:            #e2e1db;
  --border-light:      #bbbdb8;
  --border-solid:      #ddded8;

  --code-bg:           #f1f2ef;
  --font-mono:         ui-monospace, Consolas, monospace;

  --sidebar-width:     238px;
  --header-height:     56px;
  --radius:            5px;

  --shadow-lg:  0 4px 16px rgba(32, 25, 39, 0.12);

  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Progress Bar
   ============================================================ */
#progress-bar {
  position: fixed;
  top: calc(var(--header-height) - 2px);
  left: 0;
  height: 2px;
  background: var(--accent-blue);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ============================================================
   Header and navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: stretch;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding-inline: 16px;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.site-mark {
  display: block;
  position: relative;
  overflow: hidden;
  width: 36px;
  height: 22px;
}

.site-mark img {
  position: absolute;
  width: 82px;
  height: auto;
  left: -23px;
  top: -23px;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links li { display: flex; margin: 0; }

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Search */
.search-wrapper { margin-left: auto; margin-right: 8px; }

.search-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 16px 7px 38px;
  border-radius: 20px;
  font-size: 0.84rem;
  outline: none;
  transition: var(--transition);
  width: 200px;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355527a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--accent-blue);
  background-color: rgba(46, 63, 79, 0.08);
  width: 250px;
  box-shadow: 0 0 0 3px rgba(46, 63, 79, 0.15);
}

.nav-hamburger,
.nav-github {
  align-self: center;
  min-height: 40px;
  padding-inline: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--accent-blue);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nav-hamburger { display: none; }

.nav-github {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-hamburger:hover, .nav-github:hover { background: var(--bg-hover); }

/* ============================================================
   Layout
   ============================================================ */
.layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: var(--header-height); bottom: 0; left: 0;
  overflow-y: auto;
  padding: 30px 18px;
  border-right: 1px solid var(--border-solid);
  background: var(--bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 2px; }

.toc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 10px;
}

.toc-list { list-style: none; }
.toc-list li { margin: 1px 0; }

.toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.toc-list a.active {
  color: var(--text-primary);
  border-left-color: var(--accent-blue);
  font-weight: 600;
}

.toc-list .toc-sub a {
  font-size: 0.8rem;
  padding-left: 22px;
  color: var(--text-muted);
}

.toc-list .toc-sub a:hover { color: var(--text-secondary); }
.toc-list .toc-sub a.active { color: var(--text-primary); }

.toc-divider {
  height: 1px;
  background: var(--border-solid);
  margin: 12px 8px;
}

/* ============================================================
   Main Content
   ============================================================ */
.content {
  flex: 1;
  min-width: 0;
  max-width: 1120px;
  margin-left: var(--sidebar-width);
  padding: 48px clamp(28px, 4vw, 64px);
  overflow-wrap: anywhere;
}

main[id], main [id] { scroll-margin-top: calc(var(--header-height) + 18px); }

/* ============================================================
   Typography
   ============================================================ */
h1 {
  font-size: 2.25rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

h2 {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-solid);
  scroll-margin-top: calc(var(--header-height) + 20px);
  position: relative;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 30px;
  margin-bottom: 10px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 22px;
  margin-bottom: 8px;
}

p {
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.78;
}

main > p, .curriculum-module > p { max-width: 75ch; }

a { color: var(--accent-blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 300;
  transform: translateY(-150%);
  padding: 8px 14px;
  background: var(--bg-card);
}

.skip-link:focus { transform: none; }

/* ============================================================
   Lists
   ============================================================ */
ul, ol { padding-left: 26px; margin-bottom: 16px; }
ul li, ol li { margin-bottom: 9px; line-height: 1.7; color: var(--text-primary); }
ul li::marker { color: var(--accent-blue); }
ol li::marker { color: var(--accent-blue); font-weight: 700; }
ul li ul, ol li ol, ul li ol, ol li ul { margin-top: 8px; margin-bottom: 4px; }

/* ============================================================
   Inline Code
   ============================================================ */
code:not(.hljs):not([class*="language-"]) {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--code-bg);
  padding: 1px 3px;
}

/* ============================================================
   Code Blocks
   ============================================================ */
.code-block {
  margin: 22px 0;
  border: 1px solid var(--border-solid);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-solid);
}

.code-lang {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent-blue);
  padding: 3px 9px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--bg-hover);
}

.copy-btn.copied {
  color: var(--accent-green);
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.1);
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 63, 79, 0.3) transparent;
}

.code-block pre::-webkit-scrollbar { height: 4px; }
.code-block pre::-webkit-scrollbar-track { background: transparent; }
.code-block pre::-webkit-scrollbar-thumb { background: rgba(46, 63, 79, 0.3); border-radius: 2px; }

.code-block pre code {
  font-family: var(--font-mono);
  font-size: 0.87rem;
  line-height: 1.65;
  padding: 14px 16px;
  display: block;
  background: var(--code-bg);
  color: var(--text-primary);
  overflow-wrap: normal;
}

.hljs-comment { color: #505e54; }
.hljs-keyword, .hljs-literal { color: #254977; font-weight: 600; }
.hljs-string, .hljs-number { color: #754423; }
.hljs-title, .hljs-type, .hljs-built_in { color: #265b45; }

/* ============================================================
   Tables
   ============================================================ */
.table-container {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border-solid);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

thead { background: var(--bg-secondary); }

thead th {
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-solid);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border-solid); }

tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 11px 18px;
  vertical-align: top;
  line-height: 1.55;
}

/* ============================================================
   Callout Boxes
   ============================================================ */
.callout {
  padding: 6px 0 6px 14px;
  margin: 18px 0;
  border-left: 2px solid var(--border-light);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.callout-icon { flex-shrink: 0; }
.callout-content { flex: 1; min-width: 0; }
.callout-content p { margin-bottom: 0; }
.callout-content p + p { margin-top: 8px; }

.callout.warning { border-color: var(--accent-yellow-light); }
.callout.warning .callout-icon { color: var(--accent-yellow-light); }
.callout.info, .callout.success { display: block; padding: 0; border: 0; }
.callout.info .callout-icon, .callout.success .callout-icon { display: none; }
.callout.danger { border-color: var(--accent-red); }
.callout.danger .callout-icon { color: var(--accent-red); }

.steps > li { padding-left: 4px; margin-bottom: 14px; }

/* ============================================================
   Tab System
   ============================================================ */
.tabs { margin: 26px 0; }

.tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-solid);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-buttons::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.tab-content { display: none; padding-top: 24px; animation: fadeIn 0.2s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Interactive Checklist
   ============================================================ */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.checklist-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-solid);
  border-radius: 3px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

.checklist-progress-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.checklist { list-style: none; padding: 0; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 3px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.checklist li:hover {
  background: rgba(46, 63, 79, 0.06);
  border-color: rgba(46, 63, 79, 0.15);
}

.checklist li.done .check-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.check-box {
  width: 20px; height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.7rem;
  font-weight: 800;
  color: transparent;
}

.checklist li.done .check-box {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.checklist li.done .check-box::after { content: '\2713'; }

.check-text { flex: 1; font-size: 0.9rem; line-height: 1.55; }

/* ============================================================
   Curriculum
   ============================================================ */
.curriculum-module {
  margin: 48px 0;
}

.curriculum-module h2 { margin-top: 0; }
.curriculum-module h3 { margin-top: 24px; }

.module-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.worksheet-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ============================================================
   PID Visualizer
   ============================================================ */
.pid-visualizer {
  border-block: 1px solid var(--border-solid);
  padding: 20px 0;
  margin: 26px 0;
}

.pid-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.pid-control { display: flex; flex-direction: column; gap: 8px; }

.pid-input-row { display: flex; align-items: center; gap: 10px; }
.pid-input-row input[type="range"] { flex: 1; min-width: 0; }

.pid-num-input {
  width: 64px;
  flex-shrink: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 4px 6px;
  text-align: center;
}
.pid-num-input:focus { border-color: var(--accent-blue); }
.pid-num-input::-webkit-inner-spin-button,
.pid-num-input::-webkit-outer-spin-button { opacity: 0.5; }

.pid-control label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.03em;
}

.pid-control label span {
  color: var(--accent-yellow-light);
  font-family: var(--font-mono);
  font-weight: 600;
}

.pid-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

#pid-canvas {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border-solid);
  background: var(--bg-card);
  display: block;
}

.pid-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 14px;
}

.pid-btn:hover { background: #173a58; }

/* ============================================================
   Page Hero
   ============================================================ */
.page-hero {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--border-solid);
  margin-bottom: 8px;
}

.page-hero h1 { margin-bottom: 14px; }
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 0;
  line-height: 1.75;
}

.page-hero .page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ============================================================
   Page Footer / Nav
   ============================================================ */
.page-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-solid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-nav { display: flex; gap: 12px; }

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.footer-nav-link:hover {
  border-color: rgba(46, 63, 79, 0.4);
  color: var(--text-primary);
  background: rgba(46, 63, 79, 0.08);
  text-decoration: none;
  transform: translateX(-2px);
}

.footer-nav-link.next:hover { transform: translateX(2px); }

.footer-nav-link.next {
  background: rgba(46, 63, 79, 0.12);
  border-color: rgba(46, 63, 79, 0.3);
  color: var(--accent-blue);
}

.back-to-top {
  background: none;
  border: 1px solid var(--border-solid);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.04em;
}

.back-to-top:hover {
  color: var(--accent-blue);
  border-color: rgba(46, 63, 79, 0.4);
  background: rgba(46, 63, 79, 0.08);
}

.reference-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.reference-comparison h3 { margin-top: 0; }

/* ============================================================
   Utility
   ============================================================ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-muted  { color: var(--text-muted); }
.text-yellow { color: var(--accent-yellow-light); }
.text-green  { color: var(--accent-green); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .content { padding: 36px 32px; }
}

@media (max-width: 800px) {
  .nav-inner { padding-inline: 12px; gap: 8px; }
  .nav-links a { padding-inline: 7px; }
  .nav-hamburger, .nav-github { padding-inline: 7px; }
  .nav-hamburger:not([hidden]) { display: block; }

  .sidebar {
    display: none;
    z-index: 150;
    width: min(var(--sidebar-width), 85vw);
  }
  .sidebar.open { display: block; box-shadow: var(--shadow-lg); }

  .content { margin-left: 0; padding: 28px 22px; }
  .search-wrapper { display: none; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; margin-top: 40px; }

  .pid-controls { grid-template-columns: 1fr; }
  .reference-comparison { grid-template-columns: minmax(0, 1fr); }

  .page-footer {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-inner:has(.nav-hamburger:not([hidden])) .nav-brand { display: none; }
}

@media (max-width: 480px) {
  .content { padding: 22px 16px; }
  .pid-visualizer { padding-block: 16px; }
  .code-block pre code { font-size: 0.8rem; padding: 14px 16px !important; }
}

@media (max-width: 400px) {
  .nav-inner { padding-inline: 8px; gap: 4px; }
  .nav-links a { padding-inline: 3px; font-size: 0.8125rem; }
  .nav-hamburger, .nav-github { padding-inline: 4px; font-size: 0.8125rem; }
}

@media (max-width: 360px) {
  .nav-brand { display: none; }
}

/* ============================================================
   Setup Page Screenshots
   ============================================================ */
.setup-img {
  display: block;
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--border-solid);
  margin: 14px 0 4px;
}

/* Start page */
.home-content {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(180px, 1fr);
  align-items: start;
  gap: 30px clamp(28px, 6vw, 76px);
  max-width: 1024px;
  margin: var(--header-height) auto 0;
  padding: 42px 28px 48px;
  overflow-wrap: anywhere;
}

.home-reading h1 { font-size: clamp(1.95rem, 4.5vw, 2.35rem); text-wrap: balance; }
.home-intro { max-width: 58ch; color: var(--text-secondary); }

.home-paths { margin-top: 28px; }

.home-paths h2, .home-about h2, .home-resources h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.home-choices { list-style: none; padding: 0; margin: 0; }
.home-choices li { border-top: 1px solid var(--border-solid); padding: 12px 0; margin: 0; }
.home-choices li:last-child { border-bottom: 1px solid var(--border-solid); }
.home-choices a { font-weight: 700; }
.home-choices p, .guide-list p { margin: 2px 0 0; color: var(--text-secondary); }

.home-resources { border-left: 1px solid var(--border-solid); padding-left: 20px; }
.home-resources .resource-links { display: block; margin: 0; }
.home-resources li:last-child { margin-bottom: 0; }
.home-about p { max-width: 63ch; color: var(--text-secondary); margin-bottom: 0; }

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  padding: 0;
}

.resource-links span { margin-left: 3px; color: var(--text-muted); font-size: 0.85rem; }

/* Exercises and follow-along steps */
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--border-solid); }
.guide-list a { font-weight: 700; }

.course-steps { padding: 0; list-style: none; }
.course-steps > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  align-items: start;
  gap: 20px;
  border-bottom: 1px solid var(--border-solid);
  padding: 18px 0;
  margin: 0;
}

.course-steps h4 {
  margin: 0 0 6px;
  font-size: 1.03rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
}

.course-steps p { margin-bottom: 10px; }
.course-steps img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-solid); }
.course-steps .code-block { margin: 0; }

.course-steps label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.course-steps input { accent-color: var(--accent-blue); inline-size: 1rem; block-size: 1rem; flex-shrink: 0; }
.lesson-next { margin-top: 18px; }

.answer {
  margin: 12px 0 20px;
  padding: 6px 0;
  border-top: 1px solid var(--border-solid);
}

.answer summary { color: var(--accent-blue); font-weight: 700; padding: 4px 0; cursor: pointer; }
.answer p { margin: 8px 0 4px; }

@media (max-width: 680px) {
  .home-content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 16px 40px; }
  .home-resources { border-left: 0; padding-left: 0; }
  .course-steps > li { grid-template-columns: minmax(0, 1fr); }
}

/* Screen-reader-only text remains available to assistive technology. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
