/* The tone scales on Zensical, in the Watership family look. watership-tokens.css loads first: it holds the
   fonts, the color tokens for both themes (light-dark(), pinned by data-md-color-scheme), and the shared header,
   footer, menu, and pill classes. This file maps the theme's variables to the tokens and fits its markup. */

/* The theme's root font size is 20px and grows on wide screens (22px from 100em, 24px from 125em), so a rem
   here is not the family's 16px. The six steps of the family type scale, and the widths the tokens give in rem,
   are restated in px. The retired steps resolve onto the scale. */
:root {
  --ws-text-sm: 13px; --ws-text-md: 15px; --ws-text-base: 17px; --ws-text-lg: 19px; --ws-text-xl: 24px;
  --ws-text-2xl: clamp(32px, 27.2px + 1.2vw, 40px);
  --ws-text-2xs: var(--ws-text-sm); --ws-text-xs: var(--ws-text-sm); --ws-text-3xl: var(--ws-text-2xl);
  --ws-content-w: 832px;
  --ws-page-w: 1408px;
}

:root, [data-md-color-scheme] {
  --md-text-font: "Inter";
  --md-code-font: "JetBrains Mono";
  --md-default-bg-color: var(--ws-paper);
  --md-default-fg-color: var(--ws-ink);
  --md-default-fg-color--light: var(--ws-soft);
  --md-default-fg-color--lighter: var(--ws-faint);
  --md-default-fg-color--lightest: var(--ws-rule);
  --md-primary-fg-color: var(--ws-paper);
  --md-primary-fg-color--light: var(--ws-wash);
  --md-primary-fg-color--dark: var(--ws-paper);
  --md-primary-bg-color: var(--ws-ink);
  --md-primary-bg-color--light: var(--ws-soft);
  --md-accent-fg-color: var(--ws-accent);
  --md-accent-fg-color--transparent: var(--ws-accent-wash);
  --md-accent-bg-color: var(--ws-on-accent);
  --md-typeset-color: var(--ws-body);
  --md-typeset-a-color: var(--ws-ink);
  --md-code-bg-color: var(--ws-wash);
  --md-code-fg-color: var(--ws-ink);
  --md-code-hl-comment-color: var(--ws-code-comment);
  --md-code-hl-keyword-color: var(--ws-code-keyword);
  --md-code-hl-string-color: var(--ws-code-string);
  --md-code-hl-number-color: var(--ws-code-number);
  --md-code-hl-function-color: var(--ws-code-function);
  --md-code-hl-punctuation-color: var(--ws-code-punct);
  --md-footer-bg-color: var(--ws-paper);
  --md-footer-bg-color--dark: var(--ws-paper);
  --md-footer-fg-color: var(--ws-ink);
  --md-footer-fg-color--light: var(--ws-soft);
  --md-footer-fg-color--lighter: var(--ws-faint);
  --md-admonition-bg-color: var(--ws-sheet);
  --md-shadow-z1: none;
  --md-shadow-z2: none;
  --md-shadow-z3: var(--ws-shadow-pop);
  /* The site's own names, kept as aliases of the tokens. */
  --ts-rule: var(--ws-rule);
  --ts-wash: var(--ws-wash);
  --ts-mean-bg: var(--ws-mean-bg);
  --ts-mean-fg: var(--ws-mean-fg);
  --ts-vice-bg: var(--ws-never-bg);
  --ts-vice-fg: var(--ws-never-fg);
}

/* ---------- Page ---------- */
html { scroll-padding-top: calc(var(--ws-header-h) + 16px); }
/* The scroll padding keeps focused page content clear of the header, but a control inside the sticky header is
   always in view: without this, focusing Menu or search would scroll the page up by the header's height. */
.md-header, .md-header * { scroll-margin-top: calc(-1 * (var(--ws-header-h) + 16px)); }
/* The page behind the open phone drawer doesn't scroll (family-menu.js sets the class while it's open). */
html.ts-drawer-open { overflow: hidden; }
.md-sidebar--primary .md-sidebar__scrollwrap { overscroll-behavior: contain; }
/* The theme grows its root from 20px to 22px (100em) and 24px (125em). Every size here is in px, but the
   sidebars and gutters are in rem, so they would widen and take the room out of the prose column. The root stays
   at 20px at every width, and the column holds at 52rem on wide screens. */
