/* Page chrome: side menu, top bar, episode heading, player frame and controls, labs, series map. */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
}
img {
    max-width: 100%;
}
[hidden] {
    display: none !important;
}
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
    color: var(--fg-strong);
    margin: 0;
    text-wrap: balance;
}
h1 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
}
h2 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.025em;
}
h3 {
    font-size: 15px;
    font-weight: 600;
}
p {
    margin: 0;
}
code,
.mono {
    font-family: var(--mono);
    font-size: 0.87em;
}
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.muted {
    color: var(--fg-muted);
}
button {
    font: inherit;
    color: inherit;
}
:focus-visible {
    outline: 2px solid var(--primary-ink);
    outline-offset: 2px;
}
.ic {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- shell: side menu, top bar, content ---------- */
.app {
    --side-w: 272px;
    --bar-h: 56px;
    --hover: color-mix(in srgb, var(--fg-strong) 5%, transparent);
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}
.side {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.brand {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--bar-h);
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}
.brand img {
    flex: none;
    width: 28px;
    height: 28px;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.brand-copy .eyebrow {
    font-size: 10px;
}
.brand-copy b {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-strong);
}
.aud {
    flex: none;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}
.aud-pick {
    position: relative;
}
.aud-pick::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--fg-muted);
    border-bottom: 1.5px solid var(--fg-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.aud select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    background: none;
    color: var(--fg);
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}
.aud select:hover {
    background: var(--hover);
    color: var(--fg-strong);
}
.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px 28px;
}
.nav-link,
.tg-head,
.tg-list a {
    border-radius: 6px;
    color: var(--fg);
    text-decoration: none;
    cursor: pointer;
}
.nav-link:hover,
.tg-head:hover,
.tg-list a:hover {
    background: var(--hover);
    color: var(--fg-strong);
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    font-size: 13.5px;
    font-weight: 500;
}
.nav-link .ic {
    flex: none;
    color: var(--fg-muted);
}
.nav-label {
    padding: 16px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.tracknav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tg-head {
    width: 100%;
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 13.5px;
    font-weight: 500;
}
.tg-head .tg-n {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
}
.tg-head.has-current,
.tg-head[aria-expanded='true'] {
    color: var(--fg-strong);
}
.tg-head::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 3px;
    border-right: 1.5px solid var(--fg-muted);
    border-bottom: 1.5px solid var(--fg-muted);
    transform: translateY(-1px) rotate(-45deg);
}
.tg-head[aria-expanded='true']::after {
    transform: translateY(-2px) rotate(45deg);
}
.tg-list {
    list-style: none;
    margin: 2px 0 8px 19px;
    padding: 0 0 0 8px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.tg-list a {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 6px;
    align-items: baseline;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.4;
}
.tg-list .num {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
}
.nav [aria-current='page'],
.nav [aria-current='page']:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-weight: 500;
}
.nav [aria-current='page'] .num,
.nav [aria-current='page'] .ic {
    color: var(--primary-ink);
}
.scrim {
    display: none;
}

.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.bar {
    position: sticky;
    top: 0;
    z-index: 20;
    flex: none;
    height: var(--bar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    /* Lines the bar's contents up with the centred content column below it. */
    padding: 0 max(32px, calc((100% - 1148px) / 2));
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.menu {
    display: none;
    flex: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-ctl);
    background: var(--surface);
    cursor: pointer;
}
.crumbs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-muted);
    white-space: nowrap;
    overflow: hidden;
}
.crumbs a {
    color: inherit;
    text-decoration: none;
}
.crumbs a:hover {
    color: var(--fg-strong);
}
.crumbs .sep {
    color: var(--line-strong);
}
.crumbs .mid {
    overflow: hidden;
    text-overflow: ellipsis;
}
.crumbs .here {
    color: var(--fg-strong);
    font-weight: 500;
}
.jump {
    flex: none;
    display: flex;
    gap: 2px;
}
.jump button {
    border: 0;
    background: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-muted);
    cursor: pointer;
}
.jump button:hover {
    background: var(--hover);
    color: var(--fg-strong);
}

.content {
    flex: 1 1 auto;
    padding: 28px 32px 72px;
    container-type: inline-size;
}
.view {
    max-width: 1148px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ep-head,
.top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 70ch;
    min-width: 0;
}
.ep-head h1 {
    font-size: 26px;
    line-height: 1.2;
}

.sec {
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-margin-top: calc(var(--bar-h) + 16px);
}
.sec-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70ch;
}

/* previous and next episode */
.pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.pager:empty {
    display: none;
}
.pager a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
}
.pager a:hover {
    border-color: var(--line-strong);
}
.pager a.next {
    grid-column: 2;
    text-align: right;
}
.pager .n {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-strong);
}

