﻿:root {
  --rd-primary: #00e05c;
  --rd-primary-dark: #00b349;
  --rd-page: #f9f9f8;
  --rd-black: #000;
  --rd-text: #4b5563;
  --rd-border: #e5e7eb;
  --rd-container: min(80rem, 100% - 2rem);
  --rd-font-heading: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --rd-font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rd-collection-body {
  margin: 0;
  font-family: var(--rd-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rd-black);
  background: var(--rd-page);
  -webkit-font-smoothing: antialiased;
}

.rd-main {
  min-height: 50vh;
}

.rd-container {
  width: var(--rd-container);
  margin-inline: auto;
}

.rd-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-text);
  margin: 0 0 0.75rem;
}

.rd-eyebrow--primary {
  color: var(--rd-primary);
}

.rd-hero__title,
.rd-section-title,
.rd-cta-band__title {
  font-family: var(--rd-font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--rd-black);
  margin: 0;
}

.rd-hero__title {
  font-size: clamp(1.75rem, 0.95rem + 1.75vw, 3.25rem);
}

.rd-section-title {
  font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem);
}

.rd-accent {
  color: var(--rd-primary);
}

.rd-lead,
.rd-section-desc {
  color: var(--rd-text);
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.25rem);
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--rd-font-body);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rd-btn--primary {
  background: var(--rd-primary);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.rd-btn--primary:hover {
  transform: translateY(-2px);
  background: var(--rd-primary-dark);
  box-shadow: 0 12px 40px rgb(0 224 92 / 0.35);
}

.rd-btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.rd-btn--ghost {
  background: #fff;
  color: var(--rd-black);
  border: 1px solid var(--rd-border);
  padding: 0.875rem 2rem;
}

.rd-btn--ghost:hover {
  background: #f3f4f6;
}

.rd-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.rd-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .rd-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.rd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.rd-hero__visual {
  min-height: 12rem;
  position: relative;
}

.rd-hero__blob {
  position: absolute;
  inset: 10% 5%;
  border-radius: 2rem;
  background: radial-gradient(circle at 30% 30%, rgb(0 224 92 / 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgb(135 206 235 / 0.35), transparent 50%);
  border: 1px solid rgb(0 224 92 / 0.15);
}

.rd-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.rd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.rd-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--rd-border);
  color: var(--rd-black);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rd-chip:hover {
  border-color: var(--rd-primary);
  color: var(--rd-primary);
}

.rd-chip--muted {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rd-grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (min-width: 640px) {
  .rd-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rd-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rd-blog-card {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rd-blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ecece9;
}

.rd-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rd-blog-card:hover .rd-blog-card__img {
  transform: scale(1.03);
}

.rd-blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8fcef, #f9f9f8);
}

.rd-blog-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.rd-blog-card__title {
  font-family: var(--rd-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

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

.rd-blog-card__title a:hover {
  color: var(--rd-primary);
}

.rd-blog-card__excerpt {
  margin: 0;
  color: var(--rd-text);
  font-size: 0.9375rem;
  flex: 1;
}

.rd-blog-card__date {
  font-size: 0.8125rem;
  color: #6b7280;
}

.rd-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.rd-blog-card__read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: var(--rd-primary);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rd-blog-card__read-more:hover {
  background: var(--rd-primary-dark);
  transform: translateY(-1px);
}

.rd-link-arrow {
  font-weight: 600;
  color: var(--rd-black);
  text-decoration: none;
  font-size: 0.9375rem;
}

.rd-link-arrow::after {
  content: " →";
  color: var(--rd-primary);
}

.rd-link-arrow:hover {
  color: var(--rd-primary);
}

.rd-link-arrow--inline::after {
  content: " ↓";
}

.rd-resource-grid-wrap {
  margin-top: 0.5rem;
}

.rd-cta-band {
  margin: 2rem 0 3rem;
}

.rd-cta-band__inner {
  background: var(--rd-black);
  color: #fff;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rd-cta-band__title {
  color: #fff;
  font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
}

.rd-cta-band__text {
  margin: 0.75rem 0 0;
  color: #d1d5db;
  max-width: 36rem;
}

.rd-page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
}

.rd-pagination {
  margin-top: 2.5rem;
}

.rd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.rd-pagination a,
.rd-pagination span {
  display: inline-flex;
  min-width: 2.5rem;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rd-border);
  background: #fff;
  text-decoration: none;
  color: var(--rd-black);
}

.rd-pagination .current {
  background: var(--rd-primary);
  border-color: var(--rd-primary);
  color: #fff;
  font-weight: 700;
}

.rd-single__header {
  padding: 2.5rem 0 1rem;
}

.rd-single__meta {
  margin: 1rem 0 0;
  color: var(--rd-text);
  font-size: 0.9375rem;
}

.rd-single__featured {
  margin-bottom: 1.5rem;
}

.rd-single__img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--rd-border);
}

