/* The Awesome Humans theme for Zensical. DESIGN.md at the repository root sets the rules
   for the look, and this file holds every value, as an --ah-* custom property. Change a
   value here, and change a rule there in the same pull request.

   Light follows Zensical's default scheme and dark its slate scheme, on the modern
   variant. */

/* ---- Fonts: IBM Plex, self-hosted, Latin-1 subsets as IBM ships them ---- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2");
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

/* ---- Fallbacks: Arial and Courier New, resized to IBM Plex's metrics ----
   Text draws in these until IBM Plex loads, so the swap doesn't move the text.
   size-adjust matches each weight's average letter width, weighted by English letter
   frequency, and the overrides match Plex's ascent and descent at that size.
   Liberation Sans and Arimo share Arial's metrics, and Liberation Mono and Cousine
   Courier New's. Each face covers only Plex's own characters, so others still fall
   through to system-ui. */
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-weight: 400;
  src:
    local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 101.2%;
  ascent-override: 101.3%;
  descent-override: 27.2%;
  line-gap-override: 0%;
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-weight: 500;
  src:
    local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 103.4%;
  ascent-override: 99.1%;
  descent-override: 26.6%;
  line-gap-override: 0%;
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-weight: 600 700;
  src:
    local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
    local("Arimo Bold");
  size-adjust: 96.9%;
  ascent-override: 105.8%;
  descent-override: 28.4%;
  line-gap-override: 0%;
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153,
    U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022,
    U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212,
    U+FB01-FB02;
}
/* Courier New is 0.6em wide, as Plex Mono is, so only the vertical metrics change. */
@font-face {
  font-family: "IBM Plex Mono Fallback";
  font-weight: 400 700;
  src: local("Courier New"), local("Liberation Mono"), local("Cousine");
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

/* ---- Tokens ---- */
:root {
  --ah-font-sans:
    "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --ah-font-mono:
    "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SFMono-Regular",
    Menlo, Consolas, monospace;

  --ah-space-1: 4px;
  --ah-space-2: 8px;
  --ah-space-3: 12px;
  --ah-space-4: 16px;
  --ah-space-6: 24px;
  --ah-space-8: 32px;
  --ah-space-12: 48px;

  --ah-radius-xs: 2px;
  --ah-radius-sm: 4px;
  --ah-radius-md: 6px;

  --ah-hairline: 1px;
  --ah-tick: 3px;
  --ah-stripe: 2px;
}

[data-md-color-scheme="default"] {
  /* The page and its panels take a faint tint of the ecosystem accent, like the
     header's solid bar. */
  --ah-bg: color-mix(in srgb, var(--ah-eco) 3%, #ffffff);
  --ah-surface: color-mix(in srgb, var(--ah-eco) 3%, #f6f7f8);
  --ah-raised: color-mix(in srgb, var(--ah-eco) 3%, #eef0f2);
  /* Code keeps the plain surface, which the theme's syntax colours are set against. */
  --ah-code: #f6f7f8;
  --ah-line: #e3e6ea;
  --ah-ink: #0d1117;
  --ah-ink-2: #3b4450;
  --ah-muted: #5b6572;
  --ah-brand: #087d4e;
  --ah-brand-mark: #109a63;
  --ah-brand-tint: #e7f5ee;
  --ah-on-brand: #ffffff;
  --ah-dotnet: #512bd4;
  --ah-rust: #b4400f;
  --ah-typescript: #2b6cb0;
  --ah-house: #9a6100;
  --ah-house-tint: #fbf2df;
  --ah-stale: #c0302a;
  --ah-stale-tint: #fbe9e8;
  --ah-lane-sources: #017b80;
  --ah-lane-research: #6d7123;
  --ah-lane-opinions: #955080;
  --ah-lane-reports: #8253ac;
  --ah-header-bg: var(--ah-eco);
  --ah-header-ink: #ffffff;
  --ah-header-shadow: 0 0 4px rgb(0 0 0 / 10%), 0 4px 8px rgb(0 0 0 / 20%);
}

[data-md-color-scheme="slate"] {
  --ah-bg: color-mix(in srgb, var(--ah-eco) 2%, #0d1117);
  --ah-surface: color-mix(in srgb, var(--ah-eco) 2%, #151a21);
  --ah-raised: color-mix(in srgb, var(--ah-eco) 2%, #1c232c);
  --ah-code: #151a21;
  --ah-line: #2a323c;
  --ah-ink: #e8ecf0;
  --ah-ink-2: #c3cad2;
  --ah-muted: #8b95a1;
  --ah-brand: #3dd392;
  --ah-brand-mark: #3dd392;
  --ah-brand-tint: #11281f;
  --ah-on-brand: #0d1117;
  --ah-dotnet: #a48bff;
  --ah-rust: #f2895b;
  --ah-typescript: #6fa8ee;
  --ah-house: #f2c14e;
  --ah-house-tint: #1d1912;
  --ah-stale: #f2726b;
  --ah-stale-tint: #2c1615;
  --ah-lane-sources: #6ac9ce;
  --ah-lane-research: #b9be71;
  --ah-lane-opinions: #e79bce;
  --ah-lane-reports: #c9a5e9;
  --ah-header-bg: color-mix(in srgb, var(--ah-eco) 28%, var(--ah-bg));
  --ah-header-ink: var(--ah-ink);
  /* A black shadow barely shows on a near-black page, so dark mode's is deeper. */
  --ah-header-shadow: 0 0 4px rgb(0 0 0 / 25%), 0 4px 10px rgb(0 0 0 / 45%);
}

/* The ecosystem accent. javascripts/ecosystem.js sets data-ecosystem on <html> from the
   first path segment. A segment with no rule here, such as how-it-works, keeps brand. */
[data-md-color-scheme] {
  --ah-eco: var(--ah-brand);
}
[data-ecosystem="dotnet"] [data-md-color-scheme],
.ah-eco-dotnet {
  --ah-eco: var(--ah-dotnet);
}
[data-ecosystem="rust"] [data-md-color-scheme],
.ah-eco-rust {
  --ah-eco: var(--ah-rust);
}
[data-ecosystem="typescript"] [data-md-color-scheme],
.ah-eco-typescript {
  --ah-eco: var(--ah-typescript);
}
.ah-eco-brand {
  --ah-eco: var(--ah-brand);
}

/* ---- Tokens onto Zensical's variables ---- */
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-text-font-family: var(--ah-font-sans);
  --md-code-font-family: var(--ah-font-mono);

  --md-default-bg-color: var(--ah-bg);
  --md-default-fg-color: var(--ah-ink);
  --md-default-fg-color--light: var(--ah-ink-2);
  --md-default-fg-color--lighter: var(--ah-muted);
  --md-default-fg-color--lightest: var(--ah-line);
  --md-typeset-color: var(--ah-ink);
  --md-typeset-a-color: var(--ah-brand);

  --md-primary-fg-color: var(--ah-brand);
  --md-primary-fg-color--light: var(--ah-brand-mark);
  --md-primary-fg-color--dark: var(--ah-brand);
  --md-primary-bg-color: var(--ah-on-brand);
  --md-primary-bg-color--light: var(--ah-on-brand);
  --md-accent-fg-color: var(--ah-brand);
  --md-accent-fg-color--transparent: var(--ah-brand-tint);
  --md-accent-bg-color: var(--ah-on-brand);

  --md-code-bg-color: var(--ah-code);
  --md-code-fg-color: var(--ah-ink);
  --md-code-hl-comment-color: var(--ah-muted);

  --md-typeset-table-color: var(--ah-line);
  --md-admonition-bg-color: var(--ah-bg);
  --md-admonition-fg-color: var(--ah-ink);

  --md-footer-bg-color: var(--ah-surface);
  --md-footer-bg-color--dark: var(--ah-raised);
  --md-footer-fg-color: var(--ah-ink);
  --md-footer-fg-color--light: var(--ah-ink-2);
  --md-footer-fg-color--lighter: var(--ah-muted);
}

/* ---- Type ---- */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.625;
}
/* Zensical sets tables, admonitions, and details at 0.64rem, which reads small beside
   0.8rem body text. Raise them to 0.7rem: 14px at Zensical's default root size, the size
   of the house and preview admonitions and the metadata strip. In rem, they still grow
   with the body text on a wide screen. */
.md-typeset table:not([class]),
.md-typeset .admonition,
.md-typeset details {
  font-size: 0.7rem;
}
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--ah-ink);
  font-weight: 600;
}
.md-typeset h2 {
  margin-top: var(--ah-space-8);
  font-size: 1.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.md-typeset h3 {
  font-size: 1.125em;
  line-height: 1.444;
}
.md-typeset code,
.md-typeset kbd,
.md-typeset pre {
  font-feature-settings: normal;
}

/* Each section heading's text links to its own anchor (the toc extension's anchorlink),
   in place of a pilcrow; the page title stays plain text (title_text in src/). The link
   keeps the heading's colour, so the accent stays in its four places, and turns brand
   green on hover or focus, as the "On this page" links do, without Zensical's underline. */
.md-typeset .toclink {
  color: inherit;
  text-decoration: none;
}
.md-typeset .toclink:hover,
.md-typeset .toclink:focus-visible {
  color: var(--ah-brand);
}

/* The page title, underlined with the ecosystem tick. The maintainer moved the tick from
   above the title on 2026-10-16: underneath, it reads as an underline rather than a rule
   cutting the page. */
.md-typeset h1 {
  display: inline-block;
  margin: 0 0 var(--ah-space-6);
  padding-bottom: 6px;
  border-bottom: var(--ah-tick) solid var(--ah-eco);
  font-size: 2em;
  line-height: 1.1875;
  letter-spacing: -0.015em;
}

/* ---- Header: a solid bar of the ecosystem accent, with a soft shadow below ----
   In dark mode the accent is a light tint, so the bar takes a deep shade of it instead,
   with light ink. The tabs below it stay on bg, and only the active one is underlined,
   in the accent. */
.md-header {
  background-color: var(--ah-header-bg);
  color: var(--ah-header-ink);
  box-shadow: var(--ah-header-shadow);
}
.md-header__title {
  font-weight: 600;
}
.md-tabs {
  background-color: var(--ah-bg);
  color: var(--ah-ink);
  box-shadow: none;
}
/* A shorter row than the theme's 2.4rem, so the active underline sits closer to its
   label. */
.md-tabs__item {
  height: 2rem;
}
.md-tabs__link {
  margin-top: 0.6rem;
  color: var(--ah-ink-2);
  opacity: 1;
}
.md-tabs__link:hover,
.md-tabs__link:focus {
  color: var(--ah-brand);
}
.md-tabs__item--active {
  border-bottom: var(--ah-stripe) solid var(--ah-eco);
}
.md-tabs__item--active .md-tabs__link {
  color: var(--ah-eco);
  font-weight: 600;
}
/* The logo reversed out in the bar's ink, since its green would vanish on the brand
   bar. */
.md-header__button.md-logo img {
  filter: brightness(0) invert(1);
}
/* The search button and the header's icons, light on the accent. */
@media screen and (min-width: 45em) {
  .md-header .md-search__button {
    color: var(--ah-header-ink);
    background-color: rgb(0 0 0 / 18%);
  }
  .md-header .md-search__button:hover,
  .md-header .md-search__button:focus {
    color: var(--ah-header-ink);
    background-color: rgb(0 0 0 / 28%);
  }
  .md-header .md-search__button::before {
    background-color: var(--ah-header-ink);
  }
  .md-header .md-search__button::after {
    color: var(--ah-header-ink);
    background-color: transparent;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 45%);
  }
}
.md-header .md-header__button,
.md-header .md-source {
  color: var(--ah-header-ink);
}
/* The brand-mark focus ring would vanish on the bar, so it takes the bar's ink. */
.md-header .md-header__button:focus-visible,
.md-header .md-search__button:focus-visible,
.md-header .md-source:focus-visible {
  outline: var(--ah-stripe) solid var(--ah-header-ink);
  outline-offset: 2px;
}

/* ---- Navigation: the active page takes the ecosystem accent ---- */
.md-nav__item .md-nav__link--active,
.md-nav--primary .md-nav__item .md-nav__link--active {
  color: var(--ah-eco);
  background: transparent;
  font-weight: 600;
}

/* ---- Footer: disclaimers on the left, the generator line on the right ---- */
@media screen and (min-width: 45em) {
  .md-copyright {
    flex: 1 1 0;
  }
  .md-copyright.ah-generator {
    flex: none;
    align-self: flex-end;
    text-align: right;
  }
}

/* ---- Focus: a solid brand-mark ring, 3:1 or better on every surface ----
   The header bar's controls take its ink instead, set with the header. */
.md-typeset a:focus-visible,
.md-nav__link:focus-visible,
.md-tabs__link:focus-visible,
.ah-btn:focus-visible,
.ah-card:focus-visible,
.ah-chip:focus-visible {
  outline: var(--ah-stripe) solid var(--ah-brand-mark);
  outline-offset: 2px;
}

/* ---- Structure from hairlines, not shadows ---- */
.md-typeset pre > code {
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
}

/* A date or an id in a table stays on one line, instead of breaking at its hyphens.
   The date_cells extension in src/ marks each cell that holds only a date or an id. */
.md-typeset td.ah-date,
.md-typeset td.ah-id {
  white-space: nowrap;
}

/* The header of a date column that javascripts/date-sort.js sorts holds a button, so a
   keyboard can reach it. The button looks like the header text, and the theme draws the
   sort arrow after it. */
.md-typeset th .ah-sort {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Wider pages on large screens. The theme caps the page at 61rem with a 12.1rem sidebar
   each side, which shrinks the widest diagram, drawn 1160 units wide, to about 75% in a
   column some 880px across. An 80rem cap and narrower sidebars give the content column
   most of a desktop window. */
@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 80rem;
  }

  .md-sidebar {
    width: 10rem;
  }
}

/* ---- Components: the ah- classes ---- */
.ah-label {
  font: 500 11px/16px var(--ah-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ah-muted);
}
.ah-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ah-space-2);
  align-items: center;
}

