/**
 * HR District Documents — Frontend Styles
 * Version: 1.1.0
 *
 * Mirrors hr-board-meetings styling for consistency.
 * Uses Hunt Regional purple (#4F2D8F) for accents.
 * Focus styles deferred to hr-wcag-enhancements.css.
 */

.hr-dd-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hr-dd-type-badge,
.hr-dd-year-badge,
.hr-dd-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.hr-dd-type-badge {
    background-color: #4F2D8F;
    color: #fff;
}

.hr-dd-year-badge {
    background-color: #333;
    color: #fff;
}

.hr-dd-status-badge {
    background-color: #e8e8e8;
    color: #333;
}

.hr-dd-status--current    { background-color: #E8F5E9; color: #2E7D32; }
.hr-dd-status--superseded { background-color: #FFF8E1; color: #F57F17; }
.hr-dd-status--draft      { background-color: #E3F2FD; color: #1565C0; }
.hr-dd-status--archived   { background-color: #F5F5F5; color: #757575; }

.hr-dd-details {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.hr-dd-detail {
    display: flex;
    gap: 0.5rem;
}

.hr-dd-detail dt {
    font-weight: 600;
    color: #333;
}

.hr-dd-detail dd {
    margin: 0;
    color: #555;
}

.hr-dd-summary {
    width: 100%;
    margin-top: 0.75rem;
}

.hr-dd-summary p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.hr-dd-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4F2D8F;
}

.hr-dd-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hr-dd-file-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.hr-dd-file-item:last-child {
    border-bottom: none;
}

.hr-dd-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #4F2D8F;
    font-weight: 600;
}

.hr-dd-file-link:hover,
.hr-dd-file-link:focus {
    text-decoration: underline;
}

.hr-dd-file-meta {
    font-weight: 400;
    font-size: 0.85rem;
    color: #777;
}

.hr-dd-file-description {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.hr-dd-html-content {
    margin-top: 2rem;
}

.hr-dd-content-body {
    line-height: 1.7;
    color: #333;
}

.hr-dd-content-body h3,
.hr-dd-content-body h4,
.hr-dd-content-body h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.hr-dd-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.hr-dd-content-body th,
.hr-dd-content-body td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.hr-dd-content-body th {
    background-color: #f5f0fa;
    font-weight: 600;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 768px) {
    .hr-dd-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hr-dd-detail {
        flex-direction: column;
        gap: 0.15rem;
    }
}
