/* Learn-to-cook paths (task 823.23): /learn and /learn/<slug>. Colors come from site.css (light and dark). Loaded on
   those pages only; the category-page band reuses site.css's .holiday-band. Classes start with "learn-". */
.learn-index [hidden], .learn-path [hidden] { display: none !important; }

/* progress bar (a <progress>; the text next to it says the same for screen readers) */
.learn-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 420px; height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--herb); overflow: hidden; margin: 4px 0 10px; }
.learn-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.learn-bar::-webkit-progress-value { background: var(--herb); border-radius: 999px; }
.learn-bar::-moz-progress-bar { background: var(--herb); border-radius: 999px; }

/* /learn */
.learn-cards { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.learn-card { display: flex; flex-direction: column; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.learn-card-h { font-size: 1.45rem; margin-bottom: .3em; }
.learn-card-h a { color: var(--ink); text-decoration: none; }
.learn-card-h a:hover { color: var(--link); text-decoration: underline; }
.learn-card-blurb { margin-bottom: .4em; }
.learn-mini { margin: 4px 0 12px; padding-left: 1.5em; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.learn-mini li { margin-bottom: 2px; }
.learn-card-count { margin: 0; }
.learn-card-go { margin: auto 0 0; padding-top: 6px; }
.learn-how-list { padding-left: 1.2em; max-width: 72ch; }
.learn-how-list li { margin-bottom: 8px; }

/* /learn/<slug> */
.learn-skills { max-width: 80ch; line-height: 1.7; }
.learn-progress, .learn-finish { max-width: 760px; margin: 0 0 18px; }
.learn-progress-h { font-size: 1.25rem; margin-bottom: .2em; }
.learn-count { margin: 0; font-size: 1.05rem; }
.learn-next { margin: 0 0 6px; font-weight: 600; }
.learn-where { margin: 0; }
.learn-merge { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--honey-soft); }
.learn-merge p { margin: 0 0 8px; }
.learn-merge-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-finish { border-left: 5px solid var(--herb); }
.learn-finish h2 { font-size: 1.35rem; }
.learn-finish p:last-child { margin-bottom: 0; }

.learn-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 860px; }
.learn-step { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); scroll-margin-top: 140px; }
.learn-step.is-next { border-left-color: var(--accent); }
.learn-step.is-done { border-left-color: var(--herb); }
.learn-step-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-bottom: 8px; }
.learn-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--honey-soft); color: var(--ink); font: 700 1.05rem var(--sans); }
.learn-step.is-done .learn-num { background: var(--herb); color: var(--bg); }
.learn-step-h { margin: 0 0 2px; font-size: 1.25rem; }
.learn-recipe { margin: 0; }
.learn-recipe a { font-weight: 600; }
.learn-badge { display: inline-flex; align-items: center; padding: .15em .7em; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--honey-soft); color: var(--ink); white-space: nowrap; }
.learn-step.is-done .learn-badge { background: var(--herb-soft); color: var(--herb); }
.learn-learn, .learn-note { margin: 0 0 6px; max-width: 75ch; }
.learn-tip { color: var(--muted); }
.learn-tip strong { color: var(--ink); }
.learn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.learn-actions form { margin: 0; }
.learn-toggle { background: transparent; color: var(--link); }
.learn-toggle[aria-pressed="true"] { background: var(--herb); border-color: var(--herb); color: var(--bg); }
.learn-check { display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-radius: 4px; line-height: .9; text-align: center; font-weight: 800; font-size: .95em; }
.learn-toggle[aria-pressed="true"] .learn-check::before, .learn-check.on::before { content: "✓"; }
.learn-done-on { display: inline-flex; align-items: center; gap: .4em; margin: 0; color: var(--herb); font-weight: 700; }
.learn-more-list { padding-left: 1.2em; }
.learn-more-list li { margin-bottom: 6px; }

@media (max-width: 560px) {
  .learn-step { padding: 14px 14px; }
  .learn-step-head { grid-template-columns: auto 1fr; }
  .learn-badge { grid-column: 2; justify-self: start; }
  .learn-num { width: 32px; height: 32px; font-size: .95rem; }
  .learn-cards { grid-template-columns: 1fr; }
}
@media print {
  .learn-actions, .learn-merge, .learn-bar { display: none !important; }
  .learn-step { box-shadow: none; break-inside: avoid; }
}
