/* BigBears Money Page v2 — high-intent template/content pages */
:root {
  --bb-ink: #0f172a;
  --bb-muted: #475569;
  --bb-line: rgba(15, 23, 42, 0.10);
  --bb-card: rgba(255, 255, 255, 0.92);
  --bb-blue: #2563eb;
  --bb-cyan: #06b6d4;
  --bb-green: #10b981;
  --bb-amber: #f59e0b;
  --bb-radius-xl: 30px;
  --bb-radius-lg: 22px;
  --bb-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --bb-soft-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

body.single-post:has(.bb-money-page) {
  color: var(--bb-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.14), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fb 42%, #ffffff 100%);
  font-feature-settings: "kern", "liga";
}

body.single-post:has(.bb-money-page) .wp-site-blocks {
  overflow-x: clip;
}

body.single-post:has(.bb-money-page) header.wp-block-template-part {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

body.single-post:has(.bb-money-page) main#wp--skip-link--target {
  padding-top: clamp(1.5rem, 3vw, 3.2rem);
}

body.single-post:has(.bb-money-page) main .wp-block-columns {
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  max-width: 1180px;
}

body.single-post:has(.bb-money-page) main .wp-block-column:first-child {
  min-width: 0;
}

body.single-post:has(.bb-money-page) .wp-block-post-terms a,
body.single-post:has(.bb-money-page) .taxonomy-category a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .78rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.single-post:has(.bb-money-page) h1.wp-block-post-title {
  max-width: 820px;
  margin-inline: auto;
  color: var(--bb-ink);
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: .98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

body.single-post:has(.bb-money-page) h1.wp-block-post-title::after {
  content: "Copy-ready freelance template · scope control · client operations";
  display: block;
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--bb-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.45;
}

body.single-post:has(.bb-money-page) .wp-block-post-content {
  margin-top: 2.2rem;
}

body.single-post:has(.bb-money-page) .bb-money-page {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--bb-radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--bb-shadow);
}

body.single-post:has(.bb-money-page) .bb-money-page > p,
body.single-post:has(.bb-money-page) .bb-money-page > ul,
body.single-post:has(.bb-money-page) .bb-money-page > ol,
body.single-post:has(.bb-money-page) .bb-money-page > pre {
  max-width: none;
}

body.single-post:has(.bb-money-page) .bb-money-page > p {
  color: #334155;
  font-size: 1.045rem;
  line-height: 1.78;
}

body.single-post:has(.bb-money-page) .bb-money-page > p:first-child {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.2rem 1.15rem 1.35rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.08)),
    #ffffff;
  box-shadow: var(--bb-soft-shadow);
  color: #1e293b;
  font-size: clamp(1.08rem, 1.65vw, 1.24rem);
  line-height: 1.65;
}

body.single-post:has(.bb-money-page) .bb-money-page > p:first-child::before {
  content: "Start here";
  display: inline-flex;
  margin: 0 0 .65rem;
  padding: .34rem .62rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.single-post:has(.bb-money-page) .bb-money-page h2 {
  position: relative;
  margin-top: 2.15rem;
  margin-bottom: .9rem;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.single-post:has(.bb-money-page) .bb-money-page h2::before {
  content: "";
  display: inline-block;
  width: .72rem;
  height: .72rem;
  margin-right: .58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-cyan));
  box-shadow: 0 0 0 .32rem rgba(37, 99, 235, 0.10);
  vertical-align: .15em;
}

body.single-post:has(.bb-money-page) .bb-money-page h3 {
  margin-top: 1.45rem;
  color: #172554;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

body.single-post:has(.bb-money-page) .bb-money-page ul,
body.single-post:has(.bb-money-page) .bb-money-page ol {
  margin-left: 0;
  padding: 1rem 1rem 1rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body.single-post:has(.bb-money-page) .bb-money-page li {
  margin: .55rem 0;
  padding-left: .2rem;
  color: #334155;
  line-height: 1.65;
}

body.single-post:has(.bb-money-page) .bb-money-page li::marker {
  color: var(--bb-blue);
  font-weight: 900;
}

body.single-post:has(.bb-money-page) .bb-money-page a {
  color: #1d4ed8;
  font-weight: 760;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

body.single-post:has(.bb-money-page) .bb-money-page pre,
body.single-post:has(.bb-money-page) .bb-money-page code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-post:has(.bb-money-page) .bb-money-page pre {
  position: relative;
  margin: 1rem 0 1.25rem;
  padding: 3.2rem 1.25rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent),
    #0b1220;
  color: #e2e8f0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  font-size: .96rem;
  line-height: 1.7;
}

body.single-post:has(.bb-money-page) .bb-money-page pre::before {
  content: "COPY-PASTE WORDING";
  position: absolute;
  left: 1.05rem;
  top: 1rem;
  padding: .32rem .58rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #bfdbfe;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
}

body.single-post:has(.bb-money-page) .bb-money-page em {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--bb-amber);
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.10);
  color: #7c2d12;
  font-style: normal;
}

body.single-post:has(.bb-money-page) .bb-money-page > div:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

body.single-post:has(.bb-money-page) .bb-money-page > div:last-of-type a {
  display: inline-flex;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  text-decoration: none;
  font-size: .82rem;
}

body.single-post:has(.bb-money-page) nav[aria-label="Posts"] {
  max-width: 760px;
  margin: 1.6rem auto 0;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--bb-soft-shadow);
}

body.single-post:has(.bb-money-page) aside.wp-block-template-part {
  position: sticky;
  top: 1rem;
  height: auto !important;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--bb-soft-shadow);
}

body.single-post:has(.bb-money-page) aside h2,
body.single-post:has(.bb-money-page) aside h3 {
  font-size: 1rem !important;
  letter-spacing: -0.015em;
}

body.single-post:has(.bb-money-page) aside a {
  color: #0f172a;
  text-decoration: none;
}

body.single-post:has(.bb-money-page) aside li {
  padding: .72rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

@media (max-width: 900px) {
  body.single-post:has(.bb-money-page) main .wp-block-columns {
    display: block;
  }

  body.single-post:has(.bb-money-page) .wp-block-post-content {
    padding-inline: 1rem;
  }

  body.single-post:has(.bb-money-page) .bb-money-page {
    padding: 1rem;
    border-radius: 24px;
  }

  body.single-post:has(.bb-money-page) h1.wp-block-post-title {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  body.single-post:has(.bb-money-page) aside.wp-block-template-part {
    position: static;
    margin: 2rem 1rem 0;
  }
}

/* Hide Google search-annotation pill overlays that cover content on money pages. */
body.single-post:has(.bb-money-page) #google-anno-sa,
body.single-post:has(.bb-money-page) [id^="google-anno"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hard-hide intrusive Google annotation UI that overlays article content. */
#google-anno-sa,
[id^="google-anno"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