.rd-single__content,
.rd-page-content {
  padding: 1rem 0 3rem;
  max-width: 48rem;
}

.rd-prose :where(p, ul, ol) {
  color: var(--rd-text);
  line-height: 1.65;
  font-size: inherit;
}

.rd-prose :where(h2, h3) {
  font-family: var(--rd-font-heading);
  color: var(--rd-black);
  margin-top: 2rem;
}

/* ── Inner page typography (blog + resources) — match Next.js type scale ── */
.rd-single-post__content,
.rd-single-post__content.entry-content,
.rd-plugin-ui .rd-prose,
.rd-single-about__content.rd-prose {
  font-family: var(--rd-font-body) !important;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem) !important;
  line-height: 1.65 !important;
  color: #4b5563 !important;
}

.rd-single-post__content :where(p, li, td, th),
.rd-plugin-ui .rd-prose :where(p, li, td, th) {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin-bottom: 1.25em;
}

.rd-single-post__content :where(h1),
.rd-plugin-ui .rd-prose :where(h1) {
  font-family: var(--rd-font-heading) !important;
  font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: var(--rd-black) !important;
  margin: 2rem 0 0.75rem !important;
}

.rd-single-post__content :where(h2),
.rd-plugin-ui .rd-prose :where(h2) {
  font-family: var(--rd-font-heading) !important;
  font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: var(--rd-black) !important;
  margin: 2rem 0 0.75rem !important;
}

.rd-single-post__content :where(h3),
.rd-plugin-ui .rd-prose :where(h3) {
  font-family: var(--rd-font-heading) !important;
  font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.75rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: var(--rd-black) !important;
  margin: 1.5rem 0 0.625rem !important;
}

.rd-single-post__content :where(h4, h5, h6),
.rd-plugin-ui .rd-prose :where(h4, h5, h6) {
  font-family: var(--rd-font-heading) !important;
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--rd-black) !important;
  margin: 1.25rem 0 0.5rem !important;
}

/* Main article content must always be visible (no scroll-reveal hide) */
.rd-single-post__content,
.rd-single-post__content.rd-reveal,
.rd-single-about__content,
.rd-single-resource__body .rd-single-about,
.rd-single-resource__body .rd-single-panel {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* GeneratePress entry-content heading reset */
body.rd-hub-layout .entry-content :where(h1, h2, h3, h4, h5, h6),
body.rd-resource-single-page .entry-content :where(h1, h2, h3, h4, h5, h6) {
  font-weight: 600 !important;
}

.rd-hub-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .rd-hub-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rd-hub-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rd-hub-card {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rd-hub-card:hover {
  border-color: var(--rd-primary);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.06);
}

.rd-hub-card__title {
  font-family: var(--rd-font-heading);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.rd-hub-card__text {
  margin: 0 0 0.75rem;
  color: var(--rd-text);
  font-size: 0.9375rem;
}

.rd-error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.rd-error-page__inner {
  max-width: 40rem;
}

.rd-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.rd-error-standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.rd-fallback-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(249 249 248 / 0.92);
  border-bottom: 1px solid var(--rd-border);
  backdrop-filter: blur(8px);
}

.rd-fallback-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.rd-fallback-logo {
  font-family: var(--rd-font-heading);
  font-weight: 700;
  text-decoration: none;
  color: var(--rd-black);
}

.rd-fallback-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rd-border);
  text-align: center;
  color: var(--rd-text);
  font-size: 0.875rem;
}

.rd-fallback-footer a {
  color: var(--rd-primary);
}

