/* ==========================================================================
   YourHeal site design system — from the owner's homepage mockup (24 Oct 2026).
   Loaded on every page by layouts/header. Page-specific CSS builds on these.
   Dense, flat, 1px borders, 6-10px radius, no gradients, AA contrast.
   ========================================================================== */
:root {
    --hv-blue: #0a5fe3;
    --hv-blue-dk: #084bb5;
    --hv-blue-50: #eef4fe;
    --hv-navy: #00245b;
    --hv-ink: #1d2b45;
    --hv-text: #3c4a60;
    --hv-muted: #66758c;
    --hv-line: #e6ecf5;
    --hv-bg: #f6f9fd;
    --hv-green: #0dba64;
    --hv-green-dk: #0aa457;
    --hv-green-50: #e3f7ec;
    --hv-wa: #1ad17a;
    --hv-red: #ea3442;
    --hv-red-50: #fdeaec;
    --hv-amber: #b26a00;
    --hv-amber-50: #fff4e0;
    --hv-star: #f5a623;
    --hv-radius: 8px;
}

body { font-size: 14px; color: var(--hv-text); background: #fff; }
.yh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.yh-section { padding: 28px 0; }
.yh-section--tint { background: var(--hv-bg); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---- page head. Also restyles the legacy .breadcrumb-bar so untouched pages match. */
.yh-page-head, .breadcrumb-bar { background: #f3f8fe !important; border-bottom: 1px solid var(--hv-line); padding: 20px 0 18px !important; }
.yh-page-head .breadcrumb, .breadcrumb-bar .breadcrumb { background: none; padding: 0; margin: 0 0 6px; font-size: 12px; }
.yh-page-head .breadcrumb-item, .yh-page-head .breadcrumb-item a,
.breadcrumb-bar .breadcrumb-item, .breadcrumb-bar .breadcrumb-item a { color: var(--hv-muted) !important; text-decoration: none; }
.yh-page-head .breadcrumb-item a:hover, .breadcrumb-bar .breadcrumb-item a:hover { color: var(--hv-blue) !important; }
.yh-page-head .breadcrumb-item.active, .breadcrumb-bar .breadcrumb-item.active { color: var(--hv-ink) !important; }
.yh-page-head .breadcrumb-item + .breadcrumb-item::before, .breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #a3afc0; }
.yh-page-head h1, .breadcrumb-bar .breadcrumb-title { font-size: 24px !important; font-weight: 700 !important; color: var(--hv-navy) !important; margin: 0 !important; line-height: 1.25; }
.yh-page-head p, .breadcrumb-bar p { font-size: 13.5px; color: var(--hv-muted) !important; margin: 6px 0 0; max-width: 720px; }

/* ---- headings in sections */
.yh-h2 { font-size: 20px; font-weight: 700; color: var(--hv-navy); margin: 0 0 4px; }
.yh-h3 { font-size: 15px; font-weight: 600; color: var(--hv-ink); margin: 0 0 6px; }
.yh-sub { font-size: 13px; color: var(--hv-muted); margin: 0 0 14px; }
.yh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.yh-sec-head > a { font-size: 12.5px; font-weight: 600; color: var(--hv-blue); text-decoration: none; white-space: nowrap; }

/* ---- layout helpers */
.yh-grid { display: grid; gap: 14px; }
.yh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yh-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.yh-layout--aside-right { grid-template-columns: minmax(0, 1fr) 320px; }
.yh-sticky { position: sticky; top: 16px; }

/* ---- card */
.yh-card { background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); overflow: hidden; }
.yh-card__body { padding: 16px; }
.yh-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--hv-bg); }
.yh-card__foot { padding: 12px 16px; border-top: 1px solid var(--hv-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
a.yh-card { display: block; color: inherit; text-decoration: none; }
a.yh-card:hover { border-color: #c9d8f0; }
a.yh-card:hover .yh-h3 { color: var(--hv-blue); }

/* ---- list row (doctor / hospital / result rows) */
.yh-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); }
.yh-row + .yh-row { margin-top: 12px; }
.yh-row__img { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; background: var(--hv-bg); }
.yh-row__actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }

/* ---- avatar (initials when no photo) */
.yh-avatar { width: 40px; height: 40px; border-radius: 50%; background: #dce9fd; color: var(--hv-blue); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.yh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yh-avatar--lg { width: 88px; height: 88px; font-size: 30px; border-radius: 8px; }

/* ---- buttons */
.yh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 9px 16px; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.yh-btn--blue { background: var(--hv-blue); color: #fff; }
.yh-btn--blue:hover { background: var(--hv-blue-dk); color: #fff; }
.yh-btn--green { background: var(--hv-green); color: #fff; }
.yh-btn--green:hover { background: var(--hv-green-dk); color: #fff; }
.yh-btn--ghost { background: #fff; color: var(--hv-blue); border-color: #c9d8f0; }
.yh-btn--ghost:hover { background: var(--hv-blue-50); color: var(--hv-blue); }
.yh-btn--wa { background: var(--hv-wa); color: #fff; }
.yh-btn--wa:hover { background: #12b468; color: #fff; }
.yh-btn--block { width: 100%; }
.yh-btn--sm { padding: 6px 11px; font-size: 12px; }
.yh-btn:disabled, .yh-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.yh-link { color: var(--hv-blue); font-weight: 600; font-size: 13px; text-decoration: none; }
.yh-link:hover { text-decoration: underline; }
.yh-btn:focus-visible, .yh-link:focus-visible, a.yh-card:focus-visible, .yh-input:focus-visible, .yh-pill:focus-visible { outline: 2px solid var(--hv-blue); outline-offset: 2px; }

/* ---- pills / tags / status (always with text, never colour alone) */
.yh-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--hv-line); background: #fff; color: var(--hv-text); border-radius: 999px; padding: 4px 11px; font-size: 12px; text-decoration: none; }
a.yh-pill:hover { border-color: var(--hv-blue); color: var(--hv-blue); }
.yh-pill.is-active { background: var(--hv-blue); border-color: var(--hv-blue); color: #fff; }
.yh-tag { display: inline-block; border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 600; background: #f1f3f6; color: #4d5b70; }
.yh-tag--blue { background: var(--hv-blue-50); color: #0a4fbf; }
.yh-tag--green { background: var(--hv-green-50); color: #08793f; }
.yh-tag--amber { background: var(--hv-amber-50); color: var(--hv-amber); }
.yh-tag--red { background: var(--hv-red-50); color: #b4232f; }
.yh-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- meta lines */
.yh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--hv-muted); margin: 0; padding: 0; list-style: none; }
.yh-meta i { color: #8a99ae; margin-right: 4px; }
.yh-stars { color: var(--hv-star); font-size: 12px; letter-spacing: 1px; }
.yh-stars .far { color: #d8dee8; }
.yh-checklist { list-style: none; margin: 0; padding: 0; }
.yh-checklist li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 13px; }
.yh-checklist li::before { content: "\f00c"; font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--hv-green); }

/* ---- forms */
.yh-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--hv-ink); margin-bottom: 5px; }
.yh-input, .yh-select, .yh-textarea { width: 100%; border: 1px solid #d5deeb; border-radius: 6px; padding: 9px 12px; font-size: 13.5px; color: var(--hv-ink); background: #fff; }
.yh-input:focus, .yh-select:focus, .yh-textarea:focus { border-color: var(--hv-blue); box-shadow: 0 0 0 3px rgba(10, 95, 227, .12); outline: none; }
.yh-field { margin-bottom: 14px; }
.yh-help { font-size: 11.5px; color: var(--hv-muted); margin-top: 4px; }
.yh-error { font-size: 12px; color: #b4232f; margin-top: 4px; }
.yh-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 7px; cursor: pointer; }

/* ---- filter sidebar */
.yh-filter { background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); padding: 16px; }
.yh-filter h2 { font-size: 14px; font-weight: 700; color: var(--hv-navy); margin: 0 0 12px; }
.yh-filter h3 { font-size: 12px; font-weight: 700; color: var(--hv-ink); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; }

/* ---- notices / empty / loading */
.yh-notice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--hv-line); background: var(--hv-bg); border-radius: var(--hv-radius); padding: 12px 14px; font-size: 13px; color: var(--hv-text); }
.yh-notice i { color: var(--hv-blue); margin-top: 2px; }
.yh-notice--warn { background: var(--hv-amber-50); border-color: #f3dcb0; }
.yh-notice--warn i { color: var(--hv-amber); }
.yh-notice--danger { background: var(--hv-red-50); border-color: #f5c2c7; }
.yh-notice--danger i { color: #b4232f; }
.yh-empty { border: 1px dashed #c9d6ea; border-radius: var(--hv-radius); padding: 22px; text-align: center; font-size: 13.5px; color: var(--hv-text); background: #f8fbff; }
.yh-empty i { display: block; font-size: 22px; color: #9db3d6; margin-bottom: 8px; }

/* ---- table */
.yh-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.yh-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hv-muted); background: var(--hv-bg); padding: 9px 12px; border-bottom: 1px solid var(--hv-line); }
.yh-table td { padding: 10px 12px; border-bottom: 1px solid var(--hv-line); vertical-align: top; }
.yh-table-wrap { position: relative; border: 1px solid var(--hv-line); border-radius: var(--hv-radius); overflow-x: auto; } /* positioned so visually-hidden cells cannot widen the page */

/* ---- long-form content (blogs, treatment/cost/category bodies, CMS pages) */
.yh-prose { font-size: 15px; line-height: 1.7; color: var(--hv-text); }
.yh-prose h2 { font-size: 20px; font-weight: 700; color: var(--hv-navy); margin: 26px 0 10px; }
.yh-prose h3 { font-size: 16.5px; font-weight: 600; color: var(--hv-ink); margin: 20px 0 8px; }
.yh-prose p { margin: 0 0 14px; }
.yh-prose ul, .yh-prose ol { margin: 0 0 14px; padding-left: 22px; }
.yh-prose li { margin-bottom: 6px; }
.yh-prose a { color: var(--hv-blue); }
.yh-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.yh-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.yh-prose th, .yh-prose td { border: 1px solid var(--hv-line); padding: 8px 10px; text-align: left; }
.yh-prose th { background: var(--hv-bg); }

/* ---- tabs (in-page section nav) */
.yh-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hv-line); overflow-x: auto; margin-bottom: 16px; }
.yh-tabs a, .yh-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--hv-text); text-decoration: none; white-space: nowrap; }
.yh-tabs .is-active, .yh-tabs a:hover { color: var(--hv-blue); border-bottom-color: var(--hv-blue); }

/* ---- pagination (Laravel default markup) */
.pagination { gap: 4px; flex-wrap: wrap; }
.pagination .page-link { border: 1px solid var(--hv-line); border-radius: 6px !important; color: var(--hv-ink); font-size: 13px; padding: 6px 11px; }
.pagination .page-item.active .page-link { background: var(--hv-blue); border-color: var(--hv-blue); color: #fff; }

@media (max-width: 1100px) { .yh-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .yh-layout, .yh-layout--aside-right { grid-template-columns: 1fr; }
    .yh-grid--3, .yh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yh-sticky { position: static; }
}
@media (max-width: 640px) {
    .yh-grid--2, .yh-grid--3, .yh-grid--4 { grid-template-columns: 1fr; }
    .yh-row { grid-template-columns: 64px minmax(0, 1fr); }
    .yh-row__img { width: 64px; height: 64px; }
    .yh-row__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
    .yh-row__actions .yh-btn { flex: 1; }
    .yh-page-head h1, .breadcrumb-bar .breadcrumb-title { font-size: 20px !important; }
}
