/* ==========================================================================
   Blog: blog.html (/blog) and blog-<slug>.html (/blog/<slug>), written by
   tools/build-blog.py. Hand-written and linked directly, after css/work.css,
   whose tokens (.wk-page), wrap, eyebrow, buttons and CTA panel it reuses.
   Class prefix: bl-.

   Reading first: the article column is held to about 68 characters, the
   body is 18px on desktop and 17px on phones, and nothing on a blog page
   animates on phones or with reduced motion. The only script is
   js/blog.js (the contents list), next to the shared header.
   ========================================================================== */

.bl { --measure: 690px; }

/* ---------- page head ---------- */
.bl-head { padding: 136px 0 56px; }
.bl-head__in { max-width: 920px; }
.bl--post .bl-head__in { margin-left: max(24px, (100% - var(--wrap)) / 2); }
.bl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.bl-crumbs li { display: inline-flex; align-items: center; }
.bl-crumbs li + li::before {
  content: ''; width: 6px; height: 6px; margin: 0 12px; flex: none;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55;
}
.bl-crumbs a { color: var(--royal); font-weight: 600; text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-crumbs [aria-current] { color: var(--muted); }

.bl-title {
  font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 680;
  max-width: 22ch; margin-bottom: 22px;
}
.bl-title--index { font-size: clamp(40px, 5.6vw, 76px); max-width: 17ch; letter-spacing: -0.045em; }
.bl-dek { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--text); max-width: 40em; }

.bl-byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line-2); max-width: 40em; }
.bl-byline__img, .bl-author__img { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(192, 138, 30, 0.55); }
.bl-byline__text { display: grid; gap: 3px; font-size: 15px; line-height: 1.4; }
.bl-byline__by { color: var(--text); }
.bl-byline__by a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(192, 138, 30, 0.6); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bl-byline__by a:hover { color: var(--royal); text-decoration-color: currentColor; }
.bl-byline__meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--muted); font-size: 14px; }

/* Cover image (tools/make-covers.mjs). Its box is reserved by width/height. */
.bl-cover { margin-top: 36px; }
.bl-cover img {
  width: 100%; height: auto; border-radius: 22px; background: #112f6c;
  box-shadow: var(--sh-3);
}

/* ---------- article layout ---------- */
.bl-layout {
  display: grid; grid-template-columns: 220px minmax(0, var(--measure)); justify-content: start; gap: 72px;
  padding: 8px 0 40px;
}
.bl-toc { position: relative; }
.bl-toc__in { position: sticky; top: 112px; padding-top: 6px; }
.bl-toc__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.bl-toc ol { border-left: 2px solid var(--line-2); }
.bl-toc li a {
  display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none;
}
.bl-toc li a:hover { color: var(--ink); }
.bl-toc li a[aria-current="true"] { color: var(--royal); border-left-color: #c08a1e; -webkit-text-stroke: 0.3px currentColor; }
.bl-toc__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--royal); text-decoration: none; }
.bl-toc__back:hover { text-decoration: underline; text-underline-offset: 3px; }

.bl-article { min-width: 0; }
.bl-toc-m { display: none; }

/* ---------- prose ---------- */
.bl-prose { color: var(--text); }
.bl-prose > * + * { margin-top: 20px; }
.bl-prose p, .bl-prose li { font-size: 18px; line-height: 1.75; }
.bl-prose > p:first-child { font-size: 20px; line-height: 1.65; color: var(--ink); }
.bl-prose h2 {
  font-size: clamp(26px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 650;
  margin-top: 64px; margin-bottom: -2px; scroll-margin-top: 104px;
}
.bl-prose h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 640; margin-top: 36px; margin-bottom: -6px; }
.bl-prose h2 + h3 { margin-top: 24px; }
.bl-prose strong { color: var(--ink); font-weight: 620; }
.bl-prose a:not([class]) {
  color: var(--royal); font-weight: 500; text-decoration: underline;
  text-decoration-color: rgba(31, 79, 184, 0.35); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.bl-prose a:not([class]):hover { text-decoration-color: currentColor; }
.bl-prose ul, .bl-prose ol { display: grid; gap: 10px; }
.bl-prose ul > li { position: relative; padding-left: 26px; }
.bl-prose ul > li::before {
  content: ''; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%;
  background: #c08a1e; box-shadow: 0 0 0 3px rgba(192, 138, 30, 0.16);
}
.bl-prose ol { counter-reset: bl; }
.bl-prose ol > li { position: relative; padding-left: 38px; counter-increment: bl; }
.bl-prose ol > li::before {
  content: counter(bl); position: absolute; left: 0; top: 0.18em; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 650; line-height: 1;
  color: var(--royal-deep); background: #e8eefb; box-shadow: inset 0 0 0 1px rgba(31, 79, 184, 0.18);
}

/* A short answer or a rule of thumb, set apart from the text. */
.bl-note {
  padding: 22px 24px; border-radius: 18px; background: #fff;
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line), inset 4px 0 0 #c08a1e;
}
.bl-note p { font-size: 17px; }
.bl-note p + p { margin-top: 10px; }
.bl-note__label { display: block; margin-bottom: 6px; font-size: 12px !important; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }

