/* PopQuest Publishers Hub — scoped styles (no bleed)
   Brand: B/W + #91F88D
   Fonts: PQFranklin (headings), Inter (body)
*/
:root{
  --pqpub-accent:#91F88D;
  --pqpub-black:#000;
  --pqpub-white:#fff;
  --pqpub-ink:#0b0b0b;
  --pqpub-grey:#121212;
  --pqpub-grey2:#1b1b1b;
  --pqpub-line:rgba(255,255,255,.12);
  --pqpub-glow:rgba(145,248,141,.55);
  --pqpub-radius:22px;
}

/*
  HARD ISOLATION — Publishers page only
  Some sitewide Customizer CSS forces `html, body { background:#fff !important; }` on singular pages.
  Keep the canvas + any gaps (admin bar offset / footer adjacency) black.
*/
body.pqpub-page,
body.pqpub-page #page,
body.pqpub-page #content,
body.pqpub-page main,
body.pqpub-page .site,
body.pqpub-page .site-content,
body.pqpub-page .entry-content{
  background:#000 !important;
}

/* Avoid any inherited top/bottom spacing visually reading as “white bands” */
body.pqpub-page .mfb-footer{ margin-top:0 !important; }

.pqpub-wrap{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--pqpub-white);
  background: var(--pqpub-black);
}

.pqpub-wrap *{ box-sizing:border-box; }

.pqpub-fullbleed{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.pqpub-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.pqpub-hero{
  position:relative;
  background:#000;
  padding: 68px 0 46px;
  overflow:hidden;
  border-bottom:1px solid var(--pqpub-line);
}

.pqpub-gridbg{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 280px at 18% 14%, rgba(145,248,141,.12), transparent 60%),
    radial-gradient(520px 260px at 78% 10%, rgba(145,248,141,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 42px 42px, 42px 42px;
  opacity:.55;
  pointer-events:none;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0,0,0,1), rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 78%);
}

.pqpub-hero__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:start;
}

@media (max-width: 980px){
  .pqpub-hero__grid{ grid-template-columns: 1fr; }
}

.pqpub-kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border:1px solid rgba(145,248,141,.32);
  border-radius:999px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(255,255,255,.88);
  background: rgba(145,248,141,.06);
}

.pqpub-h1, .pqpub-h2, .pqpub-h3{
  font-family: PQFranklin, "Franklin Gothic Heavy", "Franklin Gothic", Arial Black, Arial, sans-serif;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}

.pqpub-h1{ font-size: 48px; line-height:1.02; }
@media (max-width: 520px){ .pqpub-h1{ font-size: 38px; } }

.pqpub-h2{ font-size: 34px; line-height:1.05; }
@media (max-width: 520px){ .pqpub-h2{ font-size: 28px; } }

.pqpub-h3{ font-size: 22px; }

.pqpub-lede{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  margin: 0 0 18px;
}

.pqpub-copy{
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 10px 0 16px;
}

.pqpub-hero__ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 16px 0 12px;
}

.pqpub-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  border:1px solid rgba(255,255,255,.16);
  color: var(--pqpub-white);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.pqpub-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(145,248,141,.42);
  box-shadow: 0 0 18px rgba(145,248,141,.22);
}

.pqpub-btn--primary{
  background: var(--pqpub-accent);
  color: #000;
  border-color: rgba(145,248,141,.75);
  box-shadow: 0 0 24px rgba(145,248,141,.28);
}

.pqpub-btn--primary:hover{
  box-shadow: 0 0 34px rgba(145,248,141,.38);
}

.pqpub-btn--ghost{
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.18);
}

.pqpub-btn--xl{
  height: 54px;
  padding: 0 22px;
  font-size: 12px;
}

