/* ==========================================================================
   LinkHunter — blog (index, categories, articles)
   Keeps the public site's dark ink / violet / magenta identity. Builds on
   public.css (.site tokens, .eyebrow, .grad, .cta-band, .reveal) and app.css
   keyframes (flow, rise, spin-angle, shimmer). Mobile first.
   ========================================================================== */

.blog-site { --b-radius: 20px; --b-measure: 740px; --b-grad: linear-gradient(100deg, #2A1BFA, #8A18F8 55%, #FE25CC); }

/* ---------- breadcrumb ---------- */
.blog-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--s-text-3); }
.blog-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.blog-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid var(--s-text-3); border-top: 1.5px solid var(--s-text-3); transform: rotate(45deg); opacity: .8; }
.blog-crumbs a { color: var(--s-accent); text-decoration: none; transition: color .2s; }
.blog-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.blog-crumbs [aria-current] { color: var(--s-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- index hero ---------- */
.blog-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.blog-hero-copy { max-width: 860px; margin: clamp(28px, 5vw, 52px) auto 0; text-align: center; }
.blog-hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin-top: 20px; text-wrap: balance; }
.blog-hero h1 em { display: block; font-style: italic; font-weight: 800; padding-right: .08em; padding-bottom: .06em; }
.blog-hero .lead { color: var(--s-text-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin: 20px auto 0; max-width: 62ch; text-wrap: pretty; }

/* search */
.blog-search { position: relative; max-width: 560px; margin: 30px auto 0; }
.blog-search > svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #B9A6FF; pointer-events: none; }
.blog-search input { width: 100%; height: 54px; padding: 0 52px 0 50px; border-radius: 16px; border: 1px solid var(--s-line-2); background: rgba(255, 255, 255, .045); color: #fff; font: 500 15.5px var(--font); outline: none; -webkit-appearance: none; appearance: none;
  box-shadow: 0 18px 50px -28px rgba(138, 24, 248, .9), inset 0 1px 0 rgba(255, 255, 255, .05); transition: border-color .25s, box-shadow .25s, background .25s; }
.blog-search input::placeholder { color: var(--s-text-3); }
.blog-search input:focus { border-color: rgba(196, 178, 255, .55); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(138, 24, 248, .22), 0 18px 50px -24px rgba(254, 37, 204, .7); }
.blog-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.blog-search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--s-line-2); color: var(--s-text-3); font: 600 12px var(--font); background: rgba(255, 255, 255, .03); }
.blog-search input:focus ~ kbd, .blog-search input:not(:placeholder-shown) ~ kbd { opacity: 0; }

/* ---------- category pills ---------- */
.cat-row { position: sticky; top: 68px; z-index: 20; padding: 10px 0; background: linear-gradient(180deg, rgba(7, 5, 26, .9), rgba(7, 5, 26, .72)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(196, 178, 255, .06); border-bottom: 1px solid rgba(196, 178, 255, .08); }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 2px; justify-content: flex-start; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 15px; border-radius: 99px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .03); color: var(--s-text-2); font: 600 13.5px var(--font); text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease); }
.cat-pill .n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .06); color: var(--s-text-3); }
.cat-pill:hover { color: #fff; border-color: var(--s-line-2); background: rgba(138, 24, 248, .14); transform: translateY(-1px); }
.cat-pill[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(91, 20, 248, .85), rgba(194, 28, 244, .75)); box-shadow: 0 10px 26px -12px rgba(254, 37, 204, .9); }
.cat-pill[aria-current="page"] .n { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- shared bits ---------- */
.blog-main { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); }
.cat-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font: 700 11.5px var(--font); letter-spacing: .02em; text-decoration: none; color: #E3D9FF; background: rgba(138, 24, 248, .16); border: 1px solid rgba(196, 178, 255, .2); transition: background .2s, border-color .2s, color .2s; }
.cat-chip:hover { background: rgba(138, 24, 248, .3); border-color: rgba(196, 178, 255, .4); color: #fff; }
.cat-chip.lg { height: 30px; padding: 0 13px; font-size: 12.5px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--s-text-3); font-variant-numeric: tabular-nums; }
.media-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 10%, rgba(91, 20, 248, .55), transparent 60%), radial-gradient(90% 80% at 90% 100%, rgba(254, 37, 204, .35), transparent 65%), #120B33; }
.media-ph img { width: 56px; height: 56px; opacity: .9; filter: drop-shadow(0 0 18px rgba(254, 37, 204, .6)); }
.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.grid-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; font-weight: 800; }
.grid-count { font-size: 13px; color: var(--s-text-3); }
.grid-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font); color: var(--s-accent) !important; text-decoration: none; }
.grid-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.grid-link:hover svg { transform: translateX(3px); }

