/* /learn: the lessons as pages (learn_pages.py). Black and white only, from the site's own tokens (dg.css). */

/* ---------- Hero: breadcrumbs, eyebrow, title, lede; kept short so the video is in view on a phone ---------- */
.wrap.page-hero.lv-hero{padding-top:20px;padding-bottom:12px}
.lv-hero .eyebrow{margin-bottom:10px}
.lv-hero .t-title{max-width:24ch}
.lv-crumbs ol{display:flex;flex-wrap:wrap;gap:2px 0;margin:0 0 12px;padding:0;list-style:none;font-size:.8125rem;color:#A3A3A3}
.lv-crumbs li{margin:0}
.lv-crumbs li+li::before{content:"\203A";margin:0 8px;color:#5E5E5E}
.lv-crumbs a{color:#A3A3A3;text-decoration:none}
.lv-crumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.lv-crumbs li[aria-current]{color:#fff;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lv-lede{max-width:62ch;margin:12px 0 0;font-size:1.125rem;line-height:1.5;color:rgba(255,255,255,.86)}
@media (max-width:560px){
  .wrap.page-hero.lv-hero{padding-top:18px;padding-bottom:20px}
  .lv-hero .t-title{font-size:1.75rem}
  .lv-lede{font-size:1rem}
  .lv-crumbs ol{margin-bottom:12px}
}

/* ---------- The page ---------- */
.doc.lv{padding-top:12px}
.doc.lv > .lv-video:first-child{margin-top:0}
.doc.lv > .lv-article:first-child > h2:first-child{margin-top:8px}   /* an article page opens on its first heading */

/* The player: a 16:9 box that holds the video's own still and a play button; learn.js swaps in the YouTube iframe
   only when the visitor presses play, so nothing loads from YouTube before that (DG-35) */
.lv-video{margin:24px 0}
.lv-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--r-inner);overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--line)}
.lv-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.lv-play{position:absolute;inset:0;width:100%;height:100%;display:block;margin:0;padding:0;border:0;background:#000;
  color:#fff;font:inherit;cursor:pointer;text-align:left}
.lv-play img{display:block;width:100%;height:100%;object-fit:cover;opacity:.92;transition:opacity .2s}
.lv-play:hover img,.lv-play:focus-visible img{opacity:1}
.lv-play-ic{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;
  background:rgba(0,0,0,.72);box-shadow:0 0 0 1px rgba(255,255,255,.4);transition:transform .2s,background .2s}
.lv-play-ic::after{content:"";position:absolute;left:28px;top:22px;border-style:solid;border-width:14px 0 14px 23px;
  border-color:transparent transparent transparent #fff}
.lv-play:hover .lv-play-ic,.lv-play:focus-visible .lv-play-ic{background:#000;transform:scale(1.06)}
.lv-play-txt{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:6px;background:rgba(0,0,0,.72);
  font-size:.75rem;font-weight:600;letter-spacing:.02em;line-height:1.2}
.lv-play:focus-visible{outline:3px solid #fff;outline-offset:-3px}
@media (max-width:560px){.lv-play-ic{width:56px;height:56px;margin:-28px 0 0 -28px}
  .lv-play-ic::after{left:21px;top:16px;border-width:12px 0 12px 19px}}
.lv-video figcaption,.lv-fig figcaption{font-size:.8125rem;line-height:1.45;color:var(--muted);margin-top:8px}
.lv-video-extra{margin:28px 0}

/* Lesson pictures */
.lv-fig{margin:24px 0}
.lv-fig img{display:block;width:100%;height:auto;border-radius:var(--r-inner);background:#000}
.lv-fig-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:10px}
.lv-fig-2 figcaption{grid-column:1/-1;margin-top:0}

/* The lesson's tables keep their own widths; the box scrolls, never the page */
.lv-article .tw table{min-width:0}
.lv-article blockquote{margin:16px 0;padding:2px 0 2px 16px;border-left:2px solid var(--fg);color:var(--muted)}

/* ---------- Get the files, Try it free, Test yourself, the course ---------- */
.doc .lv-files{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));margin-top:16px}
.lv-file h3{margin:0 0 10px;font-size:1.0625rem}
.lv-file h3 a{text-decoration:none}
.doc .lv-prods{list-style:none;padding:0;margin:0 0 10px}
.doc .lv-prods li{display:flex;justify-content:space-between;gap:12px;margin:4px 0;font-size:.9375rem}
.lv-prods span{font-variant-numeric:tabular-nums;color:var(--muted)}
.card p.lv-file-note{font-size:.8125rem;color:var(--muted);margin:0 0 12px}
/* Cuts in this lesson: small cards, the 3D still beside the name, price and a View cut button */
.doc .lv-cuts{grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:12px;margin-top:16px}
.card.lv-cut{flex-direction:row;align-items:center;gap:14px;padding:14px 16px}
.lv-cut img{width:84px;height:84px;flex:none;border-radius:var(--r-inner);background:#000}
.lv-cut h3{margin:0 0 4px;font-size:1rem}
.card .lv-cut-price{margin:0 0 10px;font-size:.8125rem;color:var(--muted);font-variant-numeric:tabular-nums}
.btn.lv-cut-btn{min-height:36px;padding:7px 16px;font-size:.875rem}
.doc .lv-tools{padding-left:22px}
.doc .lv-checks > li{margin:20px 0}
.doc .lv-checks > li > p{margin:0 0 6px;font-weight:560}
.doc .lv-opts{margin:6px 0}
.lv-ans summary{cursor:pointer;font-size:.875rem;font-weight:580;color:var(--muted)}
.lv-ans[open] summary{margin-bottom:4px}
.lv-ans p{margin:4px 0 0}
.lv-course{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-panel);padding:4px 22px 10px;margin-top:48px}
.doc .lv-course h2{border-top:0;margin-top:14px;padding-top:0;font-size:1.0625rem}

/* Previous and next */
.lv-pager{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:40px}
.lv-pager a{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-inner);
  text-decoration:none;font-size:.9375rem;line-height:1.35}
.lv-pager a:hover{border-color:var(--fg)}
.lv-pager span{font-size:.75rem;font-weight:620;letter-spacing:.02em;color:var(--muted)}
.lv-pager .lv-next{grid-column:2;text-align:right}
@media (max-width:560px){.lv-pager{grid-template-columns:1fr}.lv-pager .lv-next{grid-column:1}}
.lv-back{margin-top:16px;font-size:.9375rem}

/* ---------- Hubs and the index ---------- */
.doc .lv-list{list-style:none;padding:0;margin:28px 0 0}
.doc .lv-list > li{display:grid;grid-template-columns:200px 1fr;gap:18px;align-items:start;margin:0;padding:18px 0;border-top:1px solid var(--line)}
.doc .lv-list > li.lv-item-text{grid-template-columns:1fr}
.doc .lv-list h2{font-size:1.125rem;line-height:1.3;margin:0 0 6px;padding:0;border:0;letter-spacing:-.01em}
.doc .lv-list h2 a{text-decoration:none}
.doc .lv-list h2 a:hover{text-decoration:underline}
.doc .lv-list p{margin:0;color:var(--muted);font-size:.9375rem}
.doc .lv-list p.lv-kind,.lv-kind{font-size:.75rem;font-weight:620;letter-spacing:.02em;color:var(--muted);margin:0 0 6px}
@media (max-width:560px){.doc .lv-list > li{grid-template-columns:120px 1fr;gap:12px}}
.lv-thumb{position:relative;display:block;border-radius:var(--r-chip);overflow:hidden;background:#000}
.lv-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.lv-thumb span{position:absolute;right:6px;bottom:6px;padding:2px 6px;border-radius:6px;background:rgba(0,0,0,.78);color:#fff;
  font-size:.6875rem;font-weight:600;font-variant-numeric:tabular-nums}
.doc .lv-exs,.doc .lv-hubs{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.lv-ex,.lv-hubcard{padding:0 0 18px;overflow:hidden}
.doc .lv-ex > :not(.lv-thumb),.doc .lv-hubcard > :not(.lv-thumb){margin-left:20px;margin-right:20px}
.lv-ex .lv-thumb,.lv-hubcard .lv-thumb{border-radius:0;margin-bottom:14px}
.doc .lv-ex h3,.doc .lv-hubcard h3{margin:0 0 6px;font-size:1.0625rem;line-height:1.3}
.lv-ex h3 a,.lv-hubcard h3 a{text-decoration:none}
.doc .lv-hubcard p{font-size:.9375rem;color:var(--muted);margin:0 0 8px}
.doc .lv-all{columns:2 300px;column-gap:32px;font-size:.9375rem}
.doc .lv-all li{break-inside:avoid;margin:0 0 8px}

/* ---------- On the cut and tool pages ---------- */
.doc .lv-related,.lv-aside .lv-related{padding-left:22px}
.lv-aside{padding-top:8px;padding-bottom:56px}
.lv-aside h2{font-size:1.375rem;font-weight:620;letter-spacing:-.015em;margin:0 0 10px;padding-top:28px;border-top:1px solid var(--line)}
.lv-aside li{margin:6px 0}
.lv-aside a{text-underline-offset:3px;text-decoration-thickness:1px}

/* ---------- Browse, not school (2026-10-31): start here, quick quiz, keep exploring ---------- */
.doc p.lv-start{margin:4px 0 18px;font-size:1rem}
.doc .lv-hubcard p.lv-startcard{margin-top:auto;padding-top:6px;color:var(--fg);font-size:.875rem}
.lv-hubcard{height:100%}
.lv-quiz .btn{margin-top:2px}
.lv-ends{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;margin-top:48px}
.lv-ends .lv-course{margin-top:0}
.doc .lv-doors{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lv-door{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;padding:14px 16px;border:1px solid var(--line);
  border-radius:var(--r-inner);text-decoration:none;font-size:.9375rem;line-height:1.35}
.lv-door:hover{border-color:var(--fg)}
.lv-door span{font-size:.75rem;font-weight:620;letter-spacing:.02em;color:var(--muted)}
@media (max-width:560px){.doc .lv-doors{grid-template-columns:1fr}}

/* The video's transcript, folded: the heading is the button, a chevron shows the state */
.lv-tr summary{cursor:pointer;list-style:none}
.lv-tr summary::-webkit-details-marker{display:none}
.doc .lv-tr summary h2{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lv-tr summary h2::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.lv-tr[open] summary h2::after{transform:rotate(-135deg) translate(-2px,-2px)}
.lv-tr summary:hover h2{color:var(--fg)}
.lv-tr summary:focus-visible{outline:2px solid var(--fg);outline-offset:4px;border-radius:4px}
