/* ============================================================
   23. RESOURCE HUB PAGES — /resources/{slug}/
   Long-form pillar guides. Sticky sidebar TOC + wide reading column.
   Loaded via page-resource.php custom page template.
   ============================================================ */

/* ---- Hero ---- */
.resource-hero {
  position: relative;
  padding: 88px 24px 56px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,168,83,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(124,45,59,0.12) 0%, transparent 60%),
    linear-gradient(165deg, #FBF5E9 0%, #FAFAF8 60%, #F4EDDF 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.resource-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(124,45,59,0.03) 0, rgba(124,45,59,0.03) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
}
.resource-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.resource-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.resource-hero__breadcrumb a {
  color: var(--c-burgundy);
  text-decoration: none;
  font-weight: 600;
}
.resource-hero__breadcrumb a:hover { color: var(--c-gold-hover); text-decoration: underline; }
.resource-hero__breadcrumb span[aria-hidden] { color: var(--c-gold); opacity: 0.6; }

.resource-hero__eyebrow {
  display: inline-block;
  background: var(--c-gold-light);
  border: 1px solid rgba(212,168,83,0.45);
  color: var(--c-burgundy);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--ff-headline);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.resource-hero__h1 {
  font-family: var(--ff-headline);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-text-deep);
  margin: 0 0 22px;
  max-width: 820px;
}
.resource-hero__lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--c-text);
  max-width: 1440px;
  margin: 0 0 var(--sp-xl);
}
.resource-hero__actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

/* Mobile TOC in hero (hidden on desktop) */
.resource-hero__toc-mobile {
  display: none;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-lg);
}
.resource-hero__toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--ff-headline);
  font-weight: 700;
  color: var(--c-burgundy-dark);
  list-style: none;
  user-select: none;
}
.resource-hero__toc-mobile summary::-webkit-details-marker { display: none; }
.resource-hero__toc-mobile summary > svg:first-child { color: var(--c-burgundy); }
.resource-hero__toc-chev {
  margin-left: auto;
  transition: transform .2s;
  color: var(--c-burgundy);
}
.resource-hero__toc-mobile[open] .resource-hero__toc-chev { transform: rotate(180deg); }
.resource-hero__toc-list {
  list-style: none;
  padding: 0 18px 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
}
.resource-hero__toc-list li a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--c-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 1px dashed var(--c-border);
}
.resource-hero__toc-list li:last-child a { border-bottom: none; }
.resource-hero__toc-num {
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: 12px;
  color: var(--c-gold-dark);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ---- Hero image above content ---- */
/* .resource-hero-image--legacy {
  position: relative;
  max-width: var(--container);
  margin: -40px auto 0;
  padding: 0 var(--sp-lg);
  z-index: 2;
}
/* .resource-hero-image__frame--legacy {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(74,21,37,0.3),
    0 16px 32px -16px rgba(45,41,38,0.2),
    0 0 0 1px rgba(255,255,255,0.7);
  background: var(--c-bg-warm);
}
.resource-hero-image__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---- Main layout ---- */
.resource {
  background: var(--c-bg);
  counter-reset: resource-section;
  overflow-x: clip;
}
.resource__layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-3xl);
  align-items: start;
}
/* ---- Old sidebar — hidden in new layout ---- */
.resource__sidebar { display: none; }

.resource__sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  align-self: start;
}
.resource-sidebar {
  /* inner wrapper — no sticky needed here, parent handles it */
}
.resource-sidebar::-webkit-scrollbar { width: 6px; }
.resource-sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

.resource-sidebar__toc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  box-shadow: 0 1px 3px rgba(45,41,38,.04), 0 8px 24px rgba(45,41,38,.03);
}
.resource-sidebar__title {
  font-family: var(--ff-headline);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--c-burgundy);
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resource-sidebar__progress {
  height: 3px;
  background: var(--c-border);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}
