/* Public blog in the torrocrm.com landing design. Shell values mirror the frontend's
   src/components/Landing/home/LandingHome{Header,Footer,Button}.vue Tailwind classes. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-tight-cyrillic-ext-wght-normal.woff2') format('woff2-variations'),
    url('fonts/inter-tight-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-tight-cyrillic-wght-normal.woff2') format('woff2-variations'),
    url('fonts/inter-tight-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2-variations'),
    url('fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations'),
    url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lp-primary: #2f54eb;
  --lp-primary-hover: #2446d6;
  --lp-primary-soft: #eef2fe;
  --lp-ink: #1a1a1c;
  --lp-body: #5c6370;
  --lp-bg: #ffffff;
  --lp-bg-2: #f9fafb;
  --lp-bg-3: #f4f5f8;
  --lp-dark: #1a1a1c;
  --lp-stroke: #dfe4eb;
  --lp-cyan-soft: #cdf5f8;
  --lp-acc-cyan: #83e7ee;
  --lp-on-dark: #ffffff;
  --lp-on-dark-muted: rgba(255, 255, 255, 0.72);
  --lp-dark-stroke: rgba(255, 255, 255, 0.14);
  --lp-telegram: #229ed9;
  --lp-shadow-pop: 0 24px 48px -24px rgba(16, 24, 40, 0.25);
  --lp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --site-fast: 150ms var(--lp-ease);

  --blog-text: #2e323a;

  /* The landing's pill is --lp-bg-3 on a white page; the blog page itself is --lp-bg-3,
     so the pill flips to white to stay visible, and hover fills flip to --lp-bg-3. */
  --site-bar-bg: var(--lp-bg);
  --site-bar-hover: var(--lp-bg-3);
  --site-header-h: 76px;
}

/* ── Base ─────────────────────────────────────────────────────────── */

/* Zero-specificity descendants so .site-container's content-box still applies. */
body.site,
:where(body.site) *,
:where(body.site) *::before,
:where(body.site) *::after {
  box-sizing: border-box;
}

body.site {
  margin: 0;
  background: var(--lp-bg-3);
  color: var(--lp-body);
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.site) {
    scroll-behavior: smooth;
  }
}

body.site summary {
  list-style: none;
  cursor: pointer;
}

body.site summary::-webkit-details-marker {
  display: none;
}

.site-icon {
  display: block;
  flex-shrink: 0;
}

[id^="section-"] {
  scroll-margin-top: calc(var(--site-header-h) + 16px);
}

.site-container {
  box-sizing: content-box;
  max-width: 1290px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Same side gutter as the header pill and the landing's sections (px-4 ds-md:px-6). */
@media (min-width: 768px) {
  .site-container {
    padding-inline: 24px;
  }
}

:where(body.site) :is(a, summary, button):focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}

/* ── Buttons (LandingHomeButton.vue) ───────────────────────────────── */

.site-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition-property: color, background-color, border-color;
  transition-timing-function: var(--lp-ease);
  transition-duration: 200ms;
}

.site-btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  line-height: 24px;
}

.site-btn-primary {
  background: var(--lp-primary);
  color: var(--lp-on-dark);
}

.site-btn-ghost {
  border: 1px solid var(--lp-stroke);
  background: var(--lp-bg);
  color: var(--lp-ink);
}

@media (hover: hover) {
  .site-btn-primary:hover {
    background: var(--lp-primary-hover);
  }

  .site-btn-ghost:hover {
    border-color: var(--lp-ink);
  }
}

