/* MIC-215: above-the-fold category/tag (header + page-title + taxonomy description LCP).
   Blocking on category/tag only; bootstrap/styles/overrides stay deferred. */

:root {
    --White-light: #ffffff;
    --Surface-light: #f8f7f7;
    --Line: #e9e9e9;
    --On-surface: #161616;
    --Secondary: #161616;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1;
    font-family: "Manrope", sans-serif;
    color: var(--Secondary);
}

#wrapper {
    background-color: var(--White-light);
    overflow-x: clip;
}

.tf-container {
    max-width: 1830px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.topbar {
    padding-top: 35px;
    padding-bottom: 35px;
}

.site-logo {
    max-width: 193px;
}

.site-logo img,
.main-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Bootstrap utilities used before bootstrap.css arrives */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0 !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
        max-width: 75%;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
        max-width: 25%;
    }
}

.gap_16 {
    gap: 16px;
}

.mb_12 {
    margin-bottom: 12px !important;
}

.page-title.style-default {
    padding: 80px 0 60px;
}

@media (max-width: 767px) {
    .page-title.style-default {
        padding: 50px 0;
    }
}

.page-title.style-default h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 27px;
    line-height: 36px;
    color: var(--On-surface);
    text-rendering: optimizeLegibility;
}

.page-title.style-default .tag {
    background-color: var(--On-surface);
    border-radius: 28px;
    padding: 2px 12px;
}

.page-title.style-default .tag.smi-article-count-badge {
    padding: 2px 18px;
    white-space: nowrap;
}

.text-caption-1 {
    font-size: 14px;
    line-height: 22px;
}

.text_white-light {
    color: var(--White-light);
}

/* LCP text — same metrics as theme-overrides (MIC-71) */
.page-title.style-default .smi-taxonomy-description {
    margin-top: 1rem;
    max-width: 960px;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    color: var(--On-surface);
}

.page-title.style-default .smi-taxonomy-description > * + * {
    margin-top: 1.25rem;
}

.page-title.style-default .smi-taxonomy-description p {
    margin: 0 0 1.25rem;
}

.page-title.style-default .smi-taxonomy-description p:last-child {
    margin-bottom: 0;
}

/* Reserve list image boxes before deferred styles/overrides (CLS) */
.feature-post-item.style-list .img-style {
    aspect-ratio: 652 / 367;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

.feature-post-item.style-list .img-style > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-features-post .feature-post-item .title {
    min-height: 58px;
}
