/* Full Time Shooter: lesson pages, track hubs and /learn/ ("camera brand" look). Loaded after fts.css; uses its tokens.
   Written by hand for _build/build_lessons.py. A lesson opens on a full-bleed photo of real work (the track's photo),
   then a contents column and the reading column. */

/* ---------- Photo header ---------- */
.l-hero { position: relative; background: #0a0a0a; color: #f4f4f2; overflow: hidden; }
.l-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.l-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.48) 45%, rgba(0,0,0,0.22) 100%); }
.l-hero .wrap { position: relative; z-index: 2; min-height: clamp(480px, 56vw, 680px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 48px; padding-bottom: clamp(40px, 5vw, 72px); }
.l-hero.short .wrap { min-height: clamp(400px, 40vw, 560px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--text-3); font-size: 15px; }
.crumbs li { min-width: 0; }
/* The "/" trails each crumb (not leads the next), so a wrapped line never starts with one. */
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; display: inline-block; vertical-align: bottom; }
.l-hero .crumbs ol { color: rgba(244,244,242,0.82); }
.l-hero .crumbs li:not(:last-child)::after { color: rgba(244,244,242,0.5); }
.l-hero .crumbs a { color: rgba(244,244,242,0.9); }
.l-hero .crumbs a:hover { color: #f4f4f2; }
.l-hero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 76px); letter-spacing: 0.01em; line-height: 1; max-width: 16ch; }
.l-hero .lede { margin-top: 22px; color: rgba(244,244,242,0.88); max-width: 52ch; }
.l-meta { margin-top: 28px; display: flex; flex-wrap: wrap; border-top: 1px solid rgba(244,244,242,0.3); max-width: 680px; }
.l-meta span { padding: 12px 20px 0 0; margin-right: 20px; border-right: 1px solid rgba(244,244,242,0.2); color: rgba(244,244,242,0.9); }
.l-meta span:last-child { border-right: 0; margin-right: 0; }
.l-hero .hero-cap { position: absolute; right: var(--gutter); top: 18px; z-index: 2; font-size: 13px; color: rgba(244,244,242,0.7); max-width: 40ch; text-align: right; }

/* ---------- Two columns: contents, then the reading column ---------- */
.l-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 6vw, 112px); justify-content: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 128px); }
.l-layout.single { grid-template-columns: minmax(0, 760px); }
.toc { align-self: start; }
@media (min-width: 901px) { .toc { position: sticky; top: 84px; } }
.toc .caps { color: var(--text-3); display: block; margin-bottom: 14px; }
.toc ol { border-top: 1px solid var(--line-strong); }
.toc li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.toc li a:hover, .toc li a.on { color: var(--text); }

.l-body .for { padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); color: var(--text-2); }
.l-body .for b { color: var(--text); font-weight: 600; }
.lsec { margin-top: 56px; }
.lsec h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 0.01em; line-height: 1.15; margin-bottom: 18px; max-width: none; }
.lbody { color: var(--text); }
.lbody p { font-size: 18px; line-height: 1.7; }
.lbody p + p, .lbody p + ul, .lbody p + ol, .lbody ul + p, .lbody ol + p, .lbody figure + p, .lbody p + figure, .lbody h3 + p, .lbody table + p { margin-top: 16px; }
.lbody b, .lbody strong { font-weight: 600; }
.lbody h3 { font-size: 22px; margin-top: 32px; }
.lbody ul { margin-top: 18px; border-top: 1px solid var(--line); }
.lbody ul li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; line-height: 1.6; }
.lbody ul li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 1px; background: var(--text-3); }
.lbody ol { margin-top: 18px; counter-reset: lb; border-top: 1px solid var(--line); }
/* Numbered items: the number sits in the left padding (absolute), so an item that mixes plain text, bold and links
   stays one text column. (A two-column grid put each loose text run in the 32-40 px number column, Nov 26 review.) */
.lbody ol li { counter-increment: lb; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.6; }
.lbody ol li::before { content: counter(lb, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-3); }
.lbody a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.lbody a:hover { text-decoration-color: currentColor; }
.lbody code { font-family: var(--mono); font-size: 0.86em; }
.cite { font-size: 12px; line-height: 0; }
.cite a { text-decoration: none; color: var(--text-3); }
.cite a:hover { color: var(--text); }

/* Tables inside a lesson: scroll sideways inside their own box on a phone, never widen the page. */
.lbody table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin-top: 18px; font-size: 15px; line-height: 1.5; border-top: 1px solid var(--line-strong); }
.lbody th, .lbody td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); min-width: 9ch; }
.lbody th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.lbody td { color: var(--text-2); }
.lbody td:first-child { color: var(--text); }

