/* Long-form article pages: Find-Ford-Explorer-Liftgate.html, Used-Part-Ford-Factory-Coverage.html.
   Loaded after the site stylesheets; every rule is scoped to .af-* classes,
   except the narrow-screen block for the shared header, menu and footer. */

:root {
    --af-navy: #013c76;
    --af-navy-deep: #022a52;
    --af-blue: #0055a5;
    --af-red: #9a001c;
    --af-ink: #2b3036;
    --af-muted: #545b64;
    --af-mist: #edf2f8;
    --af-rule: #d3dce7;
    --af-blush: #f9eef0;
}

/* ---------- hero ---------- */

.af-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--af-navy-deep);
}

.af-hero img {
    position: absolute;
    top: 0;
    right: 0;
    width: 74%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
    display: block;
}

.af-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #022a52 0%, #022a52 26%, rgba(2, 42, 82, .78) 40%, rgba(2, 42, 82, .18) 58%, rgba(2, 42, 82, 0) 72%),
                linear-gradient(0deg, rgba(2, 42, 82, .5) 0%, rgba(2, 42, 82, 0) 40%);
}

.af-hero__inner {
    position: absolute;
    left: 40px;
    bottom: 110px;
    z-index: 1;
    max-width: 470px;
}

.af-hero h1 {
    margin: 0;
    font-family: 'Big Shoulders Stencil', 'Arial Narrow', Arial, sans-serif;
    font-weight: 800;
    font-size: 58px;
    line-height: .98;
    letter-spacing: .005em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* ---------- article frame ---------- */

.af-article *,
.af-article *::before,
.af-article *::after {
    box-sizing: border-box;
}

.sf_content.af-article {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0 40px 0;
    font-family: 'Sintony', Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--af-ink);
}

.af-article p {
    margin: 0 0 1.05em;
}

.af-article a,
.af-article a:link,
.af-article a:visited {
    color: var(--af-red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    border: 0;
}

.af-article a:hover {
    color: var(--af-navy);
}

.af-article a:focus-visible {
    outline: 2px solid var(--af-blue);
    outline-offset: 2px;
}

.af-article h2 {
    margin: 0 0 14px;
    font-family: 'Sintony', Arial, Helvetica, sans-serif !important;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.005em;
    color: var(--af-red);
}

.af-article strong {
    font-weight: 700;
}

.af-prose,
.af-section > p,
.af-section > h2 {
    max-width: 640px;
}

.af-section {
    margin-top: 54px;
}

/* ---------- lead + contents ---------- */

.af-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 620px) 230px;
    justify-content: space-between;
    align-items: start;
    margin-top: -76px;
}

.af-lead {
    background: #fff;
    border-top: 4px solid var(--af-red);
    box-shadow: 0 16px 38px rgba(1, 32, 66, .18);
    padding: 28px 32px 30px;
    font-size: 18px;
    line-height: 1.62;
    color: #22272d;
}

.af-lead p {
    margin: 0;
}

.af-toc {
    margin-top: 104px;
    padding: 2px 0 2px 18px;
    border-left: 3px solid var(--af-blue);
    font-size: 14px;
    line-height: 1.38;
}

.af-toc__title {
    margin: 0 0 12px !important;
    font-weight: 700;
    color: var(--af-navy);
}

.af-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.af-toc li {
    margin: 0 0 10px;
}

.af-article .af-toc a,
.af-article .af-toc a:link,
.af-article .af-toc a:visited {
    color: var(--af-muted);
    text-decoration: none;
}

.af-article .af-toc a:hover {
    color: var(--af-red);
    text-decoration: underline;
}

/* ---------- text + photo ---------- */

.af-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

.af-split > div > p:last-child {
    margin-bottom: 0;
}

.af-figure {
    position: relative;
    z-index: 0;
    margin: 8px 0 0;
}

.af-figure::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -14px;
    right: -14px;
    width: 72%;
    height: 64%;
    background: var(--af-mist);
    border-top: 4px solid var(--af-blue);
}

.af-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(1, 32, 66, .2);
}

/* ---------- request card (page 1) ---------- */

.af-ticket {
    margin-top: 58px;
    border: 2px solid var(--af-navy);
    background: #fff;
}

.af-ticket__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 24px 30px 22px;
    background: var(--af-navy);
    color: #dbe6f2;
}

.af-ticket__head svg {
    width: 44px;
    height: 44px;
    margin-top: 2px;
}

.af-article .af-ticket__head h2 {
    margin: 0 0 6px;
    color: #fff;
}

.af-ticket__head p {
    margin: 0;
    max-width: 640px;
    font-size: 15.5px;
    line-height: 1.55;
}

.af-ticket ul {
    list-style: none;
    margin: 0;
    padding: 12px 30px 6px;
    columns: 2;
    column-gap: 44px;
}

.af-ticket li {
    display: flex;
    gap: 13px;
    padding: 12px 0 13px;
    border-bottom: 1px dashed #b5c3d3;
    font-size: 15px;
    line-height: 1.45;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.af-ticket li::before {
    content: "";
    flex: 0 0 15px;
    height: 15px;
    margin-top: 2px;
    border: 2px solid var(--af-blue);
    border-radius: 2px;
    background: #fff;
}

.af-ticket__foot {
    margin: 0 30px;
    padding: 16px 0 22px;
    border-top: 2px solid var(--af-navy);
    font-size: 15px;
    color: var(--af-muted);
}

.af-ticket__foot p {
    max-width: 760px;
    margin: 0;
}

/* ---------- approval checks (page 1) ---------- */

.af-checks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin: 22px 0 30px;
    padding: 0;
}