.rd-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rd-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .rd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Hub landing: search, filters, combined grid ── */
.rd-hub-page {
  overflow-x: clip;
}

.rd-hero--hub-landing {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem) !important;
}

.rd-hub-page .rd-section--resources-creative {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) !important;
}

.rd-hub-page .rd-section--blog-home {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) !important;
}

.rd-hub-page .rd-section-head {
  margin-bottom: 1.25rem;
}

.rd-hub-page .rd-resource-strip {
  margin-bottom: 1.75rem;
}

.rd-hub-page .rd-resource-type-grid {
  margin-bottom: 1.75rem;
}

.rd-hero__search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.rd-hero__search input[type='search'] {
  flex: 1 1 14rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid var(--rd-border);
  background: #fff;
  font-family: var(--rd-font-body);
  font-size: 0.9375rem;
}

.rd-hero__search input[type='search']:focus {
  outline: none;
  border-color: var(--rd-primary);
  box-shadow: 0 0 0 3px rgb(0 224 92 / 0.2);
}

.rd-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rd-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rd-hub-tab {
  border: 1px solid var(--rd-border);
  background: #fff;
  color: var(--rd-black);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: var(--rd-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rd-hub-tab:hover,
.rd-hub-tab.is-active {
  border-color: var(--rd-primary);
  background: rgb(0 224 92 / 0.12);
  color: var(--rd-black);
}

.rd-hub-select {
  min-width: 12rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rd-border);
  background: #fff;
  padding: 0 0.75rem;
  font-family: var(--rd-font-body);
  font-size: 0.875rem;
}

.rd-hub-results {
  min-height: 8rem;
}

.rd-hub-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.rd-hub-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.rd-hub-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--rd-text);
  padding: 2rem 1rem;
}

.rd-blog-card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
}

.rd-blog-card__media {
  position: relative;
}

.rd-blog-card__placeholder--resource {
  background: linear-gradient(135deg, rgb(0 224 92 / 0.18), rgb(0 224 92 / 0.05));
}

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

.rd-section--featured {
  padding-top: 0;
}

.rd-hub-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.rd-hub-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.rd-hub-pagination a,
.rd-hub-pagination span {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--rd-border);
  background: #fff;
  color: var(--rd-black);
  font-size: 0.875rem;
  text-decoration: none;
}

.rd-hub-pagination .current {
  border-color: var(--rd-primary);
  background: rgb(0 224 92 / 0.12);
}

.rd-single-post__header {
  padding-bottom: 0;
}

.rd-single-post__media {
  margin: 0;
}

.rd-single-post__img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}

.rd-single-post__content {
  max-width: 48rem;
  padding: 0;
}

.rd-single-post__content :where(img, figure) {
  margin-bottom: 1.5rem;
}

.rd-single-post__content :where(figure) {
  margin-top: 0;
}

.rd-single-post__content :where(figcaption) {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Blog table of contents — left sidebar */
.rd-blog-toc {
  margin: 0;
  padding: 1.125rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--rd-border);
  background: #fff;
}

.rd-blog-toc__title {
  margin: 0 0 0.75rem;
  font-family: var(--rd-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rd-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rd-blog-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.rd-blog-toc__item a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.rd-blog-toc__item a:hover {
  color: var(--rd-primary-dark);
}

.rd-blog-toc__item--h3 a {
  padding-left: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.rd-single-post__content a {
  color: var(--rd-primary-dark);
}

/* ── Collage grid (blog + resources mixed) ── */
.rd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.rd-hero__stat {
  font-size: 0.875rem;
  color: var(--rd-text);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--rd-border);
}

.rd-hero__stat strong {
  color: var(--rd-black);
  font-weight: 700;
}

.rd-section--collage {
  padding-top: 0;
}

.rd-collage {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .rd-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rd-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(180px, auto);
  }

  .rd-collage__item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .rd-collage__item--featured .rd-blog-card__media {
    aspect-ratio: 16 / 10;
  }

  .rd-collage__item--featured .rd-blog-card__title {
    font-size: 1.25rem;
  }
}

.rd-collage__item {
  min-width: 0;
  height: 100%;
}

.rd-collage__item .rd-blog-card {
  height: 100%;
}

/* ── Resources creative section (homepage) ── */
.rd-section--resources-creative {
  background: linear-gradient(180deg, #fff 0%, var(--rd-page) 100%);
  padding-top: 1.25rem;
}

.rd-resource-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .rd-resource-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rd-resource-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--rd-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rd-resource-type-card:hover {
  border-color: var(--rd-primary);
  box-shadow: 0 12px 40px rgb(0 224 92 / 0.12);
  transform: translateY(-3px);
}

.rd-resource-type-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.rd-resource-type-card__label {
  font-family: var(--rd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rd-black);
}

.rd-resource-type-card__desc {
  font-size: 0.8125rem;
  color: var(--rd-text);
  line-height: 1.45;
  flex: 1;
}

.rd-resource-type-card__link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rd-primary);
  margin-top: 0.25rem;
}

