/* Yoshuko brand on Material for MkDocs — LIGHT only.
   Values from lms/static/design-system/tokens.css.
   Also on [data-md-color-scheme] (set on <body>): Material redeclares its colour variables
   there, which shadows anything set on :root alone — the footer stayed charcoal. */
:root,
[data-md-color-scheme="default"] {
  --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);
  /* Inter has no Arabic glyphs, and font-src is 'self': the Arabic run falls to an installed
     Arabic face (Noto on Android/Linux, Geeza on Apple, Segoe UI/Tahoma on Windows) instead of
     whatever the OS picks. */
  --md-text-font-family: "Inter", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --md-code-font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --md-text-font: "Inter";
  --md-code-font: "JetBrains Mono";
  --md-code-fg-color: #2C2321;
  /* The brand's dark band (--color-bg-hero), not Material's neutral charcoal. */
  --md-footer-bg-color: #2C2321;
  --md-footer-bg-color--dark: #1F1917;
  --md-footer-fg-color: #FFFFFF;
  --md-footer-fg-color--light: rgba(255, 255, 255, 0.78);
  --md-footer-fg-color--lighter: rgba(255, 255, 255, 0.6);
}

/* Self-hosted (font-src 'self'): theme.font is false, so Material loads no font at all and
   the stack above fell through to Roboto. One variable file per subset covers 400-800. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
}

/* ── 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; }
/* Material's 1.2rem icon + .4rem padding is 40px: the menu and search buttons are the two
   primary controls on a phone, so they get the 44px floor. */
.docs-header .md-header__button { min-width: 2.2rem; min-height: 2.2rem; }
/* Centre the icon only where Material SHOWS each button: a bare display here outranks its
   desktop display:none (same specificity, later file) and brought both back at 1440. */
@media screen and (max-width: 76.234375em) {
  .docs-header .md-header__button[for=__drawer] { display: inline-flex; align-items: center; justify-content: center; }
}
@media screen and (max-width: 59.984375em) {
  .docs-header .md-header__button[for=__search] { display: inline-flex; align-items: center; justify-content: center; }
}
.docs-header-brand { display: inline-flex; align-items: center; margin-inline-end: 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-inline-start: 0.3rem; vertical-align: 0.15em;
  border-top: 0.25rem solid currentColor; border-inline: 0.25rem solid transparent;
}
.docs-header__menu-list {
  /* Anchored at the inline END: in English the menus sit near the right edge and open leftwards;
     in Arabic the language menu is the left-most item and must open rightwards, on screen. */
  position: absolute; inset-inline-end: 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-inline-start: 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-inline-start: 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-inline-start: 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; }
  /* "Why Yoshuko" goes; the LANGUAGE menu stays — it shares .docs-header__menu, and hiding it
     here left phones and tablets with no way to change language at all. */
  #docs-guest-nav .docs-header__link,
  .docs-header__menu:not(.docs-header__lang) { display: none; }
  /* The switcher becomes a 44px globe; its name stays for screen readers. */
  .docs-header__lang > summary { padding: 0; justify-content: center; }
  .docs-header__lang > summary::after { display: none; }
  .docs-header__lang .docs-header__lang-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@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: end; }
  .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: 800; letter-spacing: -0.02em; }
.md-typeset h2 { color: var(--yk-ink); font-weight: 700; letter-spacing: -0.01em; }
.md-typeset h3 { color: var(--yk-ink); font-weight: 600; }

/* QA-captured screenshots: framed, never wider than the column. */
.md-typeset img.docs-shot {
  display: block;
  max-width: 100%;
  /* Centred: a 390px phone frame no longer leaves a dead half-column beside it. One rhythm
     above and below every picture. */
  margin: 1.2rem auto 1.6rem;
  cursor: zoom-in;
  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: var(--yk-surface);
  border: 1px solid var(--yk-line);
  border-top: 3px solid var(--yk-brown);
}
.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-block: 0.2rem; margin-inline: 0 0.4rem; }

.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 { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.md-typeset .grid.cards > ul > li:hover { border-color: var(--yk-brown); box-shadow: 0 4px 14px rgba(44, 35, 33, 0.08); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .md-typeset .grid.cards > ul > li:hover { transform: none; } }
.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-inline-start: 0; margin-inline-start: 0; }
/* Logical sides: in Arabic the number sits at the right, beside its text, not ~1000px away. */
.md-typeset .yk-steps > li { counter-increment: yk-step; position: relative; padding-inline-start: 2.4rem; margin-inline-start: 0; margin-bottom: 0.9rem; }
.md-typeset .yk-steps > li::before {
  content: counter(yk-step);
  position: absolute; inset-inline-start: 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;
}