@media screen and (min-width: 100em) { html { font-size: 125%; } }
body { background: var(--ws-paper); }
:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
/* The html scroll padding already clears the header, so the theme's own target margin would double the gap. */
.md-typeset :target { --md-scroll-margin: 0px; }

/* ---------- Header (design spec 4 and 5) ---------- */
.md-header {
  height: var(--ws-header-h);
  background: var(--ws-header-bg);
  color: var(--ws-ink);
  border-bottom: 1px solid var(--ws-rule);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.md-header--shadow { box-shadow: none; }
.md-header__inner { height: 100%; padding: 0 var(--ws-gutter); gap: 4px; }
.ts-brand { flex: 1 1 auto; margin-left: 0; }
.ws-brand__home img, .ws-footer__lead img, .ts-wordmark { width: auto; height: 20px; }
@media (max-width: 480px) { .ws-brand__home img { height: 18px; } }
.md-header__button { box-sizing: border-box; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: var(--ws-radius); color: var(--ws-soft); }
.md-header__button:hover { background: var(--ws-wash); color: var(--ws-ink); opacity: 1; }
/* One header icon set across the family: 18px outline icons, 1.75 stroke, round caps (the theme button's style). */
.md-header__button.md-icon svg { width: 18px; height: 18px; fill: none; }
.ts-drawer-button .ts-icon-close { display: none; }
.ts-drawer-button[aria-expanded="true"] .ts-icon-menu { display: none; }
.ts-drawer-button[aria-expanded="true"] .ts-icon-close { display: block; }
.md-header__option { margin: 0; }

/* The Watership Content Model menu: a nav link, then the shared menu panel. */
.ts-family { flex-shrink: 0; }
.ts-family__summary { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: var(--ws-radius); color: var(--ws-soft); cursor: pointer; font: var(--ws-weight-regular) var(--ws-text-sm)/1 var(--ws-font-ui); list-style: none; white-space: nowrap; }
.ts-family__summary::-webkit-details-marker { display: none; }
.ts-family__summary:hover, .ts-family[open] > .ts-family__summary { background: var(--ws-wash); color: var(--ws-ink); }
.ts-family__chevron { color: var(--ws-faint); }
.ts-family[open] .ts-family__chevron { transform: rotate(180deg); }
.ts-family__icon { display: none; }
.ts-family__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
/* The data file, a site item like the other sites' exports, before the Watership Content Model menu. */
.ts-navlink { flex-shrink: 0; font: var(--ws-type-ui); white-space: nowrap; }
/* Wherever the navigation is a drawer (below the theme's 76.25em breakpoint) the data file and the Watership Content Model menu
   move to it (the drawer ends with the family list, and "The data" page links the file), and search is the icon
   button, so the header holds the family's phone pattern: the brand, search, the theme button, and "Menu" at the
   right edge. */
@media screen and (max-width: 76.234375em) {
  .md-header .ts-navlink, .md-header .ts-family { display: none; }
}
.ts-family__menu { line-height: var(--ws-leading-ui); }

/* ---------- Navigation (design spec 10.6) ---------- */
/* Material sizes the TOC entries at .7rem of its 20 to 24px root, inside a .md-typeset span. */
.md-nav, .md-nav__title, .md-nav__link, .md-ellipsis, .md-nav .md-typeset { font-family: var(--ws-font-ui); font-size: var(--ws-text-sm); line-height: var(--ws-leading-ui); }
.md-nav__link { margin-top: 2px; padding: 7px 10px; border-radius: var(--ws-radius); color: var(--ws-soft); font-weight: var(--ws-weight-regular); }
.md-nav__link:hover, .md-nav__link:focus-visible { color: var(--ws-ink); }
.md-sidebar--primary .md-nav__link:hover { background: var(--ws-wash); }
.md-sidebar--primary a.md-nav__link--active, .md-sidebar--primary a.md-nav__link--active:hover, .ts-nav-family__current {
  background: var(--ws-wash); color: var(--ws-ink); font-weight: var(--ws-weight-strong);
  box-shadow: inset 2px 0 0 var(--ws-accent); border-radius: 0 var(--ws-radius) var(--ws-radius) 0;
}
.md-nav__item--section > .md-nav__link, .md-nav__item--section > .md-nav__container > .md-nav__link, .ts-nav-family__title, .md-nav--secondary > .md-nav__title {
  color: var(--ws-faint); font: var(--ws-type-label); text-transform: none;
}
.md-nav__item--section > .md-nav__link[for], .md-nav__item--section > .md-nav__container > .md-nav__link { color: var(--ws-faint); }
.ts-nav-family { margin-top: 20px; }
/* One indent for the whole sidebar (design spec 10.6): top-level items and group titles ("The six scales",
   "Watership Content Model") share the items' 10px inset, and each group's pages sit one 12px step in. The theme
   draws the section's row as a link inside a link-styled container, which doubled the inset of its title. */
.md-sidebar--primary .md-nav__link.md-nav__container { margin-top: 0; padding: 0; }
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list { padding-left: 12px; }
}
.md-nav__title { font-family: var(--ws-font-ui); }
.md-nav--primary .md-nav__title { background: var(--ws-paper); color: var(--ws-ink); box-shadow: none; border-bottom: 1px solid var(--ws-rule); }
.md-nav--primary .md-nav__title .md-logo img { height: 20px; width: auto; }
/* On this page: a hairline rail with the current entry marked on it. */
.md-nav--secondary .md-nav__list { border-left: 1px solid var(--ws-rule); }
.md-nav--secondary .md-nav__link { margin: 0 0 0 -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; border-radius: 0; }
.md-nav--secondary .md-nav__link--active { border-left-color: var(--ws-accent); color: var(--ws-ink); }
.md-nav--secondary .md-nav__list .md-nav__list { border-left: 0; }
.md-path { font: var(--ws-type-ui); color: var(--ws-faint); }
.md-path__link { color: var(--ws-faint); }
.md-path__link:hover { color: var(--ws-ink); }

