.vin-home {
    --vin-ink: #172923;
    --vin-muted: #4e625b;
    --vin-green: #075d43;
    --vin-line: #dce7e1;
    display: block;
    width: min(100%, 1080px);
    min-width: 0;
    margin: 0 auto;
    padding: 0 18px 36px;
    color: var(--vin-ink);
    font-family: inherit;
}

.vin-home *, .vin-home *::before, .vin-home *::after { box-sizing: border-box; }
.vin-home [hidden] { display: none !important; }
.vin-home :is(h1,h2,h3,p) { margin: 0; }
.vin-home :is(a,button,summary,input):focus-visible { outline: 2px solid #99570b; outline-offset: 3px; }
.vin-home :is(a,a:visited) { color: var(--vin-green); text-underline-offset: 3px; }

.vin-home__search { padding: 37px 0 20px; scroll-margin-top: 24px; }
.vin-home__intro { max-width: 690px; margin: 0 auto 16px; text-align: center; }
.vin-home__intro h1 { font-size: 38px; line-height: 1.15; color: var(--vin-ink); }
.vin-home__intro p { margin-top: 7px; color: var(--vin-muted); }

.vin-home #vin-decoder-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vin-home #vin-decoder-form .form-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    /* Override the legacy maximum width in the WordPress custom CSS. */
    max-width: 100% !important;
    margin: 0;
    padding: 4px;
    border: 1px solid #a0b9af;
    border-radius: 8px;
    background: #fff;
}

.vin-home #vin-decoder-form .form-group input {
    min-width: 0;
    min-height: 46px;
    width: 100%;
    padding: 8px 11px;
    border: 0;
    background: transparent;
    color: #172923;
    font-size: 16px;
    text-transform: uppercase;
}

.vin-home #vin-decoder-form .form-group input::placeholder { text-transform: none; }

.vin-home #vin-decoder-form .form-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 90px;
    min-height: 46px;
    margin: 0;
    padding: 5px 11px;
    border-radius: 6px;
    background: #08724f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.vin-home #vin-decoder-form .form-group button svg { width: 18px; height: 18px; }
.vin-home__search .vin-result { margin-bottom: 0; }

.vin-home__carfax-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 6px auto 0;
    color: var(--vin-muted);
    font-size: 14px;
    text-align: center;
}

.vin-home__carfax-meta strong { color: var(--vin-ink); }
.vin-home__carfax-meta a { display: inline-flex; align-items: center; min-height: 44px; }

.vin-home__recent, .vin-home__services, .vin-home__examples, .vin-home__help { padding: 18px 0; }
.vin-home__services, .vin-home__examples, .vin-home__help { border-top: 1px solid var(--vin-line); }
.vin-home__section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.vin-home :is(.vin-home__section-head,.vin-home__help) h2 { font-size: 22px; line-height: 1.23; color: var(--vin-ink); }
.vin-home__recent { padding-top: 6px; }

.vin-home .vin-home__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 5);
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    list-style: none;
}

.vin-home__vehicle {
    min-width: 0;
    scroll-snap-align: start;
    margin: 0;
    border: 1px solid var(--vin-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.vin-home__vehicle-media {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef4f1;
}

.vin-home__vehicle-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.vin-home__no-photo {
    width: 100%;
    height: 100%;
    background: #fff url('../images/vin-carousel-no-photo.png') center / cover no-repeat;
}
.vin-home .vin-home__vehicle h3 { padding: 9px 10px; color: var(--vin-ink); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }

.vin-home__service-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.vin-home__service-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 0 13px 0 0;
    border-right: 1px solid var(--vin-line);
}
.vin-home__service-list article:last-child { border-right: 0; }
.vin-home__service-list h3 { color: var(--vin-ink); font-size: 17px; }
.vin-home__service-list p { margin-top: 4px; }
.vin-home__service-list p, .vin-home__annotation { color: var(--vin-muted); }
.vin-home__service-icon {
    display: block;
    padding: 7px;
    border-radius: 7px;
    background: #e9f5ef;
    color: var(--vin-green);
}
.vin-home__service-icon--warning { background: #fdf1d9; color: #8a4d0c; }
.vin-home__service-icon--mileage { background: #eaf4fa; color: #1b5e80; }
.vin-home__links { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.vin-home__links a, .vin-home__examples > a, .vin-home__help > a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; }
.vin-home__links a:first-child { font-weight: 700; }

.vin-home details { padding: 0 1px; border-bottom: 1px solid var(--vin-line); scroll-margin-top: 20px; }
.vin-home details summary { min-height: 44px; padding: 8px 0; color: var(--vin-ink); font-weight: 650; cursor: pointer; }
.vin-home details p { padding: 0 0 8px; }
.vin-home details dl { margin: 0 0 6px; }
.vin-home details dl div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 8px; padding: 4px 0; overflow-wrap: anywhere; }
.vin-home details dd { margin: 0; }

@media (max-width: 850px) {
    .vin-home .vin-home__track { grid-auto-columns: calc((100% - 24px) / 3); }
}

@media (max-width: 620px) {
    .vin-home { padding: 0 9px 24px; }
    .vin-home__search { padding-top: 23px; }
    .vin-home__intro h1 { font-size: 28px; }
    .vin-home :is(.vin-home__section-head,.vin-home__help) h2 { font-size: 19px; }
    .vin-home .vin-home__track { grid-auto-columns: calc((100% - 12px) / 2); }
    .vin-home__service-list { grid-template-columns: 1fr; gap: 9px; }
    .vin-home__service-list article { padding: 4px 0 7px; border-right: 0; border-bottom: 1px solid var(--vin-line); }
    .vin-home__service-list article:last-child { border-bottom: 0; }
}

