/*
Theme Name: BrandBuilder9000
Theme URI: https://brandbuilder9000.com
Author: Buzz Ur Brand
Author URI: https://buzzurbrand.com
Description: The BrandBuilder9000 theme: a $5/month profile, blog and member network with a homepage you edit in the Customizer, a member dashboard, BuddyPress and Paid Memberships Pro styling, and Google AdSense with house ads. Pair it with the BB9K Members plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bb9k
Tags: custom-logo, custom-menu, featured-images, blog, one-column
*/

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
}

/* ==========================================================================
   BrandBuilder9000 — site styles
   Palette sampled from the Buzz Ur Brand logo: red #ED0505, blue #009CDB.
   Type: Rubik (echoes the rounded, squared letterforms of the parent wordmark).
   ========================================================================== */

:root {
  --bb-red: #ED0505;        /* logo red: marks and large accents */
  --bb-red-btn: #E00A0A;    /* button red (white text 5:1) */
  --bb-red-press: #C20808;
  --bb-blue: #009CDB;       /* logo blue: fills and marks */
  --bb-blue-big: #0088C8;   /* blue for large display text on white */
  --bb-blue-text: #0072B5;  /* blue for links and small text */
  --bb-navy: #0E2238;       /* ink */
  --bb-navy-2: #1B3655;
  --bb-slate: #4B5E73;      /* secondary text */
  --bb-mist: #EEF6FB;       /* tinted surface */
  --bb-line: #D5E2EC;       /* borders */
  --bb-white: #FFFFFF;
  --bb-on-navy: #B8C8D8;    /* muted text on navy */

  --bb-font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bb-container: 1160px;
  --bb-gutter: clamp(16px, 4vw, 40px);
  --bb-section: clamp(64px, 9vw, 120px);
  --bb-r-sm: 6px;
  --bb-r-md: 12px;
  --bb-r-pill: 999px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bb-white);
  color: var(--bb-navy);
  font-family: var(--bb-font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
svg { display: block; }

a { color: var(--bb-blue-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--bb-navy); }

:focus-visible { outline: 3px solid var(--bb-blue-big); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: inherit; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
p { text-wrap: pretty; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--bb-navy); color: #fff; padding: 10px 16px;
  border-radius: var(--bb-r-sm); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--bb-container) + 2 * var(--bb-gutter));
  margin-inline: auto;
  padding-inline: var(--bb-gutter);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--bb-r-pill);
  font: 500 1.0625rem/1.1 var(--bb-font);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 1rem; }