/* ---------- Content (design spec 3, type scale 5) ---------- */
/* The theme tracks all of its text at -.01em; the family tracks only h1 and h2. */
.md-typeset { color: var(--ws-body); font: var(--ws-type-body); letter-spacing: normal; font-feature-settings: "kern", "liga"; }
.md-typeset :is(h1, h2, h3, h4, h5, h6) { color: var(--ws-ink); }
/* The family rhythm (type scale section 5): 20px under blocks, 4px between list items, and fixed space above
   and below each heading level. */
.md-typeset h1 { margin: 0 0 var(--ws-space-3); font: var(--ws-type-h1); letter-spacing: var(--ws-tracking-head); }
.md-typeset h2 { margin: var(--ws-space-12) 0 var(--ws-space-3); font: var(--ws-type-h2); letter-spacing: var(--ws-tracking-head); }
.md-typeset h3 { margin: var(--ws-space-8) 0 var(--ws-space-2); font: var(--ws-type-h3); letter-spacing: 0; }
/* An h3 straight after an h2 reads as one heading group: the h2's 12px below it is the whole gap (the theme adds
   .8em above the h3). */
.md-typeset h2 + h3 { margin-top: 0; }
.md-typeset :is(h4, h5, h6) { margin: var(--ws-space-6) 0 var(--ws-space-2); font: var(--ws-type-h4); letter-spacing: 0; text-transform: none; }
.md-typeset :is(p, ul, ol, dl, blockquote, figure) { margin-top: 0; margin-bottom: var(--ws-space-5); }
.md-typeset :is(ul, ol) li { margin-bottom: var(--ws-space-1); }
.md-typeset li > :is(p, ul, ol) { margin-top: 0; margin-bottom: var(--ws-space-1); }
.md-typeset :is(strong, b) { color: var(--ws-ink); font-weight: var(--ws-weight-strong); }
/* Heading anchor glyph: the family label role (13px JetBrains Mono 600), whatever the heading's size. */
.md-typeset .headerlink { color: var(--ws-faint); font: var(--ws-type-label); letter-spacing: normal; }
/* Links in prose: ink, with an accent (blue) underline. */
.md-typeset a { color: var(--ws-ink); text-decoration: underline 1px color-mix(in srgb, var(--ws-accent) 70%, transparent); text-underline-offset: .2em; }
.md-typeset a:hover, .md-typeset a:focus { color: var(--ws-ink); text-decoration-color: var(--ws-accent); text-decoration-thickness: 2px; }
.md-typeset a.headerlink { text-decoration: none; }
/* Inline code is one step below the text around it: 15 in prose, 13 in tables, labels, and callout titles,
   the heading's own size in a heading. */
