/* ==========================================================================
   BW Blog Experience — editorial kit for basement-waterproofing.net
   Design tokens mirror the site's existing palette (#0077b6 / #00b4d8 / #0d1b2a)
   ========================================================================== */

.bwx,
.bwx *,
.bwx *::before,
.bwx *::after { box-sizing: border-box; }

.bwx {
  --bx-blue:   #0077b6;
  --bx-blue-d: #005f8e;
  --bx-cyan:   #00b4d8;
  --bx-ink:    #0d1b2a;
  --bx-ink-2:  #1a2e42;
  --bx-ink-3:  #060e17;
  --bx-body:   #38495c;
  --bx-muted:  #6b7f93;
  --bx-line:   rgba(13,27,42,.10);
  --bx-line-2: rgba(0,119,182,.16);
  --bx-bg:     #f6f9fc;
  --bx-tint:   #eef6fd;
  --bx-white:  #fff;
  --bx-r:      18px;
  --bx-r-s:    12px;
  --bx-sh:     0 2px 14px rgba(13,27,42,.06);
  --bx-sh-m:   0 10px 34px rgba(13,27,42,.10);
  --bx-sh-l:   0 26px 70px rgba(13,27,42,.18);
  --bx-ff:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bx-ease:   cubic-bezier(.4,0,.2,1);
  --bx-read:   19px;
  font-family: var(--bx-ff);
  color: var(--bx-body);
  -webkit-font-smoothing: antialiased;
}

/* The theme's stock banner is replaced by our own heroes. */
body.single-post .page_title,
body.blog .page_title,
body.archive .page_title,
body.search .page_title { display: none !important; }

body.single-post .blog-area,
body.blog .blog-area,
body.archive .blog-area { display: none !important; }

/* Dead placeholder social icons in the off-canvas panel. */
.sidebar__menu--social a[href="#"] { display: none !important; }

.bwx-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bwx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bwx svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.bwx .bwx-btn,
.bwx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--bx-ff); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 100px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .3s var(--bx-ease);
  line-height: 1; white-space: nowrap;
}
.bwx-btn svg { width: 16px; height: 16px; }
.bwx-btn--primary { background: var(--bx-blue); color: #fff; border-color: var(--bx-blue); }
.bwx-btn--primary:hover { background: var(--bx-blue-d); border-color: var(--bx-blue-d); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,119,182,.34); }
.bwx-btn--primary:hover svg { transform: translateX(3px); }
.bwx-btn svg { transition: transform .3s var(--bx-ease); }
.bwx-btn--ghost { background: transparent; color: var(--bx-blue); border-color: var(--bx-line-2); }
.bwx-btn--ghost:hover { background: var(--bx-tint); border-color: var(--bx-blue); color: var(--bx-blue-d); }
.bwx-btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.38); backdrop-filter: blur(6px); }
.bwx-btn--light:hover { background: #fff; color: var(--bx-ink); border-color: #fff; transform: translateY(-2px); }
.bwx-btn--block { display: flex; width: 100%; }

/* ---------- reading progress ---------- */
.bwx-progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 10000;
  background: rgba(13,27,42,.08); pointer-events: none;
}
.bwx-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bx-blue), var(--bx-cyan));
  box-shadow: 0 0 14px rgba(0,180,216,.7);
  transition: width .08s linear;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.bwx-hero, .bwx-ahero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #060e17 0%, #12263a 55%, #00456d 100%);
  padding: 74px 0 96px;
  isolation: isolate;
}
.bwx-hero::before, .bwx-ahero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(0,180,216,.28) 0%, transparent 68%);
}
.bwx-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .30; filter: saturate(.6) contrast(1.05);
  transform: scale(1.06);
}
.bwx-hero.has-img::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,14,23,.62) 0%, rgba(6,14,23,.80) 55%, rgba(6,14,23,.94) 100%);
}
.bwx-hero__grain {
  position: absolute; inset: 0; z-index: 2; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(0,180,216,.18) 0, transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(0,119,182,.20) 0, transparent 30%);
}
.bwx-hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  width: 100%; height: 64px; stroke: none;
}
.bwx-hero__wave path { fill: var(--bx-bg); stroke: none; }
.bwx-hero__inner, .bwx-ahero .bwx-wrap { position: relative; z-index: 4; }

.bwx-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.bwx-crumb a { color: rgba(255,255,255,.74); text-decoration: none; transition: color .25s; }
.bwx-crumb a:hover { color: var(--bx-cyan); }
.bwx-crumb__here { color: rgba(255,255,255,.45); }