.btn--red { background: var(--bb-red-btn); color: #fff; }
.btn--red:hover { background: var(--bb-red-press); color: #fff; }
.btn--navy { background: var(--bb-navy); color: #fff; }
.btn--navy:hover { background: var(--bb-navy-2); color: #fff; }
.btn--outline { background: transparent; color: var(--bb-navy); border-color: var(--bb-navy); }
.btn--outline:hover { background: var(--bb-navy); color: #fff; }
.btn--white { background: #fff; color: var(--bb-navy); }
.btn--white:hover { background: var(--bb-mist); color: var(--bb-navy); }

.text-link {
  color: var(--bb-blue-text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.text-link:hover { color: var(--bb-navy); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--bb-line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); }
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word { font-weight: 700; font-size: 1.375rem; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.brand__a { color: var(--bb-red); }
.brand__b { color: var(--bb-blue); }
.brand img.custom-logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; gap: 28px; list-style: none; padding: 0; }
.site-nav__list a { color: var(--bb-navy); font-weight: 500; font-size: 1rem; text-decoration: none; padding: 8px 0; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { color: var(--bb-blue-text); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--bb-navy); cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.menu-open .nav-toggle__bars { background: transparent; }
.menu-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--bb-gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--bb-line);
    box-shadow: 0 28px 40px -28px rgba(14, 34, 56, .4);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 15px 0; border-bottom: 1px solid var(--bb-line); font-size: 1.125rem; }
  .site-nav .btn { margin-top: 20px; width: 100%; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; transform: none; }
}

/* ---------- Hero: the address claim ---------- */

.hero { padding-top: clamp(32px, 4.6vw, 68px); overflow: hidden; }

.hero__title {
  font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.5rem);
  line-height: 1.15; letter-spacing: -.012em;
}

.claim { margin-top: 6px; }

.claim__url {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline;
  font-weight: 700;
  font-size: clamp(1.625rem, .55rem + 4.45vw, 3.6rem);
  line-height: 1.12; letter-spacing: -.035em;
}
.claim__input {
  font: inherit; letter-spacing: inherit; line-height: inherit;
  width: 6em; min-width: 1.5em; max-width: 100%;
  margin: 0; padding: 0 0 .02em;
  color: var(--bb-blue-big); caret-color: var(--bb-red);
  background: transparent;
  border: 0; border-bottom: .065em dashed currentColor; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.claim__input::placeholder { color: #6B8AA6; opacity: 1; }
.claim__input:focus { border-bottom-style: solid; }
.claim__input:focus-visible { outline-offset: 8px; }
.claim__domain, .claim__at { color: var(--bb-navy); white-space: nowrap; }
.claim__sizer {
  position: absolute; left: 0; top: 0; height: 0; overflow: hidden; visibility: hidden;
  white-space: pre; font: inherit; letter-spacing: inherit;
}
.claim__help { margin-top: 14px; font-size: .9375rem; color: var(--bb-slate); min-height: 1.6em; }

.hero__lead {
  margin-top: 26px; max-width: 34em;
  font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem); line-height: 1.55;
  color: var(--bb-slate);
}
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.hero__credit {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--bb-slate);
}
.hero__credit a { display: block; }
.hero__credit img { height: 24px; width: auto; }

/* The live preview under the claim */
.stage { margin-top: clamp(36px, 4.6vw, 56px); }
.stage__frame { height: clamp(250px, 39vw, 480px); overflow: hidden; }

/* ---------- Browser frame + template mockups ---------- */

.browser {
  container-type: inline-size;
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-md);
  overflow: hidden;
}
.browser--hero {
  border-bottom: 0;
  border-radius: var(--bb-r-md) var(--bb-r-md) 0 0;
  box-shadow: 0 50px 90px -50px rgba(14, 34, 56, .55);
}
.browser__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: var(--bb-mist); border-bottom: 1px solid var(--bb-line);
}
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #C7D6E3; }
.browser__url {
  flex: 1; min-width: 0;
  padding: 5px 12px;
  background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-r-sm);
  font-size: .875rem; line-height: 1.4; color: var(--bb-slate);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__url b { font-weight: 500; color: var(--bb-navy); }
.browser--sm .browser__bar { gap: 10px; padding: 8px 10px; }
.browser--sm .browser__dots i { width: 7px; height: 7px; }
.browser--sm .browser__url { padding: 2px 8px; font-size: .6875rem; }

/* Mockups are drawn in em, and em follows the frame width, so they scale like a screenshot. */
.mock {
  --m-ink: #1E2B3A;
  --m-bar: #DFE8F0;
  --m-soft: #E7F0F7;
  --m-accent: var(--bb-red-btn);
  font-size: 10px;
  font-size: 1.38cqw;
  color: var(--m-ink);
  background: #fff;
  font-family: var(--bb-font);
}
.mock i, .mock .bar { display: block; height: .7em; border-radius: .35em; background: var(--m-bar); }
.mock__nav {
  display: flex; align-items: center; gap: 1.6em;
  padding: 1.1em 1.75em; border-bottom: 1px solid #EDF2F7;
}
.mock__name { font-weight: 700; font-size: 1.1em; letter-spacing: -.01em; white-space: nowrap; }
.mock__links { display: flex; gap: 1.1em; margin-left: auto; }
.mock__links i { width: 3.4em; height: .55em; }
.mock__btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: .55em 1.15em; border: .12em solid var(--m-ink); border-radius: 999px;
  font-size: .8em; font-weight: 500; line-height: 1.2;
}
.mock__btn--solid { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.mock__btn--white { background: #fff; border-color: #fff; color: var(--m-ink); }
.mock .bar--short { width: 62%; }
.mock .bar--title { height: 1.6em; border-radius: .5em; background: #C9D8E5; }

/* Profile page mockup (hero) */
.mock__top {
  display: flex; align-items: center; gap: 1em;
  padding: 1em 1.75em; border-bottom: 1px solid #EDF2F7;
}
.mock__logo { width: 1.7em; height: 1.7em; border-radius: .45em; background: var(--bb-blue); flex: none; }
.mock .mock__word { width: 7.5em; height: .7em; background: linear-gradient(90deg, #F2A6A6 0 72%, #9ED6EF 72% 100%); }
.mock__profile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4em; align-items: center;
  padding: 2.6em 1.75em 2.4em;
}
.mock__avatar {
  position: relative; overflow: hidden;
  width: 10.5em; height: 10.5em; border-radius: 50%;
  background: #D9E9F5; box-shadow: 0 0 0 .4em #fff, 0 0 0 .5em var(--bb-line);
}
.mock__head, .mock__body { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #A7C6DD; }
.mock__head { top: 20%; width: 36%; aspect-ratio: 1; }
.mock__body { bottom: -42%; width: 86%; aspect-ratio: 1; }
.mock__title { margin: 0 0 .3em; font-weight: 700; font-size: 3.2em; line-height: 1.02; letter-spacing: -.035em; }
.mock__who .bar { width: 46%; }
.mock__pills { display: flex; flex-wrap: wrap; gap: .7em; margin-top: 1.5em; }
.mock__pill {
  padding: .55em 1.15em; border-radius: 999px;
  background: var(--m-soft); color: var(--m-ink);
  font-size: .85em; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.mock__pill--red { background: var(--bb-red-btn); color: #fff; }
.mock__posts { padding: 0 1.75em 2.6em; }
.mock__label { margin-bottom: 1em; font-weight: 700; font-size: 1.15em; }
.mock__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4em; }
.mock__post span { display: block; aspect-ratio: 16 / 10; margin-bottom: .9em; border-radius: .7em; background: var(--m-soft); }
.mock__post i + i { margin-top: .55em; }
.mock__post i:nth-child(3) { width: 70%; }
.mock__post i:last-child { width: 34%; height: .5em; background: #ECF1F5; }

/* Dashboard mockup (network section) */
.mock--dash { background: #F4F8FB; }
.mock--dash .mock__top { background: #fff; }
.mock__bell {
  position: relative; width: 1.6em; height: 1.6em; border-radius: .5em; border: .18em solid var(--m-ink);
}
.mock__bell b {
  position: absolute; top: -.75em; right: -.85em;
  display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%;
  background: var(--bb-red-btn); color: #fff; font-size: .75em; font-weight: 700;
}
.mock__me {
  display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  background: var(--bb-navy); color: #fff; font-size: .8em; font-weight: 700;
}
.mock__dash { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.4em; padding: 1.6em; }
.mock__main, .mock__side { display: grid; gap: 1.4em; align-content: start; }
.mock__panel { padding: 1.4em; border-radius: .9em; background: #fff; box-shadow: 0 0 0 1px #E3ECF3; }
.mock__panel--welcome { background: var(--bb-navy); box-shadow: none; color: #fff; }
.mock__panel--welcome .bar { background: rgba(255, 255, 255, .25); margin-top: .7em; }
.mock__hello { font-weight: 700; font-size: 1.45em; line-height: 1.15; letter-spacing: -.02em; }
.mock__meter { margin-top: 1.2em; height: .55em; border-radius: 1em; background: rgba(255, 255, 255, .18); overflow: hidden; }
.mock__meter span { display: block; width: 70%; height: 100%; background: var(--bb-blue); }
.mock__chips { display: flex; flex-wrap: wrap; gap: .6em; margin-top: 1.2em; }
.mock__chips span { padding: .4em .9em; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8em; font-weight: 500; white-space: nowrap; }
.mock__h { margin-bottom: .9em; font-weight: 700; font-size: 1.05em; }
.mock__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9em; align-items: center; }
.mock__row + .mock__row { margin-top: .95em; }
.mock__row i + i { margin-top: .45em; }
.mock__av {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  color: #fff; font-size: .78em; font-weight: 700;
}
.mock__av--b { background: var(--bb-blue); color: var(--bb-navy); }
.mock__av--r { background: var(--bb-red-btn); }
.mock__av--n { background: var(--bb-navy); }
.mock__dot { width: .65em; height: .65em; border-radius: 50%; background: var(--bb-red-btn); }
.mock__actions { display: flex; gap: .6em; margin-top: 1em; padding-left: 3.5em; }

/* Build-in sequence for the hero preview (one orchestrated moment on load) */
.js [data-build] { opacity: 0; transform: translateY(.7em); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js [data-build].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-build] { transition: none; transform: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--bb-section); }
.section--mist { background: var(--bb-mist); --bb-ring: var(--bb-mist); }
.section__head { max-width: 42rem; }
.section__title { font-size: clamp(2rem, 1.45rem + 2vw, 3rem); }
.section__lead { margin-top: 18px; max-width: 36em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--bb-slate); }

/* How it works: numbered steps */
.steps {
  position: relative;
  list-style: none; padding: 0;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px;
}
.steps::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: 22px;
  height: 2px; background: #C5D7E6;
}
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bb-red-btn); color: #fff;
  font-weight: 700; font-size: 1.125rem; line-height: 1;
  box-shadow: 0 0 0 7px var(--bb-ring, #fff);
}
.step__title { margin-top: 24px; font-size: 1.375rem; line-height: 1.2; }
.step p { margin-top: 10px; font-size: 1.0625rem; color: var(--bb-slate); }

@media (max-width: 960px) {
  .steps:not(.steps--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps:not(.steps--3)::before { display: none; }
}
@media (max-width: 760px) {
  .steps--3 { grid-template-columns: 1fr; gap: 32px; }
  .steps--3::before { display: block; top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .steps--3 .step { padding-left: 66px; }
  .steps--3 .step__num { position: absolute; left: 0; top: -2px; }
  .steps--3 .step__title { margin-top: 6px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: block; top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .step { padding-left: 66px; }
  .step__num { position: absolute; left: 0; top: -2px; }
  .step__title { margin-top: 6px; }
}

/* Feature grid */
.features {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px;
  margin-top: clamp(40px, 5vw, 60px);
}
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; }
.feature__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bb-mist); color: var(--bb-blue-text);
}
.section--mist .feature__icon { background: #fff; box-shadow: 0 0 0 1px var(--bb-line); }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { margin-top: 18px; font-size: 1.1875rem; line-height: 1.25; }
.feature p { margin-top: 8px; font-size: 1.0625rem; color: var(--bb-slate); }
@media (max-width: 1000px) { .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features, .features--4 { grid-template-columns: 1fr; gap: 34px; } }

/* Text + visual split */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.split--flip .split__visual { order: -1; }
.split__text .section__lead { max-width: 30em; }
.split__text, .split__visual { min-width: 0; }
.browser--float { box-shadow: 0 40px 80px -48px rgba(14, 34, 56, .55); }
.split__visual .mock { font-size: 1.95cqw; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__visual { order: 0; }
}

.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 1.0625rem; line-height: 1.5; color: var(--bb-slate); }
.checks li b { color: var(--bb-navy); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230E2238' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.fineprint { margin-top: 22px; font-size: .9375rem; color: var(--bb-slate); }

/* Structured-data card */
.code-card { margin: 0; border-radius: var(--bb-r-md); background: var(--bb-navy); color: #E6EEF5; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(14, 34, 56, .7); }
.code-card__cap { padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .9375rem; font-weight: 500; color: #fff; }
.code-card__code {
  margin: 0; padding: 22px 20px 26px; overflow-x: auto;
  font: 400 .9375rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}
.code-card .k { color: #8FD3F4; }
.code-card .s { color: #FFB4B4; }
.code-card .s .js-slug, .code-card .s .js-name { color: #fff; }
@media (max-width: 600px) { .code-card__code { font-size: .8125rem; } }

/* Section call to action */
.section__cta { margin-top: clamp(36px, 4vw, 52px); }

/* Ad slots: AdSense or a Buzz Ur Brand house ad */
.ad-slot { margin-block: clamp(40px, 5vw, 64px); }
.ad-slot__label { margin-bottom: 8px; font-size: .8125rem; color: var(--bb-slate); }
.ad-slot ins.adsbygoogle { display: block; min-height: 90px; }
.house-ad {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 28px 30px; border-radius: var(--bb-r-md);
  background: var(--bb-blue); color: var(--bb-navy);
}
.house-ad__text { flex: 1 1 28em; }
.house-ad__title { font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.2; letter-spacing: -.015em; }
.house-ad__text p + p { margin-top: 8px; font-size: 1.0625rem; }
.house-ad--compact { padding: 22px; }
.house-ad--compact .house-ad__text { flex-basis: 100%; }

/* Upsell band */
.more__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 64px; }
.more .section__lead { max-width: 38em; }

/* Closing call to action */
.final__url {
  margin-top: 16px;
  display: flex; flex-wrap: wrap;
  font-weight: 700; font-size: clamp(1.5rem, .8rem + 3vw, 3rem);
  line-height: 1.12; letter-spacing: -.035em;
}
.final__url > span { white-space: nowrap; }
.final__url .js-slug { white-space: normal; overflow-wrap: anywhere; }
.final__url .js-slug { color: var(--bb-blue-big); }
.final__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.final__login { font-size: 1rem; color: var(--bb-slate); }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 32px; background: var(--bb-navy); color: var(--bb-on-navy); font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer__about { margin-top: 18px; max-width: 27em; }
.footer__heading { margin-bottom: 14px; font-size: 1rem; font-weight: 500; color: #fff; letter-spacing: 0; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: .875rem;
}
.footer__base-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .claim__url { font-size: min(calc(8.6vw - 2.6px), 2.5rem); }
  .brand__word { font-size: 1.25rem; }
  .brand__mark { width: 30px; height: 30px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stage__frame { height: clamp(220px, 64vw, 300px); }
  .browser--hero .mock { font-size: 2.3cqw; }
  .browser--hero .mock__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser--hero .mock__post:nth-child(3) { display: none; }
  .browser--hero .mock__pill:nth-child(n+3) { display: none; }
  .split__visual .mock { font-size: 2.6cqw; }
}

/* ==========================================================================
   BrandBuilder9000 — member dashboard (logged-in app screens)
   Uses the tokens, header and buttons from site.css.
   ========================================================================== */

.app { background: #F4F8FB; min-height: 100vh; }

/* Member header */
.app-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; margin-left: 28px; }
.app-nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--bb-r-pill);
  color: var(--bb-navy); font-size: 1rem; font-weight: 500; text-decoration: none;
}
.app-nav__link:hover { background: var(--bb-mist); color: var(--bb-navy); }
.app-nav__link[aria-current="page"] { background: var(--bb-mist); color: var(--bb-blue-text); }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--bb-red-btn); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1;
}
.app-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; display: none; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--bb-navy); text-decoration: none;
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: .6875rem; }

/* Avatars: photo when there is one, initials when there isn't */
.bb-avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--bb-navy); color: #fff; font-weight: 700; font-size: .9375rem; line-height: 1;
}
.bb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bb-avatar--sm { width: 38px; height: 38px; font-size: .8125rem; }
.bb-avatar--red { background: var(--bb-red-btn); }
.bb-avatar--blue { background: var(--bb-blue); color: var(--bb-navy); }
.bb-avatar-btn { border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Layout */
.dash { padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 7vw, 88px); }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dash__col { display: grid; gap: 24px; }

.dcard { padding: 26px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #E1EAF2; }
.dcard__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dcard__head h2 { font-size: 1.125rem; letter-spacing: -.01em; }
.dcard__head a:not(.btn) { font-size: .9375rem; font-weight: 500; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--bb-mist); color: var(--bb-navy); font-size: .875rem; font-weight: 700; }

/* Welcome card */
.dcard--welcome { background: var(--bb-navy); box-shadow: none; color: #fff; }
.welcome__hi { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.welcome__link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.welcome__url { font-size: 1rem; color: var(--bb-on-navy); overflow-wrap: anywhere; }
.welcome__url b { color: #fff; font-weight: 500; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent;
  color: #fff; font: 500 .875rem/1 var(--bb-font); cursor: pointer;
}
.chip-btn:hover { background: rgba(255, 255, 255, .1); }
.dcard--welcome a { color: #fff; }
.welcome__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.welcome__stats a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: var(--bb-on-navy); font-size: .9375rem; text-decoration: none;
}
.welcome__stats a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.welcome__stats b { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

.strength { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.strength__head { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--bb-on-navy); }
.strength__head b { color: #fff; }
.strength__bar { margin-top: 10px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.strength__bar span { display: block; height: 100%; border-radius: 99px; background: var(--bb-blue); }
.strength__todo { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.strength__todo a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: #fff; color: var(--bb-navy); font-size: .875rem; font-weight: 500; text-decoration: none;
}
.strength__todo a::before { content: "+"; font-weight: 700; color: var(--bb-red-btn); }
.strength__note { margin-top: 14px; font-size: .875rem; color: var(--bb-on-navy); }

/* Your posts */
.postlist { list-style: none; padding: 0; }
.postlist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--bb-line); }
.postlist li:first-child { border-top: 0; padding-top: 0; }
.postlist__title { color: var(--bb-navy); font-weight: 500; text-decoration: none; }
.postlist__title:hover { color: var(--bb-blue-text); }
.postlist__meta { margin-top: 3px; font-size: .875rem; color: var(--bb-slate); }
.status { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 500; vertical-align: 1px; }
.status--live { background: #E3F4EA; color: #17643A; }
.status--draft { background: #FFF1D6; color: #7A4B00; }
.postlist__actions { display: flex; gap: 14px; flex: none; font-size: .9375rem; font-weight: 500; }

/* From your network */
.feed { display: grid; gap: 18px; }
.feed__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.feed__who { font-size: .9375rem; color: var(--bb-slate); }
.feed__who b { color: var(--bb-navy); font-weight: 500; }
.feed__title { display: block; margin-top: 2px; font-weight: 500; color: var(--bb-navy); text-decoration: none; line-height: 1.35; }
.feed__title:hover { color: var(--bb-blue-text); }
.feed__meta { margin-top: 4px; font-size: .8125rem; color: var(--bb-slate); }

/* Messages */
.threads { list-style: none; padding: 0; display: grid; gap: 4px; }
.thread { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px; color: inherit; text-decoration: none; }
.thread:hover { background: var(--bb-mist); color: inherit; }
.thread__top { display: flex; justify-content: space-between; gap: 10px; }
.thread__name { font-weight: 500; color: var(--bb-navy); }
.thread__time { flex: none; font-size: .8125rem; color: var(--bb-slate); }
.thread__text { display: block; margin-top: 2px; font-size: .9375rem; color: var(--bb-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.is-unread .thread__name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--bb-red-btn); vertical-align: 2px; }
.thread.is-unread .thread__text { color: var(--bb-navy); }

/* People: requests and suggestions */
.people { list-style: none; padding: 0; display: grid; gap: 16px; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.person__name { font-weight: 500; color: var(--bb-navy); text-decoration: none; }
.person__name:hover { color: var(--bb-blue-text); }
.person__what { font-size: .875rem; color: var(--bb-slate); line-height: 1.4; }
.person__actions { display: flex; gap: 8px; }
.person--request { grid-template-columns: auto minmax(0, 1fr); }
.person--request .person__actions { grid-column: 2; }
.btn--xs { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--ghost { background: transparent; color: var(--bb-navy); border-color: var(--bb-line); }
.btn--ghost:hover { border-color: var(--bb-navy); color: var(--bb-navy); }
.btn--done { background: #E3F4EA; color: #17643A; cursor: default; }
.btn--done:hover { background: #E3F4EA; color: #17643A; }
.people__why { margin-top: 16px; font-size: .8125rem; color: var(--bb-slate); }

.dcard--quiet h2 { font-size: 1.125rem; }
.dcard--quiet p { margin-top: 6px; font-size: .9375rem; color: var(--bb-slate); }
.dcard--quiet .text-link { display: inline-block; margin-top: 12px; font-size: .9375rem; }

/* Bottom tab bar on phones */
.tabbar { display: none; }

@media (max-width: 960px) {
  .app-nav { display: none; }
  .app-actions .btn { display: none; }
  .icon-btn { display: inline-grid; }
  .dash__grid { grid-template-columns: minmax(0, 1fr); }
  .dash__col { display: contents; }
  .dcard--welcome { order: 1; }
  .dcard--messages { order: 2; }
  .dcard--requests { order: 3; }
  .dcard--posts { order: 4; }
  .dcard--feed { order: 5; }
  .dcard--people { order: 6; }
  .dcard--quiet { order: 7; }
}
@media (max-width: 760px) {
  .app { padding-bottom: 84px; }
  .dcard { padding: 20px; border-radius: 14px; }
  .dash__grid, .dash__col { gap: 16px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--bb-line);
  }
  .tabbar a {
    position: relative; display: grid; justify-items: center; gap: 3px;
    padding: 4px 0; color: var(--bb-slate); font-size: .6875rem; font-weight: 500; text-decoration: none;
  }
  .tabbar a[aria-current="page"] { color: var(--bb-blue-text); }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .badge { position: absolute; top: 0; left: 52%; min-width: 17px; height: 17px; font-size: .625rem; }
  .tabbar__write span {
    display: grid; place-items: center; width: 50px; height: 50px; margin-top: -22px;
    border-radius: 50%; background: var(--bb-red-btn); color: #fff;
    box-shadow: 0 10px 20px -8px rgba(224, 10, 10, .6);
  }
  .tabbar__write { color: var(--bb-navy) !important; }
  .postlist li { flex-wrap: wrap; }
}

.preview-note { padding: 8px 16px; background: #FFF1D6; color: #5C3900; font-size: .875rem; text-align: center; }

/* ---------- WordPress: pages, blog, forms, BuddyPress, Paid Memberships Pro ---------- */

/* Member account menu */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  width: 250px; padding: 10px; border-radius: 14px;
  background: #fff; box-shadow: 0 0 0 1px var(--bb-line), 0 24px 48px -24px rgba(14, 34, 56, .45);
}
.me-menu__name { padding: 8px 12px 10px; border-bottom: 1px solid var(--bb-line); margin-bottom: 6px; font-weight: 700; }
.me-menu__name span { display: block; font-size: .8125rem; font-weight: 400; color: var(--bb-slate); overflow-wrap: anywhere; }
.me-menu__panel a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--bb-navy); font-size: .9375rem; text-decoration: none; }
.me-menu__panel a:hover { background: var(--bb-mist); }
.app-nav__link .badge, .icon-btn .badge { pointer-events: none; }

/* Page and archive headers */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); }
.page-head__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.page-head__lead { margin-top: 14px; max-width: 38em; font-size: 1.1875rem; color: var(--bb-slate); }
.page-head__lead p { margin: 0; }
.page-body { padding-bottom: var(--bb-section); }

/* Readable content */
.prose { max-width: 720px; font-size: 1.125rem; line-height: 1.7; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.75rem; line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 1.375rem; line-height: 1.25; }
.prose h4 { margin-top: 1.4em; font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--bb-red); font-size: 1.1875rem; color: var(--bb-navy); }
.prose img { border-radius: 10px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text, .wp-element-caption { margin-top: .5em; font-size: .875rem; color: var(--bb-slate); text-align: center; }
.prose hr, .wp-block-separator { border: 0; border-top: 1px solid var(--bb-line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .6em .7em; border-bottom: 1px solid var(--bb-line); text-align: left; }
.prose code { padding: .1em .35em; border-radius: 4px; background: var(--bb-mist); font-size: .9em; }
.prose pre { padding: 1em; border-radius: 10px; background: var(--bb-navy); color: #E6EEF5; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose a { font-weight: 500; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100%; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-button__link, .prose .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: var(--bb-r-pill);
  background: var(--bb-red-btn); color: #fff; font-weight: 500; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--bb-red-press); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--bb-navy); border: 2px solid var(--bb-navy); }
.has-bb-red-color { color: var(--bb-red-btn); } .has-bb-red-background-color { background-color: var(--bb-red-btn); }
.has-bb-blue-color { color: var(--bb-blue-text); } .has-bb-blue-background-color { background-color: var(--bb-blue); }
.has-bb-navy-color { color: var(--bb-navy); } .has-bb-navy-background-color { background-color: var(--bb-navy); }
.has-bb-mist-color { color: var(--bb-mist); } .has-bb-mist-background-color { background-color: var(--bb-mist); }
.has-bb-white-color { color: #fff; } .has-bb-white-background-color { background-color: #fff; }
.sticky, .bypostauthor, .gallery-caption { /* WordPress core classes */ }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; margin: 0; }

/* Forms (WordPress, Paid Memberships Pro, comments). :where() keeps these at zero specificity so components win. */
:where(.site-main) :where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], select, textarea) {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #B9CCDC; border-radius: 10px; background: #fff; color: var(--bb-navy);
  font: 400 1rem/1.4 var(--bb-font);
}
:where(.site-main) textarea { min-height: 140px; }
:where(.site-main) :where(input, select, textarea):focus { outline: 3px solid rgba(0, 136, 200, .35); outline-offset: 0; border-color: var(--bb-blue-big); }
:where(.site-main) label { font-weight: 500; }
:where(.site-main) :where(input[type="submit"], button[type="submit"]:not(.btn), .button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border: 0; border-radius: var(--bb-r-pill); background: var(--bb-red-btn); color: #fff;
  font: 500 1rem/1 var(--bb-font); cursor: pointer; text-decoration: none;
}
:where(.site-main) :where(input[type="submit"], button[type="submit"]:not(.btn), .button):hover { background: var(--bb-red-press); color: #fff; }

.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form label { flex: 1; }

/* Notices */
.notice-bar { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: #E3F4EA; color: #17643A; font-weight: 500; }
.notice-bar--error { background: #FDE7E7; color: #8A1111; }
.notice-bar a { color: inherit; }

/* Blog listing */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.post-grid > .ad-slot { grid-column: 1 / -1; margin: 0; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--bb-mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: grid; place-items: center; }
.card__media--empty span { font-weight: 700; font-size: 2.5rem; color: #B9CCDC; letter-spacing: -.03em; }
.card__cat { margin-top: 18px; font-size: .875rem; font-weight: 500; color: var(--bb-blue-text); }
.card__title { margin-top: 6px; font-size: 1.3125rem; line-height: 1.25; }
.card__title a { color: var(--bb-navy); text-decoration: none; }
.card__title a:hover { color: var(--bb-blue-text); }
.card__excerpt { margin-top: 10px; font-size: 1rem; color: var(--bb-slate); }
.card__by { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--bb-slate); }
.card__by a { color: var(--bb-navy); font-weight: 500; text-decoration: none; }
.card__by .bb-avatar { width: 32px; height: 32px; font-size: .75rem; }
.empty-state { padding: 48px 0; }
.empty-state p { margin-top: 10px; color: var(--bb-slate); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.pagination, .nav-links { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: var(--bb-r-pill); border: 1px solid var(--bb-line); color: var(--bb-navy); text-decoration: none; font-weight: 500;
}
.page-numbers.current { background: var(--bb-navy); border-color: var(--bb-navy); color: #fff; }
a.page-numbers:hover { border-color: var(--bb-navy); }

/* Single post */
.entry { padding: clamp(36px, 5vw, 64px) 0 var(--bb-section); }
.entry__head { max-width: 820px; }
.entry__cat { font-size: .9375rem; font-weight: 500; }
.entry__title { margin-top: 10px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.1; }
.entry__meta { margin-top: 20px; display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--bb-slate); }
.entry__meta a { color: var(--bb-navy); font-weight: 500; text-decoration: none; }
.entry__thumb { margin: clamp(28px, 4vw, 44px) 0 0; }
.entry__thumb img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 16px; }
.entry__body { margin-top: clamp(28px, 4vw, 44px); }
.entry__tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { padding: 6px 12px; border-radius: 99px; background: var(--bb-mist); color: var(--bb-navy); font-size: .875rem; text-decoration: none; }
.entry__after { max-width: 720px; }
.entry__after .ad-slot { margin-block: 36px; }

.author-box { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: 16px; background: var(--bb-mist); }
.author-box .bb-avatar { width: 64px; height: 64px; font-size: 1.125rem; }
.author-box__name { font-size: 1.125rem; }
.author-box__name a { color: var(--bb-navy); text-decoration: none; }
.author-box__headline { margin-top: 2px; font-size: .9375rem; color: var(--bb-slate); }
.author-box__bio { margin-top: 10px; font-size: 1rem; color: var(--bb-slate); }
.author-box__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9375rem; }

.post-cta { margin-top: 32px; padding: 28px; border-radius: 16px; background: var(--bb-navy); color: #fff; }
.post-cta__title { font-size: 1.375rem; line-height: 1.2; }
.post-cta p { margin-top: 8px; color: var(--bb-on-navy); }
.post-cta .btn { margin-top: 18px; }

.post-nav { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px; border: 1px solid var(--bb-line); border-radius: 12px; color: var(--bb-navy); text-decoration: none; }
.post-nav a:hover { border-color: var(--bb-navy); }
.post-nav span { display: block; font-size: .8125rem; color: var(--bb-slate); }
.post-nav .post-nav__next { text-align: right; grid-column: 2; }

/* Comments */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--bb-line); }
.comments__title { font-size: 1.375rem; }
.comment-list { list-style: none; padding: 0; margin: 24px 0 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--bb-line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; color: var(--bb-slate); }
.comment-meta img.avatar { width: 36px; height: 36px; }
.comment-author .fn { font-weight: 500; color: var(--bb-navy); font-style: normal; }
.comment-content { margin-top: 10px; }
.comment-respond { margin-top: 32px; }
.comment-form > p { margin-top: 16px; }
.comment-form label { display: block; margin-bottom: 6px; }

/* 404 */
.not-found { padding: clamp(56px, 8vw, 120px) 0; }
.not-found .search-form { margin-top: 28px; }
.not-found__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* Member profile (BuddyPress) */
.bp-page { padding: clamp(28px, 4vw, 48px) 0 var(--bb-section); }
.bp-page__title { margin-bottom: 24px; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
#buddypress.buddypress-wrap { font-family: var(--bb-font); color: var(--bb-navy); }
#buddypress #item-header.users-header { display: block; margin-bottom: 0; padding: 0; }
.profile-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  padding: clamp(24px, 3vw, 36px); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E1EAF2;
}
.profile-head__avatar img, .profile-head__avatar .bb-avatar {
  width: clamp(104px, 14vw, 156px) !important; height: clamp(104px, 14vw, 156px) !important;
  border-radius: 50% !important; font-size: 2.25rem; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--bb-line);
}
.profile-head__name { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; }
.profile-head__handle { margin-top: 8px; font-size: .9375rem; color: var(--bb-slate); overflow-wrap: anywhere; }
.profile-head__handle b { color: var(--bb-blue-text); font-weight: 500; }
.profile-head__headline { margin-top: 10px; font-size: 1.1875rem; color: var(--bb-navy); }
.profile-head__meta { margin-top: 4px; font-size: 1rem; color: var(--bb-slate); }
.pill-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-links a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--bb-r-pill);
  background: var(--bb-mist); color: var(--bb-navy); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.pill-links a:hover { background: #DDEBF5; }
#buddypress .member-header-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
#buddypress .member-header-actions .generic-button { margin: 0; }
#buddypress .generic-button a, #buddypress .generic-button button, #buddypress .button, #buddypress button, #buddypress input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 2px solid var(--bb-navy); border-radius: var(--bb-r-pill); background: #fff; color: var(--bb-navy);
  font: 500 .9375rem/1 var(--bb-font); text-decoration: none; cursor: pointer; box-shadow: none;
}
#buddypress .generic-button a:hover, #buddypress .generic-button button:hover, #buddypress .button:hover { background: var(--bb-navy); color: #fff; }
#buddypress .friendship-button.not_friends, #buddypress .friendship-button.add,
#buddypress input[type="submit"], #buddypress button[type="submit"], #buddypress .button.primary {
  background: var(--bb-red-btn); border-color: var(--bb-red-btn); color: #fff;
}
#buddypress .friendship-button.not_friends:hover, #buddypress input[type="submit"]:hover { background: var(--bb-red-press); border-color: var(--bb-red-press); color: #fff; }
#buddypress .bp-navs { margin: 24px 0; background: transparent; }
/* BuddyPress's own "priority nav" rules are very specific, so these match them selector for selector. */
#buddypress.buddypress-wrap .bp-navs ul,
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items,
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items { display: flex; flex-wrap: wrap; gap: 6px; }
#buddypress.buddypress-wrap .bp-navs ul > li,
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items > li,
#buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items > li { display: block; float: none; background: transparent; }
#buddypress.buddypress-wrap .single-screen-navs, #buddypress.buddypress-wrap .single-screen-navs li { border: 0; }
#buddypress .bp-navs ul li a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--bb-r-pill);
  color: var(--bb-navy); font-weight: 500; text-decoration: none; background: transparent;
}
#buddypress .bp-navs ul li a:hover { background: #fff; }
#buddypress .bp-navs ul li.selected a, #buddypress .bp-navs ul li.current a { background: var(--bb-navy); color: #fff; }
#buddypress .bp-navs ul li .count { background: var(--bb-red-btn); color: #fff; border: 0; border-radius: 99px; padding: 2px 7px; font-size: .75rem; }
#buddypress .bp-subnavs { margin-top: 0; }
#buddypress #item-body { padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E1EAF2; }
#buddypress .bp-feedback { border-radius: 12px; box-shadow: none; border: 1px solid var(--bb-line); }
#buddypress input[type="text"], #buddypress input[type="email"], #buddypress input[type="url"], #buddypress input[type="password"],
#buddypress input[type="search"], #buddypress textarea, #buddypress select {
  min-height: 46px; padding: 10px 14px; border: 1px solid #B9CCDC; border-radius: 10px; background: #fff;
  color: var(--bb-navy); font: 400 1rem/1.4 var(--bb-font); box-shadow: none;
}
#buddypress .standard-form label, #buddypress .standard-form legend { font-weight: 500; color: var(--bb-navy); }
#buddypress .profile-fields td.label { width: 32%; color: var(--bb-slate); font-weight: 500; }
#buddypress table.profile-fields tr td, #buddypress table.notifications tr td, #buddypress table.notifications tr th { border-color: var(--bb-line); padding: 12px 10px; background: transparent; }

/* Member directory cards */
#buddypress .bp-list { border-top: 0; padding: 0; }
#buddypress #members-list.grid > li, #buddypress #members-list > li { border: 0; }
#buddypress .members-list.grid > li .list-wrap, #buddypress #members-list li .list-wrap {
  border-radius: 16px; border: 0; background: #fff; box-shadow: 0 0 0 1px #E1EAF2;
}
#buddypress .members-list .list-title a, #buddypress #members-list .list-title a { color: var(--bb-navy); font-weight: 700; text-decoration: none; }
#buddypress .members-list .item-avatar img { border-radius: 50%; }
#buddypress .dir-search input[type="search"] { min-height: 46px; }
#buddypress .subnav-filters { margin: 18px 0; }

/* Profile home tab */
.profile-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(24px, 4vw, 48px); }
.profile-home h2 { font-size: 1.25rem; margin-bottom: 14px; }
.profile-about__bio { font-size: 1.0625rem; color: var(--bb-navy); }
.profile-about__bio p + p { margin-top: .9em; }
.profile-facts { margin-top: 18px; display: grid; gap: 10px; }
.profile-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; font-size: .9375rem; }
.profile-facts dt { color: var(--bb-slate); }
.profile-facts dd { margin: 0; font-weight: 500; }
.profile-posts .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 860px) { .profile-home { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .profile-head { grid-template-columns: 1fr; text-align: left; }
  .profile-posts .post-grid { grid-template-columns: 1fr; }
}

/* Member editor (dashboard: write a post) */
.editor { display: grid; gap: 22px; }
.editor__field label, .editor__label { display: block; margin-bottom: 8px; font-weight: 500; }
.editor__title input { font-size: 1.375rem !important; font-weight: 700 !important; min-height: 58px !important; }
.editor__thumb { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.editor__thumb img { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.editor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.editor__delete { margin-left: auto; color: #8A1111; font-weight: 500; }
.wp-editor-wrap { border-radius: 10px; }
.wp-editor-container { border-color: #B9CCDC !important; }
.dash .back-link { display: inline-block; margin-bottom: 16px; font-weight: 500; }

/* Paid Memberships Pro: use the brand palette */
body {
  --pmpro--color--accent: #E00A0A;
  --pmpro--color--contrast: #0E2238;
  --pmpro--color--border: #B9CCDC;
  --pmpro--color--base: #FFFFFF;
}
.pmpro .pmpro_btn, .pmpro_btn, .pmpro_content_message a.pmpro_btn { border-radius: var(--bb-r-pill) !important; font-family: var(--bb-font) !important; font-weight: 500 !important; }
.pmpro_card { border-radius: 16px !important; }

/* Embeds */
.wp-block-embed iframe, .prose iframe { max-width: 100%; }

/* BuddyPress: avatars, directory rows and message lists */
#buddypress img.avatar { border-radius: 50%; }
#buddypress #members-list li .list-wrap { display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
#buddypress #members-list li .item-avatar { flex: none; width: 64px; margin: 0; padding: 0; float: none; }
#buddypress #members-list li .item-avatar img { width: 64px; height: 64px; max-width: none; margin: 0; }
#buddypress #members-list li .item { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; float: none; width: auto; }
#buddypress #members-list li .item-block { min-width: 0; margin: 0; }
#buddypress #members-list li .list-title { font-size: 1.1875rem; margin: 0; }
#buddypress #members-list li .item-meta { margin: 2px 0 0; font-size: .8125rem; color: var(--bb-slate); }
#buddypress #members-list li .bb9k-dir-line { margin-top: 4px; font-size: .9375rem; }
#buddypress #members-list li .members-action-buttons, #buddypress #members-list li .action { margin: 0; }
#buddypress .thread-avatar img, #buddypress .message-lists .avatar, #buddypress #message-threads .avatar { width: 48px !important; height: 48px !important; }
#buddypress .thread-participants img.avatar, #buddypress .participants-list img.avatar { width: 28px !important; height: 28px !important; }
#buddypress #message-threads li { border-radius: 12px; }
#buddypress #message-threads li.unread { background: var(--bb-mist); }
@media (max-width: 600px) {
  #buddypress #members-list li .list-wrap { align-items: flex-start; }
  #buddypress #members-list li .item-avatar, #buddypress #members-list li .item-avatar img { width: 52px; height: 52px; }
}
/* Phones: profile tabs stay on one line and scroll sideways. */
@media (max-width: 700px) {
  #buddypress.buddypress-wrap .bp-navs ul,
  #buddypress.buddypress-wrap .bp-navs ul.bp-priority-object-nav-nav-items,
  #buddypress.buddypress-wrap .bp-navs ul.bp-priority-subnav-nav-items { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  #buddypress.buddypress-wrap .bp-navs ul::-webkit-scrollbar { display: none; }
  #buddypress.buddypress-wrap .bp-navs ul > li { flex: none; }
  #buddypress.buddypress-wrap .bp-navs ul li a { white-space: nowrap; }
}

/* Logged-in hero: show the member's own address */
.claim__url--mine { margin-top: 6px; }
.claim__input--static { display: inline; width: auto; border-bottom-style: solid; }
