/* RankSprings editorial layouts: blog listing, articles and author pages. */
:root {
  --rs-ink: #0b1026;
  --rs-paper: #f8fafc;
  --rs-muted: #526175;
  --rs-line: rgb(11 16 38 / 0.13);
  --rs-green: #00e676;
  --rs-deep-green: #00854a;
  --rs-blue: #06b6d4;
}

.rs-blog-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.rs-blog-hero,
.rs-article-hero {
  /* Match the footer wordmark's green-to-cyan brand gradient. */
  color: var(--rs-ink);
  background: linear-gradient(90deg, var(--rs-green), var(--rs-blue));
  position: relative;
  overflow: hidden;
}

.rs-blog-hero > *,
.rs-article-hero > * {
  position: relative;
  z-index: 1;
}

.rs-blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgb(11 16 38 / 0.8);
}

.rs-blog-crumbs a:hover {
  color: var(--rs-ink);
  text-decoration: underline;
}

/* Blog archive */
.rs-blog-hero {
  padding: 148px 0 72px;
}

.rs-blog-label {
  margin: 52px 0 20px;
  color: var(--rs-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rs-blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 72px;
  align-items: end;
}

.rs-blog-intro h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.1vw, 5.9rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.rs-blog-intro > p {
  max-width: 36ch;
  margin: 0 0 9px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: rgb(11 16 38 / 0.82);
}

.rs-blog-topics {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--rs-line);
  background: rgb(248 250 252 / 0.94);
  backdrop-filter: blur(12px);
}

.rs-blog-topics > div {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rs-blog-topics a {
  flex: none;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--rs-muted);
}

.rs-blog-topics a:hover,
.rs-blog-topics a.is-active {
  color: white;
  background: var(--rs-ink);
}

.rs-blog-search {
  display: flex;
  align-items: center;
  min-width: 205px;
  margin-left: auto;
  border-left: 1px solid var(--rs-line);
  padding-left: 22px;
}

.rs-blog-search label {
  min-width: 0;
}

.rs-blog-search input[type="search"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.rs-blog-search button {
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 22px;
  cursor: pointer;
}

.rs-posts-section {
  padding-block: 88px 112px;
}

.rs-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rs-line);
}