.pqpub-mini{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.pqpub-pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

/* Top 10 cards */
.pqpub-duo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px){
  .pqpub-duo{ grid-template-columns: 1fr; }
}
.pqpub-top10{
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--pqpub-radius);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
}
.pqpub-top10__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.pqpub-top10__title{
  font-family: PQFranklin, "Franklin Gothic Heavy", "Franklin Gothic", Arial Black, Arial, sans-serif;
  font-size: 14px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.pqpub-tag{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border:1px solid rgba(145,248,141,.38);
  background: rgba(145,248,141,.08);
  color: rgba(255,255,255,.86);
  font-size: 11px;
  letter-spacing:.12em;
}

.pqpub-top10__list{
  list-style:none;
  margin:0;
  padding: 10px 8px 8px;
}

.pqpub-top10__row{
  display:grid;
  grid-template-columns: 26px 1fr auto;
  gap:10px;
  align-items:center;
  padding: 8px 8px;
  border-radius: 14px;
  transition: background .14s ease, transform .14s ease;
}
.pqpub-top10__row:hover{
  background: rgba(145,248,141,.08);
  transform: translateY(-1px);
}
.pqpub-rank{
  width:26px;
  height:26px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.pqpub-top10__who{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  min-width:0;
}
.pqpub-avatar{
  width:30px;
  height:30px;
  border-radius: 12px;
  background-size: cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
  flex: 0 0 auto;
}
.pqpub-name{
  font-weight: 800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pqpub-delta{
  font-weight:900;
  font-size: 12px;
  color: rgba(145,248,141,.92);
  letter-spacing:.02em;
}

.pqpub-top10__foot{
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.pqpub-top10__foot a{
  color: var(--pqpub-accent);
  text-decoration:none;
  text-shadow: 0 0 10px rgba(145,248,141,.25);
}

.pqpub-footNote{ font-weight: 700; letter-spacing:.02em; }

/* Embed panel */
.pqpub-embedPanel{
  margin: 0 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.pqpub-embedPanel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.pqpub-embedPanel__title{
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.pqpub-embedPanel__meta{ padding: 10px 12px 0; }
.pqpub-embedPanel__desc{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}
.pqpub-embedPanel__opts{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pqpub-embedOpt{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.pqpub-embedTheme{
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 6px 10px;
  outline: none;
}
.pqpub-embedHint{
  font-size: 11px;
  color: rgba(255,255,255,.55);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 320px;
}
.pqpub-embedCode{
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.55);
  border-top: 1px solid rgba(255,255,255,.10);
  overflow:auto;
}
.pqpub-copybtn.is-copied{ box-shadow: 0 0 18px rgba(145,248,141,.55); }
.pqpub-subnote{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.pqpub-dot{
  width:10px; height:10px; border-radius: 999px;
  background: var(--pqpub-accent);
  box-shadow: 0 0 18px rgba(145,248,141,.55);
}

/* Sections */
.pqpub-section{
  padding: 54px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: var(--pqpub-black);
}
.pqpub-section--dark{
  background: linear-gradient(180deg, #000, #050505);
}
.pqpub-split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items:start;
}
.pqpub-split--wide{
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px){
  .pqpub-split, .pqpub-split--wide{ grid-template-columns: 1fr; }
}

/* Chip grid */
.pqpub-chipgrid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
}
.pqpub-chip{
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.80);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.pqpub-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(145,248,141,.36);
  box-shadow: 0 0 16px rgba(145,248,141,.18);
}
.pqpub-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border:1px solid rgba(145,248,141,.26);
  background: rgba(145,248,141,.06);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

/* Demo */
.pqpub-demo{
  position:relative;
  border-radius: var(--pqpub-radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset, 0 0 30px rgba(145,248,141,.12);
}
.pqpub-demo__badge{
  position:absolute;
  top: 14px;
  right: 14px;
  z-index:2;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(145,248,141,.38);
  background: rgba(0,0,0,.45);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.86);
  text-transform:uppercase;
}
.pqpub-demo__card{
  padding: 16px;
}
.pqpub-demo__top{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:baseline;
  margin-top: 24px;
}
.pqpub-demo__qmeta{
  display:flex;
  gap: 10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.pqpub-demo__qno{
  font-weight:900;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: rgba(255,255,255,.86);
}
.pqpub-demo__timer{
  font-weight:900;
  font-size: 12px;
  color: rgba(145,248,141,.95);
  text-shadow: 0 0 10px rgba(145,248,141,.22);
}
.pqpub-demo__hint{
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.pqpub-demo__q{
  margin: 16px 0 12px;
  font-family: PQFranklin, "Franklin Gothic Heavy", "Franklin Gothic", Arial Black, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.15;
}
.pqpub-demo__answers{ display:grid; gap:10px; }
.pqpub-demo__ans{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.pqpub-demo__ans:hover{
  transform: translateY(-1px);
  border-color: rgba(145,248,141,.34);
  box-shadow: 0 0 18px rgba(145,248,141,.14);
}
.pqpub-demo__lock{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border:1px dashed rgba(145,248,141,.32);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.84);
  font-size: 13px;
}
.pqpub-demo__cta{
  display:inline-block;
  margin-left: 8px;
  color: var(--pqpub-accent);
  text-decoration:none;
  font-weight:900;
  text-shadow: 0 0 12px rgba(145,248,141,.25);
}

/* Metrics */
.pqpub-metrics{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .pqpub-metrics{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .pqpub-metrics{ grid-template-columns: 1fr; } }
.pqpub-metric{
  border-radius: var(--pqpub-radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  padding: 18px 16px;
}
.pqpub-metric__num{
  font-family: PQFranklin, "Franklin Gothic Heavy", "Franklin Gothic", Arial Black, Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  color: var(--pqpub-accent);
  text-shadow: 0 0 18px rgba(145,248,141,.25);
}
.pqpub-metric__label{
  margin-top: 10px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* CTA Strip */
.pqpub-ctaStrip{
  margin-top: 18px;
  border-radius: var(--pqpub-radius);
  border:1px solid rgba(145,248,141,.22);
  background: radial-gradient(800px 260px at 20% 50%, rgba(145,248,141,.12), transparent 55%),
              rgba(255,255,255,.03);
  padding: 18px 16px;
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content:space-between;
}
@media (max-width: 720px){
  .pqpub-ctaStrip{ flex-direction:column; align-items:flex-start; }
}

.pqpub-ctaStrip__copy .pqpub-h3{ margin:0 0 6px; }

/* Cards grid */
.pqpub-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 980px){ .pqpub-cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .pqpub-cards{ grid-template-columns: 1fr; } }

.pqpub-card{
  position:relative;
  border-radius: var(--pqpub-radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  padding: 18px 16px;
  overflow:hidden;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.pqpub-card:hover{
  transform: translateY(-2px);
  border-color: rgba(145,248,141,.34);
  box-shadow: 0 0 28px rgba(145,248,141,.12);
}
.pqpub-card__title{
  font-family: PQFranklin, "Franklin Gothic Heavy", "Franklin Gothic", Arial Black, Arial, sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
}
.pqpub-card__desc{
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.pqpub-card__shine{
  position:absolute;
  inset:-40% -40%;
  background: radial-gradient(closest-side, rgba(145,248,141,.10), transparent 70%);
  transform: translate3d(0,0,0);
  opacity:0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.pqpub-card:hover .pqpub-card__shine{ opacity:1; }

/* Accordion */
.pqpub-accord{ margin-top: 16px; display:grid; gap: 10px; }
.pqpub-acc{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.pqpub-acc__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  background: transparent;
  border:0;
  color: rgba(255,255,255,.92);
  cursor:pointer;
  text-align:left;
}
.pqpub-acc__title{
  font-weight: 900;
  letter-spacing:.02em;
}
.pqpub-acc__icon{
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(145,248,141,.40);
  position:relative;
  box-shadow: 0 0 12px rgba(145,248,141,.18);
}
.pqpub-acc__icon:before,
.pqpub-acc__icon:after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  background: var(--pqpub-accent);
  width: 10px; height: 2px;
  border-radius: 999px;
}
.pqpub-acc__icon:after{
  width: 2px; height: 10px;
}
.pqpub-acc[aria-expanded="true"] .pqpub-acc__icon:after{ display:none; }

.pqpub-acc__panel{
  border-top: 1px solid rgba(255,255,255,.10);
}
.pqpub-acc__body{
  padding: 14px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.6;
}


/* FAQ */
.pqpub-faq{
  margin-top: 28px;
  padding-top: 10px;
}
.pqpub-faq .pqpub-h2{ margin-bottom: 8px; }
.pqpub-faq .pqpub-copy{ max-width: 62ch; }

/* Code box */
.pqpub-codebox{
  border-radius: var(--pqpub-radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.45);
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55) inset, 0 0 24px rgba(145,248,141,.10);
}
.pqpub-codebox__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.pqpub-codebox__label{
  font-weight: 900;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.82);
}
.pqpub-copybtn{
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border:1px solid rgba(145,248,141,.34);
  background: rgba(145,248,141,.10);
  color: rgba(255,255,255,.90);
  font-weight: 900;
  cursor:pointer;
}
.pqpub-code{
  margin: 0;
  padding: 14px;
  white-space: pre;
  overflow:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(145,248,141,.90);
  text-shadow: 0 0 10px rgba(145,248,141,.18);
}
.pqpub-codebox__foot{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

/* Final CTA */
.pqpub-final{
  margin-top: 22px;
  border-radius: calc(var(--pqpub-radius) + 8px);
  border:1px solid rgba(145,248,141,.26);
  background: radial-gradient(900px 320px at 12% 30%, rgba(145,248,141,.18), transparent 58%),
              radial-gradient(700px 260px at 90% 70%, rgba(145,248,141,.12), transparent 55%),
              rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 0 40px rgba(145,248,141,.10);
}
.pqpub-final__inner{
  padding: 22px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
@media (max-width: 820px){ .pqpub-final__inner{ flex-direction:column; align-items:flex-start; } }

/* Animations */
.pqpub-anim{
  opacity:0;
  transform: translate3d(0,12px,0);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--pqpub-delay, 0ms);
}
.pqpub-anim.is-in{
  opacity:1;
  transform: translate3d(0,0,0);
}

/* A subtle pulse for primary buttons */
.pqpub-btn--primary{
  animation: pqpubPulse 2.8s ease-in-out infinite;
}
@keyframes pqpubPulse{
  0%,100%{ box-shadow: 0 0 24px rgba(145,248,141,.26); }
  50%{ box-shadow: 0 0 40px rgba(145,248,141,.42); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .pqpub-anim, .pqpub-btn{ transition:none !important; }
  .pqpub-btn--primary{ animation:none !important; }
}


/* ===== Theme layout isolation (hide site sidebar / expand content) =====
   Applied only on pages that include the hub shortcode / auto-created page.
   Uses broad selectors to work across themes without breaking other pages.
*/
body.pqpub-page #secondary,
body.pqpub-page .sidebar,
body.pqpub-page .site-sidebar,
body.pqpub-page .pq-sidebar,
body.pqpub-page #pq-sidebar,
body.pqpub-page aside.sidebar,
body.pqpub-page aside#secondary,
body.pqpub-page .wp-block-template-part.sidebar,
body.pqpub-page .pq-left,
body.pqpub-page .pq-leftcol,
body.pqpub-page .pq-gutter,
body.pqpub-page .pq-sidebar-wrap,
body.pqpub-page .cse-dashboard,
body.pqpub-page .pq-cse-dashboard{
  display:none !important;
}

body.pqpub-page #primary,
body.pqpub-page .content-area,
body.pqpub-page .site-content,
body.pqpub-page .site-main,
body.pqpub-page main,
body.pqpub-page .wp-site-blocks,
body.pqpub-page .pq-content,
body.pqpub-page .pq-main{
  width:100% !important;
  max-width:none !important;
}

body.pqpub-page .pqpub-fullbleed{
  /* ensure full bleed still works even if theme has overflow hidden wrappers */
  position: relative;
  z-index: 1;
}

/* If your theme uses a left padding to accommodate sidebar, reset it */
body.pqpub-page .site,
body.pqpub-page .site-content,
body.pqpub-page .site-main,
body.pqpub-page #page{
  padding-left:0 !important;
}

/* Avoid weird white gutters from theme wrappers */
body.pqpub-page .entry-content,
body.pqpub-page .wp-block-post-content{
  margin:0 !important;
  max-width:none !important;
}


/* ===== Fit & top spacing fixes ===== */
body.pqpub-page{
  background:#000 !important;
  overflow-x:hidden !important;
}

/* Kill theme white wrappers on this page */
body.pqpub-page #page,
body.pqpub-page .site,
body.pqpub-page .site-content,
body.pqpub-page .content-area,
body.pqpub-page .site-main,
body.pqpub-page main,
body.pqpub-page .wp-site-blocks{
  background:#000 !important;
}

/* Account for WP admin bar / sticky headers */
body.pqpub-page .pqpub-hero{
  padding-top: 92px;
}
body.admin-bar.pqpub-page .pqpub-hero{
  padding-top: 124px; /* 92 + ~32 admin bar */
}
@media (max-width: 782px){
  body.admin-bar.pqpub-page .pqpub-hero{ padding-top: 138px; } /* mobile admin bar ~46 */
}

/* Make the hero headline responsive so it never overflows */
body.pqpub-page .pqpub-h1{
  font-size: clamp(34px, 4.2vw, 52px);
  max-width: 22ch;
}

/* Slightly tighten hero spacing so both columns fit comfortably */
body.pqpub-page .pqpub-hero__grid{
  gap: 18px;
}
body.pqpub-page .pqpub-hero__cards{
  max-width: 560px;
  justify-self:end;
}
@media (max-width: 980px){
  body.pqpub-page .pqpub-hero__cards{ max-width:none; justify-self:stretch; }
}

/* Prevent any theme max-width from clipping fullbleed sections */
body.pqpub-page .pqpub-wrap{
  width:100%;
  max-width:none;
}


/* ===== Kill page title + force black canvas ===== */
html.pqpub-page,
body.pqpub-page{
  background:#000 !important;
}

/* Hide WP/theme page title/header that sits above our hero */
body.pqpub-page .entry-header,
body.pqpub-page header.entry-header,
body.pqpub-page .wp-block-post-title,
body.pqpub-page .entry-title,
body.pqpub-page h1.entry-title,
body.pqpub-page .page-title,
body.pqpub-page h1.page-title{
  display:none !important;
}

/* Nuke remaining white wrappers/gutters some themes inject */
body.pqpub-page #content,
body.pqpub-page #primary,
body.pqpub-page #main,
body.pqpub-page .site-content,
body.pqpub-page .content,
body.pqpub-page .content-wrap,
body.pqpub-page .content-wrapper,
body.pqpub-page .site-inner,
body.pqpub-page .site-container,
body.pqpub-page .container,
body.pqpub-page .wrap{
  background:#000 !important;
}

/* Ensure hero/sections paint black edge-to-edge */
body.pqpub-page .pqpub-hero,
body.pqpub-page .pqpub-section,
body.pqpub-page .pqpub-fullbleed{
  background:#000;
}


/* ===== Harden title hiding =====
   Some themes render the page title in many wrappers; this is a final catch-all.
*/
body.pqpub-page main h1:first-child,
body.pqpub-page main .wp-block-post-title:first-child,
body.pqpub-page .site-main h1:first-child,
body.pqpub-page .site-main .wp-block-post-title:first-child{
  display:none !important;
}


/* ===== Strong theme override for singular white gutters =====
   Your theme Custom CSS forces white backgrounds on body.wp-singular wrappers.
   On Publishers Hub pages, force the canvas back to black with higher specificity.
*/
body.wp-singular.pqpub-page,
body.wp-singular.pqpub-page #page,
body.wp-singular.pqpub-page #content,
body.wp-singular.pqpub-page .pq-container,
body.wp-singular.pqpub-page .pq-app-content,
body.wp-singular.pqpub-page .pq-app{
  background:#000 !important;
}

/* Your layout title is rendered as an empty <h1> inside the article. Hide that slot too. */
body.wp-singular.pqpub-page article > h1:first-child{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  height:0 !important;
}


/* Hidden copy targets */
.pqpub-hidden{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}


/* ==========================================================
   Mobile header responsiveness (Publishers Hub)
   The header markup (.pqpub-topbar/.pqpub-topnav) is output by
   the Publishers Hub minimal page template. On small screens the
   nav items can get squished; this makes the header wrap cleanly
   and gives each item breathing room.
   ========================================================== */

@media (max-width: 520px){
  .pqpub-topbar{
    height:auto !important;
    padding:10px 12px !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    align-items:flex-start !important;
  }

  .pqpub-logo{
    flex: 1 1 100% !important;
    justify-content:flex-start !important;
  }

  .pqpub-topnav{
    width:100% !important;
    justify-content:flex-start !important;
    gap:10px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom:2px !important;
  }
  .pqpub-topnav::-webkit-scrollbar{ display:none; }

  .pqpub-topnav a{
    white-space:nowrap !important;
    font-size:11px !important;
    padding:8px 10px !important;
    border-radius:999px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    line-height:1 !important;
    transform:none !important;
  }

  .pqpub-topnav a.pqpub-topcta{
    background:#91F88D !important;
    border-color: rgba(0,0,0,.25) !important;
    box-shadow:0 0 18px rgba(145,248,141,.28) !important;
  }

  /* Ensure content clears the taller/wrapping header (actual height is measured in JS) */
  .pqpub-wrap{ padding-top: calc(var(--pqpub-topbar-h, 112px) + var(--pqpub-adminbar-h, 0px)) !important; }
}

@media (max-width: 380px){
  .pqpub-wrap{ padding-top: calc(var(--pqpub-topbar-h, 124px) + var(--pqpub-adminbar-h, 0px)) !important; }
}


/* ==========================================================
   Publishers Hub — Sticky header
   Keep the publishers topbar pinned to the top while scrolling.
   Scoped to the publishers page template classes so nothing else changes.
   ========================================================== */

/* Fallback: JS will overwrite this with the exact measured height.
   Without a fallback, some devices briefly (or permanently, if JS is delayed)
   render the hero under the fixed header. */
:root{ --pqpub-topbar-h: 76px; }

body.pqpub-page .pqpub-topbar{
  /* Fixed: stays pinned and doesn't consume layout height */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--pqpub-adminbar-h, 0px) !important;
  z-index: 99999 !important;
}

/* Admin bar offset (logged-in) */
body.pqpub-page{ --pqpub-adminbar-h: 0px; }
body.pqpub-page.admin-bar{ --pqpub-adminbar-h: 32px; }
@media (max-width: 782px){
  body.pqpub-page.admin-bar{ --pqpub-adminbar-h: 46px; }
}

/* Ensure content clears the fixed header on desktop */
body.pqpub-page .pqpub-wrap{
  padding-top: calc(var(--pqpub-topbar-h, 86px) + var(--pqpub-adminbar-h, 0px)) !important;
}

/* ==========================================================
   Publishers Hub — kill any theme “white page” backgrounds
   Your global Customizer CSS forces html/body backgrounds to #fff
   on wp-singular pages. That creates a white band behind the
   header offset/padding. Force this page back to black.
   ========================================================== */
body.pqpub-page,
body.pqpub-page #page,
body.pqpub-page #content,
body.pqpub-page main,
body.pqpub-page .pqpub-wrap{
  background: #000 !important;
  background-image: none !important;
}

/* On small screens the header can wrap; keep the existing padding values and add admin-bar offset */
@media (max-width: 520px){
  body.pqpub-page .pqpub-wrap{ padding-top: calc(112px + var(--pqpub-adminbar-h, 0px)) !important; }
}
@media (max-width: 380px){
  body.pqpub-page .pqpub-wrap{ padding-top: calc(124px + var(--pqpub-adminbar-h, 0px)) !important; }
}

/* IMPORTANT: Do NOT add padding-top on body/html here.
   It creates a visible white band on some themes (body background shows through).
   The correct offset is applied to .pqpub-wrap above. */
html body.pqpub-page{ margin-top:0 !important; }
html body.pqpub-page .pqpub-topbar{ top: var(--pqpub-adminbar-h, 0px) !important; }
