/* Angelia: the release wire.
   Midnight indigo wire room, canary wire-copy paper, gold Baudot tape. */

:root {
  --ag-midnight: #14123a;
  --ag-ink: #1e1b4b;
  --ag-indigo: #4338ca;
  --ag-indigo-soft: #c7d2fe;
  --ag-gold-deep: #b45309;
  --ag-gold: #f59e0b;
  --ag-gold-mid: #fbbf24;
  --ag-canary: #fde68a;
  --ag-canary-pale: #fef6d3;
  --ag-paper: #fffcef;
  --ag-flash: #e0452b;

  --ag-font-text: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --ag-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Five-hole Baudot tape, drawn once and repeated: feed holes on the centre line, data holes around it. */
  --ag-tape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='14' viewBox='0 0 72 14'%3E%3Cg fill='%2314123a'%3E%3Ccircle cx='6' cy='7' r='1.3'/%3E%3Ccircle cx='18' cy='7' r='1.3'/%3E%3Ccircle cx='30' cy='7' r='1.3'/%3E%3Ccircle cx='42' cy='7' r='1.3'/%3E%3Ccircle cx='54' cy='7' r='1.3'/%3E%3Ccircle cx='66' cy='7' r='1.3'/%3E%3Ccircle cx='6' cy='2.6' r='1.9'/%3E%3Ccircle cx='18' cy='11.4' r='1.9'/%3E%3Ccircle cx='30' cy='2.6' r='1.9'/%3E%3Ccircle cx='30' cy='11.4' r='1.9'/%3E%3Ccircle cx='42' cy='2.6' r='1.9'/%3E%3Ccircle cx='54' cy='11.4' r='1.9'/%3E%3Ccircle cx='66' cy='2.6' r='1.9'/%3E%3Ccircle cx='66' cy='11.4' r='1.9'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Material palette: day wire ---------- */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--ag-ink);
  --md-primary-fg-color--light: var(--ag-indigo);
  --md-primary-fg-color--dark: var(--ag-midnight);
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: var(--ag-gold-deep);
  --md-accent-fg-color--transparent: rgba(245, 158, 11, 0.12);
  --md-default-bg-color: var(--ag-paper);
  --md-default-fg-color: #1b1938;
  --md-default-fg-color--light: #4a4772;
  --md-default-fg-color--lighter: #8a87b0;
  --md-typeset-a-color: var(--ag-indigo);
  --md-code-bg-color: #f7efcd;
  --md-code-fg-color: #24204f;
  --md-typeset-mark-color: rgba(253, 230, 138, 0.8);
  --md-footer-bg-color: var(--ag-midnight);
  --md-footer-bg-color--dark: #0d0b2a;
}

/* ---------- Material palette: night wire ---------- */
[data-md-color-scheme="slate"] {
  --md-hue: 245;
  --md-primary-fg-color: var(--ag-midnight);
  --md-primary-fg-color--light: var(--ag-indigo);
  --md-primary-fg-color--dark: #0d0b2a;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: var(--ag-gold-mid);
  --md-accent-fg-color--transparent: rgba(251, 191, 36, 0.14);
  --md-default-bg-color: #161438;
  --md-default-fg-color: #e6e7fb;
  --md-default-fg-color--light: #b9bbe6;
  --md-default-fg-color--lighter: #8587bd;
  --md-default-fg-color--lightest: rgba(199, 210, 254, 0.12);
  --md-typeset-a-color: var(--ag-canary);
  --md-code-bg-color: #0f0d2c;
  --md-code-fg-color: #e0e4ff;
  --md-typeset-mark-color: rgba(251, 191, 36, 0.3);
  --md-footer-bg-color: #0d0b2a;
  --md-footer-bg-color--dark: #08071d;
}

/* ---------- Type ---------- */
body, input { font-family: var(--ag-font-text); font-feature-settings: "kern", "liga"; }
code, kbd, pre { font-family: var(--ag-font-mono); }
.md-typeset { font-size: 0.8rem; line-height: 1.65; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  font-family: var(--ag-font-text);
  color: var(--md-default-fg-color);
  text-wrap: balance;
}
.md-typeset h1 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: 2.3em;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.6em;
  padding-bottom: 0.7em;
}
.md-typeset h2 {
  font-stretch: 82%;
  font-weight: 750;
  font-size: 1.45em;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}