/* ── Header (LandingHomeHeader.vue) ────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.site-header:has(.site-burger[open]) {
  z-index: 1001;
}

.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1290px;
  height: 64px;
  margin: 0 auto;
  padding: 0 8px 0 16px;
  border-radius: 9999px;
  background: var(--site-bar-bg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  color: var(--lp-ink);
  text-decoration: none;
}

.site-logo-mark {
  display: block;
  flex-shrink: 0;
}

.site-logo-text {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.site-logo .site-logo-text {
  letter-spacing: -0.01em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-ink);
  text-decoration: none;
  transition: color var(--site-fast), background-color var(--site-fast);
}

.site-nav-link.is-current {
  background: var(--site-bar-hover);
}

.site-chevron {
  transition: transform var(--site-fast);
}

details[open] > summary .site-chevron {
  transform: rotate(180deg);
}

.site-product,
.site-lang {
  position: relative;
}

.site-product-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  width: 360px;
  padding-top: 12px;
  transform: translateX(-50%);
}

.site-product-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--lp-stroke);
  border-radius: 20px;
  background: var(--lp-bg);
  box-shadow: var(--lp-shadow-pop);
}

.site-product-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color var(--site-fast);
}

.site-product-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
}

.site-product-text {
  display: flex;
  flex-direction: column;
}

.site-product-title {
  font-size: 16px;
  line-height: 24px;
  color: var(--lp-ink);
}

.site-product-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-lang {
  display: none;
}

.site-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  width: 176px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--lp-stroke);
  border-radius: 16px;
  background: var(--lp-bg);
  box-shadow: var(--lp-shadow-pop);
}

.site-lang-menu .site-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-ink);
  text-decoration: none;
  transition: background-color var(--site-fast);
}

.site-login,
.site-launch {
  display: none;
}

.site-burger-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  color: var(--lp-ink);
  transition: background-color var(--site-fast);
}

.site-burger-close,
.site-burger[open] .site-burger-menu {
  display: none;
}

.site-burger[open] .site-burger-close {
  display: block;
}

.site-burger[open] > .site-burger-trigger {
  position: fixed;
  top: 22px;
  right: 16px;
  z-index: 60;
}

.site-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 32px;
  overflow-y: auto;
  background: var(--lp-bg);
}

.site-sheet-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-left: 4px;
}

.site-sheet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-ink);
}

.site-sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.site-sheet-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--lp-ink);
  text-decoration: none;
  transition: background-color var(--site-fast);
}

.site-sheet-link.is-current {
  background: var(--lp-bg-2);
}

.site-sheet-check {
  margin-left: auto;
}

.site-sheet-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.site-sheet-langs .site-lang-item {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--lp-stroke);
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
  text-decoration: none;
  transition: color var(--site-fast), border-color var(--site-fast);
}

.site-sheet-langs .site-lang-item[aria-current] {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}

.site-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.site-sheet-actions .site-btn {
  width: 100%;
}

/* Touch screens keep :hover after a tap, so the fills are for real pointers only. */
@media (hover: hover) {
  .site-nav-link:hover {
    background: var(--site-bar-hover);
  }

  .site-product-item:hover {
    background: var(--lp-bg-2);
  }

  .site-lang-menu .site-lang-item:hover {
    background: var(--lp-bg-2);
  }

  .site-burger-trigger:hover {
    background: var(--site-bar-hover);
  }

  .site-burger[open] > .site-burger-trigger:hover {
    background: var(--lp-bg-3);
  }

  .site-sheet-link:hover {
    background: var(--lp-bg-2);
  }
}

