/* Insights styles are isolated from the existing landing page sections. */
.insights-section,
.insights-page {
  --insights-ink: #202b2b;
  --insights-paper: #faf9f3;
  --insights-orange: #ed4e1c;
  --insights-mint: #bce5cf;
}

.insights-section *,
.insights-page *,
.insights-page *::before,
.insights-page *::after {
  box-sizing: border-box;
}

.lively-site .insights-section {
  padding: 90px 0 76px;
  background: #faf9f3;
  color: #202b2b;
  text-align: left;
}

.insights-heading {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 44px;
  margin-bottom: 42px;
}

.insights-eyebrow {
  margin: 0 0 15px;
  color: #66736a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.5;
  text-transform: uppercase;
}

.lively-site .insights-section h2 {
  margin: 0;
}

.insights-section h2 > span,
.related-heading h2 > span {
  color: #d74a20;
}

.insights-intro {
  margin: 0 0 4px;
  color: #53645d;
  font-size: 15px;
  line-height: 1.8;
}

.insights-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
}

.insights-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid #c5d0c6;
  border-radius: 50%;
  background: transparent;
  color: #202b2b;
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s;
}

.insights-controls button:hover:not(:disabled) {
  background: #bce5cf;
  border-color: #94bda4;
}

.insights-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.insights-controls [hidden] {
  display: none;
}

.insights-controls [data-insights-prev] svg {
  transform: rotate(180deg);
}

.insights-controls svg {
  width: 24px;
  height: 24px;
}

.insights-track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 3px 3px 28px;
  margin: -3px -3px 0;
}

.insights-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.insights-track .insight-card {
  flex: 0 0 calc((100% - 42px) / 2.3);
  scroll-snap-align: start;
}

.insight-card {
  min-width: 0;
  margin: 0;
}

.insight-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #202b2b;
  text-decoration: none;
}

.insight-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: #e3ebe1;
}

.insight-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-open {
  display: flex;
  position: absolute;
  right: 17px;
  bottom: 17px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #202b2b1f;
  border-radius: 50%;
  background: #fff9eb;
  color: #202b2b;
  transition: background-color 0.18s;
}

.insight-open svg {
  width: 22px;
  height: 22px;
  transform: rotate(-35deg);
}

.insight-card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #596a60;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
}

