/* ============================================================
   AUDIT PAGE — report extras
   Kept narrow on purpose so the report sections stay readable.
   ============================================================ */

.report-section h3 .count-badge {
    background: var(--brand);
    color: var(--white);
    font-size: 0.72rem;
    padding: 2px 9px;
    border-radius: 50px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.check-row {
    display: flex;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    align-items: flex-start;
}

.check-row .icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand);
}

.check-row.pass .icon {
    color: #16a34a;
    background: #f0fdf4;
}

.check-row.warn .icon {
    color: #d97706;
    background: #fffbeb;
}

.check-row.fail .icon {
    color: #ef4444;
    background: #fef2f2;
}

.check-row .check-title {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.check-row .check-cat {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.78rem;
}

.check-row .check-detail {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.pages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.pages-table th,
.pages-table td {
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--muted);
}

.pages-table th {
    color: var(--ink-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.72rem;
    background: #f8fafc;
}

.pages-table td a {
    color: var(--brand);
    text-decoration: underline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 220px;
}

.pages-table tr:last-child td {
    border-bottom: none;
}

.audit-cta {
    text-align: center;
    padding: 36px 30px;
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius);
    margin-top: 30px;
}

.audit-cta h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.audit-cta p {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1rem;
    opacity: 0.9;
}

.btn-gold {
    background: var(--orange);
    color: var(--blue);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.42);
    color: var(--blue);
}

.report-section {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 16px rgba(42,27,77, 0.05);
    margin-bottom: 22px;
}

.report-section h3 {
    color: var(--navy);
    font-size: 1.12rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-section h3 i {
    color: var(--brand);
}

.report-section h3 .count-badge {
    background: var(--blue);
    color: var(--orange);
}

.report-section .issue-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    color: var(--muted);
}

.report-section .issue-card.impact-critical,
.report-section .issue-card.impact-high {
    border-left-color: #ef4444;
}

.report-section .issue-card.impact-medium {
    border-left-color: #f97316;
}

.report-section .issue-card.impact-low {
    border-left-color: #94a3b8;
}

.report-section .issue-card h4 {
    color: var(--navy);
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.report-section .issue-card .issue-details {
    color: var(--surface-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 6px 0;
}

.report-section .issue-card .issue-fix {
    background: var(--blue-soft);
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 0.84rem;
    color: var(--ink-soft);
    margin-top: 8px;
}

.report-section .issue-card .issue-fix b {
    color: var(--blue);
}

.issue-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.issue-top h4 {
    color: var(--ink);
    font-size: 0.98rem;
    margin: 0;
}

.impact-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.impact-tag.critical {
    background: #fef2f2;
    color: #dc2626;
}

.impact-tag.high {
    background: #fff7ed;
    color: #ea580c;
}

.impact-tag.medium {
    background: #fefce8;
    color: #a16207;
}

.impact-tag.low {
    background: #f1f5f9;
    color: #475569;
}

.impact-tag.bad {
    background: #fef2f2;
    color: #dc2626;
}
