/* Normalize base font size to match other calculators */
#ct-child-bmi-calculator{ font-size: 16px; }
#ct-child-bmi-calculator .ct-note{ font-size: 16px; line-height: 1.65; }
#ct-child-bmi-calculator .ct-method-note{ font-size: 14px; line-height: 1.55; }

/* Child BMI Calculator — calc-specific styles */
#ct-child-bmi-calculator .ct-note ul { margin: 8px 0 0; padding-left: 18px; }
#ct-child-bmi-calculator table { width: 100%; border-collapse: collapse; }
#ct-child-bmi-calculator .ct-cbmi-table-wrap { overflow-x: auto; }
#ct-child-bmi-calculator .ct-cbmi-muted { color: var(--calc-text-muted); }

/* Hide ad placeholders until ads are live */
#ct-child-bmi-calculator .calc-ad-space { display: none; }

/* FAQ/Sources wrapper styling (calc-scoped) */
#ct-child-bmi-calculator .calc-sources{
  margin-top:16px; padding:16px; border-radius:12px;
  border:1px solid var(--calc-border, rgba(255,255,255,0.14));
  background: var(--calc-input-bg, rgba(255,255,255,0.04));
}
body.ct-light-mode #ct-child-bmi-calculator .calc-sources{
  border-color: rgba(15,23,42,0.12); background: rgba(15,23,42,0.03);
}

/* Visual */
#ct-child-bmi-calculator .ct-visual{
  margin:14px 0 0; padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-visual{
  border-color: rgba(15,23,42,0.12); background: rgba(15,23,42,0.02);
}
#ct-child-bmi-calculator .ct-visual img{
  display:block; width:100%; height:auto; border-radius:12px;
  border:1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.02);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-visual img{
  border-color: rgba(15,23,42,0.10); background:#fff;
}
#ct-child-bmi-calculator .ct-visual figcaption{ text-align:center; }

/* Input shape consistency */
#ct-child-bmi-calculator .calc-number-input { border-radius: 12px; }

/* Input row with suffix */
#ct-child-bmi-calculator .field-input-row{
  display:flex; align-items:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius:12px; overflow:hidden;
  transition:border-color .2s ease;
}
#ct-child-bmi-calculator .field-input-row:focus-within{
  border-color: var(--calc-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
#ct-child-bmi-calculator .field-input-row .calc-number-input{
  border:none; background:transparent; flex:1; min-width:0;
  padding:14px 14px; font-size:1.05rem;
  color: var(--calc-text-primary) !important;
  font-weight: 600; text-align: left;
}
#ct-child-bmi-calculator .calc-main-container{ margin-top: 22px; }
#ct-child-bmi-calculator .input-suffix{
  position: static !important;
  padding:0 14px; height:48px; display:inline-flex; align-items:center;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.12);
  color: var(--calc-text-muted); font-size: .9rem; font-weight: 600;
  white-space: nowrap;
}
body.ct-light-mode #ct-child-bmi-calculator .field-input-row{ background:#fff; border-color: rgba(15,23,42,0.14); }
body.ct-light-mode #ct-child-bmi-calculator .field-input-row:focus-within{ border-color:#3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
body.ct-light-mode #ct-child-bmi-calculator .input-suffix{ background: rgba(15,23,42,0.03); border-left-color: rgba(15,23,42,0.12); color: #475569; }

/* Placeholder fix */
#ct-child-bmi-calculator .calc-number-input::placeholder{ color: rgba(148,163,184,0.85); }
body.ct-light-mode #ct-child-bmi-calculator .calc-number-input::placeholder{ color: rgba(100,116,139,0.85); }

/* Sex selector + unit selector */
#ct-child-bmi-calculator .ct-sex-toggle, #ct-child-bmi-calculator .ct-unit-toggle{
  display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap;
  padding:8px; border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-sex-toggle,
