/* Clinics & Hospitals — nexvork.ai (prefix ch-) */

.ch-hero { overflow: hidden; }
.ch-hero .container { z-index: 1; }
.ch-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ch-hero-grid > *, .ch-pain .split > *, .ch-wa .split > *, .ch-reports .split > *, .ch-scope-grid > *, .ch-setup-grid > * { min-width: 0; }
.ch-hero-title { max-width: 20ch; font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.ch-hero-actions { margin-top: 32px; }
.ch-hero-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.ch-hero-links .nx-link { font-size: 0.88rem; }
.ch-orb-1 { width: 520px; height: 520px; top: -160px; left: -140px; }
.ch-orb-2 { width: 600px; height: 600px; top: 8%; right: -220px; }

.ch-hero-visual { position: relative; padding-bottom: 270px; }
.ch-board { max-width: min(100%, 600px); margin-left: auto; }
.ch-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(130, 62, 157, 0.35); margin-bottom: 12px; }
.ch-now-token { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ch-now-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.ch-now-doc { font-size: 0.78rem; font-weight: 600; }
.ch-queue-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); margin: 14px 0 8px; }
.ch-board .nx-ai-line { margin-top: 12px; }
.ch-queue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ch-queue .nx-row + .nx-row { margin-top: 0; }
.ch-tok { font-size: 0.72rem; }

.ch-hero-chat { position: absolute; right: -8px; bottom: 0; width: 272px; max-width: calc(100% - 16px); z-index: 3; font-size: 0.78rem; }
.ch-hero-chat .nx-chat-body { padding: 10px; gap: 6px; }
.ch-hero-chat .nx-msg { font-size: 0.72rem; max-width: 92%; }
.ch-hero-chat .nx-msg-btn { font-size: 0.7rem; padding: 6px; }

.ch-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-md); white-space: nowrap; z-index: 3; }
.ch-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-wa); box-shadow: 0 0 10px var(--nx-wa); flex-shrink: 0; }
.ch-chip-dot-hot { background: var(--nx-rose); box-shadow: 0 0 10px var(--nx-rose); }
.ch-chip-1 { top: -18px; left: -10px; }
.ch-chip-3 { bottom: 14px; left: 0; right: 0; width: max-content; max-width: calc(100% - 16px); margin: 0 auto; white-space: normal; text-align: center; }

.ch-seg-grid .nx-card p { font-size: 0.92rem; }

.ch-pains { display: grid; gap: 16px; }
.ch-pains li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.ch-pain-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--nx-blue-2); padding-top: 4px; }
html[data-theme="light"] .ch-pain-num { color: var(--nx-purple); }
.ch-pains strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.ch-pains p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

.ch-before { position: relative; padding: 20px 0 56px; }
.ch-before-win { max-width: min(100%, 560px); margin: 0 auto; }
.ch-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); }
html[data-theme="light"] .ch-table-wrap { border-color: var(--line); }
.ch-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.74rem; }
.ch-table th, .ch-table td { padding: 8px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
html[data-theme="light"] .ch-table th, html[data-theme="light"] .ch-table td { border-color: var(--line); }
.ch-table th { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); background: rgba(255, 255, 255, 0.03); font-weight: 500; }
html[data-theme="light"] .ch-table th { background: var(--bg-2); }
.ch-table tbody tr:last-child td { border-bottom: 0; }
.ch-miss { color: var(--nx-rose); font-family: var(--font-mono); }
.ch-dup { color: var(--nx-amber); font-family: var(--font-mono); font-size: 0.68rem; }
.ch-before-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.ch-scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ch-scope-card .nx-checks li { font-size: 0.93rem; }
.ch-nots { display: grid; gap: 12px; }
.ch-nots li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }
.ch-nots li::before { content: "→"; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--font-mono); font-size: 0.7rem; color: var(--subtle); }
.ch-scope-flow { justify-content: center; margin-top: 28px; }
.ch-trust { display: flex; align-items: flex-start; gap: 14px; max-width: 820px; margin: 28px auto 0; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ch-trust .nx-icon { flex-shrink: 0; }
.ch-trust p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.ch-pipeline { justify-content: center; margin-bottom: 40px; }
.ch-pipeline .nx-node { font-size: 0.76rem; padding: 8px 12px; }
.ch-bento .nx-card p { font-size: 0.92rem; }
.ch-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ch-fields code { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2); }

.ch-story-win, .ch-story-con { max-width: 560px; }
.ch-story-phone { width: 300px; }
.ch-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ch-hour { min-width: 0; display: grid; gap: 6px; }
.ch-hour-val { font-family: var(--font-mono); font-size: 0.64rem; text-align: center; color: var(--muted); }
.ch-hour.is-peak .ch-hour-val { color: var(--nx-cyan); font-weight: 700; }
.ch-hour-track { height: 88px; display: flex; align-items: flex-end; }
.ch-hour-bar { display: block; width: 100%; height: var(--h, 40%); border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: 0.75; transform-origin: bottom; animation: chGrow 1.2s var(--ease-out) both; }
.ch-hour.is-peak .ch-hour-bar { opacity: 1; box-shadow: var(--shadow-brand); }
.ch-hour-lab { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-align: center; color: var(--subtle); white-space: nowrap; }
.ch-forecast-kpis { margin-top: 14px; }
@keyframes chGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .ch-hour-bar { animation: none; } }

.ch-wa-visual { position: relative; padding: 20px 0 56px; }
.ch-wa-visual .nx-phone { width: 320px; }

.ch-day-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.ch-report-win { max-width: min(100%, 600px); }
.ch-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ch-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.76rem; }
html[data-theme="light"] .ch-doc { background: var(--bg-2); border-color: var(--line); }
.ch-doc > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-doc strong { font-family: var(--font-mono); font-size: 0.7rem; white-space: nowrap; }
.ch-doc .nx-bar { grid-column: 1 / -1; }
.ch-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-report-list { display: grid; gap: 16px; }
.ch-report-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.ch-report-list .nx-icon { margin: 0; }
.ch-report-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.ch-report-list p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

.ch-setup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ch-need .nx-checks li { font-size: 0.93rem; }
.ch-need-note { margin-top: 20px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); line-height: 1.7; }

.ch-rel-grid .nx-card { display: flex; flex-direction: column; }
.ch-rel-grid .nx-card-link { margin-top: auto; padding-top: 18px; }

@media (max-width: 1100px) {
    .ch-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .ch-hero-title { max-width: none; }
    .ch-board { margin: 0 auto; }
    .ch-chip-1 { left: 0; }
}
@media (max-width: 900px) {
    .ch-scope-grid, .ch-setup-grid { grid-template-columns: 1fr; }
    .ch-story-phone { width: 280px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .ch-hero-visual { padding-bottom: 0; }
    .ch-hero-chat { position: relative; right: auto; bottom: auto; width: 100%; max-width: 320px; margin: 20px auto 0; animation: none; }
    .ch-chip { font-size: 0.7rem; padding: 7px 11px; }
    .ch-chip-1 { top: -14px; }
    .ch-wa-visual .nx-phone { width: 280px; }
    .ch-now-token { font-size: 1.8rem; }
    .ch-hours { gap: 5px; }
    .ch-trust { flex-direction: column; }
}
@media (max-width: 480px) {
    .ch-board .nx-kpis, .ch-report-win .nx-kpis, .ch-forecast-kpis { grid-template-columns: 1fr 1fr; }
    .ch-hour-track { height: 64px; }
    .ch-hour-lab { font-size: 0.5rem; }
}
