/* ── Single Resource — single-resource.css ── */

/* Hero */
.resource-single-hero {
  background: var(--slate-deep);
  padding: 2.5rem 0 3rem;
}

.resource-single-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resource-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--ease);
}

.resource-back-link:hover { color: var(--teal); }

.resource-single-hero__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .resource-single-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Hero content */
.resource-single-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0.5rem 0 0.75rem;
}

.resource-single-hero__sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

/* Meta row */
.resource-single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-single-meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

.resource-single-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 0.5rem;
  opacity: 0.4;
}

/* Download card */
.resource-download-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.resource-download-card__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.625rem;
}

.resource-download-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.resource-download-card__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.52);
  margin-bottom: 1.25rem;
}

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

/* ── Body layout ── */
.resource-single-body {
  background: var(--white);
  padding: 3rem 0 4rem;
}

.resource-single-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .resource-single-layout {
    grid-template-columns: 1fr;
  }

  .resource-single-sidebar {
    order: -1;
  }
}

/* Featured image */
.resource-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.resource-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

/* Prose */
.resource-prose {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text);
}

.resource-prose > *:first-child { margin-top: 0; }
.resource-prose > *:last-child  { margin-bottom: 0; }

.resource-prose p  { margin-bottom: 1.375rem; }
.resource-prose h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-deep);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.resource-prose h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate);
  margin: 2rem 0 0.625rem;
}
.resource-prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(16,185,129,0.3);
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.resource-prose a:hover { color: var(--teal-dark); }
.resource-prose ul,
.resource-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.375rem;
}
.resource-prose ul { list-style: disc; }
.resource-prose ol { list-style: decimal; }
.resource-prose li { margin-bottom: 0.4rem; }
.resource-prose strong { font-weight: 600; }

/* Sidebar card */
.resource-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 92px;
}

.resource-sidebar-card__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.resource-sidebar-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.resource-sidebar-card__row span {
  color: var(--text-muted);
}

.resource-sidebar-card__row strong {
  color: var(--text);
  font-weight: 500;
}

.resource-sidebar-card__button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.25rem;
}

/* Related resources */
.resource-related {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.resource-related__header {
  margin-bottom: 2rem;
}

.resource-related__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-deep);
  margin-top: 0.25rem;
  letter-spacing: -0.015em;
}

.resource-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .resource-related__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.resource-related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease-md), border-color var(--ease-md), transform var(--ease-md);
}

.resource-related-card:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-related-card__type {
  display: inline-block;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.7rem;
  text-transform: uppercase;
  width: fit-content;
}

.resource-related-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.3;
  margin: 0;
  transition: color var(--ease);
}

.resource-related-card:hover .resource-related-card__title {
  color: var(--teal);
}

.resource-related-card__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-related-card__cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  margin-top: 0.25rem;
  transition: color var(--ease);
}

.resource-related-card:hover .resource-related-card__cta {
  color: var(--teal-dark);
}