body.ct-light-mode #ct-child-bmi-calculator .ct-unit-toggle{
  border-color: rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.03);
}
#ct-child-bmi-calculator .ct-sex-btn, #ct-child-bmi-calculator .ct-unit-btn{
  flex:1; min-width:120px; padding:12px 16px;
  border:1px solid rgba(255,255,255,0.16);
  border-radius:12px;
  background: rgba(255,255,255,0.06);
  color: var(--calc-text-primary);
  font-weight:600; cursor:pointer; transition: all .2s ease; text-align:center;
}
#ct-child-bmi-calculator .ct-sex-btn:hover, #ct-child-bmi-calculator .ct-unit-btn:hover{ border-color: rgba(99,102,241,0.65); }
#ct-child-bmi-calculator .ct-sex-btn.active, #ct-child-bmi-calculator .ct-unit-btn.active{
  background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(139,92,246,0.95));
  border-color: rgba(99,102,241,0.85);
  box-shadow: 0 12px 28px rgba(99,102,241,0.22);
  color:#fff; transform: translateY(-1px);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-sex-btn, body.ct-light-mode #ct-child-bmi-calculator .ct-unit-btn{
  background:#fff; border-color: rgba(15,23,42,0.15); color:#1e293b;
}
body.ct-light-mode #ct-child-bmi-calculator .ct-sex-btn.active,
body.ct-light-mode #ct-child-bmi-calculator .ct-unit-btn.active{
  background:#3b82f6; border-color:#3b82f6; color:#fff; box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

/* Conditional input groups */
#ct-child-bmi-calculator .ct-metric-inputs, #ct-child-bmi-calculator .ct-imperial-inputs{ display:none; }
#ct-child-bmi-calculator .ct-metric-inputs.active, #ct-child-bmi-calculator .ct-imperial-inputs.active{ display:block; }

/* Age row + height row */
#ct-child-bmi-calculator .ct-age-row, #ct-child-bmi-calculator .ct-height-row{ display:flex; gap:12px; }
#ct-child-bmi-calculator .ct-age-row .calc-field-group, #ct-child-bmi-calculator .ct-height-row .calc-field-group{ flex:1; }
#ct-child-bmi-calculator .ct-age-row .field-label, #ct-child-bmi-calculator .ct-height-row .field-label{ margin-bottom:6px; }

