/*
   ARCHIVE PAGE ISOLATION WRAPPER
   Scoped to #tt-archive-wrapper
*/
#tt-archive-wrapper {
    --bg-color: #F8F8F6;
    --text-color: #111111;
    --meta-color: #666666;
    --border-color: #D6D6D6;
    --accent-color: #3A5F5F;
    --status-live: #3A5F5F;
    --status-wip: #A07E28;
    --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "Menlo", monospace;
    --space-md: 2rem;
    --space-lg: 4rem;

    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-main) !important;
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
    min-height: 80vh !important;
}

/* HEADER SECTION */
#tt-archive-wrapper .tt-page-header {
    padding: var(--space-lg) var(--space-md) !important;
    border-bottom: 1px solid var(--border-color) !important;
    max-width: 800px !important;
}

#tt-archive-wrapper h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.1 !important;
    color: var(--text-color) !important;
}

#tt-archive-wrapper .tt-intro-p {
    font-size: 1.1rem !important;
    color: var(--meta-color) !important;
    margin: 0 !important;
    max-width: 60ch !important;
}

/* ARCHIVE LIST CONTAINER */
#tt-archive-wrapper .tt-archive-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* LIST HEADERS (Desktop Only) */
#tt-archive-wrapper .tt-list-header {
    display: grid !important;
    grid-template-columns: 2fr 3fr 1fr 1fr !important;
    padding: 1rem var(--space-md) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    color: var(--meta-color) !important;
    background: rgba(0,0,0,0.02) !important;
}

/* LIST ITEM ROW */
#tt-archive-wrapper .tt-archive-item {
    display: grid !important;
    grid-template-columns: 2fr 3fr 1fr 1fr !important;
    padding: var(--space-md) !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-decoration: none !important;
    color: var(--text-color) !important;
    transition: background-color 0.15s ease !important;
    align-items: center !important;
}

#tt-archive-wrapper .tt-archive-item:hover {
    background-color: #FFFFFF !important;
    color: var(--accent-color) !important;
}

/* CELL STYLES */
#tt-archive-wrapper .tt-col-title {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

#tt-archive-wrapper .tt-col-desc {
    color: var(--meta-color) !important;
    font-size: 1rem !important;
    padding-right: 2rem !important;
    line-height: 1.4 !important;
}

#tt-archive-wrapper .tt-archive-item:hover .tt-col-desc {
    color: var(--text-color) !important; /* Darken text on hover */
}

#tt-archive-wrapper .tt-col-meta {
    font-family: var(--font-mono) !important;
    font-size: 0.9rem !important;
}

/* STATUS INDICATORS */
#tt-archive-wrapper .tt-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
}

#tt-archive-wrapper .tt-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    display: inline-block !important;
}

#tt-archive-wrapper .dot-wip { background-color: var(--status-wip) !important; }
#tt-archive-wrapper .dot-live { background-color: var(--status-live) !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
    #tt-archive-wrapper .tt-list-header {
        display: none !important; /* Hide headers on mobile */
    }

    #tt-archive-wrapper .tt-archive-item {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        padding: 1.5rem var(--space-md) !important;
    }

    #tt-archive-wrapper .tt-col-desc {
        padding-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    #tt-archive-wrapper .tt-col-meta {
        color: var(--meta-color) !important;
        font-size: 0.8rem !important;
    }
}
