/* DECIL course pages (/courses/decil, /courses/decil/week1-5): the co-host row
   and the partner line, same marks and proportions as /decil's hero, sized
   down for the top of a course page. Everything else is cohort.css/course.css. */
.dk-hosts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
            gap: 10px 12px; margin: 0 auto 6px; }
.dk-hosts img { height: 30px; width: auto; }
.dk-hosts img.vk { height: 29px; }
.dk-hosts img.sa { height: 28px; border-radius: 7px; }
.dk-hosts .sa-lock { display: flex; align-items: center; gap: 7px; }
.dk-hosts .wordmark { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.dk-hosts .x { font-size: 14px; font-weight: 300; opacity: .4; line-height: 1; }
.dk-partner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
              gap: 6px 10px; font-size: 13px; opacity: .75; margin: 0 auto 22px; }
.dk-partner img { height: 18px; width: auto; }
.dk-partner b { font-weight: 600; }
/* Week 1's class recording, above the steps, and the link to it on the week's card. */
.dk-rec { margin: 0 0 26px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.dk-rec h2 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.dk-rec-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.dk-rec-frame iframe, .dk-rec-frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.ch-link { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--cv-accent); }
@media (max-width: 480px) {
    .dk-hosts img { height: 24px; }
    .dk-hosts img.vk { height: 23px; }
    .dk-hosts img.sa { height: 22px; }
    .dk-hosts .wordmark { font-size: 14px; }
}
/* A step's screenshots and clips of the live console (course.js renderShots),
   under "Do this", before "If stuck". The images are 2x help-center captures:
   course.js caps each at half its pixel width. A wide desktop shot keeps a
   760px floor on a phone and slides sideways, with the same right-edge fade
   as .cv-md-fig, rather than shrinking its labels past reading. */
.cv-shots { margin: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.cv-shot { margin: 0; }
.cv-shot-frame { position: relative; border: 1px solid var(--cv-line, #e8e8ed);
                 border-radius: 12px; overflow: hidden; background: #fff; }
.cv-shot-scroll a { display: block; margin: 0 auto; line-height: 0; }
.cv-shot-scroll img { display: block; width: 100%; height: auto; }
.cv-shot-scroll video { display: block; width: 100%; height: auto; background: #000; }
.cv-shot figcaption { margin-top: 8px; font-size: 15px; line-height: 1.45; color: #6e6e73; }
@media (max-width: 560px) {
    .cv-shot-wide .cv-shot-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cv-shot-wide .cv-shot-scroll a { width: 760px; max-width: none !important; }
    .cv-shot-wide .cv-shot-frame::after {
        content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 54px;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94));
    }
}
/* Week 2: the logo rows sit under the steps, so step 1 is the first thing a
   phone shows; tighter there, and a rule above to part them from the list. */
.dk-hosts.dk-hosts-end { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--cv-line, #e8e8ed); }
/* "Start free" is for visitors; a signed-in student already has an account.
   auth.js paints `.nav-user` into the nav once they are signed in. */
.nav-inner:has(.nav-user) .nav-cta-start { display: none; }
/* 44px targets (review 2026-11-03): nav Sign in and the language toggle. */
.nav-links a.nav-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.lang-toggle { min-height: 44px; align-items: stretch; }
.lang-toggle span { display: inline-flex; align-items: center; }
.lang-toggle span:not(.active) { color: #545458; }
/* Resume and step link (course.js renderContinue / renderStepLink). */
.cv-continue { margin: 14px 0 0; min-height: 44px; }
.cv-steplink { background: none; border: 1px solid var(--cv-line-2, #d2d2d7); border-radius: 999px; min-height: 44px;
               padding: 0 16px; margin: 0 0 14px; font: inherit; font-size: 15px; color: var(--cv-ink-2, #424245); cursor: pointer; }
/* course.js renderBefore: the folded "Before Saturday" box under the intro.
   Closed by default, so it costs one line above step 1. */
.cv-before { margin: 14px 0 0; border: 1px solid var(--cv-line, #e8e8ed); border-radius: 12px;
             background: #fff; padding: 0 14px; font-size: 15px; line-height: 1.6; }
.cv-before summary { cursor: pointer; padding: 11px 0; font-weight: 600; color: var(--cv-ink, #1d1d1f); }
.cv-before[open] { padding-bottom: 14px; }
.cv-before p { margin: 0 0 10px; color: var(--cv-ink-2, #424245); }
.cv-before-link { display: inline-block; font-weight: 600; color: var(--cv-accent); }
/* course.js renderCopy: the text a student pastes, editable, with one Copy button. */
.cv-copy { margin: 10px 0 16px; }
.cv-copy-text { display: block; width: 100%; box-sizing: border-box; resize: vertical;
                font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cv-ink, #1d1d1f);
                background: #f9f5ff; border: 1px solid var(--cv-line-2, #d2d2d7); border-radius: 10px; padding: 10px 12px; }
.cv-copy-btn { margin-top: 8px; font-weight: 600; min-height: 44px; }
/* The Ask-the-TA launcher floats bottom-right (posttrain-ta.css). Room under
   the last card so it never sits on the final text or Copy box. */
#cv-hub, #cv-module { padding-bottom: 120px; }
html { scroll-padding-bottom: 120px; }
/* course.js focuses the step heading for screen readers. It is tabindex -1,
   never a Tab stop, and Chrome counts that script focus as :focus-visible, so
   `:focus:not(:focus-visible)` left the ring on (checked 2026-11-03). */
#cv-m-name:focus { outline: none; }
@media (max-width: 560px) {
    .cv-before { font-size: 14.5px; }
    /* 16px stops iOS Safari zooming the page when the box takes focus. */
    .cv-copy-text { font-size: 16px; }
    video::cue { font-size: 16px; line-height: 1.35; }
}