/* Hero: the home banner. */
.md-typeset .ah-hero {
  margin: 0 0 var(--ah-space-8);
  padding: var(--ah-space-12) var(--ah-space-6) 40px;
  background: var(--ah-surface);
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-md);
}
.md-typeset .ah-hero .ah-hero__kicker {
  font: 500 11px/16px var(--ah-font-mono);
  letter-spacing: 0.08em;
  color: var(--ah-brand);
  margin: 0 0 var(--ah-space-3);
}
.md-typeset .ah-hero h1 {
  display: block;
  margin: 0 0 var(--ah-space-3);
  padding: 0;
  border: 0;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.md-typeset .ah-hero p {
  font-size: 17px;
  line-height: 28px;
  color: var(--ah-ink-2);
  /* 62ch in IBM Plex Sans, whose digits are 0.6em wide. In ch, the box would narrow
     while the fallback draws, and the swap would rewrap the text. */
  max-width: 37.2em;
  margin: 0 0 var(--ah-space-6);
  text-wrap: pretty;
}
.md-typeset .ah-hero .ah-row {
  margin: 0;
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .ah-hero {
    padding: var(--ah-space-6) var(--ah-space-4);
  }
  .md-typeset .ah-hero h1 {
    font-size: 32px;
    line-height: 38px;
  }
}

/* Buttons */
.md-typeset .ah-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ah-space-2);
  padding: 6px 14px;
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  font: 500 14px/22px var(--ah-font-sans);
  color: var(--ah-ink);
  background: var(--ah-bg);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 150ms,
    border-color 150ms;
}
.md-typeset .ah-btn:hover {
  border-color: var(--ah-brand);
  color: var(--ah-brand);
}