/* Category badge */
#ct-child-bmi-calculator .ct-cbmi-badge{ display:inline-block; padding:6px 14px; border-radius:20px; font-weight:700; font-size:.95rem; }
#ct-child-bmi-calculator .ct-cbmi-badge.underweight{ background: rgba(59,130,246,0.15); color:#3b82f6; }
#ct-child-bmi-calculator .ct-cbmi-badge.healthy{ background: rgba(16,185,129,0.15); color:#10b981; }
#ct-child-bmi-calculator .ct-cbmi-badge.overweight{ background: rgba(245,158,11,0.15); color:#f59e0b; }
#ct-child-bmi-calculator .ct-cbmi-badge.obesity{ background: rgba(239,68,68,0.15); color:#ef4444; }
#ct-child-bmi-calculator .ct-cbmi-badge.severe{ background: rgba(127,29,29,0.22); color: #fecaca; border: 1px solid rgba(239,68,68,0.22); }
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-badge.underweight{ background:#dbeafe; color:#1d4ed8; }
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-badge.healthy{ background:#d1fae5; color:#047857; }
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-badge.overweight{ background:#fef3c7; color:#b45309; }
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-badge.obesity{ background:#fee2e2; color:#b91c1c; }
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-badge.severe{ background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }

/* Result card category accents */
#ct-child-bmi-calculator .result-card{ position:relative; overflow:hidden; }
#ct-child-bmi-calculator .result-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: rgba(255,255,255,0.10); }
#ct-child-bmi-calculator.ct-cbmi-cat-underweight .result-card::before{ background:#3b82f6; }
#ct-child-bmi-calculator.ct-cbmi-cat-healthy .result-card::before{ background:#10b981; }
#ct-child-bmi-calculator.ct-cbmi-cat-overweight .result-card::before{ background:#f59e0b; }
#ct-child-bmi-calculator.ct-cbmi-cat-obesity .result-card::before{ background:#ef4444; }
#ct-child-bmi-calculator.ct-cbmi-cat-severe .result-card::before{ background:#7f1d1d; }

/* Percentile scale bar */
#ct-child-bmi-calculator .ct-pctl-scale{ display:flex; border-radius:8px; overflow:hidden; margin:16px 0; height:32px; position:relative; }
#ct-child-bmi-calculator .ct-pctl-seg{ display:flex; align-items:center; justify-content:center; font-size:.68rem; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 4px; }
#ct-child-bmi-calculator .ct-pctl-seg.seg-uw{ background:#3b82f6; flex:5; }
#ct-child-bmi-calculator .ct-pctl-seg.seg-hw{ background:#10b981; flex:80; }
#ct-child-bmi-calculator .ct-pctl-seg.seg-ow{ background:#f59e0b; flex:10; }
#ct-child-bmi-calculator .ct-pctl-seg.seg-ob{ background:#ef4444; flex:5; }
#ct-child-bmi-calculator .ct-pctl-marker{
  position:absolute; top:-6px; bottom:-6px; width:4px;
  background: var(--calc-text-primary); border-radius:2px;
  box-shadow:0 0 6px rgba(0,0,0,0.4); transition:left .3s ease;
}
#ct-child-bmi-calculator .ct-pctl-labels{ display:flex; justify-content:space-between; font-size:.7rem; color:var(--calc-text-muted); margin-top:4px; }

/* % of 95th scale */
#ct-child-bmi-calculator .ct-pct95-scale{ display:flex; border-radius:8px; overflow:hidden; margin:16px 0 6px; height:32px; position:relative; }
#ct-child-bmi-calculator .ct-pct95-seg{ display:flex; align-items:center; justify-content:center; font-size:.68rem; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 4px; }
#ct-child-bmi-calculator .ct-pct95-seg.seg-low{ background: rgba(16,185,129,0.65); flex:100; }
#ct-child-bmi-calculator .ct-pct95-seg.seg-hi{ background: rgba(239,68,68,0.75); flex:20; }
#ct-child-bmi-calculator .ct-pct95-seg.seg-sev{ background: #7f1d1d; flex:30; }
#ct-child-bmi-calculator .ct-pct95-marker{
  position:absolute; top:-6px; bottom:-6px; width:4px;
  background: var(--calc-text-primary); border-radius:2px;
  box-shadow:0 0 6px rgba(0,0,0,0.4); transition:left .3s ease;
}
#ct-child-bmi-calculator .ct-pct95-labels{ display:flex; justify-content:space-between; font-size:.7rem; color:var(--calc-text-muted); }

/* Highlight box */
#ct-child-bmi-calculator .ct-cbmi-highlight{
  margin-top:14px; padding:12px 14px; border-radius:14px;
  border:1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.10);
  position:relative; overflow:hidden;
}
#ct-child-bmi-calculator .ct-cbmi-highlight strong{ color: var(--calc-text-primary); }
#ct-child-bmi-calculator .ct-cbmi-highlight::before{
  content:""; position:absolute; inset:-2px;
  background: linear-gradient(90deg, rgba(99,102,241,0), rgba(139,92,246,0.3), rgba(99,102,241,0));
  transform: translateX(-60%);
  animation: ct-cbmi-glow 2.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes ct-cbmi-glow{
  0%{transform:translateX(-60%);opacity:0}
  25%{opacity:.2}
  50%{transform:translateX(60%);opacity:.2}
  75%{opacity:.1}
  100%{transform:translateX(-60%);opacity:0}
}
body.ct-light-mode #ct-child-bmi-calculator .ct-cbmi-highlight{
  border-color: rgba(30,64,175,0.25); background:#eff6ff;
}

/* Share/Export + Embed */
#ct-child-bmi-calculator .ct-tools-grid{ display:grid; grid-template-columns: 1fr; gap:12px; }
@media (min-width: 720px){
  #ct-child-bmi-calculator .ct-tools-grid{ grid-template-columns: 1fr 1fr; align-items:start; }
}
#ct-child-bmi-calculator .ct-tool-actions{ display:flex; gap:10px; flex-wrap:wrap; }
#ct-child-bmi-calculator .ct-embed-hidden{ display:none; }
#ct-child-bmi-calculator .ct-embed-wrap textarea{
  width:100%; min-height:120px; resize:vertical;
  padding:12px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--calc-text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.9rem; line-height:1.3;
}
body.ct-light-mode #ct-child-bmi-calculator .ct-embed-wrap textarea{
  background:#fff; border-color: rgba(15,23,42,0.14); color:#0f172a;
}
#ct-child-bmi-calculator .ct-toast{
  margin-top:10px; padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--calc-text-muted);
  display:none;
}
body.ct-light-mode #ct-child-bmi-calculator .ct-toast{
  border-color: rgba(15,23,42,0.12); background: rgba(15,23,42,0.03);
}

