:root {
  --terra-ink: #20232b;
  --terra-ink-soft: #3d4655;
  --terra-blue: #147df5;
  --terra-blue-dark: #0b62c8;
  --terra-blue-soft: #eaf3ff;
  --terra-yellow: #ffd400;
  --terra-canvas: #f4f7fb;
  --terra-surface: #ffffff;
  --terra-muted: #657083;
  --terra-border: #dce4ee;
  --terra-shadow: 0 18px 50px rgba(25, 44, 74, .10);
  --terra-radius-xl: 18px;
  --terra-radius-lg: 16px;
  --terra-radius-md: 12px;
  --terra-shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--terra-ink);
  background: var(--terra-surface);
  font-family: EuclidCircular, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body img {
  display: block;
  max-width: 100%;
}

body a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--terra-ink);
  background: rgba(255, 212, 0, .72);
}

input {
  caret-color: var(--terra-blue);
}

.terra-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--terra-ink);
  border-radius: 10px;
  transform: translateY(-160%);
}

.terra-skip-link:focus {
  transform: translateY(0);
}

.terra-visually-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;
}

.terra-demo-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  width: min(calc(100% - 48px), var(--terra-shell));
  min-height: 92px;
  margin: 0 auto;
}

.terra-demo-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.terra-demo-header__brand > span {
  width: 28px;
  height: 28px;
  border: 3px solid var(--terra-blue);
  border-radius: 50%;
}

.terra-demo-header nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.terra-demo-header nav a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.terra-demo-header nav a:hover,
.terra-demo-header nav a[aria-current="page"] {
  color: var(--terra-blue-dark);
  background: var(--terra-blue-soft);
}

.terra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.terra-btn:hover {
  transform: translateY(-2px);
}

.terra-btn--primary {
  color: #fff;
  background: var(--terra-blue-dark);
}

.terra-btn--primary:hover {
  background: #084e9f;
}

.terra-btn--dark {
  color: #fff;
  background: var(--terra-ink);
}

.terra-blog-v2,
.terra-article-v2 {
  min-height: 100vh;
  padding: 0 0 88px;
  background: var(--terra-canvas);
}

.terra-blog-shell {
  width: min(calc(100% - 48px), var(--terra-shell));
  margin: 0 auto;
}

.terra-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  color: var(--terra-muted);
  font-size: 14px;
}

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

.terra-blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 48px;
  min-height: 370px;
  padding: 64px 72px;
  overflow: hidden;
  color: var(--terra-ink);
  background: var(--terra-blue-soft);
  border: 1px solid #cfe2fb;
  border-radius: var(--terra-radius-xl);
}

.terra-blog-hero::after {
  position: absolute;
  right: -78px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 62px solid rgba(20, 125, 245, .10);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.terra-blog-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .99;
}

.terra-blog-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--terra-ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.terra-blog-hero__proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--terra-muted);
  font-size: 14px;
}

.terra-blog-hero__proof strong {
  color: var(--terra-blue-dark);
}

.terra-blog-hero__proof span {
  padding-left: 14px;
  color: var(--terra-ink-soft);
  border-left: 1px solid #b9d4f6;
}

.terra-blog-hero__mark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--terra-yellow);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(25, 44, 74, .18);
  transform: rotate(2deg);
}

.terra-blog-hero__mark span {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}

.terra-blog-hero__mark small {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.terra-blog-tools {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  margin: 0 0 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-radius: var(--terra-radius-lg);
  box-shadow: var(--terra-shadow);
}

.terra-search {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 7px 6px 18px;
  background: var(--terra-canvas);
  border: 1px solid transparent;
  border-radius: 14px;
}

.terra-search:focus-within {
  border-color: var(--terra-blue);
  box-shadow: 0 0 0 3px rgba(20, 125, 245, .18);
}

.terra-search svg {
  width: 22px;
  fill: none;
  stroke: var(--terra-muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.terra-search input {
  min-width: 0;
  height: 44px;
  padding: 0;
  color: var(--terra-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.terra-search input::placeholder {
  color: #8a94a4;
}

.terra-search button {
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: var(--terra-blue);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.terra-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.terra-category-rail a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--terra-ink-soft);
  background: var(--terra-canvas);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.terra-category-rail a:hover,
.terra-category-rail a[aria-current="page"] {
  color: #fff;
  background: var(--terra-ink);
}

.terra-editorial-grid,
.terra-latest,
.terra-entry__related {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.terra-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 24px;
  padding-top: 80px;
}

.terra-section-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
}

.terra-section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.terra-section-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--terra-muted);
  font-size: 16px;
}

.terra-section-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--terra-blue-dark);
  font-weight: 700;
}

