/* ============================================================
   CAPITOL LABS — CORE DESIGN SYSTEM
   Classy, punk, minimal.

   This is the single source of truth for the platform's visual
   language. Design canon: design-canon.md

   Structure:
     1. Design Tokens (CSS custom properties)
     2. Base Reset & Typography
     3. Navigation
     4. Links & Buttons
     5. Cards, Tables, Badges
     6. Forms & Inputs
     7. Filter Sidebar & Browse Layout
     8. Document Links (the signature pattern)
     9. Custom Select Dropdowns
    10. Pagination
    11. Toast & Alerts
    12. CTA Banner
    13. Footer
    14. Consent Banner
    15. Utilities
    16. Responsive
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
    /* Foundation */
    --color-text:           #1a1a1a;
    --color-text-secondary: #6c757d;
    --color-text-body-alt:  #4a4a4a;
    --color-text-muted:     #999;
    --color-bg:             #ffffff;
    --color-border:         #f0f0f0;
    --color-border-input:   #d0d0d0;
    --color-hover-bg:       #f8f9fa;

    /* Chamber */
    --color-senate:         #17a2b8;
    --color-house:          #ff6600;
    --color-joint:          #c88a00;

    /* Semantic */
    --color-link:           #17a2b8;
    --color-success:        #28a745;
    --color-crs-gold:       #b8860b;

    /* Buttons */
    --color-btn-primary:    #1a1a1a;
    --color-btn-secondary:  #ff6600;

    /* Consent banner */
    --color-banner-bg:      #1a1a2e;

    /* Typography */
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-reading: 'Source Serif 4', Georgia, serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

    /* Spacing */
    --container-width:      900px;
    --container-padding:    3rem;
    --section-gap:          5rem;

    /* Transitions */
    --transition-fast:      0.15s ease;
    --transition-base:      0.3s ease;

    /* Borders */
    --border-base:          1px solid var(--color-border);
    --border-input:         1px solid var(--color-border-input);
    --radius-badge:         3px;   /* The ONLY rounded element */
}


/* ============================================================
   2. BASE RESET & TYPOGRAPHY
   ============================================================ */

*, *::before, *::after {
    border-radius: 0 !important;  /* Sharp edges everywhere */
}

body {
    font-family: var(--font-ui);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
}

strong, b {
    font-weight: 500;
}

.text-secondary, .text-muted {
    color: var(--color-text-secondary) !important;
}

