/* Handout content in the KH Lab design. The page frame (header, Appearance
   menu, site map, footer) and the color variables (--bg, --panel, --text,
   --muted, --line, --accent, --hover, --tint) come from the lab layout in
   theme/main.html. This file styles only what MkDocs writes inside it. */

.course { padding: 34px 0 48px; min-width: 0; overflow-wrap: break-word; }
.course > :first-child { margin-top: 0; }
.course h1 { margin: 0 0 14px; }
.course h2 { font-size: 26px; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; margin: 2.2em 0 .6em; }
.course h3 { font-size: 19px; font-weight: 650; line-height: 1.3; margin: 1.8em 0 .5em; }
.course h4, .course h5, .course h6 { font-size: 16px; font-weight: 650; margin: 1.5em 0 .4em; }
.course p, .course ul, .course ol, .course table, .course figure, .course pre, .course .admonition { margin-top: 0; margin-bottom: 1em; }
.course ul, .course ol { padding-left: 1.5em; }
.course li { margin: .25em 0; }
.course li > ul, .course li > ol { margin: .25em 0; }
.course a { color: var(--accent); }
.course a:hover { text-decoration-thickness: 2px; }
.course hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.course img { max-width: 100%; height: auto; }
.course blockquote { margin: 0 0 1em; padding: .2em 0 .2em 1em; border-left: 3px solid var(--line); color: var(--muted); }

/* Permalink marks after each heading, shown on hover. */
.course .headerlink { margin-left: .35em; color: var(--muted); text-decoration: none; opacity: 0; }
.course :is(h2, h3, h4):hover .headerlink, .course .headerlink:focus { opacity: 1; }

/* Code. */
.course code, .course kbd { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.course :not(pre) > code { padding: .1em .35em; border-radius: 5px; background: var(--hover); }
.course kbd { padding: .1em .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); }
.course pre { overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.course pre code { padding: 0; background: none; }

/* Tables: a hairline frame, as on the lab cards. */
.course table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; font-variant-numeric: tabular-nums; }
.course th, .course td { padding: 8px 12px; text-align: left; vertical-align: top; }
.course th { font-weight: 650; background: var(--hover); border-bottom: 1px solid var(--line); }
.course tr + tr td { border-top: 1px solid var(--line); }

/* Notes and tips: the lab's "New to the Lab?" card, a panel with an accent stripe. */
.course .admonition { padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; background: var(--panel); font-size: 15px; box-shadow: 0 2px 4px #14213609; }
.course .admonition > :last-child { margin-bottom: 0; }
.course .admonition-title { margin: -14px -18px 10px; padding: 8px 18px; border-radius: 0 11px 0 0;
  background: var(--tint); font-weight: 650; }
.course .admonition:is(.warning, .caution, .attention, .danger, .error) { border-left-color: #c77d1a; }
.course .admonition:is(.warning, .caution, .attention, .danger, .error) > .admonition-title { background: color-mix(in srgb, #c77d1a 18%, var(--panel)); }

/* Figures. */
.course figure { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin: 1.2em auto; }
.course figcaption { margin: .5em auto 0; max-width: 40rem; color: var(--muted); font-size: 14px; text-align: center; }

/* Clips (javascripts/clips.js): a muted looping video with a length tag and a Replay button. */
.course figure.clip { display: block; width: auto; max-width: 1120px; margin: 1.2em 0; }
.course .clip-frame { position: relative; }
.course .clip-frame video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.course .clip-tag, .course .clip-replay { position: absolute; padding: .2em .75em; border-radius: 999px; background: #151619d9;
  color: #f5f5f7; font-size: 12px; line-height: 1.5; }
.course .clip-tag { top: .6rem; left: .6rem; letter-spacing: .04em; pointer-events: none; }
.course .clip-replay { right: .6rem; bottom: .6rem; border: 1px solid #3a3d46; cursor: pointer; font-weight: 600; }
.course .clip-replay:hover { border-color: var(--accent); }
.course figure.clip figcaption { max-width: none; margin: .6em 0 0; text-align: left; }
@media (max-width: 480px) {
  .course .clip-tag { top: .35rem; left: .35rem; }
  .course .clip-replay { right: .35rem; bottom: .35rem; }
}

/* Sign-in form (pages/login.md): one password field, as on the guides and Lifespan sign-in. */
.course .signin { max-width: 460px; margin: 1.4em 0; padding: 24px; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 14px; }
.course .signin label { display: block; font-weight: 650; margin-bottom: 6px; }
.course .signin input[type="password"] { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); font: inherit; color: inherit; }
.course .signin button { margin-top: 14px; padding: 9px 18px; border: 0; border-radius: 10px; background: var(--accent);
  color: var(--panel); font: inherit; font-weight: 650; cursor: pointer; }
.course .signin .signin-note { margin: 0 0 12px; color: var(--accent); font-weight: 650; }