@media (min-width: 640px) {
  .site-launch {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding-inline: 24px;
  }

  .site-header-bar {
    padding-left: 20px;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .site-lang {
    display: block;
  }

  .site-login {
    display: inline-flex;
  }

  .site-burger {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  body.site:has(.site-burger[open]) {
    overflow: hidden;
  }
}

/* ── Footer (LandingHomeFooter.vue) ────────────────────────────────── */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--lp-dark);
  color: var(--lp-on-dark-muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer-glow {
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}

.site-footer-glow--primary {
  top: -160px;
  right: -128px;
  width: 420px;
  height: 420px;
  background: var(--lp-primary);
  opacity: 0.5;
}

.site-footer-glow--cyan {
  bottom: -192px;
  left: -128px;
  width: 380px;
  height: 380px;
  background: var(--lp-acc-cyan);
  opacity: 0.3;
}

.site-footer-inner {
  width: 100%;
  max-width: 1338px;
  margin: 0 auto;
  padding: 64px 16px 40px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 40px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.site-footer-logo {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  border-radius: 4px;
  color: var(--lp-on-dark);
  text-decoration: none;
}

.site-footer-tag {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer-h {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--lp-on-dark);
}

.site-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  color: inherit;
  text-decoration: none;
  transition: color var(--site-fast);
}

.site-footer-link:focus-visible {
  color: var(--lp-on-dark);
}

@media (hover: hover) {
  .site-footer-link:hover {
    color: var(--lp-on-dark);
  }
}

.site-footer :is(a, summary, button):focus-visible {
  outline-color: var(--lp-on-dark);
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-dark-stroke);
  font-size: 14px;
  line-height: 20px;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (min-width: 768px) {
  .site-footer-inner {
    padding-inline: 24px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .site-footer-inner {
    padding-top: 80px;
  }

  .site-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ── Listing: blog index and category (Nexsas messaging-platform/blog.html) ── */

.blog-listing {
  padding-bottom: 64px;
}

.blog-page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  padding: 40px 0 0;
  text-align: center;
}

.blog-page-title {
  max-width: 900px;
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  text-wrap: balance;
}

.blog-page-sub {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--lp-body);
  text-wrap: pretty;
}

.blog-cat-count {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--lp-body);
}

/* Phones: one scrolling row that bleeds to the screen edges; the block padding
   leaves room for the focus ring, which overflow would otherwise clip. */
.blog-cats {
  display: flex;
  align-self: stretch;
  gap: 8px;
  margin: 12px -16px 0;
  padding: 4px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.blog-cats::-webkit-scrollbar {
  display: none;
}

.blog-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--lp-stroke);
  border-radius: 9999px;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--site-fast), background-color var(--site-fast), border-color var(--site-fast);
}

.blog-chip.is-current {
  border-color: var(--lp-primary);
  background: var(--lp-primary);
  color: var(--lp-on-dark);
}

@media (hover: hover) {
  .blog-chip:hover {
    border-color: var(--lp-ink);
  }

  .blog-chip.is-current:hover {
    border-color: var(--lp-primary-hover);
    background: var(--lp-primary-hover);
  }
}

/* Hero: the featured article as a wide card */

.blog-hero {
  display: flex;
  flex-direction: column;
  margin: 0 0 24px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lp-bg);
  color: inherit;
  text-decoration: none;
  transition: transform 500ms var(--lp-ease), box-shadow 500ms var(--lp-ease);
}

.blog-hero-media,
.blog-card-media {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.blog-hero-cover,
.blog-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px 24px;
}

.blog-hero-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lp-ink);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.blog-hero-summary {
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.blog-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.blog-hero .blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-hero .blog-avatar {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  object-fit: cover;
}

.blog-hero .blog-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-primary);
  color: var(--lp-on-dark);
  font-size: 16px;
  font-weight: 500;
}

.blog-hero .blog-author-name {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--lp-ink);
}

/* Card grid */

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lp-bg);
  color: inherit;
  text-decoration: none;
  transition: transform 500ms var(--lp-ease), box-shadow 500ms var(--lp-ease);
}

.blog-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px 24px;
}

@media (min-width: 360px) {
  .blog-card-body,
  .blog-hero-body {
    padding-inline: 20px;
  }
}

.blog-card-badge {
  display: block;
  max-width: 100%;
  padding: 4px 14px;
  border-radius: 9999px;
  background: var(--lp-cyan-soft);
  color: var(--lp-ink);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: rgb(26 26 28 / 0.6);
}

.blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blog-card-meta-sep {
  width: 1px;
  height: 12px;
  background: var(--lp-stroke);
}

.blog-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--lp-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.blog-card-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--lp-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.blog-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  line-height: 1;
  font-weight: 500;
}

.blog-card-cover.blog-cover-fallback,
.blog-hero-cover.blog-cover-fallback {
  aspect-ratio: 1200 / 630;
  font-size: 56px;
}

