/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.4
*/

:root {
  --bs-ink: #0f172a;
  --bs-muted: #4b5563;
  --bs-accent: #1d6bab;   /* logo blue */
  --bs-accent-2: #61a934; /* logo green */
  --bs-bg: #f6f9fc;
  --bs-card: #ffffff;
  --bs-border: #e5e7eb;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bs-bg);
  color: var(--bs-ink);
}

#page,
.site,
.site-content,
.ast-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-container,
.ast-separate-container .site-main {
  background: #ffffff;
}

.ast-separate-container {
  background: var(--bs-bg);
}

h1, h2, h3, h4 {
  font-family: 'Spectral', serif;
  letter-spacing: -0.01em;
  color: var(--bs-ink);
}

a {
  color: var(--bs-accent);
  text-decoration: none;
}


a:hover {
  color: var(--bs-accent-2);
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--bs-border);
}

.main-header-bar {
  padding: 10px 0;
}

.custom-logo {
  max-height: 86px;
  width: auto;
}




.site-title,
.site-description {
  display: none;
}

.main-header-menu .menu-link,
.ast-header-break-point .main-header-menu .menu-link {
  color: var(--bs-ink);
  font-weight: 600;
  padding: 0 10px;
}

.main-header-menu .menu-link:hover {
  color: var(--bs-accent);
}

/* Content width */
.entry-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignwide {
  max-width: 1100px;
}

.entry-content .alignfull {
  max-width: none;
}

/* Home hero */
.bs-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 55%, #f1f9ec 100%);
  border: 1px solid var(--bs-border);
  border-radius: 18px;
  margin-top: 24px;
}

.bs-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.bs-hero p {
  font-size: 1.05rem;
  color: var(--bs-muted);
}

.bs-section {
  padding: 32px 0;
}

.bs-cards .wp-block-column {
  background: var(--bs-card);
  border: 1px solid var(--bs-border);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.bs-note {
  background: #f8fafc;
  border: 1px dashed var(--bs-border);
  border-radius: 16px;
  padding: 18px;
}

.wp-block-button__link {
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  background: var(--bs-accent);
  color: #ffffff;
}



.wp-block-button__link:hover {
  background: var(--bs-accent-2);
}

.entry-meta, .entry-meta a {
  color: #6b7280;
  font-size: 0.9rem;
}

.entry-meta .posted-by,
.entry-meta .author-name,
.entry-meta .byline {
  display: none;
}

.comments-area,
.comment-respond {
  display: none;
}

/* Footer */
.bs-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

.bs-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bs-footer-menu a {
  color: #6b7280;
}

@media (max-width: 768px) {
  .bs-hero {
    padding: 42px 0 34px;
  }
  .main-header-bar {
    padding: 8px 0;
  }
  .custom-logo {
    max-height: 70px;
  }
}




/* Home: latest posts grid */
.home .wp-block-query .wp-block-post {
  background: #ffffff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .home .wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
  }
  .home .wp-block-query .wp-block-post {
    margin: 0;
  }
}

.home .wp-block-post-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.home .wp-block-post-excerpt {
  color: var(--bs-muted);
  font-size: 0.95rem;
}

/* Sticky header */
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }
}

/* Calculator cards icons */
.bs-cards h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bs-accent);
  margin-right: 8px;
  transform: translateY(-1px);
}

/* Header cleanup */
.ast-site-title-wrap,
.site-title,
.site-description {
  display: none !important;
}

.site-header .ast-builder-grid-row {
  align-items: center;
}

.main-header-menu {
  gap: 4px;
}

.main-header-menu .menu-link {
  border-radius: 999px;
  padding: 8px 10px;
}

.main-header-menu .menu-item.current-menu-item > .menu-link,
.main-header-menu .menu-item.current_page_parent > .menu-link {
  background: #eef6ff;
  color: var(--bs-accent);
}

.custom-logo {
  max-height: 46px;
}

/* Entry meta */
.entry-meta {
  color: var(--bs-muted);
}

/* Footer */
#colophon {
  background: #f8fafc;
  border-top: 1px solid var(--bs-border);
  padding: 28px 0;
}

#colophon .ast-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-footer-copy {
  font-weight: 600;
  color: var(--bs-ink);
}

.bs-footer-note {
  color: var(--bs-muted);
}

