/**
 * Selfrag Site - final overrides for standalone theme.
 */

/* Nuclear reset on every Drupal wrapper */
html,
body,
body.sf-body,
.dialog-off-canvas-main-canvas,
.sf-main,
.sf-page,
main,
main > div,
main > div > div,
main > div > div > article,
.block,
[id^="block-selfrag"],
article:not(.sf-blog-card):not(.sf-card):not(.sf-blog-detail):not(.sf-center) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Horizontal overflow containment only on root — avoid nested scroll contexts
   (inner elements with overflow-x:hidden trigger overflow-y:auto, causing double scrollbars). */
html,
body {
  overflow-x: hidden;
}

/* Drupal admin toolbar spacing */
body.toolbar-horizontal { padding-top: 0 !important; }
body.toolbar-tray-open { padding-top: 0 !important; }

/* Body link default */
a { color: var(--sf-red); text-decoration: none; }
a:hover { color: var(--sf-red-dark); }

/* Full-bleed sections: force 100vw width regardless of parent constraints */
.sf-hero,
.sf-stats,
.sf-cards-section,
.sf-text-media,
.sf-text-block,
.sf-quote,
.sf-cta,
.sf-faq,
.sf-latest-posts {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  position: relative;
}

/* Alternating section backgrounds */
.sf-cards-section:nth-of-type(even),
.sf-text-media:nth-of-type(even) {
  background: var(--sf-bg-alt);
}
