/* WatchStats blog (Cacehh/space App\Domains\Blog, served at /blog/assets/blog.css).
   Loaded after the site's own site.css, so it uses the site's colours and fonts:
   --paper, --ink, --ink-soft, --line, --green, --green-deep, --accent, --gold,
   --flash, --ball, --card, --shadow, --display, --font. Mobile first. */

/* Small gold labels use a darker gold than the site's, for 4.5:1 contrast at small sizes. */
:root { --gold-text: #7a5c17; }
.bi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- post hero */
.post-hero { padding: 22px 0 40px; background: linear-gradient(180deg, var(--paper-2, #F1EFE4), var(--paper)); border-bottom: 1px solid var(--line); }
.post-hero .crumbs { margin-bottom: 18px; }
.post-hero-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .post-hero-grid { grid-template-columns: 1.04fr 1fr; gap: 48px; } }
.post-hero-grid.no-img { grid-template-columns: minmax(0, 760px); }
.topic-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  font: 800 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--green); background: rgba(var(--tint-rgb, 29, 122, 76), .1); }
.topic-badge .bi { font-size: 17px; color: var(--accent); }
a.topic-badge:hover { background: rgba(var(--tint-rgb, 29, 122, 76), .17); }
.post-hero h1 { font-size: clamp(34px, 6.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 0; }
.post-hero .lede { font-size: clamp(17px, 2.3vw, 20px); margin-top: 14px; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14.5px; color: var(--ink-soft); }
.post-byline img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, .16); }
.post-byline b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.post-byline span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.post-byline .bi { color: var(--accent); font-size: 15px; }
.post-byline .dot { margin: 0 4px; }
.post-hero-img { margin: 0; }
.post-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow); background: var(--mint, #E3ECE3); }
.post-hero-img figcaption, .post-figure figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); text-align: right; }
.post-hero-img figcaption a, .post-figure figcaption a { color: inherit; }

/* ---------------------------------------------------------------- article + sidebar */
.post-layout { display: grid; gap: 40px; padding-top: 34px; padding-bottom: 24px; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } }
.doc.post-main { max-width: 720px; padding-bottom: 0; }
.post-side { display: none; }
@media (min-width: 1024px) {
  .post-side { display: block; align-self: stretch; }
  .side-sticky { position: sticky; top: 86px; display: grid; gap: 18px; }
}

/* Reading type: bigger and airier than the site's doc pages. */
.post-main.doc p, .post-main.doc li { font-size: 18px; line-height: 1.75; }
.post-main.doc p { margin: 0 0 18px; }
.post-intro > p:first-child { font-size: 20px; line-height: 1.65; color: var(--ink); }
.post-intro.drop > p:first-child::first-letter { float: left; font: 900 3.1em/.82 var(--display); color: var(--accent); margin: .06em .1em 0 0; }

/* "5 min read · In this guide" */
.post-glance { margin: 0 0 34px; padding: 20px 22px 16px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 67, 47, .06); }
.glance-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 10px;
  font: 800 15px/1.2 var(--font); color: var(--ink); }
.glance-head > span { display: inline-flex; align-items: center; gap: 7px; }
.glance-head .bi { font-size: 18px; color: var(--accent); }
.glance-head .glance-count { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.post-main.doc .glance-toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
@media (min-width: 640px) { .post-main.doc .glance-toc { grid-template-columns: 1fr 1fr; column-gap: 22px; } }
.post-main.doc .glance-toc > li { counter-increment: toc; margin: 0; padding: 0; font-size: 15px; line-height: 1.35; }
.post-main.doc .glance-toc > li::before { content: none; }
.glance-toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-soft); text-decoration: none; }
.glance-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 800 12px/1.7 var(--font); color: var(--gold-text); }
.glance-toc a:hover { color: var(--green); }

/* Sections, each with a pickleball icon. */
.post-sec { margin-top: 38px; scroll-margin-top: 80px; }
.post-sec + .post-sec--plain, .post-figure + .post-sec--plain { border-top: 1px solid var(--line); padding-top: 34px; }
.post-main.doc .post-sec > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: clamp(23px, 3.3vw, 29px); line-height: 1.15; }
.h-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: var(--accent); background: rgba(var(--tint-rgb, 29, 122, 76), .1); }
.h-ico .bi { width: 22px; height: 22px; }
.post-main.doc h3 { font-size: 20px; margin: 24px 0 8px; }

/* Lists: a ball for each bullet, numbered green circles for steps. */
.post-main.doc ul { list-style: none; padding-left: 0; margin: 0 0 18px; }
.post-main.doc ul > li { position: relative; padding-left: 30px; margin: 9px 0; }
.post-main.doc ul > li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 1.2px, transparent 1.6px), radial-gradient(circle at 70% 60%, var(--ball-dot, rgba(16,67,47,.35)) 0 1.2px, transparent 1.6px), var(--ball);
  box-shadow: inset 0 0 0 1.5px rgba(16, 67, 47, .22); }
