
/* PURECAR UNIVERSAL EDITORIAL STANDARD */

.pcm-article,
.pcms-editorial-v2 .pcms-article-head,
.pcms-editorial-v2 .pcms-article-content {
    width: 100% !important;
    max-width: 740px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* HEADLINES */

.pcm-article h1,
.pcms-editorial-v2 .pcms-article-head h1 {
    font-size: clamp(29px, 3.2vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.17 !important;
    letter-spacing: -.7px !important;
    color: #171717 !important;
    margin: 12px 0 20px !important;
    text-align: left;
    overflow-wrap: break-word;
}

/* ARTICLE BODY */

.pc-editorial-prose,
.pcms-editorial-v2 .pcms-article-content {
    font-size: 18px;
    line-height: 1.65;
    color: #252525;
    overflow-wrap: break-word;
}

.pcm-article .pc-editorial-prose p,
.pcms-editorial-v2 .pcms-article-content p {
    font-size: 18px !important;
    line-height: 1.65 !important;
    font-weight: 400;
    margin: 0 0 18px !important;
    color: #252525;
}

/* INTRODUCTION */

.pcm-article .pc-editorial-prose > p:first-child,
.pcms-editorial-v2 .pcms-article-content > p:first-child {
    font-size: 20px !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
}

/* SECTION HEADINGS */

.pcm-article .pc-editorial-prose h2,
.pcms-editorial-v2 .pcms-article-content h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.3px;
    color: #171717 !important;
    margin: 32px 0 14px !important;
}

.pcm-article .pc-editorial-prose h3,
.pcms-editorial-v2 .pcms-article-content h3 {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    margin: 26px 0 12px !important;
    color: #171717;
}

.pc-editorial-prose h4,
.pcms-article-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

/* EXISTING EMPHASIS */

.pc-editorial-prose strong,
.pc-editorial-prose b,
.pcms-article-content strong,
.pcms-article-content b {
    font-weight: 700;
    color: #171717;
}

/* AUTHOR INFORMATION */

.pcm-article [class*="author"]:not(img),
.pcm-article [class*="byline"]:not(img) {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* QUOTATIONS */

.pc-editorial-prose blockquote,
.pcms-article-content blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 18px;
    border: 0;
    border-left: 3px solid #b9282e;
    background: transparent;
    color: #333;
    font-size: 19px;
    line-height: 1.6;
}

/* LISTS */

.pc-editorial-prose ul,
.pc-editorial-prose ol,
.pcms-article-content ul,
.pcms-article-content ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.pc-editorial-prose li,
.pcms-article-content li {
    font-size: inherit;
    line-height: 1.65;
    margin-bottom: 8px;
}

/* ARTICLE LINKS */

.pc-editorial-prose a,
.pcms-article-content a {
    color: #a51c24;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

/* PHOTOGRAPHS */

.pcm-article img,
.pcms-editorial-v2 img {
    max-width: 100%;
    height: auto;
}

.pcm-article figure,
.pcms-editorial-v2 .pcms-hero {
    max-width: 740px;
    margin: 24px auto 28px;
    box-shadow: none;
    border-radius: 4px;
}

.pcm-article figcaption,
.pcms-editorial-v2 figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    padding: 9px 0;
}

/* KNOWN SOCIAL GRAPHICS */

.pcm-article img[src*="generated/motoring-news-social/"],
.pcms-editorial-v2 img[src*="generated/motorsport-social/"],
.pcm-article figure:has(img[src*="generated/motoring-news-social/"]),
.pcms-editorial-v2 figure:has(img[src*="generated/motorsport-social/"]) {
    display: none !important;
}

/* SOURCES */

.pcms-editorial-v2 .pcms-sources {
    max-width: 740px;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #ddd !important;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 0 0;
    margin-top: 38px;
}

/* SEPARATORS */

.pc-editorial-prose hr,
.pcms-article-content hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* MOBILE */

@media (max-width: 767px) {

    .pcm-article {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .pcms-page.pcms-editorial-v2 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pcm-article h1,
    .pcms-editorial-v2 .pcms-article-head h1 {
        font-size: 29px !important;
        line-height: 1.18 !important;
        letter-spacing: -.5px !important;
    }

    .pc-editorial-prose,
    .pcms-editorial-v2 .pcms-article-content {
        font-size: 17px;
    }

    .pcm-article .pc-editorial-prose p,
    .pcms-editorial-v2 .pcms-article-content p {
        font-size: 17px !important;
        line-height: 1.65 !important;
    }

    .pcm-article .pc-editorial-prose > p:first-child,
    .pcms-editorial-v2 .pcms-article-content > p:first-child {
        font-size: 19px !important;
    }

    .pcm-article .pc-editorial-prose h2,
    .pcms-editorial-v2 .pcms-article-content h2 {
        font-size: 23px !important;
        margin-top: 28px !important;
    }

    .pcm-article .pc-editorial-prose h3,
    .pcms-editorial-v2 .pcms-article-content h3 {
        font-size: 20px !important;
    }
}


/* PURECAR_PREMIUM_EDITORIAL_V2 */

/* Controlled reading width */

.pcm-article,
.pcms-editorial-v2 .pcms-article-head,
.pcms-editorial-v2 .pcms-article-content,
.pcms-editorial-v2 .pcms-hero,
.pcms-editorial-v2 .pcms-sources {
    max-width: 700px !important;
}

/* Consistent editorial typography */

.pc-editorial-prose,
.pcms-editorial-v2 .pcms-article-content {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px;
    line-height: 1.7;
    color: #272727;
    letter-spacing: normal;
}

.pcm-article .pc-editorial-prose p,
.pcms-editorial-v2 .pcms-article-content p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    color: #272727 !important;
    margin: 0 0 19px !important;
}

/* Opening paragraph */

.pcm-article .pc-editorial-prose > p:first-child,
.pcms-editorial-v2 .pcms-article-content > p:first-child {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: #171717 !important;
    margin-bottom: 25px !important;
}

/* Distinct editorial sections */

.pcm-article .pc-editorial-prose h2,
.pcms-editorial-v2 .pcms-article-content h2 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.45px !important;
    color: #141414 !important;
    position: relative;
    margin: 36px 0 16px !important;
    padding: 15px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Subtle PureCar editorial accent */

.pcm-article .pc-editorial-prose h2::before,
.pcms-editorial-v2 .pcms-article-content h2::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 3px;
    border-radius: 1px;
    background: #c51c29;
}