.resource-sidebar__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-burgundy), var(--c-gold));
  border-radius: 2px;
  transition: width .3s ease;
}
.resource-sidebar__pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.resource-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resource-sidebar__list li a {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: 6px;
  transition: all .2s ease;
  border-left: 3px solid transparent;
  margin-left: -3px;
}
.resource-sidebar__list li a:hover {
  background: rgba(124,45,59,.04);
  color: var(--c-burgundy);
  border-left-color: rgba(124,45,59,.15);
}
.resource-sidebar__list li a.is-active {
  background: rgba(212,168,83,.06);
  color: var(--c-burgundy-dark);
  font-weight: 700;
  border-left-color: var(--c-gold);
  border-radius: 0 6px 6px 0;
}
.resource-sidebar__num {
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: 11px;
  color: var(--c-gold-dark);
  flex-shrink: 0;
  padding-top: 1px;
}
.resource-sidebar__text { flex: 1; }

.resource-sidebar__cta {
  background: linear-gradient(165deg, #4A1525 0%, #7C2D3B 100%);
  color: var(--c-white);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(74,21,37,0.2), 0 12px 32px -8px rgba(74,21,37,0.15);
}
.resource-sidebar__cta-eyebrow {
  display: inline-block;
  font-family: var(--ff-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  margin-bottom: 8px;
}
.resource-sidebar__cta-title {
  font-family: var(--ff-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-white);
  margin: 0 0 10px;
  line-height: 1.2;
}
.resource-sidebar__cta-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 var(--sp-md);
}
.resource-sidebar__cta-phone {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-align: center;
}
.resource-sidebar__cta-phone a {
  color: var(--c-gold);
  font-weight: 700;
  text-decoration: none;
}

/* ---- Content column ---- */
.resource-content {
  max-width: 100%;
  color: var(--c-text);
}
.resource-section {
  margin-bottom: 0;
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}
.resource-section:last-child {
  border-bottom: none;
}
/* Alternating subtle backgrounds */
.resource-section:nth-child(even) {
  background: #F7F3EE;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.resource-section:nth-child(odd) {
  background: transparent;
}
.resource-section_OLD_MARGIN {
  scroll-margin-top: calc(var(--aas-header-height, 100px) + 20px);
  counter-increment: resource-section;
  position: relative;
}
.resource-section__h2 {
  font-family: var(--ff-headline);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1.25;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.resource-section__h2::before {
  content: counter(resource-section, decimal-leading-zero);
  counter-increment: resource-section;
  font-family: var(--ff-headline);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold);
  background: rgba(124,45,59,.06);
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
/* First paragraph of each section body gets a drop-cap + larger lead */
.resource-section__body > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: var(--c-text-deep);
  margin-bottom: var(--sp-lg);
}
.resource-section__body > p:first-of-type::first-letter_DISABLED {
  float: left;
  font-family: var(--ff-headline);
  font-size: 64px;
  line-height: 52px;
  font-weight: 900;
  color: var(--c-burgundy);
  padding: 8px 12px 0 0;
  margin-top: 4px;
}
.resource-section__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--c-text);
}
.resource-section__body h3 {
  font-family: var(--ff-headline);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-burgundy-dark);
  margin: var(--sp-xl) 0 12px;
  line-height: 1.25;
}
.resource-section__body h4 {
  font-family: var(--ff-headline);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text-deep);
  margin: var(--sp-lg) 0 8px;
}
.resource-section__body p {
  margin: 0 0 var(--sp-md);
}
.resource-section__body strong {
  color: var(--c-burgundy-dark);
  font-weight: 700;
}
.resource-section__body a {
  color: var(--c-burgundy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-underline-offset: 3px;
}
.resource-section__body a:hover { color: var(--c-gold-hover); }
.resource-section__body ul,
.resource-section__body ol {
  margin: 0 0 var(--sp-md);
  padding-left: 1.4em;
}
.resource-section__body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.resource-section__body blockquote {
  border-left: 4px solid var(--c-gold);
  background: var(--c-bg-warm);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-lg) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-text-deep);
}
.resource-section__body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-lg) 0;
  font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.resource-section__body table th {
  background: var(--c-burgundy);
  color: var(--c-white);
  padding: 12px 14px;
  text-align: left;
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.04em;
}
.resource-section__body table td {
  padding: 12px 14px;
  border-top: 1px solid var(--c-border);
}
.resource-section__body table tr:nth-child(even) { background: var(--c-bg-warm); }
.resource-section__body .callout {
  background: var(--c-gold-light);
  border-left: 4px solid var(--c-gold);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-lg) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.resource-section__body .callout strong { display: block; color: var(--c-burgundy); margin-bottom: 4px; }

