
:root {
    --tirfax-red: #b5121b;
    --tirfax-ink: #141414;
    --tirfax-muted: #6f6f6f;
    --tirfax-line: #e5e5e5;
    --tirfax-soft: #f7f7f5;
    --tirfax-white: #ffffff;
    --tirfax-serif: Georgia, "Times New Roman", Times, serif;
    --tirfax-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Keep this plugin scoped to single posts only. */
.tirfax-editorial-active {
    --wp--style--global--content-size: 760px;
}

.tirfax-editorial-page {
    background: var(--tirfax-white);
    color: var(--tirfax-ink);
    padding: 28px 20px 70px;
}

.tirfax-editorial-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 790px) minmax(280px, 330px);
    gap: 54px;
    align-items: start;
}

.tirfax-breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-family: var(--tirfax-sans);
    font-size: 13px;
    color: var(--tirfax-muted);
}

.tirfax-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.tirfax-kicker,
.tirfax-card-kicker {
    font-family: var(--tirfax-sans);
    color: var(--tirfax-red);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .07em;
}

.tirfax-article-title {
    margin: 8px 0 14px !important;
    font-family: var(--tirfax-serif) !important;
    font-size: clamp(40px, 4.6vw, 60px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
    font-weight: 700 !important;
    color: var(--tirfax-ink) !important;
    text-wrap: balance;
}

.tirfax-standfirst,
.tirfax-safe-standfirst {
    margin: 0 0 18px !important;
    font-family: var(--tirfax-serif) !important;
    font-size: clamp(20px, 2.2vw, 25px) !important;
    line-height: 1.38 !important;
    font-style: italic;
    color: #333;
    max-width: 760px;
}

.tirfax-meta-share {
    padding: 12px 0 16px;
    border-top: 1px solid var(--tirfax-line);
    border-bottom: 1px solid var(--tirfax-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    font-family: var(--tirfax-sans);
}

.tirfax-author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tirfax-author img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
}

.tirfax-author span {
    display: grid;
    line-height: 1.15;
}

.tirfax-author strong {
    font-size: 13px;
}

.tirfax-author small {
    margin-top: 4px;
    color: var(--tirfax-muted);
    font-size: 12px;
}

.tirfax-share {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tirfax-share a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none !important;
    font: 700 12px/1 var(--tirfax-sans);
    color: #222 !important;
    background: #f0f0f0;
    transition: transform .15s ease, background .15s ease;
}

.tirfax-share a:hover {
    background: #e2e2e2;
    transform: translateY(-1px);
}

.tirfax-hero-wrap {
    margin: 0 0 24px;
}

.tirfax-hero-wrap.has-keypoints {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr);
    gap: 20px;
    align-items: stretch;
}

.tirfax-featured-image {
    margin: 0;
}

.tirfax-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 2px;
}

.tirfax-featured-image figcaption {
    font: 11px/1.4 var(--tirfax-sans);
    color: var(--tirfax-muted);
    padding-top: 6px;
}

.tirfax-keypoints,
.tirfax-safe-keypoints {
    background: var(--tirfax-soft);
    border-top: 3px solid var(--tirfax-red);
    padding: 18px 18px 16px;
    font-family: var(--tirfax-sans);
}

.tirfax-keypoints h2,
.tirfax-safe-keypoints h3 {
    margin: 0 0 12px !important;
    font: 700 20px/1.1 var(--tirfax-serif) !important;
    color: var(--tirfax-ink) !important;
}

.tirfax-keypoints ul,
.tirfax-safe-keypoints ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tirfax-keypoints li,
.tirfax-safe-keypoints li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-top: 1px solid #e0e0de;
    font-size: 14px;
    line-height: 1.4;
}

.tirfax-keypoints li:first-child,
.tirfax-safe-keypoints li:first-child {
    border-top: 0;
    padding-top: 2px;
}

.tirfax-keypoints li::before,
.tirfax-safe-keypoints li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tirfax-red);
    position: absolute;
    left: 0;
    top: 17px;
}

.tirfax-keypoints li:first-child::before,
.tirfax-safe-keypoints li:first-child::before {
    top: 9px;
}

.tirfax-keypoints-wide {
    max-width: 720px;
    margin: 0 0 24px;
}

.tirfax-article-body {
    max-width: 730px;
    font-family: var(--tirfax-serif);
    font-size: 19px;
    line-height: 1.72;
    color: #242424;
}

.tirfax-article-body p {
    margin: 0 0 1.15em;
}