.lead {
    font-size: 1rem;
    color: var(--color-text-secondary);
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */

.top-nav {
    background: var(--color-bg);
    border-bottom: var(--border-base);
    padding: 0.4rem 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
    max-width: var(--container-width);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-right: 2rem;
}

.nav-brand-text {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav-brand-text:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

/* Auth icon in nav */
.auth-icon {
    color: #b0b0b0;
    font-size: 0.85rem;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
}

.auth-icon:hover {
    color: var(--color-text-secondary);
    border-bottom: none;
}

/* Nav search form */
.nav-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-search input {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border: none;
    border-bottom: var(--border-input);
    width: 200px;
    background: transparent;
}

.nav-search input:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}

.nav-search button {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: border-bottom-color var(--transition-fast), color var(--transition-fast);
}

.nav-search button:hover {
    background: transparent;
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.nav-search button:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}


/* ============================================================
   4. LINKS & BUTTONS
   ============================================================ */

a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

a:hover {
    color: var(--color-link);
    border-bottom-color: var(--color-link);
    text-decoration: none;
}

/* Primary button — charcoal, inverts on hover */
.btn-primary,
.btn {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    background: var(--color-btn-primary);
    color: #fff;
    border: 1px solid var(--color-btn-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary:hover,
.btn:hover {
    background: var(--color-bg);
    color: var(--color-btn-primary);
    outline: 2px solid var(--color-btn-primary);
    text-decoration: none;
}

/* Secondary button — orange outline, fills on hover */
.btn-secondary {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    background: transparent;
    color: var(--color-btn-secondary);
    border: 2px solid var(--color-btn-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--color-btn-secondary);
    color: #fff;
    text-decoration: none;
}

/* Ghost button — invisible until hovered */
.btn-ghost {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-ghost:hover {
    background: transparent;
    color: var(--color-text);
    border-bottom-color: var(--color-text);
    text-decoration: none;
}

/* Outline light button (used in some templates) */
.btn-outline-light {
    background: transparent;
    color: var(--color-text);
    border: var(--border-input);
}

.btn-outline-light:hover {
    background: var(--color-btn-primary);
    color: #fff;
    border-color: var(--color-btn-primary);
}


/* ============================================================
   5. CARDS, TABLES, BADGES
   ============================================================ */

/* Cards — flat, no shadows, no radius */
.card {
    background: var(--color-bg);
    border: var(--border-base);
    margin-bottom: 2rem;
}

.card-header {
    background: var(--color-bg);
    border-bottom: var(--border-base);
    padding: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tables — minimal */
.table {
    font-size: 0.95rem;
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

.table th {
    background-color: var(--color-hover-bg);
    font-weight: 500;
    color: var(--color-text);
    border: var(--border-base);
    padding: 0.75rem;
    text-align: left;
}

.table td {
    border: var(--border-base);
    padding: 0.75rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--color-hover-bg);
}

/* Badges — the ONLY rounded element (3px) */
.badge {
    font-weight: 400;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: var(--radius-badge) !important;
    display: inline-block;
}

/* Chamber badges */
.badge-senate {
    background-color: var(--color-senate) !important;
    color: #fff;
}

.badge-house {
    background-color: var(--color-house) !important;
    color: #fff;
}

.badge-joint {
    background-color: var(--color-joint) !important;
    color: #fff;
}

/* Clickable chamber badge links */
.badge-link {
    text-decoration: none;
    transition: opacity var(--transition-fast);
    display: inline;
    border-bottom: none;
}

.badge-link:hover {
    opacity: 0.8;
    text-decoration: none;
    border-bottom: none;
}

.badge-link .badge {
    margin-left: 0;
}

/* Congress badge — grey pill */
.badge-congress {
    background: #e9ecef;
    color: var(--color-text-secondary);
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.03em;
    vertical-align: baseline;
}

/* Bootstrap badge overrides to use our palette */
.bg-info    { background-color: var(--color-senate) !important; color: #fff; }
.bg-success { background-color: var(--color-success) !important; color: #fff; }
.bg-warning { background-color: var(--color-joint) !important; color: var(--color-text); }
.bg-primary { background-color: var(--color-text) !important; color: #fff; }
.bg-secondary { background-color: var(--color-text-secondary) !important; color: #fff; }

/* Transcript badges */
.transcript-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-badge) !important;
    font-size: 0.75rem;
    cursor: default;
}

.transcript-badge.validated {
    background-color: #28a745;
    color: #fff;
}

.transcript-badge.validated .fa-bolt {
    position: absolute;
    top: 12%;
    left: 88%;
    transform: translate(-50%, -50%);
    color: #ffd700;
    font-size: 0.7rem;
    filter: drop-shadow(0.5px 0.5px 0 rgba(0,0,0,0.3))
            drop-shadow(-0.5px -0.5px 0 rgba(0,0,0,0.3));
}

.transcript-badge.unvalidated {
    background-color: #28a745;
    color: #fff;
}

.transcript-badge.request {
    background-color: #d4edda;
    color: var(--color-success);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.transcript-badge.request:hover {
    background-color: #b7e4c7;
    color: #1e7e34;
}

.transcript-badge.requested {
    background-color: #d4edda;
    color: var(--color-success);
    cursor: default;
}

/* Transcript tooltip */
.transcript-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    border-bottom: 2px solid var(--color-text);
}

.transcript-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text);
}

.transcript-badge:hover .transcript-tooltip {
    display: block;
}


/* ============================================================
   6. FORMS & INPUTS
   ============================================================ */

.form-control,
.form-select {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border: var(--border-input);
    background: var(--color-bg);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-link);
    box-shadow: none;
}

/* Video player — no rounded corners, no shadows */
.video-container {
    max-width: 100%;
    margin: 0 auto;
}

.video-container iframe {
    border: var(--border-base);
}


/* ============================================================
   7. FILTER SIDEBAR & BROWSE LAYOUT
   ============================================================ */

.browse-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filter-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-sidebar h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label,
.filter-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Minimal underline-only inputs for filter sidebar */
.filter-sidebar select,
.filter-sidebar input[type="text"],
.filter-sidebar input[type="date"] {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border: none;
    border-bottom: var(--border-input);
    width: 100%;
    background: transparent;
    color: var(--color-text);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.filter-sidebar select {
    padding-right: 1.2rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%236c757d" d="M1 1l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px;
}

.filter-sidebar select:focus,
.filter-sidebar input[type="text"]:focus,
.filter-sidebar input[type="date"]:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.filter-actions button,
.filter-actions a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.filter-actions button:hover,
.filter-actions a:hover {
    background: transparent !important;
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}


/* ============================================================
   8. DOCUMENT LINKS (the signature pattern)
   ============================================================ */

.document-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.document-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--color-text);
    padding: 2rem 0 0.5rem 0;
    border-bottom: var(--border-base);
    transition: all var(--transition-base);
    cursor: pointer;
}

.document-link:hover {
    transform: translateX(5px);
    border-bottom-color: var(--color-border);
    color: var(--color-text);
}

.document-link:hover .document-title {
    color: var(--color-text);
}

.document-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: color var(--transition-base);
}

/* Highlighted search terms in title */
.document-title mark {
    background: transparent;
    color: inherit;
    font-weight: 700;
    font-style: italic;
    border-bottom: 2px solid #e63946;
    padding: 0;
}

/* Expandable titles */
.title-toggle {
    cursor: pointer;
    color: var(--color-text-muted);
    font-weight: 400;
    font-style: normal;
    margin-left: 0.25rem;
}

.title-toggle:hover {
    color: #e63946;
}

.title-toggle.collapse {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

.title-toggle.collapse:hover {
    color: #e63946;
}

.document-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    white-space: nowrap;
}

.document-meta a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: border-bottom-color var(--transition-fast), color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.document-meta a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-secondary);
}