/* Blog cards */
.blog .site-main article {
  background: var(--bs-card);
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.blog .site-main article .entry-title {
  margin-top: 8px;
  margin-bottom: 6px;
}

.blog .site-main article .entry-meta {
  font-size: 0.85rem;
  color: var(--bs-muted);
}

.blog .site-main article .entry-content p {
  color: var(--bs-muted);
  margin-bottom: 0;
}

.blog .cat-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--bs-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons outline */
.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--bs-border);
  color: var(--bs-ink);
}

.is-style-outline .wp-block-button__link:hover {
  border-color: var(--bs-accent);
  color: var(--bs-accent);
}

/* CTA in posts */
.bs-cta {
  border: 1px solid var(--bs-border);
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-top: 32px;
}

.bs-cta h3 {
  margin-top: 0;
}

.bs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.bs-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bs-accent);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.bs-cta-link.is-outline {
  background: transparent;
  color: var(--bs-accent);
  border: 1px solid var(--bs-accent);
}

.bs-cta-note {
  color: var(--bs-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Latest posts on homepage */
.bs-post-card {
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.bs-post-card .wp-block-post-featured-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.bs-post-card .wp-block-post-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.bs-post-card .wp-block-post-excerpt {
  color: var(--bs-muted);
}

/* Header spacing */
.site-header .site-primary-header-wrap .ast-builder-grid-row {
  column-gap: 6px;
}


.site-header .site-header-primary-section-right {
  justify-content: flex-start;
}

.site-header .ast-builder-menu-1 {
  justify-content: flex-start;
}

.site-header .main-header-bar-navigation {
  justify-content: flex-start;
}

/* Visual polish */
body {
  background: radial-gradient(circle at 10% 0%, #eef6ff 0%, #f6f9fc 45%, #f1f9ec 100%);
}

.bs-hero {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bs-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(97,169,52,0.18), rgba(29,107,171,0.0) 70%);
  pointer-events: none;
}

.bs-hero::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(29,107,171,0.12), rgba(29,107,171,0.0) 70%);
  pointer-events: none;
}

.bs-section h2 {
  position: relative;
  padding-bottom: 8px;
}

.bs-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bs-accent), var(--bs-accent-2));
}

.bs-cards .wp-block-column,
.bs-post-card,
.blog .site-main article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-cards .wp-block-column:hover,
.bs-post-card:hover,
.blog .site-main article:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wp-block-button__link {
  box-shadow: 0 8px 16px rgba(29, 107, 171, 0.2);
}

.is-style-outline .wp-block-button__link {
  box-shadow: none;
}

.site-header .site-header-primary-section-left {
  flex: 0 0 auto;
}

.site-header .site-header-primary-section-right {
  flex: 1 1 auto;
}

.bs-hero-image img {
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 16px auto 0;
  display: block;
}

/* README quick-win hardening */
.wp-block-button__link,
.wp-block-button__link:link,
.wp-block-button__link:visited {
  color: #ffffff !important;
}

.is-style-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link:link,
.is-style-outline .wp-block-button__link:visited {
  color: var(--bs-accent) !important;
  border-color: var(--bs-accent) !important;
}

.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:focus-visible {
  color: #ffffff !important;
  background: var(--bs-accent) !important;
}

.bs-trust .wp-block-column {
  background: #ffffff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.bs-trust strong {
  font-size: 1.35rem;
  color: var(--bs-accent);
}

/* Final overrides to prevent duplicate-rule regressions */
.custom-logo {
  max-height: 86px !important;
}

@media (max-width: 768px) {
  .custom-logo {
    max-height: 70px !important;
  }
}