/* Secondary headings remain understated */

.pcm-article .pc-editorial-prose h3,
.pcms-editorial-v2 .pcms-article-content h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 26px 0 12px !important;
}

/* Main headline */

.pcm-article h1,
.pcms-editorial-v2 .pcms-article-head h1 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(29px, 3.2vw, 39px) !important;
    font-weight: 700 !important;
    line-height: 1.17 !important;
    letter-spacing: -.8px !important;
}

/* Mobile */

@media (max-width: 767px) {

    .pcm-article h1,
    .pcms-editorial-v2 .pcms-article-head h1 {
        font-size: 29px !important;
        line-height: 1.2 !important;
    }

    .pcm-article .pc-editorial-prose p,
    .pcms-editorial-v2 .pcms-article-content p {
        font-size: 17px !important;
        line-height: 1.7 !important;
        margin-bottom: 18px !important;
    }

    .pcm-article .pc-editorial-prose > p:first-child,
    .pcms-editorial-v2 .pcms-article-content > p:first-child {
        font-size: 19px !important;
    }

    .pcm-article .pc-editorial-prose h2,
    .pcms-editorial-v2 .pcms-article-content h2 {
        font-size: 23px !important;
        margin-top: 30px !important;
        padding-top: 13px !important;
    }

    .pcm-article .pc-editorial-prose h3,
    .pcms-editorial-v2 .pcms-article-content h3 {
        font-size: 20px !important;
    }
}


