/* SelSup Blog v2 — isolated archive and article presentation. */

:root {
  --blog-ink: #1a1f40;
  --blog-muted: #62677d;
  --blog-blue: #00a7e7;
  --blog-blue-dark: #006f9f;
  --blog-accent: #f1a104;
  --blog-accent-dark: #ce8500;
  --blog-surface: #f4f9fc;
  --blog-surface-blue: #e9f7fd;
  --blog-line: #dce7ed;
  --blog-white: #fff;
  --blog-shadow: 0 16px 44px rgba(26, 31, 64, 0.08);
  --blog-radius: 22px;
}

.blog-archive-v2,
.blog-article-v2 {
  color: var(--blog-ink);
  font-family: Montserrat, Arial, sans-serif;
}

/* The legacy wrapper used overflow:hidden, which disables viewport-sticky
   descendants. Preserve horizontal clipping without a vertical scroll box. */
body.single-blog .viewport-wrapper {
  overflow-x: clip;
  overflow-y: visible;
}

.blog-shell {
  box-sizing: border-box;
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.blog-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.blog-eyebrow {
  margin: 0 0 12px;
  color: var(--blog-blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.blog-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 22px;
  border: 1px solid var(--blog-blue);
  border-radius: 999px;
  background: var(--blog-white);
  color: var(--blog-blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.blog-button--accent {
  border-color: var(--blog-accent);
  background: var(--blog-accent);
  color: var(--blog-ink);
}

@media (hover: hover) {
  .blog-button:hover {
    background: var(--blog-surface-blue);
    color: var(--blog-blue-dark);
    transform: translateY(-1px);
  }

  .blog-button--accent:hover {
    border-color: var(--blog-accent-dark);
    background: var(--blog-accent-dark);
    color: var(--blog-ink);
  }
}

.blog-archive-v2 :where(a, button, input, summary):focus-visible,
.blog-article-v2 :where(a, button, summary):focus-visible {
  outline: 3px solid rgba(0, 167, 231, 0.38);
  outline-offset: 3px;
}

.blog-article-v2 .post-table-wrapper:focus-visible {
  outline: 3px solid rgba(0, 167, 231, 0.48);
  outline-offset: 3px;
}

/* Archive */
.blog-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 34px;
  background:
    radial-gradient(circle at 88% 15%, rgba(0, 167, 231, 0.18), transparent 31%),
    radial-gradient(circle at 10% 100%, rgba(241, 161, 4, 0.12), transparent 34%),
    linear-gradient(145deg, #f6fbfe 0%, #edf8fd 55%, #fffaf0 100%);
}

.blog-archive-hero::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  bottom: -170px;
  border: 38px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.blog-archive-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-archive-hero__copy {
  max-width: 1100px;
}

.blog-archive-hero h1 {
  max-width: 1080px;
  margin: 0;
  color: var(--blog-ink);
  font-size: clamp(40px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.blog-archive-hero__lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--blog-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.blog-search {
  display: grid;
  max-width: 820px;
  min-height: 54px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 6px 7px 6px 18px;
  border: 1px solid rgba(0, 126, 184, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(26, 31, 64, 0.08);
}

.blog-search__icon {
  color: var(--blog-blue-dark);
  font-size: 25px;
  line-height: 1;
}

.blog-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--blog-ink);
  font: inherit;
  font-size: 16px;
}

.blog-search input[type="search"]::placeholder {
  color: #8b90a1;
  opacity: 1;
}

.blog-search button {
  min-width: 108px;
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-radius: 13px;
  background: var(--blog-blue);
  color: var(--blog-ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.blog-topic-chips {
  display: flex;
  max-width: 100%;
  gap: 9px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.blog-topic-chips a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid rgba(26, 31, 64, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.blog-archive-feed {
  padding-block: 48px 90px;
}

.blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.blog-section-heading h2,
.blog-related .blog-section-heading h2 {
  margin: 0;
  color: var(--blog-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.blog-section-heading__page {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--blog-muted);
  font-size: 14px;
}

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

.blog-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  background: var(--blog-white);
  box-shadow: 0 8px 28px rgba(26, 31, 64, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
  .blog-card:hover {
    border-color: rgba(0, 167, 231, 0.32);
    box-shadow: var(--blog-shadow);
    transform: translateY(-3px);
  }
}

.blog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--blog-surface-blue);
}

.blog-card__media img,
.blog-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-card__placeholder {
  background:
    radial-gradient(circle at 75% 20%, rgba(241, 161, 4, 0.24), transparent 33%),
    linear-gradient(145deg, #dff4fc, #f6fbfe 58%, #fff6df);
  color: var(--blog-blue-dark);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

@media (hover: hover) {
  .blog-card:hover .blog-card__media img {
    transform: scale(1.025);
  }
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-bottom: 14px;
  color: var(--blog-muted);
  font-size: 12px;
  line-height: 1.35;
}

.blog-card__views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.blog-card__views i {
  color: var(--blog-blue-dark);
}

.blog-card__term,
.blog-article__term {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blog-surface-blue);
  color: var(--blog-blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.blog-card__title {
  display: -webkit-box;
  min-height: 3.9em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--blog-ink);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__excerpt {
  display: -webkit-box;
  min-height: 4.65em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 14px 0 0;
  color: var(--blog-muted);
  font-size: 15px;
  line-height: 1.55;
}

.blog-card__more {
  display: inline-flex;
  min-height: 44px;
  align-self: flex-start;
  align-items: center;
  margin-top: 20px;
  color: var(--blog-blue-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.blog-subscribe-strip,
.blog-inline-cta,
.blog-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  border-radius: var(--blog-radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.2), transparent 32%),
    var(--blog-ink);
  color: var(--blog-white);
}

.blog-inline-cta,
.blog-final-cta {
  background: var(--blog-cta-bg, radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.2), transparent 32%), var(--blog-ink));
  color: var(--blog-cta-fg, var(--blog-white));
}

.blog-inline-cta[style] .blog-button--accent,
.blog-final-cta[style] .blog-button--accent,
.blog-rail-demo[style] .blog-button--accent {
  border-color: var(--blog-cta-button-bg);
  background: var(--blog-cta-button-bg);
  color: var(--blog-cta-button-fg);
}

.blog-subscribe-strip {
  margin-top: 34px;
  padding: 26px 30px;
}

.blog-grid > .blog-subscribe-strip {
  grid-column: 1 / -1;
  margin: 8px 0;
}

.blog-subscribe-strip div,
.blog-inline-cta div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.blog-subscribe-strip strong,
.blog-inline-cta strong {
  font-size: 20px;
  line-height: 1.25;
}

.blog-subscribe-strip span,
.blog-inline-cta span {
  max-width: 760px;
  color: var(--blog-cta-muted, rgba(255, 255, 255, 0.76));
  font-size: 14px;
  line-height: 1.5;
}

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

.blog-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.blog-pagination a,
.blog-pagination span.page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--blog-line);
  border-radius: 12px;
  background: var(--blog-white);
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.blog-pagination span.current {
  border-color: var(--blog-blue);
  background: var(--blog-blue);
  color: var(--blog-ink);
}

.blog-pagination .prev,
.blog-pagination .next {
  padding-inline: 17px;
}

.blog-infinite-enhanced [data-blog-pagination] {
  display: none;
}

.blog-infinite-sentinel {
  width: 100%;
  height: 1px;
}

.blog-infinite-loader {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 12px;
  padding: 18px;
  color: var(--blog-muted);
  font-size: 14px;
  text-align: center;
}

.blog-infinite-loader[hidden],
.blog-infinite-loader [hidden] {
  display: none !important;
}

.blog-infinite-loader__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(0, 167, 231, 0.2);
  border-top-color: var(--blog-blue-dark);
  border-radius: 50%;
  animation: blog-infinite-spin 700ms linear infinite;
}

.blog-infinite-loader .blog-button {
  min-height: 44px;
  margin-left: 4px;
}

@keyframes blog-infinite-spin {
  to { transform: rotate(360deg); }
}

.blog-empty-state {
  padding: 54px 24px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  text-align: center;
}

.blog-empty-state h2 {
  margin: 0 0 12px;
}

.blog-empty-state p {
  margin: 0 0 24px;
  color: var(--blog-muted);
}

/* Article */
.blog-breadcrumbs {
  display: flex;
  max-width: 1120px;
  overflow: hidden;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding-top: 28px;
  box-sizing: border-box;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-breadcrumbs a {
  color: var(--blog-blue-dark);
}

.blog-article__header {
  min-width: 0;
  max-width: none;
  grid-area: header;
  padding-top: 0;
}

.blog-article__term {
  margin-bottom: 18px;
}

.blog-article__header h1 {
  max-width: 800px;
  margin: 0;
  color: var(--blog-ink);
  font-size: clamp(38px, 4.1vw, 56px);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  margin-top: 22px;
  color: var(--blog-muted);
  font-size: 13px;
  line-height: 1.45;
}

.blog-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-article__views i {
  color: var(--blog-blue-dark);
}

.blog-article__lead {
  max-width: 800px;
  margin: 26px 0 0;
  color: #454b65;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 450;
  line-height: 1.65;
}

.blog-author {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 13px;
  box-sizing: border-box;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid #d7e9f2;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f9fc 100%);
  box-shadow: none;
}

.blog-author__image {
  width: 52px;
  height: 52px;
  overflow: hidden;
  flex: 0 0 52px;
  border-radius: 50%;
}

.blog-author__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.blog-author > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
}

.blog-author__label {
  color: var(--blog-blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.blog-author strong {
  overflow: hidden;
  color: var(--blog-ink);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-article__hero-image {
  width: 100%;
  max-width: none;
  overflow: hidden;
  grid-area: hero;
  aspect-ratio: 16 / 9;
  margin: 34px 0 0;
  border-radius: 26px;
  background: var(--blog-surface);
}

.blog-article__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.blog-article__layout {
  display: grid;
  max-width: 1128px;
  grid-template-columns: 280px minmax(0, 800px);
  grid-template-areas:
    "rail header"
    "rail hero"
    "rail body";
  column-gap: 48px;
  align-items: start;
  padding-top: 32px;
}

.blog-article__layout--no-toc {
  grid-template-columns: minmax(0, 800px);
}

.blog-article__body {
  min-width: 0;
  grid-area: body;
  margin-top: 42px;
}

.blog-article__content.article__text {
  max-width: 75ch;
  margin: 0;
  color: #252a43;
  font-size: 18px;
  line-height: 1.72;
}

.blog-article__content.article__text :where(p, ul, ol, blockquote, figure, pre, .post-table-wrapper) {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.blog-article__content.article__text h2 {
  margin: 2.1em 0 0.65em;
  color: var(--blog-ink);
  font-size: clamp(29px, 2.65vw, 36px);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.2;
  scroll-margin-top: 110px;
  text-wrap: balance;
}

.blog-article__content.article__text h3 {
  margin: 1.75em 0 0.6em;
  color: var(--blog-ink);
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 760;
  letter-spacing: -0.018em;
  line-height: 1.28;
  scroll-margin-top: 110px;
}

/* Keep anchored headings below the WordPress toolbar for signed-in editors. */
body.admin-bar .blog-article__content.article__text :where(h2, h3) {
  scroll-margin-top: 160px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .blog-article__content.article__text :where(h2, h3) {
    scroll-margin-top: 174px;
  }
}

.blog-article__content.article__text h2:first-child,
.blog-article__content.article__text h3:first-child {
  margin-top: 0;
}

.blog-article__content.article__text a {
  color: #0079b1;
  text-decoration-color: rgba(0, 121, 177, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-article__content.article__text :where(p, li, a) {
  overflow-wrap: break-word;
}

.blog-article__content.article__text ul,
.blog-article__content.article__text ol {
  padding-left: 1.35em;
}

.blog-article__content.article__text ul li,
.blog-article__content.article__text ol li {
  padding: 0 0 0.45em 0.35em;
}

.blog-article__content.article__text ul li::before {
  display: none;
}

/* Editorial lists: global legacy CSS removes native markers, so restore them
   only inside the article body. Article Ops adds blog-list classes to newly
   prepared content; unclassed lists keep the same readable fallback. */
.blog-article__content.article__text :where(ul.blog-list--bulleted, ul:not([class])) > li {
  list-style: disc outside;
}

.blog-article__content.article__text :where(ol.blog-list--numbered, ol:not([class])) > li {
  list-style: decimal outside;
}

.blog-article__content.article__text :where(ul.blog-list--bulleted, ul:not([class])) > li::marker {
  color: var(--blog-blue-dark);
  font-size: 0.82em;
}

.blog-article__content.article__text :where(ol.blog-list--numbered, ol:not([class])) > li::marker {
  color: var(--blog-blue-dark);
  font-weight: 800;
}

.blog-article__content.article__text blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--blog-blue);
  border-radius: 0 16px 16px 0;
  background: var(--blog-surface-blue);
  color: var(--blog-ink);
}

.blog-article__content.article__text img,
.blog-article__content.article__text video,
.blog-article__content.article__text svg {
  max-width: 100%;
  height: auto;
}

.blog-article__content.article__text iframe {
  display: block;
  max-width: 100%;
}

.blog-article__content.article__text pre {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  padding: 18px;
  border-radius: 14px;
  background: #11152f;
  color: #f6f8ff;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
}

/* Tables: scroll inside the component; never hide or scale columns. */
.blog-article-v2 .post-table-wrapper {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: var(--blog-white);
}

.blog-article-v2 .post-table-wrapper table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.blog-article-v2 .post-table-wrapper--wide table {
  min-width: max(100%, 680px) !important;
}

.blog-article-v2 .post-table-wrapper--very-wide table {
  min-width: max(100%, 860px) !important;
}

.blog-article-v2 .post-table-wrapper th,
.blog-article-v2 .post-table-wrapper td {
  min-width: 120px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--blog-line);
  border-bottom: 1px solid var(--blog-line);
  color: #2d324b;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.blog-article-v2 .post-table-wrapper th:last-child,
.blog-article-v2 .post-table-wrapper td:last-child {
  border-right: 0;
}

.blog-article-v2 .post-table-wrapper tr:last-child > * {
  border-bottom: 0;
}

.blog-article-v2 .post-table-wrapper thead th {
  background: #eaf7fc;
  color: var(--blog-ink);
  font-weight: 780;
}

.blog-article-v2 .post-table-wrapper tbody tr:nth-child(even) > * {
  background: #f8fbfd;
}

/* Fail-safe if DOMDocument is unavailable or risky embedded markup is present. */
.blog-article__content table:not(.blog-table--wrapped),
.blog-article__content figure.wp-block-table:not(.post-table-wrapper) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-inline-cta {
  margin: 36px 0 42px;
  padding: 24px 26px;
}

.blog-inline-cta .blog-button {
  flex: 0 0 auto;
  text-decoration: none;
}

/* Modernise legacy try_now_btn output without changing stored article HTML. */
.blog-article__content .iw_button.iw_yellow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 28px;
  box-sizing: border-box;
  width: 100% !important;
  margin: 38px 0 42px !important;
  padding: 25px 28px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(115deg, #1a1f40 0%, #3e445f 100%) !important;
  box-shadow: none !important;
  text-align: left !important;
}

.blog-article__content .iw_button.iw_yellow::before {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  content: "Попробуйте SelSup на своих задачах";
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  line-height: 1.22;
}

.blog-article__content .iw_button.iw_yellow::after {
  grid-column: 1;
  grid-row: 2;
  color: rgba(255, 255, 255, 0.78);
  content: "Автоматизируйте процессы, аналитику и управление в одном контуре.";
  font-size: 14px;
  line-height: 1.55;
}

.blog-article__content .iw_button.iw_yellow > a.btn {
  display: inline-flex !important;
  min-width: 240px !important;
  min-height: 58px !important;
  width: auto !important;
  height: auto !important;
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 15px 24px !important;
  border: 4px solid #246b9f !important;
  border-radius: 999px !important;
  background: #f1a104 !important;
  box-shadow: none !important;
  color: var(--blog-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.blog-article__content .iw_button.iw_yellow > a.btn::after {
  display: none !important;
  content: none !important;
}

.blog-article-rail {
  position: static;
  min-width: 0;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-area: rail;
  gap: 18px;
  align-self: start;
  box-sizing: border-box;
}

.blog-toc,
.blog-rail-popular,
.blog-rail-demo {
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: var(--blog-white);
  box-shadow: none;
}

.blog-toc {
  border-top: 4px solid var(--blog-blue);
}

.blog-toc__title {
  display: block;
  margin-bottom: 15px;
  color: var(--blog-ink);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.25;
}

.blog-toc__mobile {
  display: none;
}

.blog-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-toc li {
  margin: 0;
  padding: 0;
}

.blog-toc__level-3 {
  padding-left: 13px !important;
}

.blog-toc a {
  display: block;
  padding-left: 12px;
  border-left: 2px solid #e5edf2;
  color: #4e5369;
  font-size: 15px;
  line-height: 1.48;
  text-decoration: none;
}

@media (hover: hover) {
  .blog-toc a:hover {
    border-left-color: var(--blog-blue);
    color: var(--blog-blue-dark);
  }
}

.blog-rail__desktop {
  display: contents;
}

.blog-rail-popular > strong,
.blog-rail-demo > strong {
  display: block;
  color: var(--blog-ink);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.28;
}

.blog-rail-popular ol {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  counter-reset: blog-popular;
  list-style: none;
}

.blog-rail-popular li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  counter-increment: blog-popular;
}

.blog-rail-popular li::before {
  color: var(--blog-blue-dark);
  content: counter(blog-popular, decimal-leading-zero);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.blog-rail-popular a {
  color: #454b65;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}

.blog-rail-demo {
  border: 0;
  background: var(--blog-cta-bg, linear-gradient(145deg, #171c3e 0%, #3c4466 100%));
  box-shadow: none;
}

.blog-rail-demo > strong {
  color: var(--blog-cta-fg, var(--blog-white));
  font-size: 20px;
}

.blog-rail-demo span {
  display: block;
  margin-top: 10px;
  color: var(--blog-cta-muted, rgba(255, 255, 255, 0.78));
  font-size: 15px;
  line-height: 1.5;
}

.blog-rail-demo .blog-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 15px;
  font-size: 14px;
}

@media (min-width: 1160px) {
  .blog-article-rail.is-sticky-ready {
    /* Keep the entire rail readable even when its cards are taller than the viewport. */
    --blog-rail-safe-top: max(88px, var(--blog-rail-top, 88px));
    position: sticky;
    top: var(--blog-rail-safe-top);
    max-height: calc(100dvh - var(--blog-rail-safe-top) - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-article-rail.is-sticky-ready::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .blog-rail-demo {
    grid-row: 1;
  }

  .blog-author--rail {
    grid-row: 2;
  }

  .blog-toc {
    grid-row: 3;
  }

  .blog-rail-popular {
    grid-row: 4;
  }

  .blog-breadcrumbs {
    max-width: 1128px;
    padding-left: 328px;
  }
}

.blog-additional-text {
  margin-top: 54px;
  padding-top: 36px;
  border-top: 1px solid var(--blog-line);
}

.blog-channels {
  margin-top: 48px;
  padding: 30px;
  border: 1px solid #dcecf4;
  border-radius: 24px;
  background: linear-gradient(145deg, #f5fbfe 0%, #eef6fb 100%);
}

.blog-channels__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--blog-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.blog-channels__head h2 {
  margin: 0;
  color: var(--blog-ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.blog-channels__head p {
  max-width: 660px;
  margin: 10px 0 0;
  color: #565d75;
  font-size: 15px;
  line-height: 1.55;
}

.blog-channels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.blog-channels__grid > li {
  margin: 0;
  padding: 0;
}

.blog-channels__grid > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.blog-channels__item {
  display: grid;
  min-height: 82px;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(127, 157, 178, 0.24);
  border-radius: 18px;
  background: var(--blog-white);
  box-shadow: 0 8px 22px rgba(26, 31, 64, 0.05);
  color: var(--blog-ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-channels__icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #eef5f9;
  color: #1a1f40;
  font-size: 25px;
}

.blog-channels__icon svg {
  width: 28px;
  height: 28px;
}

.blog-channels__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.blog-channels__label strong {
  color: var(--blog-ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.3;
}

.blog-channels__label small {
  color: var(--blog-muted);
  font-size: 12px;
  line-height: 1.35;
}

.blog-channels__arrow {
  color: #8790a8;
  font-size: 12px;
}

.blog-channels__item--youtube .blog-channels__icon {
  background: #fff0f0;
  color: #f00000;
}

.blog-channels__item--telegram .blog-channels__icon {
  background: #eaf7fd;
  color: #229ed9;
}

.blog-channels__item--rutube .blog-channels__icon {
  background: #f0eff8;
  color: #100943;
}

.blog-channels__item--dzen .blog-channels__icon {
  background: #eff0f2;
  color: #2c3036;
}

.blog-channels__item--vc .blog-channels__icon {
  background: #f0f0f0;
  color: #111;
}

.blog-channels__wordmark {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

@media (hover: hover) {
  .blog-channels__item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 167, 231, 0.42);
    box-shadow: 0 14px 28px rgba(26, 31, 64, 0.09);
  }
}

.blog-channels__item:focus-visible {
  outline: 3px solid rgba(0, 167, 231, 0.32);
  outline-offset: 3px;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.blog-share strong {
  margin-right: 5px;
  font-size: 14px;
}

.blog-share a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-line);
  border-radius: 50%;
  background: var(--blog-white);
  color: var(--blog-blue-dark);
  text-decoration: none;
}

.blog-related {
  max-width: 1120px;
  padding-top: 78px;
}

.blog-related .blog-card__body {
  padding: 18px 18px 20px;
}

.blog-related .blog-card__title {
  min-height: 3.75em;
  font-size: 18px;
  line-height: 1.25;
}

.blog-related .blog-card__excerpt {
  min-height: 4.5em;
  font-size: 14px;
  line-height: 1.5;
}

.blog-final-cta {
  max-width: 1120px;
  margin-top: 48px;
  margin-bottom: 90px;
  padding: 38px 42px;
}

.blog-final-cta > div {
  max-width: 720px;
}

.blog-final-cta .blog-eyebrow {
  color: #86dcff;
}

.blog-final-cta h2 {
  margin: 0;
  color: var(--blog-cta-fg, var(--blog-white));
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.blog-final-cta p:last-child {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--blog-cta-muted, rgba(255, 255, 255, 0.76));
  font-size: 16px;
  line-height: 1.55;
}

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

  .blog-article__layout,
  .blog-article__layout--no-toc {
    grid-template-columns: minmax(0, 800px);
    grid-template-areas:
      "header"
      "hero"
      "rail"
      "body";
    gap: 0;
    justify-content: center;
  }

  .blog-article__layout--has-lead-toc {
    grid-template-areas:
      "header"
      "rail"
      "hero"
      "body";
  }

  .blog-article__header,
  .blog-breadcrumbs {
    max-width: 800px;
  }

  .blog-breadcrumbs {
    padding-left: 0;
  }

  .blog-article-rail {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
    grid-area: rail;
    margin-top: 28px;
  }

  .blog-article-rail--no-toc {
    display: grid;
  }

  .blog-rail__desktop {
    display: none;
  }

  .blog-toc__desktop {
    display: none;
  }

  .blog-toc__mobile {
    display: block;
  }

  .blog-toc__mobile > summary {
    display: list-item;
    color: var(--blog-ink);
    cursor: pointer;
    font-size: 16px;
    font-weight: 780;
  }

  .blog-toc__mobile nav {
    margin-top: 14px;
  }

  .blog-article__body {
    grid-area: body;
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .blog-article {
    display: flex;
    flex-direction: column;
  }

  .blog-article__header {
    order: 1;
  }

  .blog-article__layout {
    order: 3;
  }

  .blog-article__hero-image {
    order: 2;
  }

  .blog-article--no-lead .blog-article__hero-image {
    display: none;
  }

  .blog-related {
    order: 4;
  }

  .blog-final-cta {
    order: 5;
  }

  .blog-shell {
    width: min(100% - 40px, 1280px);
  }

  .blog-archive-hero {
    padding: 36px 0 20px;
  }

  .blog-archive-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.06;
  }

  .blog-archive-hero__lead {
    margin-top: 18px;
    font-size: 17px;
  }

  .blog-search {
    min-height: 50px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    margin-top: 20px;
    padding-left: 14px;
    border-radius: 15px;
  }

  .blog-search button {
    min-width: 78px;
    padding-inline: 14px;
  }

  .blog-topic-chips {
    width: calc(100% + 20px);
    margin-right: -20px;
  }

  .blog-archive-feed {
    padding-block: 28px 64px;
  }

  .blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
  }

  .blog-section-heading h2,
  .blog-related .blog-section-heading h2 {
    font-size: 29px;
  }

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

  .blog-card__body {
    padding: 19px 19px 22px;
  }

  .blog-card__title {
    min-height: auto;
    font-size: 19px;
  }

  .blog-card__excerpt {
    min-height: auto;
  }

  .blog-subscribe-strip,
  .blog-inline-cta,
  .blog-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-subscribe-strip {
    padding: 23px;
  }

  .blog-subscribe-strip .blog-button,
  .blog-inline-cta .blog-button,
  .blog-final-cta .blog-button {
    width: 100%;
  }

  .blog-pagination .prev span:not([aria-hidden]),
  .blog-pagination .next span:not([aria-hidden]) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .blog-breadcrumbs {
    padding-top: 20px;
    font-size: 12px;
  }

  .blog-article__header {
    padding-top: 28px;
  }

  .blog-article__header h1 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.12;
  }

  .blog-article__meta {
    gap: 7px 14px;
    margin-top: 18px;
    font-size: 12px;
  }

  .blog-article__lead {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.62;
  }

  .blog-article__hero-image {
    height: clamp(120px, 36vw, 150px);
    aspect-ratio: auto;
    margin-top: 26px;
    border-radius: 18px;
  }

  .blog-article__layout {
    padding-top: 30px;
  }

  .blog-article__content.article__text {
    max-width: none;
    font-size: 17px;
    line-height: 1.7;
  }

  .blog-article__content.article__text h2 {
    font-size: 27px;
    line-height: 1.24;
  }

  .blog-article__content.article__text h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .blog-article-v2 .post-table-wrapper--wide::before {
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    padding: 8px 12px;
    color: var(--blog-muted);
    content: "Таблицу можно прокручивать по горизонтали →";
    font-size: 11px;
    line-height: 1.3;
  }

  .blog-article-v2 .post-table-wrapper th,
  .blog-article-v2 .post-table-wrapper td {
    min-width: 132px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .blog-inline-cta {
    margin: 30px 0 34px;
    padding: 22px;
  }

  .blog-article__content .iw_button.iw_yellow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 22px !important;
  }

  .blog-article__content .iw_button.iw_yellow::before,
  .blog-article__content .iw_button.iw_yellow::after,
  .blog-article__content .iw_button.iw_yellow > a.btn {
    grid-column: 1;
  }

  .blog-article__content .iw_button.iw_yellow > a.btn {
    width: 100% !important;
    grid-row: 3;
    margin-top: 10px !important;
  }

  .blog-toc {
    padding: 15px 16px;
  }

  .blog-toc ol {
    padding-right: 5px;
  }

  .blog-channels {
    padding: 24px 20px;
  }

  .blog-channels__head h2 {
    font-size: 25px;
  }

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

  .blog-channels__grid > li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .blog-channels__item {
    min-height: 78px;
  }

  .blog-related {
    padding-top: 56px;
  }

  .blog-related .blog-card__title,
  .blog-related .blog-card__excerpt {
    min-height: auto;
  }

  .blog-final-cta {
    margin-top: 36px;
    margin-bottom: 64px;
    padding: 28px 24px;
  }

  .blog-final-cta h2 {
    font-size: 29px;
  }
}

@media (max-width: 420px) {
  .blog-topic-chips a {
    padding-inline: 13px;
  }

  .blog-card__meta {
    gap: 6px 9px;
  }

  .blog-author {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-infinite-loader__spinner {
    animation: none !important;
  }

  .blog-archive-v2 *,
  .blog-article-v2 * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
