/**
 * Equipment List page styles.
 * Scoped to .equipment-page to avoid clashing with other templates.
 * Palette pulled from style.css (#617780 slate-teal primary).
 */

.equipment-page .entry-header-feature p {
    max-width: 720px;
}

.equipment-container {
    /* Matches `.latest-article-section` on the blog hub (7% horizontal padding) */
    padding: 50px 7% 4rem;
}

/* ===== UPDATED PILL (sits inside the dark hero band) ===== */
.equipment-updated-pill {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: .3rem .85rem;
    margin-top: 1.5rem;
}
.equipment-updated-pill strong {
    color: #fff;
    font-weight: 500;
}

/* ===== CATEGORY SECTION ===== */
.equipment-category {
    margin: 3.5rem 0 2rem;
}
.equipment-category:first-of-type {
    margin-top: 1rem;
}
.equipment-category-head {
    margin-bottom: .5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e5e5e5;
}
.equipment-category-head h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #617780;
    line-height: 1.4;
    margin: 0;
}
.equipment-category-intro {
    font-size: 1rem;
    color: #617780;
    margin-bottom: 1.75rem;
    opacity: .85;
}

/* ===== CARD GRID ===== */
.equipment-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

/* ===== CARD ===== */
.equipment-card {
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.equipment-card-image {
    aspect-ratio: 4 / 3;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
}
.equipment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.equipment-card-placeholder {
    color: rgba(97, 119, 128, 0.6);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    line-height: 1.4;
}

.equipment-card-body {
    padding: 1.3rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.equipment-card-body h3 {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
    color: #617780;
    margin: 0;
}
.equipment-card-tagline {
    font-size: .9rem;
    color: #617780;
    opacity: .9;
    line-height: 1.6;
    margin: 0;
}

/* ===== TOGGLE + EXPAND ===== */
.equipment-card-actions {
    display: flex;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.equipment-card-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    color: #617780;
    min-height: 44px;
    padding: .45rem 0;
    opacity: .85;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.2;
}
.equipment-card-toggle:hover,
.equipment-card-toggle:focus {
    opacity: 1;
    outline: none;
}
.equipment-card-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease;
}
.equipment-card.open .equipment-card-toggle::after {
    transform: rotate(-135deg) translateY(-2px);
}

.equipment-card-why {
    color: #617780;
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
    display: none;
}
.equipment-card.open .equipment-card-why {
    display: block;
}
/* Override theme's global `p` size + line-height so expanded text matches
   the tagline above it within the card. */
.equipment-card-why p {
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .6em;
    color: #617780;
}
.equipment-card-why p:last-child {
    margin-bottom: 0;
}

.equipment-empty {
    color: #617780;
    padding: 2rem 0;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 720px) {
    .equipment-container {
        padding: 35px 5% 3rem;
    }
    .equipment-category-head h2 {
        font-size: 1.5rem;
    }
}