/* ---------- player ---------- */
.player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 16px;
    align-items: start;
}
.screen {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}
.stage-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
    background: var(--bg);
    --k: 0.6;
    --ox: 0px;
    --oy: 0px;
    cursor: pointer;
}
.stage-wrap:fullscreen {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
}
.stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 1280px;
    height: 720px;
    transform-origin: 0 0;
    transform: translate(var(--ox), var(--oy)) scale(var(--k));
    color: var(--fg);
    font-family: var(--sans);
}
.stage * {
    box-sizing: border-box;
}
.dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1.5px 1.5px, var(--canvas-dot) 1.5px, transparent 0);
    background-size: 24px 24px;
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 0;
    cursor: pointer;
}
.poster-play span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: var(--shadow-panel);
    transition: transform 0.15s ease;
}
.poster-play svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}
.poster-play:hover span {
    transform: scale(1.05);
}

.caption {
    min-height: 4.6em;
    padding: 14px 18px 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.45;
    color: var(--fg-strong);
    display: flex;
    align-items: center;
}
.ctl {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-top: 1px solid var(--line);
    background: var(--sunken);
}
/* The time under the pointer on the scrub bar. The player sets left and top to the pointer and the bar's top edge. */
.scrub-tip {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -100%);
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--fg-strong);
    color: var(--surface);
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}
.ctl .btn {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--fg);
    cursor: pointer;
}
.ctl .btn:hover,
.ctl select:hover {
    background: var(--hover);
    color: var(--fg-strong);
}
.ctl .btn svg {
    width: 18px;
    height: 18px;
}
.ctl .btn.pp {
    color: var(--fg-strong);
}
.ctl .btn.pp svg {
    width: 20px;
    height: 20px;
}
/* One icon per state: the button's data-state names the one that shows. */
.ctl .btn[data-state] svg {
    display: none;
}
.ctl .btn[data-state='play'] .i-play,
.ctl .btn[data-state='pause'] .i-pause,
.ctl .btn[data-state='replay'] .i-replay,
.ctl .btn[data-state='on'] .i-on,
.ctl .btn[data-state='off'] .i-off,
.ctl .btn[data-state='none'] .i-off {
    display: block;
}
.ctl .btn:disabled {
    opacity: 0.45;
    cursor: default;
    background: none;
}
.ctl input[type='range'] {
    flex: 1 1 120px;
    min-width: 0;
    margin: 0 6px;
    accent-color: var(--primary-ink);
    cursor: pointer;
}
.ctl .time {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-right: 6px;
}
.ctl select {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    min-width: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
}

.chapters-panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-title {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--sunken);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.chapters {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chapters .ch {
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.chapters .ch:hover {
    background: var(--sunken);
}
.chapters .ch .t {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
}
.chapters .ch .n {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-strong);
}
.chapters .ch[aria-current='true'] {
    background: var(--primary-soft);
    box-shadow: inset 2px 0 0 var(--primary-ink);
}
.chapters .ch[aria-current='true'] .n,
.chapters .ch[aria-current='true'] .t {
    color: var(--primary-ink);
}
.side-note {
    font-size: 12.5px;
    color: var(--fg-muted);
    padding: 10px 14px;
}
details.transcript {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 10px 14px;
}
details.transcript summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--fg-strong);
    font-size: 14px;
}
details.transcript ol {
    margin: 10px 0 4px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    max-width: 78ch;
}
details.transcript li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
}
details.transcript li span:first-child {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
    padding-top: 2px;
}

