/* ========================================
   Backpack Finder – Styles
   Philosophy: Utilitarian, dense, no-nonsense
   Modernized with subtle refinements
   ======================================== */

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

html {
    font-size: 15px;
    line-height: 1.5;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #FAFAFA;
    color: #1A1A1A;
    min-height: 100vh;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 5px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* Firefox */
* {
    scrollbar-color: #D0D0D0 #F5F5F5;
    scrollbar-width: thin;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.9rem; }

a {
    color: #1E40AF;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #1E3A8A;
    text-decoration: underline;
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* Layout */
.site-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem 1rem 1.5rem;
    border-bottom: 1px solid #E5E5E5;
    background: #FFFFFF;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 65vw;
    width: 100%;   
}

.header-logo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-title > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.site-header h1 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search .search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search .search-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.tagline {
    color: #666666;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
}

.tagline {
    color: #666666;
    font-size: 0.85rem;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin: 1rem;
}

.btn-toggle-filters {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    color: #333333;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s ease;
}

.btn-toggle-filters:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.toggle-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.user-email {
    font-size: 0.9rem;
    color: #444444;
}

.btn-secondary,
.btn-primary {
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #1A1A1A;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover,
.btn-primary:hover {
    background: #F5F5F5;
}

.btn-primary {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: calc(100vh - 80px);
}

@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .user-controls {
        order: 2;
    }

    .btn-toggle-filters {
        display: flex;
    }

    .main-layout {
        display: flex;
        flex-direction: column;
    }
    
    .results-panel {
        order: 1;
    }
    
    .filters-panel.filters-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        width: 100%;
        max-width: none;
        max-height: none;
        border-right: none;
        border-bottom: none;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        background: #FFFFFF;
    }

    .filters-panel.filters-modal.filters-open {
        transform: translateY(0);
    }

    .filters-modal-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .filters-modal-backdrop.active {
        display: block;
        opacity: 1;
    }
}

/* Filters Panel */
.filters-panel {
    padding: 1.25rem;
    border-right: 1px solid #E5E5E5;
    background: #FFFFFF;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    position: sticky;
    top: 0;
}

.filters-panel.filters-modal {
    display: none;
}

@media (max-width: 900px) {
    .filters-modal-backdrop {
        display: none;
    }
}

.filters-close-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333333;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.filters-close-btn:hover {
    color: #666666;
}

@media (max-width: 900px) {
    .filters-close-btn {
        display: block;
    }
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E5E5;
}

.btn-reset {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    color: #666666;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-reset:hover {
    background: #EBEBEB;
}

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

.filter-label,
.filter-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quick Picks */
.quick-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.quick-pick {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.quick-pick:hover {
    background: #F5F5F5;
}

.quick-pick.active {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

/* Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.range-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.range-sep {
    color: #999999;
    flex-shrink: 0;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group-scrollable {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group-scrollable::-webkit-scrollbar {
    width: 6px;
}

.checkbox-group-scrollable::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.checkbox-group-scrollable::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 3px;
}

.checkbox-group-scrollable::-webkit-scrollbar-thumb:hover {
    background: #AAAAAA;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: #333333;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563EB;
    cursor: pointer;
}

/* Results Panel */
.results-panel {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    background: #FAFAFA;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E5E5;
}

.results-count {
    font-size: 0.9rem;
    color: #666666;
}

.results-count span {
    font-weight: 600;
    color: #1A1A1A;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    border: 1px solid #E0E0E0;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    border-right: 1px solid #E0E0E0;
    transition: background-color 0.15s ease;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn:hover {
    background: #F5F5F5;
}

.view-btn.active {
    background: #1A1A1A;
    color: #FFFFFF;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.sort-control label {
    color: #666666;
}

.sort-control select {
    padding: 0.5rem 0.625rem;
    font-size: 0.85rem;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.sort-control select:focus {
    outline: none;
    border-color: #2563EB;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Backpack Card */
.backpack-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.backpack-card:hover {
    border-color: #2563EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.backpack-card.discontinued {
    opacity: 0.65;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #F5F5F5;
    margin-bottom: 0.875rem;
}

.card-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #424242;
    font-size: 0.75rem;
    margin-bottom: 0.875rem;
}

.card-company {
    font-size: 0.7rem;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-model {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.card-stat {
    display: flex;
    justify-content: space-between;
}

.card-stat-label {
    color: #4B5563;
}

.card-stat-value {
    font-weight: 500;
    color: #333333;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.625rem;
}

.card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
}

.card-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    color: #666666;
}

.card-tag.discontinued {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    background: #FFFFFF;
}

.results-table th,
.results-table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.results-table th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    background: #FAFAFA;
    position: sticky;
    top: 0;
}

.results-table th.sortable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.results-table th.sortable:hover {
    background: #F0F0F0;
}

.results-table tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.results-table tbody tr:hover {
    background: #F8FAFC;
}

.results-table .discontinued-row {
    opacity: 0.55;
}

/* Loading & Empty States */
.loading,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666666;
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    max-width: 1100px;
    width: min(1100px, 96vw);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2.5rem 1.5rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

#detail-content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-right: 0.25rem;
    padding-top: 1rem;
}

.modal-close {
    position: absolute;
    top: 0.25rem;
    right: 0.60rem;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
}

.modal-close:hover {
    color: #1A1A1A;
}

.auth-modal-content {
    max-width: 420px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #444444;
}

.form-group input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    font-size: 0.95rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #444444;
}

.auth-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

/* Detail View */
.detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E5E5E5;
}
.backpack-card .fav-btn,
.backpack-card .owned-btn {
    position: static;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #888888;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.backpack-card .owned-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.backpack-card .fav-btn:hover {
    background: #F5F5F5;
    color: #E11D48;
    border-color: #E11D48;
}