/* ---- Inline CTA between sections ---- */
.resource-inline-cta {
  background: linear-gradient(165deg, #FBF5E9 0%, #F4EDDF 100%);
  border: 1px solid rgba(212,168,83,0.5);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
  box-shadow: 0 10px 28px -16px rgba(74,21,37,0.2);
}
.resource-inline-cta__inner {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.resource-inline-cta h3 {
  font-family: var(--ff-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text-deep);
  margin: 0 0 4px;
}
.resource-inline-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}

/* ---- FAQs ---- */
/* Old .resource-faqs neutralized — see full-bleed version below */
._old_resource-faqs__head {
  margin-bottom: var(--sp-xl);
}
.resource-faqs__eyebrow_ {
  display: inline-block;
  background: var(--c-gold-light);
  border: 1px solid rgba(212,168,83,0.35);
  color: var(--c-burgundy);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--ff-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
._old_resource-faqs__head h2 {
  font-family: var(--ff-headline);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--c-text-deep);
  margin: 0;
}
._old_resource-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
._old_resource-faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
._old_resource-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: 18px var(--sp-lg);
  cursor: pointer;
  font-family: var(--ff-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text-deep);
  list-style: none;
  user-select: none;
}
._old_resource-faq-item summary::-webkit-details-marker { display: none; }
._old_resource-faq-item summary svg {
  transition: transform .2s;
  color: var(--c-burgundy);
  flex-shrink: 0;
}
._old_resource-faq-item[open] summary svg { transform: rotate(180deg); }
.resource-faq-item[open] summary {
  background: var(--c-bg-warm);
  color: var(--c-burgundy-dark);
}
._old_resource-faq-item__body {
  padding: 0 var(--sp-lg) var(--sp-lg);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
}
.resource-faq-item__body p { margin: 0 0 10px; }
.resource-faq-item__body p:last-child { margin-bottom: 0; }

/* ---- Related guides grid ---- */
.resource-related {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-border);
}
.resource-related__head {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}
.resource-related__eyebrow {
  display: inline-block;
  background: var(--c-gold-light);
  border: 1px solid rgba(212,168,83,0.35);
  color: var(--c-burgundy);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--ff-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.resource-related__head h2 {
  font-family: var(--ff-headline);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--c-text-deep);
  margin: 0;
}
.resource-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.resource-related-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.resource-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(74,21,37,0.2);
  border-color: rgba(212,168,83,0.5);
}
.resource-related-card__tag {
  display: inline-block;
  font-family: var(--ff-headline);
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--c-gold-dark);
  margin-bottom: 10px;
}
.resource-related-card__title {
  font-family: var(--ff-headline);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text-deep);
  line-height: 1.3;
  margin: 0 0 var(--sp-md);
}
.resource-related-card__title a { color: inherit; text-decoration: none; }
.resource-related-card__title a:hover { color: var(--c-burgundy); }
.resource-related-card__link {
  font-family: var(--ff-headline);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-burgundy);
  text-decoration: none;
}
.resource-related-card__link:hover { color: var(--c-gold-hover); }

/* ============================================================
   RESOURCE HUB — rich content components
   Classes the agent/transformer injects into body_html to elevate
   plain prose into visual storytelling.
   ============================================================ */

