/**
 * Insights — TrafficHolic resources + news-article layout
 * RankByLeo tokens (sky/sun), structure mirrored from trafficholic.com/resources/
 */

.rbl-insights-page,
.news-article.page-shell {
  --th-max: min(1200px, 100%);
  --th-gutter: clamp(1.25rem, 4vw, 5.5rem);
  --th-line: var(--line, #d7e8f4);
  --th-text: var(--ink, #0f172a);
  --th-muted: var(--ink-muted, #64748b);
  --th-dim: var(--ink-muted, #64748b);
  --th-pop: var(--sky, #58a6d6);
  --th-pop-soft: var(--sky-soft, #e7f3fb);
  --th-accent: var(--sky-deep, #006bbd);
  --th-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-shell {
  max-width: var(--th-max);
  margin: 0 auto;
  padding: calc(var(--header-h, 4.5rem) + 2.5rem) var(--th-gutter) 4rem;
}

.resources-page {
  overflow-x: clip;
  max-width: min(100%, var(--th-max));
}

.rbl-insights-page--index-first .resources-index {
  margin-top: 0;
}

.rbl-insights-page--index-first .resources-index-head h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--th-text);
}

.resources-page .breadcrumbs,
.news-article .breadcrumbs {
  margin-bottom: 1.5rem;
}

.resources-page .breadcrumbs ol,
.resources-page .breadcrumbs__list,
.news-article .breadcrumbs ol,
.news-article .breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--th-dim);
}

.resources-page .breadcrumbs a,
.news-article .breadcrumbs a {
  color: var(--th-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.resources-page .breadcrumbs a:hover,
.news-article .breadcrumbs a:hover {
  color: var(--th-text);
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-dim);
  margin: 0 0 1rem;
  font-weight: 600;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--th-muted);
  max-width: 42rem;
  margin: 0 0 0;
  line-height: 1.75;
}

.page-lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--th-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.text-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--th-text) !important;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.25s, color 0.25s;
}

.text-link:hover {
  border-bottom-color: var(--th-accent);
  color: var(--th-accent) !important;
}

/* ——— Listing hero ——— */
.resources-hero {
  margin-bottom: 3.5rem;
  min-width: 0;
  max-width: 100%;
}

.resources-hero--solo .resources-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.resources-hero-grid {
  display: grid;
  gap: 1.75rem 2rem;
  align-items: stretch;
  margin-top: 1rem;
  min-width: 0;
}

.resources-hero-copy {
  min-width: 0;
}

.resources-hero-copy h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--th-text);
  overflow-wrap: anywhere;
}

.resources-hero-copy .page-lead {
  margin-bottom: 1.5rem;
}

.resources-hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.resources-hero-stats li {
  min-width: 0;
  padding: 0.95rem 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--th-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.resources-hero-stats strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--th-text);
}

.resources-hero-stats span {
  font-size: 0.82rem;
  color: var(--th-muted);
}

.resources-topic-row {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.resources-topic {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--th-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--th-ease), transform 0.3s var(--th-ease), background 0.3s var(--th-ease);
}

.resources-topic:hover {
  border-color: rgba(88, 166, 214, 0.75);
  background: var(--th-pop-soft);
  transform: translateY(-2px);
}

.resources-topic strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--th-text);
}

.resources-topic span {
  font-size: 0.85rem;
  color: var(--th-muted);
  line-height: 1.5;
}

/* ——— Index + filters ——— */
.resources-index {
  margin-bottom: 2.5rem;
}

.resources-index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  min-width: 0;
}

.resources-index-head h1,
.resources-index-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0.35rem 0 0.65rem;
  color: var(--th-text);
}

.resources-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.resources-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  min-width: 0;
  max-width: 100%;
}

.resources-toolbar .resources-filter {
  justify-content: flex-end;
}

.rbl-insights__views {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.2rem;
  background: #f1f5f9;
  border: 1px solid var(--th-line);
  border-radius: 999px;
}

.rbl-insights__views button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--th-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.rbl-insights__views button.is-active {
  background: #fff;
  color: var(--th-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.rbl-insights__views button:focus-visible {
  outline: 2px solid var(--th-accent);
  outline-offset: 2px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-dim);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--th-line);
  background: #fff;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  color: var(--th-text);
  border-color: var(--th-accent);
}