/* ---------- featured post ---------- */
.featured { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(91, 20, 248, .2), rgba(14, 10, 38, .92) 45%, rgba(254, 37, 204, .08)); border: 1px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(138, 24, 248, .85); transition: transform .45s var(--ease), box-shadow .45s; }
.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle), rgba(42, 27, 250, .25), #2A1BFA 70deg, #8A18F8 130deg, #FE25CC 190deg, rgba(254, 37, 204, .25) 250deg, rgba(42, 27, 250, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 8s linear infinite; }
.featured:hover { transform: translateY(-4px); box-shadow: 0 50px 110px -40px rgba(254, 37, 204, .7); }
.featured-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #120B33; }
.featured-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.featured:hover .featured-media > img { transform: scale(1.05); }
.featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 5, 26, .55)); pointer-events: none; }
.featured-body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 4vw, 44px); }
.featured-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-latest { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font: 700 11.5px var(--font); color: #fff; background: var(--b-grad); background-size: 200% 100%; animation: flow 5s linear infinite; box-shadow: 0 6px 18px -6px rgba(254, 37, 204, .8); }
.chip-latest svg { width: 13px; height: 13px; }
.featured-title { font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.featured-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.featured-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.featured:hover .featured-title a { background-size: 100% 2px; }
.featured-excerpt { color: var(--s-text-2); font-size: 16px; line-height: 1.65; }
.featured-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 14.5px var(--font); color: #fff; }
.featured-go svg { width: 17px; height: 17px; color: #F0ABFC; transition: transform .3s var(--ease); }
.featured:hover .featured-go svg { transform: translateX(4px); }
.featured .cat-chip { z-index: 4; }

/* ---------- card grid ---------- */
.grid-sec { margin-top: clamp(40px, 6vw, 72px); }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--b-radius); overflow: hidden; background: var(--s-card); border: 1px solid var(--s-line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, background .3s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(196, 178, 255, .32); background: var(--s-card-2); box-shadow: 0 30px 60px -30px rgba(138, 24, 248, .8), 0 0 0 1px rgba(254, 37, 204, .08); }
.pc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #120B33; }
.pc-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.post-card:hover .pc-media > img { transform: scale(1.07); }
.pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 5, 26, .45)); opacity: .8; transition: opacity .4s; pointer-events: none; }
.post-card:hover .pc-media::after { opacity: .4; }
.pc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.pc-title { font-size: 18.5px; line-height: 1.3; letter-spacing: -.02em; font-weight: 750; text-wrap: balance; }
.pc-title a { text-decoration: none; transition: color .2s; }
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .pc-title a { color: #F3EDFF; }
.pc-rule { width: 100%; height: 1px; border: 0; margin: 2px 0; background: linear-gradient(90deg, rgba(196, 178, 255, .26), rgba(196, 178, 255, .04)); position: relative; overflow: visible; }
.pc-rule::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 36px; background: var(--b-grad); box-shadow: 0 0 10px rgba(254, 37, 204, .8); transition: width .5s var(--ease); }
.post-card:hover .pc-rule::after { width: 100%; }
.pc-excerpt { color: var(--s-text-2); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body .post-meta { margin-top: auto; padding-top: 4px; }

/* ---------- search results ---------- */
.search-results { margin-bottom: 40px; }
.sr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.sr-head h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.025em; font-weight: 800; }
.search-results .post-card { animation: rise .45s var(--ease) both; }