.empty-state-emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

/* Committee link in hearing meta — tooltip via data-tip (not title, to avoid native double) */
.committee-link {
    cursor: pointer;
    position: relative;
}

[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--color-text);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-family: var(--font-ui);
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 4px;
}

[data-tip]:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   9. CUSTOM SELECT DROPDOWNS
   ============================================================ */

.custom-select {
    position: relative;
}

.custom-select select {
    display: none;
}

.custom-select-trigger {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem 0.4rem 0;
    border: none;
    border-bottom: var(--border-input);
    width: 100%;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%236c757d" d="M1 1l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px;
}

.custom-select-trigger:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}

.custom-select-trigger:hover {
    border-bottom-color: var(--color-text);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 0.25rem;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.custom-select-option:hover,
.custom-select-option.highlighted {
    background: var(--color-hover-bg);
    color: var(--color-link);
}

.custom-select-option.selected {
    color: var(--color-link);
}

/* Scrollbar styling */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: var(--color-border);
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--color-border-input);
    border-radius: var(--radius-badge);
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}


/* ============================================================
   10. PAGINATION
   ============================================================ */

.pagination {
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--color-text-secondary);
    border: none;
    background: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.pagination .page-link:hover {
    color: var(--color-link);
    background: none;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    color: var(--color-text);
    font-weight: 500;
    background: none;
    border: none;
}

.pagination .page-item.disabled .page-link {
    color: var(--color-border-input);
    background: none;
}


/* ============================================================
   11. TOAST & ALERTS
   ============================================================ */

/* Toast notification */
.feedback-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-banner-bg);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.feedback-toast.visible {
    opacity: 1;
}

