/* About Dr Sleep Qure — DSQ custom theme */
*{box-sizing:border-box;}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#001334;margin:0;padding:0;}
.msi{font-family:'Material Symbols Outlined';font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;vertical-align:middle;line-height:1;}

/* Nav hover */
.navgrp:hover .navgrp-menu,
.navgrp:focus-within .navgrp-menu{opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important;}
.navgrp-menu a:hover{background:#E2E8FF!important;border-left-color:#004FAB!important;}

/* ── TOP PILL TABS (3-tab) ── */
.abt-pill-wrap{display:flex;justify-content:center;margin-bottom:20px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.abt-pill-wrap::-webkit-scrollbar{display:none;}
.abt-pill-bar{display:inline-flex;gap:0;border-bottom:1px solid #E5E9F2;background:transparent;}
.abt-pill-tab{font-size:22px;font-weight:700;padding:8px 24px;cursor:pointer;border-radius:6px;transition:all 0.15s;user-select:none;white-space:nowrap;border:none;font-family:inherit;}

/* ── WHO WE ARE 2-col grid ── */
.abt-who-grid{display:grid;grid-template-columns:minmax(0,1.3fr) 260px;gap:20px;align-items:flex-start;}
.abt-stat-sidebar{display:flex;flex-direction:column;gap:0;border-left:1px solid #E5E9F2;padding-left:16px;margin-top:28px;}
.abt-stat-row{display:flex;align-items:center;gap:16px;padding:8px 0;border-bottom:1px solid #F0F2F5;}

/* ── DIAG CARDS (inline-styled; class removed from HTML) ── */
.abt-diag-sub{font-size:14px;font-weight:700;color:#B58B2A;margin:2px 0 6px;}
.abt-diag-title{font-size:17px;font-weight:700;color:#004FAB;}
.abt-diag-desc{font-size:14px;line-height:1.6;color:rgba(0,19,52,0.7);margin-top:6px;}

/* ── WHY CARDS (auto-fill) ── */
.abt-why-v2{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;}
.abt-why-card-v2{border-radius:12px;background:linear-gradient(180deg,#FFFFFF 0%,#F8F9FC 100%);border:1px solid #E5E9F2;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 12px 28px -8px rgba(0,21,52,0.16);overflow:hidden;}

/* ── SERVICE / CONDITION CARDS ── */
.abt-svc-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.abt-svc-card{background:#F8F9FC;border:1px solid #E5E9F2;border-top:3px solid #004FAB;border-radius:12px;padding:16px;}
.abt-cond-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.abt-cond-card{background:#F8F9FC;border:1px solid #E5E9F2;border-radius:12px;padding:16px;}

/* ── PATHWAY STEPS ── */
.abt-pathway{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#F8F9FC;border:1px solid #E5E9F2;border-radius:12px;padding:16px;margin-bottom:18px;}
.abt-pathway-step{display:inline-flex;align-items:center;gap:8px;background:#E2E8FF;color:#001334;font-size:14px;font-weight:700;padding:8px 16px;border-radius:999px;white-space:nowrap;}

/* ── SPECIALTY CHIPS ── */
.abt-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.abt-chip{background:#E2E8FF;color:#004FAB;font-size:14px;font-weight:600;padding:6px 12px;border-radius:999px;}

/* ── STICKY BAR ── */
#stickybar{position:fixed;bottom:0;left:0;right:0;z-index:9000;background:#001334;border-top:2px solid #E4B038;padding:12px 24px;}
.dsq_trigger{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#FFFFFF;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:#001334;box-shadow:0 2px 8px rgba(0,0,0,0.1);user-select:none;}
.dsq_panel{display:none;position:fixed;bottom:60px;min-width:220px;background:#FFFFFF;border-radius:12px;box-shadow:0 8px 32px rgba(0,21,52,0.18);overflow:hidden;z-index:9999;}
.dsq_panel_head{padding:8px 14px 6px;font-size:11px;font-weight:800;letter-spacing:0.07em;color:#B58B2A;text-transform:uppercase;border-bottom:1px solid #F8F9FC;}
.dsqopt{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:14px;font-weight:500;color:#001334;cursor:pointer;}
.dsqopt:hover{background:#E2E8FF;}
.dsqdot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.dsqopt.selected{background:#E2E8FF;font-weight:700;color:#004FAB;}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .rsp-section{padding-left:20px!important;padding-right:20px!important;}
  .abt-who-grid{grid-template-columns:1fr;}
  .abt-stat-sidebar{border-left:none;border-top:1px solid #E5E9F2;padding-left:0;padding-top:16px;margin-top:0;}
  .abt-pill-tab{font-size:14px;padding:8px 14px;}
  .abt-svc-cards,.abt-cond-cards{grid-template-columns:1fr;}
  .abt-diag-3col{grid-template-columns:1fr!important;}
}
@media(max-width:600px){
  .abt-pill-tab{font-size:13px;padding:8px 12px;}
  .abt-why-v2{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .abt-why-v2{grid-template-columns:1fr;}
}

/* ── MOBILE TAB GRID FIX — 2026-10-09 ────────────────────────────────
 * Root cause: .abt-pill-bar is display:inline-flex inside a flex wrap
 * with overflow-x:auto and justify-content:center. At <=~490px the 3
 * tabs total wider than the container; left-edge is clipped and
 * unreachable by scrolling (flex centre trap — start-edge content lost).
 *
 * Fix: switch pill-bar to a 3-col equal-width grid at <=900px.
 * Each tab gets exactly 1/3 of available container width — no overflow,
 * no swipe-scroll. white-space:normal lets the longest tab ("Why Dr
 * Sleep Qure?") wrap to 2 lines on narrowest phones instead of
 * extending past the viewport. Tablet/desktop (>900px) unchanged:
 * inline-flex + justify-content:center are preserved.
 * ──────────────────────────────────────────────────────────────────── */
@media(max-width:900px){
  /* Remove overflow-x scroll from the wrapper */
  .abt-pill-wrap{
    overflow-x:hidden!important;
  }
  /* 3-column equal-width grid — all tabs always visible simultaneously */
  .abt-pill-bar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
  }
  /* Allow text wrap; remove nowrap that caused inline-flex overflow */
  .abt-pill-tab{
    white-space:normal!important;
    min-width:0!important;
    text-align:center!important;
  }
}
/* Tighten horizontal padding on narrowest phones — keeps "Why Dr
 * Sleep Qure?" to 2 lines max at 320px without shrinking font.         */
@media(max-width:480px){
  .abt-pill-tab{
    padding-left:6px!important;
    padding-right:6px!important;
  }
}
