/* ══════════════════════════════════════════
   FOR THE LOVE OF TOM — Dual theme support
   ══════════════════════════════════════════ */

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #FAF6F0;
}

/* Hero image swap — pure CSS background, no flash */

/* Instant dark background before Blazor loads — prevents flash */
html.dark, html.dark body {
    background: #0a0a0a;
    color: #e8e4df;
}

/* ══════════════════════════════════════════
   WARM THEME (default)
   ══════════════════════════════════════════ */

.site-wrap {
    min-height: 100vh;
    background: #FAF6F0;
    color: #2C2418;
}

.site-wrap .hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(250, 246, 240, 0) 25%,
        rgba(250, 246, 240, 0.4) 55%,
        rgba(250, 246, 240, 0.95) 85%,
        rgba(250, 246, 240, 1) 100%
    );
}

.site-wrap .hero-name { color: #2C2418; font-weight: 400; }
.site-wrap .hero-tagline { color: rgba(44, 36, 24, 0.5); }
.site-wrap .below-hero { background: rgba(250, 246, 240, 0.88); }

.site-wrap .tab-btn { color: rgba(44, 36, 24, 0.35); border-color: rgba(44, 36, 24, 0.12); }
.site-wrap .tab-btn.active { color: #2C2418; border-color: rgba(44, 36, 24, 0.3); background: rgba(44, 36, 24, 0.04); }
.site-wrap .tab-btn:hover:not(.active) { color: rgba(44, 36, 24, 0.6); }

.site-wrap .form-intro { color: rgba(44, 36, 24, 0.5); }
.site-wrap .field-label { color: rgba(44, 36, 24, 0.45); }
.site-wrap .field-input,
.site-wrap .field-textarea { color: #2C2418; background: rgba(255, 255, 255, 0.6); border-color: rgba(44, 36, 24, 0.12); }
.site-wrap .field-input:focus,
.site-wrap .field-textarea:focus { border-color: rgba(44, 36, 24, 0.3); background: rgba(255, 255, 255, 0.8); }
.site-wrap .field-input::placeholder,
.site-wrap .field-textarea::placeholder { color: rgba(44, 36, 24, 0.3); }

.site-wrap .file-upload-area { border-color: rgba(44, 36, 24, 0.18); color: rgba(44, 36, 24, 0.4); }
.site-wrap .file-upload-area:hover { border-color: rgba(44, 36, 24, 0.35); color: rgba(44, 36, 24, 0.6); }
.site-wrap .uploaded-file-entry { background: rgba(255, 255, 255, 0.4); border-color: rgba(44, 36, 24, 0.08); }
.site-wrap .file-size { color: rgba(44, 36, 24, 0.4); }

.site-wrap .btn-submit { color: #FAF6F0; background: #2C2418; }
.site-wrap .btn-submit:hover:not(:disabled) { background: #3D3225; }
.site-wrap .success-msg { color: rgba(44, 36, 24, 0.6); border-color: rgba(44, 36, 24, 0.15); }

.site-wrap .theme-toggle { color: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.2); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.site-wrap .theme-toggle:hover { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.35); }

/* ══════════════════════════════════════════
   DARK THEME
   ══════════════════════════════════════════ */

html.dark .site-wrap,
.site-wrap.dark {
    background: #0a0a0a;
    color: #e8e4df;
}

html.dark .hero-gradient,
.site-wrap.dark .hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 30%,
        rgba(10, 10, 10, 0.6) 65%,
        rgba(10, 10, 10, 1) 100%
    );
}

html.dark .hero-name, .site-wrap.dark .hero-name { color: #fff; font-weight: 300; letter-spacing: 0.15em; }
html.dark .hero-tagline, .site-wrap.dark .hero-tagline { color: rgba(255, 255, 255, 0.6); }
html.dark .below-hero, .site-wrap.dark .below-hero { background: rgba(10, 10, 10, 0.85); }

html.dark .tab-btn, .site-wrap.dark .tab-btn { color: rgba(232, 228, 223, 0.45); border-color: rgba(232, 228, 223, 0.12); }
html.dark .tab-btn.active, .site-wrap.dark .tab-btn.active { color: #e8e4df; border-color: rgba(232, 228, 223, 0.35); background: rgba(232, 228, 223, 0.06); }
html.dark .tab-btn:hover:not(.active), .site-wrap.dark .tab-btn:hover:not(.active) { color: rgba(232, 228, 223, 0.7); }

html.dark .form-intro, .site-wrap.dark .form-intro { color: rgba(232, 228, 223, 0.55); }
html.dark .field-label, .site-wrap.dark .field-label { color: rgba(232, 228, 223, 0.45); }
html.dark .field-input, html.dark .field-textarea,
.site-wrap.dark .field-input, .site-wrap.dark .field-textarea { color: #e8e4df; background: rgba(255, 255, 255, 0.04); border-color: rgba(232, 228, 223, 0.12); }
html.dark .field-input:focus, html.dark .field-textarea:focus,
.site-wrap.dark .field-input:focus, .site-wrap.dark .field-textarea:focus { border-color: rgba(232, 228, 223, 0.35); }
html.dark .field-input::placeholder, html.dark .field-textarea::placeholder,
.site-wrap.dark .field-input::placeholder, .site-wrap.dark .field-textarea::placeholder { color: rgba(232, 228, 223, 0.25); }

html.dark .file-upload-area, .site-wrap.dark .file-upload-area { border-color: rgba(232, 228, 223, 0.15); color: rgba(232, 228, 223, 0.4); }
html.dark .file-upload-area:hover, .site-wrap.dark .file-upload-area:hover { border-color: rgba(232, 228, 223, 0.3); color: rgba(232, 228, 223, 0.6); }
html.dark .uploaded-file-entry, .site-wrap.dark .uploaded-file-entry { background: rgba(255, 255, 255, 0.03); border-color: rgba(232, 228, 223, 0.08); }
html.dark .file-size, .site-wrap.dark .file-size { color: rgba(232, 228, 223, 0.35); }

html.dark .btn-submit, .site-wrap.dark .btn-submit { color: #0a0a0a; background: #e8e4df; }
html.dark .btn-submit:hover:not(:disabled), .site-wrap.dark .btn-submit:hover:not(:disabled) { background: #fff; }
html.dark .success-msg, .site-wrap.dark .success-msg { color: rgba(232, 228, 223, 0.7); border-color: rgba(232, 228, 223, 0.15); }

html.dark .theme-toggle, .site-wrap.dark .theme-toggle { color: rgba(232, 228, 223, 0.4); border-color: rgba(232, 228, 223, 0.15); }
html.dark .theme-toggle:hover, .site-wrap.dark .theme-toggle:hover { color: rgba(232, 228, 223, 0.7); border-color: rgba(232, 228, 223, 0.3); }

/* ══════════════════════════════════════════
   SHARED LAYOUT
   ══════════════════════════════════════════ */

/* Hero */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-image-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('images/0cd773c0-25da-459a-ad2c-091acb8eb746.jpg');
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
}

html.dark .hero-image-wrap {
    background-image: url('images/Hero-moody.jpg');
    background-size: cover;
    background-position: center 15%;
}

.hero-image {
    display: none; /* images handled via CSS background */
}

.hero-gradient {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.hero-name {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    background: none;
    border: none;
    outline: none;
    -webkit-text-stroke: 0;
}

.hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 300;
}

/* Everything below hero scrolls over the fixed image */
.below-hero {
    position: relative;
    z-index: 2;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tab bar */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 2rem 1rem 0;
    max-width: 560px;
    margin: 0 auto;
}

.tab-btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:first-child { border-radius: 4px 0 0 4px; }
.tab-btn:last-child { border-radius: 0 4px 4px 0; border-left: none; }

/* Form section */
.form-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.form-card { }

.form-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 2rem 0;
    text-align: center;
}

/* Form fields */
.field-group { margin-bottom: 1.5rem; }

.field-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.field-label .optional {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.75rem;
}

.field-hint {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.4rem;
    opacity: 0.5;
}

.field-input,
.field-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.field-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.field-input-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.field-input-year {
    max-width: 100px;
    flex-shrink: 0;
}

/* File upload */
.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px dashed;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.file-upload-icon {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
}

/* Uploaded file entries */
.uploaded-files { margin-bottom: 1.5rem; }

.uploaded-file-entry {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid;
    border-radius: 4px;
}

.file-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.file-icon { font-size: 1rem; }

.file-size {
    font-size: 0.75rem;
    margin-left: auto;
}

.file-meta-row {
    display: flex;
    gap: 0.5rem;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

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

/* Success message */
.success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ══════════════════════════════════════════
   ADMIN / FAMILY VIEW
   ══════════════════════════════════════════ */

.admin-hero {
    background: linear-gradient(135deg, #2C2418 0%, #3D3225 100%);
    padding: 2rem 1rem;
}

.admin-card {
    border: 1px solid #E8E4DE;
    border-radius: 12px;
}

.timeline-year {
    position: sticky;
    top: 0;
    background: #FAFAF8;
    z-index: 10;
    padding-top: 0.5rem;
}

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

.media-item { position: relative; }

.media-thumbnail {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.media-thumbnail:hover { opacity: 0.85; }

video.media-thumbnail {
    cursor: default;
    height: auto;
    max-height: 200px;
}

.media-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10000;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    text-align: center;
    max-width: 600px;
}

/* Lightbox close button (non-MudBlazor pages) */
.lightbox-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

/* Lightbox prev/next navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ══════════════════════════════════════════
   PUBLIC NAV
   ══════════════════════════════════════════ */

.public-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-link {
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.site-wrap .nav-link { color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.site-wrap .nav-link:hover { color: rgba(255, 255, 255, 0.85); }
.site-wrap .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.08); }

html.dark .nav-link, .site-wrap.dark .nav-link { color: rgba(232, 228, 223, 0.4); }
html.dark .nav-link:hover, .site-wrap.dark .nav-link:hover { color: rgba(232, 228, 223, 0.7); }
html.dark .nav-link.active, .site-wrap.dark .nav-link.active { color: #e8e4df; background: rgba(232, 228, 223, 0.06); }

/* ══════════════════════════════════════════
   STORIES PAGE
   ══════════════════════════════════════════ */

.stories-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.story-card {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(44, 36, 24, 0.08);
    align-items: center;
}

html.dark .story-card,
.site-wrap.dark .story-card {
    border-bottom-color: rgba(232, 228, 223, 0.08);
}

.story-card.text-only {
    display: block;
}

.story-text-side {
    flex: 1;
    min-width: 0;
}

.story-media-side {
    flex-shrink: 0;
    width: 240px;
}

.story-header {
    margin-bottom: 1rem;
}

.story-author {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.site-wrap .story-author { color: #2C2418; }
html.dark .story-author, .site-wrap.dark .story-author { color: #e8e4df; }

.story-text {
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    margin: 0;
}

.site-wrap .story-text { color: rgba(44, 36, 24, 0.7); }
html.dark .story-text, .site-wrap.dark .story-text { color: rgba(232, 228, 223, 0.7); }

/* Polaroid pile — stacked photos with slight rotations */
.polaroid-pile {
    position: relative;
    width: 220px;
    height: 260px;
    margin: 0 auto;
}

.polaroid-pile .polaroid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    padding: 10px 10px 35px 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.polaroid-pile .polaroid:hover {
    z-index: 10 !important;
    transform: rotate(0deg) scale(1.08) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.polaroid-pile .polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* Single image — no pile needed */
.story-single-polaroid {
    width: 220px;
    margin: 0 auto;
}

.story-single-polaroid .polaroid {
    width: 200px;
    transform: rotate(var(--rotation, -2deg));
}

@media (max-width: 700px) {
    .story-card {
        flex-direction: column;
    }

    .story-media-side {
        width: 100%;
    }

    .polaroid-pile {
        width: 100%;
        height: 280px;
    }

    .story-single-polaroid {
        width: 100%;
    }
}

/* ══════════════════════════════════════════
   GALLERY PAGE — POLAROID STYLE
   ══════════════════════════════════════════ */

.gallery-section {
    padding: 2rem 1rem 4rem;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.gallery-tab {
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(44, 36, 24, 0.12);
    border-radius: 20px;
    cursor: pointer;
    color: rgba(44, 36, 24, 0.4);
    transition: all 0.3s ease;
}

.gallery-tab:hover { color: rgba(44, 36, 24, 0.7); border-color: rgba(44, 36, 24, 0.25); }
.gallery-tab.active { color: #2C2418; border-color: rgba(44, 36, 24, 0.35); background: rgba(44, 36, 24, 0.06); }

html.dark .gallery-tab, .site-wrap.dark .gallery-tab {
    border-color: rgba(232, 228, 223, 0.12);
    color: rgba(232, 228, 223, 0.4);
}
html.dark .gallery-tab:hover, .site-wrap.dark .gallery-tab:hover { color: rgba(232, 228, 223, 0.7); border-color: rgba(232, 228, 223, 0.25); }
html.dark .gallery-tab.active, .site-wrap.dark .gallery-tab.active { color: #e8e4df; border-color: rgba(232, 228, 223, 0.35); background: rgba(232, 228, 223, 0.06); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 0 1rem;
}

.polaroid {
    background: #fff;
    padding: 12px 12px 16px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.polaroid-video {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.polaroid-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.polaroid-caption {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2C2418;
    line-height: 1.4;
}

.polaroid-meta {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(44, 36, 24, 0.45);
    text-align: center;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Dark theme polaroids — keep white borders for authentic look + contrast */
html.dark .polaroid, .site-wrap.dark .polaroid {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

html.dark .polaroid img, .site-wrap.dark .polaroid img,
html.dark .polaroid video, .site-wrap.dark .polaroid video {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

html.dark .polaroid:hover img, .site-wrap.dark .polaroid:hover img,
html.dark .polaroid:hover video, .site-wrap.dark .polaroid:hover video {
    filter: grayscale(0%);
}

html.dark .polaroid:hover, .site-wrap.dark .polaroid:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
}

/* Caption stays dark on white polaroid */
html.dark .polaroid-caption, .site-wrap.dark .polaroid-caption { color: #2C2418; }
html.dark .polaroid-meta, .site-wrap.dark .polaroid-meta { color: rgba(44, 36, 24, 0.45); }

/* Admin unapproved card */
.admin-unapproved {
    opacity: 0.6;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero-name { letter-spacing: 0.1em; }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .file-meta-row { flex-direction: column; }
    .field-input-year { max-width: 100%; }
}
