/**
 * Clinical library: procedures, conditions, device-type additions, companies, industry.
 * Builds on devices.css (same palette: slate text, blue links, #f8fafc page).
 */

.lavm-library {
    padding: 32px 0 72px;
    background: #f8fafc;
    min-height: 60vh;
    color: #0f172a;
}
.lavm-library .lavm-container { max-width: 1040px; }

.lavm-lib-hero { margin: 8px 0 24px; }
.lavm-lib-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; color: #0f172a; }
.lavm-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: #2563eb; font-weight: 600; margin: 0 0 6px; }
.lavm-library .lavm-lead { font-size: 1.125rem; line-height: 1.6; color: #334155; max-width: 760px; margin-left: 0; margin-right: 0; text-align: left; }

.lavm-hero-figure { margin: 0 0 24px; }
.lavm-hero-figure img { width: 100%; height: auto; border-radius: 12px; display: block; background: #e2e8f0; }
.lavm-hub-figure { margin-top: 8px; }

.lavm-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin: 0 0 28px;
}
.lavm-facts div { font-size: .95rem; line-height: 1.5; }
.lavm-facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: 2px; }

.lavm-library .lavm-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; margin: 0 0 20px; }
.lavm-library .lavm-section h2 { font-size: 1.4rem; margin: 0 0 12px; line-height: 1.3; }
.lavm-library .lavm-section h2 a { color: inherit; text-decoration: none; }
.lavm-library .lavm-section h2 a:hover { color: #2563eb; }
.lavm-library .lavm-content p, .lavm-library .lavm-section p, .lavm-library .lavm-section li { line-height: 1.65; }
.lavm-library a { color: #2563eb; }

.lavm-steps { padding-left: 1.3em; }
.lavm-steps li { margin-bottom: 10px; }

.lavm-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 12px 0; }
.lavm-card {
    display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px;
    color: #0f172a; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.lavm-card:hover { border-color: #3b82f6; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
a.lavm-card p { color: #334155; }
a.lavm-card p.lavm-muted { color: #64748b; }
a.lavm-card h3 { color: #1d4ed8; }
.lavm-card h3, .lavm-card-title { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.35; }
.lavm-card p { margin: 0 0 8px; font-size: .95rem; }
.lavm-card-cta { color: #2563eb; font-weight: 600; font-size: .9rem; }
.lavm-muted { color: #64748b; font-size: .9rem; }
.lavm-plain { list-style: none; padding: 0; margin: 0; }
.lavm-plain li { margin: 4px 0; }

.lavm-link-columns { columns: 3 240px; column-gap: 28px; padding-left: 1.1em; }
.lavm-link-columns li { break-inside: avoid; margin: 0 0 6px; }

.lavm-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lavm-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: .9rem; text-decoration: none; }
a.lavm-chip:hover { background: #dbeafe; }

.lavm-badge { display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.lavm-notice { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; line-height: 1.55; }
.lavm-industry-cta { margin-top: 24px; }
.lavm-disclaimer { color: #64748b; font-size: .85rem; line-height: 1.55; margin-top: 24px; }
.lavm-cost-callout { border-left: 4px solid #3b82f6; }

.lavm-filter-input { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; margin: 8px 0 12px; box-sizing: border-box; }

.lavm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lavm-lines { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.lavm-lines th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 2px solid #e2e8f0; padding: 8px 10px; }
.lavm-lines td { border-bottom: 1px solid #f1f5f9; padding: 10px; vertical-align: top; }
.lavm-lines tr:target td { background: #fef9c3; }
.lavm-mfr { margin-top: 4px; font-size: .9rem; }
.lavm-mfr-label { font-size: .72rem; text-transform: uppercase; color: #166534; font-weight: 700; letter-spacing: .03em; }
.lavm-mini { margin: 4px 0 0; padding-left: 1.1em; font-size: .88rem; }
.lavm-row-links { font-size: .85rem; margin-top: 4px; }

.lavm-rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lavm-rep { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; font-size: .92rem; line-height: 1.5; background: #fff; }

.lavm-company-hero { display: flex; gap: 18px; align-items: flex-start; }
.lavm-company-logo { width: 96px; height: auto; max-height: 96px; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; }

/* Condition articles: treatment block and procedure box */
.lavm-condition-treatments { margin: 36px 0 12px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.lavm-condition-treatments h2 { margin-top: 0; }
.lavm-procedure-box { margin: 24px 0; padding: 12px 16px; border-left: 4px solid #3b82f6; background: #eff6ff; border-radius: 6px; line-height: 1.6; }

/* Industry page */
.lavm-btn { display: inline-block; padding: 11px 18px; border-radius: 8px; background: #2563eb; color: #fff !important; font-weight: 600; text-decoration: none; border: 2px solid #2563eb; cursor: pointer; font-size: 1rem; }
.lavm-btn:hover { background: #1d4ed8; border-color: #1d4ed8; }
.lavm-btn-outline { background: #fff; color: #2563eb !important; }
.lavm-btn-outline:hover { background: #eff6ff; }
.lavm-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 20px; }
.lavm-stat-row div { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.lavm-stat-row strong { display: block; font-size: 2rem; color: #1d4ed8; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lavm-stat-row span { color: #475569; font-size: .92rem; }
.lavm-screenshot { margin: 0 0 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.lavm-screenshot img { width: 100%; height: auto; display: block; border-radius: 6px; }
.lavm-screenshot figcaption { font-size: .85rem; color: #64748b; margin-top: 8px; line-height: 1.5; }
.lavm-form input[type=text], .lavm-form input[type=email], .lavm-form input[type=tel], .lavm-form input[type=url], .lavm-form textarea {
    width: 100%; max-width: 560px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; box-sizing: border-box;
}
.lavm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
    .lavm-library { padding-top: 20px; }
    .lavm-library .lavm-section { padding: 16px; }
    .lavm-library .lavm-container { padding: 0 16px; }
    .lavm-company-hero { flex-direction: column; }
    .lavm-link-columns { columns: 1; }
}
