/* ==========================================================================
   QA‑Lab · Material for MkDocs theme
   A blog-oriented reading experience layered on top of Material.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --lab-bg: #f5f7fb;
  --lab-bg-soft: #eef2f9;
  --lab-surface: #ffffff;
  --lab-surface-2: #f8faff;
  --lab-ink: #101828;
  --lab-ink-2: #344054;
  --lab-muted: #667085;
  --lab-muted-2: #98a2b3;
  --lab-line: #e4e7ec;
  --lab-line-strong: #d0d5dd;
  --lab-brand: #4f46e5;
  --lab-brand-2: #7c3aed;
  --lab-cyan: #0891b2;
  --lab-green: #059669;
  --lab-amber: #d97706;
  --lab-brand-soft: rgba(79, 70, 229, 0.08);
  --lab-brand-softer: rgba(79, 70, 229, 0.04);
  --lab-cyan-soft: rgba(8, 145, 178, 0.09);
  --lab-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --lab-shadow-md: 0 14px 34px -18px rgba(16, 24, 40, 0.22);
  --lab-shadow-lg: 0 34px 80px -42px rgba(16, 24, 40, 0.38);
  --lab-radius-sm: 10px;
  --lab-radius: 16px;
  --lab-radius-lg: 24px;
  --lab-header-bg: rgba(255, 255, 255, 0.82);
  --lab-header-border: rgba(16, 24, 40, 0.08);
  --lab-code-bg: #f6f8fc;
  --lab-code-border: #e4e7ec;
  --lab-gradient: linear-gradient(120deg, #6366f1 0%, #8b5cf6 46%, #22d3ee 100%);
  --lab-gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.08));
  --lab-terminal-bg: rgba(13, 20, 38, 0.92);

  /* Material variables */
  --md-primary-fg-color: #4f46e5;
  --md-primary-fg-color--light: #6366f1;
  --md-primary-fg-color--dark: #4338ca;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.72);
  --md-accent-fg-color: #0891b2;
  --md-accent-fg-color--transparent: rgba(8, 145, 178, 0.1);
  --md-default-bg-color: var(--lab-bg);
  --md-default-fg-color: var(--lab-ink);
  --md-default-fg-color--light: var(--lab-muted);
  --md-default-fg-color--lighter: var(--lab-muted-2);
  --md-default-fg-color--lightest: var(--lab-line);
  --md-typeset-color: var(--lab-ink-2);
  --md-typeset-a-color: var(--lab-brand);
  --md-code-bg-color: var(--lab-code-bg);
  --md-code-fg-color: #1d2939;
  --md-footer-bg-color: #070b15;
  --md-footer-fg-color: #cbd5e1;
  --md-text-font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI",
    "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --md-code-font: "Cascadia Code", "JetBrains Mono", Consolas, Menlo, Monaco,
    "Courier New", monospace;
}

[data-md-color-scheme="slate"] {
  --lab-bg: #080d19;
  --lab-bg-soft: #0c1324;
  --lab-surface: #101827;
  --lab-surface-2: #141e31;
  --lab-ink: #edf2f9;
  --lab-ink-2: #cbd5e1;
  --lab-muted: #94a3b8;
  --lab-muted-2: #64748b;
  --lab-line: #22304a;
  --lab-line-strong: #334155;
  --lab-brand: #a5b4fc;
  --lab-brand-2: #c4b5fd;
  --lab-cyan: #67e8f9;
  --lab-green: #6ee7b7;
  --lab-amber: #fcd34d;
  --lab-brand-soft: rgba(129, 140, 248, 0.14);
  --lab-brand-softer: rgba(129, 140, 248, 0.07);
  --lab-cyan-soft: rgba(34, 211, 238, 0.11);
  --lab-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --lab-shadow-md: 0 18px 44px -22px rgba(0, 0, 0, 0.72);
  --lab-shadow-lg: 0 42px 90px -48px rgba(0, 0, 0, 0.9);
  --lab-header-bg: rgba(8, 13, 25, 0.8);
  --lab-header-border: rgba(148, 163, 184, 0.13);
  --lab-code-bg: #0b1322;
  --lab-code-border: #1e2c46;
  --lab-terminal-bg: rgba(9, 14, 27, 0.95);

  --md-primary-fg-color: #6366f1;
  --md-primary-fg-color--light: #818cf8;
  --md-primary-fg-color--dark: #4f46e5;
  --md-primary-bg-color: #e2e8f0;
  --md-primary-bg-color--light: rgba(226, 232, 240, 0.7);
  --md-accent-fg-color: #22d3ee;
  --md-accent-fg-color--transparent: rgba(34, 211, 238, 0.13);
  --md-default-bg-color: var(--lab-bg);
  --md-default-fg-color: var(--lab-ink);
  --md-default-fg-color--light: var(--lab-muted);
  --md-default-fg-color--lighter: var(--lab-muted-2);
  --md-default-fg-color--lightest: var(--lab-line);
  --md-typeset-color: var(--lab-ink-2);
  --md-typeset-a-color: var(--lab-brand);
  --md-code-bg-color: var(--lab-code-bg);
  --md-code-fg-color: #d7e1f0;
  --md-footer-bg-color: #050810;
  --md-footer-fg-color: #cbd5e1;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--lab-bg);
  background-image: radial-gradient(
      ellipse 80% 44% at 50% -8%,
      rgba(99, 102, 241, 0.1),
      transparent 70%
    ),
    radial-gradient(ellipse 55% 34% at 92% 8%, rgba(34, 211, 238, 0.06), transparent 72%);
  background-attachment: fixed;
  color: var(--lab-ink-2);
}

[data-md-color-scheme="slate"] body {
  background-image: radial-gradient(
      ellipse 80% 44% at 50% -8%,
      rgba(99, 102, 241, 0.16),
      transparent 70%
    ),
    radial-gradient(ellipse 55% 34% at 92% 8%, rgba(34, 211, 238, 0.08), transparent 72%);
}

::selection {
  background: rgba(99, 102, 241, 0.24);
  color: var(--lab-ink);
}

