/*
 * 21 Young Hearts — Single Resource Page
 * Styles for the single-yh_resource.php template.
 * Consumes tokens from tokens.css + inherits from base.css & components.css.
 * ─────────────────────────────────────────────────────────────────
 *
 * Table of contents
 * ─────────────────
 *  1. Resource header (breadcrumb + title + meta)
 *  2. Two-column content grid
 *  3. Featured image
 *  4. Contents list ("What this covers")
 *  5. Body content (WYSIWYG)
 *  6. Download cards
 *  7. Sidebar: support card
 *  8. Sidebar: external links card
 *  9. More from Resources grid + cards
 * ─────────────────────────────────────────────────────────────────
 */


/* ============================================================
   1. RESOURCE HEADER
   ============================================================ */

.resource-header {
  padding: var(--space-2xl) 0;
  background: var(--color-blue);
  border-bottom: 4px solid var(--color-warm-black);
}

/* Breadcrumb */
.resource-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.resource-breadcrumb__link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-yellow);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.resource-breadcrumb__link:hover {
  color: white;
}

.resource-breadcrumb__sep {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-yellow);
  user-select: none;
}

.resource-breadcrumb__current {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-yellow);
}

/* Type badge strip */
.resource-header__type {
  margin-bottom: var(--space-md);
}

.resource-header__type .badge {
  --badge-rotate: 0deg;
  text-transform: none;
}

/* Title */
.resource-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: white;
  max-width: 780px;
  margin-bottom: var(--space-lg);
}

/* Summary line */
.resource-header__summary {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

/* Meta row */
.resource-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.resource-header__meta-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.resource-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
}

.resource-header__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.resource-header__meta-sep {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

/* Topic tag labels (top-right) */
.resource-header__tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.resource-tag-label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .resource-header {
    padding: var(--space-4xl) 0;
  }
  .resource-header__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 600px) {
  .resource-header {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 900px) {
  .resource-header__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 600px) {
  .resource-header__title {
    font-size: var(--text-2xl);
  }
  .resource-header__summary {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }
  .resource-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}


/* ============================================================
   2. TWO-COLUMN CONTENT GRID
   ============================================================ */

.resource-single__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .resource-single__grid {
    grid-template-columns: 1fr 340px;
    gap: var(--space-3xl);
  }

  .resource-single__sidebar {
    position: sticky;
    top: calc(76px + var(--space-xl));
  }
}


/* ============================================================
   3. FEATURED IMAGE
   ============================================================ */

.resource-featured-img {
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.resource-featured-img__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-cream);
  overflow: hidden;
}

.resource-featured-img__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: auto; /* override any intrinsic ratio */
}


/* ============================================================
   4. CONTENTS LIST
   ============================================================ */

.resource-contents {
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.resource-contents__label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
}

.resource-contents__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.resource-contents__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
}

.resource-contents__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--color-yellow);
  border: 2px solid var(--color-warm-black);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .resource-contents {
    padding: var(--space-md) var(--space-lg);
  }
}


/* ============================================================
   5. BODY CONTENT (WYSIWYG)
   ============================================================ */

.resource-body {
  margin-bottom: var(--space-2xl);
}

.resource-body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-warm-black);
  margin-bottom: var(--space-md);
}

.resource-body p:last-child {
  margin-bottom: 0;
}

.resource-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-warm-black);
  margin: var(--space-2xl) 0 var(--space-md);
}

.resource-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-warm-black);
  margin: var(--space-xl) 0 var(--space-sm);
}

.resource-body h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  margin: var(--space-lg) 0 var(--space-sm);
}

.resource-body a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.resource-body a:hover {
  color: var(--color-blue-dark);
}

.resource-body ul,
.resource-body ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.resource-body li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-warm-black);
  margin-bottom: var(--space-xs);
}

.resource-body strong,
.resource-body b {
  font-weight: var(--weight-bold);
}

.resource-body em,
.resource-body i {
  font-style: italic;
}

.resource-body blockquote {
  border-left: 4px solid var(--color-blue);
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--color-grey-dark);
  font-style: italic;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.resource-body img {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  margin: var(--space-lg) 0;
}

.resource-body hr {
  border: none;
  border-top: 2px solid var(--color-grey-light);
  margin: var(--space-2xl) 0;
}