/* Ecosystem cards */
.md-typeset .ah-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ah-space-4);
  margin: var(--ah-space-4) 0 var(--ah-space-6);
}
.md-typeset .ah-card {
  display: grid;
  gap: var(--ah-space-2);
  align-content: start;
  justify-items: start;
  padding: var(--ah-space-4);
  border: var(--ah-hairline) solid var(--ah-line);
  border-top: var(--ah-tick) solid var(--ah-eco, var(--ah-line));
  border-radius: var(--ah-radius-sm);
  background: var(--ah-bg);
  color: var(--ah-ink);
  text-decoration: none;
  transition: border-color 150ms;
}
.md-typeset a.ah-card:hover {
  border-color: var(--ah-eco);
  border-top-color: var(--ah-eco);
  color: var(--ah-ink);
}
.md-typeset .ah-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
}
.md-typeset .ah-card p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ah-ink-2);
}
/* Ecosystem logos, on each card and under each section index's title. Never smaller
   than 50px, the .NET style guide's minimum on screen, and with clear space at least the
   height of its "N" on every side. A logo with a -dark copy swaps to it in slate. */
.md-typeset .ah-eco-logo {
  display: inline-flex;
  padding: var(--ah-space-1) 0;
}
.md-typeset .ah-eco-logo img {
  display: block;
  width: 56px;
  height: 56px;
}
.md-typeset .ah-eco-logo img.ah-eco-logo--dark,
[data-md-color-scheme="slate"] .md-typeset .ah-eco-logo img.ah-eco-logo--light {
  display: none;
}
[data-md-color-scheme="slate"] .md-typeset .ah-eco-logo img.ah-eco-logo--dark {
  display: block;
}
.md-typeset h1 + p > .ah-eco-logo img {
  width: 72px;
  height: 72px;
}
.md-typeset .ah-card--soon {
  background: var(--ah-surface);
}
.md-typeset .ah-card--soon h3 {
  color: var(--ah-ink-2);
}