/* Stat callout — big number + label, highlights */
.stat-callout {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
  background: linear-gradient(165deg, #FBF5E9 0%, #F4EDDF 100%);
  border-left: 5px solid var(--c-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.stat-callout__num {
  font-family: var(--ff-headline);
  font-size: 48px;
  font-weight: 900;
  color: var(--c-burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.stat-callout__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.stat-callout__label {
  font-family: var(--ff-headline);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  color: var(--c-burgundy);
}
.stat-callout__desc {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.5;
  margin: 0;
}

/* Stat grid — 2-3 stat cards in a row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin: var(--sp-xl) 0;
}
.stat-grid__item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  text-align: center;
}
.stat-grid__num {
  display: block;
  font-family: var(--ff-headline);
  font-size: 36px;
  font-weight: 900;
  color: var(--c-burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-grid__label {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.4;
}

/* Pull quote — dramatic inline quote */
.pull-quote {
  margin: var(--sp-xl) 0;
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-xl) 70px;
  background: var(--c-bg-warm);
  border-radius: var(--radius-lg);
  position: relative;
  font-family: var(--ff-headline);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text-deep);
  font-style: italic;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 2px;
  font-family: Georgia, serif;
  font-size: 100px;
  font-style: normal;
  color: var(--c-gold);
  line-height: 1;
}
.pull-quote cite {
  display: block;
  margin-top: var(--sp-md);
  font-size: 14px;
  font-style: normal;
  color: var(--c-muted);
  font-weight: 500;
}
.pull-quote cite::before { content: "— "; }

/* Brand cards grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin: var(--sp-xl) 0;
}
.brand-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(74,21,37,0.18);
  border-color: rgba(212,168,83,0.45);
}
.brand-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--c-border);
}
.brand-card__name {
  font-family: var(--ff-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-burgundy-dark);
  margin: 0;
}
.brand-card__origin {
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.06em;
}
.brand-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 var(--sp-md);
}
.brand-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.brand-card__specs li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  color: var(--c-muted);
}
.brand-card__specs li strong {
  color: var(--c-text-deep);
  font-weight: 700;
}
.brand-card--recommend {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 1px var(--c-gold) inset;
}
.brand-card--recommend::before {
  content: "Most installed";
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-burgundy-dark);
  font-family: var(--ff-headline);
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.brand-card--avoid {
  background: #FEF4F4;
  border-color: #D88585;
}
.brand-card--avoid .brand-card__name { color: #9B2B2B; }
.brand-card--avoid::before {
  content: "\26A0 Avoid";
  display: inline-block;
  background: #9B2B2B;
  color: var(--c-white);
  font-family: var(--ff-headline);
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Program cards (funding) */
.program-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-lg) 0;
  box-shadow: 0 10px 24px -16px rgba(74,21,37,0.15);
}
.program-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-border);
  flex-wrap: wrap;
}
.program-card__name {
  font-family: var(--ff-headline);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-burgundy-dark);
  margin: 0;
  line-height: 1.2;
}
.program-card__max {
  font-family: var(--ff-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-gold-dark);
  background: var(--c-gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.program-card__agency {
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 0 var(--sp-md);
}
.program-card__agency::before { content: "▸ "; color: var(--c-gold); }
.program-card__criteria {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-md);
}
.program-card__criteria li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: 6px;
}
.program-card__criteria li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-gold);
  font-weight: 900;
}
.program-card__note {
  background: var(--c-bg-warm);
  border-left: 3px solid var(--c-burgundy);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0;
}

/* Numbered step blocks — "10-question checklist", "install day" */
.num-steps {
  list-style: none;
  padding: 0;
  margin: var(--sp-xl) 0;
  counter-reset: num-step;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.num-steps li {
  counter-increment: num-step;
  position: relative;
  padding: var(--sp-md) var(--sp-lg) var(--sp-md) 72px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  transition: transform .15s, box-shadow .15s;
}
.num-steps li:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 12px -6px rgba(74,21,37,0.15);
}
.num-steps li::before {
  content: counter(num-step, decimal-leading-zero);
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-burgundy);
  color: var(--c-gold);
  border-radius: 50%;
  font-family: var(--ff-headline);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(74,21,37,0.25);
}
.num-steps li strong {
  display: block;
  color: var(--c-burgundy-dark);
  font-weight: 800;
  margin-bottom: 4px;
}

