/* AdCtrl blog. Loaded after /docs/docs.css and reuses its tokens, header, sidebar and tables.
   Vanilla CSS, no inline styles (strict CSP). Article markup comes from
   socials/blog/tools/site/lib/render.mjs. */

/* The deferred script closes mobile contents. Reserve that state before first paint.
   Without scripting the server-rendered, expanded contents remain available. Focus also
   exposes the links if JavaScript is enabled but the enhancement file fails to load. */
@media (max-width: 860px) and (scripting: enabled) {
  .bl-side .dx-toc:not([data-ready]):not(:focus-within) nav {
    display: none;
  }
}

/* Blog pages preload this Latin subset of the docs font (make-font.py: normal width, weights
   400-700, ~39 KB instead of the 540 KB TTF). Same family name as docs.css: this later rule wins
   for the characters in its unicode-range, and any other character falls back to the full TTF.
   Keep the url and unicode-range in sync with FONT in lib/render.mjs. */
@font-face {
  font-family: Plex;
  src: url("/fonts/IBMPlexSans-latin-v1.woff2") format("woff2");
  /* Same weight range as the docs.css face: with identical descriptors the later rule wins.
     (With 400 700 Chrome kept matching the TTF.) The subset holds 400-700; the blog uses no other. */
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+FEFF, U+FFFD;
}

.bl-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}
.bl-main {
  max-width: 760px;
}
.bl-article {
  font-size: 17px;
}
.bl-article p,
.bl-article li {
  color: var(--text);
  line-height: 1.7;
}
.bl-body > p,
.bl-body > .bl-list {
  margin: 0 0 18px;
}

/* Breadcrumb */
.bl-crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--label);
}
.bl-crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}
.bl-crumbs a {
  color: var(--secondary);
  text-decoration: none;
}
.bl-crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.bl-crumbs [aria-current] {
  color: var(--label);
  overflow-wrap: anywhere;
}

/* Header */
.bl-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.bl-dek {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--secondary) !important;
  line-height: 1.5 !important;
  margin-bottom: 22px !important;
}
.bl-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.bl-byline p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.45 !important;
}
.bl-dates {
  color: var(--label) !important;
  font-size: 14px !important;
}
.bl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

/* Hero and figures. Images sit edge to edge in a light frame (no inner padding), so the
   picture gets every pixel of the column (Kaan, 2026-11-04: images "kind of indented"). */
.bl-hero {
  margin: 28px 0 0;
}
.bl-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(16, 21, 19, 0.04), 0 12px 32px -18px rgba(16, 21, 19, 0.18);
}
.bl-frame img,
.bl-figure video {
  display: block;
  width: 100%;
  height: auto;
}
.bl-figure video {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.bl-figure {
  margin: 30px 0;
}
.bl-figure figcaption {
  margin-top: 12px;
  font-size: 15px;
}
.bl-figure figcaption p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 6px;
}
.bl-source {
  font-size: 13.5px !important;
  color: var(--label) !important;
}
.bl-label {
  font-size: 12.5px !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--label) !important;
  margin: 0 0 6px !important;
}

/* Short answer */
.bl-answer {
  margin: 32px 0 8px;
  background: var(--paper);
  /* No coloured left edge (Kaan, 2026-11-05: "the left green border thing … classic vibe
     coding signal"). */
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
}
.bl-answer h2 {
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-ink);
  margin: 0 0 10px !important;
}
.bl-answer ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.bl-answer li {
  font-size: 16.5px;
  line-height: 1.55;
}

/* Body headings */
.bl-body h2 {
  margin: 56px 0 16px;
  padding-top: 8px;
  font-size: clamp(26px, 2.6vw, 34px);
}
.bl-body h3 {
  margin: 32px 0 10px;
  font-size: 20px;
}
.bl-list {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.bl-cite {
  font-size: 0.68em;
  line-height: 0;
  margin-left: 1px;
}
.bl-cite a {
  text-decoration: none;
  font-weight: 600;
}

/* Tables */
.bl-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.bl-table-wrap .dx-table {
  margin: 0;
  min-width: 480px;
}
.bl-al-right,
.bl-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums lining-nums;
}
.bl-al-center {
  text-align: center !important;
}
.bl-chart-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
  padding: 10px 16px 0;
}
.bl-chart-table tbody th {
  text-align: left;
  font-weight: 500;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
}

/* Charts and diagrams: classes only, no inline styles */
.bl-chart-svg,
.bl-diagram-svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.bl-grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}
.bl-base {
  stroke: var(--line);
  stroke-width: 1.2;
}
.bl-tick,
.bl-legend,
.bl-axis,
.bl-val {
  font-family: Plex, "IBM Plex Sans", sans-serif;
  font-size: 12.5px;
  fill: var(--secondary);
}
.bl-axis {
  fill: var(--label);
  font-size: 12px;
}
.bl-val {
  fill: var(--text);
  font-weight: 600;
}
.bl-s1 {
  fill: #355b2b;
  stroke: #355b2b;
}
.bl-s2 {
  fill: #8fcf55;
  stroke: #8fcf55;
}
.bl-s3 {
  fill: #a3a68c;
  stroke: #a3a68c;
}
.bl-s4 {
  fill: #1c2a20;
  stroke: #1c2a20;
}
rect.bl-s1,
rect.bl-s2,
rect.bl-s3,
rect.bl-s4 {
  stroke: var(--paper);
  stroke-width: 1;
}
.bl-line {
  fill: none !important;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* Callouts */
.bl-callout {
  background: #edf4e4;
  border: 1px solid #c4dca5;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 26px 0;
}
.bl-callout-mistake {
  background: #f7efe3;
  border-color: #e2c9a3;
}
.bl-callout-note {
  background: var(--surface);
  border-color: var(--line-soft);
}
.bl-callout-title {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--accent-ink) !important;
  margin: 0 0 6px !important;
}
.bl-callout-mistake .bl-callout-title {
  color: #7a4a12 !important;
}
.bl-callout p:last-child,
.bl-callout ul:last-child {
  margin-bottom: 0;
}

/* Steps */
.bl-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: blstep;
}
.bl-steps > li {
  counter-increment: blstep;
  position: relative;
  padding: 0 0 24px 52px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
}
.bl-steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 4px;
}
.bl-steps > li::before {
  content: counter(blstep);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-fill);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}
.bl-step-title {
  font-weight: 600;
  margin: 4px 0 6px !important;
}
.bl-step-part {
  margin: 0 0 6px !important;
  font-size: 16px;
}

/* Prompts */
.bl-prompt {
  margin: 24px 0;
  background: var(--ink-fill);
  border-radius: 14px;
  padding: 14px 16px 16px;
  position: relative;
}
.bl-prompt-label {
  color: var(--lime);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  padding-right: 80px;
}
.bl-prompt-mode {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}
.bl-prompt pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bl-prompt code {
  background: none;
  border: 0;
  padding: 0;
  color: #edf0eb;
  font-size: 14.5px;
  line-height: 1.6;
}
.bl-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  font:
    500 13px Plex,
    sans-serif;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

/* Checklist */
.bl-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 8px;
}
.bl-checklist li {
  position: relative;
  padding: 10px 14px 10px 44px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.bl-checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent-ink);
  border-radius: 4px;
}
.bl-checklist.is-interactive li::before {
  display: none;
}
.bl-checklist input {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-ink);
}

/* Quote */
.bl-quote {
  margin: 30px 0;
  padding: 0;
}
.bl-quote blockquote {
  margin: 0;
}
.bl-quote blockquote p {
  font-size: 19px;
  line-height: 1.55;
}
.bl-quote figcaption {
  font-size: 14.5px;
  color: var(--secondary);
}
.bl-quote cite {
  font-style: normal;
}

/* Calculator */
.bl-calc {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px 22px;
}
.bl-formula {
  font-size: 16px;
}
.bl-example {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0;
}
.bl-example p:last-child {
  margin-bottom: 0;
}
.bl-calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.bl-calc-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--secondary);
}
.bl-calc-form input {
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.bl-calc-result {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-ink) !important;
}

/* FAQ */
.bl-faq {
  display: grid;
  gap: 10px;
}
.bl-faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 20px 4px;
}
.bl-faq-item h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
}

/* ── Product presence (Kaan, 2026-11-04: "sprinkle in a bit more AdCtrl commercial") ─────
   Inline product block (:::cta kind=contextual), the keycap Start free button, and the product
   card under the sidebar contents (desktop) or after the short answer (phones and tablets).
   Only homepage facts: the 3-day free trial and "No card needed". No script, no tracking. */

/* The wordmark's key ("Ctrl") reads --wm-key. Unset (the header) the declaration is invalid at
   computed-value time, so fill falls back to its inherited value and the header is unchanged. */
.key-fill {
  fill: var(--wm-key);
}

/* Keycap button: the homepage's .key-btn.primary (landing.css), at blog size. */
.bl-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-bottom: 4px solid #8cc65a;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    transform 100ms ease,
    border-bottom-width 100ms ease,
    background 150ms ease;
}
.bl-key span {
  transform: translateY(-1px);
}
.bl-key:hover {
  background: #c6f794;
  color: var(--ink);
}
.bl-key:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
.bl-key:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  clip-path: none;
}

