/* Asthme — Sprint 12 P4a */

.asthme-page .ast-step-list { list-style:none; padding:0; margin:0.75rem 0; }
.asthme-page .ast-step-row {
    appearance: none;
    width: 100%; text-align: left;
    border: 1px solid var(--prn-line);
    background: var(--prn-bg);
    color: var(--prn-ink);
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
    margin-bottom: 0.6rem;
}
.asthme-page .ast-step-row:focus-visible,
.asthme-page .ast-step-row:hover {
    border-color: var(--logo-teal);
    outline: 2px solid var(--logo-teal);
    outline-offset: 1px;
}
.asthme-page .ast-step-row.is-selected {
    background: var(--prn-teal-light);
    border-color: var(--logo-teal);
}
.asthme-page .ast-step-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.6rem; margin-bottom: 0.4rem;
}
.asthme-page .ast-step-head strong { font-size: 0.98rem; }

.asthme-page .ast-badge {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.asthme-page .ast-badge-warn     { background: #fff8e1; color: #b15a00; }
.asthme-page .ast-badge-referral { background: #fff3f3; color: #b00020; }

.asthme-page .ast-ci {
    border: 1px solid var(--prn-line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: var(--prn-bg);
}
.asthme-page .ast-ci legend { font-weight: 700; padding: 0 0.4rem; }
.asthme-page .ast-ci-grid { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.asthme-page .ast-ci-chip {
    appearance: none;
    border: 1px solid var(--prn-line);
    background: var(--prn-surface);
    color: var(--prn-ink);
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.5rem;
}
.asthme-page .ast-ci-chip.is-selected {
    background: var(--prn-teal-light);
    border-color: var(--logo-teal);
    color: var(--prn-teal-strong);
}
.asthme-page .ast-sev {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.asthme-page .ast-sev-absolute { background: #fff3f3; color: #b00020; }
.asthme-page .ast-sev-avoid    { background: #fff8e1; color: #b15a00; }

.asthme-page .ast-card {
    border: 1px solid var(--prn-line);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem 0;
    background: var(--prn-bg);
}
.asthme-page .ast-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.asthme-page .ast-card p { margin: 0.3rem 0; line-height: 1.55; }
.asthme-page .ast-card ul, .asthme-page .ast-card ol { margin: 0.3rem 0; padding-left: 1.3rem; line-height: 1.6; }
.asthme-page .ast-card-pref     { border-left: 4px solid var(--logo-teal); }
.asthme-page .ast-card-absolute { border-left: 4px solid #b00020; background: #fff3f3; }
.asthme-page .ast-card-warn     { border-left: 4px solid #d97706; background: #fff8e1; }
.asthme-page .ast-card-redflag  { border-left: 4px solid #b00020; background: #fff3f3; }
.asthme-page .ast-card-green    { border-left: 4px solid #16a34a; background: #f0fdf4; }
.asthme-page .ast-card-yellow   { border-left: 4px solid #ca8a04; background: #fefce8; }
.asthme-page .ast-card-red      { border-left: 4px solid #dc2626; background: #fef2f2; }

.asthme-page .ast-device { border: 1px solid var(--prn-line); padding: 0.6rem; margin-top: 0.6rem; border-radius: 8px; }
.asthme-page .ast-device legend { font-weight: 600; padding: 0 0.4rem; }
.asthme-page .ast-device-chip {
    appearance: none;
    margin: 0.3rem 0.4rem 0.3rem 0;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--prn-line);
    background: var(--prn-surface);
    color: var(--prn-ink);
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}
.asthme-page .ast-device-chip.is-selected {
    background: var(--prn-teal-light);
    border-color: var(--logo-teal);
    color: var(--prn-teal-strong);
}

.asthme-page .ast-technique-list { padding-left: 1.4rem; }
.asthme-page .ast-spacer-note    {
    margin-top: 0.6rem; font-size: 0.88rem; color: var(--prn-muted); font-style: italic;
    background: #f3f4f6; padding: 0.6rem 0.8rem; border-radius: 8px;
}
.asthme-page .ast-sources { font-size: 0.85rem; color: var(--prn-muted); }

[data-theme="dark"] .asthme-page .ast-badge-warn     { background: #2a230f; color: #ffc774; }
[data-theme="dark"] .asthme-page .ast-badge-referral { background: #2a1414; color: #ff8a8a; }
[data-theme="dark"] .asthme-page .ast-sev-absolute   { background: #2a1414; color: #ff8a8a; }
[data-theme="dark"] .asthme-page .ast-sev-avoid      { background: #2a230f; color: #ffc774; }
[data-theme="dark"] .asthme-page .ast-card-absolute { background: #2a1414; color: #ffe7e7; }
[data-theme="dark"] .asthme-page .ast-card-warn     { background: #2a230f; color: #ffe6c4; }
[data-theme="dark"] .asthme-page .ast-card-redflag  { background: #2a1414; color: #ffe7e7; }
[data-theme="dark"] .asthme-page .ast-card-green    { background: #14281e; color: #d1f3df; }
[data-theme="dark"] .asthme-page .ast-card-yellow   { background: #2a230f; color: #fff3c7; }
[data-theme="dark"] .asthme-page .ast-card-red      { background: #2a1414; color: #ffe7e7; }
[data-theme="dark"] .asthme-page .ast-spacer-note   { background: #1c1f24; color: #e1e6ed; }
