/* Dialog opened from a logo_banner logo that carries a `modal` key, rather than
   linking out. Scoped to .dpa-* so it cannot collide with the MDB modal styles. */

.dpa-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}

.dpa-modal *,
.dpa-modal *::before,
.dpa-modal *::after { box-sizing: border-box; }

.dpa-modal[hidden] { display: none; }

.dpa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 43, 69, .55);
    backdrop-filter: blur(2px);
}

.dpa-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(5, 43, 69, .3);
    /* Sized against the viewport, not the flex parent, and border-box so the panel's
       own padding is inside that width — otherwise it overhangs on a phone. */
    box-sizing: border-box;
    width: 100%;
    max-width: 620px;
    min-width: 0;
    max-height: min(88vh, 760px);
    overflow-y: auto;
    overflow-wrap: break-word;
    padding: 28px 30px 24px;
    text-align: left;
}

.dpa-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #6b7c8c;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.dpa-modal-close:hover { background: #eef3f7; color: #1b2430; }

.dpa-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b7c8c;
    margin: 0 0 6px;
}

.dpa-title {
    font-size: 24px;
    font-weight: 700;
    color: #052B45;
    margin: 0 0 12px;
    line-height: 1.2;
}

.dpa-lead {
    font-size: 15px;
    line-height: 1.6;
    color: #46586a;
    margin: 0 0 18px;
}

.dpa-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

/* Each document is one target: icon in its own column, title and meta stacked. */
.dpa-doc {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid #dbe4ec;
    border-radius: 11px;
    background: #f7fafc;
    text-decoration: none;
    transition: border-color .18s, background .18s;
}

.dpa-doc:hover {
    border-color: #0D6BAA;
    background: #eef6fb;
    text-decoration: none;
}

.dpa-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fdecec;
    color: #c0392b;
    font-size: 16px;
}

.dpa-doc-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #0D6BAA;
    line-height: 1.35;
}

.dpa-doc-meta {
    display: block;
    font-size: 12.5px;
    color: #6b7c8c;
    margin-top: 2px;
    line-height: 1.35;
}

.dpa-note {
    font-size: 13px;
    color: #6b7c8c;
    margin: 0 0 20px;
    line-height: 1.55;
}

.dpa-ask {
    background: #f2f8fb;
    border: 1px solid #d8e8f2;
    border-radius: 12px;
    padding: 16px 18px;
}

.dpa-ask-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #052B45;
    margin: 0 0 8px;
}

.dpa-ask-list {
    /* Tailwind's preflight strips list markers; restore them for this list only. */
    list-style: disc outside;
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #46586a;
}

.dpa-ask-list li { margin-bottom: 5px; }
.dpa-ask-list li strong { color: #1b2430; }

.dpa-ask-contact {
    font-size: 14px;
    color: #46586a;
    margin: 0;
    line-height: 1.6;
}

.dpa-ask-contact a,
.dpa-foot a {
    color: #0D6BAA;
    font-weight: 600;
}

.dpa-foot {
    margin: 16px 0 0;
    font-size: 13.5px;
}

@media (max-width: 560px) {
    .dpa-modal { padding: 12px; }
    .dpa-modal-panel { padding: 24px 20px 20px; max-height: 92vh; }
    .dpa-title { font-size: 21px; }
}