.md-typeset h3 { font-weight: 700; font-size: 1.1em; margin-top: 1.8em; }
.md-typeset p, .md-typeset li { max-width: 72ch; }
.md-typeset p.admonition-title, .md-typeset .admonition p, .md-typeset details p { max-width: none; }
.md-typeset dt { font-weight: 750; font-stretch: 85%; font-size: 1.05em; }

/* The tape under every page title: gold, punched. */
.md-typeset h1 { position: relative; }
.md-typeset h1::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--ag-gold-mid) var(--ag-tape) left center / 52px 10px repeat-x;
}

/* ---------- Header: the wire room ---------- */
.md-header { background: var(--ag-midnight); box-shadow: none; }
.md-header__title { font-family: var(--ag-font-text); font-weight: 800; font-stretch: 80%; letter-spacing: 0.02em; }
.md-tabs { background: var(--ag-ink); position: relative; }
.md-tabs::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background: var(--ag-gold) var(--ag-tape) left center / 36px 7px repeat-x;
  pointer-events: none;
}
.md-tabs__link { font-stretch: 85%; font-weight: 600; font-size: 0.72rem; opacity: 0.78; }
.md-tabs__item--active .md-tabs__link, .md-tabs__link:hover { opacity: 1; color: var(--ag-canary); }
.md-header__button.md-logo img, .md-header__button.md-logo svg { height: 1.6rem; }
.md-search__form { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }

/* ---------- Navigation ---------- */
.md-nav { font-size: 0.72rem; }
.md-nav__title { font-stretch: 85%; }
.md-nav__item--section > .md-nav__link {
  font-family: var(--ag-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}
.md-nav__link--active { font-weight: 700; }
.md-nav__link--active::before {
  content: "";
  display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.45em;
  background: var(--ag-gold); border-radius: 50%; vertical-align: 0.1em;
}

/* ---------- Content details ---------- */
.md-typeset a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.md-typeset a:hover { text-decoration: underline; }
.md-typeset code { border-radius: 2px; }
.md-typeset pre > code { border-radius: 0; }
.md-typeset .highlight { position: relative; }
.md-typeset .highlight span.filename {
  font-family: var(--ag-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--ag-ink);
  color: var(--ag-canary);
  border-radius: 0;
  letter-spacing: 0.02em;
}
.md-typeset table:not([class]) { border-radius: 0; font-size: 0.74rem; border: 1px solid var(--md-default-fg-color--lightest); }
.md-typeset table:not([class]) th {
  font-family: var(--ag-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--md-code-bg-color);
}
.md-typeset .tabbed-labels > label { font-stretch: 85%; font-weight: 650; }
.md-typeset .md-button { border-radius: 2px; font-stretch: 85%; font-weight: 700; }
.md-typeset .md-button--primary { background: var(--ag-ink); border-color: var(--ag-ink); color: #fff; }
.md-typeset .md-button--primary:hover { background: var(--ag-indigo); border-color: var(--ag-indigo); }
[data-md-color-scheme="slate"] .md-typeset .md-button--primary { background: var(--ag-gold-mid); border-color: var(--ag-gold-mid); color: var(--ag-midnight); }

/* Admonitions as wire slips: a slug band, not a coloured stripe. */
.md-typeset .admonition, .md-typeset details {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(20, 18, 58, 0.06);
  font-size: 0.76rem;
}
.md-typeset .admonition-title, .md-typeset summary {
  font-family: var(--ag-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

::selection { background: var(--ag-canary); color: var(--ag-midnight); }
:focus-visible { outline: 2px solid var(--ag-gold); outline-offset: 2px; }
html { scrollbar-color: var(--ag-indigo) transparent; }

/* Video links inside pages */
.md-typeset .wire-video { margin: 1.5em 0; }

/* =====================================================================
   HOME: the wire room
   ===================================================================== */
.ag-home { --pad: clamp(1rem, 4vw, 3.5rem); color: #e6e7fb; background: var(--ag-midnight); font-family: var(--ag-font-text); }
.ag-home a { color: inherit; }
.ag-home .ag-wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad); }
.ag-home .mono { font-family: var(--ag-font-mono); }

/* Tape divider */
.ag-tape {
  height: 14px;
  background: var(--ag-gold) var(--ag-tape) left center / 72px 14px repeat-x;
}
.ag-tape--moving { animation: ag-feed 6s linear infinite; }
@keyframes ag-feed { to { background-position: 72px center; } }

/* Masthead */
.ag-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.ag-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head wire" "body wire"; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 0; align-items: start; }
.ag-hero__head { grid-area: head; align-self: end; }
.ag-hero__body { grid-area: body; }
.ag-teletype { grid-area: wire; align-self: center; }
.ag-wordmark { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.ag-wordmark img { width: 3.1rem; height: auto; }
.ag-wordmark span { font-size: 2.4rem; font-weight: 850; font-stretch: 70%; letter-spacing: 0.005em; color: #fff; line-height: 1; }
.ag-hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 850;
  font-stretch: 66%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  color: #fff;
  text-wrap: balance;
}
.ag-hero h1 em { font-style: normal; color: var(--ag-gold-mid); }
.ag-hero__lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.55; color: #cfd2f6; max-width: 34rem; margin: 0 0 2rem; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.ag-btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-weight: 750; font-stretch: 85%; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 2px;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), background-color 160ms, color 160ms;
}
.ag-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.ag-btn--gold { background: var(--ag-gold-mid); color: var(--ag-midnight) !important; box-shadow: 0 6px 18px -8px rgba(251, 191, 36, 0.6); }
.ag-btn--gold:hover { background: var(--ag-canary); transform: translateY(-1px); }
.ag-btn--line { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(199, 210, 254, 0.45); }
.ag-btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ag-canary); color: var(--ag-canary) !important; }
.ag-facts { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-family: var(--ag-font-mono); font-size: 0.72rem; color: #a9acdd; letter-spacing: 0.02em; }
.ag-facts b { color: var(--ag-canary); font-weight: 700; }

/* The teletype */
.ag-teletype { position: relative; }
.ag-teletype__paper {
  position: relative;
  background: var(--ag-canary-pale);
  color: #2a2614;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 0;
  min-height: 25rem;
  overflow: hidden;
}
.ag-teletype__paper::before {
  /* tractor-feed margins */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 22px;
  background: radial-gradient(circle at 11px 12px, rgba(20, 18, 58, 0.85) 3.5px, transparent 4px) 0 0 / 22px 24px repeat-y;
  border-right: 1px dashed rgba(42, 38, 20, 0.25);
}
.ag-teletype__paper::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 22px;
  background: radial-gradient(circle at 11px 12px, rgba(20, 18, 58, 0.85) 3.5px, transparent 4px) 0 0 / 22px 24px repeat-y;
  border-left: 1px dashed rgba(42, 38, 20, 0.25);
}
.ag-teletype canvas { display: block; width: 100%; height: 25rem; }
.ag-teletype__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--ag-font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ag-indigo-soft); margin-bottom: 0.6rem;
}
.ag-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ag-canary); }
.ag-live i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ag-flash); animation: ag-blink 1.6s steps(2, start) infinite; }
@keyframes ag-blink { to { visibility: hidden; } }
.ag-teletype__note { margin-top: 0.6rem; font-size: 0.72rem; color: #8f93c9; }
.ag-static { display: none; }

/* Sections */
.ag-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.ag-section--paper { background: var(--ag-canary-pale); color: #24204a; }
.ag-section--ink { background: var(--ag-ink); }
.ag-h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 820; font-stretch: 70%; line-height: 1;
  letter-spacing: -0.005em; margin: 0 0 1rem; text-wrap: balance;
}
.ag-section--paper .ag-h2 { color: var(--ag-midnight); }
.ag-sub { font-size: 1.08rem; line-height: 1.6; max-width: 42rem; margin: 0 0 2.6rem; color: inherit; opacity: 0.86; }

/* Route: detect -> normalize -> deliver */
.ag-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; border-top: 2px solid var(--ag-midnight); }
.ag-route li { list-style: none; padding: 1.4rem 1.6rem 0 0; position: relative; }
.ag-route li::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ag-gold); box-shadow: 0 0 0 4px var(--ag-canary-pale), 0 0 0 5.5px var(--ag-midnight);
}
.ag-route h3 { font-size: 1.55rem; font-weight: 850; font-stretch: 70%; margin: 0.6rem 0 0.5rem; color: var(--ag-midnight); }
.ag-route p { margin: 0; line-height: 1.6; font-size: 0.98rem; }
.ag-route .slug { color: var(--ag-gold-deep); }
.ag-route code { font-family: var(--ag-font-mono); font-size: 0.85em; background: rgba(30, 27, 75, 0.08); padding: 0.05em 0.3em; }