.terra-section-heading > a:hover span {
  transform: translateX(4px);
}

.terra-section-heading > a span {
  margin-left: 8px;
  transition: transform 180ms ease;
}

.terra-story {
  min-width: 0;
  overflow: hidden;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-lg);
  transition: border-color 180ms ease, transform 180ms ease;
}

.terra-story:hover {
  border-color: #9fb1c8;
  transform: translateY(-3px);
}

.terra-story__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dde6f1;
}

.terra-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.terra-story:hover .terra-story__media img {
  transform: scale(1.025);
}

.terra-story__body {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
}

.terra-story__meta,
.terra-story__footer,
.terra-entry__byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.terra-story__meta time,
.terra-story__author,
.terra-entry__byline,
.terra-result-count {
  color: var(--terra-muted);
  font-size: 13px;
}

.terra-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--terra-blue-dark);
  background: var(--terra-blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.terra-chip:hover {
  color: #fff;
  background: var(--terra-blue-dark);
}

.terra-story__title {
  margin: 18px 0 12px;
  font-size: 25px;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.terra-story__title a:hover {
  color: var(--terra-blue-dark);
}

.terra-story__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--terra-ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.terra-story__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--terra-border);
}

.terra-story__author:hover,
.terra-story__read:hover {
  color: var(--terra-blue-dark);
}

.terra-story__read {
  font-size: 14px;
  font-weight: 700;
}

.terra-story--lead .terra-story__media {
  aspect-ratio: 16 / 8.5;
}

.terra-story--lead .terra-story__body {
  min-height: 280px;
  padding: 30px;
}

.terra-story--lead .terra-story__title {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.terra-story--lead .terra-story__excerpt {
  max-width: 680px;
  font-size: 18px;
}

.terra-reading-queue {
  padding: 24px;
  background: var(--terra-ink);
  border-radius: var(--terra-radius-lg);
}

.terra-reading-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.terra-reading-queue__head span {
  color: #aeb9c9;
  font-size: 13px;
}

.terra-queue-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.terra-queue-item:last-child {
  border-bottom: 0;
}

.terra-queue-item__number {
  color: var(--terra-yellow);
  font-size: 13px;
  font-weight: 700;
}

.terra-queue-item h3 {
  margin: 12px 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}

.terra-queue-item h3 a:hover {
  color: var(--terra-yellow);
}

.terra-queue-item time {
  color: #aeb9c9;
  font-size: 12px;
}

.terra-latest {
  padding-top: 88px;
}

.terra-blog-feed {
  padding-top: 80px;
}

.terra-blog-feed > .terra-section-heading {
  margin-bottom: 28px;
}

.terra-category-rail--standalone {
  margin: 24px 32px 0;
  padding: 8px;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: 999px;
}

.terra-blog-tools fieldset,
.terra-filter-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.terra-blog-tools .terra-category-rail:empty,
.terra-blog-tools .terra-filter-group:has(.terra-category-rail:empty) {
  display: none;
}

.terra-filter-option {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--terra-ink-soft);
  background: var(--terra-canvas);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.terra-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terra-filter-option:hover,
.terra-filter-option.is-active,
.terra-filter-option:has(input:checked) {
  color: #fff;
  background: var(--terra-ink);
}

.terra-filter-option:has(input:focus-visible) {
  outline: 3px solid var(--terra-blue);
  outline-offset: 3px;
}

.terra-result-status {
  margin: 18px 4px 0;
  color: var(--terra-muted);
  font-size: 14px;
}

.terra-mfilter-results {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.terra-mfilter-results > .terra-story {
  grid-column: span 4;
}

.terra-mfilter-results > .terra-story--lead {
  grid-column: 1 / 9;
  grid-row: 1 / span 3;
}

.terra-mfilter-results > .terra-story--queue {
  grid-column: 9 / 13;
}

.terra-mfilter-results > .terra-story--queue .terra-story__media {
  display: none;
}

.terra-mfilter-results > .terra-story--queue .terra-story__body {
  min-height: 0;
  height: 100%;
  padding: 22px;
}

.terra-mfilter-results > .terra-story--queue .terra-story__title {
  font-size: 21px;
}

.terra-mfilter-results > .terra-story--queue .terra-story__excerpt {
  display: none;
}

.terra-mfilter-results > .terra-story--queue .terra-story__footer {
  margin-top: auto;
  padding-top: 16px;
}

.terra-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.terra-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
}

.terra-pagination a,
.terra-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: 12px;
  font-weight: 700;
}