/* Pagination */

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.blog-page {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color var(--site-fast), background-color var(--site-fast), border-color var(--site-fast);
}

.blog-page.is-current {
  background: var(--lp-primary);
  color: var(--lp-on-dark);
}

.blog-page-arrow {
  border-color: var(--lp-stroke);
}

.blog-page-arrow.is-disabled {
  color: rgb(26 26 28 / 0.3);
}

.blog-page-gap {
  min-width: 24px;
  padding: 0;
  background: none;
  color: var(--lp-body);
}

@media (hover: hover) {
  .blog-hero:hover {
    transform: scale(1.01);
    box-shadow: var(--lp-shadow-pop);
  }

  .blog-hero:hover .blog-hero-cta {
    background: var(--lp-primary-hover);
  }

  .blog-card:hover {
    transform: scale(1.02);
    box-shadow: var(--lp-shadow-pop);
  }

  a.blog-page:hover {
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
  }

  a.blog-page-arrow:hover {
    border-color: var(--lp-ink);
    background: var(--lp-bg);
    color: var(--lp-ink);
  }
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Titles (54–90 characters) hold three lines so summaries line up across a row. */
  .blog-card-title {
    min-height: 3.9em;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .blog-card-body,
  .blog-hero-body {
    padding: 24px 24px 28px;
  }
}

@media (min-width: 768px) {
  .blog-page-head {
    margin-bottom: 48px;
    padding-top: 64px;
  }

  .blog-page-title {
    font-size: 44px;
    line-height: 1.1;
  }

  .blog-page-sub {
    font-size: 18px;
    line-height: 28px;
  }

  .blog-cats {
    flex-wrap: wrap;
    align-self: center;
    justify-content: center;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
  }

  .blog-hero-body {
    padding: 32px;
  }

  .blog-hero-title {
    font-size: 28px;
  }

  .blog-pagination {
    margin-top: 56px;
  }
}

@media (min-width: 1024px) {
  .blog-listing {
    padding-bottom: 100px;
  }

  .blog-page-head {
    margin-bottom: 56px;
    padding-top: 80px;
  }

  .blog-page-title {
    font-size: 52px;
    line-height: 1.08;
  }

  .blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: stretch;
  }

  .blog-hero-media {
    height: 100%;
  }

  .blog-hero-cover {
    height: 100%;
  }

  .blog-hero-body {
    padding: 40px;
  }

  .blog-hero-foot {
    margin-top: auto;
    padding-top: 8px;
  }

  .blog-hero-cover.blog-cover-fallback {
    font-size: 96px;
  }

  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-pagination {
    margin-top: 64px;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .blog-card-title {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .blog-hero {
    margin-bottom: 32px;
  }

  .blog-hero-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .blog-grid {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* ── Article page (Nexsas data-visualization/blog-details.html) ───── */

/* The head and the text share one left edge: 720px text column, plus the
   TOC rail from 1280px. The cover breaks out to the full container. */
.blog-article {
  --blog-col: 720px;
  --blog-toc-w: 260px;
  --blog-toc-gap: 64px;
  padding-bottom: 64px;
}

.blog-article-head {
  max-width: var(--blog-col);
  margin: 0 auto;
  padding-top: 32px;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
  white-space: nowrap;
}

.blog-breadcrumbs a {
  flex-shrink: 0;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: color var(--site-fast);
}

.blog-bc-sep {
  flex-shrink: 0;
  color: rgb(26 26 28 / 0.3);
}

.blog-bc-current {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lp-ink);
}

.blog-h1 {
  max-width: 900px;
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  text-wrap: balance;
}

.blog-article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 24px;
}

.blog-article .blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-article .blog-avatar {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  object-fit: cover;
}

.blog-article .blog-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-primary);
  color: var(--lp-on-dark);
  font-size: 18px;
  font-weight: 500;
}

.blog-author-info {
  display: flex;
  flex-direction: column;
}

.blog-article .blog-author-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--lp-ink);
}