.rd-resource-strip {
  margin-bottom: 3rem;
}

.rd-resource-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rd-resource-strip__title {
  font-family: var(--rd-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--rd-black);
}

.rd-section--blog-home {
  background: #fff;
  border-top: 1px solid var(--rd-border);
}

.rd-hero--resource-cat {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.rd-hero__title--single-line {
  text-transform: capitalize;
}

/* ── Single blog post layout ── */
.rd-single-post__hero {
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(0.75rem, 1.25vw, 1rem);
  border-bottom: 1px solid var(--rd-border);
  background: #fff;
}

.rd-single-post__title {
  font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem) !important;
  max-width: 48rem;
}

.rd-single-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.rd-single-post__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0 3rem;
  align-items: stretch;
}

.rd-single-post__left {
  display: contents;
}

.rd-single-post__media {
  order: 1;
}

.rd-single-post__toc {
  order: 2;
}

.rd-single-post__toc:empty {
  display: none;
}

.rd-single-post__content {
  order: 3;
  min-width: 0;
}

.rd-single-post__aside {
  order: 4;
}

@media (min-width: 1024px) {
  .rd-single-post__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
      'left media'
      'left content';
    gap: 1.5rem 2.5rem;
    padding: 1.25rem 0 4rem;
  }

  .rd-single-post__layout:not(:has(.rd-single-post__media)) {
    grid-template-areas: 'left content';
  }

  .rd-single-post__left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    grid-area: left;
    position: sticky;
    top: calc(var(--rd-header-height, 5rem) + 1rem);
    align-self: start;
    max-height: calc(100vh - var(--rd-header-height, 5rem) - 2rem);
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .rd-single-post__media,
  .rd-single-post__toc,
  .rd-single-post__content,
  .rd-single-post__aside {
    order: unset;
  }

  .rd-single-post__media {
    grid-area: media;
  }

  .rd-single-post__content {
    grid-area: content;
  }
}

.rd-single-post__aside .rd-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rd-sidebar-box {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--rd-border);
  background: #fff;
}

.rd-sidebar-box__title {
  margin: 0 0 1rem;
  font-family: var(--rd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rd-black);
}

.rd-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rd-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--rd-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rd-sidebar-cats a:hover {
  background: rgb(0 224 92 / 0.1);
  color: var(--rd-black);
}

.rd-sidebar-cats__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

.rd-sidebar-latest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rd-sidebar-latest a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.rd-sidebar-latest__thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ecece9;
}

.rd-sidebar-latest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-sidebar-latest__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rd-sidebar-latest__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rd-black);
  line-height: 1.35;
}

.rd-sidebar-latest a:hover .rd-sidebar-latest__title {
  color: var(--rd-primary-dark);
}

.rd-sidebar-latest time {
  font-size: 0.6875rem;
  color: #9ca3af;
}

.rd-sidebar-box--cta p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--rd-text);
  line-height: 1.5;
}

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

/* ── Magazine homepage layout ── */
.rd-magazine {
  background: var(--rd-page);
}

.rd-magazine-featured {
  padding: clamp(0.5rem, 1vw, 0.75rem) 0;
}

.rd-magazine-featured__split {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--rd-border);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.06);
  background: #fff;
}

@media (min-width: 900px) {
  .rd-magazine-featured__split {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    min-height: 280px;
  }
}

