/* Blog pages (generated by scripts/blog/build.mjs): home, categories, authors and the three post
   templates. Builds on styles.css tokens and growth.css breadcrumbs. */

/* Covers: a drawn panel per template, so posts look designed without stock images. */
.cover { position: relative; overflow: hidden; height: 168px; border-radius: 12px; background: var(--mesh);
  box-shadow: 0 0 0 1px var(--line) inset; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(150 170 220 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(150 170 220 / .07) 1px, transparent 1px);
  background-size: 22px 22px; }
.cover.sm { height: 100%; min-height: 132px; }
.cover.lg { height: 100%; min-height: 320px; border-radius: 16px; }
.cover-kind { position: absolute; left: 12px; top: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); background: rgb(7 10 18 / .6); padding: 6px 8px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line2) inset; }
.glyph { width: 58%; max-width: 260px; display: grid; gap: 8px; }
.glyph i { display: block; border-radius: 6px; }
.g-guide i { height: 22px; background: rgb(7 10 18 / .55); box-shadow: 0 0 0 1px var(--line2) inset; display: flex; align-items: center; padding-left: 6px; }
.g-guide i:nth-child(2) { width: 82%; } .g-guide i:nth-child(3) { width: 64%; }
.g-guide b { width: 13px; height: 13px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font: 600 8.5px/13px var(--mono); text-align: center; }
.g-compare { grid-template-columns: 1.4fr 1fr 1fr; gap: 5px; }
.g-compare i { height: 16px; background: rgb(7 10 18 / .55); box-shadow: 0 0 0 1px var(--line2) inset; }
.g-compare i:nth-child(3n+1) { background: rgb(150 170 220 / .14); }
.g-compare i:nth-child(n+7) { box-shadow: 0 0 0 1px rgb(255 106 31 / .7) inset; background: rgb(255 106 31 / .14); }
.g-research i { height: 12px; width: var(--w); background: var(--data); opacity: .9; }
.g-research i:nth-child(n+2) { opacity: .55; } .g-research i:nth-child(n+3) { opacity: .35; }
.cover.lg .glyph { width: 52%; gap: 12px; }
.cover.lg .g-guide i { height: 34px; } .cover.lg .g-guide b { width: 18px; height: 18px; font-size: 11px; line-height: 18px; }
.cover.lg .g-compare i { height: 26px; } .cover.lg .g-research i { height: 18px; }

/* Cards and rows */
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; padding: 14px 14px 20px; border-radius: 18px;
  background: var(--raised); box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.post-card:hover, .post-row:hover, .b-feature:hover { box-shadow: 0 0 0 1px rgb(255 106 31 / .45) inset, 0 18px 40px -20px rgb(255 106 31 / .45); transform: translateY(-2px); }
.pc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; min-width: 0; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-body h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.pc-body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 12px var(--mono); color: var(--faint); margin-top: auto; }
.pc-meta > span + span::before { content: "·"; margin: 0 8px; }
.post-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 14px; border-radius: 18px; text-decoration: none;
  background: var(--raised); box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.post-row .pc-body { padding: 6px 4px; }
.post-row h3 { font-size: 21px; }

/* Blog home */
.b-home-head { padding-bottom: 40px; }
.b-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.b-topics a { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2);
  color: var(--ink2); font-size: 13.5px; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.b-topics a small { font: 500 11px var(--mono); color: var(--faint); }
.b-topics a:hover { border-color: var(--accent); color: var(--ink); }
.b-topics a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.b-topics a[aria-current="page"] small { color: var(--raised3); }
.b-topics .rss { margin-left: auto; color: var(--muted); border-style: dashed; }
.b-featured { margin-bottom: 8px; }
.b-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; padding: 16px; border-radius: 22px; text-decoration: none;
  background: var(--raised); box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.b-feature .pc-body { justify-content: center; gap: 14px; padding: 16px 20px 16px 0; }
.b-feature h3 { font-size: clamp(26px, 1rem + 1.6vw, 36px); line-height: 1.1; letter-spacing: -.045em; }
.b-feature p { font-size: 16px; color: var(--ink2); }
.b-feature-by { display: flex; align-items: center; gap: 12px; }
.b-feature-by .pc-meta { margin: 0; }
.b-feature .more-link, .b-link-card .more-link, .b-cat .more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-size: 14.5px; }
.b-cat { gap: 12px; }
.b-cat .tag { align-self: flex-start; }
.b-cat .more-link { margin-top: auto; padding-top: 6px; }
.b-empty { align-items: flex-start; }
.b-empty h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }

/* Category and author pages */
.b-cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.b-list { display: flex; flex-direction: column; gap: 16px; }
.b-cat-rail { position: sticky; top: 88px; }
.b-link-card { text-decoration: none; }
.b-link-card h3 { margin: 0; }
.b-profile { display: flex; align-items: center; gap: 20px; }
.b-profile h1 { margin: 6px 0 0; }
.b-profile .role, .b-author .role { margin: 4px 0 0; font: 400 13px var(--mono); color: var(--muted); }
.b-elsewhere { display: flex; gap: 16px; font-size: 14.5px; }
.b-elsewhere a { color: var(--accent-hi); }
.b-author-list { padding-bottom: 24px; }
.b-author-list > h2 { margin: 0 0 4px; }