.bwx-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,180,216,.16); border: 1px solid rgba(0,180,216,.36);
  color: #7fe3ff; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 100px; text-decoration: none; transition: all .3s var(--bx-ease);
}
.bwx-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bx-cyan); box-shadow: 0 0 10px var(--bx-cyan); }
a.bwx-kicker:hover { background: rgba(0,180,216,.3); color: #fff; }

.bwx-hero__title {
  font-family: var(--bx-ff);
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; font-weight: 900;
  letter-spacing: -.028em; color: #fff; margin: 18px 0 0; max-width: 20ch;
  text-wrap: balance;
}
.bwx-hero__deck {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; color: rgba(255,255,255,.76);
  max-width: 62ch; margin: 18px 0 0; font-weight: 400;
}

.bwx-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.bwx-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, var(--bx-blue), var(--bx-cyan));
  box-shadow: 0 6px 18px rgba(0,119,182,.45);
}
.bwx-avatar--lg { width: 62px; height: 62px; font-size: 24px; }
.bwx-byline__who { display: flex; flex-direction: column; gap: 3px; }
.bwx-byline__who b { color: #fff; font-size: 14.5px; font-weight: 700; }
.bwx-byline__who span { color: rgba(255,255,255,.55); font-size: 12.5px; }
.bwx-facts { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 0 auto; padding: 0; }
.bwx-facts li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88); font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 100px;
}
.bwx-facts svg { width: 14px; height: 14px; color: var(--bx-cyan); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.bwx-single { background: var(--bx-bg); }
.bwx-layout {
  display: grid; grid-template-columns: 62px minmax(0,1fr) 322px;
  gap: 40px; align-items: start; padding-top: 52px; padding-bottom: 72px;
}
.bwx-main { min-width: 0; }

/* ---------- floating rail ---------- */
.bwx-rail {
  position: sticky; top: 118px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.bwx-rail__ring { position: relative; width: 48px; height: 48px; margin-bottom: 4px; }
.bwx-rail__ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.bwx-rail__track { fill: none; stroke: rgba(13,27,42,.10); stroke-width: 4; }
.bwx-rail__arc { fill: none; stroke: url(#none) var(--bx-blue); stroke: var(--bx-blue); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .1s linear; }
.bwx-rail__pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--bx-ink); }
.bwx-rail__pct i { font-style: normal; font-size: 8px; opacity: .6; }
.bwx-rail__btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--bx-ink-2);
  border: 1px solid var(--bx-line); box-shadow: var(--bx-sh);
  cursor: pointer; transition: all .28s var(--bx-ease); text-decoration: none; font-size: 13px; font-weight: 800;
}
.bwx-rail__btn svg { width: 17px; height: 17px; }
.bwx-rail__btn:hover { background: var(--bx-blue); color: #fff; border-color: var(--bx-blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,119,182,.32); }
.bwx-rail__btn--txt i { font-style: normal; font-size: 10px; margin-left: 1px; }
.bwx-rail__btn[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 56px; top: 50%; transform: translateY(-50%) translateX(-6px);
  background: var(--bx-ink); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 7px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s var(--bx-ease); z-index: 20;
}
.bwx-rail__btn:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.bwx-rail__sep { width: 22px; height: 1px; background: var(--bx-line); margin: 6px 0; }

/* ---------- stats chips ---------- */
.bwx-stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 26px; padding: 0; }
.bwx-stats li {
  flex: 1 1 150px; background: #fff; border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-s); padding: 18px 20px; box-shadow: var(--bx-sh);
  position: relative; overflow: hidden;
}
.bwx-stats li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--bx-blue), var(--bx-cyan)); }
.bwx-stats b { display: block; font-size: 24px; font-weight: 900; color: var(--bx-ink); letter-spacing: -.02em; line-height: 1.1; }
.bwx-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--bx-muted); font-weight: 500; }

/* ---------- key takeaways ---------- */
.bwx-key {
  background: linear-gradient(135deg, #ffffff 0%, var(--bx-tint) 100%);
  border: 1px solid var(--bx-line-2); border-radius: var(--bx-r);
  box-shadow: var(--bx-sh); overflow: hidden; margin-bottom: 26px;
}
.bwx-key__top {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 20px 22px; font-family: var(--bx-ff); font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bx-ink);
}
.bwx-key__icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--bx-blue); color: #fff; stroke-width: 3; flex: none; }
.bwx-chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--bx-ease); flex: none; opacity: .5; }
.bwx-key__top { }
.bwx-key__top .bwx-chev { margin-left: auto; }
.bwx-key__top[aria-expanded="false"] .bwx-chev { transform: rotate(-45deg); }
.bwx-key__body { list-style: none; margin: 0; padding: 0 24px 22px 24px; display: grid; gap: 12px; }
.bwx-key__body[hidden] { display: none; }
.bwx-key__body li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--bx-ink-2); }
.bwx-key__body li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bx-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- table of contents ---------- */
.bwx-toc--inline { display: none; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); margin-bottom: 26px; }
.bwx-toc--inline summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bx-ink); display: flex; align-items: center; gap: 10px; }
.bwx-toc--inline summary::-webkit-details-marker { display: none; }
.bwx-toc--inline summary b { margin-left: auto; background: var(--bx-tint); color: var(--bx-blue); border-radius: 100px; padding: 3px 10px; font-size: 11px; }
.bwx-toc--inline ol { margin: 0; padding: 0 20px 18px 20px; list-style: none; counter-reset: bwtoc; }
.bwx-toc--inline li { counter-increment: bwtoc; }
.bwx-toc--inline a { display: block; padding: 8px 0 8px 30px; position: relative; color: var(--bx-body); text-decoration: none; font-size: 14.5px; border-bottom: 1px solid var(--bx-line); }
.bwx-toc--inline a::before { content: counter(bwtoc, decimal-leading-zero); position: absolute; left: 0; font-size: 11px; font-weight: 800; color: var(--bx-blue); opacity: .7; top: 11px; }
.bwx-toc--inline li.lvl-3 a { padding-left: 46px; font-size: 13.5px; color: var(--bx-muted); }
.bwx-toc--inline li.lvl-3 a::before { left: 18px; }

.bwx-toc--sticky {
  position: sticky; top: 118px; background: #fff; border: 1px solid var(--bx-line);
  border-radius: var(--bx-r); padding: 22px 20px; box-shadow: var(--bx-sh); margin-bottom: 22px;
  max-height: calc(100vh - 160px); overflow: auto; scrollbar-width: thin;
}
.bwx-toc--sticky h2 { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bx-muted); margin: 0 0 12px; font-family: var(--bx-ff); }
.bwx-toc__meter { height: 3px; border-radius: 3px; background: var(--bx-line); overflow: hidden; margin-bottom: 14px; }
.bwx-toc__meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bx-blue), var(--bx-cyan)); transition: width .15s linear; }
.bwx-toc--sticky ol { list-style: none; margin: 0; padding: 0; }
.bwx-toc--sticky li a {
  display: block; padding: 8px 10px 8px 14px; border-left: 2px solid transparent;
  color: var(--bx-body); text-decoration: none; font-size: 14px; line-height: 1.45;
  border-radius: 0 8px 8px 0; transition: all .25s var(--bx-ease);
}
.bwx-toc--sticky li a:hover { background: var(--bx-tint); color: var(--bx-blue); }
.bwx-toc--sticky li.lvl-3 a { padding-left: 26px; font-size: 13px; color: var(--bx-muted); }
.bwx-toc--sticky li a.is-on { border-left-color: var(--bx-blue); background: var(--bx-tint); color: var(--bx-blue); font-weight: 700; }
.bwx-toc__left { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--bx-line); font-size: 12.5px; color: var(--bx-muted); }
.bwx-toc__left b { color: var(--bx-ink); font-weight: 800; }