.filter-chip.is-active {
  color: #fff;
  background: var(--th-accent);
  border-color: var(--th-accent);
}

/* ——— Cards ——— */
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.resource-card-grid--page {
  margin-bottom: 2.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--th-line);
  margin: 0;
  transition: transform 0.35s var(--th-ease), box-shadow 0.35s var(--th-ease);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.resource-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  max-height: 12.5rem;
  overflow: hidden;
  background: #eef1f5;
  flex-shrink: 0;
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--th-ease);
}

.resource-card:hover .resource-card-media img {
  transform: scale(1.04);
}

.resource-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem 1.25rem;
  flex: 1;
}

.resource-card-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-dim);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.resource-card-title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  color: var(--th-text);
}

.resource-card-title a {
  color: inherit;
  text-decoration: none;
}

.resource-card-title a:hover {
  color: var(--th-accent);
}

.resource-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--th-muted);
  line-height: 1.55;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.resource-card .text-link {
  margin-top: 0.25rem;
}

/* List view — landscape rows */
.resource-card-grid.blog-view--list,
.resource-card-grid.resource-card-grid--list {
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.resource-card-grid.blog-view--list .resource-card,
.resource-card-grid.resource-card-grid--list .resource-card {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  align-items: stretch;
}

.resource-card-grid.blog-view--list .resource-card:hover,
.resource-card-grid.resource-card-grid--list .resource-card:hover {
  transform: none;
}

.resource-card-grid.blog-view--list .resource-card-media,
.resource-card-grid.resource-card-grid--list .resource-card-media {
  aspect-ratio: 16 / 10;
  max-height: none;
  height: 100%;
  min-height: 7.5rem;
}

.resource-card-grid.blog-view--list .resource-card-body,
.resource-card-grid.resource-card-grid--list .resource-card-body {
  justify-content: center;
  padding: 1rem 1.15rem;
}

.resource-card-grid.blog-view--list .resource-card-excerpt,
.resource-card-grid.resource-card-grid--list .resource-card-excerpt {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.resources-seo-links {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--th-line);
}

.rbl-insights__empty {
  padding: 2.5rem 0;
  text-align: left;
}

.rbl-insights__empty h2 {
  margin: 0 0 0.5rem;
}

.rbl-insights-cta.cta-band {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  border-top: 0;
  border-radius: 20px;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(88, 166, 214, 0.35), transparent 55%),
    linear-gradient(135deg, #0b3d66 0%, #006bbd 55%, #1780c5 100%);
  color: #fff;
}

.rbl-insights-cta .cta-band-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.rbl-insights-cta .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.rbl-insights-cta .cta-band-title {
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #fff;
  max-width: 18ch;
}

.rbl-insights-cta .cta-band-desc {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.rbl-insights-cta .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #ff6a1a, #e63d00);
  color: #fff;
  border: 0;
  font-weight: 800;
  text-decoration: none;
}

.blog-pagination {
  margin-top: 0.5rem;
}

/* ——— Single article ——— */
.news-article {
  max-width: min(1200px, 100%);
  padding-bottom: 2rem;
}

.news-article-hero {
  margin-bottom: 2.25rem;
}

.news-article-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0b3d66;
  background: var(--th-pop-soft);
  border: 1px solid rgba(0, 107, 189, 0.22);
  text-decoration: none;
}

.news-article-title {
  margin: 0 0 0.85rem;
  max-width: 44rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--th-text);
  overflow-wrap: anywhere;
}

.news-article-dek {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--th-muted);
}

.news-article-meta,
.news-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--th-dim);
}

.news-article-meta-row {
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.news-article-author-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.news-article-author-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.news-article-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-article-hashtags li span {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b3d66;
  background: rgba(88, 166, 214, 0.18);
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.post-share-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-dim);
  margin-right: 0.25rem;
  font-weight: 600;
}

.post-share-btn {
  appearance: none;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--th-muted);
  background: transparent;
  border: 1px solid var(--th-line);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.post-share-btn:hover,