.blog-author-role {
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Phones wrap the meta line, and a divider left at a line end reads as a stray mark. */
.blog-meta-sep {
  display: none;
  width: 1px;
  height: 12px;
  background: var(--lp-stroke);
}

.blog-article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  margin: 32px 0 40px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--lp-bg);
}

.blog-article-cover.blog-cover-fallback {
  display: flex;
  background: var(--lp-primary-soft);
  font-size: 96px;
}

.blog-article-layout {
  max-width: var(--blog-col);
  margin: 0 auto;
}

.blog-article-main {
  min-width: 0;
}

/* Table of contents: a sticky rail from 1280px, a collapsed card below it */

.blog-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--lp-ink);
}

.blog-toc-title .site-icon {
  color: var(--lp-primary);
}

.blog-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-toc-list a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
  text-decoration: none;
  transition: color var(--site-fast), background-color var(--site-fast);
}

.blog-toc-l3 a {
  padding-left: 28px;
  font-size: 13px;
}

.blog-toc--side {
  display: none;
}

.blog-toc--inline {
  margin-bottom: 32px;
  border-radius: 16px;
  background: var(--lp-bg);
}

.blog-toc--inline > .blog-toc-title {
  padding: 14px 16px;
  border-radius: 16px;
}

.blog-toc-chevron {
  margin-left: auto;
  color: var(--lp-body);
  transition: transform var(--site-fast);
}

.blog-toc--inline[open] .blog-toc-chevron {
  transform: rotate(180deg);
}

.blog-toc--inline .blog-toc-list {
  padding: 0 4px 12px;
}

.blog-toc--inline .blog-toc-list a {
  padding-block: 9px;
  font-size: 15px;
}

.blog-toc--inline .blog-toc-l3 a {
  font-size: 14px;
}

/* ── Article text: every tag the sanitizer allows (utils/html.py) ──── */

.blog-article-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--blog-text);
  overflow-wrap: break-word;
}

.blog-article-body > :first-child {
  margin-top: 0;
}

.blog-article-body > :last-child {
  margin-bottom: 0;
}

.blog-article-body p {
  margin: 0 0 20px;
  line-height: 1.7;
}

.blog-article-body :is(strong, b) {
  font-weight: 600;
  color: var(--lp-ink);
}

.blog-article-body :is(h2, h3, h4) {
  color: var(--lp-ink);
  text-wrap: balance;
}

.blog-article-body h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.blog-article-body h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.blog-article-body h4 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.blog-article-body h2 + h3 {
  margin-top: 24px;
}

.blog-article-body :is(h2, h3, h4) :is(strong, b) {
  font-weight: inherit;
}

.blog-article-body a {
  color: var(--lp-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--site-fast);
}

.blog-article-body :is(ul, ol) {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}

.blog-article-body li {
  position: relative;
  padding-left: 28px;
}

.blog-article-body li + li {
  margin-top: 8px;
}

.blog-article-body ul > li::before {
  content: "";
  position: absolute;
  top: calc(0.8em - 3px);
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--lp-primary);
}

.blog-article-body :is(ul, ol) ul > li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--lp-primary);
}

.blog-article-body ol {
  counter-reset: blog-ol;
}

.blog-article-body ol > li {
  padding-left: 32px;
  counter-increment: blog-ol;
}

.blog-article-body ol > li::before {
  content: counter(blog-ol) ".";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--lp-primary);
}

.blog-article-body li > :is(ul, ol) {
  margin: 8px 0 0;
}

.blog-article-body li > p {
  margin: 0;
}

.blog-article-body li > p + p {
  margin-top: 8px;
}

.blog-article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--lp-primary-soft);
  box-shadow: inset 4px 0 0 var(--lp-primary);
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-ink);
}

.blog-article-body blockquote > :last-child {
  margin-bottom: 0;
}

.blog-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: 12px;
}

.blog-article-body figure {
  margin: 32px 0;
}

.blog-article-body figure img {
  margin: 0 auto;
}

.blog-article-body figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--lp-body);
}

