/* /blog/ + /blog/<slug>/ page-only CSS (zf insights + article, tokens from zf.css; light island = --paper) */

/* ---- shared ---- */
.blog-crumbs { color: var(--ink-2); font-weight: 500; }
.blog-crumbs a { color: var(--ink-2); }
.blog-crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.blog-crumbs [aria-current] { font-weight: 400; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- index hero ---- */
.blog-hero { background: var(--paper); color: var(--ink); padding: 80px 0; }
.blog-hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blog-hero__h { margin-top: 24px; max-width: 720px; font-size: 48px; line-height: 60px; font-weight: 500; }
.blog-hero__p { margin: 16px auto 32px; max-width: 720px; font-size: 18px; line-height: 27px; color: var(--ink-2); }
.blog-search { position: relative; width: 100%; max-width: 390px; }
.search-pill { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; background: #fff; border: 1px solid var(--paper-line); border-radius: 9999px; transition: border-color var(--dur-2); }
.search-pill:focus-within { border-color: var(--accent-ink); }
.search-pill svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-pill input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; line-height: 27px; color: var(--ink); outline: none; }
.search-pill input::placeholder { color: var(--ink-2); opacity: .8; }
.search-suggest { position: absolute; z-index: 9; top: 100%; left: 0; right: 0; margin-top: 8px; padding: 4px; text-align: left; background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); max-height: 300px; overflow-y: auto; }
.search-suggest a, .search-suggest span { display: block; padding: 12px; border-radius: 12px; font-size: 14px; line-height: 21px; color: #3F3F46; }
.search-suggest a:hover, .search-suggest a:focus-visible { background: var(--paper-hover); color: var(--ink); }

/* ---- featured ---- */
.blog-featured { background: #fff; color: var(--ink); padding: 60px 0; }
.featured { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; background: var(--paper); color: inherit; transition: transform var(--dur-3) ease-in-out; }
.featured__txt { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.featured__meta { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.featured__meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.featured__h { margin: 24px 0; font-size: 26px; line-height: 34px; font-weight: 400; letter-spacing: -0.52px; color: #18181B; text-wrap: balance; }
.featured__p { margin-bottom: 24px; font-size: 16px; line-height: 24px; color: #3F3F46; }
.featured__img { min-height: 0; display: grid; place-items: center; background: #010102; }
.featured__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }   /* photoreal mockup card, whole and centred */
@media (hover: hover) and (pointer: fine) {
  .featured:hover { transform: scale(1.03); }
  .featured:hover .btn--black { background: transparent; color: var(--ink); border-color: var(--accent-ink); }
}

/* ---- filters + results ---- */
.blog-list { background: var(--paper); color: var(--ink); padding: 60px 0; }
.blog-list__grid { display: grid; grid-template-columns: minmax(100px, 392px) minmax(100px, 896px); gap: 32px; justify-content: center; align-items: start; }
.blog-filters { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.filters-card { display: flex; flex-direction: column; gap: 20px; padding: 20px; background: #fff; border-radius: 12px; }
.filters-card__top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.filters-card__t { font-size: 18px; line-height: 28px; font-weight: 500; color: #000; }
.filters-card__clear { min-height: 44px; padding: 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; color: #3F3F46; }
.filters-card__clear[hidden] { display: none; }
.fsel { display: flex; flex-direction: column; gap: 6px; }
.fsel__l { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.fsel__w { position: relative; display: block; }
.fsel select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 12px 40px 12px 12px; border: 1px solid #FAFAFA; border-radius: 8px; background: var(--paper); font-size: 14px; line-height: 20px; color: #3F3F46; cursor: pointer; }
.fsel select.is-set { color: #18181B; font-weight: 500; }
.fsel__w svg { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: #3F3F46; stroke-width: 2; stroke-linecap: round; pointer-events: none; transition: transform var(--dur-2) ease; }
.fsel select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.promo { gap: 0; margin-top: 56px; }
.promo__t { font-size: 18px; line-height: 28px; font-weight: 500; }
.promo__p { margin: 11px 0 8px; font-size: 16px; line-height: 24px; color: #3F3F46; }
.promo .link-arrow { color: #000; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.results-grid > li { display: flex; }
.results-grid .note-card { width: 100%; }
.results-grid [hidden] { display: none !important; }
.results-empty { padding: 48px 0; text-align: center; font-size: 18px; line-height: 27px; color: var(--ink-2); }
.results-cta { display: grid; grid-template-columns: 1fr 224px; gap: 24px; align-items: center; margin-top: 32px; padding: 40px; border-radius: 12px; color: var(--ink); background:
  radial-gradient(70% 120% at 100% 0%, rgba(173, 150, 241, .55), transparent 70%),
  radial-gradient(60% 100% at 0% 100%, rgba(88, 246, 177, .35), transparent 70%), #fff; }
.results-cta__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.results-cta__h { font-size: 26px; line-height: 34px; font-weight: 400; letter-spacing: -0.52px; }
.results-cta p { font-size: 16px; line-height: 24px; color: #3F3F46; }
.results-cta__art { width: 100%; max-width: 224px; color: var(--accent-ink); justify-self: end; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.pager__side { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; line-height: 20px; font-weight: 500; color: #52525B; }
.pager__side.is-disabled { opacity: .45; }
.pager__circle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #18181B; }
.pager__circle svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pager__nums { display: flex; gap: 4px; }
.pager__n { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; font-size: 14px; font-weight: 500; color: #52525B; }
.pager__n.is-active { background: #18181B; color: #fff; }

/* ---- article ---- */
.art-head { background: var(--paper); color: var(--ink); padding-top: 80px; }
.art-head__in { max-width: 800px; }
.art-head__h { margin: 24px 0 12px; font-size: 44px; line-height: 60px; font-weight: 500; letter-spacing: -0.88px; color: #18181B; text-wrap: balance; }
.art-head__dek { max-width: 62ch; font-size: 18px; line-height: 27px; color: #3F3F46; }
.art-head__meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.art-head__meta span + span::before { content: "·"; margin-right: 8px; }
.art-head__meta a { text-decoration: underline; color: #3F3F46; }
.art-cover { max-width: 880px; margin: 0 auto; padding: 48px 0; }
.art-cover img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }   /* photoreal mockup card */
.art-body { background: var(--paper); color: var(--ink); padding-bottom: 80px; }
.art-grid { display: grid; grid-template-columns: minmax(100px, 200px) minmax(100px, 800px) minmax(100px, 230px); gap: 24px; justify-content: center; align-items: start; }
.toc summary { display: none; }
.toc { position: sticky; top: 120px; height: fit-content; }
.toc__list { display: flex; flex-direction: column; gap: 13px; }
.toc__list li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; }
.toc__list li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: #27272A; opacity: 0; }
.toc__list li.is-active::before { opacity: 1; }
.toc__list a { color: #6B6B76; }
.toc__list li.is-active a { color: #27272A; }
.toc__list a:hover { color: var(--accent-ink); }
.prose { padding: 20px 16px; font-size: 18px; line-height: 30px; color: #1B1818; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.02em; color: #18181B; scroll-margin-top: 110px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; list-style: disc; }
.prose li::marker { color: var(--accent-ink); }
.prose__ph { font-size: 14px; line-height: 20px; color: var(--ink-2); font-style: italic; }
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 56px !important; padding: 24px; background: #fff; border: 1px solid var(--paper-line); border-radius: 12px; font-size: 16px; line-height: 24px; }
.author__ph { flex: none; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--paper-line); font-weight: 600; color: var(--accent-ink); }
.author__k { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.author__n { font-size: 20px; line-height: 28px; font-weight: 500; }
.author__p { margin: 4px 0 4px; color: #3F3F46; }
.art-aside { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.share { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border-radius: 12px; }
.share:first-child { position: sticky; top: 120px; }
.share__t { font-size: 14px; line-height: 19px; font-weight: 500; color: #3F3F46; }
.share__row { display: flex; flex-wrap: wrap; gap: 4px; }
.share__b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: #52525B; transition: background-color var(--dur-2), color var(--dur-2); }
.share__b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share__b:hover { background: #18181B; color: #fff; }
.share__note { padding: 6px 8px; border-radius: 6px; background: var(--paper); font-size: 13px; line-height: 18px; color: #3F3F46; }
.share__note[hidden] { display: none; }
.share.ask .link-arrow { color: #000; font-size: 14px; }
.share.ask { gap: 8px; }

/* ---- related ---- */
.related { background: var(--paper); color: var(--ink); padding: 60px 0; border-top: 1px solid var(--paper-line); }
.related__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.related__h { font-size: 36px; line-height: 40px; font-weight: 500; color: #18181B; }
.related__btns { display: flex; gap: 12px; }
.related__nav { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 44px; border-radius: 28px; background: #18181B; color: #fff; transition: background-color var(--dur-2); }
.related__nav:disabled { background: #DFDFDE; cursor: not-allowed; }
.related__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.related__track { display: flex; gap: 30px; margin-top: 48px; padding: 4px 4px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.related__track::-webkit-scrollbar { display: none; }
.rel-item { flex: none; width: 410px; scroll-snap-align: start; display: flex; }
.rel-item .note-card { width: 100%; }

/* ---- responsive ---- */
@media (max-width: 991px) {
  .art-grid { display: block; }
  .art-grid { display: flex; flex-direction: column; gap: 8px; }
  .toc { position: static; }
  .toc summary { display: flex; align-items: center; min-height: 44px; padding: 0 16px; background: #fff; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; }
  .toc__list { padding: 16px; }
  .toc__list { gap: 0; }
  .toc__list li { align-items: center; }
  .toc__list li::before { margin-top: 0; }
  .toc__list a { display: flex; align-items: center; min-height: 44px; }
  .toc__list a { color: #3F3F46; }
  .share:first-child { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .share__row { gap: 8px; }
  .blog-list__grid { grid-template-columns: 1fr; }   /* also phone landscape: cards stay full width */
  .blog-filters { position: static; }
  .prose { padding-left: 0; padding-right: 0; }
  .rel-item { width: 327px; }
  .blog-crumbs { display: none; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 32px 0; }
  .blog-featured, .blog-list { padding: 32px 0; }
  .featured { grid-template-columns: 1fr; }
  .featured__txt { padding: 16px; }
  .featured__h { font-size: 20px; line-height: 28px; margin: 24px 0 8px; }
  .promo { display: none; }
  .art-head { padding-top: 32px; }
  .art-cover { padding: 32px 0 0; }
  .art-body { padding-bottom: 32px; }
  .related__btns { display: none; }   /* phones swipe the snap track */
  .related__track { margin-top: 24px; }
}
@media (max-width: 575px) {
  .blog-hero__in { align-items: flex-start; text-align: left; }
  .blog-hero__h { font-size: 36px; line-height: 54px; }
  .blog-hero__p { font-size: 16px; line-height: 24px; margin-bottom: 24px; }
  .blog-search { max-width: none; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .results-cta { grid-template-columns: 1fr; padding: 24px; }
  .results-cta__art { display: none; }
  .note-card__body { padding: 16px; }
  .art-head__h { font-size: 32px; line-height: 44px; letter-spacing: -0.64px; }
  .art-head__meta { flex-direction: column; gap: 4px; }
  .art-head__meta span + span::before { content: none; }
  .prose { font-size: 17px; line-height: 28px; }
  .prose h2 { margin-top: 40px; font-size: 24px; line-height: 32px; }
  .author { flex-direction: column; padding: 16px; }
  .pager { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .featured { transition: none; } .featured:hover { transform: none; } }
.author .link-arrow, .art-body .link-arrow { color: var(--ink); }

/* zf insights index container 1440 / 60 (24 phone); article container 1260 / 80 (24 phone) */
/* scoped to main: the shared header/footer keep the root 1200 container (logo at the same x on every page) */
@media (min-width: 992px) { main:has(.blog-hero) { --container: 1440px; --gutter: 60px; } }
main:has(.art) { --container: 1260px; }