/* Pro/Con two-column list */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin: var(--sp-xl) 0;
}
.pros-cons__col {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
}
.pros-cons__col--pro {
  border-top: 4px solid #4A8B4A;
}
.pros-cons__col--con {
  border-top: 4px solid #9B2B2B;
}
.pros-cons__title {
  font-family: var(--ff-headline);
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pros-cons__col--pro .pros-cons__title { color: #4A8B4A; }
.pros-cons__col--con .pros-cons__title { color: #9B2B2B; }
.pros-cons__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros-cons__col li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  margin-bottom: 8px;
}
.pros-cons__col--pro li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #4A8B4A;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
}
.pros-cons__col--con li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0;
  color: #9B2B2B;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
}

/* Key takeaway box — bold summary at top of section */
.key-takeaway {
  background: linear-gradient(165deg, #4A1525 0%, #7C2D3B 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: 0 0 var(--sp-xl);
  box-shadow: 0 14px 32px -16px rgba(74,21,37,0.4);
  position: relative;
  overflow: hidden;
}
.key-takeaway::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(212,168,83,0.2), transparent 70%);
  pointer-events: none;
}
.key-takeaway__label {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-burgundy-dark);
  font-family: var(--ff-headline);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.key-takeaway p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-white);
}
.key-takeaway p strong { color: var(--c-gold); }

/* Expert speaks — Luis callout */
.expert-says {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
  background: var(--c-bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  align-items: flex-start;
}
.expert-says__avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-burgundy), var(--c-burgundy-dark));
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-headline);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 6px 14px -6px rgba(74,21,37,0.3);
}
.expert-says__body { flex: 1; }
.expert-says__label {
  font-family: var(--ff-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  color: var(--c-gold-dark);
  display: block;
  margin-bottom: 4px;
}
.expert-says__name {
  font-family: var(--ff-headline);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-burgundy-dark);
  margin: 0 0 10px;
}
.expert-says__name small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
}
.expert-says__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0;
  font-style: italic;
}

/* Warning box — "watch for" / "red flag" */
.warning-box {
  background: #FEF4F4;
  border: 1px solid #D88585;
  border-left: 4px solid #9B2B2B;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-lg) 0;
}
.warning-box__title {
  font-family: var(--ff-headline);
  font-size: 14px;
  font-weight: 800;
  color: #9B2B2B;
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warning-box__title::before { content: "\26A0"; font-size: 16px; }
.warning-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0;
}

