/* Kaamcube — blog listing + article pages (loaded after css/kc-site.css; generated by _build/posts.py) */

.b-page { --c: var(--blue); }
.pr-sw  { --pc: var(--blue);  --pc-txt: #2A44C9; --pc-tint: #E8ECFF; --pc-soft: #9DAEFF; }
.pr-web { --pc: var(--red);   --pc-txt: #B3161D; --pc-tint: #FDE7E8; --pc-soft: #FF8A8E; }
.pr-mkt { --pc: var(--amber); --pc-txt: #8A5A00; --pc-tint: #FFF2D6; --pc-soft: #FFCB5C; }
.pr-it  { --pc: var(--teal);  --pc-txt: #0B7369; --pc-tint: #DDF5F2; --pc-soft: #3FD1C1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- shared bits ---------- */
.b-tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
	padding: 7px 10px; border-radius: 6px; background: var(--pc-tint, #E8ECFF); color: var(--pc-txt, #2A44C9); text-decoration: none; }
.b-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--blue)); }
.b-tag.is-plain { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.b-tag.is-plain::before { display: none; }
a.b-tag.is-plain:hover { border-color: var(--ink); }
.b-card-meta, .b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .88rem; }
.b-card-meta span, .b-meta span { display: inline-flex; align-items: center; gap: 6px; }
.b-card-meta svg, .b-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }

/* ---------- hero (listing + article) ---------- */
.b-hero { position: relative; overflow: hidden; color: var(--text-inv); padding: clamp(26px, 4vw, 40px) 0 clamp(120px, 14vw, 170px);
	background: radial-gradient(760px 440px at 92% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%), radial-gradient(600px 380px at 0% 100%, rgba(229, 38, 46, .18), transparent 60%), var(--ink); }
.b-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 75% 30%, #000 20%, transparent 75%); }
.b-hero .wrap { position: relative; }
.b-hero h1 { color: #fff; }
.b-hero .eyebrow { color: #FF8A8E; }
.b-hero .lede { margin-top: 22px; font-size: 1.14rem; max-width: 34em; }
.b-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(36px, 5vw, 56px); }
.b-hero-grid h1 { margin-top: 18px; max-width: 16ch; }

.b-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 32px; max-width: 560px; padding: 6px 6px 6px 50px;
	background: #fff; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.b-search > svg { position: absolute; left: 20px; width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.b-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1rem/1.2 var(--body); color: var(--ink); padding: 12px 0; }
.b-search input::placeholder { color: #8A90AA; }
.b-search:focus-within { box-shadow: 0 0 0 3px var(--blue), 0 18px 40px -18px rgba(0,0,0,.6); }
.b-search .btn { padding: 13px 22px; }

.b-hero-stats { margin: 0; display: grid; gap: 0; background: rgba(255,255,255,.05); border: 1px solid var(--line-inv); border-radius: var(--r-lg); padding: 8px clamp(20px, 3vw, 28px); }
.b-hero-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-inv); }
.b-hero-stats div:last-child { border-bottom: 0; }
.b-hero-stats dt { font-size: .92rem; }
.b-hero-stats dd { margin: 0; font: 800 1.7rem/1 var(--display); color: #fff; letter-spacing: -.03em; }

/* ---------- featured article ---------- */
.b-feature-wrap { position: relative; z-index: 2; margin-top: clamp(-120px, -11vw, -84px); }
.b-feature { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
	box-shadow: 0 30px 60px -36px rgba(10, 15, 44, .45); transition: transform .25s, box-shadow .25s; }
.b-feature:hover { transform: translateY(-4px); box-shadow: 0 38px 70px -36px rgba(10, 15, 44, .55); }
.b-feature-img { position: relative; display: flex; align-items: center; background: #EEF2FA; overflow: hidden; }
.b-feature-img img { width: 100%; height: auto; transition: transform .6s; }
.b-feature:hover .b-feature-img img { transform: scale(1.04); }
.b-feature-body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.b-flag { font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.b-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,38,46,.18); }
.b-feature h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.15; }
.b-feature p { font-size: 1.04rem; }
.b-read { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.b-read svg { width: 16px; height: 16px; color: var(--red); transition: transform .2s; }
.b-feature:hover .b-read svg { transform: translateX(4px); }

/* ---------- listing: filter bar + grid ---------- */
.b-listing { padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); scroll-margin-top: 90px; }
.b-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.b-bar h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.b-count { margin-top: 6px; font-size: .95rem; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
	font: 700 .9rem/1 var(--body); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.b-chip i { font-style: normal; font-size: .76rem; min-width: 22px; padding: 4px 6px; border-radius: 999px; background: var(--paper); color: var(--text); text-align: center; }
.b-chip:hover { border-color: var(--pc, var(--ink)); }
.b-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.b-chip[aria-pressed="true"] i { background: var(--pc, var(--red)); color: #fff; }

.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none;
	transition: transform .25s, border-color .25s, box-shadow .25s; }
.b-card:hover { transform: translateY(-4px); border-color: var(--pc, var(--blue)); box-shadow: 0 24px 44px -30px rgba(10, 15, 44, .45); }
.b-card .b-tag { position: relative; }
.b-card-img { aspect-ratio: 3 / 2; background: #EEF2FA; overflow: hidden; border-bottom: 1px solid var(--line); }
.b-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.b-card:hover .b-card-img img { transform: scale(1.05); }
.b-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; }
.b-card h3 { font-size: 1.15rem; line-height: 1.3; transition: color .2s; }
.b-card:hover h3 { color: var(--red); }
.b-card p { font-size: .95rem; line-height: 1.6; flex: 1; }
.b-card .b-card-meta { padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; }
/* category colour on the card comes from its data-cat */
.b-card[data-cat="software"], .b-card[data-cat="mobile"], .b-card[data-cat="api"] { --pc: var(--blue); }
.b-card[data-cat="web"] { --pc: var(--red); }
.b-card[data-cat="marketing"] { --pc: var(--amber); }
.b-card[data-cat="it"] { --pc: var(--teal); }

.b-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); }
.b-empty h3 { font-size: 1.3rem; }
.b-empty p { margin: 8px 0 20px; }