.rs-section-head p,
.rs-section-head span,
.rs-section-head a {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.rs-section-head p {
  color: var(--rs-deep-green);
  font-weight: 700;
}

.rs-section-head span {
  color: var(--rs-muted);
}

.rs-section-head a {
  color: var(--rs-ink);
}

.rs-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rs-post-card {
  min-width: 0;
  border: 1px solid var(--rs-line);
  background: rgb(255 255 255 / 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rs-post-card:hover {
  transform: translateY(-4px);
  border-color: rgb(0 121 74 / 0.42);
  box-shadow: 0 22px 54px rgb(11 16 38 / 0.08);
}

.rs-post-card > a {
  display: flex;
  min-height: 330px;
  padding: 27px;
  flex-direction: column;
}

.rs-post-lead {
  grid-column: span 2;
  color: var(--rs-ink);
  border-color: transparent;
  background: linear-gradient(90deg, var(--rs-green), var(--rs-blue));
}

.rs-post-lead > a {
  min-height: 440px;
  padding: 36px;
}

.rs-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  color: var(--rs-muted);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rs-post-meta span:first-child {
  color: var(--rs-deep-green);
}

.rs-post-lead .rs-post-meta,
.rs-post-lead .rs-post-excerpt,
.rs-post-lead .rs-post-foot {
  color: rgb(11 16 38 / 0.8);
}

.rs-post-lead .rs-post-meta span:first-child {
  color: var(--rs-ink);
}

.rs-post-card h2 {
  margin: 24px 0 15px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.rs-post-lead h2 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.rs-post-excerpt {
  max-width: 57ch;
  margin: 0;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rs-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto 0 0;
  padding-top: 24px;
  color: var(--rs-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rs-post-foot b {
  font-size: 20px;
  color: currentColor;
}

.rs-blog-end-cta {
  padding-block: 82px;
  color: white;
  background: var(--rs-ink);
}

.rs-blog-end-cta > div {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.rs-blog-end-cta span {
  color: var(--rs-green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.rs-blog-end-cta h2 {
  max-width: 12ch;
  margin: 26px 0 0;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.rs-blog-end-cta p {
  color: rgb(255 255 255 / 0.65);
  line-height: 1.6;
}

.rs-blog-end-cta a {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 27px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rs-green);
  font-weight: 700;
  font-size: 14px;
}

.rs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 45px;
}

.rs-pagination a,
.rs-pagination .current {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  font-size: 12px;
}

.rs-pagination .current {
  color: white;
  background: var(--rs-ink);
}

.rs-blog-empty {
  padding: 70px 0;
}

.rs-blog-empty h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.rs-blog-empty p {
  color: var(--rs-muted);
}

/* Single article: colour field, no banner image. */
.rs-article-hero-inner {
  padding-top: 142px;
  padding-bottom: 58px;
}

.rs-article-category {
  display: inline-flex;
  margin-top: 46px;
  padding: 7px 10px;
  color: var(--rs-ink);
  background: rgb(11 16 38 / 0.08);
  font-size: 12px;
  line-height: 1;
}

.rs-article-hero h1 {
  max-width: 15ch;
  margin: 22px 0 23px;
  font-size: clamp(3.1rem, 6.2vw, 5.9rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.rs-article-deck {
  max-width: 60ch;
  margin: 0;
  color: rgb(11 16 38 / 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.rs-article-byline {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  max-width: 1120px;
}

.rs-credit-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-credit-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 0;
}

.rs-article-byline--multi .rs-credit-person {
  max-width: none;
}

.rs-credit-portrait {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  color: var(--rs-green);
  background: var(--rs-ink);
  font-size: 12px;
  font-weight: 700;
}

.rs-credit-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-credit-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rs-credit-role {
  color: rgb(11 16 38 / 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.rs-credit-name {
  color: var(--rs-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rs-credit-name[href] {
  text-decoration: underline;
  text-decoration-color: rgb(11 16 38 / 0.35);
  text-underline-offset: 3px;
}

.rs-credit-name[href]:hover {
  text-decoration-color: currentColor;
}

.rs-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 0;
  padding-left: 0;
  color: rgb(11 16 38 / 0.8);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.rs-article-meta > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.rs-article-meta time {
  margin-left: 0.28em;
}

.rs-article-meta > span + span::before {
  content: "•";
  margin-right: 14px;
  color: rgb(11 16 38 / 0.45);
}

.rs-reading-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 730px) 1fr;
  gap: 56px;
  padding-block: 86px 116px;
}

.rs-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  grid-column: 1;
  min-width: 0;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
}

.rs-toc {
  flex-shrink: 0;
  border-top: 1px solid var(--rs-ink);
  padding-top: 16px;
}

.rs-toc summary {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
}

.rs-toc summary::-webkit-details-marker {
  display: none;
}

.rs-toc summary > span {
  display: none;
}

.rs-toc nav {
  display: flex;
  min-height: 0;
  margin-top: 17px;
  flex-direction: column;
  /* Reserve room for the summary, card and sticky-header clearance. */
  max-height: max(72px, calc(100vh - 194px - var(--rs-sidebar-card-height, 196px)));
  max-height: max(72px, calc(100dvh - 194px - var(--rs-sidebar-card-height, 196px)));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rs-toc a {
  display: flex;
  gap: 8px;
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--rs-line);
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.35;
}

.rs-toc a > span {
  flex: none;
  color: rgb(82 97 117 / 0.65);
  font-size: 9px;
  line-height: 1.8;
}

.rs-toc a:hover,
.rs-toc a.is-active {
  color: var(--rs-ink);
  border-left: 2px solid var(--rs-green);
}

.rs-toc a.is-active {
  font-weight: 700;
}

.rs-sidebar-cta {
  flex-shrink: 0;
  padding: 20px;
  border: 1px solid var(--rs-line);
  background: white;
}

.rs-sidebar-cta h2 {
  margin: 0;
  color: var(--rs-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.rs-sidebar-cta p {
  margin: 10px 0 18px;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.55;
}

.rs-sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--rs-ink);
  background: linear-gradient(90deg, var(--rs-green), var(--rs-blue));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.rs-sidebar-cta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-sidebar-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rs-inline-cta > span {
  color: var(--rs-deep-green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.rs-article-copy {
  grid-column: 2;
  min-width: 0;
  color: rgb(11 16 38 / 0.82);
  font-size: 18px;
  line-height: 1.76;
}

.rs-article-copy > * + * {
  margin-top: 1.25em;
}

.rs-article-copy > p:first-child {
  margin-top: 0;
  color: var(--rs-ink);
  font-size: 22px;
  line-height: 1.58;
  letter-spacing: -0.03em;
}

.rs-article-copy h2 {
  scroll-margin-top: 112px;
  margin-top: 1.85em;
  color: var(--rs-ink);
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.rs-article-copy h3 {
  scroll-margin-top: 112px;
  margin-top: 1.75em;
  color: var(--rs-ink);
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.rs-article-copy h2 + *,
.rs-article-copy h3 + * {
  margin-top: 0.65em;
}

.rs-article-copy a:not(.rs-inline-cta a):not(.rs-article-tags a):not(.rs-ai-explore a) {
  color: var(--rs-deep-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rs-article-copy strong {
  color: var(--rs-ink);
  font-weight: 700;
}

.rs-article-copy ul,
.rs-article-copy ol {
  padding-left: 1.25em;
}

.rs-article-copy li + li {
  margin-top: 0.48em;
}

.rs-article-copy blockquote {
  margin: 2em 0;
  padding: 0.9em 0 0.9em 1.15em;
  border-left: 3px solid var(--rs-green);
  color: var(--rs-ink);
  font-size: 1.35em;
  line-height: 1.42;
  letter-spacing: -0.035em;
}

.rs-article-copy blockquote p {
  margin: 0;
}

.rs-article-copy .wp-block-table,
.rs-article-copy > table {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 2em;
  border: 1px solid var(--rs-line);
  background: rgb(255 255 255 / 0.52);
}

.rs-article-copy table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.rs-article-copy th,
.rs-article-copy td {
  padding: 15px;
  border-right: 1px solid var(--rs-line);
  border-bottom: 1px solid var(--rs-line);
  text-align: left;
  vertical-align: top;
}

.rs-article-copy thead th {
  color: var(--rs-ink);
  background: #e2e8f0;
}

.rs-article-copy tbody th {
  color: var(--rs-ink);
}

.rs-inline-cta {
  margin: 64px 0 20px;
  padding: 36px;
  color: white;
  background:
    radial-gradient(circle at 93% 10%, rgb(0 230 118 / 0.2), transparent 35%),
    var(--rs-ink);
}

.rs-inline-cta > span {
  color: var(--rs-green);
}

.rs-inline-cta h2 {
  margin: 18px 0 12px;
  color: white;
  font-size: 32px;
}

.rs-inline-cta p {
  margin: 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 15px;
}

.rs-inline-cta a {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.rs-inline-cta b {
  color: var(--rs-green);
}

.rs-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rs-line);
}

.rs-article-tags a {
  padding: 7px 11px;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  color: var(--rs-ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rs-related {
  padding-block: 82px 105px;
  border-top: 1px solid var(--rs-line);
}

.rs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rs-line);
  background: var(--rs-line);
}

.rs-related-grid > a {
  display: flex;
  min-height: 215px;
  padding: 26px;
  flex-direction: column;
  background: var(--rs-paper);
}

.rs-related-grid span {
  color: var(--rs-deep-green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rs-related-grid strong {
  margin-top: 22px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.rs-related-grid b {
  margin-top: auto;
  align-self: flex-end;
  color: var(--rs-deep-green);
  font-size: 20px;
}

@media (max-width: 1050px) {
  .rs-reading-layout {
    grid-template-columns: 220px minmax(0, 700px);
    gap: 42px;
  }

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

  .rs-blog-search {
    display: none;
  }
}

@media (max-width: 780px) {
  .rs-blog-wrap {
    width: min(100% - 32px, 1120px);
  }

  .rs-blog-hero {
    padding: 125px 0 54px;
  }

  .rs-blog-label {
    margin-top: 38px;
  }

  .rs-blog-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .rs-blog-intro h1 {
    font-size: clamp(2.9rem, 11vw, 4.9rem);
  }

  .rs-blog-topics > div {
    width: 100%;
    padding-inline: 16px;
  }

  .rs-posts-section {
    padding-block: 64px 82px;
  }

  .rs-post-card,
  .rs-post-lead {
    grid-column: auto;
  }

  .rs-post-lead > a {
    min-height: 370px;
    padding: 28px;
  }

  .rs-blog-end-cta > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rs-article-hero-inner {
    padding-top: 122px;
    padding-bottom: 48px;
  }

  .rs-article-category {
    margin-top: 38px;
  }

  .rs-article-hero h1 {
    font-size: clamp(2.8rem, 10.5vw, 5rem);
  }

  .rs-credit-list {
    gap: 20px 24px;
  }

  .rs-credit-person {
    flex-basis: 240px;
  }

  .rs-article-meta {
    column-gap: 14px;
  }

  .rs-reading-layout {
    display: block;
    padding-block: 48px 84px;
  }

  .rs-article-sidebar {
    position: static;
    margin-bottom: 42px;
    max-height: none;
  }

  .rs-toc {
    position: static;
    padding: 0;
    border: 1px solid var(--rs-line);
    background: white;
  }

  .rs-toc summary {
    padding: 15px;
  }

  .rs-toc summary > span {
    display: block;
    font-size: 18px;
  }

  .rs-toc[open] summary > span {
    transform: rotate(45deg);
  }

  .rs-toc nav {
    margin: 0;
    padding: 0 15px 15px;
    max-height: none;
    overflow: visible;
  }

  .rs-article-copy {
    max-width: 730px;
    margin-inline: auto;
  }

  .rs-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .rs-credit-list {
    gap: 14px;
  }

  .rs-credit-person {
    flex-basis: 100%;
    max-width: none;
  }

  .rs-article-meta {
    margin-top: 2px;
    padding-left: 0;
    padding-top: 16px;
    border-top: 1px solid rgb(11 16 38 / 0.18);
  }

  .rs-article-meta > span + span::before {
    margin-right: 10px;
  }

  .rs-blog-intro h1,
  .rs-article-hero h1 {
    font-size: 43px;
    line-height: 0.99;
  }

  .rs-blog-intro > p,
  .rs-article-deck {
    font-size: 17px;
  }

  .rs-posts-grid {
    grid-template-columns: 1fr;
  }

  .rs-post-card > a {
    min-height: 300px;
    padding: 23px;
  }

  .rs-post-lead > a {
    min-height: 360px;
  }

  .rs-post-lead h2 {
    font-size: 39px;
  }

  .rs-blog-end-cta {
    padding-block: 62px;
  }

  .rs-blog-end-cta h2 {
    font-size: 41px;
  }

  .rs-article-copy {
    font-size: 17px;
    line-height: 1.72;
  }

  .rs-article-copy > p:first-child {
    font-size: 20px;
  }

  .rs-article-copy h2 {
    font-size: 31px;
  }

  .rs-article-copy .wp-block-table,
  .rs-article-copy > table {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-left: 16px;
    border-inline: 0;
  }

  .rs-inline-cta {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 28px 22px;
  }

  .rs-inline-cta h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-post-card {
    transition: none;
  }
}

/* Author profile page */
.rs-author-page {
  padding-top: 132px;
}

.rs-author-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rs-muted);
  font-size: 14px;
}

.rs-author-crumbs a:hover {
  color: var(--rs-ink);
}

.rs-author-crumb-arrow {
  width: 14px;
  height: 14px;
}

.rs-author-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--rs-line);
  background: white;
}

.rs-author-photo {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: var(--rs-green);
  background: var(--rs-ink);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rs-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-author-links {
  display: flex;
  gap: 4px;
  margin: 14px 0 0 -8px;
  padding: 0;
  list-style: none;
}

.rs-author-links a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--rs-muted);
}

.rs-author-links a:hover {
  color: var(--rs-ink);
}

.rs-author-link-icon {
  width: 20px;
  height: 20px;
}

.rs-author-main h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.rs-author-first {
  color: var(--rs-deep-green);
  background: linear-gradient(90deg, var(--rs-green), var(--rs-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rs-author-title {
  margin: 12px 0 0;
  color: var(--rs-muted);
  font-size: 15px;
}

.rs-author-bio {
  max-width: 72ch;
  margin-top: 22px;
  color: rgb(11 16 38 / 0.85);
  font-size: 17px;
  line-height: 1.65;
}

.rs-author-bio p {
  margin: 0 0 0.8em;
}

.rs-author-articles {
  padding-block: 96px 112px;
}

.rs-author-articles > h2 {
  margin: 0 0 44px;
  text-align: center;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Article share buttons */
.rs-share {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: -9px;
}

.rs-share a,
.rs-share button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--rs-muted);
  background: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rs-share a:hover,
.rs-share button:hover {
  color: var(--rs-ink);
  background: rgb(11 16 38 / 0.05);
}

.rs-share-icon {
  width: 20px;
  height: 20px;
}

.rs-share-done,
.rs-share button.is-copied .rs-share-icon:first-child {
  display: none;
}

.rs-share button.is-copied .rs-share-done {
  display: block;
  color: var(--rs-deep-green);
}

.rs-share-status {
  color: var(--rs-deep-green);
  font-size: 12px;
  font-weight: 600;
}

/* Contents heading: "In this article" with a rule under it */
.rs-toc summary {
  color: var(--rs-muted);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 781px) {
  .rs-toc {
    border-top: 0;
    padding-top: 0;
  }

  .rs-toc summary {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rs-line);
  }

  .rs-toc nav {
    margin-top: 14px;
    /* Room for the share row as well as the summary, card and header. */
    max-height: max(72px, calc(100vh - 252px - var(--rs-sidebar-card-height, 196px)));
    max-height: max(72px, calc(100dvh - 252px - var(--rs-sidebar-card-height, 196px)));
  }
}

/* About the author, end of article */
.rs-author-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding: 24px;
  border: 1px solid var(--rs-line);
  background: white;
}

.rs-author-box-photo {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.rs-author-box-name {
  margin: 0;
}

.rs-author-box-name strong {
  display: block;
  font-size: 17px;
}

.rs-author-box-name span {
  display: block;
  margin-top: 2px;
  color: var(--rs-muted);
  font-size: 14px;
}

.rs-author-box-bio {
  margin: 10px 0 14px;
  color: rgb(11 16 38 / 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.rs-author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--rs-green);
  font-size: 14px;
  font-weight: 700;
}

.rs-author-box-arrow {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .rs-author-page {
    padding-top: 112px;
  }

  .rs-author-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .rs-author-photo {
    width: 140px;
    font-size: 44px;
  }

  .rs-author-articles {
    padding-block: 64px 84px;
  }

  .rs-author-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Article intro: "Summarize with AI" bar and TL;DR box. */
.rs-article-intro + p {
  color: var(--rs-ink);
  font-size: 22px;
  line-height: 1.58;
  letter-spacing: -0.03em;
}

.rs-ai-explore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--rs-line);
  background: white;
}

.rs-ai-explore p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--rs-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.rs-ai-explore-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--rs-deep-green);
}

.rs-ai-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-ai-explore-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  color: var(--rs-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rs-ai-explore-links a:hover,
.rs-ai-explore-links a:focus-visible {
  border-color: transparent;
  background: linear-gradient(90deg, var(--rs-green), var(--rs-blue));
}

.rs-tldr {
  margin-top: 20px;
  padding: 26px 28px 28px;
  /* 15 Nov 2026: MaxIQ-style panel - light mint rectangle with a thin border, no thick left bar. */
  border: 1px solid rgb(0 133 74 / 0.24);
  border-radius: 6px;
  background: #eefaf5;
  color: rgb(11 16 38 / 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.rs-article-copy .rs-tldr h2 {
  margin: 0 0 12px;
  color: var(--rs-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.rs-tldr p {
  margin: 0;
}

.rs-tldr p + p,
.rs-tldr p + ul {
  margin-top: 14px;
}

.rs-tldr ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.rs-tldr li + li {
  margin-top: 0.45em;
}

.rs-tldr li::marker {
  color: var(--rs-ink);
}

.rs-tldr li strong {
  color: var(--rs-ink);
  font-weight: 700;
}

@media (max-width: 540px) {
  .rs-ai-explore {
    padding: 14px;
  }

  .rs-tldr {
    padding: 20px 18px 22px;
    font-size: 16px;
  }

  .rs-article-copy .rs-tldr h2 {
    font-size: 21px;
  }

  .rs-article-intro + p {
    font-size: 20px;
  }
}

/* 15 Nov 2026: post banners (16:9 featured image) in the article hero and on archive cards.
   Posts without a featured image keep the original text-only layout. */
.rs-article-banner {
  margin: 0;
}

.rs-article-banner img,
.rs-post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rs-article-banner img {
  border-radius: 6px;
  box-shadow: 0 24px 60px rgb(11 16 38 / 0.22);
}

@media (min-width: 901px) {
  .rs-article-hero--banner .rs-article-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    grid-template-rows: auto auto;
    grid-template-areas: "text banner" "byline banner";
    align-items: end;
    column-gap: 56px;
  }

  .rs-article-hero--banner .rs-article-hero-text { grid-area: text; }
  .rs-article-hero--banner .rs-article-banner { grid-area: banner; align-self: center; }
  .rs-article-hero--banner .rs-article-hero-byline { grid-area: byline; align-self: start; }
  .rs-article-hero--banner .rs-article-hero-byline .rs-article-byline { margin-top: 0; }

  .rs-article-hero--banner h1 {
    max-width: none;
    font-size: clamp(2.5rem, 4.1vw, 3.9rem);
    line-height: 1.02;
  }
}

@media (max-width: 900px) {
  .rs-article-banner {
    max-width: 640px;
    margin-top: 4px;
  }

  .rs-article-hero--banner h1 {
    margin-bottom: 20px;
  }
}

.rs-post-card--banner > a {
  padding: 0;
}

.rs-post-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--rs-line);
}

.rs-post-thumb img {
  transition: transform 0.35s ease;
}

.rs-post-card--banner:hover .rs-post-thumb img {
  transform: scale(1.03);
}

.rs-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 27px 27px;
}

.rs-post-card--banner .rs-post-body h2 {
  margin-top: 16px;
}

/* Lead card with a banner: full-width banner across the top, text below. */
.rs-post-lead.rs-post-card--banner > a {
  min-height: 0;
  padding: 0;
}

.rs-post-lead.rs-post-card--banner .rs-post-thumb {
  border-bottom: 0;
}

.rs-post-lead.rs-post-card--banner .rs-post-body {
  padding: 30px 36px 32px;
}

.rs-post-lead.rs-post-card--banner h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.02;
}

@media (max-width: 780px) {
  .rs-post-lead.rs-post-card--banner .rs-post-body {
    padding: 24px 27px 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-post-thumb img,
  .rs-post-card--banner:hover .rs-post-thumb img {
    transition: none;
    transform: none;
  }
}

/* 25 Nov 2026: compact lead card - it spans two columns at about the height of a normal card. */
@media (min-width: 781px) {
  .rs-post-lead.rs-post-card--banner .rs-post-thumb img {
    aspect-ratio: 2.2 / 1;
  }

  .rs-post-lead.rs-post-card--banner .rs-post-body {
    padding: 20px 28px 22px;
  }

  .rs-post-lead.rs-post-card--banner h2 {
    max-width: 32ch;
    margin: 10px 0 8px;
    font-size: clamp(1.55rem, 2.25vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .rs-post-lead.rs-post-card--banner .rs-post-excerpt {
    display: -webkit-box;
    max-width: 75ch;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .rs-post-lead.rs-post-card--banner .rs-post-foot {
    padding-top: 14px;
  }
}

/* 25 Nov 2026: article header has no colour layer; title and banner sit on the plain page. */
.rs-article-hero {
  background: transparent;
}

.rs-article-hero .rs-article-hero-inner {
  padding-bottom: 8px;
}

.rs-article-hero .rs-article-banner img {
  box-shadow: none;
}

.rs-article-hero + * .rs-reading-layout,
.rs-article-hero ~ .rs-reading-layout {
  padding-top: 40px;
}

/* 25 Nov 2026: soft infographic fills. The solid brand gradient stays only on small dots and connector lines.
   !important is needed because the infographics carry inline styles. */
.rs-article-copy figure[style*="linear-gradient(135deg,#1BF878"] {
  border-color: #E2E8F0 !important;
  background: #FFFFFF !important;
}

.rs-article-copy figure [style*="linear-gradient(135deg,#1BF878"]:not([style*="width:2px;"]):not([style*="flex:0 0 14px"]) {
  border-color: rgb(0 133 74 / 0.24) !important;
  background: #EEFAF5 !important;
}

/* Keep the thick accent edges that mark highlighted steps. */
.rs-article-copy figure [style*="linear-gradient(135deg,#1BF878"][style*="border-left:5px"] {
  border-left-color: #00C853 !important;
}

.rs-article-copy figure [style*="linear-gradient(135deg,#1BF878"][style*="border-top:4px"] {
  border-top-color: #00C853 !important;
}

.rs-article-copy figure [style*="border:2px solid #00C8D9"][style*="linear-gradient(135deg,#1BF878"] {
  border-color: #00C853 !important;
}

/* 26 Nov 2026: compact archive cards - equal size, no description. */
.rs-post-card--compact { overflow: hidden; border-radius: 6px; background: #f5f6f7; }
.rs-post-card.rs-post-card--compact > a { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0; }
.rs-post-card--compact .rs-post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rs-post-card--compact .rs-post-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px; }
.rs-post-card--compact .rs-post-meta { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; text-transform: none; letter-spacing: 0; }
.rs-post-card--compact .rs-post-meta .rs-post-cat { padding: 5px 10px; border-radius: 4px; color: var(--rs-ink); background: var(--rs-green); font-weight: 600; }
.rs-post-card--compact .rs-post-time { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--rs-muted); }
.rs-post-card--compact .rs-post-icon { flex: none; width: 15px; height: 15px; }
.rs-post-card.rs-post-card--compact .rs-post-body h2 { margin: 16px 0 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.rs-post-card--compact .rs-post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 7px; margin: auto 0 0; padding-top: 18px; font-size: 13px; text-transform: none; letter-spacing: 0; }

.rs-post-card.rs-post-feature > a { display: flex; flex-direction: column; height: 100%; }
.rs-post-card--compact .rs-post-meta .rs-post-cat { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