/* Product card: sidebar (desktop) and in-flow twin (phones/tablets). */
.bl-promo {
  --wm-key: var(--lime);
  background: var(--ink-fill);
  color: #edf0eb;
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.bl-promo-mark {
  display: block;
  width: 84px;
  height: auto;
  aspect-ratio: 640 / 205;
  color: #edf0eb;
}
.bl-promo .bl-promo-line {
  margin: 12px 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #edf0eb;
  letter-spacing: -0.005em;
}
.bl-promo .bl-key {
  width: 100%;
}
.bl-promo .bl-promo-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #c9d2c4;
}
.bl-tick {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--lime);
}
.bl-promo-side {
  flex: none;
  margin: 18px 0 0;
  padding: 16px 14px 14px;
}
.bl-promo.bl-promo-side .bl-promo-note {
  font-size: 12px;
  letter-spacing: -0.005em;
}
/* Desktop: the sidebar is a column; the contents list scrolls inside it and the product card
   stays visible under it, however long the list is. */
@media (min-width: 861px) {
  .bl-side {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .bl-side .dx-toc {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }
  .bl-side .dx-toc::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
.bl-promo-flow {
  display: none;
}
@media (max-width: 860px) {
  .bl-promo-side {
    display: none;
  }
  .bl-promo-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "mark btn" "line btn" "note note";
    column-gap: 16px;
    align-items: center;
    margin: 0 0 28px;
    padding: 16px 16px 14px;
  }
  /* Tool pages: the card follows the calculator, so it needs room above it too. */
  .tool-page .bl-promo-flow {
    margin-top: 20px;
  }
  .bl-promo-flow .bl-promo-mark {
    grid-area: mark;
    width: 72px;
  }
  .bl-promo.bl-promo-flow .bl-promo-line {
    grid-area: line;
    margin: 6px 0 0;
    font-size: 14.5px;
  }
  .bl-promo-flow .bl-key {
    grid-area: btn;
    width: auto;
  }
  .bl-promo.bl-promo-flow .bl-promo-note {
    grid-area: note;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(237, 240, 235, 0.14);
  }
}

/* Inline product block (:::cta kind=contextual). */
.bl-product {
  --wm-key: var(--lime);
  position: relative;
  margin: 34px 0;
  padding: 22px 24px 20px;
  background: var(--ink-fill);
  border-radius: 18px;
  color: #edf0eb;
  overflow: hidden;
}
.bl-product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 100% 0, rgba(183, 243, 123, 0.18), transparent 70%);
  pointer-events: none;
}
.bl-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bl-product-mark {
  width: 78px;
  height: auto;
  aspect-ratio: 640 / 205;
  color: #edf0eb;
  flex: none;
}
.bl-product-k {
  font-size: 12.5px;
  font-weight: 500;
  color: #c9d2c4;
  padding: 3px 9px;
  border: 1px solid rgba(237, 240, 235, 0.22);
  border-radius: 999px;
}
.bl-article .bl-product p {
  color: #edf0eb;
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.6;
}
.bl-product .bl-product-prompt {
  margin: 14px 0 4px;
  background: #18211b;
  border: 1px solid rgba(237, 240, 235, 0.1);
}
.bl-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}
.bl-product-how {
  color: var(--lime);
  font-size: 15px;
  font-weight: 500;
  text-decoration-color: rgba(183, 243, 123, 0.5);
}
.bl-product-how:hover {
  color: #c6f794;
}
.bl-product-how:focus-visible {
  outline-color: var(--lime);
}
.bl-product-note {
  font-size: 13px;
  color: #c9d2c4;
}
@media (min-width: 1024px) {
  .bl-product {
    padding: 26px 30px 24px;
    margin: 40px 0;
  }
}
@media print {
  .bl-promo,
  .bl-product-actions {
    display: none !important;
  }
}

/* ── Components: stats, timeline, versus, cards, decision ─────────────────────
   Server-rendered by render.mjs; everything readable without JavaScript. */
.bl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Stats: big numbers in a bento row. The first card is the dark "key" card. */
.bl-stats {
  list-style: none;
  padding: 0;
  margin: 34px 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bl-stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bl-stats-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bl-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}
.bl-stat::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-ink);
  opacity: 0.35;
}
.bl-stat:first-child {
  background: var(--ink-fill);
  border-color: var(--ink-fill);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.bl-stat:first-child::before {
  background: var(--lime);
  opacity: 1;
}
.bl-stat-value {
  display: block;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
}
.bl-stat:first-child .bl-stat-value {
  color: var(--lime);
}
.bl-stat-label {
  display: block;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--secondary);
}
.bl-stat:first-child .bl-stat-label {
  color: #c9d3c6;
}
.bl-stat:first-child .bl-cite a {
  color: var(--lime);
}

/* Timeline: a vertical rail, newest event last and highlighted. */
.bl-timeline {
  list-style: none;
  padding: 0;
  margin: 34px 0;
  position: relative;
}
.bl-timeline::before {
  content: "";
  position: absolute;
  left: 127px;
  top: 10px;
  bottom: 28px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    var(--line-soft),
    var(--line) 70%,
    var(--accent-ink)
  );
}
.bl-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 48px;
  align-items: baseline;
  padding: 0 0 22px;
}
.bl-tl-item::before {
  content: "";
  position: absolute;
  left: 122px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-ink);
}
.bl-tl-date {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.bl-tl-text {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
}
.bl-tl-badge {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 2px 9px;
}
.bl-tl-item.is-latest {
  padding-bottom: 0;
}
.bl-tl-item.is-latest::before {
  left: 119px;
  top: 16px;
  width: 18px;
  height: 18px;
  background: var(--lime);
  border: 4px solid var(--ink-fill);
  box-shadow: 0 0 0 4px rgba(183, 243, 123, 0.35);
}
.bl-tl-item.is-latest .bl-tl-date {
  padding-top: 13px;
}
.bl-tl-item.is-latest .bl-tl-text {
  background: var(--ink-fill);
  color: #edf0eb;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 500;
}
.bl-tl-item.is-latest .bl-cite a {
  color: var(--lime);
}

/* Versus: "it isn't A, it's B". Left is what is claimed, right is what holds. */
.bl-versus {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 34px 0;
}
.bl-vs-side {
  border-radius: 18px;
  padding: 22px 24px 20px;
}
.bl-article .bl-vs-side p {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.55;
}
.bl-article .bl-vs-side p:last-child {
  margin-bottom: 0;
}
.bl-vs-left {
  background: var(--surface);
  border: 1px dashed var(--line);
}
.bl-article .bl-vs-left p {
  color: var(--secondary);
}
.bl-vs-right {
  background: var(--ink-fill);
  border: 1px solid var(--ink-fill);
}
.bl-article .bl-vs-right p {
  color: #edf0eb;
}
.bl-vs-right .bl-cite a {
  color: var(--lime);
}
.bl-article .bl-vs-side .bl-vs-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--label);
}
.bl-article p.bl-vs-label strong,
.bl-article p.bl-choice-title strong {
  font-weight: 600;
  color: inherit;
}
.bl-article .bl-vs-right .bl-vs-label {
  color: var(--lime);
}
.bl-vs-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--line);
}
.bl-vs-right .bl-vs-label::before {
  background: var(--lime);
}
.bl-vs-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 4px solid var(--bg);
}

/* Option cards: a square badge with our own icon, the vendor's own icon (icon=brand:, nominative
   use, provenance in socials/blog/brands.json) or a monogram. */