/* ============================================================
   6. DOWNLOAD CARDS
   ============================================================ */

.resource-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.resource-download-card__content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  flex: 1;
  min-width: 0;
}

.resource-download-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-blue-light);
  border: 2px solid var(--color-warm-black);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
}

.resource-download-card__icon svg {
  width: 20px;
  height: 20px;
}

.resource-download-card__text {
  flex: 1;
  min-width: 0;
}

.resource-download-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.resource-download-card__ext {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-grey-dark);
  background: var(--color-cream);
  border: 2px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.resource-download-card__summary {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xs);
}

.resource-download-card__note {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-normal);
}

.resource-download-card__btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .resource-download-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-lg);
  }

  .resource-download-card__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ============================================================
   7. SIDEBAR: SUPPORT CARD
   ============================================================ */

.resource-support-card {
  background: var(--color-blue);
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.resource-support-card__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: white;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.resource-support-card__body {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.resource-support-card__btn {
  display: block;
  width: 100%;
  text-align: center;
}


/* ============================================================
   8. SIDEBAR: EXTERNAL LINKS CARD
   ============================================================ */

.resource-links-card {
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  overflow: hidden;
}

.resource-links-card__label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  padding: var(--space-lg) var(--space-xl) var(--space-md);
  border-bottom: 2px solid var(--color-grey-light);
}

.resource-links-card__list {
  list-style: none;
}

.resource-links-card__item {
  border-bottom: 2px solid var(--color-grey-light);
}

.resource-links-card__item:last-child {
  border-bottom: none;
}

.resource-links-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-warm-black);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.resource-links-card__link:hover {
  background: var(--color-blue);
  color: white;
}

.resource-links-card__link span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.resource-links-card__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-grey-mid);
  transition: color var(--duration-fast) var(--ease-out);
}

.resource-links-card__link:hover svg {
  color: white;
}

.resource-links-card__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--color-blue);
  border-radius: 0;
}


/* ============================================================
   9. MORE FROM RESOURCES — section + grid + cards
   ============================================================ */

.resource-more {
  background: var(--color-blue-light);
}

.resource-more__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.resource-more__header .section-heading {
  margin-bottom: 0;
}

.resource-more__header .arrow-link {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .resource-more__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* Three-column card grid */
.resource-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .resource-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 600px) {
  .resource-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual resource card */
.resource-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-bounce),
              box-shadow var(--duration-normal) var(--ease-bounce);
}

.resource-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--color-warm-black);
}

.resource-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 4px 4px 0 var(--color-warm-black);
}

/* Image area */
.resource-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  overflow: hidden;
  flex-shrink: 0;
}

.resource-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: auto;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

/* Placeholder when no thumbnail */
.resource-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  color: var(--color-grey-mid);
}

.resource-card__img-placeholder svg {
  width: 40px;
  height: 40px;
}

/* Type badge — sits in the card body, above the title */
.resource-card__type-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: white;
  background: var(--color-blue);
  border: 2px solid var(--color-warm-black);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--color-warm-black);
  margin-bottom: var(--space-sm);
}

/* Card body */
.resource-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  border-top: 3px solid var(--color-warm-black);
}

.resource-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-warm-black);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.resource-card__summary {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card__tags {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  margin-top: auto;
  border-top: 2px solid var(--color-grey-light);
  padding-top: var(--space-md);
}

@media (max-width: 600px) {
  .resource-card__body {
    padding: var(--space-md) var(--space-lg);
  }
}


/* ============================================================
   10. RESOURCES GRID — page builder component
       (.resources-grid-section, .resources-filter, load-more)
   ============================================================ */

/* Section header row */
.resources-grid__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.resources-grid__header-text {
  flex: 1;
  min-width: 0;
}

.resources-grid__header .section-heading {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .resources-grid__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ── Filter buttons ─────────────────────────────────────────────────────────── */

.resources-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.resources-filter__btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  background: white;
  border: 2px solid var(--color-warm-black);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  /* Always-on comic offset shadow — matches .resource-card__type-badge */
  box-shadow: 2px 2px 0 var(--color-warm-black);
  transition: transform var(--duration-fast) var(--ease-bounce),
              box-shadow var(--duration-fast) var(--ease-bounce),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .resources-filter__btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--color-warm-black);
  }
}