/* ---------- empty state ---------- */
.blog-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(32px, 6vw, 56px) 24px; border-radius: 24px; border: 1px dashed var(--s-line-2); background: var(--s-card); }
.blog-empty.small { padding: 32px 20px; }
.blog-empty .be-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: rgba(138, 24, 248, .16); border: 1px solid rgba(196, 178, 255, .22); }
.blog-empty .be-icon svg { width: 24px; height: 24px; color: #D8CCFF; }
.blog-empty h2, .blog-empty h3 { font-size: 22px; letter-spacing: -.02em; }
.blog-empty p { color: var(--s-text-2); margin: 10px auto 22px; max-width: 46ch; line-height: 1.6; }
.blog-empty.small p { margin-bottom: 0; }

/* ---------- pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); }
.pg-btn, .pg-num { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 12px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .03); color: var(--s-text); font: 600 14px var(--font); text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.pg-btn { padding: 0 16px; }
.pg-btn svg { width: 16px; height: 16px; }
.pg-num { min-width: 42px; padding: 0 6px; font-variant-numeric: tabular-nums; }
a.pg-btn:hover, a.pg-num:hover { background: rgba(138, 24, 248, .16); border-color: var(--s-line-2); color: #fff; transform: translateY(-1px); }
.pg-num[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, #5B14F8, #C21CF4); box-shadow: 0 10px 24px -10px rgba(254, 37, 204, .8); }
.pg-btn.disabled { opacity: .4; cursor: default; }
.pg-nums { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pg-gap { display: inline-grid; place-items: center; width: 24px; height: 42px; color: var(--s-text-3); }
.pg-count { font: 600 13px var(--font); color: var(--s-text-3); padding: 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: 1fr; gap: 14px; }
.topic { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; border: 1px solid var(--s-line); background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.topic::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 37, 204, .22), transparent); opacity: 0; transition: opacity .4s; }
a.topic:hover { transform: translateY(-4px); border-color: var(--s-line-2); }
a.topic:hover::after { opacity: 1; }
.topic.soon { opacity: .7; }
.tp-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(138, 24, 248, .16); border: 1px solid rgba(196, 178, 255, .22); margin-bottom: 6px; }
.tp-icon svg { width: 20px; height: 20px; color: #D8CCFF; }
.topic h3 { font-size: 16.5px; }
.topic p { color: var(--s-text-2); font-size: 14px; line-height: 1.55; }
.tp-meta { margin-top: auto; padding-top: 6px; font: 600 12.5px var(--font); color: var(--s-accent); }

/* ---------- CTA band (shimmer border) ---------- */
.blog-band { isolation: isolate; }
.blog-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, #8A18F8 60deg, #FE25CC 120deg, transparent 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 6s linear infinite; }
.blog-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(196, 178, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 80% at 50% 0, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 0, #000, transparent 75%); }

/* ==========================================================================
   Article
   ========================================================================== */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; background: transparent; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--b-grad); box-shadow: 0 0 12px rgba(254, 37, 204, .8); will-change: transform; }