.bl-options {
  list-style: none;
  padding: 0;
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bl-options-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bl-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "mono tag" "body body";
  align-items: start;
  row-gap: 16px;
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.bl-option:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.bl-mono {
  grid-area: mono;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bl-mono-1 {
  background: var(--ink-fill);
  color: var(--lime);
}
.bl-mono-2 {
  background: var(--lime);
  color: var(--ink);
}
.bl-mono-3 {
  background: #dfe4d3;
  color: var(--accent-ink);
}
.bl-mono-4 {
  background: #e9e3d3;
  color: #5b5236;
}
.bl-article .bl-option-tag {
  grid-area: tag;
  justify-self: end;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
}
.bl-article .bl-option-body {
  grid-area: body;
  margin: 0;
}
.bl-option-name {
  display: block;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.bl-option-desc {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--secondary);
}

/* Icon badges: same square as the monogram, white tile, icon centred without distortion. */
.bl-icon {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(16, 21, 19, 0.06);
}
.bl-icon svg,
.bl-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.bl-icon-brand img {
  width: 28px;
  height: 28px;
}
/* The AdCtrl mark is already a charcoal tile: it fills the badge. */
.bl-icon-adctrl {
  background: var(--ink-fill);
  border-color: var(--ink-fill);
  overflow: hidden;
}
.bl-icon-adctrl svg {
  width: 100%;
  height: 100%;
}
.bl-icon-chatgpt svg {
  color: #101513;
}

/* Decision: "Choose … if" columns. */
.bl-decision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}
.bl-decision-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bl-choice {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.bl-article .bl-choice-title {
  margin: 0;
  padding: 16px 20px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.bl-article .bl-choice-1 .bl-choice-title {
  background: var(--ink-fill);
  color: var(--lime);
  border-bottom-color: var(--ink-fill);
}
.bl-article .bl-choice-2 .bl-choice-title {
  background: var(--lime);
  color: var(--ink);
  border-bottom-color: var(--lime);
}
.bl-choice ul {
  list-style: none;
  margin: 0;
  padding: 16px 20px 18px;
  display: grid;
  gap: 10px;
}
.bl-article .bl-choice li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.5;
}
.bl-choice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}

/* Sources */
.bl-sources {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.bl-sources h2,
.bl-related h2,
.bl-next h2 {
  font-size: 22px !important;
  margin-bottom: 14px !important;
}
.bl-sources ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.bl-sources li {
  font-size: 14.5px;
  color: var(--secondary) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}
.bl-sources li:target {
  background: #edf4e4;
  border-radius: 6px;
}

/* Cards */
.bl-related,
.bl-next {
  margin-top: 48px;
}
.bl-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bl-card,
.bl-path {
  display: grid;
  gap: 6px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  background: var(--paper);
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.bl-card:hover,
.bl-path:hover {
  border-color: var(--accent-ink);
  transform: translateY(-2px);
}
.bl-card strong,
.bl-path strong {
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.35;
}
.bl-card span,
.bl-path span {
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.45;
}
.bl-card .bl-card-meta {
  color: var(--label);
  font-size: 13px;
}

/* Two-path CTA */
.bl-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bl-paths-soft {
  grid-template-columns: 1fr;
}
.bl-path .bl-path-k {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--label);
}
.bl-path-try {
  background: var(--ink-fill);
  border-color: var(--ink-fill);
}
.bl-path-try strong {
  color: var(--lime);
}
.bl-path-try span,
.bl-path-try .bl-path-k {
  color: #c9d3c6;
}
.bl-next-soft {
  font-size: 15.5px;
}

/* Author */
.bl-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 16px;
}
.bl-author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.bl-author-name {
  font-weight: 600;
  margin: 0 0 6px !important;
}
.bl-author p {
  font-size: 15.5px;
}
.bl-author p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .bl-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .bl-article,
  .bl-side {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .bl-article {
    font-size: 16px;
  }
  .bl-cards,
  .bl-paths {
    grid-template-columns: 1fr;
  }
  .bl-answer {
    padding: 16px 18px;
  }
  .bl-author {
    flex-direction: column;
  }
  .bl-steps > li {
    padding-left: 38px;
  }
  .bl-stats,
  .bl-stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-stats-3 .bl-stat:first-child {
    grid-column: 1 / -1;
  }
  .bl-stat {
    padding: 18px 16px 16px;
  }
  .bl-stat-value {
    font-size: clamp(30px, 9vw, 42px);
  }
  .bl-timeline::before {
    left: 5px;
    bottom: 20px;
  }
  .bl-tl-item {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
    padding-left: 28px;
  }
  .bl-tl-item::before {
    left: 0;
    top: 5px;
  }
  .bl-tl-item.is-latest::before {
    left: -3px;
    top: 2px;
  }
  .bl-tl-date {
    text-align: left;
  }
  .bl-tl-item.is-latest .bl-tl-date {
    padding-top: 0;
  }
  .bl-tl-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-top: 0;
  }
  .bl-tl-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bl-versus,
  .bl-options,
  .bl-options-3,
  .bl-decision,
  .bl-decision-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .bl-versus {
    gap: 26px;
  }
  .bl-options {
    gap: 10px;
  }
  .bl-option {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "mono body" ". tag";
    column-gap: 14px;
    row-gap: 10px;
    padding: 16px;
  }
  .bl-mono {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
  }
  .bl-article .bl-option-tag {
    justify-self: start;
  }
  .bl-option-name {
    font-size: 16.5px;
    margin-bottom: 4px;
  }
  .bl-vs-side {
    padding: 20px 20px 18px;
  }
}
/* Wide desktop column (Kaan, 2026-11-04: "make the page on desktop at least as wide as the
   start free [button]"). The article column runs to the header's right edge, the Start free
   button. Everything in it uses the full column: prose, headings, the short answer, callouts,
   FAQ, captions, sources and the author box share both edges with the hero, figures, tables and
   components (Kaan, 2026-11-04: "the text needs to follow width here"; the earlier 740 px prose
   measure is gone). */
@media (min-width: 1024px) {
  .bl-main {
    max-width: none;
  }
  .bl-article > *,
  .bl-body > *,
  .bl-figure figcaption {
    max-width: none;
  }
  .bl-figure {
    margin: 40px 0;
  }
  .bl-hero {
    margin-top: 32px;
  }
  /* Cards: three across; five cards as a 3 + 2 bento, four as 2 + 2. */
  .bl-options-3,
  .bl-options-5,
  .bl-options-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bl-options-3 > .bl-option,
  .bl-options-5 > .bl-option,
  .bl-options-6 > .bl-option {
    grid-column: span 2;
  }
  .bl-options-5 > .bl-option:nth-child(n + 4) {
    grid-column: span 3;
  }
  .bl-option {
    padding: 22px;
  }
  .bl-mono {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .bl-icon svg,
  .bl-icon img {
    width: 28px;
    height: 28px;
  }
  .bl-icon-brand img {
    width: 30px;
    height: 30px;
  }
  .bl-icon-adctrl svg {
    width: 100%;
    height: 100%;
  }
  .bl-stats,
  .bl-versus,
  .bl-options,
  .bl-decision,
  .bl-timeline {
    margin: 40px 0;
  }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .bl-stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .bl-card,
  .bl-path,
  .bl-option {
    transition: none;
  }
}
@media print {
  .dx-top,
  .bl-side,
  .bl-next,
  .bl-foot,
  .bl-copy {
    display: none !important;
  }
  .bl-shell {
    display: block;
  }
}

/* Sidebar contents: scrolls without a visible bar; a thin thumb appears only while the
   pointer is over it (Kaan, 2026-11-04: "fix that ugly scrollbar"). */
.bl-side {
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.bl-side::-webkit-scrollbar {
  width: 0;
  height: 0;
}
@media (hover: hover) {
  .bl-side:hover,
  .bl-side .dx-toc:hover {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .bl-side:hover::-webkit-scrollbar,
  .bl-side .dx-toc:hover::-webkit-scrollbar {
    width: 6px;
  }
  .bl-side:hover::-webkit-scrollbar-thumb,
  .bl-side .dx-toc:hover::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
  }
  .bl-side:hover::-webkit-scrollbar-track,
  .bl-side .dx-toc:hover::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ══ Blog archive (/blog/) ══════════════════════════════════════════════════════
   Kaan, 2026-11-04: "the blog archive page is so piss ugly … Look at how nice our whole website
   is … Make a sick archive page for the blog." The archive speaks the homepage's language
   (landing.css) without loading it: the floating pill header, the centred display hero with
   tilted cards, lime tags, bento-style cards and the dark closing section. Markup: renderIndex()
   in socials/blog/tools/site/lib/render.mjs. Every article appears once: the newest as the dark
   feature, the rest under their topic. Works without JavaScript. */
.ba-page,
.bl-page,
.site-end {
  --g: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Header: the homepage's floating ivory pill (.pill-header). */
.ba-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
}
.ba-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 4px 5px 4px 16px;
  border: 1px solid #c6cbb8;
  border-radius: 999px;
  background: #faf9f1ed;
  box-shadow: 0 10px 30px #35442a12;
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.ba-brand {
  display: flex;
  margin-right: 10px;
  color: var(--text);
}
.ba-brand svg {
  width: 112px;
  height: 35.9px;
}
.ba-links {
  display: flex;
  align-items: center;
}
.ba-links::after {
  content: "";
  width: 1px;
  height: 18px;
  margin: 0 6px 0 8px;
  background: currentColor;
  opacity: 0.18;
}
.ba-links a,
.ba-login {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.ba-links a:hover,
.ba-login:hover,
.ba-links a[aria-current="page"] {
  background: #e6eadc;
}
.ba-links a[aria-current="page"] {
  font-weight: 500;
}
.ba-start {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 5px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms;
}
.ba-start:hover {
  background: #c6f794;
}
.ba-menu {
  display: none;
  position: relative;
}
.ba-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 42px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e6eadc;
  cursor: pointer;
  list-style: none;
}
.ba-menu summary::-webkit-details-marker {
  display: none;
}
.ba-glyph {
  position: relative;
  width: 18px;
  height: 14px;
}
.ba-glyph::before,
.ba-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 220ms ease,
    top 220ms ease;
}
.ba-glyph::before {
  top: 3px;
}
.ba-glyph::after {
  top: 9px;
}
.ba-menu[open] .ba-glyph::before {
  top: 6px;
  transform: rotate(45deg);
}
.ba-menu[open] .ba-glyph::after {
  top: 6px;
  transform: rotate(-45deg);
}
/* The panel is the homepage's mobile menu (landing.css .menu-panel), so the blog and the front
   page open the same menu (Kaan, 2026-11-05). */
.ba-menu .menu-panel {
  position: fixed;
  top: 76px;
  left: 50%;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100svh - 94px - env(safe-area-inset-top));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #c6cbb8;
  border-radius: 24px;
  background: #faf9f1;
  box-shadow: 0 24px 70px #24312738, 0 4px 10px #2431270a;
  transform: translateX(-50%);
  overscroll-behavior: contain;
}
.ba-menu .menu-panel a {
  color: #243127;
  text-decoration: none;
}
.ba-menu .menu-panel a:focus-visible {
  outline: 2px solid #37592b;
  outline-offset: 1px;
}
.ba-menu .menu-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 16px;
  background: #243127;
  color: #faf9f1;
}
.ba-menu .menu-intro-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: #b7f37b;
}
.ba-menu .menu-intro-mark svg {
  width: 32px;
  height: 28px;
  --key: #243127;
  --ink-fill: #243127;
}
.ba-menu .menu-intro strong {
  display: block;
  color: #faf9f1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.ba-menu .menu-intro div > span {
  display: block;
  margin-top: 3px;
  color: #cbd5c4;
  font-size: 11px;
}
.ba-menu .menu-main {
  padding-block: 10px;
}
.ba-menu .menu-main a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 10px;
  border-radius: 12px;
}
.ba-menu .menu-main a:hover,
.ba-menu .menu-main a[aria-current="page"] {
  background: #e6eadc;
}
.ba-menu .menu-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #d2d8c7;
  border-radius: 11px;
  background: #edf0e5;
}
.ba-menu .menu-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-menu .menu-main strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.ba-menu .menu-main small {
  display: block;
  margin-top: 3px;
  color: #5b6555;
  font-size: 11px;
  line-height: 1.5;
}
.ba-menu .menu-arrow {
  margin-left: auto;
  color: #65725b;
  font-size: 18px;
}
.ba-menu .menu-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-bottom: 16px;
}
.ba-menu .menu-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #d2d8c7;
  border-radius: 10px;
  font-size: 12px;
}
.ba-menu .menu-shortcuts span {
  color: #65725b;
}
.ba-menu .menu-bottom {
  padding: 14px 4px 3px;
  border-top: 1px solid #d2d8c7;
}
.ba-menu .menu-bottom .menu-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #b7f37b;
  font-size: 15px;
  font-weight: 500;
}
.ba-menu .menu-bottom .menu-login {
  display: block;
  margin-top: 6px;
  padding: 12px 4px;
  border-radius: 10px;
  color: #3f4a3f;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.ba-menu .menu-bottom .menu-login:hover {
  background: #24312710;
}
.ba-menu .menu-bottom p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 4px;
  color: #5b6555;
  font-size: 11px;
}
.ba-menu .menu-bottom p svg {
  width: 16px;
  height: 16px;
  color: #243127;
}
.ba-menu .menu-bottom p > span {
  margin-inline: 3px;
}
@media (max-width: 959.98px) {
  .ba-links,
  .ba-login {
    display: none;
  }
  .ba-menu {
    display: block;
  }
  .ba-nav {
    min-height: 52px;
    padding-right: 4px;
  }
  .ba-start {
    min-height: 42px;
  }
}