/* Hidden share card for html2canvas */
#ct-child-bmi-calculator #ct-cbmi-sharecard{
  position:absolute; left:-9999px; top:0; width:560px;
  background:#ffffff; color:#0f172a;
  border:1px solid #e5e7eb; border-radius:16px; overflow:hidden;
  box-shadow:none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-watermark{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:36px; font-weight:900; letter-spacing:0.06em;
  color:#0f172a; opacity:0.12; transform: rotate(-22deg);
  pointer-events:none; z-index:1; text-transform: lowercase; white-space: nowrap;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-head,
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-body,
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-foot{ position:relative; z-index:2; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-head{
  padding:14px 16px; background: linear-gradient(135deg, #111827, #1f2937);
  color:#fff; display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-title{ font-weight:800; font-size:1.05rem; line-height:1.2; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-sub{ font-size:.82rem; opacity:.9; margin-top:4px; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-site{ font-weight:800; font-size:.9rem; opacity:.95; white-space:nowrap; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-body{ padding:14px 16px 12px; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-main{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-bmi{ font-size:2.0rem; font-weight:900; letter-spacing:-0.02em; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-cat{ font-size:1rem; font-weight:800; text-align:right; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-row{
  margin-top:10px; display:grid; grid-template-columns: 1fr 1fr; gap:10px; font-size:.95rem;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-k{
  color:#475569; font-size:.82rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.02em;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-v{ font-weight:800; margin-top:2px; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-chips{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; border:1px solid #e5e7eb;
  background:#f8fafc; color:#0f172a; font-size:.82rem; font-weight:700;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-foot{
  padding:10px 16px; border-top:1px solid #e5e7eb;
  background:#f8fafc; color:#334155; font-size:.82rem; font-weight:700;
  display:flex; justify-content:space-between; gap:12px;
}
#ct-child-bmi-calculator #ct-cbmi-sharecard .ct-sc-foot small{ font-weight:700; color:#475569; }

/* Next steps box */
#ct-child-bmi-calculator .ct-next-steps{
  margin-top:12px; padding:14px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-next-steps{
  border-color: rgba(15,23,42,0.12); background: rgba(15,23,42,0.03);
}
#ct-child-bmi-calculator .ct-next-steps ul{ margin:10px 0 0; padding-left:18px; }
#ct-child-bmi-calculator .ct-next-steps li{ margin:6px 0; }

/* Jump to calculator button */
#ct-child-bmi-calculator .ct-jump-btn{
  position: fixed; z-index: 9999;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(10px);
  color: #fff; font-weight: 800; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
#ct-child-bmi-calculator .ct-jump-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35), 0 10px 28px rgba(0,0,0,0.35);
}
body.ct-light-mode #ct-child-bmi-calculator .ct-jump-btn{
  background: rgba(255,255,255,0.92);
  color:#0f172a;
  border-color: rgba(15,23,42,0.14);
}
@media (max-width: 768px){
  #ct-child-bmi-calculator .ct-jump-btn{
    top: calc(84px + env(safe-area-inset-top));
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
}
@media (min-width: 769px){
  #ct-child-bmi-calculator .ct-jump-btn{
    top: 120px; right: 22px; left: auto; transform: none;
  }
}
@media print{ #ct-child-bmi-calculator .ct-jump-btn{ display:none !important; } }

/* Remove spinners */
#ct-child-bmi-calculator input[type="number"]::-webkit-outer-spin-button,
#ct-child-bmi-calculator input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
#ct-child-bmi-calculator input[type="number"]{ -moz-appearance:textfield; }

/* === Expert review card (no photo, no placeholder) === */
#ct-child-bmi-calculator .ct-review-card{
  display:block;
  max-width:980px;
  margin:14px 0 16px 0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--calc-border, rgba(255,255,255,0.14));
  background:linear-gradient(180deg, rgba(59,130,246,0.10) 0%, rgba(2,6,23,0.02) 100%);
  text-align:left;
}
body.ct-light-mode #ct-child-bmi-calculator .ct-review-card{
  border-color: rgba(15,23,42,0.12);
  background: linear-gradient(180deg, rgba(59,130,246,0.10) 0%, rgba(15,23,42,0.02) 100%);
}
#ct-child-bmi-calculator .ct-review-badge{
  display:inline-block;
  font-size:11px;
  font-weight:900;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(34,197,94,0.12);
  border:1px solid rgba(34,197,94,0.25);
  color:rgba(34,197,94,1);
  margin-bottom:6px;
}
#ct-child-bmi-calculator .ct-review-name{
  margin:0;
  font-size:15px;
  font-weight:900;
  line-height:1.25;
}
#ct-child-bmi-calculator .ct-review-name a{ text-decoration:none; }
#ct-child-bmi-calculator .ct-review-role{
  margin:4px 0 0 0;
  font-size:13px;
  color: var(--calc-text-muted, rgba(100,116,139,1));
  line-height:1.5;
}
#ct-child-bmi-calculator .ct-review-proof{
  margin:8px 0 0 0;
  font-size:13px;
  line-height:1.6;
  color: var(--calc-text-muted, rgba(100,116,139,1));
}
#ct-child-bmi-calculator .ct-review-cta{ margin-top:10px; }
#ct-child-bmi-calculator .ct-review-cta a{ display:inline-block; font-weight:900; }