.tirfax-article-body a {
    color: var(--tirfax-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tirfax-article-body h2,
.tirfax-article-body h3 {
    font-family: var(--tirfax-serif);
    color: var(--tirfax-ink);
    line-height: 1.12;
    margin-top: 1.6em;
}

.tirfax-article-body blockquote {
    margin: 30px 0 !important;
    padding: 18px 24px 18px 28px !important;
    border-left: 4px solid var(--tirfax-red) !important;
    background: linear-gradient(90deg, #f8f8f6 0%, #fff 100%);
    font-family: var(--tirfax-serif);
    font-style: italic;
    font-size: 24px;
    line-height: 1.4;
    color: #222;
}

.tirfax-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.tirfax-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    border-top: 1px solid var(--tirfax-line);
    margin-top: 34px;
    padding-top: 16px;
    font: 700 11px/1.2 var(--tirfax-sans);
}

.tirfax-tags a {
    border: 1px solid #efc7ca;
    color: var(--tirfax-red);
    padding: 6px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
}

.tirfax-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid var(--tirfax-line);
    margin-bottom: 14px;
}

.tirfax-section-heading h2 {
    font-family: var(--tirfax-serif);
    font-size: 24px;
    margin: 0 0 -1px;
    padding: 0 0 9px;
    border-bottom: 3px solid var(--tirfax-red);
}

.tirfax-related {
    margin-top: 42px;
}

.tirfax-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tirfax-related-card {
    min-width: 0;
}

.tirfax-related-thumb {
    display: block;
    aspect-ratio: 16/10;
    background: #eee;
    overflow: hidden;
    margin-bottom: 9px;
}

.tirfax-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.tirfax-related-card:hover .tirfax-related-thumb img {
    transform: scale(1.025);
}

.tirfax-related-card h3 {
    font: 700 17px/1.18 var(--tirfax-serif);
    margin: 5px 0 7px;
}

.tirfax-related-card h3 a {
    color: var(--tirfax-ink);
    text-decoration: none;
}

.tirfax-related-card small {
    color: var(--tirfax-muted);
    font: 11px/1.3 var(--tirfax-sans);
}

.tirfax-editorial-sidebar {
    position: sticky;
    top: 24px;
}

.tirfax-sidebar-card {
    border: 1px solid var(--tirfax-line);
    background: #fff;
    padding: 18px;
    margin-bottom: 18px;
}

.tirfax-sidebar-heading h2 {
    font-size: 22px;
}

.tirfax-latest-item {
    display: grid;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid var(--tirfax-line);
}

.tirfax-latest-item.has-thumb {
    grid-template-columns: 92px minmax(0, 1fr);
}

.tirfax-latest-item.no-thumb {
    grid-template-columns: 1fr;
}

.tirfax-latest-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.tirfax-latest-thumb {
    display: block;
    aspect-ratio: 16/10;
    background: #eee;
    overflow: hidden;
}

.tirfax-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tirfax-latest-item small {
    display: block;
    color: #8a8a8a;
    font: 11px/1.2 var(--tirfax-sans);
    margin-bottom: 4px;
}

.tirfax-latest-item h3 {
    margin: 0;
    font: 700 15px/1.15 var(--tirfax-serif);
}

.tirfax-latest-item h3 a {
    color: var(--tirfax-ink);
    text-decoration: none;
}

.tirfax-popular ol {
    list-style: none;
    counter-reset: popular;
    margin: 0;
    padding: 0;
}

.tirfax-popular li {
    counter-increment: popular;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 11px 0;
    border-top: 1px solid var(--tirfax-line);
}

.tirfax-popular li:first-child {
    border-top: 0;
}

.tirfax-popular li::before {
    content: counter(popular);
    color: var(--tirfax-red);
    font: 700 25px/1 var(--tirfax-serif);
}

.tirfax-popular a {
    color: var(--tirfax-ink);
    text-decoration: none;
    font: 700 15px/1.25 var(--tirfax-serif);
}

/* SAFE MODE — preserve current theme markup and ads. */
.tirfax-editorial-safe .entry-title,
.tirfax-editorial-safe .post-title,
.tirfax-editorial-safe h1.entry-title {
    font-family: var(--tirfax-serif) !important;
    letter-spacing: -.025em;
    line-height: 1.02;
}

.tirfax-editorial-safe .entry-content,
.tirfax-editorial-safe .post-content {
    font-family: var(--tirfax-serif);
    font-size: 18px;
    line-height: 1.72;
}

.tirfax-safe-keypoints {
    max-width: 720px;
    margin: 18px 0 26px;
}

@media (max-width: 1020px) {
    .tirfax-editorial-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .tirfax-editorial-sidebar {
        position: static;
    }

    .tirfax-hero-wrap.has-keypoints {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

@media (max-width: 760px) {
    .tirfax-editorial-page {
        padding: 22px 15px 46px;
    }

    .tirfax-article-title {
        font-size: clamp(34px, 10vw, 47px) !important;
        line-height: 1.01 !important;
    }

    .tirfax-standfirst {
        font-size: 20px !important;
    }

    .tirfax-meta-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .tirfax-hero-wrap.has-keypoints {
        display: block;
    }

    .tirfax-keypoints {
        margin-top: 14px;
    }

    .tirfax-article-body {
        font-size: 18px;
        line-height: 1.68;
    }

    .tirfax-related-grid {
        grid-template-columns: 1fr;
    }

    .tirfax-related-card {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 12px;
    }

    .tirfax-related-thumb {
        margin: 0;
    }
}