/* Hero: centred display type, the lime tag, topic chips and three tilted cards. */
.ba-main {
  padding-top: 76px;
}
.ba-hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 84px) var(--g) clamp(56px, 6vw, 88px);
}
.ba-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.ba-hero .bl-crumbs ol {
  justify-content: center;
  margin-bottom: 26px;
}
.ba-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: #243127;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.ba-display {
  margin-top: 26px;
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--text);
}
.ba-display span {
  display: block;
  padding-bottom: 0.06em;
}
.ba-dek {
  max-width: 640px;
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--secondary);
  text-wrap: balance;
}
.ba-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.ba-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 7px 6px 6px;
  border: 1px solid #d1d5c5;
  border-radius: 999px;
  background: #fffdf7;
  box-shadow: 0 6px 18px #38432c0d;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    border-color 200ms,
    box-shadow 200ms;
}
.ba-chip:hover {
  border-color: #9bb586;
  box-shadow: 0 10px 24px #38432c17;
  transform: translateY(-2px);
}
.ba-chip .ba-ico {
  border-radius: 999px;
}
.ba-count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ba-feed {
  margin-top: 22px;
  font-size: 14px;
}
.ba-feed a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  text-decoration: none;
}
.ba-feed a:hover {
  border-color: var(--text);
  color: var(--text);
}
/* The feed glyph: a dot and an arc, drawn with borders. */
.ba-feed-ico {
  position: relative;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent-ink);
  border-right: 2px solid var(--accent-ink);
  border-top-right-radius: 12px;
}
.ba-feed-ico::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-ink);
}

/* Topic icons: the homepage's provider marks on a white tile (or a monogram). */
.ba-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
}
.ba-ico svg {
  width: 18px;
  height: 18px;
}
.ba-ico-mono {
  border-color: var(--ink-fill);
  background: var(--ink-fill);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ba-ico-ai {
  border-color: var(--ink-fill);
  background: var(--ink-fill);
  color: var(--lime);
}
.ba-ico-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 8px 20px #38432c12;
}
.ba-ico-lg svg {
  width: 28px;
  height: 28px;
}
.ba-ico-lg.ba-ico-mono {
  font-size: 18px;
}

/* Tilted cards (decoration, like the homepage hero's .hero-float). */
.ba-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ba-float {
  --tilt: 0deg;
  position: absolute;
  width: 210px;
  padding: 18px;
  border: 1px solid #d1d5c5;
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 14px 36px #38432c14;
  transform: rotate(var(--tilt));
}
.ba-float-k {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--label);
}
.ba-float p {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}
.ba-float strong {
  display: block;
  color: var(--text);
}
.ba-float-ask {
  --tilt: -5deg;
  top: 168px;
  left: var(--g);
}
.ba-float-go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 14px 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
}
.ba-float-post {
  --tilt: 5deg;
  top: 96px;
  right: calc(var(--g) + 8px);
  width: 236px;
  padding: 9px 9px 16px;
}
.ba-float-post img {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-radius: 8px;
}
.ba-float-post .ba-float-k,
.ba-float-post strong {
  padding-inline: 7px;
}
.ba-float-post strong {
  font-size: 14px;
  line-height: 1.3;
}
.ba-float-src {
  --tilt: -3deg;
  right: calc(var(--g) + 30px);
  bottom: 54px;
  width: 224px;
}
.ba-float-src strong {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ba-float-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 6px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--secondary);
}
/* A tick drawn with two borders. */
.ba-float-row i {
  width: 9px;
  height: 5px;
  margin: -3px 2px 0 0;
  border-left: 1.6px solid var(--accent-ink);
  border-bottom: 1.6px solid var(--accent-ink);
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .ba-float {
    animation: ba-drift 6.5s ease-in-out infinite;
  }
  .ba-float-post {
    animation-delay: -2s;
    animation-duration: 7s;
  }
  .ba-float-src {
    animation-delay: -4s;
  }
  @keyframes ba-drift {
    0%,
    100% {
      transform: translateY(0) rotate(var(--tilt));
    }
    50% {
      transform: translateY(-9px) rotate(calc(var(--tilt) + 1deg));
    }
  }
}
@media (max-width: 1179.98px) {
  .ba-floats {
    display: none;
  }
}

/* Shared card parts. The title link covers the whole card. */
.ba-stretch {
  color: inherit;
  text-decoration: none;
}
.ba-stretch::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}
.ba-stretch:focus-visible {
  outline: none;
}
.ba-topic-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary);
}
.ba-topic-name .ba-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.ba-topic-name .ba-ico svg {
  width: 15px;
  height: 15px;
}
.ba-topic-name .ba-ico-mono {
  font-size: 10px;
}
.ba-guide {
  padding: 2px 9px;
  border-radius: 999px;
  background: #e1edcf;
  color: var(--accent-ink);
  font-size: 12px;
}
.ba-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--label);
}
.ba-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* The feature: the newest article as a large dark card, like the homepage's dark bentos. */
.ba-feature-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--g);
}
.ba-feature {
  --text: #edf0eb;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
  padding: 12px clamp(24px, 3.6vw, 56px) 12px 12px;
  overflow: hidden;
  border-radius: 28px;
  background: #101513;
  box-shadow: 0 30px 80px #36442b26;
  color: var(--text);
}
.ba-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 100% 110%, #b7f37b26, #b7f37b00 70%),
    radial-gradient(ellipse 40% 50% at 0% 0%, #43614033, #43614000 70%);
}
.ba-feature-media {
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 18px;
  background: #1a221d;
}
.ba-feature-media img,
.ba-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 750;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.ba-feature-body {
  padding-block: 28px;
}
.ba-feature-k {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.ba-new {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: #243127;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}
.ba-feature .ba-topic-name {
  color: #c3cfc4;
}
.ba-feature .ba-ico {
  border-color: #ffffff2b;
}
.ba-feature h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text);
}
.ba-feature .ba-desc {
  max-width: 50ch;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #c3cfc4;
}
.ba-feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1f;
}
.ba-feature .ba-meta {
  color: #9fb3a2;
}
.ba-read {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.ba-read span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #8cc65a;
  background: var(--lime);
  color: var(--ink);
  font-size: 16px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: transform 160ms var(--ease);
}
.ba-feature:has(.ba-stretch:focus-visible),
.ba-card article:has(.ba-stretch:focus-visible) {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
}