/* ==========================================================================
   ARTICLE BODY
   ========================================================================== */
.bwx-body {
  background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r);
  padding: 42px 46px 46px; box-shadow: var(--bx-sh);
  font-size: var(--bx-read); line-height: 1.78; color: var(--bx-body);
}
.bwx-body > *:first-child { margin-top: 0; }
.bwx-body > *:last-child { margin-bottom: 0; }

.bwx-body p { margin: 0 0 1.25em; font-size: inherit; line-height: inherit; color: inherit;
  /* defeat the archive card clamp if it ever reaches here */
  display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.bwx-body p.bwx-lead { font-size: 1.1em; line-height: 1.68; color: var(--bx-ink-2); font-weight: 450; }
.bwx-body p.bwx-lead::first-letter {
  float: left; font-size: 3.3em; line-height: .84; font-weight: 900; color: var(--bx-blue);
  margin: .06em .12em 0 0;
}

.bwx-body h2, .bwx-body .bwx-h {
  font-family: var(--bx-ff) !important;
  font-size: clamp(23px, 2.4vw, 30px) !important; line-height: 1.24; font-weight: 850;
  letter-spacing: -.022em; color: var(--bx-ink) !important;
  margin: 2.1em 0 .7em; padding-top: .55em; position: relative; scroll-margin-top: 130px;
}
.bwx-body h2::before {
  content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--bx-blue), var(--bx-cyan));
}
.bwx-body h3 {
  font-family: var(--bx-ff) !important;
  font-size: clamp(18px, 1.8vw, 21px) !important; line-height: 1.34; font-weight: 800;
  color: var(--bx-ink-2) !important; margin: 1.8em 0 .55em; scroll-margin-top: 130px;
}
.bwx-body h4 { font-size: 17px !important; font-weight: 800; color: var(--bx-ink-2) !important; margin: 1.5em 0 .5em; font-family: var(--bx-ff) !important; }

.bwx-body a { color: var(--bx-blue); text-decoration: none; font-weight: 600; box-shadow: inset 0 -1px 0 0 rgba(0,119,182,.32); transition: all .25s var(--bx-ease); }
.bwx-body a:hover { color: var(--bx-blue-d); box-shadow: inset 0 -2px 0 0 var(--bx-blue); background: rgba(0,180,216,.08); }
.bwx-body a[target="_blank"]::after { content: '↗'; font-size: .78em; margin-left: .22em; opacity: .55; }

.bwx-body strong, .bwx-body b { color: var(--bx-ink); font-weight: 750; }
.bwx-body em { color: inherit; }

.bwx-body ul, .bwx-body ol { margin: 0 0 1.35em; padding-left: 0; list-style: none; }
.bwx-body ul li, .bwx-body ol li { position: relative; padding-left: 34px; margin-bottom: .7em; line-height: 1.7; }
.bwx-body ul > li::before {
  content: ''; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bx-cyan); box-shadow: 0 0 0 4px rgba(0,180,216,.14);
}
.bwx-body ol { counter-reset: bwol; }
.bwx-body ol > li { counter-increment: bwol; }
.bwx-body ol > li::before {
  content: counter(bwol); position: absolute; left: 0; top: .18em;
  width: 23px; height: 23px; border-radius: 50%; background: var(--bx-blue); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}

.bwx-body blockquote {
  margin: 1.8em 0; padding: 22px 26px; border: 0; border-left: 4px solid var(--bx-cyan);
  background: var(--bx-tint); border-radius: 0 var(--bx-r-s) var(--bx-r-s) 0;
  font-size: 1.02em; color: var(--bx-ink-2); font-style: normal;
}
.bwx-body blockquote p:last-child { margin-bottom: 0; }

.bwx-tablewrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); box-shadow: var(--bx-sh); -webkit-overflow-scrolling: touch; }
.bwx-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; margin: 0; }
.bwx-body thead th, .bwx-body tr:first-child td strong {
  background: var(--bx-ink); color: #fff; font-weight: 700; text-align: left;
}
.bwx-body th { background: var(--bx-ink); color: #fff; font-weight: 700; text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.bwx-body td { padding: 14px 18px; border-top: 1px solid var(--bx-line); vertical-align: top; }
.bwx-body tbody tr:nth-child(even) td { background: #fafcfe; }
.bwx-body tbody tr:hover td { background: var(--bx-tint); }

.bwx-fig { margin: 2em 0; }
.bwx-fig img { width: 100%; height: auto; display: block; border-radius: var(--bx-r-s); box-shadow: var(--bx-sh-m); cursor: zoom-in; transition: transform .4s var(--bx-ease), box-shadow .4s var(--bx-ease); }
.bwx-fig img:hover { transform: scale(1.012); box-shadow: var(--bx-sh-l); }
.bwx-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--bx-muted); text-align: center; line-height: 1.5; }
.bwx-body img { max-width: 100%; height: auto; }
.bwx-body hr { border: 0; height: 1px; background: var(--bx-line); margin: 2.4em 0; }

