/* Shared compact read-only popup for platform and service details. */
.detail-modal .modal-header {
    background: var(--moh-green);
    color: #fff;
}

.detail-modal .modal-body {
    background: #f7faf8;
    padding: .8rem;
}

.pd-hero {
    align-items: flex-start;
    background: linear-gradient(110deg, var(--moh-green), var(--moh-green-dark));
    border-radius: .62rem;
    color: #fff;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .65rem;
    padding: .75rem .85rem;
}

.pd-hero h3 {
    font-size: 1rem;
    font-weight: 750;
    margin: 0;
}

.pd-hero-meta {
    color: #d5eadf;
    font-size: .67rem;
    margin-top: .15rem;
}

.pd-hero-meta a {
    color: #fff;
    text-decoration: none;
}

.pd-grid {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-section {
    background: #fff;
    border: 1px solid #dbe7df;
    border-radius: .58rem;
    padding: .62rem;
}

.pd-section h4 {
    border-bottom: 1px solid #e6eee9;
    color: var(--moh-green);
    font-size: .75rem;
    font-weight: 750;
    margin: 0 0 .45rem;
    padding-bottom: .35rem;
}

.pd-fields {
    display: grid;
    gap: .36rem .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-field {
    min-width: 0;
}

.pd-field-wide {
    grid-column: 1 / -1;
}

.pd-field span {
    color: #738078;
    display: block;
    font-size: .58rem;
    margin-bottom: .04rem;
}

.pd-field strong {
    color: #26372e;
    display: block;
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.pd-notes {
    background: #fffdf4;
    border: 1px solid #eadfac;
    border-radius: .55rem;
    color: #665d32;
    display: grid;
    font-size: .67rem;
    gap: .4rem;
    margin-top: .6rem;
    padding: .55rem .65rem;
}

.pd-footer {
    align-items: center;
    display: flex;
    gap: .6rem;
    justify-content: space-between;
    margin-top: .6rem;
}

.pd-audit {
    color: #738078;
    font-size: .6rem;
}

.detail-icon-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #dfb9b5;
    border-radius: .38rem;
    color: var(--danger);
    display: inline-flex;
    flex: 0 0 29px;
    height: 27px;
    justify-content: center;
    padding: 0;
}

.detail-icon-btn svg {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 14px;
}

.detail-icon-btn:hover {
    background: #fdf0ef;
    border-color: var(--danger);
}

@media (max-width: 700px) {
    .pd-grid {
        grid-template-columns: 1fr;
    }
}