.terra-pagination a:hover,
.terra-pagination span[aria-current="page"] {
  color: #fff;
  background: var(--terra-blue);
  border-color: var(--terra-blue);
}

.terra-community-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-top: 88px;
  padding: 44px 48px;
  background: var(--terra-yellow);
  border-radius: var(--terra-radius-xl);
}

.terra-community-cta h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.terra-community-cta p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #514700;
  font-size: 17px;
}

.terra-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--terra-shell));
  min-height: 120px;
  margin: 0 auto;
  color: var(--terra-muted);
}

.terra-demo-footer strong {
  color: var(--terra-ink);
  font-size: 22px;
}

/* Article */
.terra-entry {
  padding-top: 18px;
}

.terra-entry__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.terra-entry__hero h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  font-size: clamp(44px, 5.5vw, 72px);
  letter-spacing: -.04em;
  line-height: 1.01;
  text-wrap: balance;
}

.terra-entry__head-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--terra-ink-soft);
  font-size: 21px;
}

.terra-entry__byline {
  justify-content: flex-start;
  margin: 24px 0 0;
  font-size: 14px;
}

.terra-entry__byline a {
  color: var(--terra-blue-dark);
  font-weight: 700;
}

.terra-entry__action {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  background: var(--terra-ink);
  border-radius: var(--terra-radius-lg);
}

.terra-entry__action strong {
  font-size: 21px;
  line-height: 1.2;
}

.terra-entry__action p {
  margin: 12px 0 24px;
  color: #c6d0dd;
  font-size: 14px;
}

.terra-entry__action .terra-btn {
  width: 100%;
}

.terra-entry__hero > img {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--terra-radius-xl);
}

.terra-entry__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: center;
  gap: 72px;
  padding-top: 64px;
}

.terra-entry__toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-md);
}

.terra-entry__toc strong {
  padding: 4px 8px 12px;
}

.terra-entry__toc a {
  padding: 10px 8px;
  color: var(--terra-muted);
  border-left: 2px solid transparent;
  font-size: 14px;
}

.terra-entry__toc a:hover {
  color: var(--terra-blue-dark);
  border-color: var(--terra-blue);
}

.terra-entry__content {
  min-width: 0;
  color: var(--terra-ink-soft);
  font-size: 19px;
  line-height: 1.72;
}

.terra-entry__content > * {
  max-width: 72ch;
}

.terra-entry__content h2 {
  margin: 56px 0 18px;
  color: var(--terra-ink);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.12;
  scroll-margin-top: 24px;
}

.terra-entry__lead {
  margin-top: 0;
  color: var(--terra-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
}

.terra-entry__content blockquote {
  margin: 40px 0;
  padding: 26px 28px;
  color: var(--terra-ink);
  background: var(--terra-blue-soft);
  border: 1px solid #cfe2fb;
  border-radius: var(--terra-radius-md);
}

.terra-entry__content blockquote p {
  margin: 8px 0 0;
}

.terra-entry__related {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--terra-border);
}

.terra-community-cta--article {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.terra-entry__faq {
  max-width: 960px;
  margin: 88px auto 0;
}

.terra-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.terra-faq-list details {
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-md);
}

.terra-faq-list summary {
  min-height: 56px;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-weight: 700;
}

.terra-faq-list details > div {
  padding: 0 18px 20px;
  color: var(--terra-ink-soft);
}

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