/* Chips */
.md-typeset .ah-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ah-space-1);
  padding: 0 var(--ah-space-2);
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-xs);
  background: var(--ah-bg);
  font: 500 12px/20px var(--ah-font-mono);
  color: var(--ah-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.ah-chip--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.md-typeset .ah-chip--fresh {
  color: var(--ah-brand);
  border-color: currentColor;
}
.md-typeset .ah-chip--aging {
  color: var(--ah-house);
  border-color: currentColor;
}
.md-typeset .ah-chip--stale {
  color: var(--ah-stale);
  border-color: currentColor;
}
.md-typeset .ah-chip--eco {
  color: var(--ah-eco);
  border-color: currentColor;
}
.md-typeset a.ah-chip:hover {
  border-color: var(--ah-brand);
  color: var(--ah-brand);
}

/* Opinion metadata strip, written by an ecosystem as a paragraph with { .ah-meta } */
.md-typeset .ah-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ah-space-2) var(--ah-space-3);
  padding: var(--ah-space-3);
  background: var(--ah-surface);
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  font-size: 14px;
  line-height: 22px;
  color: var(--ah-ink-2);
}
.ah-meta__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ah-space-1) var(--ah-space-2);
}
.md-typeset .ah-meta code {
  font: 400 13px/20px var(--ah-font-mono);
  color: var(--ah-ink);
}