.af-checks li {
    position: relative;
    padding: 17px 20px 17px 56px;
    background: var(--af-mist);
    font-size: 15.5px;
    line-height: 1.48;
}

.af-checks li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 16px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a001c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='7.5 12.5 10.5 15.5 16.5 9'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- notes ---------- */

.af-note {
    max-width: 640px;
    margin: 0 0 1.05em;
    padding: 17px 22px;
    border-left: 4px solid var(--af-blue);
    background: var(--af-mist);
}

.af-note p {
    margin: 0;
}

.af-alert {
    position: relative;
    max-width: 640px;
    margin: 0 0 1.05em;
    padding: 18px 24px 18px 62px;
    border-left: 4px solid var(--af-red);
    background: var(--af-blush);
}

.af-alert::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a001c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
}

.af-alert p:last-child {
    margin-bottom: 0;
}

/* ---------- three outcomes (page 2) ---------- */

.af-cases {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 30px;
    padding: 0;
}

.af-cases li {
    padding: 20px 20px 22px;
    border: 1px solid var(--af-rule);
    border-top: 4px solid var(--af-blue);
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
}

.af-cases li.af-cases__risk {
    border-top-color: var(--af-red);
}

.af-cases li strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16.5px;
    line-height: 1.36;
    color: var(--af-navy);
}

/* ---------- records folder (page 2) ---------- */

.af-folder {
    margin: 4px 0 0;
    padding: 8px 24px 10px;
    background: var(--af-mist);
    border-top: 4px solid var(--af-navy);
}

.af-folder ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.af-folder li {
    position: relative;
    padding: 11px 0 11px 32px;
    border-bottom: 1px solid #cfd9e5;
    font-size: 15px;
    line-height: 1.45;
}

.af-folder li:last-child {
    border-bottom: 0;
}

.af-folder li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 19px;
    height: 19px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- closing band ---------- */

.af-close {
    margin: 56px 0 48px;
    padding: 34px 40px 36px;
    background: var(--af-navy);
    border-top: 4px solid var(--af-red);
    color: #e3ebf5;
}

.af-close > * {
    max-width: 700px;
}

.af-article .af-close h2 {
    color: #fff;
}

.af-close p {
    font-size: 17px;
}

.af-close p:last-child {
    margin-bottom: 0;
}

.af-article .af-close a,
.af-article .af-close a:link,
.af-article .af-close a:visited {
    color: #fff;
    text-decoration-thickness: 2px;
    text-decoration-color: #e0566d;
}

.af-article .af-close a:hover {
    text-decoration-color: #fff;
}

/* ---------- tablet and phone ---------- */

@media (max-width: 1000px) {
    body {
        min-width: 0;
    }

    .sf_region1 {
        width: auto;
        padding: 0;
    }

    .sf_wrapper,
    .sf_extra5 {
        width: auto;
    }

    .sf_header_wrapper {
        width: auto;
        height: auto;
        aspect-ratio: 1000 / 177;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    .sf_region3 {
        display: none;
    }

    body .sf_navigation {
        width: auto;
        height: auto !important;
        background: #fff;
        border-bottom: 1px solid var(--af-rule);
    }

    body .sf_navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 4px 8px;
    }

    body .sf_navigation ul li {
        float: none;
    }

    body .sf_navigation ul li a {
        width: auto !important;
        height: auto;
        padding: 10px 12px;
        font-size: 14px;
    }

    .sf_main_wrapper {
        background: #fff;
    }

    .sf_footer {
        width: auto;
        min-height: 0;
        padding: 22px 16px 24px;
        background: linear-gradient(180deg, #9a001c 0%, #7a0017 100%);
        border-radius: 0 0 10px 10px;
    }

    .af-hero__inner {
        right: 40px;
    }
}

@media (max-width: 860px) {
    .af-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .af-toc {
        margin-top: 30px;
    }

    .af-cases {
        grid-template-columns: minmax(0, 1fr);
    }

    .af-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .af-figure {
        max-width: 420px;
        margin-right: 14px;
    }

    .af-figure img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 760px) {
    .af-hero {
        height: 330px;
    }

    .af-hero::after {
        background: linear-gradient(0deg, rgba(2, 42, 82, .95) 0%, rgba(2, 42, 82, .72) 46%, rgba(2, 42, 82, .2) 100%);
    }

    .af-hero__inner {
        left: 16px;
        right: 16px;
        bottom: 66px;
    }

    .af-hero img {
        width: 100%;
    }

    .af-hero h1 {
        font-size: 42px;
    }

    .sf_content.af-article {
        padding: 0 16px;
        font-size: 16px;
    }

    .af-top {
        margin-top: -44px;
    }

    .af-lead {
        padding: 20px 20px 22px;
        font-size: 17px;
    }

    .af-article h2 {
        font-size: 24px;
    }

    .af-section {
        margin-top: 44px;
    }

    .af-ticket__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 20px 18px 18px;
    }

    .af-ticket__head svg {
        width: 34px;
        height: 34px;
    }

    .af-ticket ul {
        columns: 1;
        padding: 6px 18px 4px;
    }

    .af-ticket__foot {
        margin: 0 18px;
    }

    .af-checks {
        grid-template-columns: minmax(0, 1fr);
    }

    .af-alert {
        padding: 16px 18px 16px 54px;
    }

    .af-alert::before {
        left: 18px;
    }

    .af-folder {
        padding: 6px 16px 8px;
    }

    .af-close {
        margin: 44px 0 32px;
        padding: 26px 20px 28px;
    }
}

@media (max-width: 420px) {
    .af-hero h1 {
        font-size: 37px;
    }

    body .sf_navigation ul li a {
        padding: 9px 9px;
        font-size: 13px;
    }
}

.af-article .af-after-split {
    margin-top: 28px;
}