/* ---- Resource responsive ---- */
@media (max-width: 1024px) {
  .resource__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .resource__sidebar {
    position: static;
    max-height: none;
    grid-column: 1;
    grid-row: 1;
    overflow: visible;
  }
  .resource__content {
    grid-column: 1;
    grid-row: 2;
  }
  .resource-sidebar__toc {
    display: block;
    border-radius: 12px;
    padding: 16px 20px;
  }
  .resource-sidebar__list {
    display: none;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--c-border);
  }
  .resource-sidebar__toc.is-expanded .resource-sidebar__list {
    display: flex;
  }
  .resource-sidebar__title {
    cursor: pointer;
    padding: 4px 0;
    margin: 0;
  }
  .resource-sidebar__pct { display: none; }
  .resource-sidebar__title::after {
    content: 25BE;
    font-size: 14px;
    color: var(--c-muted);
    transition: transform .25s ease;
    margin-left: 6px;
  }
  .resource-sidebar__toc.is-expanded .resource-sidebar__title::after {
    transform: rotate(180deg);
  }
  .resource-sidebar__progress { margin-bottom: 0; }
  .resource-sidebar__cta { display: none; }
  .resource-hero__toc-mobile { display: block; }
  .resource-content { max-width: 100%; }
  .resource-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .resource-hero { padding: 56px 20px 40px; }
  .resource-hero__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .resource-hero__actions .btn { width: 100%; }
  /* .resource-hero-image--legacy { margin-top: -24px; padding: 0 var(--sp-md); }
  /* .resource-hero-image__frame--legacy { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .resource__layout { padding: var(--sp-2xl) var(--sp-md); }
  .resource-section { margin-bottom: var(--sp-2xl); }
  .resource-section__h2 { font-size: 24px; gap: 14px; }
  .resource-section__h2::before { min-width: 44px; height: 44px; font-size: 17px; padding: 0 10px; }
  .resource-section__body { font-size: 17px; line-height: 1.7; }
  .resource-section__body > p:first-of-type { font-size: 17px; }
  .resource-section__body > p:first-of-type::first-letter_DISABLED {
    font-size: 50px;
    line-height: 42px;
    padding: 6px 10px 0 0;
  }
  .resource-section__body h3 { font-size: 20px; }
  .resource-section__body table { font-size: 14px; display: block; overflow-x: auto; }
  .resource-section__body table th,
  .resource-section__body table td { padding: 10px 8px; }
  .resource-inline-cta { padding: var(--sp-md) var(--sp-lg); }
  .resource-inline-cta__inner { flex-direction: column; text-align: center; }
  .resource-inline-cta .btn { width: 100%; }
  /* .resource-faqs mobile override moved to full-bleed block */
  ._old_resource-faq-item summary { padding: 16px var(--sp-md); font-size: 15px; }
  ._old_resource-faq-item__body { padding: 0 var(--sp-md) var(--sp-md); }
  .resource-related { padding: var(--sp-2xl) var(--sp-md); }
  .resource-related__grid { grid-template-columns: 1fr; }

  /* Rich components mobile */
  .stat-callout { flex-direction: column; gap: 8px; padding: var(--sp-md) var(--sp-lg); }
  .stat-callout__num { font-size: 38px; }
  .stat-grid { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .brand-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .program-card { padding: var(--sp-md) var(--sp-lg); }
  .program-card__head { flex-direction: column; align-items: flex-start; }
  .program-card__name { font-size: 19px; }
  .pull-quote { padding: var(--sp-lg) var(--sp-lg) var(--sp-lg) 52px; font-size: 18px; }
  .pull-quote::before { font-size: 72px; left: 14px; }
  .num-steps li { padding: var(--sp-md) var(--sp-md) var(--sp-md) 62px; font-size: 15px; }
  .num-steps li::before { left: 14px; width: 34px; height: 34px; font-size: 12px; }
  .pros-cons { grid-template-columns: 1fr; }
  .key-takeaway { padding: var(--sp-md) var(--sp-lg); }
  .key-takeaway p { font-size: 16px; }
  .expert-says { flex-direction: column; padding: var(--sp-md) var(--sp-lg); gap: var(--sp-md); }
  .expert-says__avatar { width: 50px; height: 50px; font-size: 17px; }
}
@media (max-width: 480px) {
  .resource-section__h2 { flex-direction: column; gap: 10px; }
  .resource-section__h2::before { align-self: flex-start; }
}



/* ---- Full-width content (new default) ---- */
.resource__content-full {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-lg) var(--sp-3xl);
}
.resource__content-full .resource-content {
  max-width: 1440px;
  margin: 0 auto;
}

/* ============================================================
   HORIZONTAL TOC BAR — sticks below header on scroll
   ============================================================ */
.resource-toc-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 89;
  transition: box-shadow .2s;
}
.resource-toc-bar.is-stuck {
  box-shadow: 0 2px 12px rgba(45,41,38,.06);
}
.resource-toc-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  position: relative;
}
.resource-toc-bar__label {
  font-family: var(--ff-headline);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .08em;
  color: var(--c-burgundy);
  flex-shrink: 0;
}
.resource-toc-bar__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-burgundy), var(--c-gold));
  transition: width .3s ease;
}
.resource-toc-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.resource-toc-bar__list::-webkit-scrollbar { display: none; }
.resource-toc-bar__list li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--ff-headline);
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: all .15s;
}
.resource-toc-bar__list li a:hover {
  background: rgba(124,45,59,.04);
  color: var(--c-burgundy);
}
.resource-toc-bar__list li a.is-active {
  background: rgba(124,45,59,.06);
  color: var(--c-burgundy);
  font-weight: 700;
}

/* Desktop: show bar, hide mobile drawer */
.resource-toc-mobile { display: none; }