.resources-filter__btn.is-active {
  background: var(--color-blue);
  color: white;
  /* Border stays warm-black — same rule as .resource-card__type-badge */
  border-color: var(--color-warm-black);
}

@media (hover: hover) and (pointer: fine) {
  .resources-filter__btn.is-active:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--color-warm-black);
  }
}

.resources-filter__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 2px 2px 0 var(--color-warm-black);
}

/* ── Grid loading state ─────────────────────────────────────────────────────── */

.resource-cards-grid[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

/* ── Empty state ────────────────────────────────────────────────────────────── */

.resources-grid__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.resources-grid__empty svg {
  width: 36px;
  height: 36px;
  color: var(--color-grey-mid);
}

.resources-grid__empty p {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-grey-dark);
}

/* ── Load More ──────────────────────────────────────────────────────────────── */

.resources-load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.resources-load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.resources-load-more__btn.is-hidden {
  display: none;
}

/* Spinner — hidden by default, shown during fetch */
.resources-load-more__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rg-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.resources-load-more__btn.is-loading .resources-load-more__label {
  opacity: 0.6;
}

.resources-load-more__btn.is-loading svg[data-lucide] {
  display: none;
}

.resources-load-more__btn.is-loading .resources-load-more__spinner {
  display: block;
}

@keyframes rg-spin {
  to { transform: rotate(360deg); }
}


/* ============================================================
   11. RESOURCE LINKS GRID — page builder component
       (.resource-links-list, .resource-link-row)
   ============================================================ */

/* When intro body text follows the header, pull the gap in */
.resource-links-grid-section .resources-grid__header {
  margin-bottom: var(--space-md);
}

/* Optional intro paragraph beneath the heading */
.resource-links-grid__body {
  font-size: var(--text-base);  /* max 16px */
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
  max-width: 680px;
  margin-bottom: var(--space-2xl);
}

/* ── Links list container ────────────────────────────────────────────────────── */

.resource-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.resource-links-list[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

/* ── Individual link row ─────────────────────────────────────────────────────── */

.resource-link-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-bounce),
              box-shadow var(--duration-normal) var(--ease-bounce);
}

@media (hover: hover) and (pointer: fine) {
  .resource-link-row:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--color-warm-black);
  }

  .resource-link-row:hover .resource-link-row__arrow {
    background: var(--color-blue);
    border-color: var(--color-warm-black);
    box-shadow: 2px 2px 0 var(--color-warm-black);
    color: white;
    transform: rotate(0deg);
  }

  .resource-link-row:hover .resource-link-row__img {
    transform: scale(1.04);
  }
}

.resource-link-row:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 4px 4px 0 var(--color-warm-black);
}

/* ── Icon / image box ──────────────────────────────────────────────────────────── */

.resource-link-row__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 2px solid var(--color-warm-black);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-warm-black);
}

/* Lucide fallback icon — blue bg, white icon */
.resource-link-row__icon:not(:has(img)) {
  background: var(--color-blue);
  color: white;
}

.resource-link-row__icon svg {
  width: 28px;
  height: 28px;
}

.resource-link-row__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: auto;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* ── Content: title + summary + tags ──────────────────────────────────────────── */

.resource-link-row__content {
  flex: 1;
  min-width: 0;
}

.resource-link-row__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);  /* matches two-block-info__heading → body gap */
  letter-spacing: -0.01em;
}

.resource-link-row__summary {
  font-size: var(--text-base);  /* 16px */
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-link-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Inline taxonomy tag badges — match the site's standard badge pattern */
.resource-link-row__tag {
  font-family: var(--font-body);
  font-size: var(--text-base);  /* min 16px */
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  background: white;
  border: 2px solid var(--color-warm-black);
  border-radius: var(--radius-full);
  box-shadow: 2px 2px 0 var(--color-warm-black);
  padding: 3px 12px;
  white-space: nowrap;
  line-height: 1.4;
}

/* ── External arrow ──────────────────────────────────────────────────────────── */

.resource-link-row__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-warm-black);
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-black);
  transform: rotate(-5deg);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.resource-link-row__arrow svg {
  width: 18px;
  height: 18px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .resource-link-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
  }

  .resource-link-row__icon {
    width: 56px;
    height: 56px;
  }

  .resource-link-row__arrow {
    display: none;
  }
}
