/* Smart Group Theme v1.7 – Absolute Left Lock Fix (Final) */

:root {
  --sgt-bg: #ffffff;
  --sgt-text: #0f172a;
  --sgt-border: #e5e7eb;
  --sgt-shadow: 0 4px 14px rgba(0,0,0,.05);
  --sgt-container-gap: 0;
}

* { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  background: var(--sgt-bg);
  color: var(--sgt-text);
  overflow-x: hidden;
  line-height: 1.6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header minimal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--sgt-border);
  box-shadow: var(--sgt-shadow);
}
.site-header .brand {
  max-width: 100%;
  padding: 8px 16px;
}
.brand-link, .brand-link img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  height: 48px;
}
.brand-link img {
  height: 48px;
  width: auto;
}

/* Site content */
.site-content { width: 100%; margin: 0; padding: 0; display: block; }

/* === ABSOLUTE FULLSCREEN + LEFT LOCK === */
/* Remove width/padding/margins from common WordPress wrappers and FSE blocks */
.wp-site-blocks,
.wp-block,
.entry-content,
.post-content,
.container,
.site-content,
.alignfull,
.alignwide,
.aligncenter {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Prefer targeting page that actually contains Smart Group plugin */
#sgp-root, .sgp-wrapper, .sgp {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  display: block !important;
}

/* Neutralize Gutenberg group auto center when wrapping plugin */
.wp-block-group:has(#sgp-root),
.wp-block:has(#sgp-root),
.entry-content:has(#sgp-root) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Fallback without :has() — directly target plugin tree */
#sgp-root > *, .sgp-wrapper > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* SEO block styling */
.sgt-seo-block {
  margin-top: 32px;
  padding: 16px;
  border-top: 1px dashed var(--sgt-border);
  background: #fafafa;
}
.sgt-seo-title {
  font-size: 22px;
  margin: 0 0 8px 0;
}
.sgt-seo-content p { margin: 0 0 8px 0; }

/* Footer minimal */
.site-footer {
  margin-top: 40px;
  padding: 16px;
  border-top: 1px solid var(--sgt-border);
  color: #475569;
  background: #fff;
}