/* Native guest comment actions: Citrus green and gold, including hover/focus. */
body[data-pageapp="forums"] .cGuestTeaser .ipsButton--primary {
    --i-button--ba-co: #153b26;
    --i-button--co: #fff4d6;
    --i-button--bo-co: #9e7938;
    --i-button-hover--ba-co: #245438;
    --i-outline-color: #315a39;
}
body[data-pageapp="forums"] .cGuestTeaser .ipsButton--secondary {
    --i-button--ba-co: #e5c577;
    --i-button--co: #183320;
    --i-button--bo-co: #ad873b;
    --i-button-hover--ba-co: #f0d693;
    --i-outline-color: #315a39;
}
body[data-pageapp="forums"] .cGuestTeaser :is(.ipsButton--primary, .ipsButton--secondary):focus-visible {
    outline: 2px solid #315a39;
    outline-offset: 3px;
}

/* Offset only the homepage sidebar's starting position; sticky offsets stay native. */
@media (min-width: 980px) {
    body[data-pageapp="forums"][data-pagecontroller="index"]
    #ipsLayout_sidebar[data-ce-home-forum-align] {
        padding-block-start: var(--ce-home-forum-offset, 0px);
    }
}

/* Native forum/topic titles only; article links and keyboard focus remain native. */
body[data-pageapp="forums"] .ipsData__title a,
.ipsCategoryWithFeed .ipsData__title a {
    text-decoration: none !important;
}

/* Dates remain links to posts; keep their presentation consistent with titles. */
body[data-pageapp="forums"] .ipsData a:has(time),
.ipsCategoryWithFeed .ipsData a:has(time) {
    text-decoration: none !important;
}

/* IPS uses square thumbnails in its compact category feed. Fit the whole artwork. */
@container ipsCategoryWithFeed (max-width: 650px) {
    .ipsCategoryWithFeed__meta .ipsData__image img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        aspect-ratio: auto !important;
        align-self: center;
        object-fit: contain !important;
        object-position: center !important;
    }
}
@media (max-width: 979px) {
    .ipsCategoryWithFeed__meta .ipsData__image img,
    .ipsData--forum-grid .ipsData__image img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        aspect-ratio: auto !important;
        align-self: center;
        object-fit: contain !important;
        object-position: center !important;
    }
}