/* ===== Term landing pages (taxonomy.php) — builds on css/blog.css tokens ===== */

.fj-term__hero {
    padding-bottom: 36px;
}
.fj-term__intro {
    max-width: 720px;
}
.fj-term__intro p {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0 0 0.8em;
}
.fj-term__intro p:last-child { margin-bottom: 0; }

/* Category chips */
.fj-chips {
    max-width: 1140px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.fj-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.fj-chip span {
    color: var(--muted);
    font-size: 12px;
}
.fj-chip:hover,
.fj-chip:focus-visible {
    border-color: #000;
    color: #000;
}
.fj-chip.is-current {
    background: #000;
    border-color: #000;
    color: #fff;
}
.fj-chip.is-current span { color: rgba(255, 255, 255, 0.65); }
.fj-chip--muted {
    border-style: dashed;
    color: var(--muted);
}

/* Product grid (cards reuse catalog markup/classes) */
.fj-term__products {
    max-width: 1140px;
    margin-bottom: 72px;
}
.fj-term__products .product-col .img-box {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--panel);
}
.fj-term__products .product-col .img-box img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.fj-term__products .product-col a:hover .img-box img { transform: scale(1.04); }
.fj-term__products .product-col a:hover .title { color: var(--blue); }

/* Project cards */
.fj-term__projects {
    max-width: 1140px;
    margin-bottom: 72px;
}
.fj-pcard {
    display: block;
    color: var(--ink);
    text-decoration: none;
}
.fj-pcard__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--panel);
    margin-bottom: 12px;
}
.fj-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.fj-pcard:hover .fj-pcard__media img { transform: scale(1.03); }
.fj-pcard__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
}
.fj-pcard:hover .fj-pcard__title { color: var(--blue); }
.fj-pcard__meta {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Long text under the grid: single centred column (no TOC rail) */
.fj-term__text .fj-body__grid,
.fj-term .fj-term__text .fj-body__grid {
    grid-template-columns: minmax(0, var(--measure));
}
.fj-term__text {
    border-top: 1px solid var(--line);
    padding-top: 64px;
}

@media (max-width: 991px) {
    .fj-chips { margin-bottom: 28px; }
    .fj-term__products, .fj-term__projects { margin-bottom: 48px; }
    .fj-term__text { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .fj-term__products .product-col .img-box img, .fj-pcard__media img, .fj-chip { transition: none; }
}