/* Avatars: initials until a photo is added */
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 600 14px var(--mono); letter-spacing: .02em; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px var(--line2); }
.avatar.lg { width: 64px; height: 64px; font-size: 19px; }
.avatar.xl { width: 88px; height: 88px; font-size: 26px; }

/* Post header */
.b-head { max-width: 1200px; padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.b-head::after { content: ""; position: absolute; left: 30%; top: 0; width: min(900px, 90vw); height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(255 106 31 / .12), transparent); pointer-events: none; z-index: -1; }
.b-kind { display: flex; gap: 10px; align-items: center; }
.b-type { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.b-head h1 { margin: 0; max-width: 900px; font-size: clamp(34px, 1.4rem + 3vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -.05em; text-wrap: balance; }
.b-dek { margin: 0; max-width: 64ch; font-size: 19px; line-height: 1.55; color: var(--ink2); }
.byline { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.by-text { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; color: var(--ink2); }
.by-text a { color: var(--ink); font-weight: 600; text-decoration: none; }
.by-text a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.by-meta { display: flex; flex-wrap: wrap; font: 400 12.5px var(--mono); color: var(--muted); }
.by-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--faint); }

/* Post layout: article and a sticky rail */
.b-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 56px; align-items: start; }
.b-article { min-width: 0; }
.b-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.b-rail .kicker { margin-bottom: 10px; }
.b-toc { display: flex; flex-direction: column; border-left: 1px solid var(--line2); }
.b-toc a { padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.b-toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.b-share { display: flex; flex-wrap: wrap; gap: 8px; }
.b-share .kicker { width: 100%; margin-bottom: 2px; }
.b-share a { font-size: 13px; color: var(--ink2); text-decoration: none; padding: 6px 10px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line2) inset; }
.b-share a:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--accent) inset; }
.b-try { padding: 18px; border-radius: 14px; background: radial-gradient(120% 90% at 100% 0%, rgb(255 106 31 / .2), transparent 60%), var(--raised);
  box-shadow: 0 0 0 1px var(--line2) inset; display: flex; flex-direction: column; gap: 8px; }
.b-try b { font-size: 15px; letter-spacing: -.01em; }
.b-try p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.b-try .btn { justify-content: center; }
.b-toc-m { display: none; }

/* GEO: the short answer leads the article as a quotable block */
.b-answer { padding: 22px 24px; border-radius: 16px; background: linear-gradient(180deg, rgb(98 227 232 / .07), rgb(98 227 232 / .02)), var(--raised);
  box-shadow: 0 0 0 1px rgb(98 227 232 / .25) inset; }
.b-answer .kicker { color: var(--data); }
.b-answer h2 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.b-answer p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.b-disclosure { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.b-disclosure b { color: var(--ink2); }
.b-keys { margin-top: 28px; padding: 20px 24px; border-radius: 16px; background: var(--raised); box-shadow: var(--shadow-sm); }
.b-keys h2 { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.b-keys ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.b-keys li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
.b-keys li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* Article prose */
.b-sec { padding-top: 48px; scroll-margin-top: 84px; }
.b-sec > h2 { margin: 0 0 16px; font-size: clamp(25px, 1rem + 1.2vw, 31px); line-height: 1.15; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.b-sec h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.b-sec p, .b-sec li { font-size: 17px; line-height: 1.75; color: var(--ink2); }
.b-sec p { margin: 0 0 16px; }
.b-sec ul, .b-sec ol:not(.b-steps):not(.b-sources) { margin: 0 0 16px; padding-left: 22px; }
.b-sec li { margin: 6px 0; }
.b-sec li::marker { color: var(--accent); }
.b-sec strong, .b-sec em { color: var(--ink); }
.b-sec em { font-style: normal; font-weight: 500; }
.b-sec a { color: var(--accent-hi); text-underline-offset: 3px; }
.b-table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow-sm); margin: 4px 0 16px; }
.b-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--raised); }
.b-sec > .b-table { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.b-table th, .b-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.b-table thead th { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--raised2); white-space: nowrap; }
.b-table td { color: var(--ink2); }
.b-table tbody th, .b-table td:first-child { color: var(--ink); font-weight: 550; }
.b-table tr:last-child > * { border-bottom: 0; }
.b-compare { min-width: 640px; font-size: 14px; }
.b-compare th, .b-compare td { padding: 12px 12px; }
.b-compare tr.hl > * { background: rgb(255 106 31 / .07); }
.b-compare tr.hl th { box-shadow: 3px 0 0 var(--accent) inset; }
.b-fig { margin: 16px 0 4px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--raised); }
.b-fig img { width: 100%; height: auto; }
.b-fig figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* Guide: numbered steps */
.b-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.b-steps > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; margin: 0; }
.b-steps > li:first-child { border-top: 0; padding-top: 6px; }
.b-step-n { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font: 500 14px var(--mono); color: var(--accent-hi); background: rgb(255 106 31 / .1); box-shadow: 0 0 0 1px rgb(255 106 31 / .35) inset; }
.b-steps h3 { margin: 8px 0 6px; }
.b-steps p { margin: 0; }