/* Topic sections: every article except the feature, once, under its topic. */
.ba-topic {
  max-width: 1440px;
  margin: clamp(72px, 8vw, 128px) auto 0;
  padding-inline: var(--g);
}
.ba-main > :last-child {
  margin-bottom: clamp(88px, 10vw, 150px);
}
.ba-topic-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.ba-topic-head h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.ba-topic-count {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--secondary);
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ba-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ba-card-wide {
  grid-column: 1 / -1;
}
.ba-card-lead {
  grid-column: span 2;
}
.ba-card article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid #d7dacd;
  border-radius: 22px;
  background: #f0eee6;
  transition:
    transform 280ms var(--ease),
    border-color 280ms,
    box-shadow 280ms;
}
.ba-card-media {
  overflow: hidden;
  border-radius: 14px;
  background: #1a221d;
}
.ba-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 14px 10px;
}
.ba-card h3 {
  margin-top: 16px;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.ba-card .ba-desc {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ba-card .ba-meta {
  margin-top: auto;
  padding-top: 20px;
}
/* Horizontal cards, the image beside the text: a topic's only article (wide, the full row),
   its lead (two of three columns) or a pair (halves). */
:is(.ba-card-wide, .ba-card-lead, .ba-card-half) article {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(20px, 2.6vw, 44px);
}
:is(.ba-card-wide, .ba-card-lead, .ba-card-half) .ba-card-body {
  padding: 18px clamp(14px, 2.4vw, 36px) 18px 4px;
}
.ba-card-half article {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 12px 24px;
}
.ba-card-half .ba-card-body {
  padding: 12px 18px 12px 0;
}
.ba-card-half .ba-desc {
  -webkit-line-clamp: 2;
}
.ba-card-half .ba-meta {
  padding-top: 16px;
}
:is(.ba-card-wide, .ba-card-lead) h3 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
:is(.ba-card-wide, .ba-card-lead) .ba-desc {
  max-width: 50ch;
  margin-top: 16px;
  font-size: 16px;
  -webkit-line-clamp: 4;
}
:is(.ba-card-wide, .ba-card-lead) .ba-meta {
  padding-top: 28px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ba-card article:hover {
    border-color: #b4c6a0;
    box-shadow: 0 18px 44px #36442b14;
    transform: translateY(-5px);
  }
  :is(.ba-feature, .ba-card article):hover img {
    transform: scale(1.035);
  }
  .ba-feature:hover .ba-read span {
    transform: translate(2px, -2px);
  }
}
/* Two columns: the lead takes the full row; a pair stacks its cards vertically. */
@media (max-width: 1099.98px) {
  .ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* An odd number of plain cards: the last one takes the full row, image beside the text. */
  .ba-card-lead,
  .ba-card-odd {
    grid-column: 1 / -1;
  }
  .ba-card-odd article {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 28px;
  }
  .ba-card-half article {
    display: flex;
  }
  .ba-card-half .ba-card-body {
    padding: 20px 14px 10px;
  }
  .ba-card-half .ba-desc {
    -webkit-line-clamp: 3;
  }
}
@media (max-width: 959.98px) {
  .ba-feature,
  :is(.ba-card-wide, .ba-card-lead) article {
    grid-template-columns: minmax(0, 1fr);
  }
  .ba-feature {
    padding: 10px;
    border-radius: 24px;
  }
  .ba-feature-body {
    padding: 14px 14px 18px;
  }
  :is(.ba-card-wide, .ba-card-lead) .ba-card-body {
    padding: 20px 14px 10px;
  }
}
@media (max-width: 639.98px) {
  .ba-main {
    padding-top: 70px;
  }
  .ba-hero .bl-crumbs ol {
    margin-bottom: 20px;
  }
  .ba-display {
    margin-top: 22px;
    font-size: clamp(40px, 12vw, 56px);
  }
  .ba-dek {
    margin-top: 20px;
    font-size: 17px;
  }
  .ba-chips {
    gap: 8px;
    margin-top: 28px;
  }
  .ba-chip {
    min-height: 44px;
    font-size: 14px;
  }
  .ba-chip .ba-ico {
    width: 30px;
    height: 30px;
  }
  .ba-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .ba-card-odd article {
    display: flex;
  }
  :is(.ba-card-wide, .ba-card-lead) h3 {
    font-size: 26px;
  }
  .ba-topic-head {
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }
  .ba-ico-lg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .ba-ico-lg svg {
    width: 22px;
    height: 22px;
  }
  .ba-feature h2 {
    font-size: 30px;
  }
  .ba-feature .ba-desc {
    font-size: 16px;
  }
  .ba-feature-k {
    margin-bottom: 18px;
  }
  .ba-feature-foot {
    margin-top: 26px;
  }
}

/* ══ Site end (every blog page) ═════════════════════════════════════════════════
   The homepage's closing section (landing.css .site-end), restyled here because blog pages
   don't load landing.css: the ribbon loop, the closing call to action, the footer nav, the
   legal lines and the big wordmark. blog.js plays the loop only while it is on screen. */
.site-end {
  --text: #edf0eb;
  --secondary: #c3cfc4;
  --label: #9fb3a2;
  --accent-ink: #b7f37b;
  --wm-key: var(--lime);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101513;
  color: var(--text);
}
.se-flow {
  position: absolute;
  z-index: -2;
  top: 0;
  left: -8%;
  width: 116%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  pointer-events: none;
  background: #101513;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, #0000 98%);
  mask-image: linear-gradient(180deg, #000 62%, #0000 98%);
}
.site-end::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #10151300 0%,
    #10151300 30%,
    #101513b3 46%,
    #101513 60%
  );
}
.se-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6vw, 88px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(110px, 13vw, 190px) var(--g) 0;
}
.se-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.site-end .se-cta h2 {
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
}
.site-end .se-cta p {
  max-width: 50ch;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  color: #d6e0d0;
  text-wrap: balance;
}
.site-end .se-cta .se-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -12px;
  font-size: 13px;
  font-weight: 500;
  color: #c9d2c4;
}
.se-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
}
.se-check svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #101513;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bl-key-large {
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  font-size: 16px;
}
.se-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid #ffffff1f;
}
.se-links nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-end .se-links h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--label);
}
.se-links nav a {
  padding-block: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}
.se-links nav a:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-end a:focus-visible {
  outline-color: var(--lime);
}
.se-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--secondary);
  text-decoration: none;
}
.se-top-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff38;
  transition:
    background 160ms,
    color 160ms;
}
.se-top:hover .se-top-key {
  border-color: var(--lime);
  background: var(--lime);
  color: #101513;
}
.se-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  padding-top: 22px;
  border-top: 1px solid #ffffff1f;
}
.se-legal p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--label);
}
.se-signature {
  position: relative;
  max-width: 1440px;
  height: calc((100vw - 2 * var(--g)) * 205 / 640 * 0.6);
  max-height: calc((1440px - 96px) * 205 / 640 * 0.6);
  margin: clamp(28px, 4vw, 56px) auto 0;
  padding-inline: var(--g);
  overflow: hidden;
  color: var(--text);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, #0000 100%);
  mask-image: linear-gradient(180deg, #000 10%, #0000 100%);
}
.se-signature svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 205;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .se-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .se-top {
    grid-column: 1 / -1;
  }
  .se-legal {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .se-flow {
    left: 0;
    width: 100%;
    height: 58%;
    aspect-ratio: auto;
    object-position: 10% 70%;
    opacity: 0.5;
  }
  .se-inner {
    gap: 64px;
    padding-top: 100px;
  }
  .se-cta {
    gap: 22px;
  }
  .site-end .se-cta h2 {
    font-size: clamp(40px, 11vw, 60px);
  }
  .se-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .se-links nav:last-of-type {
    grid-column: 1 / -1;
  }
  .se-links nav a {
    font-size: 14px;
  }
  .se-signature {
    height: calc((100vw - 2 * var(--g)) * 205 / 640 * 0.82);
    margin-top: 16px;
    -webkit-mask-image: linear-gradient(180deg, #000 35%, #0000 100%);
    mask-image: linear-gradient(180deg, #000 35%, #0000 100%);
  }
}

/* Archive hero, its own shape (Kaan, 2026-11-04: "too identical to our frontpage … left aligned and
   it doesn't have to be full height"): copy left-aligned, the tilted cards gathered in a column
   on the right, and a shorter block. */
.ba-hero {
  padding-top: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(32px, 3.5vw, 56px);
}
.ba-hero-copy {
  align-items: flex-start;
  max-width: 860px;
  margin-inline: 0;
  text-align: left;
}
.ba-hero .bl-crumbs ol {
  justify-content: flex-start;
  margin-bottom: 18px;
}
/* Two lines at most (Kaan, 2026-11-04: "make it two lines max please"). */
.ba-display {
  margin-top: 20px;
  font-size: clamp(36px, 4.6vw, 70px);
}
@media (max-width: 639.98px) {
  .ba-hero .ba-display {
    font-size: 9.2vw;
  }
}
.ba-dek {
  margin-top: 20px;
}
.ba-chips {
  justify-content: flex-start;
  margin-top: 28px;
}
@media (min-width: 1180px) {
  .ba-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: center;
    gap: 48px;
  }
  .ba-floats {
    position: relative;
    inset: auto;
    height: 390px;
  }
  .ba-float-ask {
    top: 26px;
    left: 0;
  }
  .ba-float-post {
    top: 0;
    right: 16px;
  }
  .ba-float-src {
    right: auto;
    bottom: 0;
    left: 70px;
  }
}

/* Contents list: the active section is a filled pill, with no lime left edge (Kaan, 2026-11-05:
   "the left green border thing … classic vibe coding signal"). Docs keep their own style. */
.bl-page .dx-toc a {
  border-left: 0;
}

/* Articles carry the archive's floating pill header (Kaan, 2026-11-05: the same mobile menu as
   the front page). The shell starts below it, and the sticky contents column sits under it. */
.bl-page:not(.ba-page) .bl-shell {
  padding-top: 72px;
}
@media (min-width: 1024px) {
  .bl-page:not(.ba-page) .bl-side {
    top: 76px;
    max-height: calc(100vh - 76px);
  }
}

/* Article images sit on the page, not in a box (Kaan, 2026-11-05: "instead of boxing them in
   like that, make it more native part of the page"). The art already carries the page's own
   background, so it needs no frame; on phones it runs edge to edge in its 4:5 portrait cut. */
.bl-art picture,
.bl-art img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .bl-figure-image .bl-art {
    margin-inline: calc(-1 * clamp(16px, 3vw, 32px));
  }
  .bl-figure-image figcaption {
    margin-top: 4px;
  }
}


/* Free tools share the blog chrome, typography and calculator fields. */
.tool-main,
.tool-footer {
  width: min(1184px, calc(100% - 2 * var(--g)));
  margin-inline: auto;
}
.tool-main {
  padding-block: clamp(88px, 9vw, 132px) 96px;
}
.tool-main .bl-crumbs { margin: 0 0 12px; }
.tool-main > h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 600;
}
.tool-main .tool-intro {
  margin: 12px 0 22px;
  color: var(--secondary);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
}
.tool-side .dx-toc-group {
  margin-inline: 12px;
}
.tool-shell #calculator {
  scroll-margin-top: 88px;
}
.tool-calc {
  padding: clamp(12px, 2.4vw, 24px);
}
.tool-calc [hidden] { display: none; }
.tool-control, .tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 3px;
  min-width: 0;
  padding: 3px;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}