:focus-visible {
  outline: 2px solid var(--lab-brand);
  outline-offset: 2px;
}

.md-container,
.md-main {
  background: transparent;
}

.md-main__inner {
  margin-top: 1.4rem;
}

.md-content {
  min-width: 0;
}

.md-content__inner {
  padding-bottom: 2.4rem;
}

/* --------------------------------------------------------------------------
   3. Header, tabs, search
   -------------------------------------------------------------------------- */
.md-header {
  background: var(--lab-header-bg);
  border-bottom: 1px solid var(--lab-header-border);
  box-shadow: none;
  color: var(--lab-ink);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.md-header.lab-scrolled {
  box-shadow: 0 14px 36px -24px rgba(16, 24, 40, 0.32);
}

[data-md-color-scheme="slate"] .md-header.lab-scrolled {
  box-shadow: 0 18px 42px -26px rgba(0, 0, 0, 0.8);
}

.md-header__inner {
  min-height: 3.2rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.md-header__button {
  border-radius: 9px;
  color: var(--lab-ink);
  opacity: 0.7;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.md-header__button:hover,
.md-header__button:focus {
  background: var(--lab-brand-soft);
  opacity: 1;
}

.md-header__button.md-logo {
  margin-right: 0.15rem;
  padding: 0.16rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  border-radius: 9px;
  box-shadow: 0 8px 20px -12px rgba(79, 70, 229, 0.8);
  height: 1.72rem;
  width: 1.72rem;
}

.md-header__title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.md-header__ellipsis {
  min-width: 0;
}

.md-header__topic:first-child .md-ellipsis {
  color: var(--lab-ink);
}

.md-header__topic[data-md-component="header-topic"] .md-ellipsis {
  color: var(--lab-muted);
  font-weight: 600;
}

.lab-header__rss svg {
  fill: currentColor;
  height: 1.02rem;
  width: 1.02rem;
}

.md-tabs {
  background: transparent;
  border-top: 1px solid var(--lab-header-border);
  color: var(--lab-muted);
}

.md-tabs__list {
  margin-bottom: 0;
  padding: 0.1rem 0 0;
}

.md-tabs__item {
  position: relative;
}

.md-tabs__item::after {
  background: var(--lab-gradient);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0.55rem;
  opacity: 0;
  position: absolute;
  right: 0.55rem;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.md-tabs__item--active::after,
.md-tabs__item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.md-tabs__link {
  color: var(--lab-muted);
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.52rem;
  opacity: 1;
  padding-bottom: 0.62rem;
  transition: color 0.2s ease;
}

.md-tabs__item--active .md-tabs__link,
.md-tabs__link:hover,
.md-tabs__link:focus {
  color: var(--lab-ink);
}

.md-search__form {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 11px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.md-search__form:hover {
  border-color: var(--lab-line-strong);
  box-shadow: 0 8px 20px -18px rgba(16, 24, 40, 0.45);
}

.md-search__input {
  color: var(--lab-ink);
  font-size: 0.7rem;
}

.md-search__input::placeholder {
  color: var(--lab-muted-2);
}

.md-search__icon {
  color: var(--lab-muted);
}

.md-search__output {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--lab-shadow-lg);
}

.md-search-result__meta {
  background: transparent;
  border-bottom: 1px solid var(--lab-line);
  color: var(--lab-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.65rem 1rem;
}

.md-search-result__link:hover {
  background: var(--lab-brand-softer);
}

.md-search-result__title {
  color: var(--lab-ink);
}

.md-search-result__teaser {
  color: var(--lab-muted);
}

.md-search-result mark {
  background: var(--lab-brand-soft);
  color: var(--lab-brand);
}

/* 搜索关闭时彻底移除结果面板，避免留下空白浮层 */
#__search:not(:checked) ~ .md-header .md-search__output,
#__search:not(:checked) ~ .md-header .md-search__suggest {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Editorial typography
   -------------------------------------------------------------------------- */
.md-typeset {
  color: var(--lab-ink-2);
  font-size: 0.82rem;
  line-height: 1.86;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.md-typeset p {
  margin: 1em 0;
}

.md-typeset a {
  color: var(--lab-brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

.md-typeset p a:hover,
.md-typeset li a:hover,
.md-typeset blockquote a:hover,
.md-typeset td a:hover {
  color: var(--lab-cyan);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: var(--lab-ink);
  font-weight: 800;
  letter-spacing: -0.022em;
}

.md-typeset h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.2;
  margin: 0 0 0.8em;
}

.md-typeset h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.52rem);
  line-height: 1.35;
  margin: 2.35em 0 0.75em;
  padding-left: 0.78rem;
  position: relative;
}

.md-typeset h2::before {
  background: var(--lab-gradient);
  border-radius: 999px;
  bottom: 0.18em;
  content: "";
  left: 0;
  position: absolute;
  top: 0.18em;
  width: 3px;
}

.md-typeset h3 {
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 1.9em 0 0.55em;
}

.md-typeset h2,
.md-typeset h3 {
  scroll-margin-top: 4.5rem;
}

.md-typeset h4 {
  font-size: 0.9rem;
  margin: 1.6em 0 0.45em;
}

.md-typeset strong {
  color: var(--lab-ink);
  font-weight: 700;
}

.md-typeset hr {
  background: linear-gradient(90deg, transparent, var(--lab-line), transparent);
  border: 0;
  height: 1px;
  margin: 2.4em 0;
}

.md-typeset blockquote {
  background: var(--lab-brand-softer);
  border-left: 3px solid var(--lab-brand);
  border-radius: 0 12px 12px 0;
  color: var(--lab-ink-2);
  margin: 1.4em 0;
  padding: 0.85em 1.1em;
}

.md-typeset blockquote p {
  margin: 0.25em 0;
}

.md-typeset ul,
.md-typeset ol {
  margin: 0.8em 0;
}

.md-typeset li {
  margin: 0.35em 0;
}

.md-typeset li::marker {
  color: var(--lab-brand);
}

.md-typeset .headerlink {
  border: 0;
  color: var(--lab-muted-2);
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.md-typeset h2:hover .headerlink,
.md-typeset h3:hover .headerlink,
.md-typeset h4:hover .headerlink,
.md-typeset .headerlink:focus {
  opacity: 1;
}

.md-typeset .headerlink:hover {
  color: var(--lab-brand);
}

/* Code */
.md-typeset code {
  background: var(--lab-code-bg);
  border: 1px solid var(--lab-code-border);
  border-radius: 5px;
  color: var(--lab-brand-2);
  font-size: 0.82em;
  padding: 0.12em 0.34em;
}

.md-typeset pre {
  background: var(--lab-code-bg);
  border: 1px solid var(--lab-code-border);
  border-radius: 13px;
  box-shadow: var(--lab-shadow-sm);
  margin: 1.2em 0;
  overflow: hidden;
  position: relative;
}

.md-typeset pre > code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: block;
  font-size: 0.76rem;
  line-height: 1.75;
  padding: 1.05rem 1.1rem;
}

.md-typeset pre[data-lang]::before {
  color: var(--lab-muted-2);
  content: attr(data-lang);
  font-family: var(--md-code-font);
  font-size: 0.54rem;
  font-weight: 600;
  left: 1.05rem;
  letter-spacing: 0.12em;
  pointer-events: none;
  position: absolute;
  top: 0.5rem;
}

.md-typeset pre[data-lang] > code {
  padding-top: 1.55rem;
}

.md-clipboard {
  color: var(--lab-muted-2);
}

.md-clipboard:hover {
  color: var(--lab-brand);
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  box-shadow: var(--lab-shadow-sm);
  font-size: 0.76rem;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--lab-surface-2);
  color: var(--lab-ink);
  font-weight: 700;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid var(--lab-line);
}

.md-typeset table:not([class]) tr:hover {
  background: var(--lab-brand-softer);
}

/* Admonitions */
.md-typeset .admonition,
.md-typeset details {
  background: var(--lab-surface-2);
  border: 1px solid var(--lab-line);
  border-left: 3px solid var(--lab-brand);
  border-radius: 12px;
  box-shadow: none;
  font-size: 0.78rem;
  overflow: hidden;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background: transparent;
  color: var(--lab-ink);
  font-weight: 700;
}

.md-typeset .admonition-title::before,
.md-typeset summary::before {
  background-color: var(--lab-brand);
}

.md-typeset details > summary {
  border-bottom: 0;
}

.md-typeset details[open] > summary {
  border-bottom: 1px solid var(--lab-line);
}

/* Images and media */
.md-typeset img {
  border-radius: 12px;
  box-shadow: var(--lab-shadow-md);
}

.md-typeset figure > img {
  margin-bottom: 0.6em;
}

.md-typeset figcaption {
  color: var(--lab-muted);
  font-size: 0.68rem;
}

.md-typeset iframe,
.md-typeset video {
  border-radius: 12px;
}

/* Keyboard keys */
.md-typeset kbd {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  box-shadow: none;
  color: var(--lab-ink);
  font-size: 0.72em;
}

/* --------------------------------------------------------------------------
   5. Article page
   -------------------------------------------------------------------------- */
.md-path {
  color: var(--lab-muted);
  font-size: 0.64rem;
  margin: 0.15rem 0 0.35rem;
}

.md-path__link {
  color: var(--lab-muted);
}

.md-path__link:hover {
  color: var(--lab-brand);
}

.md-path__icon {
  color: var(--lab-muted-2);
}

body:has(.lab-post-meta) .md-content__inner {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius-lg);
  box-shadow: var(--lab-shadow-md);
  margin-bottom: 2.2rem;
  margin-top: 0.9rem;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 3.1rem);
  position: relative;
}

body:has(.lab-post-meta) .md-content__inner::before {
  background: var(--lab-gradient);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.lab-post-meta {
  align-items: center;
  color: var(--lab-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.64rem;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

.lab-post-meta__eyebrow {
  background: var(--lab-brand-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  color: var(--lab-brand);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.lab-post-meta__date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lab-post-meta__read {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
}

.lab-post-meta__read::before {
  background: var(--lab-green);
  border-radius: 50%;
  content: "";
  height: 5px;
  width: 5px;
}

.lab-post-meta__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.lab-post-meta__tags a {
  background: var(--lab-surface-2);
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  color: var(--lab-muted);
  font-size: 0.6rem;
  padding: 0.12rem 0.45rem;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.lab-post-meta__tags a:hover {
  background: var(--lab-brand-soft);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--lab-brand);
}

.lab-copy {
  align-items: center;
  background: transparent;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  color: var(--lab-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.6rem;
  gap: 0.28rem;
  margin-left: auto;
  padding: 0.22rem 0.5rem;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.lab-copy svg {
  fill: none;
  height: 0.75rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 0.75rem;
}

.lab-copy:hover {
  background: var(--lab-brand-soft);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--lab-brand);
}

.lab-copy.is-copied {
  border-color: rgba(5, 150, 105, 0.35);
  color: var(--lab-green);
}

body:has(.lab-post-meta) .md-typeset h1 {
  margin-top: 0.1em;
}

.lab-postnav {
  border-top: 1px solid var(--lab-line);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 2.6rem;
  padding-top: 1.5rem;
}

.lab-postnav__item {
  background: var(--lab-surface-2);
  border: 1px solid var(--lab-line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.lab-postnav__item:hover {
  background: var(--lab-brand-softer);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.lab-postnav__item--next {
  text-align: right;
}

.lab-postnav__label {
  color: var(--lab-muted-2);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-postnav__item strong {
  color: var(--lab-ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. Layout helpers for wide pages
   -------------------------------------------------------------------------- */
body:has(.lab-hero) .md-main__inner,
body:has(.lab-tags-page) .md-main__inner,
body:has(.lab-category) .md-main__inner,
body:has(.lab-archive) .md-main__inner {
  display: block;
  max-width: 78rem;
}

body:has(.lab-hero) .md-content,
body:has(.lab-tags-page) .md-content,
body:has(.lab-category) .md-content,
body:has(.lab-archive) .md-content {
  max-width: none;
}

body:has(.lab-hero) .md-content__inner,
body:has(.lab-tags-page) .md-content__inner,
body:has(.lab-category) .md-content__inner,
body:has(.lab-archive) .md-content__inner {
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}

body:has(.lab-hero) .md-path,
body:has(.lab-tags-page) .md-path,
body:has(.lab-category) .md-path,
body:has(.lab-archive) .md-path {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Homepage
   -------------------------------------------------------------------------- */
.lab-home {
  display: flex;
  flex-direction: column;
  gap: clamp(2.8rem, 6vw, 4.6rem);
  padding-bottom: 1.5rem;
}

.lab-hero {
  background: #0a0f1d;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  box-shadow: 0 44px 90px -46px rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 4.3rem);
  position: relative;
}

.lab-hero__grid {
  background-image: linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
  background-size: 46px 46px;
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse at 64% 44%, #000 8%, transparent 70%);
  mask-image: radial-gradient(ellipse at 64% 44%, #000 8%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
}

.lab-hero__glow {
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  position: absolute;
}

.lab-hero__glow--one {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 68%);
  height: 28rem;
  right: -8rem;
  top: -10rem;
  width: 28rem;
}

.lab-hero__glow--two {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
  bottom: -12rem;
  height: 26rem;
  left: 30%;
  width: 26rem;
}

.lab-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4.2rem);
  grid-template-columns: minmax(0, 1.18fr) minmax(17rem, 0.82fr);
  position: relative;
  z-index: 2;
}

.lab-eyebrow {
  align-items: center;
  color: var(--lab-brand);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  gap: 0.42rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-eyebrow__dot {
  background: var(--lab-gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--lab-brand-soft);
  display: inline-block;
  height: 6px;
  width: 6px;
}

.lab-hero .lab-eyebrow {
  color: #c7d2fe;
}

.lab-hero .lab-eyebrow__dot {
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.16);
}

.lab-hero h1 {
  color: #f8fafc;
  font-size: clamp(2.15rem, 4.6vw, 3.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 1rem 0 1.1rem;
  padding: 0;
}

.lab-hero h1::before {
  display: none;
}

.lab-gradient-text {
  background: linear-gradient(100deg, #a5b4fc 0%, #c084fc 46%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lab-hero__lead {
  color: #aebbd0;
  font-size: 0.82rem;
  line-height: 1.85;
  margin: 0;
  max-width: 34rem;
}

.lab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.lab-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.42rem;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
}

.lab-btn svg {
  fill: none;
  height: 0.95rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 0.95rem;
}

.lab-btn--primary {
  background: var(--lab-gradient);
  box-shadow: 0 14px 28px -14px rgba(99, 102, 241, 0.85);
  color: #ffffff;
}

.lab-btn--primary:hover {
  box-shadow: 0 18px 32px -14px rgba(99, 102, 241, 0.95);
  color: #ffffff;
  transform: translateY(-2px);
}

.lab-btn--ghost {
  background: transparent;
  border-color: var(--lab-line-strong);
  color: var(--lab-ink);
}

.lab-btn--ghost:hover {
  background: var(--lab-brand-soft);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--lab-brand);
}

.lab-hero .lab-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(226, 232, 240, 0.24);
  color: #e2e8f0;
}

.lab-hero .lab-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(226, 232, 240, 0.42);
  color: #ffffff;
}

.lab-stats {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  gap: clamp(1.2rem, 4vw, 2.4rem);
  margin-top: 1.8rem;
  padding-top: 1.3rem;
}

.lab-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.lab-stat strong {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lab-stat span {
  color: #7f8da3;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lab-hero__visual {
  min-width: 0;
  position: relative;
}

.lab-terminal {
  background: var(--lab-terminal-bg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.lab-terminal__bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
}

.lab-terminal__bar span {
  background: #f87171;
  border-radius: 50%;
  height: 0.42rem;
  width: 0.42rem;
}

.lab-terminal__bar span:nth-child(2) {
  background: #fbbf24;
}

.lab-terminal__bar span:nth-child(3) {
  background: #34d399;
}

.lab-terminal__bar em {
  color: #64748b;
  font-family: var(--md-code-font);
  font-size: 0.54rem;
  font-style: normal;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.lab-terminal pre {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
}

.lab-terminal .md-clipboard,
.lab-terminal .md-code__nav,
.lab-terminal .md-code__button,
.lab-terminal pre button {
  display: none !important;
}

.lab-terminal pre[data-lang]::before {
  display: none;
}

.lab-terminal .md-clipboard {
  display: none;
}

.lab-terminal code {
  background: none;
  border: 0;
  color: #b6c2d6;
  display: block;
  font-size: 0.62rem;
  line-height: 2;
  padding: 1rem 1.05rem;
  white-space: pre;
}

.lab-terminal__prompt {
  color: #a5b4fc;
}

.lab-terminal__ok {
  color: #34d399;
}

.lab-terminal__muted {
  color: #64748b;
}

.lab-terminal__info {
  color: #67e8f9;
}

.lab-terminal__footer {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  display: flex;
  font-family: var(--md-code-font);
  font-size: 0.52rem;
  gap: 0.35rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem;
}

.lab-terminal__live {
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
  height: 5px;
  width: 5px;
}

.lab-float {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #cbd5e1;
  font-family: var(--md-code-font);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  position: absolute;
}

.lab-float--one {
  right: -0.9rem;
  top: -0.75rem;
  transform: rotate(4deg);
}

.lab-float--two {
  bottom: 1.4rem;
  left: -1.2rem;
  transform: rotate(-5deg);
}

.lab-float--three {
  bottom: -0.9rem;
  right: 1.3rem;
  transform: rotate(3deg);
}

.lab-section {
  scroll-margin-top: 6rem;
}

.lab-section__head {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.lab-section__kicker {
  color: var(--lab-brand);
  display: block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 0.32rem;
  text-transform: uppercase;
}

.lab-section h2,
.lab-about h2,
.lab-page-hero h1,
.lab-category h1 {
  color: var(--lab-ink);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.lab-section h2::before,
.lab-about h2::before,
.lab-page-hero h1::before,
.lab-category h1::before {
  display: none;
}

.lab-section__link {
  align-items: center;
  color: var(--lab-muted);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.lab-section__link svg {
  fill: none;
  height: 0.85rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 0.85rem;
}

.lab-section__link:hover {
  color: var(--lab-brand);
  gap: 0.55rem;
}

/* Latest posts */
.lab-posts {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.lab-post-card {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 19px;
  box-shadow: var(--lab-shadow-sm);
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.lab-post-card:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: var(--lab-shadow-md);
  transform: translateY(-3px);
}

.lab-post-card--featured {
  grid-row: 1 / span 3;
}

.lab-post-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.lab-post-card__cover {
  background: radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.28), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(139, 92, 246, 0.34), transparent 45%),
    linear-gradient(145deg, #111827, #1e1b4b 58%, #0e7490);
  flex: 1 1 auto;
  min-height: 13rem;
  overflow: hidden;
  padding: 1.25rem 1.35rem;
  position: relative;
}

.lab-post-card__cover::before {
  background-image: linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  inset: 0;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.lab-post-card__cover::after {
  color: rgba(226, 232, 240, 0.07);
  content: "01";
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  position: absolute;
  right: 1.2rem;
  top: 0.8rem;
}

.lab-post-card__badge {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.55rem;
  position: relative;
  z-index: 1;
}

.lab-post-card__cover-icon {
  bottom: 1.3rem;
  color: rgba(199, 210, 254, 0.9);
  height: 4.4rem;
  position: absolute;
  right: 1.35rem;
  width: 4.4rem;
}

.lab-post-card__cover-icon svg {
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  width: 100%;
}

.lab-post-card__cover-label {
  bottom: 1.35rem;
  color: rgba(226, 232, 240, 0.32);
  font-size: 0.7rem;
  font-weight: 900;
  left: 1.35rem;
  letter-spacing: 0.2em;
  line-height: 1.35;
  position: absolute;
}

.lab-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem;
}

.lab-post-card--featured .lab-post-card__body {
  flex: 0 0 auto;
  padding: 1.35rem 1.45rem 1.5rem;
}

.lab-post-card__meta {
  align-items: center;
  color: var(--lab-muted-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.58rem;
  gap: 0.45rem;
  letter-spacing: 0.04em;
}

.lab-post-card__meta time {
  font-variant-numeric: tabular-nums;
}

.lab-post-card__tag {
  background: var(--lab-brand-soft);
  border-radius: 999px;
  color: var(--lab-brand);
  font-weight: 700;
  padding: 0.1rem 0.42rem;
}

.lab-post-card__body h3 {
  color: var(--lab-ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.42;
  margin: 0;
}

.lab-post-card--featured .lab-post-card__body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.028em;
  line-height: 1.25;
}

.lab-post-card__body p {
  color: var(--lab-muted);
  display: -webkit-box;
  font-size: 0.7rem;
  line-height: 1.65;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lab-post-card--featured .lab-post-card__body p {
  font-size: 0.76rem;
  -webkit-line-clamp: 3;
}

.lab-post-card__more {
  align-items: center;
  color: var(--lab-brand);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 700;
  gap: 0.28rem;
  margin-top: 0.15rem;
  transition: gap 0.2s ease;
}

.lab-post-card__more svg {
  fill: none;
  height: 0.75rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 0.75rem;
}

.lab-post-card:hover .lab-post-card__more {
  gap: 0.48rem;
}

/* Topics */
.lab-topics {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-topic {
  align-items: center;
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  box-shadow: var(--lab-shadow-sm);
  color: inherit;
  display: flex;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0.95rem 1rem;
  position: relative;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.lab-topic::before {
  background: var(--lab-gradient-soft);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.22s ease;
}

.lab-topic:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--lab-shadow-md);
  transform: translateY(-3px);
}

.lab-topic:hover::before {
  opacity: 1;
}

.lab-topic__icon,
.lab-topic__body,
.lab-topic__count,
.lab-topic__arrow {
  position: relative;
  z-index: 1;
}

.lab-topic__icon {
  align-items: center;
  background: var(--lab-brand-soft);
  border-radius: 11px;
  color: var(--lab-brand);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.lab-topic__icon svg {
  fill: none;
  height: 1.1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.1rem;
}

.lab-topic__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.lab-topic__body strong {
  color: var(--lab-ink);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.lab-topic__body span {
  color: var(--lab-muted);
  font-size: 0.57rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-topic__count {
  color: var(--lab-muted-2);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin-left: auto;
}

.lab-topic__arrow {
  fill: none;
  flex: 0 0 auto;
  height: 0.8rem;
  stroke: var(--lab-muted-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: stroke 0.2s ease, transform 0.2s ease;
  width: 0.8rem;
}

.lab-topic:hover .lab-topic__arrow {
  stroke: var(--lab-brand);
  transform: translateX(3px);
}

.lab-topic--all {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.07)),
    var(--lab-surface);
  border-color: rgba(99, 102, 241, 0.2);
}

.lab-map {
  align-items: center;
  background: var(--lab-surface-2);
  border: 1px dashed var(--lab-line-strong);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.8rem 0.9rem;
}

.lab-map__title {
  color: var(--lab-muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-right: 0.2rem;
  text-transform: uppercase;
}

.lab-map__item {
  align-items: center;
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  color: var(--lab-ink-2);
  display: inline-flex;
  font-size: 0.64rem;
  gap: 0.32rem;
  padding: 0.2rem 0.52rem;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

a.lab-map__item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--lab-brand);
}

.lab-map__item em {
  color: var(--lab-brand);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 700;
}

.lab-map__item.is-soon {
  background: transparent;
  border-style: dashed;
  color: var(--lab-muted-2);
}

.lab-map__item.is-soon em {
  color: var(--lab-muted-2);
  font-weight: 500;
}

/* About */
.lab-about {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), transparent 52%),
    var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 24px;
  box-shadow: var(--lab-shadow-sm);
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  scroll-margin-top: 6rem;
}

.lab-about__main p {
  color: var(--lab-muted);
  font-size: 0.8rem;
  line-height: 1.9;
  margin: 0.85rem 0 1.1rem;
  max-width: 40rem;
}

.lab-about__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lab-about__points span {
  background: var(--lab-brand-soft);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 999px;
  color: var(--lab-brand);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
}

.lab-about__card {
  background: var(--lab-surface-2);
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem;
}

.lab-about__eyebrow {
  color: var(--lab-brand);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-about__card h3 {
  color: var(--lab-ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}

.lab-about__card p {
  color: var(--lab-muted);
  font-size: 0.68rem;
  line-height: 1.7;
  margin: 0 0 0.35rem;
}

.lab-about__card .lab-btn {
  align-self: flex-start;
}

.lab-about__site {
  color: var(--lab-muted);
  font-size: 0.62rem;
  margin-top: 0.15rem;
  text-decoration: none;
}

.lab-about__site:hover {
  color: var(--lab-brand);
}

/* --------------------------------------------------------------------------
   8. Category landing pages
   -------------------------------------------------------------------------- */
.lab-category {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-bottom: 2.5rem;
}

.lab-category__hero {
  align-items: flex-start;
  background: radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.1), transparent 36%),
    radial-gradient(circle at 6% 90%, rgba(139, 92, 246, 0.12), transparent 40%),
    var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 24px;
  box-shadow: var(--lab-shadow-sm);
  display: flex;
  gap: clamp(1rem, 3vw, 1.6rem);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  position: relative;
}

.lab-category__icon {
  align-items: center;
  background: var(--lab-gradient);
  border-radius: 19px;
  box-shadow: 0 18px 34px -18px rgba(99, 102, 241, 0.75);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3.7rem;
  justify-content: center;
  width: 3.7rem;
}

.lab-category__icon svg {
  fill: none;
  height: 1.8rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 1.8rem;
}

.lab-category__copy h1 {
  margin: 0.45rem 0 0.55rem;
}

.lab-category__copy p {
  color: var(--lab-muted);
  font-size: 0.78rem;
  line-height: 1.8;
  margin: 0;
  max-width: 42rem;
}

.lab-category__meta {
  align-items: center;
  color: var(--lab-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.62rem;
  gap: 0.8rem;
  margin-top: 1rem;
}

.lab-category__meta a {
  color: var(--lab-brand);
  font-weight: 600;
  text-decoration: none;
}

.lab-category__meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lab-category__list {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.lab-category__post {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  box-shadow: var(--lab-shadow-sm);
  color: inherit;
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lab-category__post:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: var(--lab-shadow-md);
  transform: translateY(-3px);
}

.lab-category__post-index {
  color: var(--lab-muted-2);
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.lab-category__post-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lab-category__post-meta {
  color: var(--lab-muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.lab-category__post-meta span {
  margin: 0 0.2rem;
}

.lab-category__post h2 {
  color: var(--lab-ink);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0.28rem 0 0.35rem;
  padding: 0;
}

.lab-category__post h2::before {
  display: none;
}

.lab-category__post p {
  color: var(--lab-muted);
  font-size: 0.68rem;
  line-height: 1.65;
  margin: 0 0 0.55rem;
}

.lab-category__post-more {
  align-items: center;
  color: var(--lab-brand);
  display: inline-flex;
  font-size: 0.6rem;
  font-weight: 700;
  gap: 0.28rem;
  margin-top: auto;
}

.lab-category__post-more svg {
  fill: none;
  height: 0.72rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 0.72rem;
}

.lab-category__back {
  border-top: 1px solid var(--lab-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.1rem;
}

.lab-category__back a {
  color: var(--lab-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.lab-category__back a:hover {
  color: var(--lab-brand);
}

/* --------------------------------------------------------------------------
   9. Tags page
   -------------------------------------------------------------------------- */
.lab-tags-page {
  padding-bottom: 2.5rem;
}

.lab-page-hero {
  background: radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.1), transparent 36%),
    radial-gradient(circle at 8% 92%, rgba(139, 92, 246, 0.1), transparent 40%),
    var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 24px;
  box-shadow: var(--lab-shadow-sm);
  margin-bottom: 1.7rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.lab-page-hero h1 {
  margin: 0.45rem 0 0.6rem;
}

.lab-page-hero p {
  color: var(--lab-muted);
  font-size: 0.78rem;
  line-height: 1.8;
  margin: 0 0 1.15rem;
  max-width: 42rem;
}

.lab-tags-cloud {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.lab-tag-card {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  box-shadow: var(--lab-shadow-sm);
  padding: 1.1rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lab-tag-card:hover {
  border-color: rgba(99, 102, 241, 0.26);
  box-shadow: var(--lab-shadow-md);
}

.lab-tag-card h2 {
  align-items: center;
  border: 0;
  display: flex;
  font-size: 0.84rem;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0;
}

.lab-tag-card h2::before {
  display: none;
}

.lab-tag-card h2 .headerlink {
  display: none;
}

.lab-tag-card h2 .md-tag {
  background: var(--lab-brand-soft);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 999px;
  color: var(--lab-brand);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.16rem 0.52rem;
}

.lab-tag-card__count {
  color: var(--lab-muted-2);
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-left: auto;
}

.lab-tag-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lab-tag-card li {
  margin: 0;
}

.lab-tag-card li a {
  border-radius: 7px;
  color: var(--lab-ink-2);
  display: block;
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 0.32rem 0.42rem;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lab-tag-card li a:hover {
  background: var(--lab-brand-soft);
  color: var(--lab-brand);
}

.no-js .lab-tags-cloud {
  display: block;
}

.no-js .lab-tags-cloud > h2 {
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   9b. Archive page
   -------------------------------------------------------------------------- */
.lab-archive {
  padding-bottom: 2.5rem;
}

.lab-archive__hero {
  margin-bottom: 1.4rem;
}

.lab-archive__meta {
  color: var(--lab-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.62rem;
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.lab-archive__meta span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.lab-archive__meta span + span::before {
  background: var(--lab-muted-2);
  border-radius: 50%;
  content: "";
  height: 3px;
  margin-right: 0.05rem;
  width: 3px;
}

.lab-archive__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-archive__item {
  align-items: center;
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  box-shadow: var(--lab-shadow-sm);
  color: inherit;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 6.5rem minmax(0, 1fr) 1.6rem;
  padding: 1.15rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lab-archive__item:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: var(--lab-shadow-md);
  transform: translateY(-2px);
}

.lab-archive__item time {
  color: var(--lab-muted-2);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lab-archive__body h2 {
  color: var(--lab-ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0.22rem 0 0.3rem;
  padding: 0;
}

.lab-archive__body h2::before {
  display: none;
}

.lab-archive__body p {
  color: var(--lab-muted);
  font-size: 0.7rem;
  line-height: 1.65;
  margin: 0;
}

.lab-archive__tag {
  background: var(--lab-brand-soft);
  border-radius: 999px;
  color: var(--lab-brand);
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
}

.lab-archive__arrow {
  align-items: center;
  background: var(--lab-brand-soft);
  border-radius: 50%;
  color: var(--lab-brand);
  display: inline-flex;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.lab-archive__arrow svg {
  fill: none;
  height: 0.82rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 0.82rem;
}

.lab-archive__foot {
  border-top: 1px solid var(--lab-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
}

.lab-archive__foot a {
  color: var(--lab-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.lab-archive__foot a:hover {
  color: var(--lab-brand);
}

/* --------------------------------------------------------------------------
   10. Sidebar navigation and TOC
   -------------------------------------------------------------------------- */
.md-sidebar {
  padding-top: 0.2rem;
}

.md-nav__title {
  color: var(--lab-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.md-nav__link {
  border-radius: 8px;
  color: var(--lab-ink-2);
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.05rem 0;
  padding: 0.32rem 0.48rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.md-nav__link:hover,
.md-nav__link:focus {
  background: var(--lab-brand-soft);
  color: var(--lab-brand);
}

.md-nav__link--active {
  background: var(--lab-brand-soft);
  color: var(--lab-brand);
  font-weight: 700;
}

.md-nav__item--nested > .md-nav__link {
  color: var(--lab-ink);
  font-weight: 650;
}

.md-nav__icon {
  color: var(--lab-muted-2);
}

/* 侧边栏层级：分组标题与文章之间的缩进、引导线与自动编号 */
.md-nav__list .md-nav__list {
  padding-left: 0.75rem;
}

.md-nav--primary .md-nav[data-md-level="1"] > .md-nav__list,
.md-nav--primary .md-nav[data-md-level="2"] > .md-nav__list,
.md-nav--primary .md-nav[data-md-level="3"] > .md-nav__list {
  counter-reset: lab-nav-item;
}

.md-nav--primary .md-nav[data-md-level="2"] > .md-nav__list,
.md-nav--primary .md-nav[data-md-level="3"] > .md-nav__list {
  border-left: 1px solid var(--lab-line);
  margin-left: 0.2rem;
  padding-left: 0.85rem;
}

.md-nav--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item > a.md-nav__link > .md-ellipsis::before,
.md-nav--primary .md-nav[data-md-level="2"] > .md-nav__list > .md-nav__item > a.md-nav__link > .md-ellipsis::before,
.md-nav--primary .md-nav[data-md-level="3"] > .md-nav__list > .md-nav__item > a.md-nav__link > .md-ellipsis::before {
  counter-increment: lab-nav-item;
  content: counter(lab-nav-item, decimal-leading-zero);
  display: inline-block;
  min-width: 1.3rem;
  margin-right: 0.45rem;
  color: var(--lab-muted-2);
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.md-nav--primary > .md-nav__title {
  background: linear-gradient(135deg, #111827, #1e1b4b 58%, #0e7490);
  color: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.md-nav--primary > .md-nav__title .md-logo {
  border-radius: 8px;
  height: 1.5rem;
  width: 1.5rem;
}

.md-nav--secondary {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 15px;
  box-shadow: var(--lab-shadow-sm);
  padding: 0.75rem 0.7rem;
}

/* 没有小标题的文章不显示空的“目录”卡片和右侧留白 */
.md-sidebar--secondary:not(:has(.lab-toc .md-nav__list)) {
  display: none;
}

.lab-toc:not(:has(.md-nav__list)) {
  display: none;
}

.lab-toc .md-nav__title {
  align-items: flex-start;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.1rem 0.4rem 0.55rem;
}

.lab-toc .md-nav__title .md-nav__icon {
  display: none;
}

.lab-toc__kicker {
  color: var(--lab-brand);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.lab-toc__heading {
  color: var(--lab-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.lab-toc .md-nav__link {
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--lab-muted);
  font-size: 0.66rem;
  padding: 0.26rem 0.4rem;
}

.lab-toc .md-nav__link:hover {
  background: var(--lab-brand-softer);
  border-left-color: var(--lab-line-strong);
  color: var(--lab-brand);
}

.lab-toc .md-nav__link--active {
  background: var(--lab-brand-soft);
  border-left-color: var(--lab-brand);
  color: var(--lab-brand);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.md-footer.lab-footer {
  background: #070b15;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

[data-md-color-scheme="slate"] .md-footer.lab-footer {
  background: #050810;
}

.lab-footer__aurora {
  background: radial-gradient(circle at 18% 120%, rgba(99, 102, 241, 0.28), transparent 46%),
    radial-gradient(circle at 82% 130%, rgba(34, 211, 238, 0.16), transparent 42%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.lab-footer__main {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(15rem, 1.6fr) minmax(7rem, 0.7fr) minmax(7rem, 0.7fr) minmax(14rem, 1.3fr);
  padding-bottom: 2.2rem;
  padding-top: 2.8rem;
  position: relative;
  z-index: 1;
}

.lab-footer__brand-link {
  align-items: center;
  color: #f8fafc;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.lab-footer__brand-link img {
  border-radius: 11px;
  height: 2.2rem;
  width: 2.2rem;
}

.lab-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.lab-footer__brand-text strong {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lab-footer__brand-text span {
  color: #64748b;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-footer__brand p {
  color: #8290a5;
  font-size: 0.68rem;
  line-height: 1.75;
  margin: 0.9rem 0 1rem;
  max-width: 22rem;
}

.lab-footer__status {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  font-size: 0.58rem;
  gap: 0.4rem;
  letter-spacing: 0.04em;
}

.lab-footer__pulse {
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
  height: 6px;
  width: 6px;
}

.lab-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lab-footer__col h3 {
  color: #f8fafc;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.lab-footer__col > a {
  color: #8290a5;
  font-size: 0.68rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  width: fit-content;
}

.lab-footer__col > a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.lab-footer__col--subscribe p {
  color: #8290a5;
  font-size: 0.66rem;
  line-height: 1.7;
  margin: 0 0 0.35rem;
}

.lab-footer__rss {
  align-items: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 9px;
  color: #c7d2fe !important;
  display: inline-flex;
  font-size: 0.66rem !important;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  width: fit-content;
}

.lab-footer__rss svg {
  fill: currentColor;
  height: 0.85rem;
  width: 0.85rem;
}

.lab-footer__rss:hover {
  background: rgba(99, 102, 241, 0.24);
  color: #ffffff !important;
}

.lab-footer__site {
  color: #64748b !important;
  font-size: 0.6rem !important;
  margin-top: 0.2rem;
}

.lab-footer__bottom {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.58rem;
  gap: 0.8rem;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

.lab-footer__legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  line-height: 1.7;
}

.lab-footer__legal a {
  color: #8290a5;
  text-decoration: none;
}

.lab-footer__legal a:hover {
  color: #ffffff;
}

.lab-footer__legal img {
  height: 0.72rem;
  margin-right: 0.22rem;
  vertical-align: -0.1em;
  width: auto;
}

.lab-footer__dot {
  color: #334155;
}

.lab-footer__note {
  color: #475569;
  font-size: 0.56rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   12. Material components
   -------------------------------------------------------------------------- */
.md-top {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  box-shadow: var(--lab-shadow-md);
  color: var(--lab-muted);
}

.md-top:hover {
  background: var(--lab-brand);
  border-color: var(--lab-brand);
  color: #ffffff;
}

.md-dialog {
  border-radius: 16px;
}

.md-dialog__inner {
  border-radius: 12px;
}

.md-clipboard:focus,
.md-clipboard:hover {
  color: var(--lab-brand);
}

.md-typeset .tabbed-set {
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  overflow: hidden;
}

.md-typeset .tabbed-labels {
  background: var(--lab-surface-2);
}

.md-typeset .tabbed-labels > label {
  color: var(--lab-muted);
  font-size: 0.72rem;
}

.md-typeset .tabbed-labels > label:hover {
  color: var(--lab-brand);
}

.md-typeset .tabbed-set > input:checked + label {
  color: var(--lab-brand);
}

/* Pagination / feedback */
.md-feedback {
  border-top: 1px solid var(--lab-line);
  color: var(--lab-muted);
  font-size: 0.66rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
}

.md-feedback__icon:hover {
  color: var(--lab-brand);
}

/* Reading progress */
.lab-progress {
  background: var(--lab-gradient);
  height: 3px;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform-origin: left center;
  width: 100%;
  z-index: 100;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

/* Reveal animation */
.lab-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lab-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .lab-reveal {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 76.25em) {
  .lab-header__tagline {
    display: none;
  }

  .lab-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 60em) {
  .lab-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-hero__visual {
    display: none;
  }

  .lab-posts {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .lab-post-card--featured {
    grid-row: auto;
  }

  .lab-post-card--featured .lab-post-card__cover {
    min-height: 11rem;
  }

  .lab-about {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-footer__brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 44em) {
  .md-main__inner {
    margin-top: 0.9rem;
  }

  .md-header__inner {
    min-height: 2.9rem;
  }

  .md-header__title {
    font-size: 0.84rem;
  }

  .lab-hero {
    border-radius: 20px;
    padding: 1.45rem 1.25rem;
  }

  .lab-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .lab-hero__lead {
    font-size: 0.76rem;
  }

  .lab-hero__actions {
    flex-direction: column;
  }

  .lab-hero__actions .lab-btn {
    width: 100%;
  }

  .lab-stats {
    gap: 1.1rem;
    justify-content: space-between;
  }

  .lab-stat strong {
    font-size: 1.3rem;
  }

  .lab-topics {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .lab-about {
    border-radius: 20px;
    padding: 1.2rem;
  }

  .lab-category__hero {
    border-radius: 20px;
    flex-direction: column;
    padding: 1.25rem;
  }

  .lab-category__icon {
    border-radius: 16px;
    height: 3rem;
    width: 3rem;
  }

  .lab-category__icon svg {
    height: 1.45rem;
    width: 1.45rem;
  }

  .lab-category__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-page-hero {
    border-radius: 20px;
    padding: 1.25rem;
  }

  .lab-tags-cloud {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-archive__item {
    gap: 0.65rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
  }

  .lab-archive__item time {
    grid-column: 1 / -1;
  }

  .lab-archive__foot {
    flex-direction: column;
  }

  .lab-footer__main {
    gap: 1.4rem;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .lab-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.lab-post-meta) .md-content__inner {
    border-radius: 18px;
    padding: 1.1rem 1rem;
  }

  .lab-post-meta {
    gap: 0.45rem;
  }

  .lab-copy {
    margin-left: 0;
  }

  .lab-post-meta__tags {
    width: 100%;
  }

  .lab-postnav {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-postnav__item--next {
    text-align: left;
  }

  .md-typeset {
    font-size: 0.8rem;
  }

  .md-typeset h1 {
    font-size: 1.65rem;
  }

  .md-typeset h2 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 30em) {
  .lab-stats {
    flex-wrap: wrap;
  }

  .lab-stat {
    min-width: 4.5rem;
  }

  .lab-topic__body span {
    white-space: normal;
  }

  .lab-copy span {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   14. Accessibility and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lab-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-top,
  .lab-footer,
  .lab-progress,
  .lab-postnav,
  .lab-copy {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  body:has(.lab-post-meta) .md-content__inner {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .md-typeset a {
    color: #000000;
  }
}