/* ---------- lab ---------- */
.lab {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    min-width: 0;
}
.steps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}
.steps input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary-ink);
}
.steps label {
    cursor: pointer;
}
.steps b {
    color: var(--fg-strong);
    font-weight: 600;
}
.steps input:checked + label {
    color: var(--fg-muted);
}
.sheet {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13.5px;
}
.sheet th {
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    color: var(--fg-muted);
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid var(--line);
}
.sheet td {
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.sheet td:last-child,
.sheet th:last-child {
    text-align: right;
    padding-right: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sheet td:last-child {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--fg-strong);
}
.sheet tr.key td {
    background: var(--ok-bg);
}
.sheet tr.key td:first-child {
    padding-left: 8px;
}
.sheet tr.key td:last-child {
    padding-right: 8px;
    color: var(--ok-fg);
    font-weight: 600;
}
.tablewrap {
    overflow-x: auto;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.points {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}
.points li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.points b {
    color: var(--fg-strong);
    font-weight: 600;
}

/* ---------- course overview ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
}
.stats div {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.stats div:first-child {
    border-left: 0;
}
.stats b {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--fg-strong);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stats span {
    font-size: 12.5px;
}
.tracks {
    display: grid;
    gap: 10px;
}
.track {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.track-head {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: baseline;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}
.track-head::-webkit-details-marker {
    display: none;
}
.track-head::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--fg-muted);
    border-bottom: 1.5px solid var(--fg-muted);
    transform: translateY(-2px) rotate(-45deg);
}
.track[open] > .track-head::before {
    transform: translateY(-3px) rotate(45deg);
}
.track[open] > .track-head {
    background: var(--sunken);
    border-bottom: 1px solid var(--line);
}
.track-head:hover h3 {
    color: var(--primary-ink);
}
.th-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.th-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
}
.track-head .tn {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
}
.track-head p {
    font-size: 13.5px;
    color: var(--fg-muted);
}
.track-head .biz {
    color: var(--fg);
}
.track-head .biz b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-ink);
    margin-right: 8px;
}
/* How much of a track, or whether an episode, can be watched. */
.avail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--fg-muted);
    white-space: nowrap;
}
.avail::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
}
.avail.live {
    color: var(--fg);
}
.avail.live::before {
    border-color: var(--ok-solid);
    background: var(--ok-solid);
}
.ep {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1.1fr) minmax(0, 1.15fr) 7.4rem;
    gap: 6px 16px;
    padding: 12px 18px 12px 44px;
    border-top: 1px solid var(--line);
    align-items: start;
}
.ep:first-of-type {
    border-top: 0;
}
.ep .id {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
    padding-top: 3px;
}
.ep .ti {
    font-weight: 600;
    color: var(--fg-strong);
    text-decoration: none;
}
.ep a.ti:hover {
    color: var(--primary-ink);
}
.ep .le,
.ep .lb {
    font-size: 13.5px;
}
.ep .lb b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-right: 8px;
}
.ep.soon .ti {
    font-weight: 500;
    color: var(--fg);
}
.ep.soon .le,
.ep.soon .lb {
    color: var(--fg-muted);
}
.ep .avail,
.ep .watch {
    justify-self: end;
}
.watch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg-strong);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.watch::before {
    content: '';
    border-left: 7px solid var(--primary-ink);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}
.watch:hover {
    border-color: var(--primary-ink);
    color: var(--primary-ink);
}

/* The side menu is a drawer on a narrow screen. */
@media (max-width: 900px) {
    .app {
        grid-template-columns: minmax(0, 1fr);
    }
    .side {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: min(300px, 86vw);
        visibility: hidden;
        transform: translateX(-100%);
    }
    .nav-open .side {
        visibility: visible;
        transform: none;
        box-shadow: var(--shadow-panel);
    }
    .scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgb(0 0 0 / 0.4);
    }
    .menu {
        display: grid;
    }
    .bar {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
    .content {
        padding-block: 20px 56px;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
    .crumbs .mid,
    .crumbs .mid + .sep {
        display: none;
    }
}

/* Widths below are the content column's, which the side menu narrows. */
@container (max-width: 860px) {
    .player,
    .lab {
        grid-template-columns: minmax(0, 1fr);
    }
}
@container (max-width: 720px) {
    h1 {
        font-size: 26px;
    }
    .ep-head h1 {
        font-size: 22px;
    }
    .pager {
        grid-template-columns: minmax(0, 1fr);
    }
    .pager a.next {
        grid-column: 1;
    }
    .track-head {
        grid-template-columns: 14px minmax(0, 1fr);
    }
    .track-head .avail {
        grid-column: 2;
    }
    .ep {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        padding-left: 18px;
    }
    .ep .lb,
    .ep .avail,
    .ep .watch {
        grid-column: 2;
        justify-self: start;
    }
    .caption {
        font-size: 15px;
        min-height: 6em;
    }
    /* The scrub bar takes its own row above the buttons. */
    .ctl {
        flex-wrap: wrap;
    }
    .ctl input[type='range'] {
        order: -1;
        flex-basis: 100%;
        margin: 6px 4px 2px;
    }
    .ctl .time {
        margin-right: auto;
    }
    .poster-play span {
        width: 54px;
        height: 54px;
    }
    .poster-play svg {
        width: 22px;
        height: 22px;
    }
}

/* A long path in a lab step breaks instead of widening the page. */
.lab code,
.sec-head code {
    overflow-wrap: anywhere;
}

/* A short listing a lab asks the learner to save and run. */
.lab pre.code {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--sunken);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-strong);
    overflow-x: auto;
}
.lab pre.code code {
    overflow-wrap: normal;
    white-space: pre;
}