/* ---- Mobile TOC — fixed bottom drawer ---- */
@media (max-width: 768px) {
  .resource-toc-bar { display: none; }
  .resource-toc-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 16px rgba(45,41,38,.08);
  }
  .resource-toc-mobile__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-family: var(--ff-headline);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
  }
  .resource-toc-mobile__toggle svg {
    color: var(--c-burgundy);
    flex-shrink: 0;
  }
  .resource-toc-mobile__pct {
    margin-left: auto;
    font-size: 12px;
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
  }
  .resource-toc-mobile__drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .resource-toc-mobile.is-open .resource-toc-mobile__drawer {
    max-height: 70vh;
    overflow-y: auto;
  }
  .resource-toc-mobile__list {
    list-style: none;
    margin: 0;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .resource-toc-mobile__list li a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--c-text);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all .15s;
  }
  .resource-toc-mobile__list li a:hover {
    background: rgba(124,45,59,.04);
  }
  .resource-toc-mobile__list li a.is-active {
    background: rgba(212,168,83,.06);
    color: var(--c-burgundy);
    font-weight: 700;
    border-left-color: var(--c-gold);
  }
  .resource { padding-bottom: 64px; }
  .resource__content-full {
  overflow-x: clip; padding-left: var(--sp-md); padding-right: var(--sp-md); }
}
@media (max-width: 480px) {
  .resource__content-full .resource-content { font-size: 17px; }
}


/* ============================================================
   RESOURCE HERO — Split layout (text left, image right)
   ============================================================ */
.resource-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.resource-hero__content {
  max-width: 640px;
}
.resource-hero__image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(74,21,37,.15);
}
.resource-hero__image-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}

@media (max-width: 1024px) {
  .resource-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .resource-hero__content { max-width: 100%; }
  .resource-hero__image {
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .resource-hero__image { display: none; }
}

/* Hide the old standalone hero-image figure */
.resource-hero-image { display: none; }


/* ============================================================
   TOC BAR — scroll arrows when overflowing
   ============================================================ */
.resource-toc-bar__inner {
  position: relative;
}
.resource-toc-bar__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(45,41,38,.08);
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
  color: var(--c-burgundy);
  transition: box-shadow .15s;
}
.resource-toc-bar__arrow:hover {
  box-shadow: 0 4px 12px rgba(45,41,38,.12);
}
.resource-toc-bar__arrow--left { left: 60px; }
.resource-toc-bar__arrow--right { right: 0; }
.resource-toc-bar__arrow svg { width: 16px; height: 16px; }
.resource-toc-bar.has-overflow .resource-toc-bar__arrow { display: flex; }
.resource-toc-bar.at-start .resource-toc-bar__arrow--left { display: none; }
.resource-toc-bar.at-end .resource-toc-bar__arrow--right { display: none; }

/* Fade edges when scrollable */
.resource-toc-bar__list {
  mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  scroll-behavior: smooth;
}
.resource-toc-bar.at-start .resource-toc-bar__list {
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 40px), transparent 100%);
}
.resource-toc-bar.at-end .resource-toc-bar__list {
  mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%);
}


/* ============================================================
   RESOURCE FAQs — city-page style (gold border, rotating icon)
   ============================================================ */
.resource-faqs {
  padding: 48px 0;
  margin-top: var(--sp-3xl);
  background: #F7F3EE;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.resource-faqs__head {
  margin-bottom: 28px;
}
.resource-faqs__head h2 {
  font-family: var(--ff-headline);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--c-deep);
}
.resource-faqs__eyebrow {
  font-family: var(--ff-headline);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gold);
  margin-bottom: 6px;
  display: block;
}
.resource-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1440px;
}
.resource-faq-item {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.resource-faq-item[open] {
  border-color: var(--c-gold);
  box-shadow: 0 6px 18px -10px rgba(74,21,37,0.2);
}
.resource-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}
.resource-faq-item summary::-webkit-details-marker { display: none; }
.resource-faq-item summary::marker { display: none; content: ''; }
.resource-faq-item summary:hover { color: var(--c-burgundy); }
.resource-faq-item summary span { flex: 1 1 auto; min-width: 0; }
.resource-faq-item summary svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(212,168,83,.12);
  color: var(--c-burgundy);
  transition: transform .3s ease, background .2s;
}
.resource-faq-item[open] summary svg {
  transform: rotate(180deg);
  background: var(--c-burgundy);
  color: #fff;
}
.resource-faq-item__body {
  padding: 0 22px 20px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.7;
  border-top: 1px solid var(--c-border);
  margin-top: -2px;
  padding-top: 16px;
  animation: resource-faq-in .3s ease;
}
@keyframes resource-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .resource-faq-item summary { padding: 14px 16px; font-size: 15px; }
  .resource-faq-item__body { padding: 0 16px 16px; font-size: 15px; }
  .resource-faq-item summary svg { width: 30px; height: 30px; padding: 6px; }
}