body :where(a, button, input):focus-visible {
  outline: 3px solid var(--terra-blue);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .terra-demo-header nav {
    display: none;
  }

  .terra-demo-header {
    grid-template-columns: 1fr auto;
  }

  .terra-blog-hero {
    grid-template-columns: 1fr 170px;
    padding: 52px;
  }

  .terra-blog-hero__mark {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }

  .terra-blog-hero__mark span {
    font-size: 48px;
  }

  .terra-blog-hero__mark small {
    font-size: 11px;
    overflow-wrap: normal;
  }

  .terra-editorial-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .terra-story-grid,
  .terra-entry__related .terra-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terra-entry__layout {
    grid-template-columns: 210px minmax(0, 680px);
    gap: 40px;
  }

  .terra-mfilter-results > .terra-story--lead {
    grid-column: 1 / 8;
  }

  .terra-mfilter-results > .terra-story--queue {
    grid-column: 8 / 13;
  }

  .terra-mfilter-results > .terra-story:not(.terra-story--lead):not(.terra-story--queue) {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .terra-blog-shell,
  .terra-demo-header,
  .terra-demo-footer {
    width: min(calc(100% - 32px), var(--terra-shell));
  }

  .terra-blog-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 48px 36px 84px;
  }

  .terra-blog-hero__mark {
    display: none;
  }

  .terra-blog-tools {
    margin: 0 0 8px;
  }

  .terra-editorial-grid {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .terra-reading-queue {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
  }

  .terra-reading-queue__head {
    grid-column: 1 / -1;
  }

  .terra-queue-item {
    grid-template-columns: 32px 1fr;
    border-bottom: 0;
  }

  .terra-community-cta {
    grid-template-columns: 1fr;
  }

  .terra-entry__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .terra-entry__hero {
    grid-template-columns: 1fr;
  }

  .terra-entry__action {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 24px;
  }

  .terra-entry__action p {
    margin: 0;
  }

  .terra-entry__action .terra-btn {
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
  }

  .terra-entry__toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .terra-entry__toc strong {
    grid-column: 1 / -1;
  }

  .terra-mfilter-results > .terra-story--lead,
  .terra-mfilter-results > .terra-story--queue,
  .terra-mfilter-results > .terra-story:not(.terra-story--lead):not(.terra-story--queue) {
    grid-column: span 6;
    grid-row: auto;
  }

  .terra-mfilter-results > .terra-story--lead {
    grid-column: 1 / -1;
  }

  .terra-mfilter-results > .terra-story--queue .terra-story__media {
    display: block;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .terra-demo-header {
    min-height: 74px;
  }

  .terra-demo-header .terra-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .terra-blog-v2,
  .terra-article-v2 {
    padding-bottom: 56px;
  }

  .terra-breadcrumbs {
    min-height: 52px;
    overflow: hidden;
    white-space: nowrap;
  }

  .terra-blog-hero {
    margin: 0 -16px;
    padding: 42px 24px 78px;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 26px 26px;
  }

  .terra-blog-hero h1 {
    font-size: clamp(40px, 12.5vw, 56px);
  }

  .terra-blog-hero p {
    margin-top: 18px;
    font-size: 17px;
  }

  .terra-blog-hero__proof {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
  }

  .terra-blog-hero__proof span {
    padding-left: 0;
    border-left: 0;
  }

  .terra-blog-tools {
    gap: 14px;
    margin: -42px 0 0;
    padding: 14px;
    border-radius: 18px;
  }

  .terra-category-rail--standalone {
    margin: 16px 0 0;
    padding: 6px;
    border-radius: 16px;
  }

  .terra-blog-feed {
    padding-top: 56px;
  }

  .terra-mfilter-results {
    display: block;
  }

  .terra-mfilter-results > .terra-story {
    margin-bottom: 16px;
  }

  .terra-mfilter-results > .terra-story--queue .terra-story__body {
    padding: 20px;
  }

  .terra-mfilter-results > .terra-story--queue .terra-story__title {
    font-size: 27px;
  }

  .terra-search {
    grid-template-columns: 22px 1fr;
    min-height: 52px;
    padding-right: 12px;
  }

  .terra-search button {
    display: none;
  }

  .terra-category-rail {
    margin-right: -14px;
    padding-right: 14px;
  }

  .terra-editorial-grid,
  .terra-latest {
    padding-top: 56px;
  }

  .terra-section-heading {
    align-items: start;
  }

  .terra-section-heading h2 {
    font-size: 34px;
  }

  .terra-section-heading > a {
    font-size: 0;
  }

  .terra-section-heading > a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 20px;
    background: var(--terra-surface);
    border-radius: 50%;
  }

  .terra-story--lead .terra-story__media {
    aspect-ratio: 4 / 3;
  }

  .terra-story--lead .terra-story__body,
  .terra-story__body {
    min-height: 0;
    padding: 20px;
  }

  .terra-story--lead .terra-story__title,
  .terra-story__title {
    margin-top: 14px;
    font-size: 27px;
  }

  .terra-story--lead .terra-story__excerpt {
    font-size: 16px;
  }

  .terra-story__footer {
    margin-top: 22px;
  }

  .terra-reading-queue {
    display: block;
    padding: 20px;
  }

  .terra-queue-item {
    grid-template-columns: 36px 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .terra-story-grid,
  .terra-entry__related .terra-story-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .terra-latest .terra-story__media,
  .terra-entry__related .terra-story__media {
    aspect-ratio: 16 / 9;
  }

  .terra-pagination {
    padding-top: 36px;
  }

  .terra-community-cta {
    gap: 24px;
    margin: 64px -16px 0;
    padding: 34px 24px;
    border-radius: 0;
  }

  .terra-community-cta h2 {
    font-size: 34px;
  }

  .terra-community-cta .terra-btn {
    width: 100%;
  }

  .terra-demo-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
  }

  .terra-entry {
    padding-top: 6px;
  }

  .terra-entry__hero {
    text-align: left;
  }

  .terra-entry__hero h1 {
    margin-top: 16px;
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .terra-entry__head-copy > p {
    font-size: 17px;
  }

  .terra-entry__byline {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 20px 0 28px;
  }

  .terra-entry__hero > img {
    max-height: 440px;
    margin: 0 -16px;
    max-width: calc(100% + 32px);
    width: calc(100% + 32px);
    border-radius: 0;
  }

  .terra-entry__action {
    display: flex;
    gap: 0;
    padding: 22px;
  }

  .terra-entry__action p {
    margin: 10px 0 20px;
  }

  .terra-entry__action .terra-btn {
    width: 100%;
  }

  .terra-entry__layout {
    padding-top: 36px;
  }

  .terra-entry__toc {
    display: flex;
    gap: 8px;
    margin-right: -16px;
    padding: 14px 16px 14px 14px;
    overflow-x: auto;
  }

  .terra-entry__toc strong {
    display: none;
  }

  .terra-entry__toc a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--terra-canvas);
    border: 0;
    border-radius: 999px;
  }

  .terra-entry__content {
    font-size: 17px;
    line-height: 1.65;
  }

  .terra-entry__lead {
    font-size: 21px;
  }

  .terra-entry__content h2 {
    margin-top: 44px;
    font-size: 32px;
  }

  .terra-entry__content blockquote {
    margin: 32px -4px;
    padding: 22px;
  }

  .terra-entry__related {
    margin-top: 68px;
    padding-top: 42px;
  }

  .terra-entry__faq {
    margin-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* fix: статья без оглавления занимает полную ширину */
.terra-entry__layout > .terra-entry__content:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   Terra Blog — хабовая страница v3
   Паттерн: постоянная навигация по рубрикам + плотная лента + действия сообщества
   ============================================================ */

.thub {
  padding: 0 0 72px;
  background: var(--terra-canvas);
}

.thub__shell {
  width: min(calc(100% - 48px), var(--terra-shell));
  margin: 0 auto;
}

.thub__head {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--terra-border);
}

.thub__head h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.thub__head p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--terra-muted);
  font-size: 16px;
}

