/* Scoped to the five public Foundations lectures and their Library entry. */
.foundations-lecture .lecture-media-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(260px,3fr);gap:clamp(1rem,2vw,1.75rem);align-items:start}
.foundations-lecture .foundations-watch{min-width:0}
.foundations-lecture .lecture-media-grid .lecture-video{width:100%;max-width:none;aspect-ratio:16/9}
.foundations-lecture .media-panel--audio{margin-top:1rem;gap:.75rem}
.foundations-lecture .media-panel--audio .section-head{margin:0}
.foundations-lecture .lecture-chapters{margin:0;border-radius:18px;overflow:hidden;min-width:0}
.foundations-lecture .lecture-chapters__head{display:block}
.foundations-lecture .lecture-chapters__head small{display:block;margin-top:.4rem;line-height:1.5}
.foundations-lecture .lecture-chapter{grid-template-columns:3.3rem minmax(0,1fr);gap:.6rem;min-height:48px;padding:.85rem}
.foundations-lecture .lecture-chapter__title{font-size:.95rem;line-height:1.45;overflow-wrap:anywhere}
.foundations-lecture .lecture-hero{padding:2.5rem 0}
.foundations-lecture .lecture-hero+.section{padding-top:2rem}
.foundations-lecture .foundations-back{display:block;width:fit-content;margin:0 0 .3rem;min-height:44px;padding:.6rem 0;color:var(--green)}
.tl-foundations{margin:1.5rem 0 2rem;padding:clamp(1.15rem,3vw,2rem);border:1px solid var(--tl-line,var(--line));border-radius:18px;background:var(--tl-soft,#f4f0e8);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,3vw,2.5rem);align-items:start}
.tl-foundations__intro{display:grid;grid-template-columns:110px minmax(0,1fr);gap:1.25rem;align-items:start}
.tl-foundations__image{width:110px;height:150px;object-fit:cover;border-radius:12px}
.tl-foundations h2{font-family:var(--font-display);font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.1;margin:.5rem 0 .8rem}
.tl-foundations p{line-height:1.55;margin:0 0 1rem;color:var(--tl-muted,var(--ink-soft))}
.tl-foundations__meta{display:block;font-family:var(--font-mono);font-size:.78rem;color:var(--green);margin:0 0 1.1rem}
.tl-foundations ol{list-style:none;margin:0;padding:0;display:grid;gap:.25rem}
.tl-foundations li a{display:grid;grid-template-columns:1.7rem minmax(0,1fr) auto;align-items:center;gap:.6rem;padding:.8rem .4rem;min-height:48px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.tl-foundations li a:hover{background:var(--paper)}
.tl-foundations li span:first-child,.tl-foundations time{font-family:var(--font-mono);font-size:.75rem;color:var(--green)}
.tl-foundations li span:nth-child(2){font-weight:500;line-height:1.4}
.tl-foundations a:focus-visible,.foundations-lecture .lecture-chapter:focus-visible{outline:2px solid var(--terracotta);outline-offset:3px}
@media(max-width:900px){.foundations-lecture .lecture-media-grid,.tl-foundations{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.tl-foundations__intro{grid-template-columns:1fr}.tl-foundations__image{width:100%;height:150px;object-position:center 40%}.tl-foundations .btn{width:100%;white-space:normal;text-align:center}.foundations-lecture .media-panel{padding:.85rem;border-radius:16px}.foundations-lecture .lecture-resource-row .btn{width:100%;white-space:normal}.foundations-lecture .lecture-hero{padding:1.5rem 0}.foundations-lecture .lecture-media-grid{gap:1rem}}
