/* ============================================
   DEBOART LAB ARCHIVE
   Архив лаборатории в стиле секции на главной
   Версия: 2.0 (с сеткой)
============================================ */

/* ==========================================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================================================================== */

.lab-archive {
    background: #0A0A0A;
    color: #F8F8F8;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Лабораторная сетка как в секции на главной */
.lab-archive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.lab-archive .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   ЗАГОЛОВОК АРХИВА
   ========================================================================== */

.archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.archive-title {
    font-family: 'Spectral', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #F8F8F8;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.02em;
}

.archive-description {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #6C6C6C;
    text-align: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 10px;
}

/* Статистика */
.archive-stats {
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #6C6C6C;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-count {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 3px;
    color: #F8F8F8;
}

.stats-sort {
    color: #6C6C6C;
    font-size: 0.85rem;
}

/* ==========================================================================
   СЕТКА КАРТОЧЕК (теперь как в архиве работ)
   ========================================================================== */

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 48px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Карточка записи (адаптирована под сетку) */
.lab-card {
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid #2A2A2A;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.lab-card:hover {
    transform: translateY(-6px);
    border-color: #1A5FB4;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Индикатор сверху (как в работах) - для сетки лучше сверху, а не сбоку */
.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1A5FB4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lab-card:hover::before {
    opacity: 1;
}

/* Изображение */
.lab-card__image {
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: -24px -24px 16px -24px;
    position: relative;
}

.lab-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lab-card:hover .lab-card__image img {
    transform: scale(1.05);
}

.lab-card__image a {
    display: block;
    height: 100%;
}

/* Контент карточки */
.lab-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Заголовок (более компактный для сетки) */
.lab-card__title {
    font-family: 'Spectral', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #F8F8F8;
    line-height: 1.3;
}

.lab-card__title a {
    color: #F8F8F8;
    text-decoration: none;
    transition: color 0.3s;
}

.lab-card__title a:hover {
    color: #1A5FB4;
}

/* Мета-информация (компактнее) */
.lab-card__meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #6C6C6C;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.lab-card__date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lab-card__date::before {
    content: '📅';
    font-size: 0.8rem;
}

.lab-card__reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lab-card__reading-time::before {
    content: '⏱️';
    font-size: 0.8rem;
}

/* Отрывок (обрезаем до 3 строк) */
.lab-card__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6C6C6C;
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Категория лаборатории */
.lab-card__category {
    margin-bottom: 16px;
}

.lab-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(26, 95, 180, 0.1);
    border: 1px solid rgba(26, 95, 180, 0.2);
    color: #1A5FB4;
    text-decoration: none;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.lab-category:hover {
    background: #1A5FB4;
    border-color: #1A5FB4;
    color: #F8F8F8;
}

.category-icon {
    font-size: 0.8rem;
}

/* Футер карточки с кнопкой */
.lab-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: auto;
    width: 100%;
}

/* Кнопка (компактнее) */
.lab-card__button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1A5FB4;
    padding: 6px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid #1A5FB4;
    transition: all 0.3s ease;
    border-radius: 0;
}

.lab-card__button:hover {
    background: #1A5FB4;
    color: #F8F8F8;
    transform: translateX(3px);
}

.lab-card__button::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.lab-card__button:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   ПАГИНАЦИЯ (в стиле лаборатории)
   ========================================================================== */

.lab-pagination {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.lab-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #F8F8F8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lab-pagination .page-numbers.current {
    background: #1A5FB4;
    border-color: #1A5FB4;
    color: #F8F8F8;
}

.lab-pagination .page-numbers:hover:not(.current) {
    border-color: #1A5FB4;
    color: #1A5FB4;
    transform: translateY(-2px);
}

/* ==========================================================================
   СОСТОЯНИЕ "НЕТ ЗАПИСЕЙ"
   ========================================================================== */