.post-main.doc ol { list-style: none; padding-left: 0; margin: 0 0 18px; counter-reset: step; }
.post-main.doc ol > li { counter-increment: step; position: relative; padding-left: 42px; margin: 12px 0; }
.post-main.doc ol > li::before { content: counter(step); position: absolute; left: 0; top: .18em; width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font: 800 14px/1 var(--font); }

/* Recaps, mistakes and tips stand out as cards. */
.post-sec--summary, .post-sec--warn, .post-sec--tip { padding: 24px 24px 10px; border-radius: 20px; }
.post-sec--summary { background: rgba(var(--tint-rgb, 29, 122, 76), .07); border: 1px solid rgba(var(--tint-rgb, 29, 122, 76), .2); }
.post-sec--warn { background: rgba(242, 211, 59, .13); border: 1px solid rgba(169, 133, 47, .3); }
.post-sec--warn .h-ico { color: #8a6a17; background: rgba(242, 211, 59, .35); }
.post-sec--warn ul > li::before { background: var(--flash); }
.post-sec--tip { background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 67, 47, .06); }

/* Photos inside the post */
.post-figure { margin: 38px 0; }
.post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--mint, #E3ECE3); }

/* Tags + share sit together at the end */
.post-main .post-tags span { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); }
.post-sec--summary p, .post-sec--summary li, .post-sec--warn p, .post-sec--warn li { color: #46554b; }
.post-sec--summary a, .post-sec--warn a { color: var(--green); }
.kicker { color: var(--gold-text); }
.post-sources { margin: 30px 0 22px; padding: 16px 18px; border-radius: 16px; background: rgba(var(--tint-rgb, 29, 122, 76), .06); border: 1px solid rgba(var(--tint-rgb, 29, 122, 76), .14); }
.post-sources .sources-title { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text, #7a5c17); }
.post-sources .sources-title .bi { color: var(--accent); margin-right: 7px; vertical-align: -3px; }
.post-main.doc .post-sources ul { margin: 0; padding: 0; list-style: none; }
.post-main.doc .post-sources ul > li { padding-left: 0; margin: 6px 0; font-size: 15px; line-height: 1.45; }
.post-main.doc .post-sources ul > li::before { content: none; }
.post-sources a { color: var(--green); font-weight: 600; }
.post-sources .src-note { display: block; color: var(--ink-soft); font-size: 14px; }
.post-byline .updated { font-weight: 700; color: var(--ink); }

/* Previous / Next */
.post-nav { display: grid; gap: 14px; margin: 40px 0 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: 0 6px 18px rgba(16, 67, 47, .05); transition: border-color .2s, transform .3s; }
.post-nav a.next { grid-template-columns: minmax(0, 1fr) 84px; text-align: right; }
.post-nav a:hover { border-color: rgba(var(--tint-rgb, 29, 122, 76), .4); transform: translateY(-2px); }
.post-nav img, .post-nav .nav-ball { width: 84px; height: 56px; object-fit: cover; border-radius: 11px; }
.post-nav .nav-ball { display: grid; place-items: center; background: rgba(var(--tint-rgb, 29, 122, 76), .1); color: var(--accent); font-size: 26px; }
.post-nav small { display: flex; align-items: center; gap: 6px; font: 800 11.5px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-text); }
.post-nav a.next small { justify-content: flex-end; }
.post-nav strong { display: block; margin-top: 7px; font: 800 16.5px/1.25 var(--display); }

/* Keep reading */
.keep-reading { padding: 26px 0 72px; border-top: 1px solid var(--line); background: var(--paper-2, #F1EFE4); }
.keep-reading h2 { font-size: clamp(26px, 4vw, 34px); margin: 18px 0 18px; }
.mini-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-card { display: block; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(16, 67, 47, .06); transition: transform .3s, box-shadow .3s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 67, 47, .12); }
.mini-card img, .mini-card .mini-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mini-card .mini-cover { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--cover-hi, #18573E), var(--green-deep)); color: #fff; font: 800 30px/1 var(--display); }
.mini-card span { display: block; padding: 14px 16px 4px; font: 800 11.5px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.mini-card strong { display: block; padding: 0 16px 18px; font: 800 18px/1.25 var(--display); }
.keep-reading .post-more-all { margin: 18px 0 0; }

/* Sidebar: our app, then an "Advertise here" slot */
.side-ad { display: block; padding: 22px 20px; border-radius: 22px; text-align: center; text-decoration: none; }
.side-ad--app { color: #fff; background: radial-gradient(circle at 50% 0%, var(--ad-hi, #1D6B4A), var(--green-deep) 70%); box-shadow: var(--shadow); }
.side-ad .ad-label { display: block; margin-bottom: 14px; font: 800 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.side-ad .ad-icon { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.side-ad .ad-title { margin: 12px 0 4px; font: 900 23px/1.1 var(--display); color: #fff; }
.side-ad .ad-text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.side-ad .ad-points { list-style: none; margin: 0 0 18px; padding: 14px 14px 12px; border-radius: 14px; text-align: left;
  display: grid; gap: 9px; background: rgba(255, 255, 255, .08); font-size: 14px; line-height: 1.35; }
.side-ad .ad-points li { display: flex; gap: 8px; align-items: flex-start; }
.side-ad .ad-points .bi { color: var(--ball); font-size: 17px; margin-top: 1px; }
.side-ad .store { display: inline-block; }
.side-ad .store img { margin: 0 auto; }
.side-ad .store img { display: block; height: 48px; width: auto; }
.side-ad--slot { color: var(--ink-soft); background: transparent; border: 2px dashed rgba(16, 67, 47, .3); padding: 34px 20px; transition: border-color .2s, background-color .2s; }
.side-ad--slot:hover { border-color: var(--accent); background: rgba(var(--tint-rgb, 29, 122, 76), .04); }
.side-ad--slot .bi { font-size: 32px; color: var(--accent); }
.side-ad--slot strong { display: block; margin: 10px 0 6px; font: 800 19px/1.2 var(--display); color: var(--ink); }
.side-ad--slot span { display: block; font-size: 14px; line-height: 1.45; }

/* ---------------------------------------------------------------- cards with photos (index, topic and tag pages) */
.post-cover.has-img { background: var(--green-deep); }
.post-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.post-cover.has-img::before { z-index: 1; opacity: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .28)); }
.post-cover.has-img .cover-tag, .post-cover.has-img .cover-call { z-index: 2; }
.post-cover.has-img .cover-tag { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
/* On a photo the call moves to the bottom-left corner, so the picture shows. */
.post-cover.has-img .cover-call { position: absolute; left: 16px; bottom: 16px; font-size: clamp(20px, 3.4vw, 26px); padding: 8px 16px; }
.post-card .post-cover.has-img { min-height: 190px; }
.post-card:hover .post-cover.has-img img { transform: scale(1.04); }
.topic-name { display: flex; align-items: center; gap: 10px; }
.topic-name .h-ico { width: 34px; height: 34px; border-radius: 11px; }
.topic-name .h-ico .bi { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  .post-nav a, .mini-card, .post-cover.has-img img { transition: none; }
  .post-nav a:hover, .mini-card:hover, .post-card:hover .post-cover.has-img img { transform: none; }
}

/* Share (2026-11-13): round buttons with each network's mark, filled in its colour on hover;
   Copy link and the phone's Share sheet as pills. Overrides the older text pills in site.css. */
.share { margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--out, ease); }
.share-btn .si { flex: none; }
.share-icon { --brand: var(--green); width: 44px; height: 44px; padding: 0; border-radius: 50%; color: var(--brand);
  box-shadow: 0 4px 12px rgba(16, 67, 47, .06); }
.share-icon:hover, .share-icon:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.share-x, .share-threads { --brand: #000; }
.share-facebook { --brand: #1877F2; }
.share-whatsapp { --brand: #25D366; }
.share-reddit { --brand: #FF4500; }
.share-linkedin { --brand: #0A66C2; }
.share-email { --brand: var(--accent); }
.share-copy, .share-native { padding: 0 18px; }
.share-copy .si-check, .share-copy.is-copied .si-link { display: none; }
.share-copy.is-copied .si-check { display: inline; }
.share-copy.is-copied { border-color: rgba(var(--tint-rgb, 29, 122, 76), .4); background: rgba(var(--tint-rgb, 29, 122, 76), .08); }
.share-native .si { width: 18px; height: 18px; margin-top: -2px; }
@media (max-width: 640px) { .share-tags { display: block; margin: 4px 0 0; font-size: 15px; } }

/* App card partway down the post (2026-11-16): phones and tablets only, the sidebar ad covers desktop. */
.post-appcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 30px 0;
  padding: 14px 16px; border-radius: 20px; color: #fff; background: var(--appcard-bg, linear-gradient(135deg, #10432F, #0b2e21));
  box-shadow: 0 10px 26px rgba(16, 67, 47, .18); }
.post-appcard img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.post-appcard .ac-copy { display: grid; gap: 2px; min-width: 0; }
.post-appcard .ac-title { font: 900 18px/1.15 var(--display, var(--font)); }
.post-appcard .ac-text { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.post-main.doc .post-appcard .ac-btn { padding: 10px 14px; border-radius: 999px; background: var(--appcard-btn, #f2d33b); color: var(--appcard-btn-ink, #10432F);
  font: 800 14px/1 var(--font); text-decoration: none; white-space: nowrap; }
.post-appcard .ac-btn:hover { background: var(--appcard-btn-hover, #ffe066); }
@media (max-width: 420px) { .post-appcard { grid-template-columns: 48px minmax(0, 1fr); } .post-appcard img { width: 48px; height: 48px; }
  .post-appcard .ac-btn { grid-column: 1 / -1; text-align: center; } }
@media (min-width: 1024px) { .post-appcard { display: none; } }

/* Plusmark blog skin (2026-11-16): loaded after blog.css on plusmark.thecloudgrid.com/blog
   (config/blog.php sites.plusmark.skin). The site's own site.css (Cacehh/plusmark-site) is on the page
   first, so its tokens are here: --bg, --bg-2, --surface, --ink, --ink-2, --ink-3, --line, --orange,
   --orange-2, --orange-ink, --blue, --blue-2, --violet, --pink, --accent-ink, --accent-soft,
   --orange-soft, --shadow, --head; they switch for dark mode by themselves (prefers-color-scheme).
   This file maps the blog's own names onto them, adds the page layout the WatchStats blog takes from
   its site.css, and restyles the post for Plusmark: violet icon tiles, + bullets, blue numbered pads,
   violet covers with a + pad chessboard, an orange call pill. */

.blog-page {
  --paper: var(--bg);
  --paper-2: var(--bg-2);
  --mint: var(--accent-soft);
  --ink-soft: var(--ink-2);
  --card: var(--surface);
  --green: var(--accent-ink);
  --green-deep: #2d2385;
  --gold: var(--orange-ink);
  --gold-text: var(--orange-ink);
  --flash: var(--orange);
  --ball: var(--orange);
  --ball-dot: transparent;
  --tint-rgb: 109, 100, 232;
  --cover-hi: #5b50e0;
  --ad-hi: #5b50e0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--head);
  --ease: cubic-bezier(.2, .8, .2, 1);
}


.bi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blog-page { --tint: color-mix(in srgb, var(--violet) 10%, transparent); --tint-2: color-mix(in srgb, var(--violet) 18%, transparent);
  --card-shadow: 0 1px 2px rgba(23, 22, 50, .05), 0 8px 22px rgba(40, 34, 110, .08); }
@media (prefers-color-scheme: dark) { .blog-page { --tint: color-mix(in srgb, var(--violet) 18%, transparent); --tint-2: color-mix(in srgb, var(--violet) 28%, transparent);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .35); } }

/* ---------------------------------------------------------------- listing pages (index, topic, tag) */
.blog-page .hero-faq { position: relative; overflow: hidden; padding: 40px 0 30px; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 92% 0%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 70%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%); }
@media (min-width: 900px) { .blog-page .hero-faq { padding: 56px 0 36px; } }
.blog-page .hero-faq h1 { font-size: clamp(2.2rem, 6.6vw, 3.6rem); font-weight: 900; max-width: 18em; }
.blog-page .hero-faq .lede { margin-top: 14px; font-size: 1.12rem; color: var(--ink-2); max-width: 40em; }
.kicker { display: inline-block; margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.blog-tools { display: grid; gap: 14px; margin-top: 26px; }
.search { position: relative; display: block; max-width: 760px; }
.search input { width: 100%; font: 600 1.02rem/1 var(--head); padding: 15px 18px 15px 48px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--card-shadow); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-3); font-weight: 500; }
.search input:focus { outline: 3px solid color-mix(in srgb, var(--violet) 40%, transparent); outline-offset: 0; border-color: var(--violet); }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); }
.blog-tools .chips { margin: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.blog-tools .chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .blog-tools .chips { flex-wrap: wrap; overflow: visible; } }
.blog-tools .chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 750; font-size: .9rem;
  color: var(--accent-ink); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; transition: background-color .2s, border-color .2s; }
.blog-tools .chips a:hover { border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.blog-tools .chips a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip-count { display: inline-block; min-width: 1.5em; padding: 1px 6px; border-radius: 99px; font-size: .74rem; text-align: center; background: var(--tint); }
.chips a[aria-current="page"] .chip-count { background: rgba(255, 255, 255, .22); }
.blog-count { margin: 0; min-height: 1.3em; font-size: .88rem; color: var(--ink-3); }

.post-grid { display: grid; gap: 22px; padding: 38px 0 70px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--card-shadow); }
.post-card.featured { grid-column: 1 / -1; }
/* The cover: a violet + pad chessboard (as in the hero), or the post's photo. */
.post-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; overflow: hidden; text-decoration: none;
  background: radial-gradient(circle at 30% 20%, #5b50e0, #2d2385 70%); }
.post-cover::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96'><g fill='%23ffffff'><rect x='6' y='6' width='36' height='36' rx='10'/><rect x='54' y='54' width='36' height='36' rx='10'/></g><g stroke='%235b50e0' stroke-width='4' stroke-linecap='round'><path d='M24 16v16M16 24h16M72 64v16M64 72h16'/></g></svg>") 0 0 / 96px 96px; }
.cover-tag { position: absolute; left: 18px; top: 16px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd2ad; }
.cover-call { position: relative; font: 900 clamp(1.8rem, 6vw, 2.6rem)/1 var(--head); color: #fff; font-variant-numeric: tabular-nums;
  padding: 12px 26px; border-radius: 22px; background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px rgba(20, 10, 60, .35); }
.post-cover.has-img { background: #2d2385; }
.post-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out, ease); }
.post-cover.has-img::before { z-index: 1; opacity: 1; background: linear-gradient(180deg, rgba(10, 6, 40, .38), rgba(10, 6, 40, 0) 40%, rgba(10, 6, 40, .3)); }
.post-cover.has-img .cover-tag, .post-cover.has-img .cover-call { z-index: 2; }
.post-cover.has-img .cover-tag { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.post-cover.has-img .cover-call { position: absolute; left: 16px; bottom: 16px; font-size: clamp(1.1rem, 3.4vw, 1.5rem); padding: 8px 15px; border-radius: 14px; }
.post-card .post-cover.has-img { min-height: 196px; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta { margin: 0 0 8px; font-size: .86rem; color: var(--ink-3); }
.post-meta .post-topic { color: var(--accent-ink); font-weight: 750; text-decoration: none; }
.post-meta .post-topic:hover { text-decoration: underline; }
.post-card h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); line-height: 1.18; margin: 0 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-ink); }
.post-card .post-body > p:not(.post-meta) { margin: 0 0 16px; color: var(--ink-2); font-size: .98rem; }
.post-card .more { margin-top: auto; align-self: flex-start; font-weight: 800; font-family: var(--head); color: var(--orange-ink); text-decoration: none; }
.post-card .more:hover { text-decoration: underline; }
@media (min-width: 760px) {
  .post-card.featured { flex-direction: row; }
  .post-card.featured .post-cover { flex: 0 0 46%; min-height: 300px; }
  .post-card.featured .post-body { justify-content: center; padding: 32px 36px; }
  .post-card.featured h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .post-card { transition: transform .4s var(--spring, ease), box-shadow .4s var(--out, ease); }
  .post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(40, 34, 110, .16); }
  .post-card:hover .post-cover.has-img img { transform: scale(1.04); }
}
.post-card[hidden], .blog-empty[hidden], .share-btn[hidden] { display: none !important; }
.blog-empty { text-align: center; color: var(--ink-3); margin: -36px 0 50px; }

.blog-topics { padding: 0 0 20px; }
.blog-topics h2 { font-size: clamp(1.5rem, 4.6vw, 2rem); margin: 0 0 16px; }
.topic-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink); transition: border-color .2s, transform .3s; }
.topic-card:hover { border-color: color-mix(in srgb, var(--violet) 45%, transparent); transform: translateY(-2px); }
.topic-name { display: flex; align-items: center; gap: 10px; font: 900 1.12rem/1.2 var(--head); color: var(--ink); }
.topic-name .h-ico { width: 36px; height: 36px; border-radius: 11px; }
.topic-name .h-ico .bi { width: 19px; height: 19px; }
.topic-desc { font-size: .94rem; color: var(--ink-2); }
.topic-count { margin-top: auto; padding-top: 4px; font-size: .88rem; font-weight: 800; color: var(--accent-ink); }
.blog-suggest { text-align: center; color: var(--ink-3); margin: 18px 0 70px; }
.blog-page .wrap > .doc { padding-top: 30px; padding-bottom: 70px; }

/* ---------------------------------------------------------------- post hero */
.post-hero { padding: 22px 0 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%), linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 100%); }
.post-hero .crumbs { margin-bottom: 18px; }
.post-hero-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .post-hero-grid { grid-template-columns: 1.04fr 1fr; gap: 48px; } }
.post-hero-grid.no-img { grid-template-columns: minmax(0, 760px); }
.topic-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--accent-ink); background: var(--surface); border: 1px solid var(--line); }
.topic-badge .bi { font-size: 1.1rem; color: var(--orange); }
a.topic-badge:hover { background: var(--surface); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.post-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; margin: 16px 0 0; font-weight: 900; }
.post-hero .lede { font-size: clamp(1.05rem, 2.3vw, 1.22rem); margin-top: 14px; color: var(--ink-2); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .9rem; color: var(--ink-3); }
.post-byline img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 10px rgba(40, 34, 110, .2); }
.post-byline b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 3px; font-family: var(--head); }
.post-byline span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.post-byline .bi { color: var(--violet); font-size: .95rem; }
/* site.css's .dot is the hero's orange light: here it's just a separator. */
.post-byline .dot { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none !important; animation: none !important; margin: 0 4px; }
.post-byline .updated { font-weight: 700; color: var(--ink); }
.post-hero-img { margin: 0; }
.post-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); background: var(--accent-soft); }
.post-hero-img figcaption, .post-figure figcaption { margin-top: 8px; font-size: .78rem; color: var(--ink-3); text-align: right; }
.post-hero-img figcaption a, .post-figure figcaption a { color: inherit; }