/* A text fence holds a prompt to paste, and a markdown fence holds prose, not code, so
   both wrap instead of scrolling, with room on the right for the copy button. Wrapping
   is visual only: the button copies the code element's text, which keeps each line as
   the source wrote it. */
.md-typeset .language-text pre > code,
.md-typeset .language-markdown pre > code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-right: 2.75em;
}

/* Admonitions: !!! house "House opinion" and !!! preview "Coming next" */
.md-typeset .admonition.house,
.md-typeset details.house,
.md-typeset .admonition.preview,
.md-typeset details.preview {
  padding: var(--ah-space-3);
  border: var(--ah-hairline) solid var(--ah-line);
  border-left-width: var(--ah-tick);
  border-radius: var(--ah-radius-sm);
  box-shadow: none;
  font-size: 14px;
  line-height: 22px;
}
.md-typeset .house > .admonition-title,
.md-typeset .house > summary,
.md-typeset .preview > .admonition-title,
.md-typeset .preview > summary {
  margin: 0 0 var(--ah-space-1);
  padding: 0;
  background: transparent;
  border: 0;
  font: 500 11px/16px var(--ah-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.md-typeset .house > .admonition-title::before,
.md-typeset .house > summary::before,
.md-typeset .preview > .admonition-title::before,
.md-typeset .preview > summary::before {
  display: none;
}
.md-typeset .house > :last-child,
.md-typeset .preview > :last-child {
  margin-bottom: 0;
}
.md-typeset .admonition.house,
.md-typeset details.house {
  border-color: var(--ah-house);
  background: var(--ah-house-tint);
}
.md-typeset .house > .admonition-title,
.md-typeset .house > summary {
  color: var(--ah-house);
}
.md-typeset .admonition.preview,
.md-typeset details.preview {
  border-style: dashed;
  border-left-style: solid;
  border-color: var(--ah-muted);
  background: transparent;
}
.md-typeset .preview > .admonition-title,
.md-typeset .preview > summary {
  color: var(--ah-muted);
}

/* House profiles: an element with data-house, such as a house block or a profile's chip,
   shows only when a reader chooses that profile in the header picker, which
   javascripts/house.js adds. Without it, every page is sourced community practice. */
.md-typeset [data-house]:not(.ah-house--on) {
  display: none;
}
.ah-house-picker {
  max-width: 12rem;
  margin: 0 var(--ah-space-2);
  padding: var(--ah-space-1) var(--ah-space-2);
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  background: var(--ah-bg);
  color: var(--ah-ink-2);
  font: 500 12px/16px var(--ah-font-mono);
  cursor: pointer;
}
/* javascripts/house.js puts the picker on the header bar, so its focus ring takes the
   bar's ink, as the bar's other controls do. */
.ah-house-picker:focus-visible {
  outline: var(--ah-stripe) solid var(--ah-header-ink);
  outline-offset: 2px;
}
[data-house] .ah-house-picker {
  border-color: var(--ah-house);
  color: var(--ah-house);
}
/* Before and After code: fences with { .ah-before title="Before" } and
   { .ah-after title="After" }, side by side inside <div class="ah-compare" markdown>. */
.md-typeset .ah-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ah-space-3);
}
.md-typeset .ah-compare > * {
  min-width: 0;
  margin: 0;
}
.md-typeset .ah-before,
.md-typeset .ah-after {
  display: flex;
  flex-direction: column;
  border: var(--ah-hairline) solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  overflow: hidden;
}
.md-typeset .ah-before > pre,
.md-typeset .ah-after > pre {
  flex: 1;
  margin: 0;
}
.md-typeset .ah-before > pre > code,
.md-typeset .ah-after > pre > code {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.md-typeset .ah-before .filename,
.md-typeset .ah-after .filename {
  margin: 0;
  padding: 2px var(--ah-space-3);
  border: 0;
  border-bottom: var(--ah-hairline) solid var(--ah-line);
  border-radius: 0;
  font: 500 11px/20px var(--ah-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ah-raised);
}
.md-typeset .ah-before .filename {
  color: var(--ah-stale);
}
.md-typeset .ah-after .filename {
  color: var(--ah-brand);
}
.md-typeset .ah-before .filename::before {
  content: "\2212  ";
}
.md-typeset .ah-after .filename::before {
  content: "+ ";
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---- Diagrams: How it works, drawn by scripts/diagrams.py ----
   The SVG has classes only, so these rules colour it from the tokens and the theme
   toggle switches it. Brand marks the CI gate and the outcome the agents work towards,
   and house what the maintainer decides. Each lane has its own lane-* colour, chosen to stay
   apart from those two and from stale. Reports' lavender sits near .NET's violet, which
   is safe because no ecosystem accent appears: a diagram isn't one of its four places.
   The figure takes the content's full width, which How it works widens by hiding its
   table of contents, and the prose beside it keeps its usual measure. On a narrow
   screen, the figure scrolls sideways rather than shrinking the labels. The theme
   centres a figure at its content's width, hence .md-typeset. */
.md-typeset .ah-diagram {
  display: block;
  width: 100%;
  margin: var(--ah-space-6) 0;
  overflow-x: auto;
}
.md-typeset:has(> .ah-diagram) > :not(.ah-diagram) {
  max-width: 42rem;
}
.ah-diagram svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}
.ah-diagram .bg {
  fill: var(--ah-bg);
  stroke: var(--ah-line);
}
.ah-diagram .box {
  fill: var(--ah-surface);
  stroke: var(--ah-line);
  stroke-width: 1.2;
}
.ah-diagram .chip {
  fill: var(--ah-raised);
}
.ah-diagram .ext {
  fill: var(--ah-raised);
  stroke: var(--ah-muted);
  stroke-width: 1.2;
}
.ah-diagram .store {
  fill: var(--ah-raised);
  stroke: var(--ah-line);
  stroke-width: 1.2;
}
.ah-diagram .sources {
  --lane: var(--ah-lane-sources);
}
.ah-diagram .research {
  --lane: var(--ah-lane-research);
}
.ah-diagram .opinions {
  --lane: var(--ah-lane-opinions);
}
.ah-diagram .reports {
  --lane: var(--ah-lane-reports);
}
.ah-diagram .lane {
  fill: var(--lane);
}
.ah-diagram .lane.tint {
  fill: color-mix(in srgb, var(--lane) 14%, var(--ah-bg));
}
.ah-diagram .accent {
  fill: var(--ah-brand);
}
.ah-diagram text {
  font-family: var(--ah-font-sans);
}
.ah-diagram .t,
.ah-diagram .tb,
.ah-diagram .tm {
  fill: var(--ah-ink);
  font-size: 16px;
}
.ah-diagram .t {
  font-weight: 500;
}
.ah-diagram .tb {
  font-weight: 600;
}
.ah-diagram .tm {
  font-size: 15px;
}
.ah-diagram .tm,
.ah-diagram .th {
  font-family: var(--ah-font-mono);
  font-weight: 600;
}
.ah-diagram .ts {
  fill: var(--ah-muted);
  font-size: 14px;
}
/* On a light surface, muted reads too faint at subtitle size, so light takes ink-2. */
[data-md-color-scheme="default"] .ah-diagram .ts {
  fill: var(--ah-ink-2);
}
.ah-diagram .th {
  fill: var(--ah-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ah-diagram .edge {
  stroke: var(--ah-muted);
  stroke-width: 1.4;
  fill: none;
}
.ah-diagram .edge.dash {
  stroke-dasharray: 4 4;
}
.ah-diagram .arrowhead {
  fill: var(--ah-muted);
}
.ah-diagram .gate,
.ah-diagram .check,
.ah-diagram .decision {
  fill: var(--ah-surface);
  stroke-width: 2;
}
.ah-diagram .gate {
  stroke: var(--ah-house);
}
.ah-diagram .check,
.ah-diagram .decision {
  stroke: var(--ah-brand);
}
.ah-diagram .gate-t,
.ah-diagram .check-t {
  font-weight: 600;
  font-size: 14px;
}
.ah-diagram .gate-t {
  fill: var(--ah-house);
}
.ah-diagram .check-t {
  fill: var(--ah-brand);
}
