/* ========== RESOURCE PAGES: PHOTO HERO + ZEBRA ==========
   Shared by /resources/* sub-pages and /forms/.
   Usage:
     <body class="resource-zebra">
     <section class="resource-hero resource-hero--image" style="--hero-img:url('/assets/images/resources/x-hero.webp')">
   Full-bleed backgrounds are painted with box-shadow + clip-path, so they
   span the viewport without changing any section's content width. */

html, body { overflow-x: clip; }
body.resource-zebra main.page-shell { overflow-x: visible !important; }

/* ---- Photo hero ---- */
.resource-hero.resource-hero--image {
  position: relative; isolation: isolate;
  background: transparent !important; border-bottom: 0 !important;
  padding-top: clamp(3.5rem, 7vw, 5.5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 4.5rem) !important;
  color: #fff; margin-bottom: 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.resource-hero--image::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(15,23,42,0.80) 0%, rgba(15,23,42,0.66) 55%, rgba(15,23,42,0.82) 100%),
    var(--hero-img) center / cover no-repeat;
  background-color: #0f172a;
}
.resource-hero--image .resource-hero__eyebrow,
.resource-hero--image .service-detail-kicker { color: #f3c969 !important; }
.resource-hero--image h1,
.resource-hero--image .resource-hero__title { color: #fff !important; }
.resource-hero--image p,
.resource-hero--image .resource-hero__lede,
.resource-hero--image .resource-hero__updated { color: rgba(255,255,255,0.86) !important; }
.resource-hero--image a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }
.resource-hero--image .resource-stat {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(4px);
}
.resource-hero--image .resource-stat__num { color: #fff !important; }
.resource-hero--image .resource-stat__label { color: rgba(255,255,255,0.78) !important; }

/* ---- Zebra: alternate full-bleed bands after the hero ---- */
body.resource-zebra main > section:not(.resource-hero):not(.cta-block):not(.resource-cta) {
  --zb: #ffffff;
  background-color: var(--zb) !important;
  box-shadow: 0 0 0 100vmax var(--zb);
  clip-path: inset(0 -100vmax);
  margin-top: 0 !important; margin-bottom: 0 !important;
  padding-top: clamp(2.25rem, 4vw, 3rem) !important;
  padding-bottom: clamp(2.25rem, 4vw, 3rem) !important;
}
body.resource-zebra main > section:not(.resource-hero):not(.cta-block):not(.resource-cta):nth-of-type(even) {
  --zb: #f4f7fb;
}

/* ---- Topic cards (explainers) ---- */
.rp-section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.rp-kicker, .rp-section-head .rp-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b91c1c !important; margin: 0 0 .5rem; }
.rp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: #0f172a; margin: 0 0 .75rem; }
.rp-section-head p { font-size: 1.02rem; line-height: 1.6; color: #475569; margin: 0; }
.rp-topics { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-topic { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.5rem 1.5rem 1.35rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); display: flex; flex-direction: column; }
.rp-topic--wide { grid-column: 1 / -1; }
.rp-topic__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .6rem; flex-wrap: wrap; }
.rp-topic h3 { font-size: 1.12rem; line-height: 1.3; color: #0f172a; margin: 0; }
.rp-topic__fee { font-size: .95rem; font-weight: 700; color: #8b1a1a; background: rgba(139,26,26,.08); border-radius: 999px; padding: .25rem .7rem; white-space: nowrap; }
.rp-topic__cite { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .03em; color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: .15rem .5rem; margin-bottom: .7rem; }
.rp-topic p { font-size: .96rem; line-height: 1.62; color: #334155; margin: 0 0 .7rem; }
.rp-topic p:last-child { margin-bottom: 0; }
.rp-topic a { color: #8b1a1a; text-underline-offset: 2px; }
.rp-topic ul { margin: 0 0 .7rem; padding-left: 1.1rem; color: #334155; font-size: .96rem; line-height: 1.6; }
.rp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: .4rem 0 .9rem; }
.rp-split > div { border-left: 3px solid #8b1a1a; background: #f8fafc; border-radius: 0 10px 10px 0; padding: .9rem 1rem; }
.rp-split h4 { margin: 0 0 .35rem; font-size: 1rem; color: #0f172a; }
.rp-split p { margin: 0; font-size: .93rem; }
.rp-example { max-width: 1080px; margin: 18px auto 0; background: #0f172a; color: #fff; border-radius: 14px; padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.rp-example h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: #fff; }
.rp-example p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.55; }
.rp-example table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.rp-example td { padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.rp-example td:last-child { text-align: right; }
.rp-example tr:last-child td { border-bottom: 0; font-weight: 700; color: #fff; font-size: 1.05rem; padding-top: .55rem; }

/* ---- FAQ (matches site-wide accordion; uses global details.faq-item) ---- */
.rp-faq__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.rp-faq__grid details.faq-item > p a { color: #8b1a1a; }

@media (max-width: 800px) {
  .rp-topics, .rp-faq__grid, .rp-split, .rp-example { grid-template-columns: 1fr; }
}

/* ---- Slim next-step strip (replaces boxed CTAs; footer carries call/book) ---- */
.rp-next { padding-block: 2.5rem; }
.rp-next__card { max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #b91c1c; border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.rp-next__card h2 { font-size: 1.15rem; line-height: 1.3; color: #0f172a; margin: 0 0 .25rem; }
.rp-next__card p { margin: 0; font-size: .95rem; line-height: 1.55; color: #475569; }
.rp-next__link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 8px; background: #0f172a; color: #fff !important; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.rp-next__link:hover { background: #1e293b; }
@media (max-width: 700px) { .rp-next__card { flex-direction: column; align-items: flex-start; } }
