/* Crisis Plan Generator page styles.
   Theme, form controls and Select2 styling live in ../../assets/site.css and ../toolkit.css */

.apa-citation {
    padding-left: 2em;
    text-indent: -2em;
    text-align: left;
    line-height: 1.6;
}

.plan-render-wrapper .plan-header {
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.plan-render-wrapper .emergency-banner {
    border: 2px solid currentColor;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.plan-render-wrapper.layout-compact .plan-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.plan-render-wrapper.layout-clinical .plan-sections-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-section-box {
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

.plan-section-box h3 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    padding-bottom: 0.25rem;
}

.plan-section-box ul {
    list-style-type: disc;
    margin-left: 1.25rem;
}

.signature-block {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(128, 128, 128, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}
/* Contact rows: inputs share the row and wrap neatly; Remove stays at the end */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.contact-row input[type="text"] {
    flex: 1 1 170px;
    min-width: 0;
}
.contact-row .remove-row-btn {
    margin-left: auto;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .contact-row input[type="text"] {
        flex-basis: 100%;
    }
    .contact-row .remove-row-btn {
        width: 100%;
        padding: 4px 0;
        text-align: right;
    }
}
.suggested-row {
    border-color: var(--accent) !important;
}
.recommended-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border-radius: 99px;
    background-color: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.75em;
    font-weight: 700;
}
.removed-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 8px 6px 0;
    padding: 3px 10px;
    border: 1px dashed var(--border-color);
    border-radius: 99px;
}
/* Live preview looks like a printed page in both themes */
.crisis-paper {
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    color: #111;
}
.crisis-paper h2,
.crisis-paper h3 {
    color: #111 !important;
}