/* Bulletin anatomy */
.ag-anatomy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ag-code {
  background: #0d0b2a; color: #dfe3ff; font-family: var(--ag-font-mono); font-size: 0.8rem; line-height: 1.6;
  padding: 1.4rem 1.5rem; overflow-x: auto; margin: 0; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  border-top: 3px solid var(--ag-gold);
}
.ag-code .k { color: #a5b4fc; }
.ag-code .s { color: var(--ag-canary); }
.ag-code .n { color: #fca5a5; }
.ag-code mark { background: rgba(251, 191, 36, 0.18); color: inherit; padding: 0 0.15em; outline: 1px solid rgba(251, 191, 36, 0.5); }
.ag-notes { margin: 0; padding: 0; }
.ag-notes dt { font-family: var(--ag-font-mono); font-size: 0.78rem; color: var(--ag-canary); margin-top: 1.2rem; }
.ag-notes dt:first-child { margin-top: 0; }
.ag-notes dd { margin: 0.3rem 0 0; line-height: 1.6; color: #cfd2f6; font-size: 0.98rem; }

/* Desks (sinks) as a routing slip */
.ag-desks { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.ag-desks th, .ag-desks td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid rgba(30, 27, 75, 0.18); vertical-align: top; }
.ag-desks th { font-family: var(--ag-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ag-gold-deep); font-weight: 700; }
.ag-desks td:first-child { font-weight: 800; font-stretch: 75%; font-size: 1.3rem; color: var(--ag-midnight); white-space: nowrap; }
.ag-desks td.mono { font-size: 0.78rem; color: #4a4580; }
.ag-desks a { color: var(--ag-indigo); font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; }
.ag-desks tr { transition: background-color 200ms; }
.ag-desks tbody tr:hover { background: rgba(251, 191, 36, 0.14); }

/* The Home Assistant story */
.ag-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ag-steps { counter-reset: s; margin: 1.6rem 0 2rem; padding: 0; }
.ag-steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid rgba(199, 210, 254, 0.14); color: #d4d7f7; line-height: 1.5; }
.ag-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--ag-font-mono); color: var(--ag-gold-mid); font-size: 0.8rem; padding-top: 0.15rem; }
.ag-steps b { color: #fff; }
.ag-film {
  position: relative; display: block; aspect-ratio: 16 / 9; background: #0d0b2a; overflow: hidden; text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); border: 1px solid rgba(199, 210, 254, 0.18);
}
.ag-film canvas { width: 100%; height: 100%; display: block; }
.ag-film__play {
  position: absolute; left: 1.2rem; bottom: 1.2rem; display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ag-gold-mid); color: var(--ag-midnight); font-weight: 800; font-stretch: 85%; padding: 0.7rem 1.1rem; border-radius: 2px;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1);
}
.ag-film:hover .ag-film__play { transform: translateY(-2px); }
.ag-film__play svg { width: 1.1rem; height: 1.1rem; }
.ag-film__len { position: absolute; right: 1rem; top: 0.9rem; font-family: var(--ag-font-mono); font-size: 0.7rem; color: var(--ag-canary); letter-spacing: 0.08em; }

/* Install */
.ag-install { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.ag-term { background: #0d0b2a; font-family: var(--ag-font-mono); font-size: 0.82rem; line-height: 1.75; padding: 1.3rem 1.5rem; color: #dfe3ff; margin: 0; overflow-x: auto; border-left: 0; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8); }
.ag-term .c { color: #7c80b8; }
.ag-term .p { color: var(--ag-gold-mid); user-select: none; }

/* Shipped vs planned */
.ag-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.ag-ledger h3 { font-family: var(--ag-font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.8rem; padding-bottom: 0.6rem; border-bottom: 2px solid currentColor; }
.ag-ledger ul { margin: 0; padding: 0; }
.ag-ledger li { list-style: none; padding: 0.45rem 0; border-bottom: 1px solid rgba(30, 27, 75, 0.12); font-size: 0.98rem; }
.ag-ledger .shipped h3 { color: var(--ag-midnight); }
.ag-ledger .planned h3 { color: #6b6890; }
.ag-ledger .planned li { color: #6b6890; }

/* Close */
.ag-close { text-align: left; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ag-close p { color: #cfd2f6; font-size: 1.1rem; max-width: 36rem; margin: 0 0 2rem; }

.ag-home :focus-visible { outline: 2px solid var(--ag-canary); outline-offset: 3px; }

@media (max-width: 60em) {
  .ag-hero__grid { grid-template-areas: "head" "wire" "body"; row-gap: 1.6rem; }
  .ag-hero__grid, .ag-anatomy, .ag-story, .ag-install { grid-template-columns: minmax(0, 1fr); }
  .ag-route { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ag-midnight); margin-left: 0.5rem; }
  .ag-route li { padding: 0 0 1.8rem 1.6rem; }
  .ag-route li::before { top: 0.2rem; left: -9px; }
  .ag-ledger { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ag-desks td.mono { display: none; }
  .ag-desks th:nth-child(3) { display: none; }
}
@media (max-width: 30em) {
  .ag-teletype canvas, .ag-teletype__paper { height: 17rem; min-height: 17rem; }
  .ag-hero h1 { margin-bottom: 0.4rem; }
  .ag-wordmark { margin-bottom: 1rem; }
  .ag-wordmark span { font-size: 1.9rem; }
  .ag-desks td:first-child { white-space: normal; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-tape--moving, .ag-live i { animation: none; }
  .ag-btn, .ag-film__play { transition: none; }
}

/* Story steps read at body size; inline code inside the home sections. */
.ag-steps li { font-size: 0.98rem; }
.ag-home code { font-family: var(--ag-font-mono); font-size: 0.85em; }
.ag-steps code { color: var(--ag-canary); }

/* Wire slips: admonitions get an ink slug band with the priority as a stamp. */
.md-typeset .admonition, .md-typeset details { background: var(--md-default-bg-color); border-color: rgba(30, 27, 75, 0.25); }
.md-typeset .admonition > .admonition-title, .md-typeset details > summary {
  background: var(--ag-ink); color: var(--ag-canary); margin: 0 -0.6rem; padding-left: 2.2rem; border: 0;
}
.md-typeset .admonition > .admonition-title::before, .md-typeset details > summary::before { background-color: var(--ag-gold-mid); }
.md-typeset .admonition > .admonition-title::after {
  content: "ROUTINE"; float: right; margin-right: 0.2rem; padding: 0 0.4em; font-size: 0.58rem; letter-spacing: 0.1em;
  border: 1.5px solid currentColor; transform: rotate(-3deg); opacity: 0.9;
}
.md-typeset .admonition.warning > .admonition-title::after, .md-typeset .admonition.danger > .admonition-title::after { content: "FLASH"; color: #ff8a73; }
.md-typeset .admonition.info > .admonition-title::after, .md-typeset .admonition.note > .admonition-title::after { content: "BULLETIN"; }
[data-md-color-scheme="slate"] .md-typeset .admonition, [data-md-color-scheme="slate"] .md-typeset details { border-color: rgba(199, 210, 254, 0.18); }
[data-md-color-scheme="slate"] .md-typeset .admonition > .admonition-title { background: #0d0b2a; }

/* Identifiers in tables never break mid-word. */
.md-typeset table:not([class]) code { word-break: normal; overflow-wrap: normal; white-space: nowrap; }

.md-typeset .admonition, .md-typeset details { border-width: 1px; border-left-width: 1px; }
.md-typeset .admonition[class], .md-typeset details[class] { border-color: rgba(30, 27, 75, 0.25); }
[data-md-color-scheme="slate"] .md-typeset .admonition[class], [data-md-color-scheme="slate"] .md-typeset details[class] { border-color: rgba(199, 210, 254, 0.18); }