.main-header-menu .menu-link {
  font-weight: 600 !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bs-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Phase 1: Navigation + Homepage Hierarchy + Blog Cards ===== */

/* Navigation polish */
@media (min-width: 922px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
  }

  .main-header-menu {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .main-header-menu .menu-link {
    padding: 9px 12px !important;
    border-radius: 10px;
    transition: background-color 160ms ease, color 160ms ease;
  }

  .main-header-menu .menu-item.current-menu-item > .menu-link,
  .main-header-menu .menu-item.current_page_parent > .menu-link {
    background: #eaf4ff;
    color: var(--bs-accent);
  }
}

/* Homepage hierarchy */
.home .entry-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home .bs-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.home .bs-trust {
  margin-top: 6px;
}

.home .bs-trust .wp-block-columns {
  gap: 12px;
}

.home .bs-trust .wp-block-column {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  min-height: 92px;
  display: flex;
  align-items: center;
}

.home .bs-trust .wp-block-column p {
  margin: 0;
}

.site-header .ast-builder-layout-element[data-section="title_tagline"] {
  min-height: 88px;
}

/* Query cards on homepage */
.home .wp-block-query .wp-block-post-template {
  list-style: none;
  padding-left: 0;
}

@media (min-width: 992px) {
  .home .wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.home .bs-post-card {
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  overflow: hidden;
}

.home .bs-post-card .wp-block-post-featured-image {
  margin: -16px -16px 12px;
}

.home .bs-post-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0;
}

.home .bs-post-card .wp-block-post-title {
  font-size: 1rem;
  line-height: 1.3;
}

.home .bs-post-card .wp-block-post-excerpt {
  font-size: 0.92rem;
}

/* Blog redesign */
.blog .site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.blog .site-main article {
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.blog .site-main article .post-thumb-img-content img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.blog .site-main article .entry-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.blog .site-main article .entry-meta {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

@media (min-width: 1100px) {
  .blog .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- UX hotfixes (phase 1 regression fix) ---- */
/* Keep outline buttons readable in all states */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:visited,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:active {
  background: transparent !important;
  color: var(--bs-accent) !important;
  border: 1px solid var(--bs-accent) !important;
  box-shadow: none !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus {
  background: var(--bs-accent) !important;
  color: #ffffff !important;
  border-color: var(--bs-accent) !important;
}

/* Header/logo sizing and spacing */
.site-header .site-branding {
  margin-right: 8px !important;
}

.site-header .ast-builder-grid-row {
  column-gap: 8px !important;
}

.site-header .ast-site-identity,
.site-header .ast-site-identity .site-logo-img {
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .site-logo-img img.custom-logo,
.site-header .custom-logo-link img.custom-logo {
  max-height: 58px !important;
  width: auto !important;
}

/* Remove legacy title wrappers that can create weird vertical text/gaps */
.site-header .ast-site-title-wrap,
.site-header .site-title,
.site-header .site-description {
  display: none !important;
}

/* ---- Usability polish (calculator-first) ---- */
/* Header clarity */
.main-header-menu .menu-link {
  font-size: 0.95rem;
  line-height: 1;
}

.main-header-menu .menu-item.current-menu-item > .menu-link,
.main-header-menu .menu-item.current_page_parent > .menu-link {
  border: 1px solid rgba(29, 107, 171, 0.22);
}

/* Calculators page: avoid oversized hero image */
.page-id-61 .entry-content .wp-block-image img {
  max-width: 380px !important;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* Calculators page: stronger cards */
.page-id-61 .bs-cards .wp-block-column {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-id-61 .bs-cards p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--bs-accent);
}

.page-id-61 .bs-cards p a::after {
  content: '->';
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .site-header .site-logo-img img.custom-logo,
  .site-header .custom-logo-link img.custom-logo {
    max-height: 54px !important;
  }

  .page-id-61 .entry-content .wp-block-image img {
    max-width: 100% !important;
  }
}

/* ---- Accessibility and conversion polish ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible,
.menu-link:focus-visible {
  outline: 3px solid rgba(97, 169, 52, 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}

.main-header-menu .menu-link {
  font-weight: 700;
}

.bs-trust .wp-block-column {
  background: #f8fbff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  text-align: center;
  padding: 14px;
}

.bs-trust strong {
  font-size: 1.15rem;
  color: var(--bs-accent);
}

.page-id-61 .entry-content > p:first-of-type {
  font-size: 1.04rem;
  color: var(--bs-muted);
}

.bs-next-tools {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  background: #f8fbff;
}

.bs-next-tools h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.bs-next-tools p {
  margin-bottom: 10px;
  color: var(--bs-muted);
}

.bs-next-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs-next-tools-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 107, 171, 0.24);
  background: #fff;
  color: var(--bs-accent);
  font-weight: 600;
}

.bs-next-tools-links a:hover {
  border-color: var(--bs-accent);
  background: #eef6ff;
}

/* Calculators index micro-metadata */
.bs-card-meta {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.page-id-61 .wp-block-buttons {
  margin-bottom: 8px;
}

.bs-related-posts {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  background: #f8fbff;
}

.bs-related-posts h3 {
  margin: 0 0 10px;
}

.bs-related-posts ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.bs-related-posts a {
  color: var(--bs-accent);
  font-weight: 600;
}

/* Calculator results as compact cards */
.bs-calc-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.bs-calc-results > div {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 62px;
}

.bs-calc-results strong {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 3px;
}

/* Mobile sticky CTA on calculator pages */
.bs-mobile-calc-cta {
  display: none;
}

@media (max-width: 768px) {
  .bs-mobile-calc-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
  }

  .bs-mobile-calc-cta-link {
    display: block;
    text-align: center;
    background: var(--bs-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  }

  body.page {
    padding-bottom: 74px;
  }
}

/* Post-level tool recommendation */
.bs-post-toolbox {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  background: #eef6ff;
}

.bs-post-toolbox h3 {
  margin: 0 0 6px;
}

.bs-post-toolbox p {
  margin: 0 0 8px;
  color: var(--bs-muted);
}

.bs-post-toolbox a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(29, 107, 171, 0.25);
  color: var(--bs-accent);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
}

/* ---- Blog readability pass: force list layout ---- */
.blog .ast-container {
  max-width: 980px;
}

.blog .site-main {
  display: block !important;
  max-width: 860px;
  margin: 0 auto;
}

.blog .site-main article {
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid #e7edf5;
}

@media (min-width: 1100px) {
  .blog .site-main {
    grid-template-columns: 1fr !important;
  }
}

.blog .site-main article .entry-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
  margin: 8px 0 8px;
}

.blog .site-main article .entry-content p {
  color: #4b5563;
  line-height: 1.65;
  margin-top: 6px;
}

.blog .site-main article .entry-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.blog .cat-links {
  margin-bottom: 6px;
}

.blog .cat-links a {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  background: #eef6ff;
  border: 1px solid #d7e9fa;
}

.blog .site-main article:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .blog .site-main article {
    padding: 16px;
    margin-bottom: 14px;
  }
}

/* Astra hard override: archive item spacing */
.blog .site-main article.ast-article-post,
.blog .site-main article.post {
  padding: 22px !important;
  margin-bottom: 22px !important;
}

.blog .site-main article .entry-content {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .blog .site-main article.ast-article-post,
  .blog .site-main article.post {
    padding: 16px !important;
    margin-bottom: 14px !important;
  }
}

.bs-tldr-box {
  background: #f3f8ff;
  border: 1px solid #dbeafe;
}

.bs-inline-tools {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.bs-inline-tools p {
  margin: 0;
  color: #334155;
}

.bs-inline-tools a {
  font-weight: 700;
  color: var(--bs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Calculadoras hero image balance fix */
.page-id-61 .entry-content .bs-hero-image {
  max-width: 680px;
  margin: 14px auto 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.page-id-61 .entry-content .bs-hero-image img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 42%;
  margin: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .page-id-61 .entry-content .bs-hero-image {
    border-radius: 12px;
    margin-top: 10px;
  }

  .page-id-61 .entry-content .bs-hero-image img {
    aspect-ratio: 16 / 10;
    object-position: center 46%;
  }
}

/* Home quick sections: improve readability and spacing */
.home .entry-content .bs-quick-calcs,
.home .entry-content .bs-quick-guides {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fbff;
}

.home .entry-content .bs-quick-calcs h2,
.home .entry-content .bs-quick-guides h2 {
  margin: 0 0 8px;
}

.home .entry-content .bs-quick-guides p {
  margin-bottom: 10px;
}

.home .entry-content .bs-quick-calcs .wp-block-buttons,
.home .entry-content .bs-quick-guides .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

.home .entry-content .bs-quick-calcs .wp-block-button,
.home .entry-content .bs-quick-guides .wp-block-button {
  margin: 0;
}

@media (max-width: 768px) {
  .home .entry-content .bs-quick-calcs,
  .home .entry-content .bs-quick-guides {
    padding: 14px;
    border-radius: 12px;
  }

  .home .entry-content .bs-quick-calcs .wp-block-button__link,
  .home .entry-content .bs-quick-guides .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

/* ---- Revolving article engagement pass (post 166 only) ---- */
.single-post.postid-166 .entry-content {
  position: relative;
}

.bs-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(29, 107, 171, 0.12);
  z-index: 10000;
}

.bs-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--bs-accent), var(--bs-accent-2));
  transition: width 120ms linear;
}

.single-post.postid-166 .bs-quick-answer {
  margin: 4px auto 20px;
  padding: 18px 18px 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f8ff, #f8fbff 60%, #eef9f2);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.single-post.postid-166 .bs-quick-answer h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.single-post.postid-166 .bs-quick-answer p {
  margin-bottom: 10px;
  color: #334155;
}

.single-post.postid-166 .bs-quick-answer ul {
  margin: 0 0 10px 1.1rem;
}

.single-post.postid-166 .bs-quick-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-post.postid-166 .bs-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bs-accent);
  color: #fff;
  border: 1px solid var(--bs-accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.single-post.postid-166 .bs-pill-btn.is-outline {
  background: #fff;
  color: var(--bs-accent);
}

.single-post.postid-166 .bs-pill-btn:hover {
  background: var(--bs-accent-2);
  border-color: var(--bs-accent-2);
  color: #fff;
}

.single-post.postid-166 .bs-section-title-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.single-post.postid-166 .bs-section-title-note::before {
  content: "!";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
}

.single-post.postid-166 .entry-content h3 {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 3px solid #dbeafe;
}

.single-post.postid-166 .entry-content table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.single-post.postid-166 .entry-content table th {
  background: #f1f5f9;
}

.single-post.postid-166 .bs-checklist {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.single-post.postid-166 .bs-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.single-post.postid-166 .bs-checklist-items li {
  margin: 0;
}

.single-post.postid-166 .bs-checklist-items label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.single-post.postid-166 .bs-checklist-items input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--bs-accent);
}

.single-post.postid-166 .bs-checklist-result {
  margin: 10px 0 0;
  font-weight: 700;
  color: #1e3a8a;
}

.bs-floating-post-cta {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9998;
}

.bs-floating-post-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--bs-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(29, 107, 171, 0.35);
}

.bs-floating-post-cta a:hover {
  background: var(--bs-accent-2);
  color: #fff;
}

.single-post.postid-166 #empieza-aqui-3-pasos + ol {
  counter-reset: bsstep;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.single-post.postid-166 #empieza-aqui-3-pasos + ol > li {
  counter-increment: bsstep;
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.single-post.postid-166 #empieza-aqui-3-pasos + ol > li::before {
  content: counter(bsstep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--bs-accent);
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .bs-floating-post-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .bs-floating-post-cta a {
    width: 100%;
  }

  .single-post.postid-166 .bs-quick-answer {
    padding: 14px;
  }
}

/* Anchor offset for sticky header */
.single-post.postid-166 #empieza-aqui-3-pasos,
.single-post.postid-166 #checklist-revolving {
  scroll-margin-top: 110px;
}

