/* DoctorBookly — homepage patient health utilities */
.dbk-health-utils {
  --dbk-hu-primary: #0d9488;
  --dbk-hu-primary-dark: #0f766e;
  --dbk-hu-bg: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f8fafc 100%);
  --dbk-hu-card: #fff;
  --dbk-hu-border: #e2e8f0;
  --dbk-hu-muted: #64748b;
  background: var(--dbk-hu-bg);
  padding: 48px 0 52px;
  position: relative;
}

.dbk-health-utils .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.dbk-health-utils__head {
  text-align: center;
  margin-bottom: 28px;
}

.dbk-health-utils__head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--dbk-hu-primary-dark);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dbk-health-utils__head p {
  color: var(--dbk-hu-muted);
  font-size: 0.9375rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.dbk-hu-shell {
  background: var(--dbk-hu-card);
  border-radius: 16px;
  border: 1px solid var(--dbk-hu-border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dbk-hu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--dbk-hu-border);
  background: #f8fafc;
}

.dbk-hu-tabs::-webkit-scrollbar {
  display: none;
}

.dbk-hu-tab {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dbk-hu-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dbk-hu-tab:hover {
  color: var(--dbk-hu-primary-dark);
  background: #f0fdfa;
}

.dbk-hu-tab.is-active {
  color: var(--dbk-hu-primary-dark);
  border-bottom-color: var(--dbk-hu-primary);
  background: #fff;
}

.dbk-hu-panel {
  padding: 20px 18px 22px;
}

.dbk-hu-panel[hidden] {
  display: none !important;
}

.dbk-hu-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}

.dbk-hu-panel > .dbk-hu-intro {
  font-size: 0.875rem;
  color: var(--dbk-hu-muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.dbk-hu-field {
  margin-bottom: 12px;
}

.dbk-hu-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.dbk-hu-field input,
.dbk-hu-field select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--dbk-hu-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.dbk-hu-field input:focus,
.dbk-hu-field select:focus {
  outline: none;
  border-color: #99f6e4;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.dbk-hu-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.dbk-hu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2e9e80, #0f766e);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.dbk-hu-btn:hover {
  filter: brightness(1.05);
}

.dbk-hu-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #334155;
}

.dbk-hu-muted {
  color: var(--dbk-hu-muted);
  font-size: 0.875rem;
  margin: 0;
}

.dbk-hu-abbrev-list {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 10px;
}

.dbk-hu-abbrev-row {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dbk-hu-abbrev-row strong {
  display: block;
  color: var(--dbk-hu-primary-dark);
  font-size: 0.9375rem;
}

.dbk-hu-abbrev-row span {
  display: block;
  font-size: 0.8125rem;
  color: #334155;
  margin-top: 2px;
}

.dbk-hu-abbrev-row small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.dbk-hu-lab-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.dbk-hu-lab-normal { background: #ecfdf5; color: #065f46; }
.dbk-hu-lab-warn { background: #fffbeb; color: #92400e; }
.dbk-hu-lab-high { background: #fef2f2; color: #991b1b; }

.dbk-hu-lab-tip {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0 0 8px;
}

.dbk-hu-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  gap: 12px;
}

.dbk-hu-metric-row strong {
  color: var(--dbk-hu-primary-dark);
  font-size: 1.05rem;
}

.dbk-hu-source {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 10px 0 0;
  line-height: 1.4;
}

.dbk-hu-source a {
  color: var(--dbk-hu-primary);
}

.dbk-hu-cta,
.dbk-hu-cta-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--dbk-hu-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #99f6e4;
}

.dbk-hu-cta-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.dbk-hu-cta:hover,
.dbk-hu-cta-sm:hover {
  background: #d1fae5;
}

.dbk-hu-wx-loc {
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.dbk-hu-wx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dbk-hu-wx-stats span {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.dbk-hu-alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.dbk-hu-alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.dbk-hu-alert--warn { background: #fffbeb; border: 1px solid #fde68a; }
.dbk-hu-alert--high { background: #fef2f2; border: 1px solid #fecaca; }

.dbk-hu-disclaimer {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.45;
}

.dbk-hu-disclaimer strong {
  display: block;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .dbk-hu-tab {
    flex: 1 1 0;
    font-size: 0.8125rem;
    padding: 14px 10px;
  }
  .dbk-hu-panel {
    padding: 24px 28px 26px;
  }
}

@media (max-width: 480px) {
  .dbk-health-utils {
    padding: 36px 0 40px;
  }
  .dbk-hu-panel {
    padding: 16px 14px 18px;
  }
}
