/* Yoshuko brand on Material for MkDocs — LIGHT only.
   Values from lms/static/design-system/tokens.css. */
:root {
  --yk-brown: #7B5F5F;
  --yk-brown-dark: #5F4848;
  --yk-ink: #2C2321;
  --yk-bg: #FBFAF9;
  --yk-surface: #FFFFFF;
  --yk-raised: #F5F2F0;
  --yk-line: #EDE7E4;
  --yk-accent: #D97706;

  --md-primary-fg-color: var(--yk-brown);
  --md-primary-fg-color--light: #9A7F7F;
  --md-primary-fg-color--dark: var(--yk-brown-dark);
  --md-accent-fg-color: var(--yk-accent);
  --md-accent-fg-color--transparent: rgba(217, 119, 6, 0.1);
  --md-default-bg-color: var(--yk-bg);
  --md-default-fg-color: rgba(44, 35, 33, 0.87);
  --md-typeset-color: var(--yk-ink);
  --md-typeset-a-color: var(--yk-brown);
  --md-code-bg-color: var(--yk-raised);
  --md-text-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --md-code-font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
}

/* ── Header: the product's own navbar, not a docs title bar ─────────────────
   Mirrors lms/templates/base.html `.navbar-yoshuko`: sunken band, 40px wordmark,
   ink links that turn brown, and the Get Started / Sign In two-tone pill.
   The tab row (search first) renders inside the header — see partials/tabs.html. */
