/* The public blog: the landing's «Монітор» look tuned for reading. */
:root {
    color-scheme: light;
    --bg: #f5f8f7; --ink: #0b1f1a; --ink2: #3e5550; --muted: #5a706b; --line: #dbe5e1; --panel: #ffffff; --soft: #eaf1ee;
    --mon: #0b1f1a; --mon2: #10291f; --monline: #1d3d31; --montext: #e8f3ef; --monmuted: #8aa29c; --mondim: #b4c8c2;
    --hr: #12a150; --hr-hi: #2fd27a; --spo: #0a7b99; --spo-hi: #36c6e0; --bp: #cf2a40; --bp-hi: #ff6b7d; --rr: #8f6407; --rr-hi: #f5c044;
    --go: #0b8040; --go-d: #096b35;
    --f: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --navh: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; }
img { max-width: 100%; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 800px; }
.wrap.wide { max-width: 1080px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.solid { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border-radius: 10px; font: 700 16px/1.2 var(--f); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; text-align: center; transition: background .15s, transform .15s, border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s; }
.btn:hover .ic.arw { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--go); color: #fff; }
.btn.go:hover { background: var(--go-d); }
.btn.line { border-color: var(--line); background: var(--panel); color: var(--ink); }
.btn.line:hover { border-color: var(--ink2); }
.btn.sm { min-height: 40px; padding: 8px 15px; font-size: 14px; border-radius: 8px; }
.btn.lg { min-height: 54px; padding: 16px 26px; font-size: 17px; }
@media (max-width: 380px) { .btn { white-space: normal; } .btn.lg { padding-inline: 18px; } }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(245, 248, 247, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.stuck, .nav.open { border-color: var(--line); }
.nav.stuck { background: rgba(245, 248, 247, .97); }
.nav.open { background: var(--bg); }
.nav-in { display: flex; align-items: center; gap: 26px; height: var(--navh); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--ink2); flex: 1; min-width: 0; }
.links a { white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover { color: var(--ink); }
.links a.on { color: var(--ink); font-weight: 700; border-color: var(--hr); }
.navr { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.navr .lang-switch summary { height: 40px; border-radius: 8px; background: var(--panel); border-color: var(--line); font-family: var(--mono); font-size: 13px; }
.navr .lang-switch summary:focus-visible { outline-color: var(--go); }
.navr .lang-menu button.on { color: var(--go-d); background: rgba(11, 128, 64, .08); }
.navr .lang-menu button.on .lang-tag { background: var(--go); border-color: var(--go); color: #fff; }
.navr .lang-menu button:hover, .navr .lang-menu button:focus-visible { background: rgba(11, 128, 64, .1); }
.navr .short { display: none; }
.versions { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); font: 700 12px var(--mono); }
.versions > * { display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--muted); }
.versions .on { background: var(--ink); color: #fff; }
.versions a:hover { color: var(--ink); background: var(--soft); }
.burger { display: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex: none; -webkit-tap-highlight-color: transparent; }
.burger .x { display: none; }
.nav.open .burger .m { display: none; }
.nav.open .burger .x { display: block; }
.mmenu { display: none; flex-direction: column; padding: 4px 0 18px; border-top: 1px solid var(--line); max-height: calc(100vh - var(--navh) - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--navh) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.mmenu a { display: flex; align-items: center; min-height: 48px; padding: 10px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mmenu .btn { margin-top: 14px; border-bottom: 0; }
.nav.open .mmenu { display: flex; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(11, 31, 26, .45); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 860px) { .links { display: none; } .burger { display: inline-flex; } html.menu-open { overflow: hidden; } }
html:not(.js) .burger { display: none; }
html:not(.js) .links { display: flex; overflow-x: auto; }
@media (max-width: 620px) { .navr .login, .navr .cab { display: none; } .navr .full { display: none; } .navr .short { display: inline; } .nav-in { gap: 12px; } .navr { gap: 8px; } }
@media (max-width: 400px) { .navr .cta { display: none; } }

/* reading progress */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; height: 3px; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s; }
.progress.show { opacity: 1; }
.progress i { display: block; height: 100%; width: 100%; background: var(--hr); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* shared bits */
.tag { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--go)); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); flex: none; }
.tag .pin { margin-left: 4px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; letter-spacing: .08em; font-size: 11px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.crumbs a { padding: 4px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.meta li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta .ic { width: 15px; height: 15px; stroke-width: 2; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--go-d); }
.more .ic { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s; }
.more:hover .ic, a:hover > .more .ic { transform: translateX(3px); }

/* covers */
.cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover.gen { position: relative; overflow: hidden; container-type: inline-size; background: radial-gradient(120% 90% at var(--gx, 85%) var(--gy, 0%), color-mix(in srgb, var(--c) 34%, transparent), transparent 62%), linear-gradient(160deg, var(--mon2), var(--mon) 70%); }
.cover.gen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(232, 243, 239, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 243, 239, .055) 1px, transparent 1px); background-size: 28px 28px; }
.cover.gen.g1 { --gx: 10%; --gy: 0%; }
.cover.gen.g2 { --gx: 100%; --gy: 100%; }
.cover.gen.g3 { --gx: 0%; --gy: 100%; }
.cover.gen .gwave { position: absolute; left: 0; right: 0; top: 30%; width: 100%; height: 40%; color: var(--c); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 55%, transparent)); }
.cover.gen.g1 .gwave, .cover.gen.g3 .gwave { transform: scaleX(-1); }
.cover.gen .gmark { position: absolute; right: 5cqw; top: 5cqw; width: 9cqw; height: 9cqw; min-width: 26px; min-height: 26px; --mk1: #e8f3ef; --mk2: var(--c); opacity: .9; }
.cover.gen .gcat { position: absolute; left: 5cqw; bottom: 5cqw; display: inline-flex; align-items: center; gap: 8px; font: 700 clamp(10px, 2.6cqw, 15px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--montext); }
.cover.gen .gcat::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--c) 22%, transparent); }

