/* Home: Six Desks v3. Stacked layout, 6 desks vertically.
   Each desk:
     header banner: icon + name + bottom rule + "view all" anchored right
     3-col grid below: title (full, no clamp) + desc (2-line clamp) + img
   No card boxes. Img sits at bottom of each col so the visual rhythm is
   read-then-look. Mobile collapses to compact 3×2 desk-icon grid. */

.six-desks-section-v2 {
    padding: 1.5rem 0 1.5rem;
    margin: 0.5rem 0 2rem;
}
.desks-grid-v2 {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.desk-card-v2 {
    display: block;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* Banner: icon + name + (auto rule from border-bottom) + view-all right. */
.desk-card-v2__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0 0.55rem;
    border-bottom: 1px solid var(--rule-strong);
    margin-bottom: 1.1rem;
}
.desk-card-v2__icon {
    color: var(--accent);
    line-height: 0;
    flex-shrink: 0;
}
.desk-card-v2__icon svg { display: block; }
.desk-card-v2__title {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--paper-0);
    margin: 0;
    line-height: 1;
}
.desk-card-v2__view-all {
    margin-left: auto;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 150ms ease;
}
.desk-card-v2__view-all:hover { color: var(--paper-0); }

/* Article grid: 3 cols, each = title + desc + img stacked. */
.desk-card-v2__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.desk-card-v2__row { border: 0; }
.desk-card-v2__row-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    text-decoration: none;
    color: var(--paper-0);
    transition: color 150ms ease;
}
.desk-card-v2__row-link:hover { color: var(--accent); }
.desk-card-v2__row-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
    margin: 0;
    /* Lock to exactly 2 lines: clamp at 2 (truncates with ellipsis when
       longer), min-height pads short titles to the same 2-line box.
       Result: every article's "header zone" is identical height,
       descriptions and images line up across the 3 cols. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.05rem * 1.25);
}
.desk-card-v2__row-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--mute-0);
    margin: 0;
    /* Desc clamps to 2 lines so img position stays roughly aligned across
       the 3 cols. Title is uncapped, full headline always visible. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.desk-card-v2__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 2px;
    background-color: var(--ink-1);
    margin-top: 0.4rem;
}
.desk-card-v2__thumb-img,
.desk-card-v2__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 350ms ease;
}
.desk-card-v2__row-link:hover .desk-card-v2__thumb-img {
    transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
    .desk-card-v2__row-link:hover .desk-card-v2__thumb-img { transform: none; }
}
.desk-card-v2__thumb-placeholder {
    background: linear-gradient(135deg, var(--ink-1), var(--ink-2));
}
.desk-card-v2__row-chev { display: none; }

.desk-card-v2__empty {
    padding: 0.5rem 0;
    color: var(--mute-0);
    font-style: italic;
    font-size: 0.85rem;
}

/* Tablet (720-1100): 2 article cols per desk, 3-up gets cramped.
   All 3 articles still visible (no hiding) for content parity with PC. */
@media (max-width: 1100px) and (min-width: 721px) {
    .desk-card-v2__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .desk-card-v2__row-title { font-size: 1rem; }
}

/* Phone (<720): 1 col per desk, articles stacked. Each article uses a
   horizontal row layout (image left, title+desc right) to keep density
   reasonable. Title still 2-line locked so each row is uniform height. */
@media (max-width: 720px) {
    .desks-grid-v2 { gap: 1.5rem; }
    .desk-card-v2__head {
        gap: 0.55rem;
        padding: 0 0 0.45rem;
        margin-bottom: 0.85rem;
    }
    .desk-card-v2__title { font-size: 0.74rem; }
    .desk-card-v2__list {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }
    .desk-card-v2__row-link {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 0.7rem;
        align-items: start;
    }
    .desk-card-v2__row-title {
        font-size: 0.92rem;
        line-height: 1.25;
        min-height: calc(2 * 0.92rem * 1.25);
        grid-column: 2;
        grid-row: 1;
    }
    .desk-card-v2__row-desc {
        font-size: 0.78rem;
        line-height: 1.4;
        grid-column: 2;
        grid-row: 2;
    }
    .desk-card-v2__thumb {
        margin-top: 0;
        aspect-ratio: 4/3;
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}