.insight-card-meta > span:first-child {
  color: #354f40;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.lively-site .insights-section .insight-card h3,
.insights-page .insight-card h3 {
  margin: 13px 0 12px;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.23;
  letter-spacing: -0.95px;
  font-weight: 800;
  text-transform: none;
}

.insight-card-link > p {
  margin: 0 0 24px;
  color: #53645d;
  font-size: 15px;
  line-height: 1.8;
}

.insight-read {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: #202b2b;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.insight-read svg {
  width: 21px;
  height: 21px;
}

.insight-card-link:hover .insight-open {
  background: #bce5cf;
}

.insight-card-link:hover h3 {
  text-decoration: underline;
  text-decoration-color: #ed4e1c;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.insights-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 22px;
  color: #66736a;
  font-size: 11px;
  line-height: 1.6;
}

.insights-section a:focus-visible,
.insights-section button:focus-visible,
.insights-track:focus-visible,
.insights-page a:focus-visible {
  outline: 2px solid #ad3f1e;
  outline-offset: 3px;
}
/* Article pages share the landing page palette and typography. */
.insights-page {
  margin: 0;
  min-width: 0;
  background: #faf9f3;
  color: #202b2b;
  font-family: 'Manrope', Arial, sans-serif;
  text-align: left;
}

.insights-container {
  width: calc(100% - 96px);
  max-width: 1480px;
  margin: 0 auto;
}

.insights-page a {
  color: inherit;
}

.article-skip {
  position: fixed;
  left: 24px;
  top: -100px;
  z-index: 20;
  padding: 14px 20px;
  background: #bce5cf;
  color: #171e24;
}

.article-skip:focus {
  top: 12px;
}

.article-hero {
  padding: 28px 0 72px;
  background: #171e24;
  color: #fff9eb;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  color: #bdc9c7;
  font-size: 11px;
  line-height: 1.8;
}

.article-breadcrumb a {
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: #fff9eb;
  text-decoration: underline;
}

.article-breadcrumb > span:last-child {
  color: #bce5cf;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 23px;
  font-size: 11px;
  color: #bdc9c7;
}

.article-meta > span:first-child {
  color: #bce5cf;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2.3px;
}

.article-hero h1 span {
  color: #bce5cf;
}

.article-dek {
  max-width: 510px;
  margin: 26px 0 0;
  color: #bdc9c7;
  font-size: 16px;
  line-height: 1.8;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-reading {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: 72px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.article-sidebar {
  align-self: stretch;
}

.article-toc {
  position: sticky;
  top: calc(var(--site-header-height, 64px) + 36px);
}

.article-toc > p {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #66736a;
}

.article-toc ol {
  display: grid;
  gap: 18px;
  padding: 0 0 27px;
  margin: 0;
  border-bottom: 1px solid #d9dfd4;
  list-style: none;
}

.article-toc li a {
  display: flex;
  gap: 13px;
  color: #53645d;
  font-size: 12px;
  line-height: 1.65;
  text-decoration: none;
}

.article-toc li a span {
  padding-top: 1px;
  color: #a4492e;
  font-size: 10px;
  font-weight: 700;
}

.article-toc a:hover {
  color: #a83e1d;
}

.article-all {
  display: inline-flex;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.article-body {
  min-width: 0;
  font-size: 17px;
  line-height: 1.9;
  scroll-margin-top: calc(var(--site-header-height, 64px) + 36px);
}

.article-body:focus {
  outline: none;
}

.article-body > p {
  margin: 0 0 23px;
}

.article-body > p:first-child {
  margin-top: -8px;
  color: #202b2b;
  font-size: 21px;
  line-height: 1.8;
  font-weight: 500;
}

.article-body h2 {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin: 52px 0 22px;
  color: #202b2b;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
  scroll-margin-top: calc(var(--site-header-height, 64px) + 36px);
}

.article-section-number {
  flex-shrink: 0;
  color: #a4492e;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}

.article-body h3 {
  margin: 30px 0 12px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.45px;
  scroll-margin-top: calc(var(--site-header-height, 64px) + 36px);
}

.article-body a {
  color: #97401f;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.article-body strong {
  font-weight: 800;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin: 20px 0 28px;
}

.article-body li {
  padding-left: 7px;
  margin-bottom: 13px;
}

.article-body li::marker {
  color: #a4492e;
  font-weight: 800;
}

.article-takeaway {
  position: relative;
  margin: 38px 0;
  padding: 30px 34px;
  border-left: 4px solid #ed4e1c;
  background: #e2eee0;
  border-radius: 0 6px 6px 0;
}

.takeaway-label {
  display: block;
  margin-bottom: 14px;
  color: #4a6352;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.article-takeaway p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.75;
}

.article-takeaway p:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.article-table-wrap caption {
  padding-bottom: 16px;
  color: #66736a;
  font-size: 12px;
  text-align: left;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 15px 17px;
  border-bottom: 1px solid #d9dfd4;
}

.article-table-wrap thead {
  background: #202b2b;
  color: #fff9eb;
}

.article-table-wrap tbody tr:nth-child(even) {
  background: #edf1e8;
}

.article-table-wrap tbody th {
  font-weight: 600;
}

.article-body .article-sources {
  margin-top: 52px;
  padding-top: 25px;
  border-top: 1px solid #d9dfd4;
}

.article-body .article-sources h2 {
  margin: 0 0 17px;
  font-size: 15px;
  letter-spacing: -0.1px;
}

.article-sources ul {
  margin: 0;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.7;
}

.article-sources li {
  margin-bottom: 9px;
}

.article-endnote {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #d9dfd4;
}

.article-endmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  height: 54px;
  background: #171e24;
  border-radius: 50%;
  color: #fff9eb;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
}

.article-endnote p {
  margin: 0;
  color: #66736a;
  font-size: 13px;
  line-height: 1.9;
}

.article-endnote a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.article-endnote svg {
  width: 20px;
  height: 20px;
}

.article-related {
  padding: 56px 0 80px;
  border-top: 1px solid #d9dfd4;
}

.related-heading {
  margin-bottom: 36px;
}

.related-heading h2 {
  margin: 0;
  font-size: clamp(29px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -1.4px;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.related-grid .insight-card-image {
  aspect-ratio: 2 / 1;
}

.related-grid .insight-card-image img {
  object-position: center;
}

.related-grid .insight-card h3 {
  font-size: 26px;
}

.related-grid .insight-card-link > p {
  max-width: 520px;
}

.insights-footer {
  padding: 28px 0;
  border-top: 1px solid #d9dfd4;
  color: #53645d;
  font-size: 11px;
  line-height: 1.8;
}

.insights-footer > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.insights-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
}

.insights-footer a {
  text-decoration: none;
}

.insights-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .insights-heading {
    gap: 24px;
  }

  .insights-intro {
    font-size: 13px;
  }

  .insights-track .insight-card {
    flex-basis: calc((100% - 24px) / 1.7);
  }

  .article-hero-grid {
    gap: 32px;
  }

  .article-reading {
    gap: 40px;
    grid-template-columns: 185px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .insights-container {
    width: calc(100% - 60px);
  }

  .lively-site .insights-section {
    padding: 64px 0 54px;
  }

  .insights-heading {
    grid-template-columns: 1fr auto;
    gap: 22px;
  }

  .insights-intro {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px;
  }

  .insights-controls {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .article-hero {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .article-breadcrumb {
    margin-bottom: 28px;
  }

  .article-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-hero h1 {
    max-width: 660px;
    font-size: clamp(36px, 6.7vw, 56px);
    letter-spacing: -1.7px;
  }

  .article-dek {
    max-width: 600px;
  }

  .article-cover {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .article-reading {
    display: block;
    padding: 40px 0 56px;
  }

  .article-sidebar {
    margin-bottom: 42px;
  }

  .article-toc {
    position: static;
  }

  .article-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 25px;
  }

  .article-all {
    display: none;
  }

  .article-related {
    padding-top: 40px;
  }

  .related-grid {
    gap: 24px;
  }

  .insights-page .related-grid .insight-card h3 {
    font-size: 23px;
  }
}
@media (max-width: 620px) {
  .insights-container {
    width: calc(100% - 44px);
  }

  .lively-site .insights-section {
    padding: 48px 0 40px;
  }

  .insights-heading {
    gap: 18px;
    margin-bottom: 27px;
  }

  .insights-eyebrow {
    font-size: 10px;
    letter-spacing: 1.1px;
  }

  .insights-intro {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .insights-controls {
    gap: 8px;
    grid-row: 1;
    align-self: end;
  }

  .insights-controls button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 10px;
  }

  .insights-track {
    gap: 20px;
    padding-bottom: 23px;
  }

  .insights-track .insight-card {
    flex-basis: 89%;
  }

  .insight-card-meta {
    margin-top: 18px;
    font-size: 10px;
  }

  .insight-card-meta > span:first-child {
    letter-spacing: 0.7px;
  }

  .lively-site .insights-section .insight-card h3 {
    font-size: 26px;
  }

  .insight-card-link > p {
    font-size: 14px;
  }

  .insights-bottom {
    font-size: 10px;
  }

  .article-hero h1 {
    font-size: 38px;
    line-height: 1.13;
    letter-spacing: -1.6px;
  }

  .article-meta {
    font-size: 10px;
    margin-bottom: 18px;
  }

  .article-dek {
    font-size: 15px;
    margin-top: 22px;
  }

  .article-breadcrumb {
    font-size: 10px;
    gap: 9px;
  }

  .article-toc ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .article-body > p:first-child {
    font-size: 19px;
  }

  .article-body h2 {
    font-size: 25px;
    gap: 12px;
    margin-top: 38px;
  }

  .article-body h3 {
    font-size: 20px;
  }

  .article-takeaway {
    padding: 24px 22px;
    margin: 30px 0;
  }

  .article-takeaway p {
    font-size: 17px;
  }

  .article-table-wrap table {
    font-size: 12px;
  }

  .article-table-wrap th,
  .article-table-wrap td {
    padding: 13px 10px;
  }

  .article-endnote {
    gap: 16px;
  }

  .article-endnote p {
    font-size: 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .related-grid .insight-card-image {
    aspect-ratio: 3 / 2;
  }

  .related-heading h2 {
    font-size: 31px;
  }

  .article-related {
    padding-bottom: 48px;
  }

  .insights-footer > div {
    flex-direction: column;
    gap: 13px;
  }

  .insights-footer nav {
    gap: 10px 20px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  body.insights-enabled {
    --navigation-font-size: 12px;
  }

  .insights-controls button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .insights-track .insight-card {
    flex-basis: 91%;
  }

  .insight-card-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .insights-page .article-hero h1 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insights-controls button,
  .insight-open {
    transition: none;
  }

  .insights-track {
    scroll-behavior: auto;
  }
}
/* The full Insights collection uses the existing article card system. */
.insights-bottom .insights-browse-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #202b2b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.insights-browse-all svg {
  width: 20px;
  height: 20px;
}

.insights-browse-all:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.library-hero .insights-eyebrow {
  color: #bce5cf;
}

.library-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: end;
}

.library-heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: #bdc9c7;
  font-size: 17px;
  line-height: 1.9;
}

.library-collection {
  padding-top: 60px;
  padding-bottom: 80px;
  scroll-margin-top: calc(var(--site-header-height, 64px) + 36px);
}

.library-collection:focus {
  outline: none;
}

.library-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 38px;
}

.library-section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.library-section-heading h2 > span {
  color: #d74a20;
}

.library-section-heading > p {
  margin: 0;
  color: #66736a;
  font-size: 13px;
  line-height: 1.7;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}

.insights-library .library-grid .insight-card h3 {
  font-size: clamp(23px, 1.8vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.65px;
}

.library-grid .insight-card-meta {
  flex-wrap: wrap;
  gap: 7px 12px;
}

.library-grid .insight-card-link > p {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-heading {
    gap: 36px;
  }
}
@media (max-width: 800px) {
  .library-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .library-heading > p {
    max-width: 600px;
    font-size: 16px;
  }

  .library-collection {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .library-grid {
    gap: 42px 24px;
  }
}
@media (max-width: 620px) {
  .insights-bottom .insights-browse-all {
    gap: 6px;
    font-size: 11px;
  }

  .library-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .library-section-heading {
    margin-bottom: 28px;
    gap: 12px;
  }

  .library-section-heading h2 {
    font-size: 28px;
  }

  .library-heading > p {
    font-size: 15px;
  }

  .insights-library .library-grid .insight-card h3 {
    font-size: 26px;
  }
}
/* Extended guides: diagrams and examples remain local to long-form articles. */
.insights-longform .article-diagram {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 34px 0;
  padding: 28px;
  background: #171e24;
  border-radius: 6px;
  color: #fff9eb;
}

.insights-longform .article-diagram figcaption {
  order: -1;
  color: #bce5cf;
  font-size: 12px;
  line-height: 1.7;
}

.insights-longform .article-diagram ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}

.insights-longform .article-diagram li {
  position: relative;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #bce5cf50;
  counter-increment: flow-step;
}

.insights-longform .article-diagram li::before {
  content: '0' counter(flow-step);
  display: block;
  margin-bottom: 12px;
  color: #ff865f;
  font-size: 12px;
  font-weight: 700;
}

.insights-longform .article-diagram li:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: -17px;
  right: -14px;
  color: #bce5cf;
  background: #171e24;
  padding: 0 4px;
  font-size: 17px;
}

.insights-longform .article-diagram strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.insights-longform .article-diagram li span {
  display: block;
  color: #bdc9c7;
  font-size: 12px;
  line-height: 1.7;
}

.insights-longform .article-body code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #e6ece2;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.insights-longform .article-body pre {
  overflow-x: auto;
  padding: 24px;
  border-left: 3px solid #ed4e1c;
  border-radius: 0 6px 6px 0;
  background: #171e24;
  color: #e2eee0;
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}

.insights-longform .article-body pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
  overflow-wrap: normal;
}

.article-table-wrap:focus-visible,
.insights-longform .article-body pre:focus-visible {
  outline: 2px solid #a4492e;
  outline-offset: 4px;
}

.insights-longform .article-table-wrap th,
.insights-longform .article-table-wrap td {
  vertical-align: top;
}
@media (min-width: 801px) {
  .insights-longform .article-toc {
    max-height: calc(100vh - var(--site-header-height, 64px) - 66px);
    max-height: calc(100svh - var(--site-header-height, 64px) - 66px);
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
  }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .insights-longform .article-diagram ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .insights-longform .article-diagram li:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 620px) {
  .insights-longform .article-table-wrap table {
    min-width: 580px;
  }

  .insights-longform .article-table-wrap {
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #9aada0 #e5e8de;
  }

  .insights-longform .article-table-wrap::before {
    content: 'Swipe to explore the table →';
    display: block;
    margin-bottom: 12px;
    color: #66736a;
    font-size: 11px;
  }

  .insights-longform .article-diagram {
    padding: 24px;
  }

  .insights-longform .article-diagram ol {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .insights-longform .article-diagram li {
    display: grid;
    grid-template-columns: 25px 1fr;
    column-gap: 14px;
    padding-top: 18px;
  }

  .insights-longform .article-diagram li::before {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
  }

  .insights-longform .article-diagram li:not(:last-child)::after {
    display: none;
  }

  .insights-longform .article-diagram strong,
  .insights-longform .article-diagram li span {
    grid-column: 2;
  }

  .insights-longform .article-body pre {
    padding: 20px;
    font-size: 12px;
  }
}
