/* ============================================================
   Release Readiness & Scientific Audit Dashboard - Step 25
   ============================================================ */

.release-hero {
    background:
        linear-gradient(135deg, rgba(6,78,59,.98), rgba(15,23,42,.98)),
        radial-gradient(circle at top left, rgba(214,168,79,.22), transparent 32%);
    color: #fff;
    border-radius: 30px;
    padding: 42px;
    margin: 28px 0;
    border-bottom: 7px solid #d6a84f;
    box-shadow: 0 22px 60px rgba(15,23,42,.14);
    position: relative;
    overflow: hidden;
}

.release-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.5;
}

.release-hero p {
    color: #e2e8f0;
    line-height: 2.2;
    max-width: 940px;
}

.release-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    margin-bottom: 26px;
}

.release-score-box {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
}

.release-score-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(#16a34a 0 82%, #e2e8f0 82% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: relative;
    box-shadow: inset 0 0 0 18px #f8fafc, 0 18px 45px rgba(15,23,42,.08);
}

.release-score-circle::after {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #fff;
}

.release-score-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.release-score-text strong {
    display: block;
    font-size: 44px;
    color: #064e3b;
    line-height: 1;
}

.release-score-text span {
    font-size: 13px;
    color: #64748b;
    font-weight: 900;
}

.release-final-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.status-ready {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-limited {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-blocked {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.release-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin-top: 24px;
}

.release-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    border-top: 5px solid #64748b;
}

.release-kpi-card.green { border-top-color: #16a34a; }
.release-kpi-card.yellow { border-top-color: #d97706; }
.release-kpi-card.red { border-top-color: #dc2626; }
.release-kpi-card.gray { border-top-color: #64748b; }

.release-kpi-card strong {
    display: block;
    font-size: 30px;
    color: #0f172a;
}

.release-kpi-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 18px;
}

.audit-table th,
.audit-table td {
    border: 1px solid #e2e8f0;
    padding: 14px;
    vertical-align: top;
    text-align: right;
    line-height: 2;
    font-size: 14px;
}

.audit-table th {
    background: #f1f5f9;
    color: #064e3b;
    font-weight: 900;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.audit-green { background:#ecfdf5; color:#166534; }
.audit-yellow { background:#fffbeb; color:#92400e; }
.audit-red { background:#fef2f2; color:#991b1b; }
.audit-gray { background:#f1f5f9; color:#475569; }

.audit-section-title {
    margin: 0 0 8px;
    color: #064e3b;
    font-size: 22px;
}

.audit-report-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: 6px solid #d6a84f;
    border-radius: 20px;
    padding: 22px;
    line-height: 2.25;
    color: #334155;
}

.audit-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-top: 16px;
}

.audit-risk-card {
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.audit-risk-card h3 {
    margin-top: 0;
    color: #0f172a;
}

.audit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.audit-actions a,
.audit-actions button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.audit-primary { background:#064e3b; color:#fff; }
.audit-gold { background:#d6a84f; color:#111827; }
.audit-dark { background:#0f172a; color:#fff; }

@media (max-width: 950px) {
    .release-score-box {
        grid-template-columns: 1fr;
    }

    .release-kpi-grid,
    .audit-risk-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 680px) {
    .release-hero,
    .release-panel {
        padding: 22px;
    }

    .release-kpi-grid,
    .audit-risk-grid {
        grid-template-columns: 1fr;
    }

    .release-score-circle {
        width: 180px;
        height: 180px;
    }

    .release-score-circle::after {
        width: 118px;
        height: 118px;
    }
}

@media print {
    .ht-header,
    .ht-footer,
    .audit-actions,
    .ht-floating-tools {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .release-panel,
    .release-hero {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}