/* Site-wide editorial type and image proportions. */
:root {
    --fo-title-font: "Times New Roman", Times, serif;
    --fo-body-font: "Roboto", Arial, sans-serif;
    --fo-label-font: "Roboto Condensed", Arial, sans-serif;
    --font-family: var(--fo-title-font);
    --second-font: var(--fo-label-font);
    --roboto-font: var(--fo-body-font);
}
body { font-family: var(--fo-body-font); }
body h1,
body h1 a { letter-spacing: normal !important; }
body :is(h1, h2, h3, h4, h5, h6, .fo-post-title, .entry-title, .fo-spotlight-title, .vtitle) {
    font-family: var(--fo-title-font) !important;
    font-size-adjust: none;
}
body :is(p, .post-summary, .post-content, .entry-content, .fo-article-card__byline) {
    font-family: var(--fo-body-font) !important;
}

body :is(.cate-name, .fo-author, .single-authors, .byline-single-post, .fo-spotlight-author, .fo-article-card__meta, .fo-spotlight-category, [itemprop="author"]) {
    font-family: var(--fo-label-font) !important;
}
body :is(.title-block .title, .title-block .title a, .fo-section-label, .fo-article-related__heading, .fo-article-related__heading a, .fo-spotlight-heading) {
    font-family: var(--fo-body-font) !important;
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.2 !important;
}
/* Reusable section heading: label, flexible rule and linked arrow.
   .fo-section-label above owns the shared 24px / 18px responsive typography. */
.fo-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fo-section-heading > .fo-section-label {
    flex: 0 0 auto;
    margin: 0;
}

.fo-section-heading a {
    color:#191717;
    text-decoration: none;
}

.fo-section-heading__rule {
    flex: 1;
    border-top: 3px solid #767676;
}

.fo-section-heading__more {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Shared Explore heading for single articles and newsletter recommendations. */
body .fo-article-related__heading {
    margin: 0 0 16px;
    padding: 0;
}

body .fo-article-related__heading a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

body .fo-article-related__rule {
    flex: 1;
    border-top: 3px solid #767676;
}

body .fo-article-related__heading svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Editorial photo wrappers; standalone logos and icons remain untouched. */
body :is(.fo-post-img, .fo-article-card__image, .fo-spotlight-image) {
    aspect-ratio: 8 / 5 !important;
}
body :is(.fo-post-img, .fo-article-card__image, .fo-spotlight-image) > a {
    display: block;
    width: 100%;
    height: 100%;
}
body :is(.fo-post-img img, .fo-article-card__image img, .fo-spotlight-thumbnail, .post-thumbnail > img) {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 8 / 5 !important;
    object-fit: cover;
}
/* Default category archives: let tracks account for gaps and photos set their
   own height. Legacy fixed heights cannot contain the shared 8:5 images. */
.fo-category-archive .category-grid-col-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fo-category-archive :is(.cat-col-1, .cat-col-2, .news-list-col, .sidebar-col, article) {
    min-width: 0;
}
.fo-category-archive .category-grid-col-2 .cat-col-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
    align-content: start;
}
.fo-category-archive .category-grid-col-2 .cat-col-2 > article {
    width: 100%;
}
body .fo-category-archive :is(.category-grid-col-2, .news-list-col) .fo-post-img {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 8 / 5 !important;
}
body .fo-category-archive .fo-post-img > a {
    height: auto;
}
body .fo-category-archive .fo-post-img img {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 8 / 5 !important;
    object-fit: cover;
}
.fo-category-archive .category-grid-col-2 .cat-col-1 .fo-post-content {
    margin: 0;
    padding: 15px 0 0;
}
.fo-category-archive .d-grid-col-3-1 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}
@media (max-width: 1199px) {
    .fo-category-archive .d-grid-col-3-1 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 991px) {
    .fo-category-archive .category-grid-col-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 575px) {
    .fo-category-archive .category-grid-col-2 .cat-col-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Podcast artwork retains its original proportions, including loaded cards. */
body .fo-podcast-archive .podcast-post.podcast-right .fo-post-img {
    height: auto;
    aspect-ratio: auto !important;
    align-self: flex-start;
}
body .fo-podcast-archive .fo-post-img > a {
    height: auto;
}
body .fo-podcast-archive .podcast-right .fo-post-img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain;
}

body :is(img.avatar, .author-img img, .fo-image-square) {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
}
@media (max-width: 479px) {
    body :is(.title-block .title, .title-block .title a, .fo-section-label, .fo-article-related__heading, .fo-article-related__heading a, .fo-spotlight-heading) {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
}
