/* ============================================================
   Industry Taxonomy — Category Nav, Card Labels, Single-Post Link
   Add this to: Appearance > Customize > Additional CSS
   OR append to: /wp-content/themes/glacial-theme/css/glacial-utilities.css
   ============================================================ */

/* ----- Category nav inside the yellow hero box ----- */
.ip-yellow-text-holder .industry-category-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
    background: none;
    border: none;
}

.ip-yellow-text-holder a.industry-cat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.625rem;
    font-family: eurostile, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #303e48;
    text-decoration: none;
    background: transparent;
    border: 2px solid #303e48;
    transition: background 0.2s ease, color 0.2s ease;
}

.ip-yellow-text-holder a.industry-cat-link:hover,
.ip-yellow-text-holder a.industry-cat-link:focus-visible,
.ip-yellow-text-holder a.industry-cat-link.active,
.ip-yellow-text-holder a.industry-cat-link[aria-current="page"] {
    background: #303e48;
    border-color: #303e48;
    color: #fff;
}

.ip-yellow-text-holder a.industry-cat-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ----- Related pages nav (industry pages, below hero) ----- */
.industry-category-nav--related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.industry-category-nav--related a.industry-cat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    font-family: eurostile, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #303e48;
    text-decoration: none;
    background: transparent;
    border: 2px solid #303e48;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.industry-category-nav--related a.industry-cat-link:hover,
.industry-category-nav--related a.industry-cat-link:focus-visible,
.industry-category-nav--related a.industry-cat-link.active {
    background: #ff9e18;
    border-color: #ff9e18;
    color: #303e48;
}

.industry-category-nav--related a.industry-cat-link:focus-visible {
    outline: 3px solid #303e48;
    outline-offset: 2px;
}

/* ----- Industry tag on each portfolio card ----- */
.blog-title-row {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    align-items: baseline;
    /* gap: 1.25rem; */
}

.portfolio-industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.entry a.portfolio-industry-tag {
    font-family: eurostile, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ff9e18;
    text-decoration: none;
    white-space: nowrap;
}

.entry a.portfolio-industry-tag:hover,
.entry a.portfolio-industry-tag:focus-visible {
    color: #303e48;
}

/* ----- Category label on each portfolio card ----- */
.portfolio-card-category {
    margin-bottom: 6px;
}

.portfolio-cat-tag {
    display: inline-block;
    font-family: eurostile, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: #ff9e18;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.portfolio-cat-tag:hover {
    background: #303e48;
    color: #fff;
}

/* ----- Industry intro text in hero ----- */
.ip-yellow-text-holder .industry-category-nav + .industry-intro-text {
    margin-top: 16px;
}

.industry-intro-text {
    color: #303e48;
    font-size: 15px;
    margin-top: 10px;
    max-width: 480px;
}

.industry-intro-text p {
    color: #303e48;
    font-size: 15px;
    margin-top: 0;
    max-width: 480px;
}

/* ----- Category link on single project pages ----- */
.single-project-category {
    margin-bottom: 8px;
}

.single-project-cat-link {
    display: inline-block;
    font-family: eurostile, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff9e18;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.single-project-cat-link:hover {
    border-bottom-color: #ff9e18;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .blog-title-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 10px;
    }

    .portfolio-industry-tags {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .industry-category-nav--related {
        gap: 0.5rem;
    }

    .industry-category-nav--related a.industry-cat-link {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
    }

    .ip-yellow-text-holder .industry-category-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .ip-yellow-text-holder .industry-category-nav {
        grid-template-columns: 1fr;
    }
}