/* ── Design QA r3 (2026-10-26): the rest of Material's defaults onto the palette ── */

/* The docs container matches the app's container-xl, so the logo does not jump. */
.md-grid { max-width: 1296px; }

/* Buttons: the app's 8px radius, 600 weight and a 44px target. */
.md-typeset .md-button {
  display: inline-flex; align-items: center; min-height: 2.2rem;
  padding: 0.45rem 1.1rem; border-radius: 8px; border-width: 1px; font-weight: 600;
}
.md-typeset .md-button--primary { background-color: var(--yk-brown); border-color: var(--yk-brown); }
.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus { background-color: var(--yk-brown-dark); border-color: var(--yk-brown-dark); color: #fff; }

/* Admonitions: Material's blue note, cyan info and orange warning become the brand's
   brown and amber. One shape for all of them: raised surface, coloured left rule. */
.md-typeset .admonition, .md-typeset details {
  border-width: 0; border-inline-start-width: 0.2rem; border-radius: 0.4rem; box-shadow: none;
  background-color: var(--yk-raised); font-size: 0.75rem;
}
.md-typeset :is(.admonition, details):is(.note, .info, .abstract, .tip, .question, .example, .quote) { border-color: var(--yk-brown); }
.md-typeset :is(.note, .info, .abstract, .tip, .question, .example, .quote) > :is(.admonition-title, summary) { background-color: rgba(123, 95, 95, 0.1); }
.md-typeset :is(.note, .info, .abstract, .tip, .question, .example, .quote) > :is(.admonition-title, summary)::before { background-color: var(--yk-brown); }
.md-typeset :is(.admonition, details):is(.warning, .caution, .attention) { border-color: var(--yk-accent); }
.md-typeset :is(.warning, .caution, .attention) > :is(.admonition-title, summary) { background-color: rgba(217, 119, 6, 0.1); color: #92400E; }
.md-typeset :is(.warning, .caution, .attention) > :is(.admonition-title, summary)::before { background-color: var(--yk-accent); }
.md-typeset :is(.admonition, details):is(.success, .check, .done) { border-color: #15803D; }
.md-typeset :is(.success, .check, .done) > :is(.admonition-title, summary) { background-color: #F0FDF4; }
.md-typeset :is(.success, .check, .done) > :is(.admonition-title, summary)::before { background-color: #15803D; }
.md-typeset :is(.admonition, details):is(.danger, .error, .failure, .bug) { border-color: #8F4A46; }
.md-typeset :is(.danger, .error, .failure, .bug) > :is(.admonition-title, summary) { background-color: rgba(143, 74, 70, 0.1); }
.md-typeset :is(.danger, .error, .failure, .bug) > :is(.admonition-title, summary)::before { background-color: #8F4A46; }
.md-typeset .admonition-title, .md-typeset summary { font-weight: 700; color: var(--yk-ink); }

/* The copy-me prompt on the agents page is a blockquote: full ink, not Material's grey aside.
   [dir] matches Material's own `[dir=ltr] .md-typeset blockquote` rule, which otherwise
   wins on specificity and repaints the rule grey. */
[dir] .md-typeset blockquote {
  color: var(--yk-ink); background: var(--yk-raised);
  border: 0; border-inline-start: 0.2rem solid var(--yk-brown);
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: 0.4rem; border-end-end-radius: 0.4rem;
  padding: 0.4rem 1rem;
}

/* Inline code: brand ink on the raised surface, never 11px grey on grey. */
.md-typeset code { color: var(--yk-ink); background-color: var(--yk-raised); }
.md-typeset a > code { color: var(--yk-brown); white-space: nowrap; }

/* Code blocks scroll INSIDE the block. The scroll is announced by a shadow at whichever
   edge still has content (background-attachment local/scroll), and the scrollbar stays
   visible on pointer devices — a clipped line with no cue reads as a truncated sample. */
.md-typeset pre > code {
  background:
    linear-gradient(to right, var(--yk-raised) 30%, rgba(245, 242, 240, 0)) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--yk-raised) 30%, rgba(245, 242, 240, 0)) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(44, 35, 33, 0.22), rgba(44, 35, 33, 0)) left center / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(44, 35, 33, 0.22), rgba(44, 35, 33, 0)) right center / 0.8rem 100% no-repeat scroll,
    var(--yk-raised);
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 35, 33, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}
/* The copy button sits on its own chip, so the first line slides UNDER it instead of
   being drawn through it. */
.md-typeset .md-clipboard {
  color: rgba(44, 35, 33, 0.6); background-color: var(--yk-raised);
  border-radius: 0.3rem; z-index: 2;
}
.md-typeset .md-clipboard:hover, .md-typeset .md-clipboard:focus { color: var(--yk-brown); }
/* mkdocs-material 9.7 renders the copy control as .md-code__button, which the rule above
   never reached: a 1.2:1 glyph drawn over the first line. */
.md-typeset .md-code__button {
  color: rgba(44, 35, 33, 0.72); background-color: var(--yk-surface);
  border: 1px solid var(--yk-line); border-radius: 0.3rem;
}
.md-typeset .md-code__button:hover, .md-typeset .md-code__button:focus-visible { color: var(--yk-brown); border-color: var(--yk-brown); }
@media screen and (max-width: 44.984375em) {
  .md-typeset .md-code__button { min-width: 2.2rem; min-height: 2.2rem; }
}

/* Syntax colours on the brand ramp instead of Material's blue/violet/pink defaults; every
   value clears 4.5:1 on --yk-raised. */
:root, [data-md-color-scheme="default"] {
  --md-code-hl-keyword-color: #7B5F5F;
  --md-code-hl-name-color: #2C2321;
  --md-code-hl-function-color: #5F4848;
  --md-code-hl-string-color: #4A6B4A;
  --md-code-hl-number-color: #8F4A46;
  --md-code-hl-constant-color: #64517E;
  --md-code-hl-special-color: #8F4A46;
  --md-code-hl-operator-color: #5E554F;
  --md-code-hl-punctuation-color: #5E554F;
  --md-code-hl-comment-color: #6B625C;
  --md-code-hl-generic-color: #6B625C;
  --md-code-hl-variable-color: #44607F;
}
.md-typeset .md-code__nav { background-color: var(--yk-raised); }

/* Code tabs (curl / Python / JavaScript): brown active rule, readable labels. */
.js .md-typeset .tabbed-labels::before { background: var(--yk-brown); height: 2px; }
.md-typeset .tabbed-labels > label { font-size: 0.7rem; font-weight: 600; color: rgba(44, 35, 33, 0.7); }
.md-typeset .tabbed-set > input:checked + label,
.md-typeset .tabbed-labels > label:hover { color: var(--yk-ink); }

/* Tables: 14px, a header surface, and identifiers that never break mid-token —
   `subscription_inactive` must wrap whole or the table scrolls (with a shadow cue). */
.md-typeset table:not([class]) { font-size: 0.7rem; border-color: var(--yk-line); }
.md-typeset table:not([class]) th { background-color: var(--yk-raised); color: var(--yk-ink); font-weight: 600; }
.md-typeset table:not([class]) :is(td, th) code { word-break: normal; overflow-wrap: normal; white-space: nowrap; }
/* On a phone a nowrap identifier pushed the last column off screen: let it wrap there. */
@media screen and (max-width: 44.984375em) {
  .md-typeset table:not([class]) :is(td, th) code { white-space: normal; overflow-wrap: anywhere; }
}
/* Tables fill the column, so two tables on one page share one width. */
.md-typeset__table { width: 100%; }
.md-typeset__table table:not([class]) { display: table; width: 100%; }
.md-typeset :is(td, th) > a:not(.md-button):not(.headerlink) { text-decoration: underline; text-underline-offset: 2px; }
.md-typeset__scrollwrap {
  background:
    linear-gradient(to right, var(--yk-bg) 30%, rgba(251, 250, 249, 0)) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--yk-bg) 30%, rgba(251, 250, 249, 0)) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(44, 35, 33, 0.18), rgba(44, 35, 33, 0)) left center / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(44, 35, 33, 0.18), rgba(44, 35, 33, 0)) right center / 0.8rem 100% no-repeat scroll;
}
/* A two-column key/value table written with blank headers paints an empty grey bar. */
.md-typeset table:not([class]) thead:not(:has(th:not(:empty))) { display: none; }