/* A table figure (marked at read time, like .blog-table) keeps its caption under the table
   whatever the source order. */
.blog-article-body .blog-figure-table {
  display: flex;
  flex-direction: column;
}

.blog-article-body .blog-figure-table > figcaption {
  order: 1;
}

.blog-article-body figure > .blog-table {
  margin: 0;
}

/* .blog-table is added around every top-level table at read time (blog/services/public.py), so a
   wide table scrolls inside the text column and a narrow one still fills it. The local/scroll
   background pairs are scroll shadows: an edge darkens only while more table hides behind it. */
.blog-table {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--lp-stroke);
  border-radius: 12px;
  background:
    linear-gradient(to right, var(--lp-bg) 40%, rgb(255 255 255 / 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--lp-bg) 40%, rgb(255 255 255 / 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(26 26 28 / 0.14), rgb(26 26 28 / 0)) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(26 26 28 / 0.14), rgb(26 26 28 / 0)) right / 12px 100% no-repeat scroll,
    var(--lp-bg);
  -webkit-overflow-scrolling: touch;
}

.blog-article-body table {
  width: 100%;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
}

.blog-article-body :is(th, td) {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-stroke);
  vertical-align: top;
  text-align: left;
}

/* The floor keeps columns readable at every width; past it the table scrolls instead. Tables whose
   author set column widths (`blog-table--sized`, added with the wrapper) keep those widths. */
.blog-table:not(.blog-table--sized) :is(th, td) {
  min-width: 150px;
}

.blog-article-body :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--lp-stroke);
}

.blog-article-body tr:last-child > td {
  border-bottom: 0;
}

.blog-article-body th {
  background: var(--lp-bg-3);
  font-weight: 600;
  color: var(--lp-ink);
}

.blog-article-body :is(th, td) p {
  margin: 0;
}

.blog-article-body code {
  padding: 2px 6px;
  border: 1px solid var(--lp-stroke);
  border-radius: 6px;
  background: var(--lp-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--lp-ink);
}

.blog-article-body pre {
  margin: 32px 0;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--lp-dark);
  color: var(--lp-on-dark);
  font-size: 14px;
  line-height: 1.6;
}

.blog-article-body pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}

.blog-article-body hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--lp-stroke);
}

.blog-article-body iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 32px 0;
  border: 0;
  border-radius: 12px;
}

/* ── CTA inside the article (dark card, LandingHomePricing.vue style) ── */

.blog-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 48px 0 0;
  padding: 32px 20px;
  border-radius: 20px;
  background: var(--lp-dark);
  color: var(--lp-on-dark-muted);
}

.blog-cta::before,
.blog-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
}

.blog-cta::before {
  top: -120px;
  right: -96px;
  width: 288px;
  height: 288px;
  background: var(--lp-primary);
  opacity: 0.45;
}

.blog-cta::after {
  bottom: -160px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: var(--lp-acc-cyan);
  opacity: 0.18;
}

.blog-cta-title {
  max-width: 560px;
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lp-on-dark);
  text-wrap: balance;
}

.blog-cta-sub {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-on-dark-muted);
}

.blog-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Duplicates .site-btn-primary .site-btn-lg: the ads-conversions branch's tests freeze the exact
   `class="blog-cta-btn" href=…` markup in _cta.html, so the button cannot take the shared classes. */
.blog-cta-btn,
.blog-cta-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms var(--lp-ease), background-color 200ms var(--lp-ease);
}

.blog-cta-btn {
  background: var(--lp-primary);
  color: var(--lp-on-dark);
}

.blog-cta-demo {
  background: var(--lp-on-dark);
  color: var(--lp-ink);
}

.blog-cta :is(a, button):focus-visible {
  outline-color: var(--lp-on-dark);
}

/* ── Related articles and previous / next ─────────────────────────── */

.blog-related {
  margin: 64px 0 0;
}

.blog-related-title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}

.blog-prevnext {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 48px 0 0;
}

.blog-prev,
.blog-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: var(--lp-bg);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 300ms var(--lp-ease);
}