/* Alerts — left border accent pattern */
.alert {
    padding: 1rem 1.25rem;
    border: none;
    border-left: 3px solid var(--color-border-input);
    background: var(--color-hover-bg);
    margin-bottom: 1.5rem;
}

.alert-error,
.alert-danger {
    border-left-color: #dc3545;
    background: #fdf2f2;
}

.alert-success {
    border-left-color: var(--color-success);
    background: #f0fdf4;
}

.alert-info {
    border-left-color: var(--color-senate);
    background: #f0f9ff;
}


/* ============================================================
   12. CTA BANNER
   ============================================================ */

.cta-banner {
    padding: 1rem 1.5rem;
    border-bottom: var(--border-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-banner .cta-text {
    font-weight: 500;
    color: var(--color-text);
}

.cta-banner .cta-subtext {
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
}

.cta-banner .btn {
    white-space: nowrap;
    font-size: 0.85rem;
}


/* ============================================================
   13. FOOTER
   ============================================================ */

footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: var(--color-bg);
    border-top: var(--border-base);
    font-size: 0.9rem;
}

/* Graffiti mark in footer */
.footer-mark {
    display: block;
    max-width: 120px;
    margin: 1rem auto 0;
    mix-blend-mode: multiply;
    transition: opacity var(--transition-base);
}

.footer-mark:hover {
    opacity: 0.7;
}


/* ============================================================
   14. CONSENT BANNER
   ============================================================ */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-banner-bg);
    color: #e0e0e0;
    padding: 14px 20px;
    z-index: 9999;
    font-size: 0.875rem;
    border-top: 1px solid #333;
    display: none;
}

.consent-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.consent-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.consent-banner a {
    color: #94a3b8;
    text-decoration: underline;
    border-bottom: none;
}

.consent-banner .consent-actions {
    display: flex;
    gap: 8px;
}

.consent-btn-accept {
    background: var(--color-text);
    color: #fff;
    border: none;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.8rem;
}

.consent-btn-decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #555;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.8rem;
}


/* ============================================================
   15. UTILITIES
   ============================================================ */

/* Quick date filter buttons */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-filter {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-bottom: var(--border-input);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.quick-filter:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.quick-filter.active {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
    font-weight: 500;
}

/* Transcript search matches */
.transcript-matches {
    margin-top: 0.75rem;
    margin-left: 1rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid var(--color-text);
    background: transparent;
}

.transcript-match {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a.transcript-match:hover {
    opacity: 0.7;
    border-bottom: none;
}

.transcript-match:last-child {
    margin-bottom: 0;
}

.transcript-speaker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.transcript-snippet {
    color: #333;
    font-style: italic;
    flex: 1;
}

.transcript-snippet mark {
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    font-style: normal;
    border-bottom: 2px solid #e63946;
    padding: 0;
}

.transcript-more {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.transcript-more:hover {
    color: var(--color-text);
}

/* Metadata match indicators */
.metadata-matches {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border-input);
}

.metadata-match {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.metadata-match:last-child {
    margin-bottom: 0;
}

.match-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
}

.match-type::after {
    content: ':';
}

.match-value {
    color: #333;
    font-style: italic;
}

.match-value mark {
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    font-style: normal;
    border-bottom: 2px solid #e63946;
    padding: 0;
}

/* Collapse toggle */
.collapse-toggle .fa-chevron-down {
    transition: transform var(--transition-base);
}

.collapse-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Spacing utilities */
.mb-6 { margin-bottom: 6rem !important; }

/* Sort options */
.sort-group {
    margin-bottom: 1.5rem;
}

/* FontAwesome icons — minimal usage */
.fas, .fa, .far {
    font-size: inherit;
}

/* Hide Bootstrap default navbar */
.navbar, .navbar-dark {
    display: none;
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .browse-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filter-sidebar {
        position: static;
        border-bottom: var(--border-base);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .filter-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .document-link:hover {
        transform: none;
    }

    .quick-filters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 3rem 2rem 4rem;
    }

    .top-nav .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}