.post-share-btn.is-copied {
  color: var(--th-text);
  border-color: var(--th-accent);
  background: var(--th-pop-soft);
}

.news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16.5rem);
  gap: 2.5rem 2.75rem;
  align-items: start;
}

.news-article-layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.news-article-main {
  min-width: 0;
  max-width: 46rem;
  margin-bottom: 0;
}

.news-article-main h2 {
  scroll-margin-top: 6.5rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  color: var(--th-text);
}

.news-article-main h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--th-text);
}

.news-article-main p,
.entry-body.news-article-main p {
  color: var(--th-muted);
  margin-bottom: 1.05rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.news-article-main a,
.post-footer a {
  color: var(--th-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article-main ul {
  padding-left: 0;
  list-style: none;
  margin: 0.75rem 0 1.25rem;
}

.news-article-main ul > li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.45rem 0;
  list-style: none;
  color: var(--th-muted);
  line-height: 1.65;
}

.news-article-main ul > li::before {
  content: "›";
  position: absolute;
  left: 0.1rem;
  top: 0;
  color: var(--th-accent);
  font-weight: 700;
  font-size: 1.05em;
}

.news-article-aside {
  position: sticky;
  top: calc(var(--header-h, 4.5rem) + 1.25rem);
}

.news-toc {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f4f8fb;
}

.news-toc-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.news-toc-summary strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--th-text);
}

.news-toc-count {
  font-size: 0.78rem;
  color: var(--th-dim);
  white-space: nowrap;
}

.news-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.news-toc li a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  color: var(--th-muted);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
}

.news-toc li a:hover {
  color: var(--th-text);
}

.news-toc-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--th-accent);
  padding-top: 0.12rem;
}

.single-post__experience-lead {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--th-pop);
  background: var(--th-pop-soft);
}

.single-post__experience-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--th-accent);
}

.single-post__experience-lead p:last-child {
  margin: 0;
  color: var(--th-text);
}

.post-footer.news-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--th-line);
  color: var(--th-muted);
  max-width: 39rem;
  line-height: 1.65;
}

/* EEAT */
.article-eeat {
  margin: 2.5rem 0 1.5rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f7fafc;
}

.article-eeat-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
}

.article-eeat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
}

.article-eeat-photo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(88, 166, 214, 0.85);
  flex-shrink: 0;
}

.article-eeat-photo--initials {
  display: grid;
  place-items: center;
  background: var(--th-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.article-eeat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-eeat-body {
  min-width: 0;
}

.article-eeat p {
  margin: 0.45rem 0 0;
  line-height: 1.65;
}

.article-eeat-name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}

.article-eeat-name a {
  color: inherit;
  text-decoration: none;
}

.article-eeat-name a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-eeat-name span {
  font-size: 0.9rem;
  color: var(--th-muted);
}

.article-eeat-lead {
  margin-top: 0.45rem;
  color: var(--th-text);
}

.article-eeat-pillars {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.article-eeat-pillars li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--th-muted);
  padding-left: 0.7rem;
  border-left: 3px solid var(--th-pop);
}

.article-eeat-pillars strong {
  color: var(--th-text);
  margin-right: 0.35rem;
}

.article-eeat-meta {
  font-size: 0.88rem;
  color: var(--th-muted);
}

.article-eeat-link {
  font-size: 0.92rem;
}

.article-eeat-link a {
  color: inherit;
  font-weight: 600;
}

/* Related */
.news-article-next {
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--th-line);
}

.news-article-next h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.news-article-next p {
  margin: 0 0 1rem;
  color: var(--th-muted);
  max-width: 42rem;
  line-height: 1.7;
}

.news-article-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.news-related {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--th-line);
}

.news-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.news-related-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  color: var(--th-text);
}

.news-related-head a {
  font-size: 0.9rem;
  color: var(--th-muted);
  text-decoration: none;
}

.news-related-head a:hover {
  color: var(--th-text);
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  margin: 0;
}

.news-related-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e9ec;
}

.news-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--th-ease);
}

.news-related-card:hover .news-related-media img {
  transform: scale(1.04);
}

.news-related-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}

