/* Page-specific CSS for PHP-rendered materials pages.
   Do not put product-listing styles here. Product-listing CSS is isolated in /assets/ssr-products.css. */

body.rp-materials-ssr-page .rp-page-main {
  background: #ffffff;
  color: var(--nero);
}

/* Keep the approved Roar Panther SSR page rhythm. */
body.rp-materials-ssr-page .rp-hero {
  padding-top: 128px;
  padding-bottom: 48px;
}

body.rp-materials-ssr-page .rp-hero h1 {
  max-width: 100%;
  width: 100%;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: 0.025em;
}

body.rp-materials-ssr-page .rp-hero-copy {
  max-width: 100%;
  width: 100%;
  font-size: 14px;
  line-height: 1.9;
}

.rp-cta-band {
  background: var(--nero);
  color: var(--ivory);
  margin: 0;
  padding: 48px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-cta-band .rp-material-cta {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Material-type CTA background: uses content_json.hero_image only when available. */
body.rp-material-type-ssr-page .rp-cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.rp-material-type-ssr-page .rp-cta-band.has-material-background {
  background-color: var(--nero);
  background-image:
    linear-gradient(90deg, rgba(4, 4, 4, 0.62) 0%, rgba(4, 4, 4, 0.5) 50%, rgba(4, 4, 4, 0.58) 100%),
    var(--rp-material-cta-background-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Mobile and touch-browser fallback: fixed background attachment is unreliable on many mobile browsers. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  body.rp-material-type-ssr-page .rp-cta-band.has-material-background {
    background-attachment: scroll;
  }
}

body.rp-material-type-ssr-page .rp-cta-band.has-material-background .rp-material-cta {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.68) 0%, rgba(5, 5, 5, 0.58) 50%, rgba(5, 5, 5, 0.52) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 90px -58px rgba(0, 0, 0, 0.9);
}

@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))) {
  body.rp-material-type-ssr-page .rp-cta-band.has-material-background .rp-material-cta {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}

.rp-full-bleed.rp-bg-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.rp-bg-section .rp-container,
.rp-faq-section.rp-container,
.rp-section.rp-container {
  max-width: 1500px;
}

.rp-faq-tabs { width: 100%; }
.rp-faq-panel { will-change: opacity, transform; }

/* Material detail content width fixes only. */
body.rp-material-detail-ssr-page .rp-detail-text-section .rp-text-wide,
body.rp-material-detail-ssr-page .rp-stacked-section .rp-text-wide,
body.rp-material-detail-ssr-page .rp-pros-section .rp-text-wide,
body.rp-material-detail-ssr-page .rp-bg-section .rp-text-wide {
  max-width: 100%;
}

body.rp-material-detail-ssr-page .rp-detail-text-section .rp-text-wide p,
body.rp-material-detail-ssr-page .rp-stacked-section .rp-text-wide p {
  max-width: 1120px;
}

body.rp-material-detail-ssr-page .rp-table-section,
body.rp-material-detail-ssr-page .rp-pros-section,
body.rp-material-detail-ssr-page .rp-faq-section {
  width: var(--container);
}

body.rp-material-detail-ssr-page .rp-section-heading-row > p {
  max-width: 620px;
}

.rp-material-type-grid .rp-material-card h3 { font-size: 24px; }

@media (max-width: 720px) {
  body.rp-materials-ssr-page .rp-hero { padding-top: 112px; }
  body.rp-materials-ssr-page .rp-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .rp-cta-band { padding: 28px 0; }
}