.backpack-card .owned-btn:hover {
    background: #F5F5F5;
    color: #059669;
    border-color: #059669;
}

.backpack-card .fav-btn.active {
    color: #E11D48;
    border-color: #E11D48;
    background: #FFF1F2;
}

.backpack-card .owned-btn.active {
    color: #059669;
    border-color: #059669;
    background: #ECFDF5;
}

.results-table .fav-cell,
.results-table .owned-cell {
    width: 48px;
    text-align: center;
}

.results-table .fav-btn,
.results-table .owned-btn {
    position: static;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    border-radius: 999px;
    cursor: pointer;
    color: #888888;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.results-table .owned-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.results-table .fav-btn:hover {
    background: #F5F5F5;
    color: #E11D48;
    border-color: #E11D48;
}

.results-table .owned-btn:hover {
    background: #F5F5F5;
    color: #059669;
    border-color: #059669;
}

.results-table .fav-btn.active {
    color: #E11D48;
    border-color: #E11D48;
    background: #FFF1F2;
}

.results-table .owned-btn.active {
    color: #059669;
    border-color: #059669;
    background: #ECFDF5;
}

@media (max-width: 700px) {
    .detail-header {
        grid-template-columns: 1fr;
    }

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

    .backpack-card {
        padding: 0.75rem;
    }

    .card-image {
        height: 120px;
    }

    .card-company {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .card-model {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .card-stats {
        gap: 0.25rem 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .card-actions {
        top: 0.375rem;
        right: 0.375rem;
    }

    .card-actions button {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

.detail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
}

.detail-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #424242;
    font-size: 0.875rem;
    border: 1px solid #E5E5E5;
}

.detail-title {
    margin-bottom: 0.375rem;
    font-size: 1.375rem;
}

.detail-company {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.detail-link {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #2563EB;
    text-decoration: none;
}

.detail-link:hover {
    background: #FFFFFF;
    color: #2563EB;
    text-decoration: none;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.detail-section {
    padding: 1.25rem;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
}

.detail-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #E5E5E5;
    color: #444444;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.detail-row-label {
    color: #666666;
}

.detail-row-value {
    font-weight: 500;
    text-align: right;
    color: #1A1A1A;
}

.detail-row-value.yes {
    color: #059669;
}

.detail-row-value.no {
    color: #AAAAAA;
}

.report-section {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-toggle {
    align-self: flex-start;
}

.report-close {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #666666;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.report-close:hover {
    background: #F5F5F5;
    border-color: #999999;
    color: #1A1A1A;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.report-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #444444;
}

.report-input,
.report-textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    font-size: 0.95rem;
    resize: vertical;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.report-success {
    color: #059669;
    font-size: 0.9rem;
}

.report-error {
    color: #B91C1C;
    font-size: 0.9rem;
}

.detail-notes {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    font-size: 0.875rem;
}

.detail-notes h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
    color: #92400E;
}

.detail-notes p {
    white-space: pre-wrap;
    color: #78350F;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #F8FAFC;
    border-top: 1px solid #E5E5E5;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #1A1A1A;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4B5563;
}

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

.footer-links li {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #4B5563;
}

.footer-links a {
    color: #1E40AF;
    text-decoration: underline;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #1E3A8A;
    text-decoration: underline;
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

.footer-links strong {
    color: #1A1A1A;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
