/* Thoughts on AI: sans headings, a serif reading column, one teal accent.
   Light and dark follow the system setting; the header toggle overrides it (data-theme on <html>).
   Every colour is a light-dark() pair, so each one is defined once. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-italic.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --site-width: 760px;
  --site-serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --site-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --site-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --site-bg: light-dark(#ffffff, #0e131a);
  --site-fg: light-dark(#0f172a, #e6eaf0);
  --site-muted: light-dark(#5b6474, #98a2b3);
  --site-rule: light-dark(#e5e7eb, #222b37);
  /* Borders that must stay visible on dark backgrounds (figures, tables, boxes). */
  --site-rule-strong: light-dark(#e5e7eb, #364355);
  --site-card: light-dark(#ffffff, #121a24);
  --site-accent: light-dark(#0f766e, #2dd4bf);
  --site-accent-strong: light-dark(#115e59, #5eead4);
  --site-tint: light-dark(#ecfdf8, #0f2624);
  --site-tint-fg: light-dark(#134e4a, #b8efe6);
  --site-chip: light-dark(#e6f6f3, #13302d);
  --site-shadow: light-dark(rgba(15, 23, 42, 0.08), rgba(0, 0, 0, 0.4));
  --site-inline-code: light-dark(#f1f5f9, #243143);

  /* The theme's own variables, mapped onto ours. */
  --md-default-bg-color: var(--site-bg);
  --md-default-fg-color: var(--site-fg);
  --md-default-fg-color--light: var(--site-muted);
  --md-default-fg-color--lighter: light-dark(#a3a9b4, #5f6b7a);
  --md-default-fg-color--lightest: var(--site-rule);
  --md-typeset-color: var(--site-fg);
  --md-typeset-a-color: var(--site-accent);
  --md-accent-fg-color: var(--site-accent-strong);
  --md-primary-fg-color: var(--site-fg);
  --md-text-font-family: var(--site-serif);
  --md-code-font-family: var(--site-mono);

  /* Code blocks stay dark in both modes. */
  --md-code-bg-color: light-dark(#0f172a, #182231);
  --md-code-fg-color: #e2e8f0;
  --md-code-hl-color: #1e3a5f;
  --md-code-hl-number-color: #f5a97f;
  --md-code-hl-special-color: #f38ba8;
  --md-code-hl-function-color: #89b4fa;
  --md-code-hl-constant-color: #cba6f7;
  --md-code-hl-keyword-color: #89b4fa;
  --md-code-hl-string-color: #a6d189;
  --md-code-hl-name-color: #e2e8f0;
  --md-code-hl-operator-color: #94a3b8;
  --md-code-hl-punctuation-color: #94a3b8;
  --md-code-hl-comment-color: #7c8799;
  --md-code-hl-generic-color: #94a3b8;
  --md-code-hl-variable-color: #e2e8f0;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body {
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-serif);
  -webkit-font-smoothing: antialiased;
}

/* One column, no sidebars. */
.md-main__inner.md-grid,
.site-header,
.site-footer {
  width: 100%;
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.md-main__inner.md-grid { margin-top: 0; }
.md-content { max-width: none; }
.md-content__inner { margin: 0; padding: 0 0 32px; }
.md-content__inner::before { display: none; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  font-family: var(--site-sans);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  border-bottom: 1px solid var(--site-rule);
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--site-fg);
  text-decoration: none;
}
.site-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--site-accent);
  color: var(--site-bg);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--site-muted); text-decoration: none; }
.site-nav a:hover { color: var(--site-accent); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--site-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--site-muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--site-accent); border-color: var(--site-accent); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
/* Show the moon in light mode (switch to dark), the sun in dark mode. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Phones: name and toggle on the first line, the links below. */
@media (max-width: 560px) {
  .site-header { padding-top: 20px; padding-bottom: 16px; }
  .site-name { order: 1; }
  .theme-toggle { order: 2; margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; }
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
  font-family: var(--site-sans);
  font-size: 14px;
  color: var(--site-muted);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  border-top: 1px solid var(--site-rule);
}
.site-footer__links { display: flex; gap: 18px; }
.site-footer a { color: var(--site-muted); text-decoration: none; }
.site-footer a:hover { color: var(--site-accent); }

/* Home page intro */
.intro {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 48px 0 44px;
  padding: 28px;
  border-radius: 16px;
  background: var(--site-tint);
  font-family: var(--site-sans);
}
.intro img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.intro p { margin: 0; }
.intro__name { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--site-fg); margin-bottom: 6px !important; }
.intro__text { font-size: 17px; line-height: 1.55; color: var(--site-tint-fg); }
@media (max-width: 560px) {
  .intro { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* Post lists: the home page, categories and archives */
.list-label {
  font-family: var(--site-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-muted);
  margin: 0 0 14px;
}
.list-header { margin-top: 48px; }
.list-header h1 {
  font-family: var(--site-sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.post-list { display: grid; gap: 16px; }
.post-card {
  border: 1px solid var(--site-rule);
  border-radius: 14px;
  padding: 22px 24px 24px;
  background: var(--site-card);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.post-card:hover { box-shadow: 0 8px 28px var(--site-shadow); transform: translateY(-2px); }
.post-card__title {
  font-family: var(--site-sans);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}
.post-card--featured .post-card__title { font-size: 27px; }
.post-card__title a { color: var(--site-fg); text-decoration: none; }
.post-card__title a:hover { color: var(--site-accent); }
.post-card__desc { margin: 8px 0 0; font-size: 18px; line-height: 1.55; color: var(--site-muted); }

/* The meta line: category chips, date, read time */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-family: var(--site-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--site-muted);
  font-variant-numeric: tabular-nums;
}
.post-meta__when { white-space: nowrap; }
.post-meta time + span::before,
.post-meta__when + span::before { content: "·"; margin: 0 10px; }
.md-typeset .post-category,
.post-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--site-chip);
  color: var(--site-accent-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.post-category:hover { background: var(--site-accent); color: var(--site-bg) !important; }
.post-draft {
  font-size: 12px;
  border: 1px solid var(--site-rule);
  border-radius: 4px;
  padding: 0 6px;
}

.md-typeset .back-link {
  display: inline-block;
  margin: -12px 0 22px;
  font-family: var(--site-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--site-muted);
  text-decoration: none;
}
.md-typeset .back-link:hover { color: var(--site-accent); }

/* Categories page */
.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.category-list a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--site-rule);
  border-radius: 12px;
  background: var(--site-card);
  font-family: var(--site-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--site-fg);
  text-decoration: none;
}
.category-list a:hover { border-color: var(--site-accent); color: var(--site-accent); }

/* Reading */
.md-typeset {
  font-size: 20px;
  line-height: 1.7;
  color: var(--site-fg);
}
.md-typeset.post { padding-top: 48px; }
.md-typeset h1 {
  font-family: var(--site-sans);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--site-fg);
  margin: 14px 0 14px;
}
.post-lede { font-size: 22px; line-height: 1.5; color: var(--site-muted); margin: 0 0 36px !important; }
.md-typeset h2,
.md-typeset h3 { font-family: var(--site-sans); letter-spacing: -0.02em; color: var(--site-fg); }
.md-typeset h2 { font-size: 27px; line-height: 1.3; font-weight: 700; margin: 48px 0 12px; }
.md-typeset h3 { font-size: 21px; line-height: 1.35; font-weight: 700; margin: 34px 0 8px; }
.md-typeset h4 { font-family: var(--site-sans); font-size: 18px; font-weight: 700; margin: 28px 0 6px; }
.md-typeset p, .md-typeset ul, .md-typeset ol { margin: 0 0 22px; }
.md-typeset li { margin-bottom: 6px; }
.md-typeset a { color: var(--site-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.md-typeset a:hover { color: var(--site-accent-strong); }
.md-typeset img { border-radius: 14px; }
.md-typeset hr { border: 0; border-top: 1px solid var(--site-rule); margin: 40px 0; }
.md-typeset code, .md-typeset pre, .md-typeset kbd { font-family: var(--site-mono); }
.md-typeset :not(pre) > code {
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--site-inline-code);
  color: var(--site-fg);
}
.md-typeset pre > code { font-size: 14px; line-height: 1.6; padding: 18px 20px; border-radius: 12px; box-shadow: inset 0 0 0 1px light-dark(transparent, #2c3a4d); }
.md-typeset .headerlink { display: none; }
/* The copy button on code blocks: small, quiet, and visible on the dark code background in both themes. */
.md-typeset .md-code__nav { top: 8px; right: 8px; padding: 2px; gap: 2px; border-radius: 6px; background: transparent; }
.md-typeset pre:hover .md-code__nav { background: rgba(255, 255, 255, 0.06); }
.md-typeset .md-code__button { width: 22px; height: 22px; color: #64748b; }
.md-typeset .md-code__button::after { width: 14px; height: 14px; }
.md-typeset .md-code__button:hover,
.md-typeset .md-code__button.focus-visible,
.md-typeset .md-code__button--active { color: #e2e8f0 !important; }
.md-typeset blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--site-tint);
  color: var(--site-tint-fg);
  font-family: var(--site-sans);
  font-size: 19px;
  line-height: 1.55;
}
.md-typeset blockquote p:last-child { margin-bottom: 0; }
.md-typeset blockquote strong { color: var(--site-fg); }
.md-typeset abbr { text-decoration: none; border-bottom: 1px dotted var(--site-muted); cursor: help; }

/* Table of contents. Wide screens: a sticky column right of the text. Narrow: a collapsed box. */
.md-typeset.post { position: relative; }
.toc-side { display: none; }
/* "details.toc-inline" beats the theme's own details (admonition) styles. */
.md-typeset details.toc-inline {
  margin: 0 0 36px;
  padding: 0;
  border: 1px solid var(--site-rule);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-family: var(--site-sans);
  font-size: 16px;
}
.md-typeset details.toc-inline > summary {
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
  color: var(--site-fg);
  cursor: pointer;
}
.md-typeset details.toc-inline > summary::before { display: none; }
.md-typeset details.toc-inline > summary::after { top: 14px; right: 16px; background-color: var(--site-muted); }
.md-typeset details.toc-inline[open] > summary::after { transform: rotate(90deg); }
.toc-inline nav { padding: 0 18px 14px; }
.post .toc-inline ol,
.post .toc-side ol { list-style: none; margin: 0; padding: 0; }
/* !important: the theme indents list items with a [dir="ltr"] selector. */
.post .toc-inline li,
.post .toc-side li { margin: 0 !important; }
.post .toc-inline ol ol { padding-left: 16px; }
.post .toc-inline a {
  display: block;
  padding: 5px 0;
  color: var(--site-muted);
  text-decoration: none;
  line-height: 1.4;
}
.post .toc-inline a:hover { color: var(--site-accent); }

@media (min-width: 1280px) {
  .md-typeset details.toc-inline { display: none; }
  .toc-side {
    display: block;
    position: absolute;
    top: 48px;
    bottom: 0;
    /* At 1280px the article ends at 996px: 40 + 216 leaves a 28px gutter, no sideways scroll. */
    left: calc(100% + 40px);
    width: 216px;
  }
  .toc-side nav {
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    font-family: var(--site-sans);
    font-size: 14px;
    line-height: 1.4;
  }
  .toc-side__label {
    margin: 0 0 10px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-muted);
  }
  .post .toc-side ol { border-left: 1px solid var(--site-rule); }
  .post .toc-side ol ol { border-left: 0; }
  .post .toc-side a {
    display: block;
    margin-left: -1px;
    padding: 5px 0 5px 14px;
    border-left: 2px solid transparent;
    color: var(--site-muted);
    text-decoration: none;
  }
  .post .toc-side ol ol a { padding-left: 28px; font-size: 13.5px; }
  .post .toc-side a:hover { color: var(--site-fg); }
  .post .toc-side a.is-active { color: var(--site-accent); border-left-color: var(--site-accent); font-weight: 600; }
}

/* Author card at the end of a post */
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 56px;
  padding: 22px;
  border: 1px solid var(--site-rule);
  border-radius: 14px;
  font-family: var(--site-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--site-muted);
}
.author-card img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.author-card p { margin: 0 !important; }
.author-card strong { color: var(--site-fg); }
.md-typeset .author-card__follow {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--site-fg);
  color: var(--site-bg);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.md-typeset .author-card__follow:hover { background: var(--site-accent); color: var(--site-bg); }
/* Phones: slightly smaller type and tighter boxes. */
@media (max-width: 560px) {
  .md-typeset { font-size: 18px; }
  .md-typeset.post { padding-top: 32px; }
  .md-typeset h1 { font-size: 32px; }
  .md-typeset h2 { font-size: 24px; margin-top: 40px; }
  .post-lede { font-size: 19px; }
  .intro { margin: 28px 0 32px; }
  .list-header { margin-top: 32px; }
  .post-card { padding: 18px 18px 20px; }
  .post-card__title,
  .post-card--featured .post-card__title { font-size: 21px; }
  .post-card__desc { font-size: 17px; }
  .author-card { flex-wrap: wrap; }
  .md-typeset .author-card__follow { margin-left: 68px; }
}

/* Tables: the theme's default type is tiny; match the text instead. */
.md-typeset .md-typeset__table { display: block; margin: 16px 0 24px; }
.md-typeset .md-typeset__table table:not([class]) {
  display: table;
  width: 100%;
  border: 1px solid var(--site-rule-strong);
  border-radius: 12px;
  font-family: var(--site-sans);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: none;
}
.md-typeset table:not([class]) th { font-size: 14px; font-weight: 700; color: var(--site-fg); background: transparent; }
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td { padding: 10px 14px; vertical-align: top; border-color: var(--site-rule-strong); }
.md-typeset table:not([class]) code { font-size: 13px; word-break: break-word; }
@media (max-width: 560px) {
  .md-typeset .md-typeset__table table:not([class]) { font-size: 14px; }
  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td { padding: 8px 10px; }
}

/* "Avoid / Do instead" tables: on phones each row becomes a small card with both labels,
   so commands in code keep their full width instead of breaking mid-word. */
@media (max-width: 560px) {
  .avoid-do .md-typeset__table table:not([class]) { display: block; border: 0; border-radius: 0; }
  .avoid-do table:not([class]) thead { display: none; }
  .avoid-do table:not([class]) tbody,
  .avoid-do table:not([class]) tr,
  .avoid-do table:not([class]) td { display: block; width: auto; }
  .avoid-do table:not([class]) tr {
    margin: 0 0 12px;
    border: 1px solid var(--site-rule-strong);
    border-radius: 12px;
    background: transparent !important;
  }
  .avoid-do table:not([class]) td { border: 0; padding: 8px 12px; }
  .avoid-do table:not([class]) td + td { border-top: 1px solid var(--site-rule-strong); }
  .avoid-do table:not([class]) td::before {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--site-muted);
  }
  .avoid-do table:not([class]) td:first-child::before { content: "Avoid"; }
  .avoid-do table:not([class]) td:last-child::before { content: "Do instead"; }
  .avoid-do table:not([class]) code { word-break: normal; white-space: nowrap; }
}
/* Very narrow phones: the longest command no longer fits on one line, so let it wrap. */
@media (max-width: 360px) {
  .avoid-do table:not([class]) code { white-space: normal; overflow-wrap: anywhere; }
}

/* "Show the code" boxes (??? code "…"): the same quiet look as the inline table of contents. */
.md-typeset details.code {
  margin: 20px 0 28px;
  padding: 0;
  border: 1px solid var(--site-rule-strong);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-size: inherit;
}
.md-typeset details.code > summary {
  margin: 0;
  padding: 12px 44px 12px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: var(--site-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--site-fg);
  cursor: pointer;
}
.md-typeset details.code > summary::before { display: none; }
.md-typeset details.code > summary::after { top: 14px; right: 16px; background-color: var(--site-muted); }
.md-typeset details.code[open] > summary::after { transform: rotate(90deg); }
.md-typeset details.code > :not(summary) { margin-left: 18px; margin-right: 18px; }
.md-typeset details.code > :last-child { margin-bottom: 18px; }
.md-typeset details.code p { font-size: 17px; margin-top: 16px; }

/* Threat map: the parts of the setup, each with its threats and what stops them.
   Left zone runs outside code; right zone only serves plain files. Plain HTML, no script. */
.md-typeset .threat-map {
  --tm-code-bg: light-dark(#fff7ed, #2b1d0f);
  --tm-code-rule: light-dark(#fed7aa, #6e4722);
  --tm-files-bg: light-dark(#ecfdf8, #0f2f2b);
  --tm-files-rule: light-dark(#e6f6f3, #1f5a52);
  --tm-card-bg: light-dark(#ffffff, #18222f);
  --tm-code-fg: light-dark(#9a3412, #fdba74);
  margin: 28px 0 36px;
  font-family: var(--site-sans);
}
.md-typeset .tm-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-typeset .tm-zone { border-radius: 12px; padding: 12px; border: 1px solid; }
.md-typeset .tm-zone--code { background: var(--tm-code-bg); border-color: var(--tm-code-rule); }
.md-typeset .tm-zone--files { background: var(--tm-files-bg); border-color: var(--tm-files-rule); }
.md-typeset .tm-zone__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.md-typeset .tm-zone--code .tm-zone__label { color: var(--tm-code-fg); }
.md-typeset .tm-zone--files .tm-zone__label { color: var(--site-tint-fg); }
.md-typeset .tm-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-typeset .tm-part__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--site-fg); }
.md-typeset .tm-part__what { margin: 0 0 8px; font-size: 13px; line-height: 1.3; color: var(--site-muted); }
.md-typeset ul.tm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.md-typeset .tm-cards li { margin: 0 !important; padding: 0; }
.md-typeset .tm-card {
  position: relative;
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 7px 9px 8px;
  border: 1px solid var(--site-rule-strong);
  border-radius: 8px;
  background: var(--tm-card-bg);
  color: var(--site-fg);
  line-height: 1.25;
  cursor: pointer;
  outline: none;
}
.md-typeset .tm-card:hover,
.md-typeset .tm-card:focus { border-color: var(--site-accent); }
/* The explanation: shown on hover, or on tap/keyboard focus. No script. */
.md-typeset .tm-tip {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  width: 250px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--site-fg);
  color: var(--site-bg);
  box-shadow: 0 8px 24px var(--site-shadow);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s;
  pointer-events: none;
}
.md-typeset .tm-tip strong { color: inherit; }
.md-typeset .tm-card:hover .tm-tip,
.md-typeset .tm-card:focus .tm-tip { opacity: 1; visibility: visible; }
/* Cards near the right edge open their explanation leftwards. */
.md-typeset .tm-zone--files .tm-part:last-child .tm-tip { left: auto; right: 0; }
.md-typeset .tm-threat { display: block; font-size: 14px; font-weight: 600; }
.md-typeset .tm-fix { display: block; margin-top: 2px; font-size: 13px; color: var(--site-accent-strong); }
.md-typeset .tm-band {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--site-rule-strong);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--site-muted);
}
.md-typeset .tm-band strong { color: var(--site-fg); }
.md-typeset .threat-map figcaption {
  margin: 10px 0 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--site-muted);
  text-align: left;
}
@media (min-width: 721px) {
  .md-typeset .tm-part__name::after { content: " \2192"; color: var(--site-muted); font-weight: 400; }
  .md-typeset .tm-zone--files .tm-part:last-child .tm-part__name::after { content: none; }
}
/* Narrower screens: the two zones stack; on phones each part's cards sit two by two. */
@media (max-width: 720px) {
  .md-typeset .tm-zones { grid-template-columns: 1fr; }
  .md-typeset .tm-part:last-child .tm-tip { left: auto; right: 0; }
}
@media (max-width: 480px) {
  .md-typeset .tm-parts { grid-template-columns: 1fr; gap: 14px; }
  .md-typeset ul.tm-cards { grid-template-columns: 1fr 1fr; }
  .md-typeset .tm-part .tm-cards li:nth-child(odd) .tm-tip { left: 0; right: auto; }
  .md-typeset .tm-part .tm-cards li:nth-child(even) .tm-tip { left: auto; right: 0; }
}

/* Things the plain layout doesn't use */
.md-header, .md-tabs, .md-sidebar, .md-top, .md-footer, .md-content__button { display: none !important; }
