/* ===================================================================
   arre.st — Dark Theme Stylesheet
   DeezTimestamps-inspired: pure black, thumbnail-dominant cards,
   horizontal carousels, minimal chrome.
   =================================================================== */

/* ---------------------------------------------------------------
   1. CSS Custom Properties
--------------------------------------------------------------- */
:root {
    --bg: #0a0a0a;
    --surface: #141416;
    --border: #1a1a1a;
    --text: #e5e5e5;
    --text-secondary: #666;
    --text-muted: #444;
    --accent: #F16324;
    --radius: 10px;
    --radius-sm: 8px;
}

/* ---------------------------------------------------------------
   2. Reset & Base
--------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------------------------------------------------------------
   3. Navigation (.nav)
--------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 32px;
}

.nav-logo {
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Offset body for fixed nav */
body {
    padding-top: 56px;
}

/* ---------------------------------------------------------------
   4. Content Wrapper (.content)
--------------------------------------------------------------- */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 30px;
}

/* ---------------------------------------------------------------
   5. Section (.section)
--------------------------------------------------------------- */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.section-link {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.section-link:hover {
    opacity: 0.8;
}

/* ---------------------------------------------------------------
   6. Carousel ([data-carousel])
--------------------------------------------------------------- */
.carousel-wrapper {
    position: relative;
}

[data-carousel] {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
}

[data-carousel]::-webkit-scrollbar {
    display: none;
}

/* Scroll indicator bar */
.carousel-indicator {
    margin-top: 12px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.carousel-indicator-thumb {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 20%;
    transition: transform 0.15s ease-out;
}

.carousel-wrapper {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255,255,255,0.3);
}

.carousel-arrow.carousel-prev {
    left: 8px;
}

.carousel-arrow.carousel-next {
    right: 8px;
}

.arrow-btn.arrow-prev {
    left: -16px;
}

.arrow-btn.arrow-next {
    right: -16px;
}

/* ---------------------------------------------------------------
   7. Record Card (.record-card)
--------------------------------------------------------------- */
.record-card {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.record-card:hover {
    transform: scale(1.03);
}

.record-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.record-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-thumb::after {
    content: 'PRESUMED INNOCENT';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.record-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.record-county {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.record-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------
   8. Video Card (.video-card)
--------------------------------------------------------------- */
.video-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.03);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a1c 0%, #0f0f10 100%);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-ep {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------
   9. Headline List (.headline-list, .headline-item)
--------------------------------------------------------------- */
.headline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.headline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.headline-item:first-child {
    border-top: 1px solid var(--border);
}

.headline-item:hover {
    opacity: 0.8;
}

.headline-text {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    flex: 1;
    margin-right: 12px;
}

.headline-source {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-right: 8px;
}

.headline-time {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    margin-left: 16px;
}

/* ---------------------------------------------------------------
   10. News Carousel — Homepage (.news-carousel-card)
--------------------------------------------------------------- */
.news-carousel-card {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.news-carousel-card:hover {
    transform: scale(1.03);
}

.news-carousel-thumb {
    width: 100%;
    height: 200px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.news-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-carousel-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-carousel-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.news-carousel-title {
    font-size: 11px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 4px;
    flex: 1;
}

.news-carousel-source {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: auto;
}

.news-link {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* ---------------------------------------------------------------
   11. News Page (.news-list, .news-item-full)
--------------------------------------------------------------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item-full {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    transition: background 0.15s;
}

.news-item-full:hover {
    background: #1a1a1e;
}

.news-item-thumb {
    width: 90px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #1e1e20;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-item-title:hover {
    color: var(--accent);
}

.news-item-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.news-item-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.news-item-source {
    color: var(--text-muted);
}

.news-item-actions {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.news-link-ext {
    color: var(--text-secondary);
}

.news-link-ext:hover {
    color: var(--accent);
}

/* ---------------------------------------------------------------
   12. Record Grid (.record-grid)
--------------------------------------------------------------- */
.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.record-grid .record-card {
    min-width: unset;
    width: 100%;
}

/* ---------------------------------------------------------------
   13. Filter Pills (.filter-bar, .pill-scroll, .pill)
--------------------------------------------------------------- */
.filter-bar {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.pill-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: #888;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s, opacity 0.2s;
    user-select: none;
}

.pill-arrow:hover {
    border-color: #555;
    color: #fff;
}

.pill-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    padding-bottom: 2px;
    cursor: grab;
}

.pill-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.pill-scroll::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    display: inline-block;
}

.pill:hover {
    color: var(--text);
    border-color: #333;
}

.pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Pin icon on facility pills */
.pill-pin-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.pin-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.pin-btn:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.pin-btn.pinned {
    color: var(--accent);
}

/* Pinned facility rows on homepage */
#pinned-facilities {
    margin-bottom: 8px;
}

.pinned-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pinned-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.pinned-row {
    margin-bottom: 20px;
}

.pinned-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pinned-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pinned-row-state {
    font-size: 12px;
    color: var(--text-secondary);
}

.pinned-row-unpin {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}

.pinned-row-unpin:hover {
    color: #fff;
    border-color: #555;
}

.pinned-row-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    padding-bottom: 4px;
}

.pinned-row-cards::-webkit-scrollbar {
    display: none;
}

.pinned-row-cards .record-card {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.pinned-row-cards .record-name {
    font-size: 12px;
}

.pinned-row-cards .record-meta {
    font-size: 11px;
}

.pinned-skeleton {
    width: 150px;
    min-width: 150px;
    height: 200px;
    background: var(--surface);
    border-radius: var(--radius);
    flex-shrink: 0;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ---------------------------------------------------------------
   14. Pagination (.pagination)
--------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}

.page-btn {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.page-btn:hover {
    background: #1c1c1e;
    color: var(--text);
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---------------------------------------------------------------
   15. Load More (.load-more)
--------------------------------------------------------------- */
.load-more {
    margin-top: 24px;
    text-align: center;
}

.load-more-btn {
    display: block;
    width: 100%;
    background: var(--surface);
    color: var(--accent);
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #1c1c1e;
}

/* ---------------------------------------------------------------
   16. Post Form (.post-form-container, .post-form)
--------------------------------------------------------------- */
.post-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.post-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group textarea,
input[type="text"].form-input,
input[type="url"].form-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
input[type="text"].form-input:focus,
input[type="url"].form-input:focus {
    border-color: var(--accent);
    outline: none;
}

.required {
    color: var(--accent);
}

.form-select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px;
    font-family: inherit;
    outline: none;
    appearance: auto;
}

.form-select:focus {
    border-color: var(--accent);
}

.report-notice {
    background: rgba(241, 99, 36, 0.08);
    border: 1px solid rgba(241, 99, 36, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.report-notice strong {
    color: var(--accent);
}

.report-notice a {
    color: var(--accent);
    text-decoration: underline;
}

.report-sworn {
    margin: 24px 0;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.report-sworn h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.report-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.report-checkbox input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.report-checkbox label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #d9521a;
}

.form-message {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---------------------------------------------------------------
   17. Error Page (.error-page)
--------------------------------------------------------------- */
.error-page {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.error-page h1 {
    font-size: 96px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.error-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
}

.btn:hover {
    background: #d9521a;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(241, 99, 36, 0.1);
}

/* ---------------------------------------------------------------
   18. Static Pages (.static-content)
--------------------------------------------------------------- */
.static-content {
    max-width: 800px;
    margin: 0 auto;
}

.static-content h1 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
}

.static-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 32px;
    color: var(--text);
}

.static-content p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.static-content a {
    color: var(--accent);
    text-decoration: underline;
}

.static-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.static-content ul, .static-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.static-content li {
    margin-bottom: 6px;
}

.static-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--accent);
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

.contact-card p {
    color: var(--text);
    margin: 0;
}

/* ---------------------------------------------------------------
   19. Footer (.footer)
--------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 30px 40px;
    text-align: center;
    font-size: 12px;
    color: #333;
}

.footer-disclaimer {
    font-size: 11px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.5;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(241, 99, 36, 0.05);
}

.footer a {
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.footer a:hover {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-copy {
    color: #333;
}

/* ---------------------------------------------------------------
   20. Page Header (.page-header)
--------------------------------------------------------------- */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

/* ---------------------------------------------------------------
   21. Community Placeholder (.community-placeholder)
--------------------------------------------------------------- */
.community-placeholder {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------
   22. Breadcrumbs
--------------------------------------------------------------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

/* ---------------------------------------------------------------
   23. Record Detail (.record-detail)
--------------------------------------------------------------- */
.record-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.record-detail-image {
    flex-shrink: 0;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.record-detail-image img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    background: var(--surface);
}

.record-detail-image::after {
    content: 'PRESUMED INNOCENT';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius) var(--radius);
}

.record-detail-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.record-detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-booking-id {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Share bar */
.share-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.share-btn:hover {
    background: #1c1c1e;
    color: var(--text);
}

.share-fb {
    border-color: #1877f2;
    color: #1877f2;
}

.share-fb:hover {
    background: #1877f2;
    color: #fff;
}

.share-tw {
    border-color: #555;
    color: #ccc;
}

.share-tw:hover {
    background: #333;
    color: #fff;
}

/* Info card */
.detail-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 16px;
}

.detail-value {
    color: var(--text);
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Sections (charges, stories, previous) */
.detail-section {
    margin-bottom: 24px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.charge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.charge-list li {
    background: var(--surface);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
    border-left: 3px solid var(--accent);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Related stories */
.detail-story-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-story-link:hover {
    background: #1c1c1e;
}

.detail-story-source {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

/* Previous arrests */
.previous-arrests-bar {
    max-width: 100%;
    overflow: hidden;
}

.previous-arrests {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    padding-bottom: 4px;
    max-width: 100%;
}

.previous-arrests::-webkit-scrollbar {
    display: none;
}

.previous-arrest-card {
    width: 100px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s;
    position: relative;
}

.previous-arrest-card:hover {
    transform: scale(1.05);
}

.previous-arrest-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: block;
    margin-bottom: 6px;
}

.previous-arrest-card::after {
    content: 'PRESUMED INNOCENT';
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    font-size: 6px;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.previous-arrest-info {
    display: flex;
    flex-direction: column;
}

.previous-arrest-date {
    font-size: 11px;
    color: var(--text);
    font-weight: 600;
}

.previous-arrest-facility {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Detail page actions */
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.detail-action-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    text-align: center;
}

.detail-action-btn:hover {
    background: #d4551e;
}

.detail-action-btn.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.detail-action-btn.outline:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.fav-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.fav-btn.faved {
    background: #333;
    color: var(--accent);
}

.charge-list li {
    padding-left: 4px;
}

/* ---------------------------------------------------------------
   Comments
--------------------------------------------------------------- */
.comment-form {
    margin-bottom: 20px;
}

.comment-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 70px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.comment-char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-submit-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.comment-submit-btn:hover {
    opacity: 0.9;
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-item {
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-user {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-body {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.comment-empty, .comment-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 13px;
}

/* ---------------------------------------------------------------
   23. Empty State (.empty-state)
--------------------------------------------------------------- */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

/* ---------------------------------------------------------------
   24. Placeholder Card (.placeholder-card)
--------------------------------------------------------------- */
.placeholder-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------------------------------------------------------------
   25. Utility: .visually-hidden
--------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------
   26. Responsive — Tablet (768px–1199px)
--------------------------------------------------------------- */
@media (max-width: 1199px) {
    .content {
        padding: 20px;
    }

    .record-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .record-card {
        min-width: 190px;
    }

    .video-card {
        min-width: 280px;
    }

    .news-card {
        min-width: 260px;
    }

    .record-detail {
        flex-direction: column;
    }

    .record-detail-image {
        max-width: 320px;
    }
}

/* ---------------------------------------------------------------
   27. Responsive — Mobile (<768px)
--------------------------------------------------------------- */
@media (max-width: 767px) {
    .nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 0;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .content {
        padding: 16px;
    }

    .record-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .record-card {
        min-width: 160px;
    }

    .video-card {
        min-width: 260px;
    }

    .news-card {
        min-width: 240px;
    }

    .news-item-full {
        padding: 14px;
        gap: 14px;
    }

    .news-item-thumb {
        width: 70px;
        height: 90px;
    }

    .news-item-title {
        font-size: 14px;
    }

    .news-item-actions {
        flex-direction: column;
        gap: 8px;
    }

    .arrow-btn {
        display: none;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .pill-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
        min-width: 36px;
    }

    .record-detail {
        flex-direction: column;
        gap: 20px;
    }

    .record-detail-image {
        max-width: 100%;
    }

    .record-detail-info h1 {
        font-size: 22px;
    }

    .detail-card {
        padding: 14px;
    }

    .detail-row {
        flex-wrap: wrap;
    }

    .detail-action-btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 14px;
    }

    .footer {
        padding: 20px 16px;
    }

    .error-page h1 {
        font-size: 64px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 12px;
    }

    .record-detail-info h1 {
        font-size: 20px;
    }

    .breadcrumbs {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------------
   Locate Page
--------------------------------------------------------------- */
.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.locate-prompt {
    text-align: center;
    padding: 60px 20px;
}

.locate-prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.locate-prompt p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.locate-note {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 16px !important;
}

.locate-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.locate-btn:hover {
    opacity: 0.9;
}

.locate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.locate-btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.locate-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
}

.locate-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.locate-card:hover {
    background: #1a1a1e;
}

.locate-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.locate-info {
    flex: 1;
    min-width: 0;
}

.locate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.locate-state {
    font-size: 12px;
    color: var(--text-secondary);
}

.locate-distance {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.locate-actions {
    margin-top: 24px;
    text-align: center;
}

/* ---------------------------------------------------------------
   TOS Overlay
--------------------------------------------------------------- */
#tos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overscroll-behavior: contain;
}

.tos-container {
    background: #1a1a1e;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid #2a2a2e;
}

.tos-header {
    padding: 18px 24px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}

.tos-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.tos-header p {
    font-size: 13px;
    opacity: 0.9;
}

.tos-scroll-hint {
    text-align: center;
    padding: 6px;
    color: #888;
    font-size: 11px;
    background: #141416;
    border-bottom: 1px solid #2a2a2e;
    flex-shrink: 0;
}

.tos-content {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tos-content::-webkit-scrollbar {
    width: 6px;
}

.tos-content::-webkit-scrollbar-track {
    background: #1a1a1e;
}

.tos-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.tos-content h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.tos-content h4 {
    color: #e5e5e5;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.tos-content p {
    margin-bottom: 10px;
}

.tos-content ul, .tos-content ol {
    margin-bottom: 10px;
    padding-left: 24px;
}

.tos-content li {
    margin-bottom: 4px;
}

.tos-agreement {
    padding: 16px 24px;
    border-top: 1px solid #2a2a2e;
    background: #141416;
    flex-shrink: 0;
}

#tos-read-indicator {
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

.tos-checkbox-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.tos-checkbox-wrap input[type="checkbox"] {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.tos-checkbox-wrap label {
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
}

.tos-buttons {
    display: flex;
    gap: 10px;
}

.tos-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    font-family: inherit;
}

#tos-continue-btn {
    background: var(--accent);
    color: #fff;
    flex: 2;
}

#tos-continue-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

#tos-exit-btn {
    background: #2a2a2e;
    color: #ccc;
    flex: 1;
}

#tos-exit-btn:hover {
    background: #333;
}

@media (max-width: 600px) {
    #tos-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .tos-container {
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .tos-header {
        padding: 14px 16px;
    }

    .tos-header h2 {
        font-size: 18px;
    }

    .tos-content {
        padding: 16px;
    }

    .tos-agreement {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .tos-buttons {
        flex-direction: column;
    }

    .tos-buttons button {
        width: 100%;
    }
}

/* --- MugshotSearch: states index --- */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.state-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}
.state-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.state-abbr {
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
}
.state-name { font-weight: 500; }

/* --- MugshotSearch: search section overrides --- */
.search-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 48px 32px;
    margin: 32px 0;
    text-align: center;
}
.search-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.search-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.search-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 16px;
}
.form-input {
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 1rem;
}
.form-input:focus { outline: none; border-color: #dc2626; }
.search-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}
.recaptcha-container { display: flex; justify-content: center; margin-top: 12px; }
.error-message {
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.4);
    color: #ff8a8a;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 12px auto 16px;
    max-width: 720px;
}
.results-section { margin-top: 24px; }
.results-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.results-count {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.results-table { width: 100%; border-collapse: collapse; }
.results-table th, .results-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.results-table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.7); }
.photo-available { color: #10b981; }
.photo-unavailable { color: #ef4444; }
.action-button {
    display: inline-block;
    padding: 8px 14px;
    background: #1f2937;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}
.action-button.danger { background: linear-gradient(135deg, #dc2626, #991b1b); }
.no-results { text-align: center; padding: 32px; color: rgba(255,255,255,0.7); }
.results-share { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.section-title { font-size: 2rem; font-weight: 700; margin-top: 24px; }
.section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 16px; }

/* --- MugshotSearch: static pages --- */
.static-page {
    max-width: 800px;
    margin: 32px auto;
    padding: 24px 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}
.static-page h1 { font-size: 2rem; margin-bottom: 16px; }
.static-page h2 { font-size: 1.4rem; margin-top: 24px; margin-bottom: 10px; }
.static-page p, .static-page li { margin-bottom: 12px; }
.static-page a { color: #f87171; }