/* Figures: real photos square-ish and unframed; drawn diagrams scroll sideways on a phone; placeholders are dashed boxes. */
.lfig { margin: 40px 0 8px; }
.lfig img { width: 100%; border-radius: 3px; }
.lfig.tall { max-width: 420px; }
.lfig figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.lfig .ai-credit { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; }
@media (min-width: 1100px) { .lfig.wide { margin-left: clamp(-160px, -10vw, 0px); } }
.lfig.dgm .dgm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; width: 0; min-width: 100%; }
.lfig.dgm img { display: block; width: 100%; min-width: var(--dgm-min, 0); height: auto; border-radius: 0; background: #fff; }
.lfig.dgm .dgm-hint { display: none; font-size: 13px; color: var(--text-3); margin: 8px 0 0; }
/* The hint shows wherever the diagram is wider than its box (site.js sets .overflows), at any width. */
.lfig.dgm.overflows .dgm-hint { display: block; }
@media (max-width: 700px) { .lfig.dgm .dgm-hint { display: block; } }
/* Desktop (the 720 px column): a diagram whose smallest text needs more than 720 px grows into the empty space
   right of the column, up to what the window has (minus 24 px), instead of being cut off at the column edge. */
@media (min-width: 1100px) {
  .l-layout:not(.single) .lfig.dgm .dgm-scroll { width: auto; min-width: 0;
    margin-right: calc(-1 * clamp(0px, var(--dgm-min, 0px) - 720px, (100vw - 940px - clamp(40px, 6vw, 112px)) / 2 - 24px)); }
}
.ph-box { aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; border: 1px dashed var(--line-strong); background: var(--bg-2); }
.lfig.tall .ph-box { aspect-ratio: 4 / 5; }
.ph-id { font-family: var(--mono); font-size: 13px; color: var(--text); }
.ph-what { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.ph-note { font-size: 13px; color: var(--text-3); }

/* Try this */
.try { margin-top: 64px; background: var(--bg-2); padding: clamp(28px, 4vw, 48px); border-radius: 2px; }
.try h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 0.01em; line-height: 1.15; margin-bottom: 8px; max-width: none; }
.try > p { margin-top: 14px; font-size: 17px; }
.try ol { counter-reset: s; margin-top: 18px; border-top: 1px solid var(--line-strong); }
.try ol li { counter-increment: s; position: relative; padding: 14px 0 14px 56px; border-bottom: 1px solid var(--line); font-size: 17px; }
.try ol li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-3); }
.try .try-sim { margin-top: 24px; }
.try .try-sim .go { margin-top: 0; }

/* Related + sources */
.related { margin-top: 64px; }
.related h2, .sources h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 0.01em; line-height: 1.15; max-width: none; }
.lrows { margin-top: 18px; border-top: 1px solid var(--line); }
.lrows li { border-bottom: 1px solid var(--line); }
.lrows a, .lrows .row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; align-items: baseline; }
.lrows .t { font-size: 17px; line-height: 1.4; }
.lrows a:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.lrows .tag { color: var(--text-3); white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; }
.lrows .soon .t { color: var(--text-3); }
.sources { margin-top: 64px; }
.sources ol { margin-top: 12px; border-top: 1px solid var(--line); counter-reset: src; }
.sources li { counter-increment: src; position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--text-3); }
.sources li a { color: var(--text); }
.sources li:target { background: var(--bg-2); }
.snote { display: block; margin-top: 6px; color: var(--text-3); font-size: 14px; }

/* ---------- Hubs ---------- */
.lgroup + .lgroup { margin-top: clamp(48px, 6vw, 80px); }
.lgroup > h2 { color: var(--text-3); }
.lgroup .track-list { margin-top: 18px; }
.lhub-empty { color: var(--text-2); }

/* Draft flags: only on pages that are not ready to go live. */
.draft-note { margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--err); border-radius: 2px; font-size: 15px; color: var(--err); }
.draft-note b { color: var(--text); }
mark.flag { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); border-radius: 2px; padding: 0 4px; font-size: .92em; }
mark.flag.ask { background: var(--bg-3); color: var(--text); outline: 1px dashed var(--err); }

@media (max-width: 900px) {
  .l-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .l-hero .hero-cap { display: none; }
}
@media (max-width: 640px) {
  .lbody p { font-size: 17px; }
  /* Level, minutes and sources stay on one line at 390 px. */
  .l-meta span { padding-right: 12px; margin-right: 12px; letter-spacing: 0.12em; }
  .lrows a, .lrows .row { flex-direction: column; gap: 4px; }
}

/* ---------- Gear for this lesson (Nov 26, 2026; built from _build/gear.json by money.gear_block) ----------
   The disclosure line sits right above the store links (FTC: next to the links). "(paid link)" follows each paid one.
   .gear-disc and .g-links are shared with /gear/ (money.css), which loads this file too. */
.gear { margin-top: 64px; }
.gear h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 0.01em; line-height: 1.15; max-width: none; }
.gear-disc { margin-top: 14px; padding: 14px 18px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 2px; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 72ch; }
.gear-disc b { color: var(--text); font-weight: 600; }
.gear-disc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.gear .gear-disc { max-width: none; } /* in a lesson the box spans the gear rows under it (Nov 26 review) */
.gear-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.gear-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gear-rows .g-name { font-size: 17px; line-height: 1.4; }
.g-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.g-links a { color: var(--text); font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); text-underline-offset: 4px; white-space: nowrap; }
.g-links a:hover { text-decoration-color: currentColor; }
.pl { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.gear-all { margin-top: 20px; }

/* The one closing line: the free Q&A and the community (coaching too on the real estate lessons). */
.l-next { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.l-next p { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 64ch; }
.l-next b { color: var(--text); font-weight: 600; }
.l-next a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