/* === Collapsible Quick Answer (closed by default) === */
#ct-child-bmi-calculator details.ct-tldr-collapse{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
body.ct-light-mode #ct-child-bmi-calculator details.ct-tldr-collapse{
  border-color: rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.02);
}
#ct-child-bmi-calculator details.ct-tldr-collapse > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 900;
  text-align:left;
}
#ct-child-bmi-calculator details.ct-tldr-collapse > summary::-webkit-details-marker{ display:none; }
#ct-child-bmi-calculator details.ct-tldr-collapse > summary::after{
  content:"▾";
  font-weight: 900;
  opacity: .9;
  transition: transform .2s ease;
}
#ct-child-bmi-calculator details.ct-tldr-collapse[open] > summary::after{ transform: rotate(180deg); }
#ct-child-bmi-calculator .ct-tldr-body{ padding: 0 14px 14px; text-align:left; }

/* Steps block spacing + readability (left panel) */
#ct-child-bmi-calculator #ct-cbmi-steps-left{ margin-top:16px; }
#ct-child-bmi-calculator #ct-cbmi-steps-left > summary{ font-size: 1.05rem; font-weight: 900; }
#ct-child-bmi-calculator #ct-cbmi-steps-left ol{ font-size: 15.5px; line-height: 1.7; }
#ct-child-bmi-calculator #ct-cbmi-steps-left li{ margin: 6px 0; }

/* Force RankMath FAQ answers visible (open-style) */
#ct-child-bmi-calculator .wp-block-rank-math-faq-block .rank-math-answer{
  display:block !important;
}

/* === Expert review card (WITH optional photo) === */
#ct-child-bmi-calculator .ct-review-card.ct-with-photo{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
#ct-child-bmi-calculator .ct-review-photo{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.35);
  background:rgba(2,6,23,0.04);
}
#ct-child-bmi-calculator .ct-review-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width: 560px){
  #ct-child-bmi-calculator .ct-review-card.ct-with-photo{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* === Two reviewer cards side-by-side (desktop), stacked (mobile) === */
/* Centered two-up reviewer grid (50/50) */
#ct-child-bmi-calculator .ct-review-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;

  width:100%;
  max-width:980px;

  /* THIS centers it */
  margin:14px auto 16px auto;
}

/* Force cards to obey the grid (override your existing card sizing/margins) */
#ct-child-bmi-calculator .ct-review-grid > .ct-review-card{
  margin:0 !important;
  max-width:none !important;
  width:100% !important;
  height:100%;
}

/* Ensure the photo card stays horizontal */
#ct-child-bmi-calculator .ct-review-grid > .ct-review-card.ct-with-photo{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

/* Photo box */
#ct-child-bmi-calculator .ct-review-photo{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.35);
  background:rgba(2,6,23,0.04);
}
#ct-child-bmi-calculator .ct-review-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Stack on smaller screens */
@media (max-width: 860px){
  #ct-child-bmi-calculator .ct-review-grid{
    grid-template-columns: 1fr;
  }
}