.tool-tabs label { position: relative; cursor: pointer; }
.tool-tabs input { position: absolute; opacity: 0; }
.tool-tabs span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: clamp(6px, 1.5vw, 18px);
  border-radius: 8px;
  color: var(--secondary);
  text-align: center;
  font-size: 14px;
  line-height: 1.15;
}
.tool-tabs :checked + span {
  background: var(--paper);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
}
.tool-calc :is(input, select, button):focus-visible,
.tool-tabs :focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.tool-calc select,
.tool-calc button {
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}
.tool-calc button:not(:disabled):hover { background: var(--surface); }
.tool-calc button:disabled { opacity: .55; cursor: default; }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
  margin-top: 22px;
}
.tool-inputs { min-width: 0; }
.tool-calc .bl-calc-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 6px 12px;
}
.tool-calc .bl-calc-form label, .tool-method { color: var(--text); font-size: 14px; font-weight: 500; }
.tool-method { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tool-field { position: relative; display: grid; }
.tool-calc .bl-calc-form input {
  width: 100%;
  min-height: 46px;
  padding-right: 44px;
  border-color: #899282;
  font-variant-numeric: tabular-nums;
}
.tool-field > span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--label);
  font-size: 12px;
  pointer-events: none;
}
.tool-calc .bl-calc-form input[aria-invalid="true"] { border-color: #a13b26; }
.tool-error { min-height: 2.5em; font-size: 12px; font-weight: 400; line-height: 1.25; color: #a13b26; }
/* No error showing: keep a small spacer only, so field rows sit as close as the columns (CPM calculator, 2026-11-11:
   the reserved 2.5em left a 40 px gap above a lone "Clicks" row on phones). */
.tool-calc .tool-error:empty { min-height: 0.5em; }
/* Label text, input and error share rows across the columns (subgrid), so a wrapped label or an
   error under one field never pushes its neighbour's input out of line. */
.tool-calc .bl-calc-form label { grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; align-content: start; }
.tool-calc .bl-calc-form label > .tool-field { align-self: end; }
.tool-calc .tool-hint, .tool-calc .tool-answer p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.tool-answer {
  padding: clamp(14px, 2vw, 22px);
  background: var(--text);
  color: #edf0eb;
  border-radius: 12px;
  min-width: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.tool-answer-label { display: block; color: #d2dbca; font-size: 14px; font-weight: 500; }
.tool-answer strong {
  display: block;
  color: var(--lime);
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.tool-equivalent { display: block; min-height: 1.4em; line-height: 1.4; font-weight: 600; margin: 4px 0; }
.tool-calc .tool-answer p { min-height: 2lh; color: #d2dbca; }
.tool-actions {
  justify-content: flex-start;
  color: var(--secondary);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 12px;
}
.tool-actions button { display: inline-flex; align-items: center; gap: 8px; }
.tool-actions button svg { fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.tool-actions [role="status"] { flex: 1; min-width: 0; }
.tool-actions [role="status"]:empty { position: absolute; }
.tool-currency { margin-left: auto; }
.tool-guide { margin-top: 36px; }
.tool-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line); }
.tool-footer nav { display: flex; gap: 20px; }
.tool-cards { display: grid; gap: 14px; padding: 0; list-style: none; }
.tool-card {
  position: relative;
  display: block;
  padding: clamp(18px, 4vw, 34px) 52px clamp(18px, 4vw, 34px) clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}
.tool-card:is(:hover, :focus-within) { border-color: var(--ink); }
.tool-card-link { color: inherit; text-decoration: none; }
.tool-card-link::after { content: ""; position: absolute; inset: 0; }
.tool-card h2 { margin: 0 0 6px; }
.tool-card p { margin: 0; }
.tool-card > span { position: absolute; top: 20px; right: 20px; }
@media (max-width: 860px) {
  .tool-side { display: none; }
}
@media (max-width: 639px) {
  .tool-main { width: calc(100% - 32px); }
  .tool-main .tool-intro { margin-bottom: 16px; }
  .tool-tabs { width: 100%; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .tool-answer { grid-row: 1; }
  .tool-actions [role="status"] { flex-basis: 100%; order: 1; }
}

/* Docs, legal and 404 pages carry the pill header and closing footer too (Kaan, 2026-11-11).
   siteChrome() in socials/blog/tools/site/lib/render.mjs swaps their markup at build time. */
.site-page .lg-main {
  padding-top: 120px;
}
.site-page .dx-shell {
  padding-top: 72px;
}
@media (min-width: 1024px) {
  .site-page .dx-side {
    top: 76px;
    max-height: calc(100vh - 76px);
  }
}

/* ROAS calculator product mix: the ROAS input on its own row, margin/share pairs below. */
.tool-mix .tool-mix-roas {
  grid-column: 1 / -1;
  max-width: calc(50% - 6px);
}
.tool-mix .tool-error:empty {
  min-height: 0.5em;
}
@media (max-width: 560px) {
  .tool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* UTM builder (2026-11-12): text fields, the built link wrapping inside the answer panel, full-width
   address fields and checkbox rows. Scoped to .tool-utm and new classes; calculators are unchanged. */
.tool-utm .tool-answer strong { font-size: clamp(28px, 3vw, 40px); }
.tool-calc .tool-answer .tool-url { margin: 10px 0 8px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #edf0eb; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.tool-calc .tool-answer .tool-url:empty { display: none; }
.tool-utm .bl-calc-form label[for$="url"], .tool-utm .bl-calc-form label[for="b-sources"] { grid-column: 1 / -1; }
.tool-utm .bl-calc-form input[type="text"] { padding-right: 12px; font-variant-numeric: normal; }
.tool-calc .bl-calc-form .tool-check { grid-column: 1 / -1; grid-row: auto; display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.tool-calc .bl-calc-form .tool-check input { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--text); }

/* Ad preview (2026-11-13): textareas, and recreated search-result and feed cards inside the answer
   panel. Scoped to .tool-ap; calculators and the /tools/ cards are unchanged. */
.tool-ap .bl-calc-form .ap-wide { grid-column: 1 / -1; }
.tool-ap .bl-calc-form textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid #899282; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.tool-ap .bl-calc-form select { width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid #899282; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
.tool-ap .bl-calc-form input[type="text"] { padding-right: 12px; }
.tool-ap .bl-calc-form input[type="file"] { min-height: 46px; padding: 9px 10px; font-size: 14px; }
.tool-ap .tool-answer strong { font-size: clamp(28px, 3vw, 40px); }
.tool-ap .ap-serp, .tool-ap .ap-fb { margin: 12px 0 10px; padding: 14px; border-radius: 10px; background: #fff; color: #1f1f1f; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.tool-ap .tool-answer .ap-serp p, .tool-ap .tool-answer .ap-fb p { margin: 0; color: inherit; font-size: 14px; line-height: 1.4; }
.tool-ap .tool-answer .ap-label { margin-bottom: 8px; color: #5f6368; font-size: 11px; font-family: inherit; text-transform: uppercase; letter-spacing: .04em; }
.tool-ap .tool-answer .ap-sponsored { font-weight: 700; font-size: 12px; }
.tool-ap .tool-answer .ap-name { font-size: 14px; }
.tool-ap .tool-answer .ap-url { color: #4d5156; font-size: 12px; overflow-wrap: anywhere; }
.tool-ap .tool-answer .ap-headline { margin: 4px 0; color: #1a0dab; font-size: 18px; line-height: 1.3; }
.tool-ap .tool-answer .ap-desc { color: #4d5156; }
.tool-ap .tool-answer .ap-combo { margin-top: 10px; color: #5f6368; font-size: 12px; }
.tool-ap .ap-lines, .tool-ap .ap-notes { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: #edf0eb; }
.tool-ap .ap-lines li { display: flex; gap: 8px; padding: 3px 0; overflow-wrap: anywhere; }
.tool-ap .ap-lines .ap-count { flex: none; min-width: 52px; color: var(--lime); font-variant-numeric: tabular-nums; }
.tool-ap .ap-lines .is-over, .tool-ap .ap-lines .is-over .ap-count { color: #ffb4a6; }
.tool-ap .ap-notes li { margin-top: 6px; padding-left: 14px; text-indent: -14px; }
.tool-ap .ap-notes li::before { content: "• "; }
.tool-ap .tool-answer .ap-page { display: flex; flex-direction: column; margin-bottom: 8px; font-weight: 700; }
.tool-ap .tool-answer .ap-page .ap-sponsored { font-weight: 400; color: #65676b; }
.tool-ap .tool-answer .ap-primary { white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-ap .ap-after { color: #8a8d91; text-decoration: line-through dotted; }
.tool-ap .ap-mark { display: inline-block; margin: 0 3px; padding: 0 5px; border-radius: 4px; background: #1f1f1f; color: #fff; font-size: 11px; vertical-align: 1px; }
.tool-ap .ap-img { display: block; width: calc(100% + 28px); max-width: none; margin: 10px -14px 0; aspect-ratio: 4 / 5; object-fit: cover; }
.tool-ap .ap-imgbox:empty { display: none; }
.tool-ap .ap-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px -14px -14px; padding: 10px 14px; background: #f0f2f5; border-radius: 0 0 10px 10px; }
.tool-ap .tool-answer .ap-domain { color: #65676b; font-size: 11px; }
.tool-ap .tool-answer .ap-fb-headline { font-weight: 700; font-size: 15px; }
.tool-ap .tool-answer .ap-fb-desc { color: #65676b; font-size: 13px; }
.tool-ap .ap-cta { flex: none; padding: 7px 12px; border-radius: 6px; background: #e4e6eb; color: #1f1f1f; font-size: 13px; font-weight: 600; }
.tool-ap .tool-answer .ap-fb .ap-combo { margin-top: 24px; }
.tool-ap .tool-actions [hidden] { display: none; }
.tool-ap .tool-answer .ap-serp p, .tool-ap .tool-answer .ap-fb p { min-height: 0; }
.tool-ap .tool-answer .ap-lines li span { display: inline; color: #edf0eb; }
.tool-ap .tool-answer .ap-lines .ap-count { color: var(--lime); }
.tool-ap .tool-answer .ap-lines .is-over span { color: #ffb4a6; }
.tool-ap .tool-answer .ap-page span { display: block; }

/* Tracking checker (2026-11-13): URL field, source textarea, check button and result lists. Scoped to .tool-tc. */
.tool-tc .bl-calc-form .tc-wide { grid-column: 1 / -1; }
.tool-tc .bl-calc-form input[type="text"] { padding-right: 12px; }
.tool-tc .bl-calc-form textarea { width: 100%; min-height: 160px; padding: 10px 12px; border: 1px solid #899282; border-radius: 8px; background: #fff; color: var(--text); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.tool-tc .tc-check { margin-top: 10px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--lime); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.tool-tc .tc-check:disabled { opacity: .6; cursor: progress; }
.tool-tc .tool-answer strong { font-size: clamp(28px, 3vw, 40px); }
.tool-tc .tc-tags, .tool-tc .tc-notes { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: #edf0eb; }
.tool-tc .tc-tags li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tool-tc .tool-answer .tc-tags span { display: inline; color: #edf0eb; }
.tool-tc .tool-answer .tc-tags .tc-name { font-weight: 600; min-width: 150px; }
.tool-tc .tool-answer .tc-tags .tc-ids { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.tool-tc .tc-notes li { margin-top: 8px; padding-left: 14px; text-indent: -14px; color: #d2dbca; }
.tool-tc .tc-notes li::before { content: "• "; }
.tool-tc .tc-notes .tc-warn { color: #ffb4a6; }

/* AI visibility checker (2026-11-13): brand fields, honeypot, questions list, check button and result rows. Scoped to .tool-av. */
.tool-av .bl-calc-form .av-wide { grid-column: 1 / -1; }
.tool-av .bl-calc-form input[type="text"] { padding-right: 12px; }
.tool-av .av-opt { font-weight: 400; color: #5b6456; }
.tool-av .av-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tool-av .bl-calc-form textarea { width: 100%; min-height: 140px; padding: 10px 12px; border: 1px solid #899282; border-radius: 8px; background: #fff; color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.tool-av .av-check { margin-top: 10px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--lime); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.tool-av .av-check:disabled { opacity: .6; cursor: progress; }
.tool-av .av-questions { margin-top: 16px; }
.tool-av .av-questions .tool-answer-label { color: #5b6456; }
.tool-av .av-questions ol { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.tool-av .av-questions li + li { margin-top: 4px; }
.tool-av .tool-answer strong { font-size: clamp(28px, 3vw, 40px); }
.tool-av .av-rows, .tool-av .av-notes { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: #edf0eb; }
.tool-av .av-rows li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tool-av .tool-answer .av-rows span { display: block; color: #edf0eb; overflow-wrap: anywhere; }
.tool-av .tool-answer .av-rows .av-q { font-weight: 600; }
.tool-av .tool-answer .av-rows .av-v { color: var(--lime); }
.tool-av .tool-answer .av-rows .av-no .av-v { color: #ffb4a6; }
.tool-av .tool-answer .av-rows .av-s a { color: #edf0eb; text-decoration: underline; }
.tool-av .av-notes li { margin-top: 8px; padding-left: 14px; text-indent: -14px; color: #d2dbca; }
.tool-av .av-notes li::before { content: "• "; }
.tool-av .av-notes .av-fine { color: #b7c0b0; font-size: 13px; }

/* Five-mode tools (CPM calculator, 2026-11-11): one row of tabs on desktop; on phones the
   odd last tab spans the row instead of sitting alone in the left column. */
.tool-tabs:has(> label:nth-of-type(5)) { grid-template-columns: repeat(5, auto); }
@media (max-width: 600px) {
  .tool-tabs:has(> label:nth-of-type(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-tabs > label:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
}

/* ══ Tools index (/tools/) ══════════════════════════════════════════════════════
   Kaan, 2026-11-11: "fix the styling of the tools page. Make a nice one like the blog page
   (without copying the blog page)". A calculator workbench: a split hero with a CSS calculator
   showing the lead tool's example, tool cards with a dark display panel (formula + example),
   and the articles that use each tool. Markup: renderToolsIndex() in lib/render.mjs. */
.ti-main {
  --g: clamp(16px, 4vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(96px, 10vw, 136px) var(--g) clamp(72px, 8vw, 120px);
}
.ti-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.ti-hero .bl-crumbs { margin: 0 0 18px; }
.ti-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--text);
  text-wrap: balance;
}
.ti-intro {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--secondary);
}
.ti-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.ti-facts li {
  display: grid;
  gap: 4px;
  padding: 16px 18px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--secondary);
}
.ti-facts li + li { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.ti-facts strong { color: var(--text); font-weight: 600; }

/* The calculator: dark body, lime readout, paper keys, a lime equals key. */
.ti-device {
  justify-self: end;
  width: min(100%, 380px);
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(160deg, #26352a, #151d18);
  box-shadow: 0 30px 60px -28px rgba(28, 42, 32, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(2.5deg);
}
.ti-screen {
  display: grid;
  gap: 2px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: #0e1410;
  box-shadow: inset 0 0 0 1px rgba(183, 243, 123, 0.12);
  text-align: right;
}
.ti-screen-label { font-size: 13px; color: #9fb3a2; }
.ti-screen strong {
  font-size: clamp(54px, 6vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.ti-screen-sub { font-size: 13px; color: #c3cfc4; }
.ti-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.ti-keys span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.25;
  border-radius: 12px;
  background: #f1efe6;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  box-shadow: inset 0 -3px 0 rgba(28, 42, 32, 0.14);
}
.ti-keys span:nth-child(4n) { background: #dfe3d2; }
.ti-keys span.ti-key-eq { background: var(--lime); }

/* Tool cards in the blog-card shape (Kaan, 2026-11-11: "make some nice cards for them like we
   have nice blog cards"): a drawn cover, then the text. Covers rotate lime / dark / paper. */
.ti-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}
.ti-tool article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid #d7dacd;
  border-radius: 22px;
  background: #f0eee6;
  transition: transform 280ms var(--ease, ease), border-color 280ms, box-shadow 280ms;
}
.ti-tool article:is(:hover, :focus-within) {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(28, 42, 32, 0.45);
}
.ti-cover {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1200 / 750;
  overflow: hidden;
  border-radius: 14px;
  background: var(--lime);
}
.ti-tone-dark .ti-cover {
  background:
    radial-gradient(ellipse 70% 80% at 100% 110%, #b7f37b33, #b7f37b00 70%),
    #1a221d;
}
.ti-tone-paper .ti-cover {
  background:
    radial-gradient(circle at 1px 1px, #1c2a2024 1px, transparent 1.5px) 0 0 / 14px 14px,
    #e9e7dc;
}
.ti-cover-mark {
  position: absolute;
  left: -2cqi;
  bottom: -9cqi;
  font-size: 40cqi;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 0.45cqi rgba(28, 42, 32, 0.16);
  white-space: nowrap;
  transition: transform 700ms var(--ease, ease);
}
.ti-tone-dark .ti-cover-mark { -webkit-text-stroke-color: rgba(183, 243, 123, 0.22); }
.ti-cover-screen {
  position: absolute;
  top: 8%;
  right: 7%;
  display: flex;
  flex-direction: column;
  gap: 1.2cqi;
  width: 56%;
  padding: 4cqi 4.4cqi;
  border-radius: 4cqi;
  background: #151d18;
  box-shadow: 0 0 0 1.6cqi #222e26, 0 4cqi 8cqi -3cqi rgba(10, 16, 12, 0.55);
  color: #9fb3a2;
  font-size: 3.4cqi;
  line-height: 1.25;
  transform: rotate(-4deg);
  transition: transform 700ms var(--ease, ease);
}
.ti-tone-dark .ti-cover-screen { background: #f1efe6; box-shadow: 0 0 0 1.6cqi #dfe3d2, 0 4cqi 8cqi -3cqi rgba(0, 0, 0, 0.6); color: #536056; transform: rotate(3deg); }
.ti-cover-screen strong {
  font-size: 12cqi;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.ti-tone-dark .ti-cover-screen strong { color: #1c2a20; }
.ti-cover-screen em { font-style: normal; color: #c3cfc4; }
.ti-tone-dark .ti-cover-screen em { color: #536056; }
.ti-cover-formula {
  position: absolute;
  left: 5%;
  bottom: 7%;
  max-width: 90%;
  padding: 1.8cqi 3cqi;
  white-space: nowrap;
  border-radius: 2.4cqi;
  background: #fbfaf5;
  box-shadow: 0 2cqi 5cqi -2cqi rgba(28, 42, 32, 0.35);
  color: #1c2a20;
  font-size: 3.4cqi;
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(-1.5deg);
}
.ti-tone-dark .ti-cover-formula { background: var(--lime); }
.ti-tone-paper .ti-cover-formula { background: #1c2a20; color: var(--lime); }
.ti-tool article:is(:hover, :focus-within) .ti-cover-screen { transform: rotate(-1deg) translateY(-1.5cqi); }
.ti-tone-dark article:is(:hover, :focus-within) .ti-cover-screen { transform: rotate(1deg) translateY(-1.5cqi); }
.ti-tool article:is(:hover, :focus-within) .ti-cover-mark { transform: translateX(2cqi); }
.ti-tool-body { display: flex; flex: 1; flex-direction: column; padding: 20px 14px 10px; }
.ti-kicker { margin: 0; font-size: 13px; color: var(--label); }
.ti-tool h2 { margin: 12px 0 0; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -0.03em; }
.ti-tool-link { color: var(--text); text-decoration: none; }
.ti-tool-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ti-tool-link:focus-visible { outline: none; }
.ti-tool article:has(.ti-tool-link:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.ti-tool-desc {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ti-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.ti-modes li {
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
}
.ti-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.ti-open-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime);
  box-shadow: inset 0 -3px 0 rgba(28, 42, 32, 0.18);
}

/* Articles that use the tools. */
.ti-read { margin-top: clamp(56px, 7vw, 96px); }
.ti-read-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ti-read-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.ti-read-head a { flex: none; color: var(--secondary); font-size: 14px; text-decoration: none; }
.ti-read-head a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ti-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ti-card article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ti-card article:is(:hover, :focus-within) { border-color: var(--ink); transform: translateY(-3px) rotate(-0.4deg); }
.ti-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #e9e7dc; }
.ti-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ti-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px 18px 18px; }
.ti-card-k { margin: 0; font-size: 13px; color: var(--label); }
.ti-card h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.ti-card-link { color: var(--text); text-decoration: none; }
.ti-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ti-card-link:focus-visible { outline: none; }
.ti-card article:has(.ti-card-link:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.ti-card-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: auto 0 0;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: #1c2a20;
  color: #f1efe6;
  font-size: 13px;
}
.ti-card-tool span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #1c2a20;
  font-weight: 700;
}

/* Breadcrumb and page tag share one row (Kaan, 2026-11-11: "fix the breadcrumb line so it
   isn't taking up that much realestate"). Blog archive and Tools index. */
.bl-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bl-hero-top .bl-crumbs ol,
.ba-hero .bl-hero-top .bl-crumbs ol { margin: 0; }
.bl-hero-top .dx-eyebrow { margin: 0 !important; line-height: 1.5; }
.bl-hero-top .bl-crumbs ol { line-height: 1.5; }
.ti-hero .bl-hero-top .bl-crumbs, .bl-hero-top .bl-crumbs { margin: 0; }
.ba-hero .bl-hero-top + .ba-display { margin-top: 18px; }

@media (min-width: 901px) {
  .ti-hero { grid-template-areas: "text device" "facts device"; }
  .ti-hero-text { grid-area: text; align-self: end; }
  .ti-device { grid-area: device; }
  .ti-facts { grid-area: facts; align-self: start; margin-top: 0; }
  .ti-hero { row-gap: 36px; }
}
@media (max-width: 900px) {
  .ti-hero { grid-template-columns: 1fr; gap: 28px; }
  .ti-device { justify-self: start; transform: rotate(-1.5deg); width: min(100%, 340px); }
  .ti-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ti-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: the calculator stays (Kaan, 2026-11-11: "the top part of mobile here … no visual
   pizzazz"), as a wide tilted display with one row of keys; the facts become a swipe row. */
@media (max-width: 640px) {
  .ti-main { padding-top: 92px; }
  .ti-hero { gap: 22px; }
  .ti-hero h1 { margin-top: 14px; font-size: clamp(40px, 12vw, 54px); }
  .ti-intro { margin-top: 14px; font-size: 17px; }
  .ti-device {
    justify-self: stretch;
    width: auto;
    margin: 4px 6px 0;
    padding: 12px;
    border-radius: 24px;
    transform: rotate(-2deg);
  }
  .ti-screen { grid-template-columns: 1fr auto; align-items: end; padding: 14px 16px; text-align: left; }
  .ti-screen-label { grid-column: 1 / -1; }
  .ti-screen strong { font-size: 56px; }
  .ti-screen-sub { justify-self: end; max-width: 9em; text-align: right; }
  .ti-keys { gap: 8px; margin-top: 10px; }
  .ti-keys span { aspect-ratio: auto; height: 40px; font-size: 17px; border-radius: 10px; }
  .ti-keys span:nth-child(-n+12) { display: none; }
  .ti-facts {
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * var(--g));
    padding: 0 var(--g) 4px;
    border: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--g);
    scrollbar-width: none;
  }
  .ti-facts::-webkit-scrollbar { display: none; }
  .ti-facts li, .ti-facts li + li {
    flex: 0 0 68%;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--paper);
    scroll-snap-align: start;
  }
  .ti-facts strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(183, 243, 123, 0.35); vertical-align: 2px; }
  .ti-tools { grid-template-columns: 1fr; gap: 14px; }
  .ti-tool-body { padding: 16px 8px 8px; }
  .ti-tool h2 { margin-top: 8px; }
  .ti-modes { display: none; }
  .ti-open { padding-top: 16px; }
  .ti-read-head h2 { font-size: 24px; }
  .ti-cards {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--g));
    padding: 4px var(--g) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--g);
    scrollbar-width: none;
  }
  .ti-cards::-webkit-scrollbar { display: none; }
  .ti-card { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ti-tool article, .ti-card article, .ti-cover-screen, .ti-cover-mark { transition: none; }
  .ti-tool article:is(:hover, :focus-within), .ti-card article:is(:hover, :focus-within) { transform: none; }
}

/* Tool guides quote whole links (UTM builder): let them wrap instead of widening the page on phones
   (2026-11-12: the UTM page was 601 px wide at 390). */
.tool-guide {
  overflow-wrap: anywhere;
}

.report-fields { display: grid; gap: 12px; min-width: 0; }
.report-fields label, .report-answer label, .meta-report-choice {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}
.report-fields input:not([type=checkbox], [type=range]),
.report-fields select, .report-fields textarea, .report-answer textarea,
.meta-report-choice select {
  max-width: 100%;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #899282;
  border-radius: 8px;
  background: #fff;
  color: #182218;
  font: inherit;
  font-size: 16px;
}
.report-fields textarea, .report-answer textarea { resize: vertical; }
.report-fields .report-checkbox { display: flex; align-items: center; gap: 8px; }
.report-answer { min-width: 0; grid-row: auto; }
.tool-calc .report-answer p { min-height: 0; margin-top: 0; }
.report-answer textarea { margin-top: 8px; }
.report-tool [hidden], .tool-ap [hidden] { display: none; }
.report-tool button:disabled, .ap-safe button:disabled { opacity: .55; cursor: default; }
.meta-report { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ccd3c8; }
.meta-report-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-report-choice { margin-bottom: 12px; }
.meta-report-output th, .meta-report-output td { font-variant-numeric: tabular-nums; }
.ap-safe-controls { grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr); align-items: end; }
.ap-safe-controls button, .meta-report button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #899282;
  border-radius: 8px;
  background: #fff;
  color: #182218;
  font: inherit;
  cursor: pointer;
}
.meta-report button:first-child { background: #202e23; color: #fff; }
.ap-safe-controls input[type=range] { min-width: 0; min-height: 44px; width: 100%; }
.ap-safe-controls input[type=range], .report-checkbox input { accent-color: #405b38; }
.ap-safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-safe-grid figure { min-width: 0; margin: 0; }
.ap-safe-grid figcaption { margin: 0 0 6px; font-size: 14px; color: inherit; }
.ap-safe-grid canvas { display: block; width: 100%; height: auto; border-radius: 10px; }
.ap-safe-note { font-size: 14px; }
@media (max-width: 570px) {
  .meta-report-files { grid-template-columns: 1fr; }
  .ap-safe-controls { grid-template-columns: auto minmax(0, 1fr); }
  .ap-safe-controls > label:first-child { grid-column: 1 / -1; }
  .ap-safe-grid { gap: 7px; }
  .ap-safe-grid figcaption { min-height: 2.5em; font-size: 12px; }
  .meta-report-output th, .meta-report-output td { padding: 6px; font-size: 13px; }
}

/* Blog archive: the free tools strip under the topics (2026-11-12). Three columns on desktop. */
.ba-tools .bl-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .ba-tools .bl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ba-tools .bl-cards {
    grid-template-columns: 1fr;
  }
}