/* ---------- topics ---------- */
.b-topics-sec { padding: clamp(64px, 8vw, 104px) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(64px, 8vw, 104px); }
.b-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b-topic { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s, background-color .2s; }
.b-topic:hover { border-color: var(--pc); background: #fff; transform: translateY(-3px); }
.b-topic .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--pc-tint); margin-bottom: 6px; }
.b-topic .ico svg { width: 24px; height: 24px; stroke: var(--pc-txt); }
.b-topic h3 { font-size: 1.15rem; }
.b-topic p { font-size: .95rem; }
.b-topic .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.b-topic .go::after { content: " \2192"; color: var(--pc); }

/* ---------- article: hero + cover ---------- */
.b-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.b-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); }
.b-hero.is-post { padding-bottom: clamp(150px, 20vw, 260px); }
.b-hero-post { max-width: 860px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.b-hero-post .b-tag { align-self: center; background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line-inv); }
.b-hero-post h1 { margin-top: 20px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; }
.b-dek { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 40em; }
.b-byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; text-align: left; }
.b-byline b { color: #fff; display: block; margin-bottom: 4px; }
.b-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem/1 var(--display); color: #fff;
	background: linear-gradient(135deg, var(--red), #FF7A3D); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.b-avatar.is-lg { width: 64px; height: 64px; font-size: 1.2rem; box-shadow: none; }
.b-cover { position: relative; z-index: 2; max-width: 1040px; margin: clamp(-230px, -18vw, -120px) auto 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2);
	box-shadow: 0 40px 70px -40px rgba(10, 15, 44, .6); }
.b-cover img { width: 100%; height: auto; }

/* ---------- article: layout ---------- */
.b-post { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.b-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1140px; }
.b-article { min-width: 0; max-width: 740px; font-size: 1.1rem; line-height: 1.8; color: #39405E; }
.b-article > * + * { margin-top: 24px; }
.b-article .b-lead { font-size: 1.24rem; line-height: 1.7; color: var(--ink); font-weight: 500; }
.b-article .b-lead::first-letter { float: left; font: 800 3.6em/.82 var(--display); color: var(--red); margin: .08em .12em 0 0; }
.b-article h2 { position: relative; margin-top: 56px; font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.2; scroll-margin-top: 100px; }
.b-article h2 + * { margin-top: 18px; }
.b-anchor { position: absolute; left: -1.1em; top: 0; color: var(--line); text-decoration: none; opacity: 0; transition: opacity .2s, color .2s; }
.b-article h2:hover .b-anchor, .b-anchor:focus { opacity: 1; color: var(--red); }
.b-article h3 { font-size: 1.15rem; }
.b-article p a, .b-article li a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.b-article b { color: var(--ink); }

.b-list { display: grid; gap: 12px; }
.b-list li { position: relative; padding-left: 28px; }
.b-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }

.b-check { display: grid; gap: 12px; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.b-check li { display: flex; gap: 14px; align-items: flex-start; }
.b-check li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.b-tick { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: #DDF5F2; }
.b-tick svg { width: 15px; height: 15px; fill: none; stroke: #0B7369; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* key takeaways */
.b-takeaways { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-md); background: var(--ink); color: var(--text-inv); overflow: hidden; }
.b-takeaways::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(229,38,46,.35), transparent 70%); }
.b-takeaways h2 { position: relative; margin: 0 0 16px; font: 700 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #FF8A8E; }
.b-takeaways ul { position: relative; display: grid; gap: 14px; }
.b-takeaways li { display: flex; gap: 14px; font-size: 1.02rem; line-height: 1.6; color: #E6E9F7; }
.b-takeaways .b-tick { background: rgba(255,255,255,.1); }
.b-takeaways .b-tick svg { stroke: #3FD1C1; }

/* steps */
.b-steps { counter-reset: s; display: grid; gap: 0; }
.b-steps li { counter-increment: s; position: relative; display: flex; gap: 20px; padding-bottom: 22px; }
.b-steps li::before { content: counter(s); flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem/1 var(--display);
	background: #fff; color: var(--red); border: 2px solid var(--red); position: relative; z-index: 1; }
.b-steps li::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: var(--line); }
.b-steps li:last-child { padding-bottom: 0; }
.b-steps li:last-child::after { display: none; }
.b-steps h3 { font-size: 1.08rem; margin-top: 9px; }
.b-steps p { margin-top: 4px; font-size: 1rem; line-height: 1.65; }

/* pull quote */
.b-quote { margin: 44px 0 !important; padding: 8px 0 8px clamp(22px, 3vw, 36px); border-left: 4px solid var(--red); position: relative; }
.b-quote svg { width: 34px; height: 34px; fill: var(--red); opacity: .9; margin-bottom: 10px; }
.b-quote blockquote { margin: 0; }
.b-quote p { font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 var(--display); color: var(--ink); letter-spacing: -.02em; }

/* callouts */
.b-callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid; font-size: 1rem; line-height: 1.65; }
.b-callout strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.02rem; margin-bottom: 4px; }
.b-callout-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.b-callout-ico svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-callout.is-tip  { background: #F0FBF9; border-color: #BFE9E3; }
.b-callout.is-tip  .b-callout-ico { background: #DDF5F2; } .b-callout.is-tip  svg { stroke: #0B7369; }
.b-callout.is-note { background: #F3F5FF; border-color: #D3DBFF; }
.b-callout.is-note .b-callout-ico { background: #E8ECFF; } .b-callout.is-note svg { stroke: #2A44C9; }
.b-callout.is-warn { background: #FFF8EA; border-color: #FFE2A6; }
.b-callout.is-warn .b-callout-ico { background: #FFF2D6; } .b-callout.is-warn svg { stroke: #8A5A00; }

/* tables */
.b-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.b-table:focus-visible { outline-offset: 2px; }
.b-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .96rem; line-height: 1.5; }
.b-table th, .b-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.b-table thead th { background: var(--ink); color: #fff; font: 700 .82rem/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.b-table tbody th { color: var(--ink); font-weight: 700; background: var(--paper); white-space: nowrap; }
.b-table tbody tr:last-child th, .b-table tbody tr:last-child td { border-bottom: 0; }
.b-table tbody tr:hover td { background: #FAFBFE; }

/* stats */
.b-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.b-stats div { padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c); }
.b-stats b { display: block; font: 800 clamp(1.5rem, 2.6vw, 1.9rem)/1.05 var(--display); color: var(--ink); letter-spacing: -.03em; }
.b-stats span { display: block; margin-top: 8px; font-size: .9rem; line-height: 1.45; color: var(--text); }

/* FAQ (reuses .faqs from kc-site.css) */
.b-faq { margin-top: 56px !important; }
.b-faq h2 { margin: 0 0 18px; }
.b-faq .faqs details p { font-size: 1rem; }

/* article footer */
.b-article-foot { margin-top: 48px !important; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.b-tags, .b-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.b-tags > span:first-child, .b-share-row > span { margin-right: 4px; }
.b-share { display: flex; gap: 8px; }
.b-share a, .b-share button { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s; }
.b-share a:hover, .b-share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-share svg.fill { fill: currentColor; stroke: none; }
.b-share button svg + svg { display: none; }
.b-share button.is-done { background: #12B3A2; border-color: #12B3A2; color: #fff; }
.b-share button.is-done svg { display: none; }
.b-share button.is-done svg + svg { display: block; }

.b-author { margin-top: 32px !important; display: flex; gap: 20px; align-items: flex-start; padding: clamp(22px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.b-author h2 { font-size: 1.15rem; margin: 0; }
.b-author p { margin-top: 6px; font-size: .98rem; line-height: 1.65; }
.b-author a { display: inline-block; margin-top: 10px; font-size: .95rem; font-weight: 700; color: var(--red); text-decoration: none; }

.b-prevnext { margin-top: 32px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b-pn { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.b-pn:hover { border-color: var(--ink); transform: translateY(-2px); }
.b-pn span { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.b-pn b { font: 700 1rem/1.35 var(--display); color: var(--ink); }
.b-pn.is-next { text-align: right; grid-column: 2; }

/* sidebar */
.b-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.b-side-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.b-side-h { font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.b-toc ol { display: grid; gap: 2px; counter-reset: t; }
.b-toc li { counter-increment: t; }
.b-toc a { display: flex; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; font-size: .93rem; line-height: 1.4; font-weight: 600; color: var(--text); text-decoration: none; border-left: 2px solid transparent; transition: color .2s, background-color .2s; }
.b-toc a::before { content: counter(t, decimal-leading-zero); font-size: .78rem; font-weight: 800; color: #A3A9C2; padding-top: 2px; }
.b-toc a:hover { color: var(--ink); background: var(--paper); }
.b-toc a.is-active { color: var(--ink); background: var(--paper); border-left-color: var(--red); border-radius: 0 8px 8px 0; }
.b-toc a.is-active::before { color: var(--red); }

.b-svc { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-md); background: var(--ink); color: var(--text-inv); }
.b-svc::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%); }
.b-svc > * { position: relative; z-index: 1; }
.b-svc-k { font: 700 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--pc-soft); }
.b-svc h2 { margin-top: 12px; font-size: 1.25rem; color: #fff; }
.b-svc p { margin-top: 8px; font-size: .95rem; line-height: 1.6; }
.b-svc-price { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-inv); color: #fff; font-weight: 800; font-size: .9rem; }
.b-svc .btn { margin-top: 18px; width: 100%; padding: 14px 20px; }
.b-side-card.is-share .b-share { gap: 10px; }

.b-toc-mobile { display: none; }

/* related */
.b-related { padding: 0 0 clamp(64px, 8vw, 104px); }
.b-related .sec-head h2 { max-width: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.b-grid { grid-template-columns: 1fr 1fr; }
	.b-topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
	.b-hero-grid { grid-template-columns: 1fr; align-items: start; }
	.b-hero-stats { grid-template-columns: repeat(3, 1fr); padding: 0; }
	.b-hero-stats div { flex-direction: column-reverse; align-items: flex-start; gap: 6px; padding: 18px 20px; border-bottom: 0; border-right: 1px solid var(--line-inv); }
	.b-hero-stats div:last-child { border-right: 0; }
	.b-feature { grid-template-columns: 1fr; }
	.b-post-grid { grid-template-columns: minmax(0, 1fr); }
	.b-article { max-width: 760px; width: 100%; margin: 0 auto; }
	.b-side { position: static; max-width: 760px; width: 100%; margin: 0 auto; grid-template-columns: 1fr 1fr; }
	.b-side .b-side-card:first-child { display: none; }
	.b-side .b-side-card.is-share { display: none; }
	.b-toc-mobile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
	.b-toc-mobile summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
	.b-toc-mobile summary::-webkit-details-marker { display: none; }
	.b-toc-mobile summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
	.b-toc-mobile[open] summary::after { content: "\2212"; }
	.b-toc-mobile .b-toc { padding: 0 20px 16px; }
}
@media (max-width: 760px) {
	.b-side { grid-template-columns: 1fr; }
	.b-article { font-size: 1.04rem; }
	.b-article .b-lead { font-size: 1.12rem; }
	.b-stats { grid-template-columns: 1fr; }
	.b-stats div { display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; border-top-width: 1px; border-left: 3px solid var(--c); }
	.b-stats span { margin-top: 0; }
	.b-cover { border-radius: var(--r-md); }
	.b-anchor { display: none; }
	.b-bar { align-items: flex-start; }
	.b-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); }
	.b-chips::-webkit-scrollbar { display: none; }
	.b-chip { flex: none; }
}
@media (max-width: 620px) {
	.b-grid, .b-topics { grid-template-columns: 1fr; }
	.b-prevnext { grid-template-columns: 1fr; }
	.b-pn.is-next { grid-column: auto; }
	.b-hero-stats dd { font-size: 1.35rem; }
	.b-hero-stats div { padding: 14px; }
	.b-search { padding-left: 44px; }
	.b-search > svg { left: 16px; }
	.b-search .btn { padding: 12px 16px; }
	.b-article-foot { flex-direction: column; align-items: flex-start; }
	.b-author { flex-direction: column; }
}
@media (max-width: 420px) {
	.b-search .btn { display: none; }
	.b-search { padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.b-card, .b-feature, .b-topic, .b-pn, .b-card-img img, .b-feature-img img { transition: none !important; }
}