/* PURECAR_COMPACT_REFERENCES_V1 */

.pc-editorial-references {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    margin: 32px auto;
    padding: 0;
    border: 1px solid #e1e3e6;
    border-radius: 8px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: none;
}

.pc-editorial-references summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
}

.pc-editorial-references summary::-webkit-details-marker {
    display: none;
}

.pc-editorial-references summary::marker {
    content: "";
}

.pc-editorial-references summary:hover {
    background: #f8f8f9;
}

.pc-editorial-references summary:focus-visible {
    outline: 2px solid #b9282e;
    outline-offset: 3px;
}

.pc-ref-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pc-ref-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #222;
}

.pc-ref-count {
    font-size: 13px;
    line-height: 1.4;
    color: #686868;
}

.pc-ref-chevron {
    display: block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-right: 4px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
}

.pc-editorial-references[open] .pc-ref-chevron {
    transform: rotate(225deg);
}

.pc-ref-content {
    padding: 0 18px;
    border-top: 1px solid #e5e5e5;
}

.pc-ref-group {
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.pc-ref-group:last-child {
    border-bottom: 0;
}

.pc-ref-group-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 6px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.pc-ref-group-heading strong {
    color: #222;
}

.pc-ref-group-heading span {
    color: #686868;
    font-size: 12px;
}

.pc-editorial-references .pc-ref-group a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #a51c24;
    text-decoration: none;
    border: 0;
    background: transparent;
    overflow-wrap: anywhere;
}

.pc-editorial-references .pc-ref-group a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {

    .pc-editorial-references {
        margin: 26px auto;
    }

    .pc-editorial-references summary {
        padding: 14px;
    }

    .pc-ref-content {
        padding: 0 14px;
    }

    .pc-ref-title {
        font-size: 15px;
    }
}


/* PURECAR_MOTORSPORT_NEWS_PARITY_V1 */

.pcms-editorial-v2 .pcm-article {
    max-width: 700px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
}

.pcms-editorial-v2 .pcm-article-head {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.pcms-editorial-v2 .pcm-content {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pcms-editorial-v2 .pcm-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 4px;
    box-shadow: none;
}

.pcms-editorial-v2 .pcm-dek {
    font-size: 19px !important;
    line-height: 1.65 !important;
    color: #333;
}

@media (max-width: 767px) {
    .pcms-page.pcms-editorial-v2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pcms-editorial-v2 .pcm-article {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .pcms-editorial-v2 .pcm-dek {
        font-size: 18px !important;
    }
}


/* PURECAR_EDITORIAL_HERO_BYLINE_FIX_V1 */

/* Restore visible motorsport article hero */

.pcms-editorial-v2 .pcm-article .pcm-article-head img.pcm-hero-image {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 24px 0 28px !important;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: none;
}

/* Shared publisher layout */

.pcm-article .pc-news-publisher {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px !important;
    margin: 20px 0 24px !important;
    border: 1px solid #e3e5e8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.pcm-article .pc-news-publisher__mark {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #111 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
}

.pcm-article .pc-news-publisher__copy {
    flex: 1;
    min-width: 0;
}

.pcm-article .pc-news-publisher__author {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    color: #171717 !important;
}

.pcm-article .pc-news-publisher__author a {
    color: #171717 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pcm-article .pc-news-publisher__dates {
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6;
    color: #68717d !important;
}

.pcm-article .pc-news-publisher__type {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 20px;
    background: #f2f3f5;
    color: #444;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

/* Mobile publisher */

@media (max-width: 767px) {

    .pcm-article .pc-news-publisher {
        padding: 12px !important;
        gap: 10px;
    }

    .pcm-article .pc-news-publisher__mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .pcm-article .pc-news-publisher__type {
        display: none;
    }

    .pcm-article .pc-news-publisher__dates {
        font-size: 12px !important;
    }
}