/* Comparison: options, pros and cons, verdict */
.b-options { display: flex; flex-direction: column; gap: 16px; }
.b-option { padding: 22px 24px; border-radius: 16px; background: var(--raised); box-shadow: var(--shadow-sm); scroll-margin-top: 84px; }
.b-option header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.b-option-n { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; font: 500 13px var(--mono);
  background: var(--raised3); color: var(--ink2); }
.b-option h3 { margin: 2px 0 2px; font-size: 20px; }
.b-option .best { margin: 0; font: 400 12.5px var(--mono); color: var(--data); }
.b-option > p { margin: 0 0 14px; font-size: 16px; }
.b-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.b-pc h4 { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.b-pc ul { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 7px; }
.b-pc li { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14.5px; line-height: 1.5; }
.b-pc li svg { flex: none; margin-top: 3px; }
.pros svg { color: var(--good); } .cons svg { color: var(--faint); }
.b-verdict { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.b-verdict > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; background: var(--raised); border-top: 1px solid var(--line); }
.b-verdict > div:first-child { border-top: 0; }
.b-verdict span { font-size: 15.5px; color: var(--ink2); }
.b-verdict b { font: 500 13px var(--mono); color: var(--accent-hi); text-align: right; }
.b-prose-box { padding: 20px 22px; border-radius: 14px; background: var(--raised); box-shadow: var(--shadow-sm); }
.b-prose-box p:last-child { margin-bottom: 0; }

/* Research: numbers, themes and method */
.b-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.b-stats .stat { padding: 18px; }
.b-stats .stat b { font-size: 32px; color: var(--data); }
.b-stats .stat span { display: block; font-size: 13.5px; }
.b-sec .themes blockquote { font-size: 16px; }
.b-sec .theme cite a { color: var(--muted); text-decoration: none; }
.b-sec .theme cite a:hover { color: var(--accent-hi); text-decoration: underline; }
.b-method { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.b-method > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 18px; background: var(--raised); border-top: 1px solid var(--line); }
.b-method > div:first-child { border-top: 0; }
.b-method dt { font: 500 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.b-method dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.b-method a { color: var(--accent-hi); }

/* FAQ, sources and author box */
.b-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.b-faq details:first-child { border-top: 1px solid var(--line); }
.b-faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary svg { flex: none; color: var(--accent); transition: transform .3s var(--ease-out); }
.b-faq details[open] summary svg { transform: rotate(45deg); }
.b-faq details p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.b-sources { margin: 0; padding-left: 22px; }
.b-sources li { font-size: 15px; }
.b-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 24px; border-radius: 18px; background: var(--raised); box-shadow: var(--shadow-sm); }
.b-author h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; }
.b-author h2 a { color: var(--ink); text-decoration: none; }
.b-author h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.b-author p:not(.role) { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.b-related { margin-top: 72px; }
.b-draft { position: sticky; top: 64px; z-index: 20; padding: 8px 16px; text-align: center; font: 500 12px var(--mono); color: var(--accent-ink); background: var(--t-amber); }

@media (max-width: 1000px) {
  .b-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .b-rail { display: none; }
  .b-toc-m { display: block; margin-top: 16px; border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-sm); }
  .b-toc-m summary { padding: 14px 16px; cursor: pointer; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .b-toc-m nav { display: flex; flex-direction: column; padding: 0 16px 12px; }
  .b-toc-m a { padding: 7px 0; font-size: 14.5px; color: var(--ink2); text-decoration: none; border-top: 1px solid var(--line); }
  .b-cat-layout { grid-template-columns: minmax(0, 1fr); }
  .b-cat-rail { position: static; }
  .b-feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .b-feature .pc-body { padding: 4px 8px 10px; }
  .cover.lg { min-height: 220px; }
}
@media (max-width: 720px) {
  .b-head { padding-top: 40px; }
  .b-dek { font-size: 17px; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cover.sm { min-height: 120px; }
  .b-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-pc { grid-template-columns: minmax(0, 1fr); }
  .b-method > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .b-verdict > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .b-verdict b { text-align: left; }
  .b-steps > li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .b-step-n { width: 36px; height: 36px; font-size: 12.5px; }
  .b-sec p, .b-sec li { font-size: 16.5px; }
  .b-author { flex-direction: column; }
  .b-topics .rss { margin-left: 0; }
}
.crumbs [aria-current="page"] { color: var(--ink2); }
.b-also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; }
.b-also .kicker { width: 100%; margin-bottom: 4px; }
.b-also a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink); background: var(--raised); box-shadow: var(--shadow-sm); }
.b-also a svg { color: var(--accent-hi); }
.b-also a:hover { box-shadow: 0 0 0 1px rgb(255 106 31 / .45) inset; }
.b-related-posts .post-card:only-child { max-width: 400px; }