.rd-magazine-featured__search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(145deg, #00b349 0%, #00e05c 55%, #7dffb0 100%);
  color: #fff;
}

.rd-magazine-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.rd-magazine-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--rd-font-body);
  font-size: 0.9375rem;
  color: var(--rd-black);
  background: transparent;
}

.rd-magazine-search__icon {
  display: flex;
  color: var(--rd-primary-dark);
}

.rd-magazine-featured__search-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.9);
}

.rd-magazine-featured__content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
}

.rd-magazine-featured__label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rd-primary-dark);
}

.rd-magazine-featured__date {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.rd-magazine-featured__title {
  margin: 0 0 0.75rem;
  font-family: var(--rd-font-heading);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.rd-magazine-featured__title a {
  color: var(--rd-black);
  text-decoration: none;
}

.rd-magazine-featured__title a:hover {
  color: var(--rd-primary-dark);
}

.rd-magazine-featured__excerpt {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--rd-text);
  max-width: 42rem;
}

.rd-magazine-recent {
  padding: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

.rd-magazine-recent__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rd-magazine-recent__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rd-magazine-recent-card {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.04);
}

.rd-magazine-recent-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.rd-magazine-recent-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-magazine-recent-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8fcef, #d1fae5);
}

.rd-magazine-recent-card__body {
  padding: 1rem 1.125rem 1.25rem;
}

.rd-magazine-recent-card__body time {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.rd-magazine-recent-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--rd-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.rd-magazine-recent-card__title a {
  color: var(--rd-black);
  text-decoration: none;
}

.rd-magazine-recent-card__body p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--rd-text);
}

.rd-magazine-hub {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
}

.rd-magazine-hub--blog {
  border-top: 1px solid var(--rd-border);
  background: #fff;
}

.rd-magazine-hub__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rd-magazine-hub__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .rd-magazine-hub__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

.rd-magazine-hub__sidebar {
  position: static;
  z-index: auto;
}

@media (min-width: 1024px) {
  .rd-magazine-hub__sidebar {
    position: sticky;
    top: calc(var(--rd-header-height, 5rem) + 1rem);
    align-self: start;
  }
}

@media (max-width: 1023px) {
  .rd-magazine-hub__sidebar {
    margin-bottom: 0.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rd-border);
    background: var(--rd-page);
  }

  .rd-magazine-hub__main {
    position: relative;
    z-index: 1;
  }
}

.rd-magazine-sidebar-search {
  margin-bottom: 1.25rem;
}

.rd-magazine-sidebar-search input,
.rd-hub-panel__search {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rd-border);
  background: #fff;
  font-family: var(--rd-font-body);
  font-size: 0.875rem;
}

.rd-magazine-sidebar-search input:focus,
.rd-hub-panel__search:focus {
  outline: none;
  border-color: var(--rd-primary);
  box-shadow: 0 0 0 3px rgb(0 224 92 / 0.15);
}

.rd-magazine-filter__title {
  margin: 0 0 0.75rem;
  font-family: var(--rd-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rd-black);
}

.rd-magazine-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rd-magazine-filter__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--rd-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.rd-magazine-filter__option:hover {
  background: rgb(0 224 92 / 0.08);
}

.rd-magazine-filter__option input {
  accent-color: var(--rd-primary);
  flex-shrink: 0;
}

.rd-magazine-filter__option span:first-of-type {
  flex: 1;
}

.rd-magazine-filter__count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
}

.rd-magazine-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .rd-magazine-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rd-magazine-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rd-magazine-hub__grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.rd-magazine-tile {
  background: #fff;
  border: 1px solid var(--rd-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rd-magazine-tile:hover {
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
}

.rd-magazine-tile__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.rd-magazine-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-magazine-tile__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.rd-magazine-tile__body {
  padding: 1rem 1.125rem 1.125rem;
}

.rd-magazine-tile__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rd-primary-dark);
}

.rd-magazine-tile__title {
  margin: 0;
  font-family: var(--rd-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.rd-magazine-tile__title a {
  color: var(--rd-black);
  text-decoration: none;
}

.rd-hub-panel__status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.rd-hub-panel__load-more {
  margin-top: 1.25rem;
}

.rd-hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--rd-text);
  font-size: 0.9375rem;
}