.md-header.docs-header {
  background-color: var(--yk-line);            /* --color-surface-sunken */
  color: #17130F;                               /* --color-fg */
  box-shadow: none;
}
.docs-header__inner { height: 2.8rem; padding: 0 0.6rem; gap: 0.4rem; }
.docs-header .md-header__button { color: #17130F; margin: 0; }
.docs-header-brand { display: inline-flex; align-items: center; margin-right: auto; }
.docs-header-logo { height: 40px; width: auto; display: block; }
.docs-header__nav { display: flex; align-items: center; gap: 0.2rem; }
.docs-header__nav[hidden] { display: none; }
.docs-header__link[hidden] { display: none; }
.docs-header__link {
  color: #17130F;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  cursor: pointer;
}
.docs-header__link:hover,
.docs-header__link:focus-visible { color: var(--yk-brown); }
.docs-header__link--current { color: var(--yk-brown); font-weight: 600; }
.docs-header__menu { position: relative; }
.docs-header__menu > summary { list-style: none; }
.docs-header__menu > summary::-webkit-details-marker { display: none; }
.docs-header__menu > summary::after {
  content: ""; display: inline-block; margin-left: 0.3rem; vertical-align: 0.15em;
  border-top: 0.25rem solid currentColor; border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
}
.docs-header__menu-list {
  position: absolute; right: 0; top: 100%; z-index: 5; min-width: 11rem;
  padding: 0.3rem 0; background: var(--yk-surface); border: 1px solid var(--yk-line);
  border-radius: 0.4rem; box-shadow: 0 4px 14px rgba(44, 35, 33, 0.1);
}
.docs-header__menu-list a { display: block; padding: 0.35rem 0.8rem; color: #17130F; font-size: 0.75rem; }
.docs-header__menu-list a:hover { background: var(--yk-raised); color: var(--yk-brown); }
.docs-split { display: inline-flex; border-radius: 999px; overflow: hidden; margin-left: 0.4rem; }
.docs-split__half {
  display: inline-flex; align-items: center; padding: 0.2rem 0.8rem;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap; color: #fff;
}
.docs-split__primary { background: var(--yk-brown); }
.docs-split__secondary { background: #866C6C; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.docs-split__half:hover,
.docs-split__half:focus-visible { background: var(--yk-brown-dark); color: #fff; }

/* ── Tab row: search first, left-justified, then the sections ─────────────── */
.md-tabs.docs-tabs {
  display: block;
  overflow: visible;                            /* the search results panel hangs below */
  background-color: var(--yk-surface);
  color: var(--yk-ink);
  border-bottom: 1px solid var(--yk-line);
}
.docs-tabs-row { display: flex; align-items: center; gap: 0.8rem; padding: 0 0.6rem; }
.docs-tabs .md-search { flex: 0 0 auto; }
.docs-tabs .md-search__inner { float: none; }
.docs-tabs .md-tabs__list { flex: 1 1 auto; min-width: 0; margin-left: 0; overflow-x: auto; white-space: nowrap; }
.md-tabs__link { color: rgba(44, 35, 33, 0.7); opacity: 1; }
.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link { color: var(--yk-brown); }
.md-tabs__item.docs-tab-home .md-tabs__link { font-weight: 700; color: var(--yk-ink); }
.md-search__form { background-color: var(--yk-raised); }
.md-search__form:hover { background-color: var(--yk-line); }
.md-search__input,
.md-search__input::placeholder,
.md-search__icon { color: rgba(44, 35, 33, 0.7); }

/* Header 2.8rem + tab row 2.4rem: keep the sticky sidebars below both. */
.md-header--lifted ~ .md-container .md-sidebar { top: 5.2rem; }

/* Below 76.25em Material hides the tabs (the drawer carries the sections): keep the
   row for search, drop the list. Below 60em search is Material's full-screen overlay,
   opened from the header button — the row collapses but must stay rendered, because
   `display: none` would hide the overlay with it. */
@media screen and (max-width: 76.234375em) {
  .docs-tabs .md-tabs__list { display: none; }
  .md-header--lifted ~ .md-container .md-sidebar { top: 0; }
}
@media screen and (max-width: 59.984375em) {
  .md-tabs.docs-tabs { border-bottom: 0; }
  .docs-tabs-row { padding: 0; }
  #docs-guest-nav .docs-header__link,
  .docs-header__menu { display: none; }
}
@media screen and (max-width: 35em) {
  .docs-header-logo { height: 28px; }
  .docs-split { display: none; }
  /* A reader who is both learner and creator carries two links beside the logo. */
  #docs-user-nav .docs-header__link { font-size: 0.65rem; padding: 0.3rem 0.35rem; white-space: normal; line-height: 1.15; text-align: right; }
  .docs-header__inner:has(#docs-user-nav:not([hidden])) { gap: 0.1rem; }
  .docs-header__inner:has(#docs-user-nav:not([hidden])) .docs-header-logo { height: 20px; }
}

.md-typeset h1 { color: var(--yk-ink); font-weight: 700; }
.md-typeset h2 { font-weight: 650; }

/* QA-captured screenshots: framed, never wider than the column. */
.md-typeset img.docs-shot {
  display: block;
  max-width: 100%;
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--yk-line);
  border-radius: 0.4rem;
  box-shadow: 0 2px 10px rgba(44, 35, 33, 0.08);
}

/* ── Front page ─────────────────────────────────────────────────────────── */
.md-typeset .yk-hero {
  margin: 0 0 2rem;
  padding: 2rem 1.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--yk-raised) 100%);
  border: 1px solid var(--yk-line);
}
.md-typeset .yk-hero h1 { margin: 0 0 0.6rem; font-size: 2rem; line-height: 1.2; }
.md-typeset .yk-hero p { font-size: 0.95rem; max-width: 38rem; margin: 0 0 1.2rem; }
.md-typeset .yk-hero .md-button { margin: 0.2rem 0.4rem 0.2rem 0; }

.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border-radius: 0.6rem;
  border: 1px solid var(--yk-line);
  background: var(--yk-surface);
}
.md-typeset .grid.cards > ul > li:hover { border-color: var(--yk-brown); box-shadow: 0 4px 14px rgba(44, 35, 33, 0.08); }
.md-typeset .grid.cards > ul > li > p:first-child strong { font-size: 0.85rem; color: var(--yk-ink); }

.md-typeset .yk-steps { counter-reset: yk-step; list-style: none; padding-left: 0; margin-left: 0; }
.md-typeset .yk-steps > li { counter-increment: yk-step; position: relative; padding-left: 2.4rem; margin-bottom: 0.9rem; }
.md-typeset .yk-steps > li::before {
  content: counter(yk-step);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center;
  border-radius: 50%; background: var(--yk-brown); color: #fff; font-weight: 600; font-size: 0.75rem;
}

/* Home page: the four audience cards as a 2 x 2 grid (never a 3 + 1 orphan). */
.md-typeset .grid.cards.yk-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .grid.cards.yk-two { grid-template-columns: 1fr; }
}

/* WCAG 2.2 AA (found by the T-212 axe sweep, 2026-10-03).
   1. Material's footer copyright is white at 30% opacity on near-black: unreadable. */
.md-footer-meta .md-copyright,
.md-footer-meta .md-copyright a { color: rgba(255, 255, 255, 0.78); }
.md-footer-meta .md-copyright a { text-decoration: underline; }
/* 2. A link inside a sentence or a list item that differs from its text only by colour
      fails link-in-text-block (colour alone is not a cue). Underline them; buttons, header
      anchors and the card grid keep their own treatment. */
.md-typeset :is(p, li) > a:not(.md-button):not(.headerlink):not(.md-nav__link) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
