/* WorkPilot Tools — Health / Disease & Medicine section */
.hl-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Search + filters */
.hl-search { position: relative; margin: 8px 0 18px; }
.hl-search input {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
  background: var(--panel, #fff); color: var(--ink, #111827);
}
.hl-search input:focus { outline: none; border-color: var(--brand, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.hl-search--compact { margin: 0 0 14px; }
.hl-search--compact input { padding: 11px 14px; font-size: 15px; }
.hl-home-search { margin: 14px 0 4px; max-width: 520px; }

.hl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hl-chip {
  border: 1px solid var(--line, #e5e7eb); background: var(--panel, #fff);
  color: var(--muted, #5b6472); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.hl-chip:hover { border-color: var(--brand, #4f46e5); color: var(--brand, #4f46e5); }
.hl-chip.active { background: var(--brand, #4f46e5); border-color: var(--brand, #4f46e5); color: #fff; }

/* Disease cards grid */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hl-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  background: var(--panel, #fff); border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(17,24,39,.04); transition: .16s ease;
}
.hl-card:hover { border-color: var(--brand, #4f46e5); transform: translateY(-1px); }
.hl-card .hl-ico { font-size: 22px; }
.hl-card strong { font-size: 16px; }
.hl-card small { color: var(--muted, #5b6472); line-height: 1.45; }
.hl-card .hl-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand, #4f46e5); background: #eef2ff; padding: 3px 8px; border-radius: 6px; }
[data-theme="dark"] .hl-card .hl-tag, [data-theme="dark"] .hl-chip.active { color: #fff; }
.hl-empty { color: var(--muted, #5b6472); padding: 28px 0; }

/* Detail page */
.hl-detail h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 6px; }
.hl-aka { color: var(--muted, #5b6472); font-size: 14px; margin: 0 0 14px; }
.hl-lead { font-size: 17px; line-height: 1.65; color: var(--ink, #111827); margin: 0 0 8px; }
.hl-section { background: var(--panel, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 22px; margin: 0 0 16px; }
.hl-section h2 { font-size: 20px; margin: 0 0 12px; }
.hl-section h3 { font-size: 16px; margin: 0 0 4px; }
.hl-section ul { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--ink, #111827); }
.hl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .hl-cols { grid-template-columns: 1fr; } }

/* Medicine drug-class block */
.hl-drug { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.hl-drug-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.hl-drug-head .hl-class { font-weight: 750; font-size: 15px; }
.hl-drug-head .hl-salt { font-size: 13px; color: var(--brand, #4f46e5); font-weight: 600; }
.hl-drug-note { font-size: 13px; color: var(--muted, #5b6472); margin: 0 0 10px; }

/* Price comparison table */
.hl-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hl-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.hl-table th, .hl-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e7eb); }
.hl-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5b6472); }
.hl-table td.hl-price { font-weight: 750; white-space: nowrap; }
.hl-table tr.hl-cheapest td { background: rgba(16,185,129,.10); }
.hl-best { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; color: #047857; background: #d1fae5; padding: 2px 6px; border-radius: 5px; vertical-align: middle; }
[data-theme="dark"] .hl-best { color: #d1fae5; background: rgba(4,120,87,.4); }

/* Disclaimer */
.hl-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
[data-theme="dark"] .hl-disclaimer { background: rgba(124,45,18,.25); border-color: rgba(154,52,18,.5); color: #fdba74; }
.hl-disclaimer strong { display: block; margin-bottom: 4px; }

.hl-back { display: inline-block; margin: 0 0 14px; color: var(--brand, #4f46e5); text-decoration: none; font-weight: 600; font-size: 14px; }
.hl-back:hover { text-decoration: underline; }
.hl-meta { font-size: 12px; color: var(--muted, #5b6472); margin-top: 6px; }
