/* Idol Horse tag pages */

/* ---- Header ----
 * --ih-tag-rgb is the tag's colour; .is-light / .is-dark says which text
 * colour reads on it. */
.ih-tag-hero {
    --ih-tag-fg: #f5f8f2;
    position: relative;
    overflow: hidden;
    margin-top: 120px; /* the theme's fixed header, as .filter-module */
    padding: 96px 0 84px;
    background-color: rgb(var(--ih-tag-rgb));
    color: var(--ih-tag-fg);
    text-align: center;
}
.ih-tag-hero.is-light {
    --ih-tag-fg: #0e4436;
}
.ih-tag-hero.has-image {
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    padding-top: 140px;
}
.ih-tag-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Tint the image with the tag colour, strongest behind the text. */
.ih-tag-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
        rgba(var(--ih-tag-rgb), .94) 0%,
        rgba(var(--ih-tag-rgb), .78) 45%,
        rgba(var(--ih-tag-rgb), .38) 100%);
}
.ih-tag-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.ih-tag-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}
.ih-tag-label {
    display: inline-block;
    margin: 0 0 22px;
    padding: 2px 14px;
    border: 1px solid currentColor;
    border-radius: 11px;
    font-family: "GTFlexaMonoTrial-Lt", monospace;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}
.ih-tag-hero h1 {
    margin: 0;
    font-family: "EditorialNew-Light", Georgia, serif;
    font-size: var(--headline-font-size);
    font-weight: normal;
    line-height: 1.1;
    color: inherit;
    overflow-wrap: anywhere;
}
.ih-tag-desc {
    max-width: 680px;
    margin: 24px auto 0;
    font-family: "EditorialNew-UltralightItalic", Georgia, serif;
    font-size: var(--paragraph-font-size-2);
    line-height: 1.35;
}
.ih-tag-desc p {
    margin: 0 0 .6em;
    color: inherit;
    font: inherit;
}
.ih-tag-desc p:last-child {
    margin-bottom: 0;
}
.ih-tag-desc a {
    color: inherit;
    text-decoration: underline;
}
.ih-tag-count {
    margin: 28px 0 0;
    font-family: "GTFlexaMonoTrial-Lt", monospace;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: inherit;
    opacity: .8;
}

/* ---- Articles ---- */
.articles-boxs.ih-tag-results {
    padding-top: 64px;
}

@media (max-width: 1200px) {
    .ih-tag-hero h1 {
        font-size: var(--headline-font-size-5);
    }
}
@media (max-width: 768px) {
    .ih-tag-hero {
        margin-top: 80px;
        padding: 56px 0 48px;
    }
    .ih-tag-hero.has-image {
        min-height: 360px;
        padding-top: 110px;
    }
    .ih-tag-label {
        margin-bottom: 16px;
    }
    .ih-tag-desc {
        margin-top: 16px;
    }
    .ih-tag-count {
        margin-top: 20px;
    }
    .articles-boxs.ih-tag-results {
        padding-top: 36px;
    }
}