/* Elementor-built posts: strip the widget chrome inside our shell */
.bwx-body .elementor-section, .bwx-body .elementor-container, .bwx-body .elementor-column,
.bwx-body .elementor-widget-wrap, .bwx-body .elementor-widget, .bwx-body .elementor-widget-container {
  padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background: none !important;
}
.bwx-body .elementor-widget:not(:last-child) { margin-block-end: 0 !important; }

/* ---------- pull quote ---------- */
.bwx-pullquote {
  position: relative; margin: 2.4em 0; padding: 34px 34px 30px 76px;
  background: linear-gradient(135deg, var(--bx-ink) 0%, var(--bx-ink-2) 100%);
  border-radius: var(--bx-r); color: #fff; box-shadow: var(--bx-sh-m); overflow: hidden;
}
.bwx-pullquote::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.30) 0%, transparent 70%);
}
.bwx-pullquote svg { position: absolute; left: 28px; top: 32px; width: 32px; height: 32px; fill: var(--bx-cyan); stroke: none; opacity: .95; }
.bwx-pullquote p { margin: 0 !important; font-size: 1.12em !important; line-height: 1.6 !important; font-weight: 600; color: #fff !important; position: relative; z-index: 1; }
.bwx-pullquote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .05em; text-transform: uppercase; font-weight: 700; position: relative; z-index: 1; }

/* ---------- inline CTA ---------- */
.bwx-inlinecta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 2.4em 0; padding: 26px 28px; border-radius: var(--bx-r);
  background: var(--bx-tint); border: 1px dashed var(--bx-line-2);
}
.bwx-inlinecta__txt { flex: 1 1 260px; }
.bwx-inlinecta__txt strong { display: block; font-size: 17px; color: var(--bx-ink); font-weight: 800; margin-bottom: 4px; }
.bwx-inlinecta__txt span { display: block; font-size: 14.5px; color: var(--bx-body); line-height: 1.55; }

/* ==========================================================================
   INTERACTIVE TOOLS
   ========================================================================== */
.bwx-tool {
  margin: 2.6em 0; padding: 30px 30px 32px; border-radius: var(--bx-r);
  background: #fff; border: 1px solid var(--bx-line-2);
  box-shadow: 0 14px 44px rgba(0,119,182,.12); position: relative; overflow: hidden;
}
.bwx-tool::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--bx-blue), var(--bx-cyan)); }
.bwx-tool__head { margin-bottom: 24px; }
.bwx-tool__tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bx-blue); background: var(--bx-tint); border-radius: 100px; padding: 5px 12px; margin-bottom: 12px;
}
.bwx-tool h3 { font-size: 24px !important; font-weight: 850; color: var(--bx-ink) !important; margin: 0 0 8px !important; letter-spacing: -.02em; font-family: var(--bx-ff) !important; }
.bwx-tool__head p { margin: 0 !important; font-size: 15px !important; color: var(--bx-muted); line-height: 1.6 !important; }
.bwx-tool__fine { margin: 18px 0 0 !important; font-size: 12.5px !important; color: var(--bx-muted); line-height: 1.55 !important; }
.bwx-tool__cta { margin-top: 18px; }

.bwx-tool__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.bwx-field label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--bx-ink); margin-bottom: 9px; }
.bwx-field label b { margin-left: auto; color: var(--bx-blue); font-weight: 800; }
.bwx-field select, .bwx-field input[type="range"] { width: 100%; font-family: var(--bx-ff); }
.bwx-field select {
  appearance: none; -webkit-appearance: none; padding: 12px 38px 12px 14px; font-size: 14.5px; color: var(--bx-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f93' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat;
  border: 1px solid var(--bx-line-2); border-radius: 10px; cursor: pointer; transition: border-color .25s;
}
.bwx-field select:focus { outline: none; border-color: var(--bx-blue); box-shadow: 0 0 0 3px rgba(0,119,182,.14); }
.bwx-field input[type="range"] { appearance: none; -webkit-appearance: none; height: 6px; border-radius: 6px; background: var(--bx-line); margin: 16px 0 6px; }
.bwx-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bx-blue);
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,119,182,.45); cursor: grab;
}
.bwx-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bx-blue); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,119,182,.45); cursor: grab; }
.bwx-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--bx-muted); }
.bwx-note { margin: 8px 0 0 !important; font-size: 12.5px !important; color: var(--bx-muted); }

.bwx-checks { border: 0; margin: 22px 0 0; padding: 0; }
.bwx-checks legend { font-size: 13px; font-weight: 700; color: var(--bx-ink); padding: 0; margin-bottom: 10px; }
.bwx-checks label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 9px 15px;
  border: 1px solid var(--bx-line-2); border-radius: 100px; font-size: 13.5px; color: var(--bx-body);
  cursor: pointer; transition: all .25s var(--bx-ease); background: #fff;
}
.bwx-checks label:hover { border-color: var(--bx-blue); color: var(--bx-blue); }
.bwx-checks input { accent-color: var(--bx-blue); width: 15px; height: 15px; }
.bwx-checks label:has(input:checked) { background: var(--bx-tint); border-color: var(--bx-blue); color: var(--bx-blue-d); font-weight: 650; }