/* ============================================================
   MOBILE RESPONSIVE — inline grid overrides for content pages
   ============================================================ */

/* Force all inline grids to stack on mobile */
@media (max-width: 768px) {
  /* Any inline grid inside sections → 1 column */
  .resource-section__body [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  .resource-section__body [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  .resource-section__body [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat grid: 2 columns on mobile */
  .stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .stat-grid__num {
    font-size: 28px !important;
  }

  /* Section alternating backgrounds — fix negative margins */
  .resource-section:nth-child(even) {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
  }

  /* Section padding tighter */
  .resource-section {
    padding: 32px 0 !important;
  }

  /* FAQ items tighter */
  .resource-faq-item summary {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  .resource-faq-item__body {
    padding: 0 16px 16px !important;
    font-size: 15px !important;
  }
  .resource-faq-item summary svg {
    width: 30px !important;
    height: 30px !important;
    padding: 6px !important;
  }

  /* Brand cards: stack vertically */
  .resource-section__body a[style*="display:flex"][style*="gap:12px"] {
    padding: 14px 16px !important;
  }
  .resource-section__body a img[style*="width:80px"] {
    width: 60px !important;
  }

  /* Team avatars smaller */
  .resource-section__body [style*="width:64px"][style*="height:64px"][style*="border-radius:50%"] {
    width: 52px !important;
    height: 52px !important;
    font-size: 16px !important;
  }

  /* Explore cards: 2 columns */
  .resource-section__body > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Explore cards: 1 column on very small screens */
  .resource-section__body > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats: still 2 columns but tighter */
  .stat-grid {
    gap: 8px !important;
  }
  .stat-grid__num {
    font-size: 24px !important;
  }

  /* Hero adjustments */
  .resource-hero__h1 {
    font-size: 26px !important;
  }
  .resource-hero__lede {
    font-size: 15px !important;
  }
}

/* Tablet: 2 columns for grids */
@media (min-width: 769px) and (max-width: 1024px) {
  .resource-section__body [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .resource-section__body [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ============================================================
   GLOBAL MOBILE OVERFLOW FIX
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.resource-hero {
  overflow: hidden;
}
.resource-hero__inner {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .resource-hero__inner {
    padding: 0 16px;
  }
  .resource-hero__h1 {
    font-size: clamp(26px, 7vw, 36px) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .resource-hero__lede {
    font-size: 15px !important;
  }
  .resource-hero__grid {
    grid-template-columns: 1fr !important;
  }
  .resource-toc-bar__inner {
    padding: 0 16px;
  }
  .resource__content-full {
  overflow-x: clip;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden;
  }
  .resource-section:nth-child(even) {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
  }
  /* Force all inline grids to respect viewport */
  .resource-section__body div[style*="display:grid"] {
    max-width: 100% !important;
    overflow: hidden;
  }
  .resource-section__body img {
    max-width: 100% !important;
    height: auto !important;
  }
  .resource-section__body a[style*="display:flex"] {
    max-width: 100% !important;
  }
  /* Breadcrumb truncation */
  .resource-hero__breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .resource-hero__inner {
    padding: 0 12px;
  }
  .resource-hero__h1 {
    font-size: 24px !important;
  }
  .resource-hero__actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .resource-hero__actions .btn {
    width: 100% !important;
    text-align: center;
  }
}


/* TOC bar sits below fixed header when scrolled */
body.is-scrolled .resource-toc-bar {
  top: var(--aas-nav-height, 72px);
}
