/* Shared presentation for the three introductory mini-courses. */
html { scroll-padding-top: 5rem; }
body { overflow-x: visible; }
[hidden] { display: none !important; }
h1, h2, h3, .label, .btn { letter-spacing: 0; }
.guide-header h1, .guide-section h2 { text-wrap: balance; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #1a5fe0; outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1100; background: white; padding: 1rem; }
.skip-link:focus { top: 1rem; }
.nav-c { position: sticky; top: 0; z-index: 1000; background: #fbf5e9; border-bottom: 1px solid #d5def0; }
.nav-c__inner { max-width: 1200px; margin: auto; padding: 0 24px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-c__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-c__logo img { width: 30px; height: 30px; object-fit: contain; }
.nav-c__logo-name { font: 700 18px 'Stardos Stencil', serif; text-transform: uppercase; }
.nav-c__links { display: flex; align-items: center; gap: 20px; }
.nav-c__links a, .nav-mobile-c a { font: 600 16px 'Archivo Narrow', sans-serif; text-transform: uppercase; }
.nav-c__links a:hover, .nav-mobile-c a:hover { color: #1a5fe0; }
.nav-c__cta { display: inline-block; background: #1a5fe0; color: white !important; padding: 10px 18px; border-radius: 24px; box-shadow: 0 3px 0 #0f3fa0; }
.nav-c__burger { display: none; border: 0; background: transparent; color: #1a1816; cursor: pointer; width: 44px; height: 44px; font-size: 26px; flex-shrink: 0; }
.nav-mobile-c { display: none; padding: 12px 24px; border-top: 1px solid #d5def0; }
.nav-mobile-c a { padding: 10px 0; display: block; }
.guide-page { padding: 3rem 0 4rem; }
.guide-container { max-width: 900px; margin: auto; padding: 0 32px; }
.guide-back { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--accent); margin-bottom: 2rem; }
.guide-header { padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.guide-header .label { margin-bottom: 1rem; }
.guide-header h1 { font-size: 44px; line-height: 1.12; margin-bottom: 1.25rem; max-width: 750px; }
.guide-header p { max-width: 70ch; font-size: 17px; }
.author-line { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; }
.author-avatar { background: var(--accent); color: white; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.author-info { font-size: 13px; color: var(--muted); }
.author-info strong { display: block; font-size: 14px; color: var(--text); }
.guide-toc { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.guide-toc ol { padding-left: 1.3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; font-size: 14px; }
.guide-toc a:hover { text-decoration: underline; }
.guide-section { padding: 0; margin: 0 0 3rem; }
.guide-section-head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.step-num { display: grid; place-items: center; background: var(--accent); color: white; width: 36px; height: 36px; flex-shrink: 0; font: 700 14px var(--font-head); }
.guide-section h2 { font-size: 24px; line-height: 1.3; }
.guide-section h3 { font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.guide-section p { font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.guide-section strong { color: var(--text); }
.guide-section a, .guide-cta p a, .sources a, .related a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-section ul { list-style: disc; padding-left: 1.3rem; margin: 1rem 0; color: var(--muted); }
.guide-section li { margin-bottom: 8px; }
.guide-section .lesson-source { font-size: 12px; margin-top: 1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.25rem 0; }
.info-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.info-card > .ph { font-size: 28px; color: var(--accent); display: block; margin-bottom: 12px; }
.info-card p { margin: 0; font-size: 14px; }
.highlight-box, .warning-box, .practice-box { padding: 18px 20px; margin: 1.25rem 0; border-left: 3px solid var(--accent); background: #eaf0fc; }
.warning-box { background: #fff4e3; border-color: #ba760d; }
.practice-box { background: #eaf5ef; border-color: #247449; }
.highlight-box p, .warning-box p, .practice-box p { margin: 0; }
.guide-figure { margin: 1.5rem 0; }
.guide-figure img { width: 100%; max-width: 600px; height: auto; margin: auto; }
.guide-figure figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0; padding: 0 !important; list-style: none !important; border-top: 2px solid var(--accent); }
.process li { padding: 16px 12px; font-size: 14px; margin: 0; border-bottom: 1px solid var(--border); }
.process strong { display: block; margin-bottom: 6px; }
.quiz-block { margin-bottom: 2rem; border: 0; padding: 0; min-width: 0; }
.quiz-question { font: 600 18px/1.5 var(--font-head); margin-bottom: 12px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); background: white; color: var(--text); cursor: pointer; text-align: left; font: 14px/1.6 var(--font-body); }
.quiz-option:hover:not([aria-disabled]) { border-color: var(--accent); background: #eaf0fc; }
.quiz-option[aria-disabled] { cursor: default; }
.quiz-option[aria-pressed='true'] { box-shadow: inset 3px 0 currentColor; }
.opt-letter { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; background: #edece9; font-weight: 700; }
.quiz-option.correct { background: #eaf5ef; border-color: #247449; }
.quiz-option.wrong { background: #fff0ee; border-color: #b83225; }
.quiz-feedback { margin-top: 12px; padding: 12px 16px; background: #eaf0fc; color: var(--text); font-size: 14px; }
.quiz-progress { color: var(--muted); font-size: 14px; margin-bottom: 1.5rem; }
.quiz-score { text-align: center; padding: 24px 0; border-block: 1px solid var(--border); margin: 24px 0; }
.quiz-score__number { font: 700 44px var(--font-head); color: var(--accent); }
.quiz-reset { margin-top: 1rem; }
.guide-cta { padding: 2.5rem 0; margin-top: 3rem; border-top: 2px solid var(--accent); text-align: center; }
.guide-cta h2 { font-size: 28px; margin-bottom: 1rem; }
.guide-cta p { margin: 1rem auto; max-width: 65ch; }
.guide-cta .btn { white-space: normal; text-align: center; }
.sources, .related { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.sources h2, .related h2 { font-size: 20px; margin-bottom: 1rem; }
.sources ol { padding-left: 20px; font-size: 13px; }
.sources li, .related li { margin-bottom: 10px; }
.sources p { font-size: 12px; margin-top: 1rem; }
.footer { padding: 2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer p, .footer a { font-size: 13px; }
@media (max-width: 1000px) {
  .nav-c__links { display: none; }
  .nav-c__burger { display: grid; place-items: center; }
  .nav-mobile-c.open { display: block; }
}
@media (max-width: 600px) {
  .guide-container { padding: 0 20px; }
  .guide-page { padding-top: 2rem; }
  .guide-header h1 { font-size: 32px; }
  .guide-section h2 { font-size: 21px; }
  .guide-toc ol, .cards-grid, .process { grid-template-columns: 1fr; }
  .guide-cta h2 { font-size: 24px; }
  .nav-c__inner { padding: 0 16px; }
  .guide-cta p a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