.bwx-result { margin-top: 26px; padding: 24px 26px; border-radius: var(--bx-r-s); background: linear-gradient(135deg, var(--bx-ink) 0%, var(--bx-ink-2) 100%); color: #fff; }
.bwx-result__label { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.bwx-result__val { display: block; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -.03em; margin: 6px 0 4px; color: #fff; }
.bwx-result__sub { display: block; font-size: 13.5px; color: var(--bx-cyan); font-weight: 600; }
.bwx-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.14); margin: 18px 0 14px; overflow: hidden; }
.bwx-bar span { display: block; height: 100%; width: 30%; border-radius: 8px; background: linear-gradient(90deg, var(--bx-cyan), #7fe3ff); transition: width .35s var(--bx-ease), margin-left .35s var(--bx-ease); }
.bwx-result__foot { margin: 0 !important; font-size: 13.5px !important; color: rgba(255,255,255,.74) !important; line-height: 1.55 !important; }

/* symptom checker */
.bwx-signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bwx-signs li { padding: 0; margin: 0; }
.bwx-signs label { display: flex; gap: 13px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); cursor: pointer; transition: all .25s var(--bx-ease); background: #fff; }
.bwx-signs label:hover { border-color: var(--bx-blue); background: #fbfdff; }
.bwx-signs input { position: absolute; opacity: 0; width: 0; height: 0; }
.bwx-signs__box { flex: none; width: 21px; height: 21px; border-radius: 6px; border: 2px solid var(--bx-line-2); margin-top: 1px; transition: all .25s var(--bx-ease); }
.bwx-signs label:has(input:checked) { border-color: var(--bx-blue); background: var(--bx-tint); }
.bwx-signs label:has(input:checked) .bwx-signs__box {
  background: var(--bx-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--bx-blue);
}
.bwx-signs input:focus-visible + .bwx-signs__box { box-shadow: 0 0 0 3px rgba(0,119,182,.3); }
.bwx-signs__txt b { display: block; font-size: 15px; font-weight: 700; color: var(--bx-ink); line-height: 1.4; }
.bwx-signs__txt em { display: block; font-style: normal; font-size: 13px; color: var(--bx-muted); margin-top: 3px; line-height: 1.5; }

.bwx-score { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 24px; padding: 24px 26px; border-radius: var(--bx-r-s); background: var(--bx-bg); border: 1px solid var(--bx-line); }
.bwx-score__ring { position: relative; width: 108px; height: 108px; flex: none; }
.bwx-score__ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.bwx-score__track { fill: none; stroke: var(--bx-line); stroke-width: 9; }
.bwx-score__arc { fill: none; stroke: var(--bx-blue); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .5s var(--bx-ease), stroke .4s; }
.bwx-score__ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 27px; font-weight: 900; color: var(--bx-ink); }
.bwx-score__copy { flex: 1 1 260px; }
.bwx-score__copy strong { display: block; font-size: 19px; font-weight: 850; color: var(--bx-ink); margin-bottom: 6px; }
.bwx-score__copy p { margin: 0 0 16px !important; font-size: 14.5px !important; line-height: 1.6 !important; color: var(--bx-body); }
.bwx-score[data-state="low"] .bwx-score__arc { stroke: #2aa76a; }
.bwx-score[data-state="mid"] .bwx-score__arc { stroke: #e8a020; }
.bwx-score[data-state="high"] .bwx-score__arc { stroke: #d8452e; }

/* ==========================================================================
   FAQ / share / author / prev-next
   ========================================================================== */
.bwx-sech { font-family: var(--bx-ff); font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.025em; color: var(--bx-ink); margin: 0 0 24px; line-height: 1.2; }
.bwx-sech span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bx-blue); margin-bottom: 8px; }
.bwx-sech--center { text-align: center; }

.bwx-faq { margin-top: 34px; }
.bwx-faq__item { background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); margin-bottom: 10px; overflow: hidden; transition: box-shadow .3s var(--bx-ease), border-color .3s; }
.bwx-faq__item[open] { border-color: var(--bx-line-2); box-shadow: var(--bx-sh); }
.bwx-faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; color: var(--bx-ink); }
.bwx-faq__item summary::-webkit-details-marker { display: none; }
.bwx-faq__item summary:hover { color: var(--bx-blue); }
.bwx-faq__item summary .bwx-chev { margin-left: auto; }
.bwx-faq__item[open] summary .bwx-chev { transform: rotate(-135deg); }
.bwx-faq__a { padding: 0 22px 20px; }
.bwx-faq__a p { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--bx-body); }

.bwx-sharerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding: 20px 24px; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); }
.bwx-sharerow > span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bx-muted); }
.bwx-sharerow > div { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bwx-share { font-family: var(--bx-ff); background: var(--bx-bg); border: 1px solid var(--bx-line); color: var(--bx-ink-2); font-size: 13px; font-weight: 650; padding: 9px 16px; border-radius: 100px; text-decoration: none; cursor: pointer; transition: all .25s var(--bx-ease); }
.bwx-share:hover { background: var(--bx-blue); border-color: var(--bx-blue); color: #fff; transform: translateY(-2px); }

.bwx-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 22px; padding: 26px; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r); }
.bwx-author b { display: block; font-size: 17px; color: var(--bx-ink); font-weight: 800; }
.bwx-author p { margin: 7px 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--bx-body); }
.bwx-author a { color: var(--bx-blue); font-weight: 700; text-decoration: none; font-size: 14px; }
.bwx-author a:hover { color: var(--bx-blue-d); }

.bwx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.bwx-pn__a { display: block; padding: 20px 22px; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r-s); text-decoration: none; transition: all .3s var(--bx-ease); }
.bwx-pn__a:hover { border-color: var(--bx-blue); transform: translateY(-3px); box-shadow: var(--bx-sh-m); }
.bwx-pn__a span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bx-blue); margin-bottom: 7px; }
.bwx-pn__a b { display: block; font-size: 15.5px; line-height: 1.4; color: var(--bx-ink); font-weight: 700; }
.bwx-pn__a--next { text-align: right; }