.blog-prevnext-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--lp-body);
}

.blog-prevnext-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--lp-ink);
  transition: color var(--site-fast);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

@media (hover: hover) {
  .blog-breadcrumbs a:hover,
  .blog-toc-list a:hover {
    color: var(--lp-primary);
    text-decoration: none;
  }

  .blog-toc-list a:hover {
    background: var(--lp-bg-3);
  }

  .blog-article-body a:hover {
    color: var(--lp-primary-hover);
  }

  .blog-cta-btn:hover {
    background: var(--lp-primary-hover);
  }

  .blog-cta-demo:hover {
    background: var(--lp-bg-3);
  }

  .blog-prev:hover,
  .blog-next:hover {
    box-shadow: var(--lp-shadow-pop);
  }

  .blog-prev:hover .blog-prevnext-title,
  .blog-next:hover .blog-prevnext-title {
    color: var(--lp-primary);
  }
}

@media (min-width: 640px) {
  .blog-meta {
    gap: 8px 12px;
  }

  .blog-meta-sep {
    display: block;
  }

  .blog-cta {
    padding: 40px;
  }

  .blog-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .blog-article {
    padding-bottom: 80px;
  }

  .blog-article-head {
    padding-top: 48px;
  }

  .blog-h1 {
    font-size: 40px;
    line-height: 1.12;
  }

  .blog-article-byline {
    margin-top: 28px;
  }

  .blog-article-cover {
    margin: 48px 0 56px;
    border-radius: 32px;
  }

  .blog-article-cover.blog-cover-fallback {
    font-size: 160px;
  }

  .blog-article-body {
    font-size: 18px;
  }

  .blog-article-body h2 {
    margin-top: 56px;
    font-size: 30px;
  }

  .blog-article-body h3 {
    margin-top: 36px;
    font-size: 22px;
  }

  .blog-article-body h2 + h3 {
    margin-top: 28px;
  }

  .blog-article-body blockquote {
    font-size: 18px;
  }

  .blog-article-body :is(img, iframe) {
    border-radius: 20px;
  }

  .blog-cta {
    margin-top: 56px;
    padding: 48px;
    border-radius: 32px;
  }

  .blog-cta-title {
    font-size: 32px;
  }

  .blog-cta-sub {
    font-size: 18px;
    line-height: 28px;
  }

  .blog-related {
    margin-top: 80px;
  }

  .blog-related-title {
    margin-bottom: 32px;
    font-size: 36px;
  }

  .blog-prevnext {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .blog-next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
  }

  .blog-prev,
  .blog-next {
    padding: 24px 28px;
  }
}

@media (min-width: 1024px) {
  .blog-article {
    padding-bottom: 100px;
  }

  .blog-article-head {
    padding-top: 64px;
  }

  .blog-related {
    margin-top: 100px;
  }
}

@media (min-width: 1280px) {
  .blog-h1 {
    font-size: 48px;
    line-height: 1.1;
  }

  .blog-article.has-toc .blog-article-head {
    max-width: calc(var(--blog-toc-w) + var(--blog-toc-gap) + var(--blog-col));
  }

  .blog-article-cover {
    margin-bottom: 64px;
  }

  .blog-article-layout.has-toc {
    display: grid;
    grid-template-columns: var(--blog-toc-w) minmax(0, var(--blog-col));
    justify-content: center;
    gap: var(--blog-toc-gap);
    max-width: none;
  }

  .blog-toc--side {
    display: block;
    position: sticky;
    top: calc(var(--site-header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--site-header-h) - 48px);
    padding: 20px 12px 16px;
    overflow-y: auto;
    border-radius: 20px;
    background: var(--lp-bg);
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .blog-toc--side > .blog-toc-title {
    padding: 0 12px 12px;
  }

  .blog-toc--inline {
    display: none;
  }

  .blog-cta-title {
    font-size: 36px;
  }
}

/* ── Motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  body.site *,
  body.site *::before,
  body.site *::after {
    transition: none !important;
  }
}