.no-posts-found {
    text-align: center;
    padding: 64px 20px;
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid #2A2A2A;
    max-width: 600px;
    margin: 48px auto;
    position: relative;
    z-index: 2;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-posts-found h3 {
    font-family: 'Spectral', serif;
    font-size: 1.5rem;
    color: #F8F8F8;
    margin-bottom: 16px;
}

.no-posts-found p {
    font-family: 'Manrope', sans-serif;
    color: #6C6C6C;
    font-size: 1rem;
}

/* ==========================================================================
   АНИМАЦИИ (как в секции)
   ========================================================================== */

@keyframes labAppear {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.lab-card {
    animation: labAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.lab-card:nth-child(1) { animation-delay: 0.1s; }
.lab-card:nth-child(2) { animation-delay: 0.2s; }
.lab-card:nth-child(3) { animation-delay: 0.3s; }
.lab-card:nth-child(4) { animation-delay: 0.4s; }
.lab-card:nth-child(5) { animation-delay: 0.5s; }
.lab-card:nth-child(6) { animation-delay: 0.6s; }
.lab-card:nth-child(7) { animation-delay: 0.7s; }
.lab-card:nth-child(8) { animation-delay: 0.8s; }

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

/* Планшеты */
@media (max-width: 1024px) {
    .lab-archive {
        padding: 60px 0;
    }
    
    .lab-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .lab-card {
        padding: 20px;
    }
    
    .lab-card__image {
        height: 140px;
        margin: -20px -20px 12px -20px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .lab-archive {
        padding: 48px 0;
    }
    
    .lab-archive .container {
        padding: 0 16px;
    }
    
    .archive-header {
        margin-bottom: 32px;
    }
    
    .archive-title {
        margin-bottom: 16px;
    }
    
    .archive-description {
        margin-bottom: 24px;
        font-size: 0.95rem;
        padding: 0;
    }
    
    .archive-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 20px;
    }
    
    .lab-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .lab-card {
        padding: 16px;
    }
    
    .lab-card__image {
        height: 120px;
        margin: -16px -16px 12px -16px;
    }
    
    .lab-card__title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .lab-card__meta {
        font-size: 0.7rem;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .lab-card__excerpt {
        font-size: 0.85rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .lab-card__footer {
        padding-top: 12px;
    }
    
    .lab-card__button {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .lab-pagination {
        margin-top: 48px;
        padding-top: 24px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .lab-archive {
        padding: 40px 0;
    }
    
    .lab-archive .container {
        padding: 0 12px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .archive-description {
        font-size: 0.9rem;
    }
    
    .stats-count,
    .stats-sort {
        width: 100%;
        text-align: center;
    }
    
    .lab-grid {
        grid-template-columns: 1fr; /* На самых маленьких - одна колонка */
        gap: 20px;
    }
    
    .lab-card {
        padding: 20px;
    }
    
    .lab-card__image {
        height: 160px;
        margin: -20px -20px 16px -20px;
    }
    
    .lab-card__title {
        font-size: 1.3rem;
    }
    
    .lab-card__excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .lab-pagination .page-numbers {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Большие экраны */
@media (min-width: 1400px) {
    .lab-archive {
        padding: 100px 0;
    }
    
    .lab-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 28px;
    }
    
    .lab-card {
        padding: 28px;
    }
    
    .lab-card__image {
        height: 180px;
        margin: -28px -28px 20px -28px;
    }
    
    .lab-card__title {
        font-size: 1.5rem;
    }
    
    .lab-card__excerpt {
        font-size: 1rem;
    }
}

/* Для пользователей, предпочитающих уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .lab-card,
    .lab-card:hover,
    .lab-card__button,
    .lab-card__image img,
    .lab-pagination .page-numbers {
        animation: none;
        transition: none;
        transform: none;
    }
}

/* ==========================================================================
   СВЯЗАННЫЕ РАБОТЫ В ЗАПИСИ ЛАБОРАТОРИИ
   ========================================================================== */

.lab-entry__related-works {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-entry__related-works h2 {
    font-family: 'Spectral', serif;
    font-size: 1.5rem;
    color: #F8F8F8;
    margin-bottom: 24px;
}

.works-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.work-mini-card {
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid #2A2A2A;
    transition: all 0.3s ease;
    overflow: hidden;
}

.work-mini-card:hover {
    transform: translateY(-4px);
    border-color: #1A5FB4;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.work-mini-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-mini-card__image {
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-mini-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-mini-card:hover .work-mini-card__image img {
    transform: scale(1.05);
}

.work-mini-card__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 12px;
    margin: 0;
    color: #F8F8F8;
    text-align: center;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .works-mini-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .work-mini-card__image {
        height: 100px;
    }
    
    .work-mini-card__title {
        font-size: 0.7rem;
        padding: 8px;
    }
}

/* ==========================================================================
   ТАКСОНОМИИ В ЗАПИСИ ЛАБОРАТОРИИ
   ========================================================================== */

.lab-entry__taxonomies {
    margin: 32px 0 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'JetBrains Mono', monospace;
}

.lab-entry__category,
.lab-entry__tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.lab-entry__category:last-child,
.lab-entry__tags:last-child {
    margin-bottom: 0;
}

.taxonomy-label {
    min-width: 70px;
    color: #6C6C6C;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Категория */
.lab-entry__category .lab-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(26, 95, 180, 0.1);
    border: 1px solid rgba(26, 95, 180, 0.2);
    color: #1A5FB4;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.lab-entry__category .lab-category:hover {
    background: #1A5FB4;
    border-color: #1A5FB4;
    color: #F8F8F8;
}

.category-icon {
    font-size: 0.9rem;
}

/* Теги */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F8F8F8;
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.tag:hover {
    background: #1A5FB4;
    border-color: #1A5FB4;
    color: #F8F8F8;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .lab-entry__taxonomies {
        margin: 24px 0 20px;
        padding: 16px 0;
    }
    
    .lab-entry__category,
    .lab-entry__tags {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .taxonomy-label {
        min-width: auto;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ==========================================================================
   КОНТЕЙНЕР ДЛЯ ОТДЕЛЬНОЙ ЗАПИСИ
   ========================================================================== */

.lab-single .container {
    max-width: 800px;  /* Оптимальная ширина для чтения */
    margin: 0 auto;
    padding: 0 20px;   /* Отступы по бокам */
    width: 100%;
    box-sizing: border-box;
}

/* Планшеты */
@media (max-width: 1024px) {
    .lab-single .container {
        padding: 0 16px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .lab-single .container {
        padding: 0 12px;
    }
}

/* ==========================================================================
   LAB TOP NAVIGATION (как в single-work)
   ========================================================================== */

.lab-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-top-nav a {
    color: #F8F8F8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.lab-top-nav a:hover {
    color: #1A5FB4;
}

.nav-archive {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    transition: all 0.3s;
}

.nav-archive:hover {
    border-color: #1A5FB4;
}

/* ==========================================================================
   LAB COVER (обложка с заголовком)
   ========================================================================== */

.lab-cover {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 40px;
}

.lab-cover__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.lab-cover__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.lab-cover__overlay .container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    color: #F8F8F8;
}

.lab-cover__content {
    animation: coverFadeIn 1s ease;
}

.lab-cover__meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-cover__title {
    font-family: 'Spectral', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lab-cover__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

@keyframes coverFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   LAB CONTAINER
   ========================================================================== */

.deboart-lab-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ==========================================================================
   LAB BREADCRUMBS
   ========================================================================== */

.lab-breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-breadcrumbs a {
    color: #6C6C6C;
    text-decoration: none;
    transition: color 0.3s;
}

.lab-breadcrumbs a:hover {
    color: #1A5FB4;
}

.lab-breadcrumbs .separator {
    color: #6C6C6C;
    margin: 0 8px;
}

.lab-breadcrumbs .current {
    color: #F8F8F8;
}

/* ==========================================================================
   LAB HEADER (без обложки)
   ========================================================================== */

.lab-header {
    margin-bottom: 40px;
}

.lab-meta-top {
    display: flex;
    gap: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #6C6C6C;
    margin-bottom: 15px;
}

.lab-date, .lab-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lab-title {
    font-family: 'Spectral', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #F8F8F8;
}

.lab-excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #B0B0B0;
    font-style: italic;
    border-left: 3px solid #1A5FB4;
    padding-left: 20px;
}

/* ==========================================================================
   LAB CONTENT
   ========================================================================== */

.lab-content {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #E0E0E0;
    margin-bottom: 40px;
}

.lab-content h2 {
    font-family: 'Spectral', serif;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #F8F8F8;
}

.lab-content h3 {
    font-family: 'Spectral', serif;
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #F8F8F8;
}

.lab-content p {
    margin-bottom: 20px;
}

.lab-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #1A5FB4;
    font-style: italic;
    color: #B0B0B0;
}

/* ==========================================================================
   LAB TAXONOMIES
   ========================================================================== */

.lab-taxonomies {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.taxonomy-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.taxonomy-group:last-child {
    margin-bottom: 0;
}

.taxonomy-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #6C6C6C;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taxonomy-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taxonomy-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F8F8F8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.taxonomy-item:hover {
    background: #1A5FB4;
    border-color: #1A5FB4;
    color: #F8F8F8;
    transform: translateY(-2px);
}

/* ==========================================================================
   RELATED WORKS
   ========================================================================== */

.lab-section {
    margin: 60px 0;
}

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-family: 'Spectral', serif;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    color: #F8F8F8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.5rem;
}

.section-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #6C6C6C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-work-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.related-work-card:hover {
    transform: translateY(-5px);
    border-color: #1A5FB4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.related-work-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-work-image {
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.related-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-work-card:hover .related-work-image img {
    transform: scale(1.05);
}

.related-work-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 12px;
    margin: 0;
    text-align: center;
    color: #F8F8F8;
}

/* ==========================================================================
   LAB NAVIGATION
   ========================================================================== */

.lab-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'JetBrains Mono', monospace;
}

.lab-navigation a {
    color: #F8F8F8;
    text-decoration: none;
    transition: color 0.3s;
}

.lab-navigation a:hover {
    color: #1A5FB4;
}

.nav-previous {
    max-width: 30%;
}

.nav-next {
    max-width: 30%;
    text-align: right;
}

.nav-all a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.nav-all a:hover {
    border-color: #1A5FB4;
    background: rgba(26, 95, 180, 0.1);
}

/* ==========================================================================
   ADAPTIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .lab-cover {
        height: 50vh;
        min-height: 400px;
    }
    
    .lab-cover__overlay {
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .lab-top-nav {
        padding: 15px;
    }
    
    .lab-cover {
        height: 45vh;
        min-height: 350px;
    }
    
    .lab-cover__overlay {
        padding-bottom: 40px;
    }
    
    .lab-cover__meta {
        font-size: 0.75rem;
        gap: 12px;
    }
    
    .lab-cover__title {
        font-size: 1.8rem;
    }
    
    .lab-cover__excerpt {
        font-size: 1rem;
    }
    
    .deboart-lab-container {
        padding: 0 15px 40px;
    }
    
    .lab-title {
        font-size: 2rem;
    }
    
    .taxonomy-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .lab-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-previous, .nav-next {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lab-cover {
        height: 40vh;
        min-height: 300px;
    }
    
    .lab-cover__overlay {
        padding-bottom: 30px;
    }
    
    .lab-cover__title {
        font-size: 1.5rem;
    }
    
    .lab-cover__excerpt {
        font-size: 0.9rem;
    }
    
    .lab-title {
        font-size: 1.8rem;
    }
    
    .related-works-grid {
        grid-template-columns: 1fr;
    }
}