@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/InterVariable-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #1f2433;          /* headings */
  --text: #293040;         /* body copy */
  --muted: #646e87;        /* secondary */
  --faint: #939db8;
  --line: #eaecf1;
  --soft: #f8f9fc;
  --accent: #1b7ffa;
  --accent-soft: rgba(62, 139, 255, .1);
  --accent-line: rgba(120, 170, 255, .8);
  --night: #0b0c14;
  --night-2: #151827;
  --night-text: #b8bfd1;
  --hub-bg: #fbfcfe;
  --card: #ffffff;
  --card-line: #e7eaf1;
  --wrap: 1130px;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* Material frame elements we do not use */
.md-toggle, .md-overlay, .md-skip, [data-md-component="skip"], [data-md-component="announce"], .md-dialog, .md-top { display: none !important; }
.md-container, .md-main, .md-main__inner { display: block; margin: 0; padding: 0; }

.lx-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lx-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.lx-btn:hover { background: #1160ee; }

/* Top bar and section bar (dark, like the hero) */
.lx-top, .lx-sub { background: var(--night); color: var(--night-text); }
.lx-top-in { display: flex; align-items: center; gap: 28px; height: 52px; border-bottom: 1px solid rgba(114, 125, 161, .15); }
.lx-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; }
.lx-top .lx-logo img { width: 22px; height: 22px; }
.lx-top-nav { display: flex; gap: 0; flex: 1; font-size: 13px; line-height: 1; color: #c9d3ee; }
.lx-top-nav a { padding: 12px; border-radius: 8px; }
.lx-top-nav a:hover, .lx-top-nav a.is-current { color: #fff; }
.lx-sub-in { display: flex; align-items: center; gap: 0; height: 49px; border-bottom: 1px solid rgba(114, 125, 161, .15); font-size: 13px; line-height: 13px; color: var(--faint); }
.lx-sub-in > a { padding: 8px; border-radius: 8px; white-space: nowrap; }
.lx-sub-in > a:hover { color: #fff; }
.lx-sub-in > a.is-current { background: rgba(62, 139, 255, .08); color: #fff; }
.lx-sub-search { margin-left: auto; }

/* Hero: light on every page type */
.lx-hero { background: var(--hub-bg) radial-gradient(900px 360px at 50% -12%, rgba(62, 139, 255, .1), transparent 70%); color: var(--text); text-align: center; border-bottom: 1px solid var(--card-line); }
.lx-hero-in { padding: 64px 20px 72px; max-width: 860px; }
.lx-hero h1 { max-width: 640px; margin: 0 auto; color: var(--ink); font-family: var(--display); font-size: clamp(34px, 5.2vw, 54px); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.lx-hero h1 span { color: var(--muted); font-weight: 600; }
.lx-intro { max-width: 560px; margin: 18px auto 30px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lx-back { display: inline-block; margin-bottom: 34px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lx-hero--article .lx-hero-in { padding: 64px 20px 32px; }
.lx-hero--article .lx-back { display: table; text-align: left; }
.lx-back:hover { color: var(--accent); }
.lx-pills { display: flex; justify-content: center; gap: 8px; margin: 24px 0 64px; }
.lx-pills > * { padding: 2px 10px; border: 1px solid var(--card-line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lx-pills a:hover { border-color: var(--accent-line); color: var(--accent); }
.lx-byline { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lx-author { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 400; }
.lx-stamp { color: var(--faint); font-size: 10.4px; line-height: 1.33; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }

/* Search */
.lx-search { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border: 1px solid rgba(114, 125, 161, .3); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--faint); text-align: left; }
.lx-search svg { width: 15px; height: 15px; flex: none; }
.lx-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #fff; font: inherit; font-size: 14px; }
.lx-search input::placeholder { color: var(--faint); }
.lx-search input::-webkit-search-cancel-button { display: none; }
.lx-search kbd { display: flex; align-items: center; justify-content: center; flex: none; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #e6eaf2; font: 12px/1 var(--mono); }
.lx-search--big kbd { min-width: 28px; height: 28px; }
.lx-hero .lx-search kbd { border-color: #d5dae4; border-bottom-color: #c2c8d5; background: #fff; color: var(--muted); }
.lx-search:focus-within { border-color: rgba(62, 139, 255, .7); box-shadow: 0 0 0 3px rgba(62, 139, 255, .2); }
.lx-search--big { max-width: 560px; height: 50px; margin: 0 auto; padding: 0 12px 0 16px; border-radius: 12px; }
.lx-search--big input { font-size: 16px; }
.lx-sub-search .lx-search { width: 230px; }
.lx-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; max-height: 420px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(11, 12, 20, .18); color: var(--text); }
.lx-sub-search .lx-results { left: auto; width: 380px; }
.lx-results a { display: block; padding: 8px 10px; border-radius: 7px; }
.lx-results a:hover, .lx-results a.is-active { background: var(--soft); }
.lx-results b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.lx-results small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.lx-results em { font-style: normal; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lx-results p { margin: 8px 10px; color: var(--muted); font-size: 14px; }

/* Section pages: light, matching the hub */
.lx-aside-title { margin: 0 0 10px; padding: 0 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
body:has(.lx-index) { background: var(--hub-bg); }
.lx-hero--index .lx-hero-in { padding: 80px 20px 40px; }
.lx-hero--index h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.1; }
.lx-hero--index .lx-intro { max-width: 550px; margin: 32px auto 40px; color: var(--muted); font-size: 20px; line-height: 28px; }
.lx-hero .lx-search--big { max-width: 580px; height: 58px; padding: 0 12px 0 16px; border-color: var(--card-line); background: #fff; box-shadow: 0 8px 26px rgba(16, 24, 40, .06); }
.lx-hero .lx-search--big input { color: var(--ink); }
.lx-index { max-width: 1110px; display: grid; grid-template-columns: 272px minmax(0, 700px); gap: 80px; padding-top: 96px; padding-bottom: 120px; color: var(--muted); }
.lx-index-nav { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; font-size: 16px; line-height: 24px; }
.lx-index-nav .lx-aside-title { margin: 0 0 15px; padding: 0 12px; color: var(--ink); font-size: 13px; line-height: 20.8px; font-weight: 400; }
.lx-index-nav a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.lx-index-nav a span { color: var(--faint); font-size: 14px; }
.lx-index-nav a:hover { background: var(--soft); color: var(--ink); }
.lx-index-nav a.is-current { background: var(--accent-soft); color: var(--accent); }
.lx-index-nav a.is-current span { color: var(--accent); }
.lx-block { margin-bottom: 92px; scroll-margin-top: 24px; }
.lx-block:has(.lx-block-head--group) { margin-bottom: 48px; }
.lx-block-head { padding-left: 8px; }
.lx-block-head h2 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 36px; line-height: 39.6px; font-weight: 700; }
.lx-block-head h2 a:hover { color: var(--accent); }
.lx-block-head p { margin: 16px 0 0; max-width: 450px; color: var(--muted); font-size: 16px; line-height: 24px; }
.lx-block-head--group h2 { color: var(--muted); font-family: var(--sans); font-size: 16px; line-height: 24px; font-weight: 500; }
.lx-rows { margin-top: 32px; padding: 16px; border: 1px solid var(--card-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px rgba(16, 24, 40, .05); }
.lx-block-head--group + .lx-rows { margin-top: 20px; }
.lx-row { display: flex; align-items: center; gap: 0; min-height: 52px; padding: 10px 8px; border-top: 1px solid var(--line); border-radius: 12px; transition: background .12s; }
.lx-row:first-child { border-top-color: transparent; }
.lx-row:hover { background: var(--soft); }
.lx-row-icon { width: 32px; height: 32px; flex: none; margin-right: 12px; padding: 7px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.lx-row-text { flex: 1; min-width: 0; margin-right: 8px; }
.lx-row-title { display: block; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 400; }
.lx-row-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lx-row-meta { flex: none; margin-left: 4px; color: var(--faint); font-size: 14px; line-height: 21.7px; }
.lx-row-chev { width: 16px; height: 16px; flex: none; margin-left: 12px; color: var(--faint); }
.lx-more { display: inline-block; margin: 16px 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 500; }
.lx-more:hover { color: var(--ink); }
.lx-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px 8px; }
.lx-jump a { padding: 4px 12px; border: 1px solid var(--card-line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; }
.lx-jump a:hover { border-color: var(--accent-line); color: var(--accent); }

/* Hub: light page */
body:has(.lx-hub) { background: var(--hub-bg); }

.lx-catnav { position: sticky; top: 0; z-index: 15; background: rgba(251, 252, 254, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-line); }
.lx-catnav-in { display: flex; gap: 8px; max-width: 900px; margin: 0 auto; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; }
.lx-catnav-in::-webkit-scrollbar { display: none; }
.lx-catnav-in a { flex: none; padding: 2px 10px; border: 1px solid var(--card-line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; line-height: 20px; white-space: nowrap; transition: border-color .15s, color .15s; }
.lx-catnav-in a:hover { border-color: var(--accent-line); color: var(--accent); }
.lx-hub { max-width: 860px; margin: 0 auto; padding: 88px 20px 120px; color: var(--muted); background: var(--hub-bg) radial-gradient(rgba(31, 36, 51, .045) 1px, transparent 1px); background-size: 22px 22px; }
.lx-cat { margin-bottom: 88px; scroll-margin-top: 80px; }
.lx-cat-head { padding-left: 4px; }
.lx-cat-head h2 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 34px; line-height: 1.1; font-weight: 700; }
.lx-cat-head h2 a:hover { color: var(--accent); }
.lx-cat-head p { margin: 16px 0 0; max-width: 450px; color: var(--muted); font-size: 16px; line-height: 24px; }
.lx-cat-body { display: flex; gap: 30px; margin-top: 32px; }
.lx-feat { position: relative; flex: none; width: 308px; min-height: 432px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px rgba(16, 24, 40, .05); transition: box-shadow .15s, border-color .15s; }
.lx-feat:hover { border-color: var(--accent-line); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 44px rgba(16, 24, 40, .1); }
.lx-feat-art { position: absolute; top: 22px; left: 24px; right: 24px; }
.lx-feat-art img { width: 100%; height: auto; border: 1px solid var(--card-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(16, 24, 40, .12); }
.lx-feat-title { margin: 0; color: var(--ink); font-family: var(--display); font-size: 20px; line-height: 1.3; font-weight: 700; }
.lx-feat-desc { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lx-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 40px 48px; }
.lx-tile { display: flex; flex-direction: column; }
.lx-tile-title { margin: 0; color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.3; font-weight: 700; }
.lx-tile:hover .lx-tile-title { color: var(--accent); }
.lx-tile-desc { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lx-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 190px; margin-top: 16px; padding: 2px 8px; border: 1px solid var(--card-line); border-radius: 999px; background: #fff; }
.lx-tag-icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
.lx-tag-text { color: var(--muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-explore { margin-top: 40px; }
.lx-explore h2 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; }
.lx-explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin-top: 44px; }
.lx-explore-grid a { display: flex; align-items: center; gap: 16px; }
.lx-explore-grid img { width: 96px; flex: none; height: auto; }
.lx-explore-grid h3 { margin: 4px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.lx-explore-grid p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.lx-explore-grid a:hover h3 { color: var(--accent); }

/* Article layout: contents | text | section */
.lx-article { display: grid; grid-template-columns: 190px minmax(0, 616px) 220px; gap: 48px; padding-top: 64px; padding-bottom: 80px; }
.lx-side { padding-left: 15px; }  /* Better Stack: 15px of air after the 616px text, then 48px, then 205px */
.lx-toc, .lx-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 14px; line-height: 1.55; }
.lx-toc .lx-aside-title { margin: 0; color: #222838; }
.lx-toc .lx-aside-title, .lx-side .lx-aside-title { padding: 0; }
.lx-toc ul { margin: 0; padding: 0; list-style: none; }
.lx-toc li { margin: 16px 0 0; }
.lx-toc ul ul { margin: 0 0 0 12px; }
.lx-toc a { color: var(--muted); }
.lx-toc a:hover { color: var(--accent); }
.lx-toc a.is-active { color: #1b7ffa; }
.lx-side summary { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-weight: 700; cursor: pointer; list-style: none; }
.lx-side summary::-webkit-details-marker { display: none; }
.lx-side summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.lx-side details[open] summary::after { content: "×"; }
.lx-side details[open] summary { color: #222838; }
.lx-side ul { margin: 0 0 4px; padding: 0 0 0 12px; list-style: none; }
.lx-side li { margin: 0; }
.lx-side li a { display: block; padding: 8px 0; color: var(--muted); }
.lx-side li a[aria-current] { color: var(--accent); }
.lx-side li a:hover { color: var(--accent); }

/* Prose */
.lx-prose { font-size: 16.5px; line-height: 1.72; color: var(--text); }
.lx-prose p { margin: 0 0 1.25em; }
.lx-prose h2 { margin: 56px 0 28px; color: var(--ink); font-family: var(--display); font-size: 28px; line-height: 1.33; font-weight: 700; scroll-margin-top: 24px; }
.lx-prose h3 { margin: 32px 0 12px; color: var(--ink); font-family: var(--display); font-size: 20px; line-height: 1.6; font-weight: 600; scroll-margin-top: 24px; }
.lx-prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 2px; }
.lx-prose a:hover { text-decoration-color: var(--accent); }
.lx-prose ul, .lx-prose ol { margin: 20px 0 32px; padding-left: 26px; }
.lx-prose li { margin: 8px 0; padding-left: 6px; font-size: 16px; line-height: 1.75; }
.lx-prose li > p { margin: 0; }
.lx-prose li::marker { color: var(--faint); }
.lx-prose strong { color: var(--ink); font-weight: 600; }
.lx-prose code { padding: 2px 4px; border-radius: 8px; line-height: 1; background: var(--line); color: #222838; font: .875em var(--mono); }
.lx-prose pre { margin: 0 0 20px; padding: 21px; border: 1px solid #dfe3ea; border-radius: 8px; background: var(--soft); color: #383a42; overflow-x: auto; font: 13px/19.5px var(--mono); }
.lx-prose pre code { padding: 0; background: none; color: inherit; font: inherit; }
.lx-prose .highlight { position: relative; }
.lx-prose blockquote { margin: 0 0 1.5em; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent-line); color: var(--muted); }
.lx-prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.lx-prose table { width: 100%; margin: 0 0 1.75em; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.lx-prose th { background: var(--soft); color: var(--ink); font-weight: 600; text-align: left; }
.lx-prose th, .lx-prose td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.lx-prose img { max-width: 100%; height: auto; border-radius: 10px; }

/* Callouts: !!! note|tip|info|warning|danger|sidenote, ??? for collapsible, "Short answer" (abstract) */
.lx-prose .admonition, .lx-prose details:not(.lx-toc-m) {
  --c: var(--accent); --c-bg: var(--accent-soft); --c-line: var(--accent-line);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M10 9v5M10 6.2v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  position: relative; margin: 32px 0; padding: 13px 20px 13px 44px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-bg); color: var(--c); font-size: 14px; line-height: 22px;
}
.lx-prose .admonition::before, .lx-prose details:not(.lx-toc-m)::before { content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; background: var(--c); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.lx-prose .admonition-title, .lx-prose details:not(.lx-toc-m) > summary { display: block; margin: 0; color: var(--c); font-size: 14px; font-weight: 700; }
.lx-prose .admonition p, .lx-prose details:not(.lx-toc-m) p { margin: 0 0 17.5px; }
.lx-prose .admonition a, .lx-prose details:not(.lx-toc-m) a { color: inherit; text-decoration: underline; }
.lx-prose details:not(.lx-toc-m) > summary { margin: 0; cursor: pointer; list-style: none; }
.lx-prose details:not(.lx-toc-m) > summary::-webkit-details-marker { display: none; }
.lx-prose details:not(.lx-toc-m) > summary::after { content: "+"; float: right; color: var(--faint); font-weight: 400; }
.lx-prose details:not(.lx-toc-m)[open] > summary { margin-bottom: 6px; }
.lx-prose details:not(.lx-toc-m)[open] > summary::after { content: "−"; }
.lx-prose .admonition > :last-child, .lx-prose details:not(.lx-toc-m) > :last-child { margin-bottom: 0; }
.lx-prose .tip { --c: #0f8a5f; --c-bg: #effaf5; --c-line: #bfe9d6;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 15h5M8 17.5h4M10 2.5a5.5 5.5 0 0 0-3.2 10c.5.4.7.9.7 1.5h5c0-.6.2-1.1.7-1.5A5.5 5.5 0 0 0 10 2.5z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lx-prose .note { --c: #475569; --c-bg: #f8f9fc; --c-line: #e2e6ee;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3h9l3 3v11H4z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M7 9h6M7 12h6' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lx-prose .warning { --c: #b45309; --c-bg: #fff8ef; --c-line: #f5d9b5;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3 2.5 16.5h15z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M10 8.5v3.5M10 14.3v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lx-prose .danger { --c: #c2410c; --c-bg: #fff4f2; --c-line: #f6cbc3;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m7 7 6 6M13 7l-6 6' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lx-prose .abstract { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11 2 4 11.5h5.5L8.5 18 16 8.5h-5.5z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lx-prose .abstract .admonition-title { font-size: 14px; font-weight: 700; }
.lx-prose .sidenote { --c: var(--accent); --c-bg: linear-gradient(135deg, #f6f7ff, #eef0fe);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M2.5 10h15M10 2.5c2.2 2.1 2.2 12.9 0 15M10 2.5c-2.2 2.1-2.2 12.9 0 15' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
.lx-prose .admonition a.lx-btn { margin-top: 4px; color: #fff; text-decoration: none; }
.lx-prose .admonition code { background: rgba(62, 139, 255, .12); color: inherit; }

/* Code blocks: light, like Better Stack. White head with the title and Copy, #f8f9fc body, One Light colours */
.lx-prose .lx-code { margin: 0 0 20px; border: 1px solid #dfe3ea; border-radius: 8px; background: var(--soft); overflow: hidden; }
.lx-code-head { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 14px; border-bottom: 1px solid #dfe3ea; background: #fff; }
.lx-dots { display: none; }
.lx-code-title { flex: 1; color: var(--text); font: 500 13px/1.5 var(--sans); }
.lx-copy { padding: 0; border: 0; background: none; color: var(--muted); font: 400 12px var(--sans); cursor: pointer; }
.lx-copy:hover { color: var(--accent); }
.lx-copy.is-done { color: #0f8a5f; }
.lx-prose .lx-code pre { margin: 0; padding: 21px; border: 0; border-radius: 0; background: none; color: #383a42; font: 13px/19.5px var(--mono); }
.lx-code--terminal .lx-code-title::before { content: "$ "; color: var(--faint); }
/* Pygments tokens (One Light, as on Better Stack) */
.lx-code .c, .lx-code .c1, .lx-code .cm, .lx-code .cs, .lx-code .ch { color: #a0a1a7; font-style: italic; }
.lx-code .k, .lx-code .kn, .lx-code .kd, .lx-code .kc, .lx-code .kr, .lx-code .ow { color: #a626a4; }
.lx-code .s, .lx-code .s1, .lx-code .s2, .lx-code .sb, .lx-code .sd, .lx-code .se, .lx-code .si { color: #50a14f; }
.lx-code .nt { color: #e45649; }
.lx-code .na, .lx-code .m, .lx-code .mi, .lx-code .mf, .lx-code .mh, .lx-code .il { color: #986801; }
.lx-code .nb, .lx-code .bp, .lx-code .nc { color: #c18401; }
.lx-code .nf, .lx-code .fm { color: #4078f2; }
.lx-code .nv { color: #e45649; }
.lx-code .o, .lx-code .p { color: #383a42; }
.lx-code--output .c, .lx-code--output .s { color: inherit; font-style: normal; }

/* Figures and browser frames: ![alt](src "caption"){.browser data-url="..."} */
.lx-prose .lx-figure { margin: 8px 0 1.75em; }
.lx-prose .lx-figure > img { display: block; margin: 0 auto; border: 1px solid var(--line); }
.lx-prose .lx-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.lx-browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(11, 12, 20, .08); }
.lx-browser-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.lx-browser-bar .lx-dots { background-image: radial-gradient(circle at 5px 5px, #d5dae4 4px, transparent 4.5px); }
.lx-browser-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 2px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-browser img { display: block; width: 100%; border-radius: 0; }

/* Section illustrations: tilted cards */
.lx-art { display: block; flex: none; width: 210px; perspective: 900px; }
.lx-art img { width: 100%; height: auto; border-radius: 14px; transform: rotateY(-16deg) rotateX(8deg) rotateZ(2deg); box-shadow: 18px 24px 40px rgba(11, 12, 20, .22); transition: transform .3s; }
a.lx-art:hover img { transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg); }
.lx-block-head--art { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lx-art--hero { width: 170px; margin: -6px auto 26px; }
.lx-art--hero img { box-shadow: 0 20px 50px rgba(27, 127, 250, .35); }

/* CTA, related, pager */
.lx-cta { display: flex; align-items: center; gap: 18px; margin: 48px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #f8f9fc, #eef0fe); }
.lx-cta img { flex: none; }
.lx-cta div { flex: 1; }
.lx-cta p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.lx-cta .lx-cta-title { margin-bottom: 3px; color: var(--ink); font-size: 17px; font-weight: 600; }
.lx-prose .lx-cta a.lx-btn { color: #fff; text-decoration: none; }
.lx-related h2 { margin-top: 0; font-size: 22px; }
.lx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lx-prose .lx-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.lx-prose .lx-card:hover { border-color: var(--accent-line); box-shadow: 0 4px 16px rgba(27, 127, 250, .08); }
.lx-card-title { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.lx-card-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lx-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.lx-prose .lx-pager a { display: flex; flex-direction: column; max-width: 48%; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.lx-prose .lx-pager a:hover { color: var(--accent); }
.lx-pager span { color: var(--faint); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.lx-pager-next { margin-left: auto; text-align: right; }

/* Footer */
.lx-foot { border-top: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.lx-foot-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.lx-foot .lx-logo { color: var(--ink); }
.lx-foot-brand p { margin: 12px 0 0; color: var(--muted); max-width: 240px; }
.lx-foot nav { display: flex; flex-direction: column; gap: 8px; }
.lx-foot nav p { margin: 0 0 4px; color: var(--ink); font-weight: 700; }
.lx-foot nav a { color: var(--muted); }
.lx-foot nav a:hover { color: var(--accent); }

/* Contents for phones: a closed box above the article (the sidebar is hidden there) */
.lx-toc-m { display: none; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.5; }
.lx-toc-m summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.lx-toc-m summary::-webkit-details-marker { display: none; }
.lx-toc-m summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.lx-toc-m[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.lx-prose .lx-toc-m ul { margin: 0; padding: 0 16px 14px; list-style: none; }
.lx-prose .lx-toc-m ul ul { padding: 6px 0 0 12px; }
.lx-prose .lx-toc-m li { margin: 0 0 8px; padding: 0; font-size: 15px; line-height: 1.5; }
.lx-prose .lx-toc-m li::before { content: none; }
.lx-prose .lx-toc-m a { color: var(--muted); text-decoration: none; }

/* Responsive */
/* Better Stack: contents column from 1280px (the section column hangs 32px into the gutter), section column from 1024px */
@media (min-width: 1280px) {
  /* same left edge as the 1130px container, 32px wider on the right */
  .lx-article { max-width: calc(var(--wrap) + 32px); margin-left: calc(50% - var(--wrap) / 2); margin-right: 0; }
}
@media (max-width: 1279px) {
  .lx-article { grid-template-columns: minmax(0, 616px) 220px; }
  .lx-toc { display: none; }
  .lx-toc-m { display: block; }
}
@media (max-width: 1100px) {
  .lx-top-nav { display: none; }
  .lx-index { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 1023px) {
  .lx-article { grid-template-columns: minmax(0, 616px); justify-content: center; }
  .lx-side { display: none; }
}
@media (max-width: 860px) {
  .lx-article, .lx-index { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .lx-index { padding-top: 48px; padding-bottom: 64px; }
  .lx-block { margin-bottom: 56px; }
  .lx-block-head:not(.lx-block-head--group) h2 { font-size: 28px; line-height: 1.2; }
  .lx-rows { padding: 8px; }
  .lx-article { justify-content: stretch; }
  .lx-toc, .lx-index-nav { display: none; }
  .lx-sub-search { display: none; }
  .lx-sub-in { overflow-x: auto; scrollbar-width: none; }
  .lx-sub-in::-webkit-scrollbar { display: none; }
  .lx-cards { grid-template-columns: 1fr; }
  .lx-foot-in { grid-template-columns: 1fr 1fr; }
  .lx-row-meta { display: none; }
  .lx-cta { flex-wrap: wrap; }
  .lx-prose { font-size: 16.5px; }
  .lx-block-head--art .lx-art { display: none; }
}
@media (max-width: 560px) {
  .lx-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lx-cta div { flex: none; }
}

@media (max-width: 760px) {
  .lx-hub { padding: 56px 20px 80px; }
  .lx-cat { margin-bottom: 56px; }
  .lx-cat-head h2 { font-size: 28px; }
  .lx-cat-body { flex-direction: column; gap: 32px; }
  .lx-feat { width: auto; min-height: 340px; }
  .lx-feat-art { left: 50%; right: auto; width: 200px; top: 16px; transform: translateX(-50%); }
  .lx-tiles { grid-template-columns: 1fr; gap: 32px; }
  .lx-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
}

@media (max-width: 560px) {
  .lx-explore-grid { grid-template-columns: 1fr; }
}