/* Footer: brand dark band; the Previous label stays visible on phones (an arrow alone is
   an unlabelled control), and the generator credit is off (mkdocs.yml extra.generator). */
.md-footer__link { flex: 1 1 0; }
.md-footer__link--next { justify-content: flex-end; text-align: end; }
@media screen and (max-width: 44.984375em) {
  .md-footer__link--prev .md-footer__title { display: block; }
  .md-footer__link { padding-top: 0.8rem; }
}
/* Phones: Previous and Next stack, so neither page title is cut to "Creator g…". */
@media screen and (max-width: 35em) {
  .md-footer__inner { flex-direction: column; }
  .md-footer__link { flex: 1 1 auto; width: 100%; }
  .md-footer__link .md-ellipsis { white-space: normal; overflow: visible; }
}
.md-footer-meta { background-color: var(--md-footer-bg-color--dark); }
/* "© 2026 Intelligena LLC" is one left-to-right phrase; in Arabic bidi otherwise reorders it to
   "Intelligena LLC 2026 ©". Kept at the inline end of the Arabic footer. */
[dir=rtl] .md-copyright__highlight { direction: ltr; text-align: end; }
.yk-footer-legal { display: flex; flex-wrap: wrap; gap: 0 0.8rem; margin-top: 0.3rem; }
.yk-footer-legal a { display: inline-flex; align-items: center; min-height: 2.2rem; color: rgba(255, 255, 255, 0.78); text-decoration: underline; text-underline-offset: 2px; }
.yk-footer-legal a:hover, .yk-footer-legal a:focus { color: #fff; }

/* Search: readable placeholder, 44px clear target. */
.md-search__input::placeholder { color: #6B625C; }
@media screen and (max-width: 59.984375em) {
  .md-search__options .md-search__icon { min-width: 2.2rem; min-height: 2.2rem; }
}
/* Heading permalinks are a hover affordance; on touch they are 14px targets nobody needs. */
@media (hover: none) { .md-typeset .headerlink { display: none; } }

/* Left nav: the current page carries weight and a rule, not colour alone. */
.md-nav__link--active { font-weight: 600; }
.md-sidebar--primary .md-nav__item .md-nav__link--active { box-shadow: inset 2px 0 0 var(--yk-brown); padding-inline-start: 0.4rem; }
/* The rule sits at the inline START: the right edge in Arabic, next to the label. */
[dir=rtl] .md-sidebar--primary .md-nav__item .md-nav__link--active { box-shadow: inset -2px 0 0 var(--yk-brown); }

/* ── Front page refinements ── */
.md-typeset .yk-hero h1 { letter-spacing: -0.02em; }
@media screen and (max-width: 35em) {
  .md-typeset .yk-hero { padding: 1.25rem 1rem; }
  .md-typeset .yk-hero h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
  .md-typeset .yk-hero .md-button { width: 100%; justify-content: center; }
}
/* Audience cards: the whole card is the target; the inner rule under a short title goes. */
.md-typeset .grid.cards.yk-two > ul > li { position: relative; }
.md-typeset .grid.cards.yk-two > ul > li > hr { display: none; }
.md-typeset .grid.cards.yk-two > ul > li > p:last-child > a { font-weight: 600; text-decoration: none; }
.md-typeset .grid.cards.yk-two > ul > li > p:last-child > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.md-typeset .grid.cards.yk-two > ul > li > p:last-child > a::before {
  content: "→"; display: inline-block; margin-inline-end: 0.35em;
  font-size: 1.1em; line-height: 1; vertical-align: 0.08em; transition: transform 0.15s ease;
}
[dir=rtl] .md-typeset .grid.cards.yk-two > ul > li > p:last-child > a::before { content: "←"; }
.md-typeset .grid.cards.yk-two > ul > li:hover > p:last-child > a::before { transform: translateX(0.15em); }
[dir=rtl] .md-typeset .grid.cards.yk-two > ul > li:hover > p:last-child > a::before { transform: translateX(-0.15em); }
.md-typeset .grid.cards.yk-two > ul > li > p:not(:last-child) a { position: relative; z-index: 1; }
/* Popular tasks: three columns from tablet up (never 2 + an orphan), plain link list. */
.md-typeset .grid.yk-three { grid-template-columns: 1fr; }
@media screen and (min-width: 45em) {
  .md-typeset .grid.yk-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.md-typeset .grid.yk-three ul { list-style: none; margin-inline-start: 0; padding-inline-start: 0; }
/* margin-inline-start, not margin-left: Material's [dir=rtl] li margin-right survived the old rule. */
[dir] .md-typeset .grid.yk-three li { margin-inline-start: 0; }
/* A column of links is unambiguous: no underline at rest (twelve underlines in one block read as
   noise), underline on hover and focus. */
[dir] .md-typeset .grid.yk-three li > a { text-decoration: none; }
[dir] .md-typeset .grid.yk-three li > a:hover, [dir] .md-typeset .grid.yk-three li > a:focus-visible { text-decoration: underline; }
@media screen and (max-width: 35em) {
  .md-typeset .grid.yk-three li a { display: block; width: fit-content; padding: 10px 0; }
  .md-typeset .grid.yk-three li { margin-bottom: 0; }
}

.docs-header__lang > summary {
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  min-width: 2.2rem; min-height: 2.2rem; box-sizing: border-box; cursor: pointer;
}
.docs-header__lang-icon { display: inline-flex; width: 1.1rem; height: 1.1rem; }
.docs-header__lang-icon svg { width: 100%; height: 100%; fill: currentColor; }
.docs-header__lang .docs-header__menu-list a { min-height: 2.2rem; display: flex; align-items: center; }
.docs-header__lang .docs-header__menu-list a[aria-current="true"] { font-weight: 700; }

/* ── Design QA r12b: right-to-left and Arabic ───────────────────────────────── */
/* An English run left inside an Arabic page keeps its own direction, so its full stop stays at
   its end instead of jumping to the start of the line. */
[dir=rtl] .md-typeset :is(p, li, td, th, h1, h2, h3, h4, .admonition-title) { unicode-bidi: plaintext; }
/* Buttons are atomic boxes that bidi cannot see, so a paragraph of buttons alone would resolve
   left-to-right and put "Get started" on the wrong side. */
[dir=rtl] .md-typeset p:has(> .md-button) { unicode-bidi: normal; }
/* A short code span (a file name, a button label) is one left-to-right unit that never splits
   its punctuation across lines. */
[dir=rtl] .md-typeset code { unicode-bidi: isolate; direction: ltr; }
[dir=rtl] .md-typeset :is(p, li) > code { white-space: nowrap; }
/* An English gloss after an Arabic label, "(Resume)", is one isolated LTR unit with its brackets. */
[dir=rtl] .md-typeset bdi { unicode-bidi: isolate; direction: ltr; }
/* Arabic script is never slanted: the fallback face fakes an oblique that looks broken. Emphasis
   becomes weight instead. Arabic also needs more room between lines than Latin. */
[lang="ar"] .md-typeset em { font-style: normal; font-weight: 600; }
[lang="ar"] .md-typeset { line-height: 1.8; font-size: 0.85rem; }
[lang="ar"] .md-typeset h1 { letter-spacing: 0; }
[lang="ar"] .md-typeset :is(h2, h3) { letter-spacing: 0; }

/* ── Design QA r12b: links, terms, pictures ─────────────────────────────────── */
/* One rule each: solid underline = link, dotted = glossary term. A term inside a link, a button
   or a heading is not marked a second time. */
.md-typeset :is(a, .md-button, h1, h2, h3, h4, h5, h6, .grid.cards > ul > li > p:first-child) abbr { border-bottom: 0; text-decoration: none; cursor: inherit; }
/* The "Related" list at the foot of a page is a list of links, not prose: a 44px row on touch
   screens. (Keyed on the heading's id, which every language keeps; `a:only-child` would also
   catch a link inside a sentence, since text nodes are not siblings.) */
@media screen and (max-width: 59.984375em) {
  /* block + fit-content, not inline-block: an atomic box hides the text from bidi (see above). */
  .md-typeset h2#related + ul > li > a { display: block; width: fit-content; padding-block: 10px; }
  .md-typeset h2#related + ul > li { margin-bottom: 0; }
}
/* The docs home is a menu, not a chapter: no "Next" band under it (the hero already offers
   Get started). */
.md-container:has(.yk-hero) .md-footer__inner { display: none; }
/* A note reads as a quiet aside with the brand rule, not a heavy filled box; the icon is an
   "info" mark, not Material's pencil (which says "edit this"). */
.md-typeset :is(.admonition, details).note { background-color: transparent; }
.md-typeset .note > :is(.admonition-title, summary) { background-color: transparent; }
:root, [data-md-color-scheme="default"] {
  --md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2z"/></svg>');
}