.post-head { padding: clamp(24px, 4vw, 44px) 0 clamp(24px, 4vw, 36px); }
.post-head-copy { max-width: 900px; margin-top: clamp(24px, 4vw, 40px); }
.post-head h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.07; letter-spacing: -.04em; font-weight: 800; margin-top: 16px; text-wrap: balance; }
.post-dek { color: var(--s-text-2); font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; margin-top: 18px; max-width: 64ch; text-wrap: pretty; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; font-size: 13.5px; color: var(--s-text-2); }
.post-meta-row .m { display: inline-flex; align-items: center; gap: 7px; }
.post-meta-row .m svg { width: 15px; height: 15px; color: #B9A6FF; }
.post-meta-row .author img { border-radius: 6px; filter: drop-shadow(0 0 6px rgba(138, 24, 248, .6)); }
.post-meta-row .author a { color: #fff; font-weight: 600; text-decoration: none; }
.post-meta-row .author a:hover { text-decoration: underline; text-underline-offset: 3px; }
.read-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; font: 700 12.5px var(--font); color: #fff; background: linear-gradient(135deg, rgba(91, 20, 248, .7), rgba(194, 28, 244, .55)); border: 1px solid rgba(255, 255, 255, .14); }
.read-badge svg { width: 14px; height: 14px; }

.post-hero { margin: 0 auto clamp(28px, 4vw, 48px); }
.hero-frame { position: relative; border-radius: 24px; padding: 1.5px; background: linear-gradient(135deg, rgba(42, 27, 250, .9), rgba(138, 24, 248, .7), rgba(254, 37, 204, .85)); box-shadow: 0 40px 100px -40px rgba(138, 24, 248, .9), 0 0 60px -20px rgba(254, 37, 204, .45); }
.hero-frame::before { content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px; background: var(--b-grad); filter: blur(60px); opacity: .35; }
.hero-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22.5px; background: #120B33; }
.hero-credit { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--s-text-3); }
.hero-credit svg { width: 13px; height: 13px; }
.hero-credit a { color: var(--s-text-2); text-decoration: none; }
.hero-credit a:hover { color: #fff; text-decoration: underline; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: clamp(32px, 5vw, 64px); }
.post-main { min-width: 0; max-width: var(--b-measure); width: 100%; margin: 0 auto; }
.post-side { display: none; }

/* mobile contents */
.toc-mobile { margin-bottom: 24px; border-radius: 16px; border: 1px solid var(--s-line); background: var(--s-card); overflow: hidden; }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font: 700 14.5px var(--display); color: #fff; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary svg { width: 17px; height: 17px; color: #B9A6FF; }
.toc-mobile summary .n { margin-left: auto; font: 500 12.5px var(--font); color: var(--s-text-3); }
.toc-mobile summary .chev { transition: transform .3s var(--ease); }
.toc-mobile[open] summary .chev { transform: rotate(180deg); }
.toc-mobile ol { list-style: none; margin: 0; padding: 4px 8px 12px; border-top: 1px solid var(--s-line); }
.toc-mobile a { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--s-text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc-mobile a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.toc-mobile a .n { color: var(--s-accent); font-variant-numeric: tabular-nums; min-width: 1.4em; font-weight: 600; }

/* quick answer */
.qa-box { position: relative; padding: 22px 24px; border-radius: 18px; margin-bottom: 20px; overflow: hidden;
  background: linear-gradient(#0F0A2C, #0F0A2C) padding-box, linear-gradient(135deg, rgba(42, 27, 250, .8), rgba(138, 24, 248, .6), rgba(254, 37, 204, .8)) border-box; border: 1.5px solid transparent;
  box-shadow: 0 24px 60px -34px rgba(254, 37, 204, .8); }
.qa-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 24, 248, .3), transparent); pointer-events: none; }
.qa-label { display: inline-flex; align-items: center; gap: 9px; font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #E9DFFF; }
.qa-spark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--b-grad); background-size: 200% 100%; animation: flow 4s linear infinite; box-shadow: 0 6px 16px -4px rgba(254, 37, 204, .8); }
.qa-spark svg { width: 15px; height: 15px; color: #fff; }
.qa-text { position: relative; z-index: 1; margin-top: 12px; font-size: 17.5px; line-height: 1.7; color: #F2EFFC; }

/* key takeaways */
.takeaways { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--s-line); background: var(--s-card); margin-bottom: clamp(32px, 4vw, 44px); }
.site .takeaways h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.01em; margin: 0 0 14px; }
.takeaways h2 svg { width: 19px; height: 19px; color: #B9A6FF; }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.takeaways li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--s-text); }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 6px; background: rgba(16, 185, 129, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EE7B7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- body typography ---------- */
.post-body { font-size: 17px; line-height: 1.75; color: #DAD6EC; overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.15em; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body figure, .post-body .table-wrap { margin-bottom: 0; }
.post-body h2 { position: relative; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.22; letter-spacing: -.03em; font-weight: 800; margin-top: 2.2em; padding-bottom: 14px; scroll-margin-top: 96px; text-wrap: balance; }
.post-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: var(--b-grad); box-shadow: 0 0 14px rgba(138, 24, 248, .7); }
.post-body h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; letter-spacing: -.02em; font-weight: 750; margin-top: 1.8em; scroll-margin-top: 96px; }
.post-body h4 { font-size: 17px; margin-top: 1.5em; color: #fff; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .7em; }
.post-body > :first-child { margin-top: 0; }
.post-body strong { color: #fff; font-weight: 650; }
.post-body em { color: #ECE6FF; }
.post-body a:not(.btn):not(.bc-link) { color: #D5C6FF; text-decoration: none; background: linear-gradient(90deg, #8A18F8, #FE25CC) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .35s var(--ease), color .2s; }
.post-body a:not(.btn):not(.bc-link):hover { color: #fff; background-size: 100% 2px; background-image: linear-gradient(90deg, #C27BFF, #FE5BD9); }
.post-body ul, .post-body ol { padding-left: 0; list-style: none; }
.post-body li { position: relative; padding-left: 30px; }
.post-body li + li { margin-top: .5em; }
.post-body li > ul, .post-body li > ol { margin-top: .5em; }
.post-body ul > li::before { content: ""; position: absolute; left: 8px; top: .66em; width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, #8A18F8, #FE25CC); box-shadow: 0 0 8px rgba(254, 37, 204, .55); }
.post-body ol { counter-reset: step; }
.post-body ol > li { counter-increment: step; padding-left: 40px; }
.post-body ol > li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font: 800 13px/1 var(--display); color: #fff; background: linear-gradient(135deg, rgba(91, 20, 248, .9), rgba(194, 28, 244, .8)); box-shadow: 0 6px 14px -6px rgba(254, 37, 204, .8); }
.post-body code { font: 500 .86em var(--mono); color: #F0E9FF; background: rgba(255, 255, 255, .07); border: 1px solid rgba(196, 178, 255, .16); padding: 1px 6px; border-radius: 6px; }
.post-body hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, rgba(196, 178, 255, .35), transparent); }
.post-body blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 20px 24px 20px 56px; border-radius: 16px; background: linear-gradient(160deg, rgba(91, 20, 248, .14), rgba(255, 255, 255, .02)); border: 1px solid var(--s-line); font-size: 18px; line-height: 1.65; color: #EEE9FF; font-style: italic; }
.post-body blockquote::before { content: "\201C"; position: absolute; left: 18px; top: 6px; font: 800 52px/1 var(--display); background: var(--b-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.post-body blockquote p + p { margin-top: .6em; }
.post-body blockquote cite, .post-body blockquote footer { display: block; margin-top: 10px; font-size: 13.5px; font-style: normal; color: var(--s-text-3); }

/* tables */
.post-body .table-wrap { overflow-x: auto; max-height: 70vh; border-radius: 16px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .02); -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; font-size: 14.5px; line-height: 1.5; }
.post-body th, .post-body td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--s-line); }
.post-body thead th { position: sticky; top: 0; z-index: 1; font: 700 13px var(--display); color: #fff; background: #17113A; white-space: nowrap; }
.post-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.post-body tbody tr:hover td { background: rgba(138, 24, 248, .08); }
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body td strong { color: #fff; }

/* callouts */
.post-body .callout { --c: #B9A6FF; --c-bg: rgba(138, 24, 248, .1); position: relative; display: block; padding: 16px 20px 16px 52px; border-radius: 14px; background: var(--c-bg); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-left: 3px solid var(--c); font-size: 15.5px; line-height: 1.65; color: var(--s-text); }
.post-body .callout::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; background-color: var(--c); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.post-body .callout strong { color: var(--c); }
.post-body .callout.tip { --c: #6EE7B7; --c-bg: rgba(16, 185, 129, .09); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3C/svg%3E"); }
.post-body .callout.note { --c: #A5B4FC; --c-bg: rgba(99, 102, 241, .1); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.post-body .callout.warning { --c: #FCD34D; --c-bg: rgba(245, 158, 11, .09); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.post-body .callout:not(.tip):not(.note):not(.warning) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }

/* figures */
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figure img { display: block; max-width: 100%; height: auto; }
.post-body .post-figure img { width: 100%; border-radius: 16px; border: 1px solid var(--s-line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); background: #120B33; }
.post-body .post-infographic { padding: clamp(12px, 2.5vw, 22px); border-radius: 18px; background: #F7F6FD; border: 1px solid rgba(196, 178, 255, .4); box-shadow: 0 30px 70px -40px rgba(138, 24, 248, .8); }
.post-body .post-infographic img { width: 100%; border-radius: 10px; }
.post-body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--s-text-3); text-align: center; }
.post-body .post-infographic figcaption { color: #625E7A; }
.post-body .post-infographic figcaption a { color: #4310C9; background: none; }
.post-body figcaption a { color: var(--s-text-2) !important; }

/* in-article CTA cards */
.blog-cta { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 24px; border-radius: 20px; margin: 2.2em 0 !important; overflow: hidden;
  background: radial-gradient(420px 200px at 0 0, rgba(91, 20, 248, .35), transparent 70%), radial-gradient(380px 200px at 100% 100%, rgba(254, 37, 204, .18), transparent 70%), rgba(18, 12, 48, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 70px -40px rgba(138, 24, 248, .95); }
.blog-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--angle), rgba(42, 27, 250, .35), #2A1BFA 70deg, #8A18F8 130deg, #FE25CC 190deg, rgba(254, 37, 204, .3) 250deg, rgba(42, 27, 250, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 7s linear infinite; }
.blog-cta .bc-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--b-grad); background-size: 200% 100%; animation: flow 5s linear infinite; box-shadow: 0 10px 24px -8px rgba(254, 37, 204, .85); }
.blog-cta .bc-icon svg { width: 22px; height: 22px; color: #fff; }
.blog-cta.cta-pricing .bc-icon { background: linear-gradient(135deg, #2A1BFA, #8A18F8); }
.blog-cta.cta-demo .bc-icon { background: linear-gradient(135deg, #8A18F8, #FE25CC); }
.blog-cta .bc-kicker { display: block; font: 700 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #F0ABFC; }
.post-body .blog-cta p { margin: 0; }
.blog-cta .bc-title { margin-top: 6px !important; font: 800 clamp(19px, 2vw, 22px)/1.25 var(--display); letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.blog-cta .bc-text { margin-top: 6px !important; font-size: 15px; line-height: 1.6; color: var(--s-text-2); }
.blog-cta .bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.blog-cta .bc-link { font: 600 14px var(--font); color: var(--s-accent) !important; text-decoration: none; }
.blog-cta .bc-link:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.post-faq, .post-sources { margin-top: clamp(44px, 6vw, 64px); scroll-margin-top: 96px; }
.post-faq h2, .post-sources h2 { position: relative; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; font-weight: 800; padding-bottom: 14px; margin-bottom: 20px; }
.post-faq h2::after, .post-sources h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: var(--b-grad); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 16px; border: 1px solid var(--s-line); background: var(--s-card); transition: border-color .3s, background .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--s-line-2); background: var(--s-card-2); box-shadow: 0 20px 50px -34px rgba(138, 24, 248, .9); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font: 650 16px/1.4 var(--display); color: #fff; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid #C4B2FF; outline-offset: 2px; }
.faq-item summary span { flex: 1; }
.faq-ic { flex: none; width: 28px !important; height: 28px !important; padding: 6px; border-radius: 9px; color: var(--s-accent); background: rgba(138, 24, 248, .16); transition: transform .35s var(--ease), background .3s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: rgba(254, 37, 204, .2); color: #F9A8EE; }
.faq-a { padding: 0 20px 18px; }
.faq-item[open] .faq-a { animation: faq-in .4s var(--ease) both; }
.faq-a p { color: var(--s-text-2); font-size: 15.5px; line-height: 1.7; }
.faq-a a { color: #D5C6FF; }
.faq-a strong { color: #fff; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* sources */
.post-sources ol { list-style: none; margin: 0; padding: 0; counter-reset: src; display: grid; gap: 8px; }
.post-sources li { counter-increment: src; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px 12px 50px; border-radius: 12px; border: 1px solid rgba(196, 178, 255, .08); background: rgba(255, 255, 255, .02); font-size: 14.5px; line-height: 1.5; }
.post-sources li::before { content: counter(src); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--display); color: #D8CCFF; background: rgba(138, 24, 248, .18); }
.post-sources a { color: #E6E1FF; text-decoration: none; overflow-wrap: anywhere; }
.post-sources a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.post-sources a svg { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; color: var(--s-accent); }
.post-sources .host { font-size: 12.5px; color: var(--s-text-3); }

/* share */
.share-title { font: 700 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-3); margin-bottom: 10px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .04); color: var(--s-text); font: 600 13px var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.share-btn.icon-only { width: 38px; padding: 0; }
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { background: rgba(138, 24, 248, .18); border-color: var(--s-line-2); color: #fff; transform: translateY(-2px); }
.share-btn.copied { border-color: rgba(110, 231, 183, .5); color: #6EE7B7; background: rgba(16, 185, 129, .12); }
.share-inline { margin-top: clamp(36px, 5vw, 52px); padding-top: 24px; border-top: 1px solid var(--s-line); }

/* author box */
.author-box { position: relative; display: flex; gap: 24px; align-items: flex-start; margin-top: 32px; padding: 26px 28px; border-radius: 22px; border: 1px solid transparent; overflow: hidden;
  background: linear-gradient(160deg, #150E3A, #0C0926) padding-box, linear-gradient(135deg, rgba(42, 27, 250, .7), rgba(138, 24, 248, .35), rgba(254, 37, 204, .6)) border-box; box-shadow: 0 30px 70px -40px rgba(138, 24, 248, .9); }
.author-box::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 37, 204, .22), transparent); pointer-events: none; }
.ab-photo { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; padding: 3px; background: var(--b-grad); box-shadow: 0 0 0 6px rgba(138, 24, 248, .12), 0 18px 40px -14px rgba(254, 37, 204, .7); }
.ab-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #0C0926; }
.ab-copy { position: relative; min-width: 0; }
.ab-k { font: 700 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-3); }
.ab-name { margin-top: 4px; font: 800 22px/1.2 var(--display); color: #fff; letter-spacing: -.02em; }
.ab-name a { color: #fff; text-decoration: none; }
.ab-name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(254, 37, 204, .6); }
.ab-role { margin-top: 4px; font: 600 14px var(--font); color: var(--s-accent); }
.ab-bio { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--s-text-2); max-width: 62ch; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.ab-social { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--s-line-2); background: rgba(255, 255, 255, .05); color: #EEECF8 !important; font: 600 13.5px var(--font); text-decoration: none; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.ab-social:hover { transform: translateY(-2px); background: rgba(138, 24, 248, .2); border-color: rgba(196, 178, 255, .45); box-shadow: 0 10px 24px -12px rgba(138, 24, 248, .9); }
.ab-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font: 600 14px var(--font); color: var(--s-accent) !important; text-decoration: none; }

/* byline (article header) */
.byline { display: inline-flex; align-items: center; gap: 12px; padding: 5px 14px 5px 5px; border-radius: 99px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .04); text-decoration: none; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.byline:hover { background: rgba(138, 24, 248, .14); border-color: var(--s-line-2); transform: translateY(-1px); }
.by-photo { width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: var(--b-grad); flex: none; }
.by-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0C0926; }
.by-text { display: flex; flex-direction: column; line-height: 1.25; }
.by-name { color: #fff; font: 700 14.5px var(--font); }
.by-role { color: var(--s-text-3); font-size: 12.5px; }

/* author page */
.author-hero .author-box { margin-top: 28px; padding: clamp(24px, 4vw, 40px); }
.author-hero .ab-name { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.author-hero .ab-photo { width: 148px; height: 148px; }
.ab-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.ab-link:hover svg { transform: translateX(3px); }

/* sidebar */
.side-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; padding: 2px 4px 8px 2px; }
.toc-card { padding: 18px 16px 14px; border-radius: 18px; border: 1px solid var(--s-line); background: rgba(14, 10, 38, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toc-title { display: flex; align-items: center; gap: 8px; font: 700 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--s-text-3); margin: 0 0 10px 4px; }
.toc-title svg { width: 15px; height: 15px; color: #B9A6FF; }
.toc-card ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 1px solid var(--s-line); display: flex; flex-direction: column; gap: 1px; }
.toc-card a { position: relative; display: flex; gap: 10px; padding: 7px 10px 7px 14px; margin-left: -1px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; color: var(--s-text-2); font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color .25s, background .25s, padding .3s var(--ease); }
.toc-card a .n { flex: none; font: 600 11.5px/1.7 var(--display); color: var(--s-text-3); font-variant-numeric: tabular-nums; transition: color .25s; }
.toc-card a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.toc-card a.active { color: #fff; background: linear-gradient(90deg, rgba(138, 24, 248, .22), rgba(138, 24, 248, 0)); padding-left: 18px; }
.toc-card a.active .n { color: #F0ABFC; }
.toc-card a::before { content: ""; position: absolute; left: -2px; top: 50%; bottom: 50%; width: 2px; border-radius: 2px; background: var(--b-grad); box-shadow: 0 0 10px rgba(254, 37, 204, .8); transition: top .35s var(--ease), bottom .35s var(--ease); }
.toc-card a.active::before { top: 4px; bottom: 4px; background: linear-gradient(180deg, #2A1BFA, #8A18F8, #FE25CC); }
.share-side { padding: 16px; border-radius: 18px; border: 1px solid var(--s-line); background: rgba(14, 10, 38, .6); }
.side-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid rgba(196, 178, 255, .26);
  background: radial-gradient(260px 140px at 0 0, rgba(91, 20, 248, .45), transparent 70%), radial-gradient(220px 140px at 100% 100%, rgba(254, 37, 204, .25), transparent 70%), #110B30; }
.side-cta .sc-k { display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #F0ABFC; }
.side-cta .sc-k svg { width: 15px; height: 15px; }
.side-cta .sc-title { font: 800 16px/1.35 var(--display); color: #fff; letter-spacing: -.015em; }
.side-cta .btn { width: 100%; }
.side-cta .sc-fine { font-size: 12px; color: var(--s-text-3); text-align: center; }

.related-sec { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-cta { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 26px 28px; }
  .blog-cta .bc-actions { grid-column: 2; }
}
@media (min-width: 900px) {
  .featured { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  /* Covers carry their title and logo, so show the whole 16:9 image, centred on the cover's own ink. */
  .featured-media { aspect-ratio: auto; display: flex; align-items: center; background: #07051A; }
  .featured-media > img { height: auto; aspect-ratio: 16 / 9; }
  .featured-media::after { background: linear-gradient(90deg, transparent 80%, rgba(14, 10, 38, .5)); }
  .featured-body { justify-content: center; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .topics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .post-body { font-size: 18px; }
}
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5vw, 72px); }
  .post-main { margin: 0; max-width: var(--b-measure); justify-self: center; }
  .post-side { display: block; align-self: stretch; }
  .toc-mobile, .share-inline { display: none; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; }
}
@media (max-width: 899px) {
  .topics .topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cat-row { top: 68px; }
  .blog-crumbs [aria-current] { max-width: 52vw; }
  .featured { border-radius: 20px; }
  .pg-nums { display: none; }
  .pager { gap: 10px; }
  .qa-box, .takeaways { padding: 18px; }
  .qa-text { font-size: 16.5px; }
  .post-body blockquote { padding: 18px 18px 18px 48px; font-size: 16.5px; }
  .post-body .callout { padding: 14px 16px 14px 46px; }
  .post-body .callout::before { left: 15px; top: 16px; }
  .author-box { flex-direction: column; gap: 14px; padding: 20px; }
  .hero-frame, .hero-frame img { border-radius: 16px; }
  .hero-frame img { border-radius: 14.5px; }
  .post-meta-row { gap: 10px 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .featured::before, .blog-band::before, .blog-cta::before, .chip-latest, .qa-spark, .blog-cta .bc-icon { animation: none; }
  .featured, .post-card, .topic, .cat-pill, .pg-btn, .pg-num, .share-btn, .featured-media > img, .pc-media > img, .pc-rule::after, .toc-card a, .toc-card a::before, .faq-ic, .featured-title a { transition: none; }
  .featured:hover, .post-card:hover, a.topic:hover, .cat-pill:hover, .share-btn:hover, a.pg-btn:hover, a.pg-num:hover { transform: none; }
  .featured:hover .featured-media > img, .post-card:hover .pc-media > img { transform: none; }
  .faq-item[open] .faq-a, .search-results .post-card { animation: none; }
  .read-progress span { transition: none; }
}
