/* Public lesson pages (/lessons/) generated by scripts/build-lessons.mjs.
   Layout only; skin.css still loads last for the shared look. */

.lesson-main { max-width: 860px; padding-top: 28px; padding-bottom: 72px; }
.lesson-main.hub { max-width: 1000px; }

/* Breadcrumb */
.crumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 13px var(--f-ui); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: #b9bdbb; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Eyebrow and title */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; font: 500 13px var(--f-mono); color: var(--muted); }
.eyebrow .lvl { padding: 3px 10px; border-radius: 999px; font: 700 12px var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: #0d652d; background: #e6f4ea; }
.eyebrow .lvl.l2 { color: #174ea6; background: #e8f0fe; }
.eyebrow .lvl.l3 { color: #8430ce; background: #f3e8fd; }
.lesson-head h1 { margin: 0 0 30px; font-size: 64px; line-height: 0.92; font-stretch: 75%; }

/* Reading body (mirrors learn.css) */
.reading { max-width: 36em; font: 20px/1.65 var(--f-read); }
.reading p { margin: 0 0 18px; }
.reading ul, .reading ol { margin: 0 0 18px; padding-left: 24px; }
.reading li { margin-bottom: 8px; }
.reading code, .reading kbd { font-size: 0.8em; font-variant-ligatures: none; overflow-wrap: anywhere; }
.reading pre { overflow-x: auto; max-width: 100%; margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: #f1f3f4; font: 500 15px/1.5 var(--f-mono); font-variant-ligatures: none; }
.reading pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.reading table { display: block; overflow-x: auto; max-width: 100%; }
.ref-table { border-collapse: collapse; margin: 6px 0 22px; font: 16px var(--f-ui); }
.ref-table th, .ref-table td { border-bottom: 1px solid var(--hair); padding: 8px 22px 8px 0; text-align: left; vertical-align: top; }
.ref-table th { border-bottom: 2px solid var(--ink); font-weight: 700; }

/* Practice: task and data */
.task h2, .data h2 { margin: 0 0 12px; font-size: 30px; }
.task { margin-bottom: 36px; }
.prompt { max-width: 38em; font: 20px/1.6 var(--f-read); }
.prompt code { font-size: 0.8em; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; max-width: 42em; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 52px; border-radius: 14px; background: var(--soft); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; font: 700 13px var(--f-mono); box-shadow: inset 0 0 0 1.5px #c4c7c5; }
.steps li b { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); }
.data-note { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.grid-scroll { overflow-x: auto; max-width: 100%; margin: 0 0 22px; border-radius: 12px; box-shadow: var(--lift, 0 1px 2px rgba(60, 64, 67, 0.2)); background: #fff; }
.grid-scroll:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.sheet-grid { border-collapse: collapse; font: 13px/1.3 Arial, Helvetica, sans-serif; color: #202124; min-width: 100%; }
.sheet-grid caption { caption-side: top; text-align: left; padding: 10px 12px; font: 600 13px var(--f-ui); color: var(--muted); background: #f8f9fa; border-bottom: 1px solid #e2e3e3; }
.sheet-grid caption .tab-name { display: inline-block; padding: 2px 10px; margin-right: 4px; border-radius: 6px; background: #e6f4ea; color: #0d652d; font-weight: 700; }
.sheet-grid th { background: #f8f9fa; color: #5f6368; font-weight: 400; font-size: 11px; padding: 3px 6px; border: 1px solid #e2e3e3; text-align: center; min-width: 32px; }
.sheet-grid tbody th, .sheet-grid .corner { width: 40px; min-width: 40px; }
.sheet-grid td { padding: 4px 8px; border: 1px solid #e2e3e3; white-space: nowrap; height: 25px; }
.sheet-grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-grid td.head { font-weight: 700; }
.sheet-grid td.input { color: #0000ff; }
.sheet-grid td.f { font-family: var(--f-mono); font-size: 12px; color: #3c4043; }
.sheet-grid td.target { background: #e6f4ea; box-shadow: inset 0 0 0 2px #188038; min-width: 72px; }

/* Calls to action */
.cta-card { margin: 44px 0 0; padding: 26px 28px; border-radius: var(--r-card); background: #e6f4ea; }
.cta-card.paid { background: #f3e8fd; }
.cta-card h2 { margin: 0 0 8px; font-size: 36px; }
.cta-card p { margin: 0 0 18px; max-width: 34em; }
.cta-card .cta-kicker { margin: 0 0 6px; font: 600 12px var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 0; }
.pg { display: block; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--lift, 0 1px 2px rgba(60, 64, 67, 0.2)); text-decoration: none; }
.pg span { display: block; font: 500 12px var(--f-mono); color: var(--muted); }
.pg b { display: block; margin-top: 3px; font-weight: 600; }
.pg:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pg.next { text-align: right; }
.hub-link { margin: 22px 0 0; font-weight: 600; }

/* Footer link (also on index, pricing and start) */
.foot-link { font-weight: 600; text-underline-offset: 3px; }

/* Hub */
.hub-head { margin-bottom: 40px; }
.hub-head h1 { margin: 0 0 16px; font-size: 76px; line-height: 0.9; font-stretch: 75%; }
.hub-sub { margin: 0 0 18px; max-width: 38em; font-size: 18px; }
.hub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hub-jump a { padding: 6px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.hub-jump a:hover { background: #e6f4ea; }
.hub-level { padding-top: 34px; border-top: 1px solid var(--hair); margin-top: 20px; }
.hub-level-head h2 { margin: 0 0 6px; font-size: 48px; }
.hub-level-head .muted { margin: 0 0 18px; font: 500 13px var(--f-mono); }
.hub-section { margin: 0 0 22px; scroll-margin-top: 80px; }
.hub-level { scroll-margin-top: 60px; }
.hub-section h3 { margin: 0 0 6px; font-size: 26px; }
.hub-section ul { list-style: none; margin: 0; padding: 0; }
.hub-section li a { display: flex; align-items: baseline; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.hub-section li a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.hub-section .t { flex: 1; min-width: 0; }
.hub-section .k { font: 600 11px var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hub-section .k-practice, .hub-section .k-project { color: #0d652d; }
.hub-section .m { width: 48px; text-align: right; color: var(--muted); font: 500 12px var(--f-mono); }

@media (max-width: 900px) {
  .lesson-main { padding-top: 18px; padding-bottom: 48px; }
  .lesson-head h1 { font-size: 44px; margin-bottom: 22px; }
  .reading, .prompt { font-size: 19px; }
  .reading pre { font-size: 13.5px; }
  .cta-card { padding: 22px 20px; }
  .cta-card h2 { font-size: 30px; }
  .cta-row .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .pager { grid-template-columns: 1fr; }
  .pg.next { text-align: left; }
  .hub-head h1 { font-size: 52px; }
  .hub-level-head h2 { font-size: 38px; }
  .hub-section .k { display: none; }
}
