/* =========================================================
THE POLITICAL RIFT — GLOBAL CSS (SITEWIDE) — SAFE VERSION
Goal: Keep sand canvas without overriding intentional block backgrounds
========================================================= */

/* =========================
SITE CANVAS (SAND BASELINE)
========================= */
/* Use body for site-wide canvas, do NOT force .has-background */
html, body{
  background: #fdf6e3;
}

/* Main canvas only (keeps the “sand everywhere” feel without nuking designed sections) */
.wp-site-blocks,
.wp-site-blocks > main,
main,
#content,
#primary,
#main,
.site-content,
.content-area,
.site-main{
  background: #fdf6e3;
}

/* Page-type baselines (fine to keep) */
.page, .blog, .archive, .category, .tag, .search, .error404{
  background: #fdf6e3;
}

/* Keep NFD surfaces consistent, but do NOT target .has-background */
.nfd-bg-surface, .nfd-theme-darker{
  background-color: #fdf6e3;
}

/* Kill white gutters (keep, but don’t overdo) */
:root{
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
}

/* =========================
CONSTRAINED CENTERING (SAFE)
Only inside MAIN content to avoid breaking header/footer template parts
========================= */
.wp-site-blocks > main .is-layout-constrained > *:not(.alignleft):not(.alignright):not(.alignfull){
  margin-left: auto;
  margin-right: auto;
}

/* Do not force every group/cover/template part transparent (this can break designed blocks)
   If you still want transparency for MOST groups, scope it to main only. */
.wp-site-blocks > main .wp-block-group,
.wp-site-blocks > main .wp-block-cover{
  background-color: transparent;
}

/* =========================
SINGLE POST STABILIZER (OK)
========================= */
.single-post html,
.single-post body{
  background: #fdf6e3;
}

.single-post .wp-block-post-content,
.single-post .entry-content{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  background: #fdf6e3;
}

.single-post .alignfull,
.single-post .alignwide{
  margin-left: 0;
  margin-right: 0;
}

/* =========================
PR FOOTER FIX (NFD / YITH)
Centers footer and beats 33.34% flex basis
========================= */
.nfd-wb-footer__footer-4{
  width: 100%;
}

.nfd-wb-footer__footer-4 .wp-block-columns{
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.nfd-wb-footer__footer-4 .wp-block-column{
  flex: 0 1 1100px;
  flex-basis: auto;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.nfd-wb-footer__footer-4 .pr-footer{
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.nfd-wb-footer__footer-4 .pr-footer-links{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px auto;
}