/* ---------- sidebar cards ---------- */
.bwx-side { position: relative; }
.bwx-card { background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r); padding: 24px; box-shadow: var(--bx-sh); margin-bottom: 20px; }
.bwx-card h3 { font-family: var(--bx-ff) !important; font-size: 17px !important; font-weight: 850; color: var(--bx-ink) !important; margin: 0 0 10px !important; }
.bwx-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--bx-body); }
.bwx-card--cta { background: linear-gradient(140deg, #fff 0%, var(--bx-tint) 100%); border-color: var(--bx-line-2); }
.bwx-card--cta .bwx-btn { margin-bottom: 9px; }
.bwx-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.bwx-tags a { font-size: 12px; font-weight: 600; color: var(--bx-blue); background: var(--bx-tint); border: 1px solid var(--bx-line-2); padding: 6px 12px; border-radius: 100px; text-decoration: none; transition: all .25s var(--bx-ease); }
.bwx-tags a:hover { background: var(--bx-blue); color: #fff; border-color: var(--bx-blue); }

/* ==========================================================================
   RELATED + END CTA
   ========================================================================== */
.bwx-related { background: #fff; border-top: 1px solid var(--bx-line); padding: 64px 0 70px; }
.bwx-grid { display: grid; gap: 22px; }
.bwx-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.bwx-pcard { display: block; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r); overflow: hidden; text-decoration: none; transition: all .35s var(--bx-ease); box-shadow: var(--bx-sh); }
.bwx-pcard:hover { transform: translateY(-6px); box-shadow: var(--bx-sh-m); border-color: var(--bx-line-2); }
.bwx-pcard__img { display: block; position: relative; height: 178px; background: linear-gradient(135deg, var(--bx-ink-2), var(--bx-blue)); background-size: cover; background-position: center; }
.bwx-pcard:hover .bwx-pcard__img { filter: saturate(1.06); }
.bwx-pcard__img i {
  position: absolute; right: 12px; bottom: 12px; font-style: normal; font-size: 11px; font-weight: 800;
  background: rgba(6,14,23,.78); color: #fff; padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(6px);
  letter-spacing: .04em;
}
.bwx-pcard__body { display: block; padding: 20px 22px 22px; }
.bwx-pcard__cat { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--bx-blue); margin-bottom: 9px; }
.bwx-pcard__body b { display: block; font-size: 17px; line-height: 1.34; font-weight: 800; color: var(--bx-ink); letter-spacing: -.012em; }
.bwx-pcard__body em { display: block; font-style: normal; font-size: 14px; line-height: 1.62; color: var(--bx-muted); margin: 9px 0 0; }
.bwx-pcard__body u, .bwx-pcard__meta u { text-decoration: none; color: var(--bx-blue); font-weight: 700; font-size: 13.5px; }
.bwx-pcard__body > u { display: inline-block; margin-top: 14px; }
.bwx-pcard__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--bx-line); font-size: 12.5px; color: var(--bx-muted); }
.bwx-pcard a { text-decoration: none; display: block; }