.thub__grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 296px;
  gap: 40px;
  align-items: start;
  padding-top: 28px;
}

.thub__rubrics-inner,
.thub__side-inner {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.thub__aside-title {
  display: block;
  color: var(--terra-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trubrics {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.trubrics a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--terra-ink-soft);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.trubrics a:hover {
  color: var(--terra-blue-dark);
  background: var(--terra-blue-soft);
}

.trubrics a[aria-current="page"] {
  color: #fff;
  background: var(--terra-ink);
}

.thub__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--terra-blue-dark);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- центральная лента ---------- */

.thub__search {
  margin: 0 0 16px;
}

.thub__status {
  padding-bottom: 12px;
  color: var(--terra-muted);
  border-bottom: 1px solid var(--terra-border);
  font-size: 13px;
}

.thub__list {
  display: grid;
}

.tstory {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--terra-border);
}

.tstory__body {
  align-self: center;
}

.tstory:last-child {
  border-bottom: 0;
}

.tstory__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #dde6f1;
  border-radius: 12px;
}

.tstory__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.tstory:hover .tstory__media img {
  transform: scale(1.03);
}

.tstory__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--terra-muted);
  font-size: 13px;
}

.tstory__cat {
  color: var(--terra-blue-dark);
  font-weight: 700;
}