.news-related-tag {
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.news-related-card--mint .news-related-tag {
  color: #0b3d66;
  background: #d9eefb;
}

.news-related-card--lilac .news-related-tag {
  color: #5a3518;
  background: #f6dfc8;
}

.news-related-card--peach .news-related-tag {
  color: #3a2d55;
  background: #ece4f8;
}

.news-related-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-related-title a {
  color: var(--th-text);
  text-decoration: none;
}

.news-related-title a:hover {
  color: var(--th-accent);
}

.news-related-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--th-dim);
}

.news-related-read {
  font-weight: 700;
  color: var(--th-accent);
  text-decoration: none;
}

.news-related-read:hover {
  color: var(--th-text);
}

@media (max-width: 1100px) {
  .resource-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 980px) {
  .news-article-layout {
    grid-template-columns: 1fr;
  }

  .news-article-aside {
    position: static;
    order: -1;
  }

  .news-toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
  }

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

@media (max-width: 900px) {
  .resources-index-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .resources-toolbar,
  .resources-filter {
    justify-content: flex-start;
    width: 100%;
  }

  .resources-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .resources-hero-stats {
    grid-template-columns: 1fr;
  }

  .resources-hero-copy h1 {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
    line-height: 1.28;
    max-width: none;
  }

  .resource-card:hover {
    transform: none;
  }

  .resource-card:hover .resource-card-media img {
    transform: none;
  }

  .resource-card-grid.blog-view--list .resource-card,
  .resource-card-grid.resource-card-grid--list .resource-card {
    grid-template-columns: 1fr;
  }

  .resource-card-grid.blog-view--list .resource-card-media,
  .resource-card-grid.resource-card-grid--list .resource-card-media {
    max-height: 11rem;
    min-height: 0;
  }

  .rbl-insights__views button span {
    display: none;
  }
}

@media (max-width: 640px) {
  .news-article-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-toc ol,
  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .article-eeat-card {
    grid-template-columns: 1fr;
  }

  .article-eeat-photo,
  .article-eeat-photo--initials {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card,
  .resource-card-media img,
  .resources-topic,
  .news-related-media img {
    transition: none;
  }
}

/* Article comparison tables — visible cell borders */
.news-article-main .rbl-table-wrap,
.news-article-main .wp-block-table,
.entry-body .rbl-table-wrap {
  --rbl-table-border: #c9d6e3;
  --rbl-table-header-bg: #eef5fb;
  --rbl-table-header-fg: #0f172a;
  --rbl-table-zebra: #f7fafc;
  margin: 1.5rem 0 1.75rem;
  border: 1px solid var(--rbl-table-border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.news-article-main .rbl-table-wrap table,
.news-article-main .wp-block-table table,
.news-article-main > table,
.entry-body table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.news-article-main .rbl-table-wrap th,
.news-article-main .rbl-table-wrap td,
.news-article-main .wp-block-table th,
.news-article-main .wp-block-table td,
.news-article-main > table th,
.news-article-main > table td,
.entry-body table th,
.entry-body table td {
  border: 1px solid var(--rbl-table-border, #c9d6e3) !important;
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  color: #0f172a;
}

.news-article-main .rbl-table-wrap thead th,
.news-article-main .wp-block-table thead th,
.news-article-main > table thead th,
.entry-body table thead th,
.news-article-main .rbl-table-wrap tr:first-child th,
.entry-body table tr:first-child th {
  background: var(--rbl-table-header-bg, #eef5fb);
  color: var(--rbl-table-header-fg, #0f172a);
  font-weight: 750;
  border-bottom: 2px solid #006bbd !important;
}

.news-article-main .rbl-table-wrap tbody tr:nth-child(even),
.entry-body table tbody tr:nth-child(even) {
  background: var(--rbl-table-zebra, #f7fafc);
}

@media (max-width: 720px) {
  .news-article-main .rbl-table-wrap table,
  .entry-body table {
    min-width: 28rem;
    font-size: 0.86rem;
  }

  .news-article-main .rbl-table-wrap th,
  .news-article-main .rbl-table-wrap td,
  .entry-body table th,
  .entry-body table td {
    padding: 0.55rem 0.65rem;
  }
}