.md-typeset code { padding: .1em .35em; border-radius: var(--ws-radius-sm); background: var(--ws-wash); color: var(--ws-ink); font-size: var(--ws-text-md); }
.md-typeset :is(td, th, .admonition-title, summary, .tri-lab, .pair-lab, .facts) code { font-size: var(--ws-text-sm); }
.md-typeset :is(h1, h2, h3, h4, h5, h6) code { font-size: inherit; }
.md-typeset pre > code { padding: 16px 18px; border-radius: 0; background: var(--ws-code-bg); font: var(--ws-type-code); }
.md-typeset pre { margin: 0 0 var(--ws-space-5); border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); overflow: hidden; }
/* One prose column for the family: 52rem at a 16px root (832px), set on the container. */
.md-content { max-width: calc(var(--ws-content-w) + 48px); }
.md-content__inner { max-width: none; margin-left: 24px; margin-right: 24px; }
/* The theme's page grid stops at 61rem (1220px at its 20px root), which leaves the column narrower than 52rem
   beside the two sidebars; the family page width (88rem, 1408px) gives it room. */
.md-main__inner.md-grid { max-width: var(--ws-page-w); }

/* Cards: sheet, hairline, rounded. */
.md-typeset .grid.cards > ul > li, .md-typeset .grid > .card { border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); background: var(--ws-sheet); box-shadow: none; padding: 18px 20px; }
.md-typeset .grid.cards > ul > li:hover { border-color: var(--ws-rule); box-shadow: none; }
.md-typeset .grid.cards > ul > li > hr { margin: 10px 0; border-bottom-color: var(--ws-rule); }
.md-typeset .grid.cards > ul > li > p:first-child strong { font-size: var(--ws-text-lg); }

/* Tables (design spec 10.5). */
.md-typeset__scrollwrap { margin: 0 0 var(--ws-space-5); }
/* The table box is a block with no margin of its own, so the space under a table is the wrapper's 20px, the same
   as above it and as on the other sites. */
.md-typeset__table { display: block; margin-bottom: 0; padding: 0; border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); background: var(--ws-sheet); overflow-x: auto; }
.md-typeset table:not([class]) { display: table; width: 100%; margin: 0; border: 0; border-radius: 0; border-collapse: collapse; font: var(--ws-type-small); box-shadow: none; }
.md-typeset table:not([class]) th { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--ws-rule); background: var(--ws-wash); color: var(--ws-faint); font: var(--ws-type-label); text-transform: none; }
.md-typeset table:not([class]) td { padding: 10px 14px; border: 0; border-top: 1px solid var(--ws-rule); vertical-align: top; }
.md-typeset table:not([class]) tbody tr:first-child td { border-top: 0; }
.md-typeset table:not([class]) tr:hover { background: transparent; box-shadow: none; }
.md-typeset .same { color: var(--ws-soft); font-style: italic; }

/* Admonitions (design spec 10.3). */
.md-typeset .admonition, .md-typeset details { border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); background: var(--ws-sheet); box-shadow: inset 3px 0 0 var(--ws-avoid-fg); font-size: var(--ws-text-base); }
.md-typeset .admonition-title, .md-typeset summary { background: transparent; color: var(--ws-avoid-fg); font: var(--ws-type-label); text-transform: none; }

/* The three points on a scale: too little, the mean, too much. */
.md-typeset .triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 var(--ws-space-5); }
.md-typeset .tri { padding: 12px 14px; border-radius: var(--ws-radius-sm); background: var(--ts-vice-bg); font: var(--ws-type-small); }
.md-typeset .tri-mean { background: var(--ts-mean-bg); }
.md-typeset .tri > p { margin: var(--ws-space-2) 0 0; }
.md-typeset .tri > .tri-lab { margin: 0; }
.md-typeset .tri-lab { color: var(--ts-vice-fg); font: var(--ws-type-label); text-transform: none; }
.md-typeset .tri-mean .tri-lab { color: var(--ts-mean-fg); }
@media (max-width: 44em) { .md-typeset .triad { grid-template-columns: 1fr; } }