.tstory__cat:hover {
  text-decoration: underline;
}

.tstory__author {
  color: var(--terra-ink-soft);
  font-weight: 600;
}

/* разделитель рисуем только если перед автором есть рубрика */
.tstory__cat + .tstory__author {
  position: relative;
  padding-left: 14px;
}

.tstory__cat + .tstory__author::before {
  position: absolute;
  left: 4px;
  color: var(--terra-border);
  content: "·";
}

.tstory__title {
  margin: 8px 0 0;
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.tstory__title a:hover {
  color: var(--terra-blue-dark);
}

.tstory__excerpt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--terra-ink-soft);
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* первая карточка — крупная */
.tstory--lead {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 8px;
}

.tstory--lead .tstory__media {
  aspect-ratio: 16 / 8.4;
  border-radius: var(--terra-radius-lg);
}

.tstory--lead .tstory__title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}

.tstory--lead .tstory__excerpt {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

/* ---------- правая колонка ---------- */

.tpanel {
  padding: 20px;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-lg);
}

.tactions {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tactions a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 180ms ease;
}

.tactions a:hover {
  background: var(--terra-blue-soft);
}

.tactions b {
  font-size: 15px;
}

.tactions small {
  color: var(--terra-muted);
  font-size: 13px;
}

.tevent {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--terra-yellow);
  border-radius: var(--terra-radius-lg);
}

