:root {
  --bw-navy: #102F3A;
  --bw-navy-2: #0B2530;
  --bw-teal: #18A98B;
  --bw-teal-dark: #10826D;
  --bw-gold: #D9A441;
  --bw-warm-white: #F7F6F1;
  --bw-charcoal: #172126;
  --bw-muted: #66767C;
  --bw-border: #D9E1DE;
  --bw-soft-teal: #E7F5F1;
  --bw-white: #FFFFFF;
  --bw-shadow: 0 18px 50px rgba(16,47,58,.09);
}

html { scroll-behavior: smooth; }
body.baytwatt-core {
  margin: 0;
  background: var(--bw-warm-white);
  color: var(--bw-charcoal);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
body.bw-lang-ar { font-family: "Tajawal", Tahoma, Arial, sans-serif; }
body.bw-lang-en { direction: ltr; }

body.baytwatt-core h1,
body.baytwatt-core h2,
body.baytwatt-core h3,
body.baytwatt-core h4,
body.baytwatt-core h5,
body.baytwatt-core h6 {
  color: var(--bw-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
body.bw-lang-ar h1,
body.bw-lang-ar h2,
body.bw-lang-ar h3 { letter-spacing: 0; }

body.baytwatt-core a { color: var(--bw-teal); text-decoration: none; }
body.baytwatt-core a:hover,
body.baytwatt-core a:focus { color: var(--bw-navy); }

.bw-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.bw-main { min-height: 55vh; }

/* Header */
.bw-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(217,225,222,.92);
  backdrop-filter: blur(12px);
}
.bw-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.bw-brand {
  display: inline-flex;
  align-items: center;
  color: var(--bw-navy)!important;
  min-width: 235px;
  flex: 0 0 auto;
}
.bw-brand-image-link { line-height: 0; }
.bw-brand-image {
  display: block;
  width: 235px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.bw-desktop-nav { display:flex; align-items:center; justify-content:center; gap:18px; flex:1; }
.bw-desktop-nav a { color: var(--bw-charcoal)!important; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bw-desktop-nav a:hover { color: var(--bw-teal)!important; }
.bw-header-actions { display:flex; align-items:center; gap:10px; }
.bw-lang-switch {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--bw-border);
  border-radius:999px;
  background:var(--bw-white);
  color:var(--bw-navy)!important;
  font-weight:700;
  font-size:13px;
}
.bw-mobile-menu { display:none; position:relative; }
.bw-mobile-menu summary { list-style:none; cursor:pointer; font-size:25px; color:var(--bw-navy); }
.bw-mobile-menu summary::-webkit-details-marker { display:none; }
.bw-mobile-panel {
  position:absolute;
  inset-inline-end:0;
  top:42px;
  width:min(320px, calc(100vw - 32px));
  background:var(--bw-white);
  border:1px solid var(--bw-border);
  border-radius:16px;
  box-shadow:var(--bw-shadow);
  padding:12px;
}
.bw-mobile-panel a { display:block; padding:10px 12px; color:var(--bw-charcoal)!important; border-radius:10px; font-weight:600; }
.bw-mobile-panel a:hover { background:var(--bw-soft-teal); color:var(--bw-navy)!important; }
.bw-mobile-lang { margin-top:8px; border-top:1px solid var(--bw-border); }

/* Hero */
.bw-hero {
  background:
    radial-gradient(circle at 78% 25%, rgba(217,164,65,.25), transparent 30%),
    radial-gradient(circle at 25% 15%, rgba(24,169,139,.22), transparent 27%),
    linear-gradient(135deg, var(--bw-navy-2), var(--bw-navy));
  color:var(--bw-white);
  overflow:hidden;
}
.bw-hero-grid { min-height:560px; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:50px; padding-block:72px; }
.bw-hero-copy { max-width:720px; }
.bw-eyebrow {
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(24,169,139,.14);
  border:1px solid rgba(24,169,139,.35);
  color:#BDF1E6;
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
}
.bw-hero h1 { color:var(--bw-white)!important; font-size:clamp(42px,6vw,72px); margin:0 0 20px; max-width:900px; }
.bw-hero p { color:#D7E5E8; font-size:18px; max-width:720px; margin:0; }
.bw-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.bw-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border-radius:12px;
  font-weight:700;
  transition:.2s ease;
}
.bw-btn-primary { background:var(--bw-teal); color:var(--bw-white)!important; box-shadow:0 12px 28px rgba(24,169,139,.24); }
.bw-btn-primary:hover { background:var(--bw-teal-dark); color:var(--bw-white)!important; transform:translateY(-1px); }
.bw-btn-light { background:var(--bw-white); color:var(--bw-navy)!important; }
.bw-btn-light:hover { background:var(--bw-soft-teal); color:var(--bw-navy)!important; }
.bw-hero-visual { min-height:400px; position:relative; display:grid; place-items:center; }
.bw-energy-orb { position:absolute; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle, rgba(24,169,139,.28), rgba(217,164,65,.08) 55%, transparent 70%); filter:blur(1px); }
.bw-house-card {
  width:min(330px,80%);
  aspect-ratio:1.05;
  border-radius:34px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 30px 70px rgba(0,0,0,.18);
  position:relative;
  backdrop-filter:blur(10px);
}
.bw-house-roof {
  position:absolute;
  width:55%;
  height:55%;
  inset:23% 22% auto;
  border:8px solid rgba(255,255,255,.92);
  border-bottom:none;
  transform:rotate(45deg);
  border-radius:12px 5px 0 5px;
}
.bw-house-bars { position:absolute; inset-inline-start:28%; bottom:20%; display:flex; align-items:flex-end; gap:10px; z-index:2; }
.bw-house-bars i { display:block; width:20px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,#39D2B4,var(--bw-teal)); }
.bw-house-bars i:nth-child(1){height:52px}.bw-house-bars i:nth-child(2){height:82px}.bw-house-bars i:nth-child(3){height:112px}.bw-house-bars i:nth-child(4){height:145px;background:linear-gradient(180deg,#F0C76C,var(--bw-gold))}

/* Sections & cards */
.bw-section { padding-block:72px; }
.bw-section-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:24px; }
.bw-section-heading h2 { margin:0; font-size:clamp(30px,4vw,44px); }
.bw-tool-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.bw-tool-card {
  min-height:150px;
  background:var(--bw-white);
  border:1px solid var(--bw-border);
  border-radius:18px;
  padding:22px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  color:var(--bw-navy)!important;
  box-shadow:0 12px 30px rgba(16,47,58,.05);
  transition:.2s ease;
}
.bw-tool-card:hover { transform:translateY(-3px); border-color:rgba(24,169,139,.55); box-shadow:var(--bw-shadow); }
.bw-tool-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:15px; background:var(--bw-soft-teal); font-size:27px; }
.bw-tool-card strong { font-size:18px; }
.bw-scan-section { padding-top:10px; }
.bw-scan-grid {
  background:linear-gradient(135deg,var(--bw-navy),#153F4A);
  color:var(--bw-white);
  border-radius:28px;
  padding:50px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:40px;
  align-items:center;
  box-shadow:var(--bw-shadow);
}
.bw-scan-grid h2 { color:var(--bw-white)!important; font-size:clamp(30px,4vw,48px); margin:10px 0 14px; }
.bw-scan-grid p { color:#D6E6E9; margin-bottom:24px; }
.bw-scan-kicker { color:#78E2CD; font-weight:800; }
.bw-scan-preview { min-height:270px; border:1px solid rgba(255,255,255,.18); border-radius:20px; background:rgba(255,255,255,.07); padding:25px; display:flex; align-items:center; justify-content:center; gap:24px; }
.bw-scan-frame { width:130px; height:170px; border:2px dashed rgba(255,255,255,.55); border-radius:16px; display:grid; place-items:center; font-size:44px; }
.bw-scan-lines { flex:1; }
.bw-scan-lines span { display:block; height:12px; margin:16px 0; border-radius:999px; background:rgba(255,255,255,.15); }
.bw-scan-lines span:nth-child(2){width:80%}.bw-scan-lines span:nth-child(3){width:62%}

/* Hub */
.bw-hub-hero { padding:74px 0 54px; background:linear-gradient(135deg,var(--bw-navy-2),var(--bw-navy)); color:var(--bw-white); }
.bw-hub-hero h1 { color:var(--bw-white)!important; font-size:clamp(42px,6vw,68px); margin:8px 0 12px; }
.bw-hub-hero p { color:#D6E6E9; max-width:760px; font-size:18px; margin:0; }
.bw-card { background:var(--bw-white); border:1px solid var(--bw-border); border-radius:18px; padding:26px; box-shadow:0 10px 28px rgba(16,47,58,.06); }
.bw-coming-soon { max-width:760px; }
.bw-highlight { background:var(--bw-soft-teal); border-inline-start:4px solid var(--bw-teal); padding:18px 20px; border-radius:12px; }
.bw-gold-accent { color:var(--bw-gold); }

/* Footer */
.bw-site-footer { margin-top:78px; background:var(--bw-navy-2); color:#D8E4E6; }
.bw-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:42px; padding-block:52px 36px; }
.bw-footer-grid-premium { grid-template-columns:1.7fr 1fr 1fr 1.15fr; }
.bw-footer-grid>div { display:flex; flex-direction:column; gap:8px; }
.bw-footer-grid strong { color:var(--bw-white); margin-bottom:6px; }
.bw-footer-grid a { color:#D8E4E6!important; }
.bw-footer-grid a:hover { color:#7CE4D0!important; }
.bw-footer-brand { font-size:25px; font-weight:800; color:var(--bw-white); }
.bw-footer-brand span { font-family:"Tajawal",Tahoma,sans-serif; color:#7CE4D0; font-size:20px; margin-inline-start:8px; }
.bw-footer-grid p { max-width:460px; color:#B9CBCE; }
.bw-footer-bottom { min-height:66px; border-top:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:13px; color:#9FB5B9; }

/* Generic inputs/buttons */
body.baytwatt-core button,
body.baytwatt-core input[type="button"],
body.baytwatt-core input[type="submit"],
body.baytwatt-core .wp-block-button__link,
body.baytwatt-core .ast-button,
body.baytwatt-core .button {
  background:var(--bw-teal);
  border-color:var(--bw-teal);
  color:var(--bw-white);
  border-radius:10px;
  font-weight:700;
}
body.baytwatt-core input,
body.baytwatt-core select,
body.baytwatt-core textarea { border-color:var(--bw-border); border-radius:8px; }

@media (max-width: 1080px) {
  .bw-desktop-nav { display:none; }
  .bw-mobile-menu { display:block; }
  .bw-header-inner { min-height:68px; }
  .bw-hero-grid { grid-template-columns:1fr; min-height:0; }
  .bw-hero-visual { min-height:320px; }
  .bw-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .bw-shell { width:min(100% - 28px,1180px); }
  .bw-brand { min-width:0; }
  .bw-brand-image { width:190px; max-height:50px; }
  .bw-lang-switch { display:none; }
  .bw-hero-grid { padding-block:50px; gap:28px; }
  .bw-hero h1 { font-size:42px; }
  .bw-hero p { font-size:16px; }
  .bw-hero-visual { min-height:250px; }
  .bw-energy-orb { width:260px; height:260px; }
  .bw-tool-grid { grid-template-columns:1fr; }
  .bw-tool-card { min-height:110px; }
  .bw-section { padding-block:52px; }
  .bw-scan-grid { grid-template-columns:1fr; padding:30px 22px; border-radius:20px; }
  .bw-scan-preview { min-height:220px; }
  .bw-footer-grid { grid-template-columns:1fr; gap:25px; padding-block:42px 30px; }
  .bw-footer-bottom { padding-block:18px; flex-direction:column; align-items:flex-start; }
}


/* v1.2.0 — tighter Astra integration */
body.baytwatt-core #primary,
body.baytwatt-core .content-area,
body.baytwatt-core .site-content,
body.baytwatt-core .site-content > .ast-container,
body.baytwatt-core .ast-separate-container #primary,
body.baytwatt-core .ast-page-builder-template .site-content > .ast-container {
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

/* Calculator */
.bw-calc-hero { padding-bottom:48px; }
.bw-calc-layout {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:24px;
  align-items:start;
}
.bw-calculator-card { padding:30px; }
.bw-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.bw-field { display:flex; flex-direction:column; gap:8px; font-weight:700; color:var(--bw-navy); }
.bw-field small { font-weight:600; color:#62757b; }
.bw-field em {
  font-style:normal;
  font-weight:500;
  font-size:12.5px;
  line-height:1.45;
  color:#687a80;
}
.bw-field input {
  min-height:48px;
  width:100%;
  padding:10px 12px;
  background:#fff;
  color:var(--bw-charcoal);
  border:1px solid var(--bw-border);
  border-radius:10px;
  font-size:16px;
}
.bw-check {
  margin-top:20px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:var(--bw-charcoal);
}
.bw-check input { width:18px; height:18px; accent-color:var(--bw-teal); }
.bw-calc-submit {
  margin-top:20px;
  min-height:50px;
  padding:0 24px!important;
  border-radius:11px!important;
  cursor:pointer;
}
.bw-calc-results {
  margin-top:30px;
  padding-top:28px;
  border-top:1px solid var(--bw-border);
}
.bw-results-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.bw-result {
  padding:18px;
  border:1px solid var(--bw-border);
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
}
.bw-result span { display:block; color:#63767c; font-size:13px; font-weight:700; margin-bottom:7px; }
.bw-result strong { display:block; color:var(--bw-navy); font-size:26px; line-height:1.15; }
/* v1.6.1: AC result cards use the same readable label/value stack as other calculators. */
.bw-result-card {
  padding:18px;
  border:1px solid var(--bw-border);
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
}
.bw-result-card span { display:block; color:#63767c; font-size:13px; font-weight:700; margin-bottom:7px; }
.bw-result-card strong { display:block; color:var(--bw-navy); font-size:26px; line-height:1.15; }
.bw-result-guidance { margin:8px 0 0; color:#63767c; font-size:14px; line-height:1.55; }
.bw-tier-breakdown {
  margin-top:16px;
  padding:18px 20px;
  border-radius:14px;
  background:var(--bw-soft-teal);
  border:1px solid #cceae3;
}
.bw-tier-breakdown strong { color:var(--bw-navy); }
.bw-tier-breakdown p { margin:8px 0 0; color:#40545a; }
.bw-calc-aside { display:grid; gap:16px; }
.bw-calc-aside .bw-card { padding:22px; }
.bw-calc-aside p { margin:10px 0 0; font-size:14px; color:#53686e; }
.bw-source-card strong { display:block; color:var(--bw-navy); font-size:14px; line-height:1.6; }
.bw-source-card a { display:inline-block; margin-top:12px; font-size:13px; font-weight:700; }
.bw-hub-tools { margin-bottom:18px; }

@media (max-width: 900px) {
  .bw-calc-layout { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .bw-calculator-card { padding:20px; }
  .bw-form-grid, .bw-results-grid { grid-template-columns:1fr; }
  .bw-result strong { font-size:23px; }
}

/* v1.3.0 — Electricity & Appliances */
.bw-form-grid-single { grid-template-columns:minmax(0,1fr); max-width:520px; }
.bw-hub-guide-block { margin-top:54px; }
.bw-guide-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.bw-guide-card {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:150px;
  padding:24px;
  border:1px solid var(--bw-border);
  border-radius:18px;
  background:var(--bw-white);
  color:var(--bw-navy)!important;
  box-shadow:0 10px 28px rgba(16,47,58,.05);
  transition:.2s ease;
}
.bw-guide-card:hover { transform:translateY(-2px); border-color:rgba(24,169,139,.55); box-shadow:var(--bw-shadow); }
.bw-guide-card strong { font-size:20px; line-height:1.4; }
.bw-guide-card span { margin-top:auto; color:var(--bw-teal); font-weight:700; font-size:14px; }
.bw-guide-hero { padding:74px 0 54px; background:linear-gradient(135deg,var(--bw-navy-2),var(--bw-navy)); color:var(--bw-white); }
.bw-guide-hero h1 { color:var(--bw-white)!important; font-size:clamp(40px,5.5vw,64px); margin:8px 0 14px; max-width:920px; }
.bw-guide-hero p { color:#D6E6E9; max-width:820px; font-size:18px; margin:0; }
.bw-guide-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr); gap:28px; align-items:start; padding-block:64px; }
.bw-guide-content { background:var(--bw-white); border:1px solid var(--bw-border); border-radius:22px; padding:34px; box-shadow:0 12px 32px rgba(16,47,58,.05); }
.bw-guide-section + .bw-guide-section { margin-top:34px; padding-top:28px; border-top:1px solid var(--bw-border); }
.bw-guide-section h2 { margin:0 0 12px; font-size:28px; }
.bw-guide-section p { margin:0; color:#42575d; }
.bw-guide-cta { margin-top:34px; padding:24px; background:var(--bw-soft-teal); border:1px solid #cceae3; border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.bw-guide-cta strong { color:var(--bw-navy); font-size:18px; }
.bw-guide-faq { margin-top:42px; }
.bw-guide-faq h2 { margin-bottom:16px; }
.bw-guide-faq details { border:1px solid var(--bw-border); border-radius:12px; background:#fff; margin:10px 0; padding:0 16px; }
.bw-guide-faq summary { cursor:pointer; padding:16px 0; font-weight:700; color:var(--bw-navy); }
.bw-guide-faq p { margin:0 0 16px; color:#4d6268; }
.bw-guide-aside { display:grid; gap:16px; position:sticky; top:96px; }
.bw-guide-aside .bw-card { padding:22px; }
.bw-source-card a + a { margin-inline-start:12px; }

@media (max-width: 900px) {
  .bw-guide-layout { grid-template-columns:1fr; }
  .bw-guide-aside { position:static; }
}
@media (max-width: 720px) {
  .bw-guide-card-grid { grid-template-columns:1fr; }
  .bw-guide-content { padding:22px; }
  .bw-guide-cta { flex-direction:column; align-items:flex-start; }
}


/* v1.3.1 — finishing pass: cleaner hubs, Arabic numeric isolation, related tools */
.bw-hub-hero { padding:66px 0 50px; }
.bw-hub-hero + .bw-section { padding-top:56px; }
.bw-hub-guide-block { margin-top:40px; }
.bw-hub-tools { margin-bottom:8px; }

body.bw-lang-ar .bw-result strong,
body.bw-lang-ar .bw-tier-breakdown [data-result] {
  direction:ltr;
  unicode-bidi:isolate;
  text-align:right;
}
body.bw-lang-ar .bw-tier-breakdown [data-result] { display:inline-block; }

.bw-related-tools-section {
  padding-top:18px;
  padding-bottom:64px;
}
.bw-related-tools-section .bw-section-heading { margin-bottom:20px; }
.bw-related-tools-grid .bw-tool-card { min-height:132px; }

@media (max-width: 720px) {
  .bw-hub-hero { padding:50px 0 40px; }
  .bw-hub-hero + .bw-section { padding-top:42px; }
  .bw-related-tools-section { padding-bottom:48px; }
}


/* v1.4.0 — Windows & Insulation calculators */
.bw-model-note {
  margin: 2px 0 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFF9E9;
  border: 1px solid rgba(217,164,65,.35);
  color: #5B4B28;
  font-size: 14px;
}
.bw-envelope-results .bw-result strong { font-size: 25px; }
body.bw-lang-ar .bw-envelope-results .bw-result strong {
  direction:ltr;
  unicode-bidi:isolate;
  text-align:right;
}
.bw-source-card a { display:inline-block; margin-inline-end:10px; margin-top:4px; font-weight:700; font-size:13px; }
@media (max-width:720px) {
  .bw-envelope-results .bw-result strong { font-size:22px; }
}


/* v1.7.0 Trust, SEO and site-information system */
.bw-footer-logo { display:inline-flex; width:220px; line-height:0; margin-bottom:8px; padding:9px 12px; background:#fff; border-radius:12px; }
.bw-footer-logo img { width:100%; height:auto; opacity:.98; }
.bw-footer-small { color:#9FB5B9; font-size:12px; line-height:1.6; margin-top:6px; }
.bw-trust-hero { padding:70px 0 54px; background:linear-gradient(135deg,var(--bw-navy-2),var(--bw-navy)); color:var(--bw-white); }
.bw-trust-hero h1 { color:var(--bw-white)!important; font-size:clamp(40px,5.4vw,66px); margin:8px 0 14px; }
.bw-trust-hero p { color:#D6E6E9; font-size:18px; max-width:820px; margin:0 0 10px; }
.bw-updated-date { color:#9DC1C7; font-size:13px; }
.bw-trust-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.bw-trust-content { display:flex; flex-direction:column; gap:18px; }
.bw-trust-card { background:var(--bw-white); border:1px solid var(--bw-border); border-radius:18px; padding:28px; box-shadow:0 10px 28px rgba(16,47,58,.05); }
.bw-trust-card h2 { margin:0 0 10px; font-size:25px; }
.bw-trust-card p { margin:0; color:#42565D; }
.bw-trust-note { border-inline-start:4px solid var(--bw-gold); }
.bw-trust-aside { display:flex; flex-direction:column; gap:18px; position:sticky; top:100px; }
.bw-trust-nav { display:flex; flex-direction:column; gap:6px; }
.bw-trust-nav strong { margin-bottom:5px; }
.bw-trust-nav a { padding:8px 10px; border-radius:9px; color:var(--bw-charcoal)!important; font-weight:600; }
.bw-trust-nav a:hover,.bw-trust-nav a.is-current { background:var(--bw-soft-teal); color:var(--bw-navy)!important; }
.bw-source-list { display:grid; gap:12px; }
.bw-source-row { display:grid; grid-template-columns:1.1fr 1.6fr auto; gap:18px; align-items:center; padding:20px 22px; border:1px solid var(--bw-border); border-radius:16px; background:var(--bw-white); color:var(--bw-charcoal)!important; }
.bw-source-row:hover { border-color:rgba(24,169,139,.55); box-shadow:0 10px 28px rgba(16,47,58,.06); }
.bw-source-row strong { color:var(--bw-navy); }
.bw-source-row span { color:var(--bw-muted); }
.bw-contact-form { display:flex; flex-direction:column; gap:16px; }
.bw-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.bw-contact-form label { display:flex; flex-direction:column; gap:6px; font-weight:700; color:var(--bw-navy); }
.bw-contact-form input,.bw-contact-form textarea { width:100%; background:var(--bw-white); border:1px solid var(--bw-border); padding:12px 14px; color:var(--bw-charcoal); }
.bw-contact-form textarea { resize:vertical; min-height:150px; }
.bw-form-note { font-size:13px; color:var(--bw-muted)!important; }
.bw-honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.bw-contact-status { padding:14px 16px; border-radius:12px; margin-bottom:16px; font-weight:700; }
.bw-contact-success { background:#E5F7F0; border:1px solid #9BDDCB; color:#0C6C59; }
.bw-contact-error { background:#FFF1EF; border:1px solid #F2B8AF; color:#8A2E22; }
.bw-explore-block { margin-top:56px; padding-top:40px; border-top:1px solid var(--bw-border); }
.bw-mini-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.bw-mini-link { min-height:74px; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:15px 17px; border:1px solid var(--bw-border); border-radius:14px; background:var(--bw-white); color:var(--bw-navy)!important; }
.bw-mini-link:hover { border-color:rgba(24,169,139,.55); transform:translateY(-1px); }
.bw-calculator-summary { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 26px; margin-bottom:40px; border-radius:18px; background:linear-gradient(135deg,var(--bw-navy),#153F4A); color:var(--bw-white); }
.bw-calculator-summary strong { font-size:22px; }
.bw-calculator-summary p { color:#D6E6E9; margin:5px 0 0; max-width:760px; }
.bw-calculator-group { margin-top:44px; }
.bw-calculator-group:first-of-type { margin-top:0; }
.bw-group-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.bw-group-heading h2 { margin:0 0 5px; font-size:30px; }
.bw-group-heading p { margin:0; color:var(--bw-muted); }
.bw-group-heading>a { font-weight:700; white-space:nowrap; }

@media (max-width: 980px) {
  .bw-footer-grid-premium { grid-template-columns:1.4fr 1fr 1fr; }
  .bw-footer-grid-premium>div:last-child { grid-column:1/-1; }
  .bw-trust-layout { grid-template-columns:1fr; }
  .bw-trust-aside { position:static; display:grid; grid-template-columns:1fr 1fr; }
  .bw-mini-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .bw-footer-grid-premium { grid-template-columns:1fr; }
  .bw-footer-grid-premium>div:last-child { grid-column:auto; }
  .bw-trust-aside { grid-template-columns:1fr; }
  .bw-source-row { grid-template-columns:1fr auto; }
  .bw-source-row span:nth-child(2) { grid-column:1/-1; grid-row:2; }
  .bw-contact-grid { grid-template-columns:1fr; }
  .bw-mini-link-grid { grid-template-columns:1fr; }
  .bw-calculator-summary { flex-direction:column; align-items:flex-start; }
  .bw-group-heading { align-items:flex-start; flex-direction:column; }
}


/* v1.8.0 Technical SEO & editorial UX */
.bw-breadcrumb-wrap{background:#F7F6F1;border-bottom:1px solid var(--bw-border)}
.bw-breadcrumbs{list-style:none;margin:0;padding:10px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--bw-muted)}
.bw-breadcrumbs li{display:flex;align-items:center;gap:8px}.bw-breadcrumbs a{color:var(--bw-muted)!important;text-decoration:none}.bw-breadcrumbs a:hover{color:var(--bw-teal)!important}.bw-breadcrumbs [aria-current="page"]{color:var(--bw-navy);font-weight:600}
.bw-editorial-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;font-size:13px;color:#BFD3D7}.bw-editorial-meta a{color:#E7F5F1!important;font-weight:700}.bw-editorial-meta time{direction:ltr;unicode-bidi:isolate}
.bw-toc{background:var(--bw-soft-teal);border:1px solid #C9E8DF;border-radius:16px;padding:20px 22px;margin:0 0 32px}.bw-toc strong{display:block;color:var(--bw-navy);margin-bottom:9px;font-size:18px}.bw-toc ol{margin:0;padding-inline-start:22px;display:grid;gap:7px}.bw-toc a{color:var(--bw-navy)!important;text-decoration:none;font-weight:600}.bw-toc a:hover{color:var(--bw-teal)!important;text-decoration:underline}.bw-guide-section{scroll-margin-top:100px}.bw-guide-faq{scroll-margin-top:100px}.bw-guide-next{margin-top:40px;padding-top:30px;border-top:1px solid var(--bw-border)}.bw-guide-next h2{margin:0 0 18px}
.bw-hub-context{padding:28px 0 0;background:var(--bw-bg)}.bw-hub-context-card{background:#fff;border:1px solid var(--bw-border);border-radius:16px;padding:22px 26px;box-shadow:0 8px 24px rgba(16,47,58,.04)}.bw-hub-context-card h2{font-size:22px;margin:0 0 8px}.bw-hub-context-card p{margin:0;color:var(--bw-muted);max-width:960px}
@media(max-width:680px){.bw-editorial-meta{gap:7px}.bw-breadcrumbs{font-size:12px}.bw-hub-context{padding-top:20px}.bw-hub-context-card{padding:18px}.bw-toc{padding:18px}}


/* v1.9.0 — Air Conditioning SEO expansion */
.bw-ac-pathways{margin-top:44px;padding-top:36px;border-top:1px solid var(--bw-border)}
.bw-ac-pathway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bw-ac-pathway-card{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--bw-border);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(16,47,58,.04)}
.bw-ac-pathway-card h3{margin:0 0 4px;color:var(--bw-navy);font-size:21px;line-height:1.35}
.bw-ac-pathway-card a{color:var(--bw-navy)!important;font-weight:700;text-decoration:none;padding:7px 0;border-bottom:1px solid #edf1ef}
.bw-ac-pathway-card a:last-child{border-bottom:0}.bw-ac-pathway-card a:hover{color:var(--bw-teal)!important}
.bw-pathway-kicker{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--bw-teal);font-weight:800}
body.bw-lang-ar .bw-pathway-kicker{text-transform:none;letter-spacing:0}
@media(max-width:900px){.bw-ac-pathway-grid{grid-template-columns:1fr}}


/* v1.10.0 — Electricity SEO expansion */
.bw-electricity-pathways{margin-top:44px;padding-top:36px;border-top:1px solid var(--bw-border)}
.bw-electricity-pathway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bw-electricity-pathway-card{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--bw-border);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(16,47,58,.04)}
.bw-electricity-pathway-card h3{margin:0 0 4px;color:var(--bw-navy);font-size:21px;line-height:1.35}
.bw-electricity-pathway-card a{color:var(--bw-navy)!important;font-weight:700;text-decoration:none;padding:7px 0;border-bottom:1px solid #edf1ef}
.bw-electricity-pathway-card a:last-child{border-bottom:0}.bw-electricity-pathway-card a:hover{color:var(--bw-teal)!important}
@media(max-width:900px){.bw-electricity-pathway-grid{grid-template-columns:1fr}}


/* v1.15.0 — GSC query/CTR optimisation */
.bw-query-answer{margin:0 0 18px;padding:24px;border:1px solid #B8E4D9;border-radius:18px;background:linear-gradient(135deg,#F0FAF7,#FFFFFF);box-shadow:0 10px 28px rgba(16,47,58,.05)}
.bw-query-answer-kicker{display:inline-block;margin-bottom:8px;color:var(--bw-teal);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.bw-query-answer h2{margin:0 0 10px;font-size:24px;color:var(--bw-navy)}
.bw-query-answer p{margin:0;color:#42575d}
.bw-query-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.bw-query-metrics>div{padding:14px 13px;border:1px solid var(--bw-border);border-radius:13px;background:#fff}
.bw-query-metrics span{display:block;margin-bottom:5px;color:#667a80;font-size:12px;font-weight:600}
.bw-query-metrics strong{display:block;color:var(--bw-navy);font-size:17px;line-height:1.3}
.bw-query-sizes{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 22px;padding:13px 16px;border:1px solid var(--bw-border);border-radius:14px;background:#fff}
.bw-query-sizes>strong{color:var(--bw-navy);font-size:14px}
.bw-query-sizes>div{display:flex;gap:8px;flex-wrap:wrap}
.bw-query-sizes a{display:inline-flex;padding:7px 10px;border:1px solid var(--bw-border);border-radius:999px;color:var(--bw-navy)!important;text-decoration:none;font-size:13px;font-weight:700}
.bw-query-sizes a:hover,.bw-query-sizes a.is-current{border-color:var(--bw-teal);background:var(--bw-soft-teal);color:var(--bw-teal)!important}
@media(max-width:820px){.bw-query-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bw-query-sizes{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.bw-query-metrics{grid-template-columns:1fr}.bw-query-answer{padding:20px}}