/* list header */
.bhead { padding-block: clamp(28px, 5vw, 56px) 8px; }
.bhead-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 24px 48px; align-items: end; }
.bhead h1 { margin-top: 18px; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; font-weight: 800; overflow-wrap: anywhere; }
.bhead .lead { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink2); }
.search { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--go); box-shadow: 0 0 0 4px rgba(11, 128, 64, .12); }
.search > .ic { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; font: 500 16px var(--f); color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 14.5px; color: var(--ink2); transition: border-color .15s, color .15s, background .15s; }
.chips a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--go)); }
.chips a:hover { border-color: var(--ink2); color: var(--ink); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bhead-in > * { min-width: 0; }
@media (max-width: 360px) { .search { padding-left: 38px; } .search > .ic { left: 11px; } .search .btn { padding-inline: 11px; } }
@media (max-width: 760px) { .bhead-in { grid-template-columns: minmax(0, 1fr); } .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chips a { white-space: nowrap; } }

/* list */
.blist { padding-block: 36px 0; }
.found { overflow-wrap: anywhere; margin-bottom: 26px; padding: 14px 18px; border-radius: 12px; background: var(--soft); color: var(--ink2); font-size: 15.5px; }
.found a { font-weight: 700; color: var(--go-d); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.feature:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 30px 60px -44px rgba(11, 31, 26, .5); }
.feature-cover { position: relative; display: block; min-height: 380px; background: var(--soft); overflow: hidden; }
.feature-cover .cover { position: absolute; inset: 0; }
.feature-cover .cover, .card-cover .cover { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .cover, .card:hover .cover { transform: scale(1.025); }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: clamp(24px, 3.6vw, 48px); }
.feature h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.feature h2 a::after, .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-text { color: var(--ink2); font-size: 17.5px; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature .more { margin-top: 4px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-cover { aspect-ratio: 16 / 9; min-height: 0; } .feature-cover .cover { position: static; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 24px 48px -36px rgba(11, 31, 26, .5); transform: translateY(-3px); }
.card-cover { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; padding: 22px 22px 20px; }
.card-title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-text { color: var(--ink2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; }
.card:focus-within, .feature:focus-within { border-color: var(--go); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 18px; } }

.empty { position: relative; display: grid; justify-items: center; gap: 14px; padding: clamp(48px, 8vw, 96px) 24px; border: 1px dashed var(--line); border-radius: 22px; background: var(--panel); text-align: center; overflow: hidden; }
.empty-wave { width: min(360px, 80%); height: 56px; color: var(--hr); }
.empty h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.empty p { max-width: 34em; color: var(--ink2); }
.empty .btn { margin-top: 8px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; }
.pager ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font: 700 14px var(--mono); }
.pager ol a, .pager ol span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.pager ol a:hover { border-color: var(--ink2); }
.pager ol .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { display: grid; place-items: center; min-width: 20px; color: var(--muted); }
.pg-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 110px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.pg-step:last-child { justify-content: flex-end; }
a.pg-step:hover { background: var(--soft); }
.pg-step .ic { width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 560px) { .pg-step { min-width: 44px; padding: 0 10px; } .pg-step span { display: none; } .pager ol a, .pager ol span { min-width: 40px; } }

/* article */
.preview-bar { margin: 0; padding: 12px 20px; background: #fdf3d7; border-bottom: 1px solid #ecd58f; color: #5c4203; font-weight: 600; font-size: 15px; text-align: center; }
.phead { padding-top: clamp(24px, 4.4vw, 48px); }
.phead h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; overflow-wrap: anywhere; }
.phead .lead { margin-top: 20px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mon); flex: none; }
.avatar svg { width: 22px; height: 22px; --mk1: #e8f3ef; --mk2: #2fd27a; }
.pcover { margin-top: clamp(28px, 4vw, 44px); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
/* The generated cover is a banner, not a picture: keep it short. */
.pcover:has(.gen) { aspect-ratio: auto; height: clamp(190px, 30vw, 340px); }
@media (max-width: 640px) { .phead .wrap.wide { padding-inline: 0; } .pcover { border-radius: 0; border-inline: 0; } }

.playout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 0 40px; padding-block: clamp(32px, 5vw, 56px) 24px; }
.pside { grid-column: 1; justify-self: end; width: 100%; max-width: 230px; }
.pmain { grid-column: 2; min-width: 0; }
.toc { position: sticky; top: calc(var(--navh) + env(safe-area-inset-top, 0px) + 28px); max-height: calc(100vh - var(--navh) - 60px); overflow-y: auto; scrollbar-width: thin; }
.toc summary { list-style: none; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 14px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; border-color: var(--hr); }
@media (max-width: 1160px) {
    .playout { grid-template-columns: minmax(0, 720px); justify-content: center; }
    .pside, .pmain { grid-column: 1; }
    .pside { max-width: none; justify-self: stretch; }
    .toc { position: static; max-height: none; margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
    .toc summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 28px; }
    .toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
    .toc details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
    .toc a { font-size: 15px; padding-block: 9px; }
}

.prose { font-size: 18.5px; line-height: 1.75; color: #1d312c; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 2.1em 0 .7em; font-size: clamp(25px, 3vw, 31px); line-height: 1.18; font-weight: 800; color: var(--ink); scroll-margin-top: calc(var(--navh) + env(safe-area-inset-top, 0px) + 24px); }
.prose h3 { margin: 1.8em 0 .6em; font-size: clamp(20px, 2.3vw, 23px); line-height: 1.25; font-weight: 700; color: var(--ink); }
.prose h4 { margin: 1.6em 0 .5em; font-size: 18.5px; font-weight: 700; color: var(--ink); }
.prose a { color: var(--go-d); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--go) 45%, transparent); transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li { margin: .45em 0; padding-left: .25em; }
.prose li::marker { color: var(--c, var(--go)); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--c, var(--go)); font-size: 1.12em; line-height: 1.55; color: var(--ink); font-weight: 500; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { margin: 2.6em auto; width: 96px; height: 2px; border: 0; background: var(--line); }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--soft); font: 500 .88em var(--mono); }
.prose pre { margin: 1.6em 0; padding: 18px 20px; border-radius: 14px; background: var(--mon); color: var(--montext); overflow-x: auto; font: 500 14.5px/1.6 var(--mono); }
.prose pre code { padding: 0; background: none; font: inherit; }
.prose figure { margin: 2em 0; }
.prose figure.image { display: table; margin-inline: auto; max-width: 100%; }
.prose figure.image img { display: block; margin: 0 auto; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose > p > img { height: auto; border-radius: 14px; }
.prose figure.image_resized img { width: 100%; }
.prose figcaption { display: table-caption; caption-side: bottom; margin-top: 10px; padding-top: 10px; font: 500 13px/1.5 var(--mono); color: var(--muted); text-align: center; }
.prose .tscroll { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.prose figure.table .tscroll { margin: 0; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr > :last-child { border-right: 0; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose th { background: var(--soft); font-weight: 700; color: var(--ink); }
.prose td { background: var(--panel); }
@media (min-width: 720px) {
    .prose figure.image-style-side, .prose figure.image-style-align-right { float: right; max-width: 46%; margin: .4em 0 1em 1.6em; }
    .prose figure.image-style-align-left { float: left; max-width: 46%; margin: .4em 1.6em 1em 0; }
}
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) { .prose { font-size: 17.5px; line-height: 1.7; } }

.pfoot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.share-h { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.share a:hover, .share button:hover { color: var(--ink); border-color: var(--ink2); }
.share svg { width: 20px; height: 20px; fill: currentColor; }
.share button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share button .ok { display: none; }
.share button.done { color: #fff; background: var(--go); border-color: var(--go); }
.share button.done .l { display: none; }
.share button.done .ok { display: block; }
.note { font-size: 14px; line-height: 1.55; color: var(--muted); }

.related { padding-block: clamp(40px, 6vw, 72px) 0; }
main { padding-bottom: clamp(64px, 8vw, 104px); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.rel-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.1; }

.strip { display: block; width: 100%; pointer-events: none; }

/* footer */
.site-foot { background: var(--mon); color: var(--monmuted); font-size: 15px; position: relative; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-foot :focus-visible { outline-color: var(--hr-hi); }
.site-foot .fecg { position: absolute; left: 0; right: 0; top: 0; height: 46px; opacity: .35; }
.ftop { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 84px 52px; }
.site-foot .brand { color: var(--montext); }
.site-foot .brand svg { --mk1: #e8f3ef; --mk2: #2fd27a; }
.site-foot .about { margin-top: 16px; max-width: 42ch; line-height: 1.6; }
.fcol .fh { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hr-hi); margin-bottom: 12px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fcol a { display: inline-flex; align-items: center; min-height: 36px; color: var(--montext); opacity: .86; transition: opacity .15s, color .15s; }
.fcol a:hover { opacity: 1; color: #fff; }
.fbar { border-top: 1px solid var(--monline); padding: 22px 20px 26px; text-align: center; font: 500 13px/1.5 var(--mono); letter-spacing: .02em; }
.fsoc { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; list-style: none; padding: 0; }
.fsoc a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--montext); border: 1px solid var(--monline); background: rgba(232, 243, 239, .04); transition: color .15s, border-color .15s, background-color .15s; }
.fsoc a:hover { color: #fff; border-color: var(--hr-hi); background: rgba(47, 210, 122, .1); }
.fsoc svg { width: 22px; height: 22px; }
@media (max-width: 1060px) { .ftop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } .ftop > div:first-child { grid-column: 1/-1; } .fcol a { min-height: 44px; } }
@media (max-width: 560px) { .ftop { grid-template-columns: 1fr 1fr; padding-block: 64px 40px; } .ftop > .fcol:last-child { grid-column: 1/-1; } .ftop > .fcol:last-child ul { display: flex; flex-wrap: wrap; gap: 0 22px; } }

@media (pointer: coarse) { .btn.sm, .brand, .navr .lang-switch summary, .navr .lang-menu button, .versions > * { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .card:hover, .feature:hover .cover, .card:hover .cover { transform: none; }
}
@media print {
    .nav, .progress, footer, .pside, .share, .related, .preview-bar { display: none !important; }
    body { background: #fff; }
    .playout { display: block; }
}
