/* --- COMPACT ARCHIVE ALIGNMENT OVERRIDE --- */

.log-container {
    max-height: 800px; /* Retained 100% */
    overflow-y: auto;
    padding: 25px; /* Retained 100% */
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.directory-row {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    /* Compact Padding: reduced from 65px/30px */
    padding: 45px 25px 20px 25px;
    margin-bottom: 20px; /* Tighter vertical rhythm */
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary-blue); /* Thinner accent bar */
    box-shadow: var(--shadow-stiff, 0 4px 12px rgba(0, 0, 0, 0.08));

    transition:
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.directory-row:hover {
    transform: translate3d(0, -4px, 0); /* Subtle lift */
    box-shadow:
        12px 12px 0px rgba(10, 37, 64, 0.06),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Category Overrides */
.directory-row[data-category="boe"] {
    border-top-color: var(--accent-red);
}
.directory-row[data-category="equalization"] {
    border-top-color: #f59e0b;
}

/* The Compact Red Ribbon */
.directory-row::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    left: 20px;
    height: 34px; /* Shrunk from 42px */
    padding: 0 12px;
    background: var(--accent-red);
    color: #ffffff;
    font-size: 10px; /* Shrunk from 11px */
    font-weight: 900;
    z-index: 10;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
}

.row-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; /* Reduced */
    padding-bottom: 10px; /* Reduced */
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.file-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem; /* Compact */
    font-weight: 800;
    color: var(--primary-blue);
}

.dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(145deg, #f0f2f5, #ffffff);
    padding: 4px 10px; /* Thinned */
    border: 1px solid #dce1e8;
    font-size: 0.6rem; /* Compact */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.report-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem; /* Shrunk from 1.6rem */
    font-family: "Charter", "Georgia", serif;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.2;
}

.report-desc {
    font-size: 0.88rem; /* Shrunk from 0.98rem */
    line-height: 1.5;
    color: #374151;
    margin-bottom: 15px; /* Tighter */
    border-left: 3px solid #f1f5f9;
    padding-left: 15px;
}

/* Compact Button Style */
.btn-open {
    display: inline-block; /* Changed from block to fit content or specific width */
    width: fit-content;
    min-width: 140px;
    text-align: center;
    padding: 8px 16px; /* Reduced from 12px */
    font-size: 0.65rem; /* Compact */
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
    box-shadow: 3px 3px 0px rgba(10, 37, 64, 0.1);
    transition: all 0.2s ease;
}

.btn-open:hover {
    background: var(--primary-light);
    transform: translate3d(-1px, -1px, 0);
    box-shadow: 4px 4px 0px rgba(10, 37, 64, 0.15);
}

/* Header Section */
.archive-header {
    border-bottom: 3px double var(--border);
    padding-bottom: 25px;
    margin-bottom: 40px;
}

.archive-headline {
    font-size: 3rem;
    margin-bottom: 0;
    color: var(--primary-blue);
    font-family: "Charter", "Georgia", serif;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.archive-subheadline {
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Mission Statement */
.mission-statement {
    margin-bottom: 40px;
}

.mission-quote {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-main);
    font-family: "Charter", serif;
    font-style: italic;
    border-left: 5px solid var(--primary-blue);
    padding-left: 25px;
}

.statute-highlight {
    font-weight: 900;
    font-style: normal;
    border-bottom: 2px solid var(--accent-red);
}

/* Search UI */
.search-filter-wrapper {
    margin-bottom: 40px;
}

.search-label {
    font-family: "JetBrains Mono";
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.search-input {
    width: 100%;
    padding: 18px;
    font-family: "JetBrains Mono", monospace;
    border: 2px solid var(--primary-blue);
    background: #fff;
    box-shadow: var(--shadow-stiff);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    padding: 60px;
    text-align: center;
    border: 2px dashed var(--border);
}

.empty-error-code {
    font-family: "JetBrains Mono", monospace;
    color: var(--accent-red);
    font-weight: 800;
}