.tevent__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tevent b {
  font-size: 20px;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.tevent p {
  margin: 0;
  font-size: 14px;
}

.tevent small {
  color: #6b5a00;
  font-size: 12px;
  line-height: 1.35;
}

.tevent .terra-btn {
  width: 100%;
}

/* ---------- адаптив ---------- */

@media (max-width: 1180px) {
  .thub__grid {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .thub__side {
    grid-column: 1 / -1;
  }

  .thub__side-inner {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .thub__shell {
    width: calc(100% - 32px);
  }

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

  .thub__rubrics-inner {
    position: static;
  }

  .trubrics {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .trubrics a {
    flex: 0 0 auto;
    background: var(--terra-surface);
    border: 1px solid var(--terra-border);
    border-radius: 999px;
  }

  .thub__all-link {
    display: none;
  }

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

  .tstory {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .tstory__title {
    font-size: 18px;
  }

  .tstory__excerpt {
    display: none;
  }

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

  .tstory--lead .tstory__excerpt {
    display: -webkit-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tstory__media img,
  .trubrics a,
  .tactions a {
    transition: none;
  }

  .tstory:hover .tstory__media img {
    transform: none;
  }
}

/* служебные чекбоксы mFilter2 скрыты: рубрики выведены отдельной навигацией */
.thub__search .terra-filter-group {
  display: none;
}

/* ---------- поиск по блогу: усиленный вид + подсказки ---------- */

.thub__search .terra-search {
  position: relative;
  min-height: 60px;
  padding: 8px 8px 8px 20px;
  background: var(--terra-surface);
  border: 1.5px solid var(--terra-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(25, 44, 74, .05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.thub__search .terra-search:hover {
  border-color: #b9c6d8;
}

.thub__search .terra-search:focus-within {
  border-color: var(--terra-blue);
  box-shadow: 0 0 0 4px rgba(20, 125, 245, .14);
}

.thub__search .terra-search svg {
  width: 20px;
  stroke: var(--terra-blue);
  stroke-width: 2;
}

.thub__search .terra-search input {
  height: 44px;
  font-size: 16px;
}

.thub__search .terra-search input::placeholder {
  color: #7d8899;
}

/* выпадающие подсказки */
.thub__suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(25, 44, 74, .16);
}

.thub__suggest[hidden] {
  display: none;
}

.thub__suggest-item {
  display: block;
  padding: 13px 18px;
  color: var(--terra-ink);
  border-bottom: 1px solid var(--terra-border);
  font-size: 15px;
  line-height: 1.35;
}

.thub__suggest-item:last-child {
  border-bottom: 0;
}

.thub__suggest-item:hover,
.thub__suggest-item.is-active,
.thub__suggest-item:focus-visible {
  color: var(--terra-blue-dark);
  background: var(--terra-blue-soft);
}

@media (max-width: 860px) {
  .thub__search .terra-search {
    min-height: 56px;
    padding-left: 16px;
  }
}

/* fix: double focus ring */
.thub__search .terra-search input:focus,
.thub__search .terra-search input:focus-visible,
.thub__search .terra-search input[type="search"]:focus {
  outline: 0 none;
  border: 0;
  box-shadow: none;
}

/* пагинация блога v3 */
.terra-pagination {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--terra-border);
}

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

.terra-pagination .pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--terra-ink-soft);
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.terra-pagination .pagination__link:hover {
  color: var(--terra-blue-dark);
  background: var(--terra-blue-soft);
  border-color: #b9d4f6;
}

.terra-pagination .pagination__link--current {
  color: #fff;
  background: var(--terra-ink);
  border-color: var(--terra-ink);
}

.terra-pagination .pagination__link:empty {
  display: none;
}

@media (max-width: 860px) {
  .terra-pagination {
    margin-top: 28px;
  }
}

/* иллюстрации в теле статьи */
.terra-entry__content .entry__figure {
  margin: 36px 0;
}

.terra-entry__content .entry__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--terra-canvas);
  border-radius: var(--terra-radius-lg);
}

.terra-entry__content .entry__figure figcaption {
  margin-top: 12px;
  padding-left: 14px;
  color: var(--terra-muted);
  border-left: 3px solid var(--terra-blue-soft);
  font-size: 14px;
  line-height: 1.45;
}

/* лид-абзац и блок «В статье» */
.terra-entry__content .entry__toc-note {
  padding: 18px 20px;
  color: var(--terra-ink-soft);
  background: var(--terra-blue-soft);
  border-radius: var(--terra-radius-md);
  font-size: 16px;
}

/* ссылки в теле статьи */
.terra-entry__content a:not(.terra-btn) {
  color: var(--terra-blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(11, 98, 200, .32);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.terra-entry__content a:not(.terra-btn):hover {
  text-decoration-color: var(--terra-blue-dark);
}

/* FAQ-аккордеон */
.terra-entry__faq details {
  padding: 4px 18px;
  background: var(--terra-surface);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-md);
}

.terra-entry__faq details + details {
  margin-top: 10px;
}

.terra-entry__faq summary {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.terra-entry__faq summary::marker {
  color: var(--terra-blue);
}

.terra-entry__faq details > div {
  padding: 0 0 16px;
  color: var(--terra-ink-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .terra-entry__content .entry__figure {
    margin: 24px 0;
  }
}

/* ── Счётчики рубрик ─────────────────────────────────────────────────────── */
.trubrics a {
  justify-content: space-between;
  gap: 10px;
}
.trubrics__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trubrics__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--terra-blue-soft);
  color: var(--terra-blue-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}
.trubrics a:hover .trubrics__count {
  background: var(--terra-surface);
  color: var(--terra-blue-dark);
}
.trubrics a[aria-current="page"] .trubrics__count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .trubrics__count { transition: none; }
}

/* Счётчик рубрики «Новости» — красный акцент */
.trubrics__count--news {
  background: #ffe4e6;
  color: #d7263d;
}
.trubrics a:hover .trubrics__count--news {
  background: var(--terra-surface);
  color: #d7263d;
}
.trubrics a[aria-current="page"] .trubrics__count--news {
  background: #e11d48;
  color: #fff;
}

/* ── Таблицы в теле статьи ───────────────────────────────────────────────── */
.entry__tablewrap {
  margin: 28px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-md);
  background: var(--terra-surface);
}
.entry__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.entry__table caption {
  padding: 14px 18px 0;
  color: var(--terra-muted);
  font-size: 14px;
  text-align: left;
}
.entry__table th,
.entry__table td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--terra-border);
}
.entry__table thead th {
  color: var(--terra-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.entry__table tbody th {
  width: 1%;
  color: var(--terra-ink);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.entry__table tbody td { color: var(--terra-ink-soft); }
.entry__table tbody tr:last-child th,
.entry__table tbody tr:last-child td { border-bottom: 0; }
.entry__table tbody tr:hover th,
.entry__table tbody tr:hover td { background: var(--terra-blue-soft); }
@media (max-width: 600px) {
  .entry__table { font-size: 15px; }
  .entry__table th,
  .entry__table td { padding: 10px 14px; }
}