/* Calibration pairs, in the family's example rows. */
.md-typeset .facts { color: var(--ws-soft); font: var(--ws-type-small); }
.md-typeset .pair { margin: 0 0 var(--ws-space-5); }
.md-typeset .pair-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 12px; padding: 10px 12px; border-radius: var(--ws-radius-sm); background: var(--ws-wash); }
.md-typeset .pair-row + .pair-row { margin-top: 4px; }
.md-typeset .pair-row > p { margin: 0; }
.md-typeset .pair-to { background: var(--ts-mean-bg); }
.md-typeset .pair-lab { padding-top: 3px; color: var(--ws-faint); font: var(--ws-type-label); text-transform: none; }
.md-typeset .pair-to .pair-lab { color: var(--ts-mean-fg); }
@media (max-width: 37.5em) { .md-typeset .pair-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer (design spec 9) ---------- */
.md-footer.ts-footer { background: var(--ws-paper); color: var(--ws-faint); }
/* Previous and next (design spec 10.6): two cards. */
.ts-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: calc(var(--ws-content-w) + 48px); margin-left: 0; padding: 32px 24px 0; }
/* The cards line up with the prose column above them. While the navigation is a drawer the column starts at the
   left gutter. Beside the sidebar it starts after the sidebar (the theme's 12.1rem) inside the centered page grid;
   on the home page, which has no sidebar, the column and its outline (12.1rem) are centered together. */
@media screen and (min-width: 76.25em) {
  .ts-pager { margin-left: calc(max(0px, (100% - var(--ws-page-w)) / 2) + 12.1rem); }
  body:has(.md-sidebar--primary[hidden]) .ts-pager { margin-left: calc((100% - var(--ws-content-w) - 48px - 12.1rem) / 2); }
}
.ts-pager__link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); background: var(--ws-sheet); color: var(--ws-ink); text-decoration: none; }
.ts-pager__link:hover { border-color: var(--ws-ink); color: var(--ws-ink); }
.ts-pager__link--prev { grid-column: 1; }
.ts-pager__link--next { grid-column: 2; text-align: right; }
.ts-pager__direction { color: var(--ws-faint); font: var(--ws-type-ui); text-transform: none; }
.ts-pager__title { font: var(--ws-type-h4); }
@media (max-width: 480px) { .ts-pager { grid-template-columns: 1fr; } .ts-pager__link--next { grid-column: 1; } }
.ts-footer .ws-footer { margin-top: 48px; }
.ts-footer .ws-footer [aria-current] { display: inline; }

/* Search (design spec 4 and 6): a quiet field with the family's key hint, two 13px key caps ("Ctrl", "K") with a
   4px radius. The theme's own single-cap hint is off. The magnifier is the family's 16px outline icon (1.75 stroke,
   round caps). The dialog itself is styled from javascripts/family-menu.js, because it lives in a shadow root. */
