/* The blog (/blog/ and /blog/<slug>/), on top of site.css: the landing's nav, type and buttons, a reading column of
   about 70 characters, a sticky table of contents on wide screens, soft cards for the extras. */
.blog main { padding-top: 120px; }
@media (max-width: 640px) { .blog main { padding-top: 104px; } }
.blog .nav-links a[aria-current="page"] { color: var(--ink); }
.blog .foot { margin-top: clamp(64px, 9vw, 120px); }

.b-kicker { margin: 0; font: 650 12px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.b-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font: 500 13px/1.4 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.b-meta span { white-space: nowrap; }
.b-meta span:not(:last-child)::after { content: "·"; margin-inline: 10px; color: #3e4a66; }

/* ---------------------------------------------------------------- the article */
.b-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.b-head { display: grid; gap: 16px; justify-items: start; max-width: 860px; }
.b-crumbs { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.b-crumbs a { color: var(--sky); }
.b-crumbs a:hover { color: #fff; }
.b-title { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.05em; }
.b-dek { margin: 0; max-width: 64ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.b-cover { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; }

.b-grid { display: grid; grid-template-columns: 236px minmax(0, 720px); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; }
.b-grid-solo { grid-template-columns: minmax(0, 720px); }
@media (max-width: 1080px) { .b-grid { grid-template-columns: minmax(0, 720px); } }
.b-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); min-width: 0; }
.b-col > * { min-width: 0; }

.b-side { position: sticky; top: 112px; min-width: 0; }
.b-toc { display: grid; gap: 12px; }
.b-toc-h { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink); }
.b-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.b-toc li { counter-increment: toc; }
.b-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; font-weight: 550; color: var(--ink-3); transition: color 0.2s, border-color 0.2s; }
.b-toc a:hover { color: var(--ink); border-left-color: var(--blue); }
@media (max-width: 1080px) {
  .b-side { position: static; }
  .b-toc { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
  .b-toc ol { border-left: 0; }
  .b-toc a { padding-left: 0; border-left: 0; }
}

/* the reading column */
.prose { font-size: 18px; line-height: 1.75; color: #c6d0e6; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(26px, 2.6vw, 33px); line-height: 1.15; letter-spacing: -0.04em; color: #fff; }
.prose h3 { margin-top: 1.8em; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.25; letter-spacing: -0.03em; color: #fff; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 19.5px; line-height: 1.65; color: var(--ink); }
.prose strong { color: #fff; font-weight: 650; }
.prose a { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(156, 207, 255, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--sky); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--blue); font-weight: 650; }
.prose ol li::marker { font: 600 0.88em var(--mono); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 19px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose code { font: 500 0.86em var(--mono); padding: 2px 6px; border-radius: 7px; background: var(--surface-2); color: #dbe6ff; }
.prose pre { padding: 18px 20px; border-radius: 18px; background: #070c18; border: 1px solid var(--line); overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.prose .tbl { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #0d1527, #0a1120); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13.5px; font-weight: 650; color: var(--ink); background: rgba(47, 140, 255, 0.07); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: #c6d0e6; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .prose { font-size: 17px; } .prose > p:first-child { font-size: 18px; } }

/* questions */
.b-faq { display: grid; gap: 10px; }
.b-faq h2 { margin-bottom: 8px; font-size: clamp(26px, 2.6vw, 33px); line-height: 1.15; letter-spacing: -0.04em; }
.b-faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.b-faq details[open] { border-color: var(--line-2); }
.b-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary svg { flex: none; color: var(--sky); transition: transform 0.3s var(--ease-out); }
.b-faq details[open] summary svg { transform: rotate(45deg); }
.b-faq details p { padding: 0 20px 20px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }

/* the next step: paste a link */
.b-ask { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(47, 140, 255, 0.12), transparent 70%), linear-gradient(180deg, #0f1729, #0b1222); border: 1px solid rgba(120, 175, 255, 0.22); box-shadow: var(--shadow); }
.b-ask h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; letter-spacing: -0.045em; }
.b-ask-sub { max-width: 56ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.b-ask .ask { width: 100%; margin-top: 6px; }
@media (max-width: 560px) {
  .b-ask .ask { flex-wrap: wrap; padding: 8px 8px 8px 18px; border-radius: 22px; }
  .b-ask .ask input { flex-basis: calc(100% - 40px); }
  .b-ask .ask .btn { width: 100%; }
}

/* ---------------------------------------------------------------- the calls to action inside an article */
/* the early and mid cards: the closing card's look, compact, inside the reading column */
.prose > .b-cta { margin-block: 2.2em 0; }
.prose > .b-cta + * { margin-top: 2.1em; }
.b-cta { display: grid; gap: 10px; justify-items: start; padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(47, 140, 255, 0.12), transparent 70%), linear-gradient(180deg, #0f1729, #0b1222); border: 1px solid rgba(120, 175, 255, 0.22); box-shadow: var(--shadow); }
.prose .b-cta > p { margin: 0; }
.prose .b-cta .b-cta-h { font: 650 clamp(20px, 2vw, 24px)/1.2 var(--font); letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.prose .b-cta .b-cta-sub { max-width: 58ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.b-cta .ask { width: 100%; margin-top: 6px; }
.b-cta .ask .btn { min-height: 48px; font-size: 15.5px; padding: 10px 20px; }
@media (max-width: 560px) {
  .b-cta .ask { flex-wrap: wrap; padding: 8px 8px 8px 18px; border-radius: 22px; }
  .b-cta .ask input { flex-basis: calc(100% - 40px); }
  .b-cta .ask .btn { width: 100%; }
}

/* the result card inside a free tool: the same card, compact, in the tool's side panel (the tool's JS shows it) */
.t-cta-result { gap: 8px; padding: 18px 20px; border-radius: 20px; box-shadow: none; }
.t-cta-result > p { margin: 0; }
.t-cta-result .b-cta-h { font: 650 18px/1.3 var(--font); letter-spacing: -0.025em; color: #fff; text-wrap: pretty; }
.t-cta-result .b-cta-sub { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.t-cta-result .btn { margin-top: 6px; }

/* the sticky bar: phones only (blog.js shows it after the early card), the nav's floating look, above the home bar */
.b-sticky { display: none; }
@media (max-width: 768px) {
  .b-sticky:not([hidden]) { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; border-radius: 20px; background: rgba(11, 17, 31, 0.92); border: 1px solid rgba(150, 178, 235, 0.16); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.015); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: b-sticky-in 0.35s var(--ease-out) both; }
  .blog.b-has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
.b-sticky-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; }
.b-sticky-t { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-sticky .btn { flex: none; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.b-sticky-x { flex: none; display: grid; place-items: center; width: 28px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; }
.b-sticky-x:hover { color: var(--ink); }
@media (max-width: 359px) { .b-sticky-ico { display: none; } }
@keyframes b-sticky-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .b-sticky:not([hidden]) { animation: none; } }

/* ---------------------------------------------------------------- cards (related guides and the index) */
.b-more { display: grid; gap: 22px; margin-top: clamp(20px, 4vw, 40px); }
.b-more h2 { font-size: clamp(26px, 2.6vw, 33px); letter-spacing: -0.04em; }
.b-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.b-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #0f1729, #0b1222); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.45s var(--spring), border-color 0.2s; }
.b-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.b-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.b-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.b-card:hover .b-card-img img { transform: scale(1.03); }
.b-card-txt { display: grid; gap: 10px; align-content: start; padding: 20px 22px 22px; }
.b-card h3 { font-size: 20px; line-height: 1.22; letter-spacing: -0.03em; }
.b-card-desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-card .b-meta { margin-top: 4px; font-size: 12px; }
.b-card-big { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; padding: 14px; }
.b-card-big .b-card-img { border: 1px solid var(--line); border-radius: 18px; }
.b-card-big .b-card-txt { align-content: center; gap: 14px; padding: clamp(24px, 3.4vw, 44px); }
.b-card-big h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.045em; }
.b-card-big .b-card-desc { font-size: 16.5px; -webkit-line-clamp: 4; }
@media (max-width: 860px) {
  .b-card-big { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- the index */
.b-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.b-hero { display: grid; gap: 16px; justify-items: start; max-width: 820px; }
.b-hero-h { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.052em; }
.b-empty { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .b-card, .b-card-img img, .b-faq summary svg { transition: none; } .b-card:hover { transform: none; } }