.bwx-endcta {
  position: relative; overflow: hidden; text-align: center; padding: 72px 0 78px;
  background: linear-gradient(135deg, var(--bx-ink-3) 0%, var(--bx-ink-2) 55%, #00456d 100%);
}
.bwx-endcta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,180,216,.28) 0%, transparent 65%); }
.bwx-endcta .bwx-wrap { position: relative; z-index: 1; }
.bwx-endcta h2 { font-family: var(--bx-ff); font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; color: #fff; margin: 0 0 12px; letter-spacing: -.028em; }
.bwx-endcta p { font-size: 17px; color: rgba(255,255,255,.72); margin: 0 auto 28px; max-width: 58ch; line-height: 1.6; }
.bwx-endcta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   ARCHIVE
   ========================================================================== */
.bwx-archive { background: var(--bx-bg); }
.bwx-ahero { padding: 76px 0 104px; text-align: center; }
.bwx-ahero h1 { font-family: var(--bx-ff); font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; color: #fff; letter-spacing: -.03em; margin: 18px 0 0; line-height: 1.08; }
.bwx-ahero > .bwx-wrap > p { font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.72); max-width: 62ch; margin: 16px auto 0; line-height: 1.6; }
.bwx-kicker--static { cursor: default; }

.bwx-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 30px auto 0; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 100px; padding: 6px 6px 6px 20px; backdrop-filter: blur(10px); transition: all .3s var(--bx-ease); }
.bwx-search:focus-within { background: rgba(255,255,255,.16); border-color: var(--bx-cyan); box-shadow: 0 0 0 4px rgba(0,180,216,.18); }
.bwx-search svg { width: 18px; height: 18px; color: rgba(255,255,255,.6); flex: none; }
.bwx-search input { flex: 1; background: none; border: 0; outline: none; color: #fff; font-family: var(--bx-ff); font-size: 15px; padding: 12px 0; min-width: 0; }
.bwx-search input::placeholder { color: rgba(255,255,255,.45); }
.bwx-search button { background: var(--bx-blue); color: #fff; border: 0; border-radius: 100px; padding: 12px 24px; font-family: var(--bx-ff); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s var(--bx-ease); }
.bwx-search button:hover { background: var(--bx-cyan); color: var(--bx-ink); }

.bwx-astats { display: flex; gap: 34px; justify-content: center; list-style: none; margin: 32px 0 0; padding: 0; }
.bwx-astats b { display: block; font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.bwx-astats span { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-top: 3px; }

.bwx-lead-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; margin: -54px 0 32px; position: relative; z-index: 5;
  background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-r); overflow: hidden;
  text-decoration: none; box-shadow: var(--bx-sh-m); transition: all .4s var(--bx-ease);
}
.bwx-lead-card:hover { transform: translateY(-5px); box-shadow: var(--bx-sh-l); }
.bwx-lead-card:not(.has-img) { grid-template-columns: 1fr; }
.bwx-lead-card__img { display: block; min-height: 330px; background-size: cover; background-position: center; }
.bwx-lead-card__body { display: block; padding: 38px 40px; align-self: center; }
.bwx-lead-card__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.bwx-pill { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; background: var(--bx-tint); color: var(--bx-blue); }
.bwx-pill--hot { background: var(--bx-blue); color: #fff; }
.bwx-pill--ghost { background: transparent; border: 1px solid var(--bx-line); color: var(--bx-muted); }
.bwx-lead-card__body b { display: block; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.22; font-weight: 900; color: var(--bx-ink); letter-spacing: -.026em; }
.bwx-lead-card__body em { display: block; font-style: normal; font-size: 15.5px; line-height: 1.68; color: var(--bx-body); margin: 14px 0 0; }
.bwx-lead-card__meta { display: block; font-size: 12.5px; color: var(--bx-muted); margin: 16px 0 20px; }
.bwx-lead-card u { text-decoration: none; }

.bwx-filterbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 18px; background: #fff; border: 1px solid var(--bx-line); border-radius: 100px; box-shadow: var(--bx-sh); margin-bottom: 18px; }
.bwx-filterbar__pills { display: flex; gap: 7px; flex-wrap: wrap; }
.bwx-fp { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bx-ff); font-size: 13.5px; font-weight: 650; color: var(--bx-body); background: transparent; border: 1px solid transparent; border-radius: 100px; padding: 9px 16px; cursor: pointer; transition: all .25s var(--bx-ease); }
.bwx-fp i { font-style: normal; font-size: 10.5px; font-weight: 800; background: var(--bx-bg); color: var(--bx-muted); border-radius: 100px; padding: 2px 7px; }
.bwx-fp:hover { background: var(--bx-tint); color: var(--bx-blue); }
.bwx-fp.is-on { background: var(--bx-blue); color: #fff; }
.bwx-fp.is-on i { background: rgba(255,255,255,.22); color: #fff; }
.bwx-filterbar__right { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.bwx-filterbar__right input, .bwx-filterbar__right select {
  font-family: var(--bx-ff); font-size: 13.5px; color: var(--bx-ink);
  border: 1px solid var(--bx-line); border-radius: 100px; padding: 10px 16px; background: var(--bx-bg); outline: none;
  transition: all .25s var(--bx-ease);
}
.bwx-filterbar__right input:focus, .bwx-filterbar__right select:focus { border-color: var(--bx-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.bwx-filterbar__right select { cursor: pointer; }

.bwx-topics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.bwx-topics a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--bx-body); background: #fff; border: 1px solid var(--bx-line); padding: 7px 14px; border-radius: 100px; text-decoration: none; transition: all .25s var(--bx-ease); }
.bwx-topics a i { font-style: normal; font-size: 10px; color: var(--bx-muted); }
.bwx-topics a:hover { border-color: var(--bx-blue); color: var(--bx-blue); background: var(--bx-tint); transform: translateY(-2px); }

.bwx-archive .bwx-grid--3 { padding-bottom: 8px; }
.bwx-pcard--a { opacity: 0; transform: translateY(18px); animation: bwxin .6s var(--bx-ease) forwards; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes bwxin { to { opacity: 1; transform: none; } }
.bwx-pcard--a[hidden] { display: none; }

.bwx-empty { text-align: center; padding: 48px 0; color: var(--bx-muted); font-size: 15px; }
.bwx-empty button { background: none; border: 0; color: var(--bx-blue); font-weight: 700; cursor: pointer; font-family: var(--bx-ff); font-size: 15px; text-decoration: underline; }

.bwx-pag { display: flex; gap: 7px; justify-content: center; margin: 34px 0 60px; flex-wrap: wrap; }
.bwx-pag .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 100px; background: #fff; border: 1px solid var(--bx-line); color: var(--bx-ink); text-decoration: none; font-size: 14px; font-weight: 650; transition: all .25s var(--bx-ease); }
.bwx-pag .page-numbers:hover { border-color: var(--bx-blue); color: var(--bx-blue); }
.bwx-pag .page-numbers.current { background: var(--bx-blue); border-color: var(--bx-blue); color: #fff; }

/* ==========================================================================
   FLOATING UI
   ========================================================================== */
.bwx-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: var(--bx-ink); color: #fff; font-family: var(--bx-ff); font-size: 14px; font-weight: 600;
  padding: 13px 24px; border-radius: 100px; box-shadow: var(--bx-sh-l); z-index: 10002;
  opacity: 0; pointer-events: none; transition: all .35s var(--bx-ease);
}
.bwx-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.bwx-top {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bx-blue); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,119,182,.4); z-index: 9998;
  opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none; transition: all .35s var(--bx-ease);
}
.bwx-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bwx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bwx-top:hover { background: var(--bx-ink); transform: translateY(-3px); }

.bwx-lightbox { position: fixed; inset: 0; z-index: 10005; background: rgba(6,14,23,.94); display: grid; place-items: center; padding: 34px; backdrop-filter: blur(6px); }
.bwx-lightbox[hidden] { display: none; }
.bwx-lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: var(--bx-sh-l); }
.bwx-lightbox button { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .25s; }
.bwx-lightbox button:hover { background: rgba(255,255,255,.28); }

.bwx-quotetip { position: absolute; z-index: 10001; transform: translate(-50%, -100%); }
.bwx-quotetip[hidden] { display: none; }
.bwx-quotetip button {
  background: var(--bx-ink); color: #fff; border: 0; border-radius: 100px; padding: 9px 16px;
  font-family: var(--bx-ff); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: var(--bx-sh-m);
}
.bwx-quotetip button:hover { background: var(--bx-blue); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .bwx-layout { grid-template-columns: 54px minmax(0,1fr) 290px; gap: 28px; }
  .bwx-body { padding: 34px 32px 38px; }
}
@media (max-width: 1024px) {
  .bwx-layout { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .bwx-rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 9997;
    flex-direction: row; justify-content: center; gap: 8px; padding: 10px 14px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--bx-line);
  }
  .bwx-rail__ring { width: 38px; height: 38px; margin: 0 6px 0 0; }
  .bwx-rail__ring svg { width: 38px; height: 38px; }
  .bwx-rail__btn[data-tip]::after { display: none; }
  .bwx-rail__sep { width: 1px; height: 22px; margin: 0 4px; }
  .bwx-toc--inline { display: block; }
  .bwx-toc--sticky { display: none; }
  .bwx-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: start; }
  .bwx-top { bottom: 84px; }
  .bwx-toast { bottom: 92px; }
  .bwx-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bwx-lead-card { grid-template-columns: 1fr; }
  .bwx-lead-card__img { min-height: 230px; }
}
@media (max-width: 860px) {
  .bwx-tool__grid { grid-template-columns: 1fr; }
  .bwx-facts { margin-left: 0; width: 100%; }
  .bwx-filterbar { border-radius: var(--bx-r); }
  .bwx-filterbar__right { margin-left: 0; width: 100%; }
  .bwx-filterbar__right input { flex: 1; }
}
@media (max-width: 720px) {
  .bwx-wrap { padding: 0 18px; }
  .bwx-hero, .bwx-ahero { padding: 48px 0 76px; }
  .bwx-body { padding: 26px 20px 30px; font-size: 17px; border-radius: var(--bx-r-s); }
  .bwx-body p.bwx-lead::first-letter { font-size: 2.8em; }
  .bwx-grid--3 { grid-template-columns: 1fr; }
  .bwx-side { grid-template-columns: 1fr; }
  .bwx-pn { grid-template-columns: 1fr; }
  .bwx-pn__a--next { text-align: left; }
  .bwx-astats { gap: 20px; }
  .bwx-astats b { font-size: 22px; }
  .bwx-stats li { flex: 1 1 100%; }
  .bwx-sharerow > div { margin-left: 0; }
  .bwx-lead-card { margin-top: -40px; }
  .bwx-lead-card__body { padding: 26px 22px; }
  .bwx-pullquote { padding: 26px 22px 24px; }
  .bwx-pullquote svg { position: static; display: block; margin-bottom: 10px; }
  .bwx-score { gap: 18px; }
  .bwx-tool { padding: 24px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .bwx *, .bwx *::before, .bwx *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .bwx-pcard--a { opacity: 1; transform: none; }
}

@media print {
  .bwx-rail, .bwx-side, .bwx-top, .bwx-progress, .bwx-endcta, .bwx-related, .bwx-sharerow, .bwx-hero__bg { display: none !important; }
  .bwx-layout { display: block; }
  .bwx-body { border: 0; box-shadow: none; padding: 0; }
}

/* ==========================================================================
   Overrides — article-body link rules must not swallow buttons and
   dark-panel text inside the interactive blocks.
   ========================================================================== */
.bwx-body a.bwx-btn,
.bwx-body .bwx-btn,
.bwx .bwx-btn { box-shadow: none; background-image: none; }
.bwx-body a.bwx-btn::after,
.bwx-body .bwx-share::after { content: none !important; }
.bwx-body a.bwx-btn--primary,
.bwx-body a.bwx-btn--primary:hover { color: #fff; background: var(--bx-blue); border-color: var(--bx-blue); }
.bwx-body a.bwx-btn--primary:hover { background: var(--bx-blue-d); border-color: var(--bx-blue-d); box-shadow: 0 10px 26px rgba(0,119,182,.34); }
.bwx-body a.bwx-btn--ghost { color: var(--bx-blue); background: transparent; }
.bwx-body a.bwx-btn--light { color: #fff; }
.bwx-body a.bwx-btn:hover { background-color: var(--bx-blue-d); }

.bwx-result .bwx-result__val,
.bwx-body .bwx-result strong { color: #fff; }
.bwx-result__label, .bwx-result__foot { color: rgba(255,255,255,.72); }
.bwx-body .bwx-result__sub { color: var(--bx-cyan); }

.bwx-body .bwx-tool h3,
.bwx-body .bwx-score__copy strong,
.bwx-body .bwx-signs__txt b,
.bwx-body .bwx-inlinecta__txt strong { color: var(--bx-ink); }

.bwx-body .bwx-pullquote p,
.bwx-body .bwx-pullquote cite { color: #fff; }
.bwx-body .bwx-pullquote cite { color: rgba(255,255,255,.6); }

/* Interactive blocks and pull quotes breathe outside the text measure. */
@media (min-width: 900px) {
  .bwx-body .bwx-tool,
  .bwx-body .bwx-pullquote,
  .bwx-body .bwx-inlinecta { margin-left: -22px; margin-right: -22px; }
}

/* progress ring numerals sit on one line */
.bwx-rail__pct { display: flex !important; align-items: baseline; justify-content: center; gap: 1px; }

/* list markers must not appear on the tool checkboxes */
.bwx-body .bwx-signs li::before,
.bwx-body .bwx-checks li::before { content: none; }
.bwx-body .bwx-signs li, .bwx-body .bwx-key__body li { padding-left: 0; }
.bwx-body .bwx-key__body li { padding-left: 30px; }

/* ---------- polish pass ---------- */
.bwx-stats b { white-space: nowrap; }
.bwx-hero__bg { opacity: .24; filter: saturate(.55) contrast(1.02) blur(2px); }
.bwx-body p:empty, .bwx-body p:blank { display: none; }
.bwx-body > p:last-child:empty { display: none; }
.bwx-rail__pct { font-size: 10.5px; letter-spacing: -.02em; }
.bwx-rail__pct i { font-size: 7.5px; }

/* The theme replaces every <select> with a jQuery nice-select widget whose
   width is content-based; it overflowed the tool columns. Use the native
   control, styled by this kit. */
.bwx select { display: block !important; }
.bwx .nice-select { display: none !important; }