.md-search__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 13rem; height: 36px; padding: 0 6px 0 34px; border: 1px solid var(--ws-rule); border-radius: var(--ws-radius); background-color: var(--ws-wash); color: var(--ws-faint); font: var(--ws-weight-regular) var(--ws-text-sm)/1 var(--ws-font-ui); text-align: left; }
.md-search__button:hover, .md-search__button:focus { background-color: var(--ws-wash); border-color: var(--ws-control-border); color: var(--ws-soft); }
.md-search__button::before { top: 50%; left: 10px; width: 16px; height: 16px; transform: translateY(-50%); background-color: var(--ws-faint); -webkit-mask-image: var(--ts-search-icon); mask-image: var(--ts-search-icon); }
.md-search__button { --ts-search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.md-search__button::after { content: none; display: none; }
/* The theme pads the field 1.9rem and 2.2rem on its sides from [dir="ltr"], which left the key caps 45px short of
   the right edge; they sit 7px from it, as on the other sites. */
[dir] .md-search__button { padding: 0 6px 0 34px; }
.ts-search__keys { display: inline-flex; gap: 4px; margin-left: auto; }
.ts-search__keys kbd { display: inline-block; min-width: 0; margin: 0; padding: 1px 5px; border: 1px solid var(--ws-rule); border-radius: 4px; background: var(--ws-paper); box-shadow: none; color: var(--ws-faint); font: var(--ws-weight-regular) var(--ws-text-sm)/1.4 var(--ws-font-ui); }
/* The full site name and the divider show on the narrowest phones: below 400px the gaps between the buttons close
   up, so nothing in the header is cut off or needs an ellipsis down to 320px. */
@media (max-width: 400px) {
  .md-header__inner { gap: 0; }
  .ts-brand .ws-brand__site { flex-shrink: 0; overflow: visible; }
}
/* At 320 the buttons narrow to 32px and the brand's gaps close, so at least 8px separates the site name from the
   search icon. */
@media (max-width: 360px) {
  .md-header__button { width: 32px; height: 32px; }
  .ts-brand.ws-brand { gap: 6px; }
  .ts-brand .ws-brand__home img { height: 17px; }
}
/* Under 340px (320 with a desktop scrollbar leaves 305) the brand's gaps tighten to 3px, which keeps the search
   button clear of the site name and its icon at least 8px from it. */
@media (max-width: 340px) {
  .ts-brand.ws-brand { gap: 3px; }
}

/* The header buttons are plain buttons in the theme's icon-button style. The day/night button shows the sun in
   dark (a press switches to light) and the moon in light, and is a full 44px target (32px wide at 360px and under). */
.md-header__button:is(button):not([hidden]) { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; font: inherit; }
.ts-theme-button { display: inline-flex; }
.md-header__button.ts-theme-button { width: var(--ws-target); height: var(--ws-target); }
@media (max-width: 360px) { .md-header__button.ts-theme-button { width: 32px; } }
.ts-theme-button > span { display: inline-flex; }
.ts-theme-button svg { width: 18px; height: 18px; }
.ts-theme-button__dark { display: none !important; }
[data-md-color-scheme="slate"] .ts-theme-button__light { display: none !important; }
[data-md-color-scheme="slate"] .ts-theme-button__dark { display: inline-flex !important; }
/* Search opens from the field where the navigation is a sidebar (76.25em and up), and from the icon button where
   it is a drawer. */
.md-header__button.ts-search-button:not([hidden]) { display: none; }
@media screen and (max-width: 76.234375em) {
  .md-header__button.ts-search-button:not([hidden]) { display: inline-flex; }
  .md-header .md-search__button { display: none; }
}
/* The drawer button shows only while the navigation is a drawer. */
@media screen and (min-width: 76.25em) { .md-header__button.ts-drawer-button:not([hidden]) { display: none; } }

/* Skip link: the family's .ws-skip chip (see watership-tokens.css), "Skip to content" in the label style on ink,
   44px tall, at the top left on focus. The theme's own fade-in, margin, and small corners are replaced. */
.md-skip { position: fixed; top: 12px; left: 100%; z-index: 1000; display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 14px; border-radius: var(--ws-radius); background: var(--ws-ink); color: var(--ws-on-ink); font: var(--ws-type-label); text-decoration: none; opacity: 1; transform: none; transition: none; }
.md-skip:focus, .md-skip:focus-visible { left: 12px; z-index: 1000; color: var(--ws-on-ink); opacity: 1; transform: none; }

/* The theme marks the active link in the accent color with a tinted fill; the family uses ink and the bar. */
.md-sidebar--primary .md-nav__item a.md-nav__link.md-nav__link--active { background: var(--ws-wash); color: var(--ws-ink); }
/* The theme also marks the section's chevron toggle as active; only the page link carries the current-page bar. */
.md-sidebar--primary .md-nav__item label.md-nav__link.md-nav__link--active { background: transparent; box-shadow: none; }
.ts-pager:not([hidden]) { display: grid; }
.md-nav--primary .md-nav__title .md-nav__button.md-logo img { width: auto; height: 18px; }
.md-nav--primary .md-nav__title { font: var(--ws-weight-strong) var(--ws-text-base)/1.2 var(--ws-font-head); }
/* The shared footer draws its own hairline. */
.md-footer.ts-footer { border-top: 0; }
/* The theme shows every logo image; show the wordmark for the active scheme only. */
.md-logo img.ws-only-dark { display: none; }
[data-md-color-scheme="slate"] .md-logo img.ws-only-light { display: none; }
[data-md-color-scheme="slate"] .md-logo img.ws-only-dark { display: block; }
.md-nav--primary .md-nav__title .md-nav__button.md-logo { width: auto; margin: 0 10px 0 0; padding: 0; }
.md-nav--primary .md-nav__title .md-nav__button.md-logo img.ws-only-dark { display: none; }
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__title .md-nav__button.md-logo img.ws-only-light { display: none; }
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__title .md-nav__button.md-logo img.ws-only-dark { display: block; }
.md-nav--primary .md-nav__title { display: flex; align-items: center; white-space: nowrap; }

/* The header's content starts at the family gutter (24px) at every width, as on the other sites, instead of
   inside the theme's centered grid. */
.md-header__inner.md-grid { max-width: none; }

/* On a wide screen the sidebar sits under the header, which already carries the brand, so the drawer's title
   (the wordmark and the site name) and the nested section titles stay hidden there. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-nav__title { display: none; }
}
/* In the drawer the six scales open in place under their section label, so the nested panel's own title (a
   second "The six scales") stays hidden too. */
.md-nav--primary .md-nav__item .md-nav__title { display: none; }

/* A closed drawer is only moved off screen, so its links would stay in the Tab order and the accessibility
   tree. Hide it, and everything in it (expanded sub-navs set their own visibility), while it's closed. */
@media screen and (max-width: 76.234375em) {
  [data-md-toggle="drawer"]:not(:checked) ~ .md-container .md-sidebar--primary,
  [data-md-toggle="drawer"]:not(:checked) ~ .md-container .md-sidebar--primary * { visibility: hidden !important; }
}

/* Below the theme's 60em breakpoint "On this page" would be a floating round button over the text, whose closed
   panel kept its links in the Tab order. Instead the drawer lists the page's headings under the current page, on
   the same hairline rail as the wide-screen outline, and the floating outline is left out. */
@media screen and (max-width: 59.984375em) {
  .md-sidebar--secondary { display: none !important; }
  .md-nav--primary .md-nav__item--active > .md-nav__link[for="__toc"] ~ .md-nav--secondary { display: block; margin: 2px 0 6px 10px; }
  .md-nav--primary .md-nav__item--active > .md-nav--secondary > .md-nav__list { display: block; }
}

/* The not-found page is short, so the theme would cut the left navigation to the height of its few lines. On a wide
   screen it is left out, with the empty outline column, and the page sits centered on the page; where the
   navigation is a drawer, the drawer still has it. */
@media screen and (min-width: 60em) {
  .md-main__inner:has(.ts-notfound) > .md-sidebar--secondary { display: none; }
  .md-main__inner:has(.ts-notfound) { justify-content: center; }
  .md-main__inner:has(.ts-notfound) > .md-content { flex-grow: 0; flex-basis: calc(var(--ws-content-w) + 48px); }
}
@media screen and (min-width: 76.25em) {
  .md-main__inner:has(.ts-notfound) > .md-sidebar--primary { display: none; }
}

/* The home page has no left sidebar, so the column and its "On this page" rail sit centered on the page instead of
   against the left gutter. */
.md-main__inner:has(> .md-sidebar--primary[hidden]) { justify-content: center; }
.md-main__inner:has(> .md-sidebar--primary[hidden]) > .md-content { flex-grow: 0; flex-basis: calc(var(--ws-content-w) + 48px); }

/* The phone menu, as on the other family sites: the drawer opens under the header at full width, with no slide,
   and "Menu" stays live in the header as its close button. The header already shows the brand, so the drawer's
   own title row and the dimmed overlay are left out. */
@media screen and (max-width: 76.234375em) {
  .md-sidebar--primary, [data-md-toggle="drawer"]:checked ~ .md-container .md-sidebar--primary {
    top: var(--ws-header-h); left: 0; width: 100%; height: calc(100vh - var(--ws-header-h)); height: calc(100dvh - var(--ws-header-h));
    border-radius: 0; box-shadow: none; transform: none; transition: none; background: var(--ws-paper);
  }
  .md-nav--primary > .md-nav__title[for] { display: none; }
  .md-overlay { display: none; }
  .md-sidebar--primary .md-nav--primary > .md-nav__list { padding: 8px 8px 24px; }
  /* The drawer's scroll box would clip a focus ring drawn outside the link. */
  .md-sidebar--primary .md-nav__link:focus-visible { outline-offset: -2px; }
}

/* The active "On this page" entry stays at 400 (type scale role map): the theme sets it to 500, and in the drawer
   the current-page style would make it 600 on a fill. It is marked by ink and the accent segment on the rail. */
.md-sidebar .md-nav--secondary .md-nav__item .md-nav__link.md-nav__link--active,
.md-sidebar .md-nav--secondary .md-nav__item .md-nav__link.md-nav__link--active:hover {
  background: transparent; box-shadow: none; border-radius: 0; color: var(--ws-ink); font-weight: var(--ws-weight-regular);
}

/* "Back to top" (the theme's navigation.top) in the family's chrome role, 13px mono 400, as on the slop guard. */
.md-top { font: var(--ws-type-ui); letter-spacing: normal; }
