/*
 * FIRE RANT — homepage lower-section layout, 2026-10-19.
 * Append/enqueue after the base theme stylesheet. Every selector is homepage
 * scoped and anchored below the Three Pillars section. No markup, text,
 * assets, scripts, URLs, navigation, or protected-section styles are changed.
 * Shared content rail: --fr-content-gutter, supplied by the site rail patch.
 */

/* Full-width section rails; text measures are set on individual text blocks. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase, .fr-quotes, .fr-cta, .fr-footer) {
  padding-inline: var(--fr-content-gutter, 40px);
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase, .fr-quotes, .fr-cta) {
  padding-block: clamp(64px, 6.25vw, 112px);
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-feature-row, .fr-quotes-grid, .fr-cta-container, .fr-footer-container) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Section introductions share a title/summary composition. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 112px);
  row-gap: 10px;
  align-items: end;
  max-width: none;
  margin: 0 0 48px;
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) > .fr-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) > h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3rem);
  text-wrap: balance;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) > p:not(.fr-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 58ch;
  margin: 0;
}

/* Three spacious feature rows retain the authored text-first reading order. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: center;
  direction: ltr;
  margin-block: 0;
  padding-block: clamp(36px, 4.5vw, 72px);
  border-top: 1px solid rgba(255, 59, 59, .12);
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row:last-child {
  padding-bottom: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row > * {
  min-width: 0;
  direction: ltr;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-text {
  grid-column: 1;
  grid-row: 1;
  max-width: 620px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-panel {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  padding: clamp(24px, 2.5vw, 40px);
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row.reverse > .fr-feature-text {
  grid-column: 2;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row.reverse > .fr-demo-panel {
  grid-column: 1;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-text h3 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  text-wrap: balance;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-text > p:not(.fr-feat-label) {
  max-width: 58ch;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feat-stat {
  max-width: 100%;
}

/* One prominent expert voice beside four supporting, equal-height quotes. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quotes-grid {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes :is(.fr-quote-card, .fr-quote-featured) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.2vw, 40px);
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-featured {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: center;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-featured::before {
  align-self: flex-start;
  margin-bottom: 24px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-featured .fr-quote-text {
  max-width: 32ch;
  margin: 0 0 32px;
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.55;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-author {
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-card .fr-quote-author {
  margin-top: auto;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-meta {
  min-width: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-source {
  max-width: 100%;
}

/* The heading and four reasons form one column; briefing is the second. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  column-gap: clamp(36px, 5vw, 88px);
  row-gap: 40px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-header {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-header h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  max-width: 20ch;
  text-wrap: balance;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-header p {
  max-width: 62ch;
  margin-inline: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-grid {
  display: contents;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-values {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-value {
  min-width: 0;
  padding: 20px;
  gap: 12px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-value-text {
  min-width: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 56px);
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-card h3 {
  font-size: clamp(1.6rem, 2vw, 2rem);
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-card p {
  max-width: 48ch;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-buttons {
  align-items: stretch;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-buttons > a {
  max-width: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-status {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 32px;
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-status-badge {
  max-width: 100%;
  text-align: left;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-status-dot {
  flex-shrink: 0;
}

/* The footer continues the same rail and gives every column a readable width. */
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer {
  padding-top: 64px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 56px);
  margin-bottom: 48px;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-grid > * {
  min-width: 0;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-brand p {
  max-width: 38ch;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-contact-item {
  align-items: flex-start;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-contact-item > i {
  flex-shrink: 0;
  line-height: inherit;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-contact-item > a {
  overflow-wrap: anywhere;
}
body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer :is(.fr-footer-socials, .fr-footer-badges) {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quotes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quote-featured .fr-quote-text {
    max-width: 65ch;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-values {
    grid-template-columns: minmax(0, 1fr);
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 48px;
  }
}

@media (max-width: 900px) {
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-container {
    display: block;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-header {
    margin-bottom: 32px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta :is(.fr-cta-values, .fr-cta-card) {
    grid-column: auto;
    grid-row: auto;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-status {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase, .fr-quotes, .fr-cta, .fr-footer) {
    padding-inline: var(--fr-content-gutter, 16px);
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase, .fr-quotes, .fr-cta) {
    padding-block: 56px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    margin-bottom: 32px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) :is(.fr-showcase-header, .fr-quotes-header) > p:not(.fr-label) {
    grid-column: 1;
    grid-row: 3;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 32px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row > :is(.fr-feature-text, .fr-demo-panel),
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-feature-row.reverse > :is(.fr-feature-text, .fr-demo-panel) {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-panel {
    padding: 24px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes .fr-quotes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-quotes :is(.fr-quote-featured, .fr-quote-card) {
    padding: 28px 24px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-card {
    padding: 32px 24px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer {
    padding-top: 48px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-bottom {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-cta .fr-cta-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-panel {
    padding: 20px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-geo .fr-demo-map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-confidence {
    flex-wrap: wrap;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-lb-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-showcase .fr-demo-lb-name {
    overflow-wrap: anywhere;
  }
  body.fr-layout-refresh:is(.home, .page-id-538):not(.fr-china) .fr-footer .fr-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