/* ---------------------------------------------------------------- article + sidebar */
.post-layout { display: grid; gap: 40px; padding-top: 34px; padding-bottom: 24px; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } }
.doc.post-main { max-width: 720px; padding: 0; }
.post-side { display: none; }
@media (min-width: 1024px) { .post-side { display: block; align-self: stretch; } .side-sticky { position: sticky; top: 86px; display: grid; gap: 18px; } }

.post-main.doc p, .post-main.doc li { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.post-main.doc p { margin: 0 0 18px; }
.post-main.doc p + p { margin-top: 0; }
.post-main.doc b, .post-main.doc strong { color: var(--ink); }
.post-main.doc a { color: var(--accent-ink); font-weight: 600; }
.post-intro > p:first-child { font-size: 1.18rem; line-height: 1.65; color: var(--ink); }
.post-intro.drop > p:first-child::first-letter { float: left; font: 900 3.2em/.82 var(--head); margin: .06em .1em 0 0;
  background: linear-gradient(135deg, var(--orange), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* "5 min read · In this guide" */
.post-glance { margin: 0 0 34px; padding: 18px 22px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.glance-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 10px; font: 800 .95rem/1.2 var(--head); color: var(--ink); }
.glance-head > span { display: inline-flex; align-items: center; gap: 7px; }
.glance-head .bi { font-size: 1.12rem; color: var(--violet); }
.glance-head .glance-count { margin-left: auto; font-weight: 600; font-size: .82rem; color: var(--ink-3); }
.post-main.doc .glance-toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
@media (min-width: 640px) { .post-main.doc .glance-toc { grid-template-columns: 1fr 1fr; column-gap: 22px; } }
.post-main.doc .glance-toc > li { counter-increment: toc; margin: 0; padding: 0; font-size: .94rem; line-height: 1.35; }
.post-main.doc .glance-toc > li::before { content: none; }
.post-main.doc .glance-toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.glance-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 900 .75rem/1.75 var(--head); color: var(--orange-ink); }
.post-main.doc .glance-toc a:hover { color: var(--accent-ink); }

/* Sections: each starts with an icon tile, like a counter's icon in the app. (site.css pads every
   <section> 68px for the home page; post sections are sections too, so that is undone here.) */
.post-main .post-sec { margin-top: 38px; padding: 0; scroll-margin-top: 80px; }
.post-main .post-sec + .post-sec--plain, .post-main .post-figure + .post-sec--plain, .post-main .post-appcard + .post-sec--plain, .post-main .post-try + .post-sec--plain { border-top: 1px solid var(--line); padding-top: 34px; }
.post-main.doc .post-sec > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: clamp(1.4rem, 3.4vw, 1.75rem); line-height: 1.15; font-weight: 900; }
.h-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff;
  background: linear-gradient(140deg, #8a82ff, var(--violet) 55%, #5047d0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px color-mix(in srgb, var(--violet) 30%, transparent); }
.h-ico .bi { width: 22px; height: 22px; stroke-width: 2.1; }
.post-main.doc h3 { font-size: 1.18rem; margin: 26px 0 8px; font-weight: 800; }

/* Lists: a little + for each bullet, numbered blue pads for steps. */
.post-main.doc ul { list-style: none; padding-left: 0; margin: 0 0 18px; }
.post-main.doc ul > li { position: relative; padding-left: 30px; margin: 9px 0; }
.post-main.doc ul > li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 15px; height: 15px; border-radius: 5px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: none; }
.post-main.doc ul > li::after { content: ""; position: absolute; left: 2px; top: .52em; width: 15px; height: 15px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'><path d='M7.5 4.2v6.6M4.2 7.5h6.6' stroke='white' stroke-width='1.9' stroke-linecap='round'/></svg>") center / contain no-repeat; }
.post-main.doc ol { list-style: none; padding-left: 0; margin: 0 0 18px; counter-reset: step; }
.post-main.doc ol > li { counter-increment: step; position: relative; padding-left: 44px; margin: 12px 0; }
.post-main.doc ol > li::before { content: counter(step); position: absolute; left: 0; top: .12em; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font: 900 .9rem/1 var(--head);
  background: radial-gradient(120% 90% at 30% 10%, #5fb0ff 0%, var(--blue) 45%, var(--blue-2) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }

/* Recaps, mistakes and tips stand out as cards. */
.post-main .post-sec--summary, .post-main .post-sec--warn, .post-main .post-sec--tip { padding: 24px 24px 8px; border-radius: 22px; }
.post-sec--summary { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); }
.post-sec--summary .h-ico { background: linear-gradient(140deg, #5fd38f, #22b35e 60%, #17904a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.post-sec--warn { background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); }
.post-sec--warn .h-ico { background: linear-gradient(140deg, #ffb066, var(--orange) 55%, var(--orange-2)); }
.post-sec--tip { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.post-sec--tip .h-ico { background: linear-gradient(140deg, #ffd25e, #f5b20a); color: #4a3200; }
.post-sec--warn .h-ico, .post-sec--summary .h-ico { color: #fff; }
.post-sec--summary p, .post-sec--summary li, .post-sec--warn p, .post-sec--warn li { color: var(--ink-2); }
.post-sec--summary a, .post-sec--warn a { color: var(--accent-ink); }

/* Photos inside the post */
.post-figure { margin: 38px 0; }
.post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--accent-soft); }

/* {{TRY_IT}}: the home page's try-it counter inside a post. */
.post-try { margin: 34px auto 38px; max-width: 380px; }
.post-try .demo { margin: 0 auto; }

/* Sources, tags, share */
.post-sources { margin: 30px 0 22px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.post-sources .sources-title { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.post-sources .sources-title .bi { color: var(--violet); margin-right: 7px; vertical-align: -3px; font-size: 1.1rem; }
.post-main.doc .post-sources ul { margin: 0; padding: 0; list-style: none; }
.post-main.doc .post-sources ul > li { padding-left: 0; margin: 6px 0; font-size: .94rem; line-height: 1.45; }
.post-main.doc .post-sources ul > li::before, .post-main.doc .post-sources ul > li::after { content: none; }
.post-sources .src-note { display: block; color: var(--ink-3); font-size: .88rem; font-weight: 400; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; }
.post-main.doc .post-tags span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.post-main.doc .post-tags a { font-size: .88rem; font-weight: 700; color: var(--accent-ink); background: var(--tint); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.post-main.doc .post-tags a:hover { background: var(--tint-2); }

.share { margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.post-main.doc .share-title { margin: 0 0 10px; font-weight: 800; color: var(--ink); font-family: var(--head); }
.share-tags { margin-left: 6px; font-weight: 600; color: var(--ink-3); font-family: var(--font, inherit); }
@media (max-width: 640px) { .share-tags { display: block; margin: 4px 0 0; font-size: .92rem; } }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 750 .92rem/1 var(--head); color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--out, ease); }
.post-main.doc .share-btn { color: var(--ink); font-weight: 750; }
.share-btn .si { flex: none; width: 19px; height: 19px; }
.share-icon { --brand: var(--violet); width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.post-main.doc .share-icon { color: var(--brand); }
.share-icon:hover, .share-icon:focus-visible, .post-main.doc .share-icon:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.share-x, .share-threads { --brand: #000; }
@media (prefers-color-scheme: dark) { .share-x, .share-threads { --brand: #fff; } .share-x:hover, .share-threads:hover, .post-main.doc .share-x:hover, .post-main.doc .share-threads:hover { color: #000; } }
.share-facebook { --brand: #1877F2; }
.share-whatsapp { --brand: #25D366; }
.share-reddit { --brand: #FF4500; }
.share-linkedin { --brand: #0A66C2; }
.share-email { --brand: var(--orange); }
.share-copy .si-check, .share-copy.is-copied .si-link { display: none; }
.share-copy.is-copied .si-check { display: inline; }
.share-copy.is-copied { border-color: color-mix(in srgb, #22b35e 45%, transparent); background: color-mix(in srgb, #22b35e 10%, transparent); }
.share-copy:hover { border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.post-main.doc .share-native, .share-native:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* The App Store box at the end of the post */
.post-cta { position: relative; overflow: hidden; margin: 36px 0 0; padding: 26px 24px 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, #5b50e0 0%, transparent 60%), linear-gradient(150deg, #3a2c8c, #1d1652); box-shadow: 0 16px 40px rgba(40, 34, 110, .28); }
.post-cta::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 150px; height: 150px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='4' y='4' width='92' height='92' rx='26' fill='white'/><path d='M50 28v44M28 50h44' stroke='%233a2c8c' stroke-width='10' stroke-linecap='round'/></svg>") center / contain no-repeat; }
.post-main.doc .post-cta h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 4vw, 1.7rem); color: #fff; font-weight: 900; }
.post-main.doc .post-cta p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; position: relative; z-index: 1; }
.cta-row .store img, .side-ad .store img { display: block; height: 50px; width: auto; }
.post-main.doc .btn-ghost { font-family: var(--head); font-weight: 800; color: #fff; text-decoration: none; padding: 12px 4px; }
.post-main.doc .btn-ghost:hover { text-decoration: underline; }

/* App card partway down the post: phones and tablets only, the sidebar ad covers desktop. */
.post-appcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 30px 0;
  padding: 14px 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #3a2c8c, #1d1652); box-shadow: 0 10px 26px rgba(40, 34, 110, .24); }
.post-appcard img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.post-appcard .ac-copy { display: grid; gap: 2px; min-width: 0; }
.post-appcard .ac-title { font: 900 1.1rem/1.15 var(--head); }
.post-appcard .ac-text { font-size: .88rem; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.post-main.doc .post-appcard .ac-btn { padding: 10px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff;
  font: 800 .88rem/1 var(--head); text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(230, 90, 20, .35); }
.post-main.doc .post-appcard .ac-btn:hover { background: linear-gradient(135deg, #ff8f3a, var(--orange)); }
@media (max-width: 420px) { .post-appcard { grid-template-columns: 48px minmax(0, 1fr); } .post-appcard img { width: 48px; height: 48px; }
  .post-appcard .ac-btn { grid-column: 1 / -1; text-align: center; } }
@media (min-width: 1024px) { .post-appcard { display: none; } }

/* Previous / Next */
.post-nav { display: grid; gap: 14px; margin: 38px 0 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-main.doc .post-nav a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 400;
  box-shadow: var(--card-shadow); transition: border-color .2s, transform .3s; }
.post-main.doc .post-nav a.next { grid-template-columns: minmax(0, 1fr) 84px; text-align: right; }
.post-main.doc .post-nav a:hover { border-color: color-mix(in srgb, var(--violet) 45%, transparent); transform: translateY(-2px); }
.post-nav img, .post-nav .nav-ball { width: 84px; height: 56px; object-fit: cover; border-radius: 12px; }
.post-nav .nav-ball { display: grid; place-items: center; background: var(--tint); color: var(--violet); font-size: 26px; }
.post-nav small { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.post-nav a.next small { justify-content: flex-end; }
.post-nav strong { display: block; margin-top: 7px; font: 800 1.02rem/1.25 var(--head); }

/* Keep reading */
.keep-reading { padding: 26px 0 70px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.keep-reading h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 18px 0 18px; font-weight: 900; }
.mini-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-card { display: block; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--card-shadow); transition: transform .3s, box-shadow .3s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(40, 34, 110, .14); }
.mini-card img, .mini-card .mini-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mini-card .mini-cover { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #5b50e0, #2d2385 70%); color: #fff; font: 900 1.9rem/1 var(--head); }
.mini-card span { display: block; padding: 14px 16px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.mini-card strong { display: block; padding: 0 16px 18px; font: 800 1.08rem/1.25 var(--head); }
.post-more-all { margin: 18px 0 0; font-weight: 700; }
.post-more-all a { color: var(--accent-ink); }

/* Sidebar: our app, then an "Advertise here" slot */
.side-ad { display: block; padding: 22px 20px; border-radius: 24px; text-align: center; text-decoration: none; }
.side-ad--app { position: relative; overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 50% 0%, #5b50e0, #2a2075 75%); box-shadow: var(--shadow); }
.side-ad .ad-label { display: block; margin-bottom: 14px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.side-ad .ad-icon { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.side-ad .ad-title { margin: 12px 0 4px; font: 900 1.45rem/1.1 var(--head); color: #fff; }
.side-ad .ad-text { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .84); }
.side-ad .ad-points { list-style: none; margin: 0 0 18px; padding: 14px 14px 12px; border-radius: 16px; text-align: left;
  display: grid; gap: 9px; background: rgba(255, 255, 255, .1); font-size: .88rem; line-height: 1.35; }
.side-ad .ad-points li { display: flex; gap: 8px; align-items: flex-start; }
.side-ad .ad-points .bi { color: #ffb27a; font-size: 1.05rem; margin-top: 1px; }
.side-ad .store { display: inline-block; }
.side-ad .store img { margin: 0 auto; height: 46px; }
.side-ad--slot { color: var(--ink-3); background: transparent; border: 2px dashed color-mix(in srgb, var(--violet) 35%, transparent); padding: 32px 20px; transition: border-color .2s, background-color .2s; }
.side-ad--slot:hover { border-color: var(--violet); background: var(--tint); }
.side-ad--slot .bi { font-size: 30px; color: var(--violet); }
.side-ad--slot strong { display: block; margin: 10px 0 6px; font: 900 1.15rem/1.2 var(--head); color: var(--ink); }
.side-ad--slot span { display: block; font-size: .88rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .post-nav a, .mini-card, .topic-card, .post-cover.has-img img, .share-btn { transition: none; }
  .post-main.doc .post-nav a:hover, .mini-card:hover, .topic-card:hover, .share-icon:hover { transform: none; }
}