/* Budget article engagement pass (post 8) */
.single-post.postid-8 .bs-quick-answer {
  margin: 4px auto 20px;
  padding: 18px 18px 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f8ff, #f8fbff 60%, #eef9f2);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.single-post.postid-8 .bs-quick-answer h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.single-post.postid-8 .bs-quick-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-post.postid-8 .bs-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bs-accent);
  color: #fff;
  border: 1px solid var(--bs-accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.single-post.postid-8 .bs-pill-btn.is-outline {
  background: #fff;
  color: var(--bs-accent);
}

.single-post.postid-8 .bs-pill-btn:hover {
  background: var(--bs-accent-2);
  border-color: var(--bs-accent-2);
  color: #fff;
}

.single-post.postid-8 .bs-budget-checklist {
  margin-bottom: 16px;
}

.single-post.postid-8 #plan-30-dias {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  .single-post.postid-8 .bs-quick-answer {
    padding: 14px;
  }
}

/* TLDR + fancy top box polish for budget article */
.single-post.postid-8 .bs-tldr-box {
  margin: 2px auto 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #ecf5ff 0%, #f8fbff 60%, #eef9f2 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.single-post.postid-8 .bs-tldr-box h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.single-post.postid-8 .bs-tldr-box ul {
  margin: 0 0 8px 1.1rem;
}

.single-post.postid-8 .bs-tldr-box p {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.single-post.postid-8 .bs-tldr-box a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post.postid-8 .bs-quick-answer.bs-budget-quick {
  position: relative;
  overflow: hidden;
  border-width: 1px;
}

.single-post.postid-8 .bs-quick-answer.bs-budget-quick::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(29, 107, 171, 0.18), rgba(29, 107, 171, 0));
  pointer-events: none;
}

.single-post.postid-8 .bs-quick-answer.bs-budget-quick::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(97, 169, 52, 0.16), rgba(97, 169, 52, 0));
  pointer-events: none;
}

.single-post.postid-8 .bs-quick-answer.bs-budget-quick > * {
  position: relative;
  z-index: 1;
}