/* Tables (pricing comparisons): scroll inside their own box on phones. */
.bl-table { overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.bl-table:focus-visible { outline: 3px solid #e2ad3b; outline-offset: 3px; }
.bl-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.bl-table th, .bl-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.bl-table thead th { font-size: 13px; font-weight: 650; letter-spacing: 0.04em; color: var(--ink); background: #f0f4fb; }
.bl-table tbody tr + tr td, .bl-table tbody tr + tr th { border-top: 1px solid var(--line); }
.bl-table tbody th { font-weight: 600; color: var(--ink); }

/* Screenshots from our own case studies. */
.bl-prose > .bl-fig { margin-top: 32px; margin-bottom: 12px; }
.bl-fig img {
  width: 100%; height: auto; border-radius: 16px; background: #e9eef7;
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.bl-fig--narrow { max-width: 460px; }
.bl-fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.bl-fig figcaption a { color: var(--royal); font-weight: 600; white-space: nowrap; }

/* Gaps only Aman can fill. Visible on purpose until they are filled. */
.bl-todo { padding: 1px 6px; border-radius: 6px; background: #fff1bf; color: #4a3300; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(143, 98, 16, 0.35); }

/* ---------- FAQ ---------- */
.bl-faq, .bl-svcs { margin-top: 72px; }
.bl-faq h2, .bl-svcs h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 650; margin-bottom: 22px; scroll-margin-top: 104px; }
.bl-faq { scroll-margin-top: 104px; }
.bl-faq__list { border-top: 1px solid var(--line-2); }
.bl-faq__item { border-bottom: 1px solid var(--line-2); }
.bl-faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink);
}
.bl-faq__item summary::-webkit-details-marker { display: none; }
.bl-faq__item summary:hover { color: var(--royal); }
.bl-faq__item summary:focus-visible { outline: 3px solid #e2ad3b; outline-offset: 2px; border-radius: 8px; }
.bl-faq__icon { position: relative; flex: none; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.bl-faq__icon::before, .bl-faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; border-radius: 2px; background: var(--royal); }
.bl-faq__icon::after { transform: rotate(90deg); }
.bl-faq__item[open] .bl-faq__icon::after { transform: none; }
.bl-faq__a { padding: 0 48px 22px 0; }
.bl-faq__a p { font-size: 17px; line-height: 1.7; color: var(--text); }
.bl-faq__a p + p { margin-top: 12px; }
.bl-faq__a a { color: var(--royal); font-weight: 500; text-underline-offset: 3px; }

/* ---------- related services ---------- */
.bl-svcs__list { display: grid; gap: 12px; }
.bl-svc {
  position: relative; display: grid; gap: 4px; padding: 20px 64px 20px 22px; border-radius: 18px;
  background: #fff; text-decoration: none; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.bl-svc b { font-size: 17px; font-weight: 650; color: var(--ink); }
.bl-svc span:not(.bl-svc__go) { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bl-svc__go { position: absolute; right: 22px; top: 50%; margin-top: -9px; color: var(--royal); }
.bl-svc:hover { box-shadow: var(--sh-2), inset 0 0 0 1px rgba(31, 79, 184, 0.3); }
.bl-svc:hover b { color: var(--royal); }

/* ---------- author ---------- */
.bl-author {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7f9fd); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.bl-author__name { font-size: 17px; font-weight: 650; }
.bl-author__name a { color: var(--ink); text-decoration: none; }
.bl-author__name a:hover { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.bl-author__role { font-size: 14px; color: var(--muted); margin-top: 2px !important; }
.bl-author__text { font-size: 15.5px; line-height: 1.6; color: var(--text); margin-top: 10px !important; }

/* ---------- cards (index, keep reading) ---------- */
.bl-list { padding: 0 0 72px; }
.bl-more { padding: 56px 0 72px; }
.bl-more__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 660; margin-bottom: 28px; }
.bl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bl-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-card__link {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 30px 26px; border-radius: 24px;
  background: #fff; text-decoration: none; color: var(--text);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.bl-cards:not(.bl-cards--3) > li:first-child { grid-column: 1 / -1; }
.bl-cards:not(.bl-cards--3) > li:first-child .bl-card__link { padding: 40px 40px 34px; background: linear-gradient(160deg, #ffffff 40%, #f4f1e8); }
.bl-cards:not(.bl-cards--3) > li:first-child .bl-card__title { font-size: clamp(26px, 2.8vw, 38px); max-width: 24ch; }
.bl-cards:not(.bl-cards--3) > li:first-child .bl-card__text { max-width: 44em; }
.bl-card__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.bl-card__title { font-size: 22px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.bl-card__text { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 22px; }
.bl-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.bl-card__go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--royal); background: #eef3fb; }
.bl-card__link:hover .bl-card__title { color: var(--royal); }
.bl-card__link:focus-visible { outline: 3px solid #e2ad3b; outline-offset: 3px; }

.bl-cta { padding-top: 24px; }

/* ---------- motion: desktop pointer only ---------- */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:has(.bl-page) { scroll-behavior: smooth; }
  .bl-card__link, .bl-svc { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
  .bl-card__link:hover, .bl-svc:hover { transform: translateY(-3px); }
  .bl-card__go, .bl-svc__go { transition: transform 0.35s var(--ease); }
  .bl-card__link:hover .bl-card__go, .bl-svc:hover .bl-svc__go { transform: translateX(3px); }
  .bl-faq__icon::after { transition: transform 0.25s var(--ease); }
  .bl-toc li a { transition: color 0.2s, border-color 0.2s; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .bl-layout { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
  .bl--post .bl-head__in { margin-left: auto; margin-right: auto; max-width: var(--measure); }
  .bl-toc { display: none; }
  .bl-toc-m {
    display: block; margin-bottom: 36px; border-radius: 18px; background: #fff;
    box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  }
  .bl-toc-m summary {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; list-style: none;
    font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  }
  .bl-toc-m summary::-webkit-details-marker { display: none; }
  .bl-toc-m summary::after {
    content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--royal); border-bottom: 2px solid var(--royal);
    transform: translateY(-2px) rotate(45deg);
  }
  .bl-toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .bl-toc-m summary:focus-visible { outline: 3px solid #e2ad3b; outline-offset: 2px; }
  .bl-toc-m ol { padding: 0 20px 14px; display: grid; }
  .bl-toc-m li + li { border-top: 1px solid var(--line); }
  .bl-toc-m a { display: block; padding: 11px 0; font-size: 16px; line-height: 1.4; color: var(--royal); text-decoration: none; }
  .bl-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bl-head { padding: 100px 0 36px; }
  .bl-crumbs ol { margin-bottom: 22px; font-size: 13.5px; }
  .bl-title { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.1; }
  .bl-title--index { font-size: clamp(36px, 10vw, 48px); }
  .bl-dek { font-size: 17.5px; }
  .bl-byline { margin-top: 26px; padding-top: 20px; }
  .bl-byline__img, .bl-author__img { width: 48px; height: 48px; }
  .bl-cover { margin-top: 28px; }
  .bl-cover img { border-radius: 16px; }
  .bl-fig img { border-radius: 12px; }
  .bl-prose p, .bl-prose li { font-size: 17px; line-height: 1.72; }
  .bl-prose > p:first-child { font-size: 18.5px; }
  .bl-prose h2 { margin-top: 52px; font-size: 25px; }
  .bl-prose h3 { font-size: 19.5px; }
  .bl-note { padding: 18px 18px; }
  .bl-faq, .bl-svcs { margin-top: 56px; }
  .bl-faq__item summary { font-size: 17px; }
  .bl-faq__a { padding-right: 0; }
  .bl-author { padding: 20px; gap: 14px; }
  .bl-cards, .bl-cards--3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bl-card__link, .bl-cards:not(.bl-cards--3) > li:first-child .bl-card__link { padding: 24px 22px 20px; }
  .bl-cards:not(.bl-cards--3) > li:first-child .bl-card__title { font-size: 25px; }
  .bl-card__title { font-size: 20px; }
  .bl-more { padding: 40px 0 56px; }
  .bl-list { padding-bottom: 48px; }
}

/* Phones and reduced motion: nothing in the blog's content moves, including
   the shared buttons' hover and settle transitions from css/work.css. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .bl *, .bl *::before, .bl *::after { transition: none !important; animation: none !important; }
}

/* Phones (2026-11-23): body copy at least 16px, breadcrumb links thumb-sized. */
@media (max-width: 767px) {
  .bl-author__text, .bl-table td { font-size: 16px; }
  .bl-fig figcaption { font-size: 15px; }
  .bl-crumbs ol { margin-bottom: 18px; }
  .bl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}
