:root {
    --theme-fg-color: #fff;
    --theme-body-color: #d7dfe6;
    --theme-main-color: #eef2f5;
    --theme-form-color: #fff;
    --theme-text-color: #233441;
    --theme-bg-color: #5c6a75;
    --theme-bg-hover-color: #48545e;
    --theme-link-color: #2f628b;
    --theme-link-visited-color: #5c7086;
    --theme-link-hover-bg-color: rgba(98, 149, 180, 0.18);
    --theme-link-underline-color: rgba(47, 98, 139, 0.34);
    --theme-link-underline-visited-color: rgba(92, 112, 134, 0.28);
    --theme-preview-hover-bg-color: rgba(98, 149, 180, 0.45);
}

body {
    background: linear-gradient(180deg, #d3dbe2 0, #c5d0d9 220px, #bcc7d0 100%);
    color: var(--theme-text-color);
}

a,
a[href="#"]:visited,
a.no-read:visited {
    color: var(--theme-link-color);
}

a:visited {
    color: var(--theme-link-visited-color);
}

.tmain {
    max-width: 1440px;
    margin: 0 auto;
    background: #d6e0e8;
    box-shadow: 0 8px 28px rgba(34, 51, 66, 0.18);
}

.main,
#pmain,
#adframe {
    background-color: #eef2f5;
}

.main {
    padding-bottom: 18px;
}

.mm-bar,
.mm-bar ul,
#title,
#title-small {
    background: #050505 !important;
}

.mm-bar {
    border-bottom: solid 1px #1a1a1a;
    box-shadow: none;
}

.mm li:hover,
.mm li:hover,
#title-small:hover,
a#title:hover {
    background-color: #141414 !important;
}

.mm ul li {
    border-top: solid 1px #181818;
}

.mm-item,
a.mm-item:visited,
a.mm-item:hover,
a.mm-item:visited:hover {
    color: #f4f4f4;
    font-size: 16px;
    letter-spacing: 0.1px;
    text-shadow: none;
}

.mm-lang-switch > div > ul {
    right: 0;
    left: auto;
}

.mm-lang-switch > .mm-item {
    gap: 6px;
}

.mm-lang-switch > .mm-item > .mm-label {
    min-width: 2ch;
    text-align: center;
    letter-spacing: 0.12em;
}

#title {
    min-height: 74px;
    height: 74px;
    padding: 8px 18px;
    box-shadow: none;
}

#title img {
    width: 60px;
    margin: 0 14px 0 -3px;
    filter: none;
}

#title-small img {
    filter: none;
}

#title span,
#title-small span {
    margin-bottom: 0;
    text-shadow: none;
}

#title.site-wordmark,
#title-small.site-wordmark {
    gap: 0;
}

#title.site-wordmark img {
    width: auto !important;
    height: 48px !important;
    max-width: min(100%, 780px);
    margin: 0;
}

#title-small.site-wordmark img {
    width: auto !important;
    height: 20px !important;
    max-width: 260px;
    margin-right: 0;
}

#title.site-wordmark span:empty,
#title-small.site-wordmark span:empty {
    display: none;
}

h1,
h2,
h3,
h4 {
    color: #2e546d;
}

h1 {
    font-size: 34px;
}

h4 {
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

h4 a:not(:hover),
h3 a:not(:hover),
h2 a:not(:hover) {
    color: inherit;
}

.ps,
th,
.th {
    background: #d8e1e8 !important;
    color: #233441 !important;
    text-shadow: none;
}

.p20,
.p20a,
.p20p,
.p20i,
.p20w,
.p20k,
.p0,
.pg,
.std-form,
.horlines,
.fav-item,
.new_vehicle,
#vlist,
.show-all-vdata,
#idx-regions-list,
#pfm {
    background-color: #fdfefe;
    border-color: #cad4dc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.p5g,
#idx-regions-list,
.show-all-vdata {
    background-color: #edf2f5;
}

.footer {
    background: #dce5ec;
    border-top: solid 1px #c1ced7;
    color: #5a6f81;
    line-height: 1.55;
}

.footer a,
.footer a:visited {
    color: #335f86;
}

.footer a:hover,
.footer a:visited:hover {
    color: #264b69;
    background: transparent;
}

.footer-nav {
    font-family: var(--narrow-font);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.footer-copy {
    font-size: 12px;
}

.footer-meta {
    font-size: 11px;
    color: #6f8292;
    margin-top: 4px;
}

.ix-photos {
    background-color: #acbbc7;
    border: solid 1px #97a9b6;
}

.ix-popular-spacer,
.ix-news-item,
.ci-update-item,
.horlines td,
table.wlist td {
    border-color: #cfd9e1;
}

.ix-news-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.prw-wrapper {
    background-color: #fdfefe;
    color: #233441;
    box-shadow: 0 3px 12px rgba(39, 58, 75, 0.24);
}

.prw-animate,
.pop-prw:before,
.f {
    box-shadow: 0 0 16px rgba(24, 37, 48, 0.26) inset;
}

.hpshade,
.hdshade {
    background: linear-gradient(to top, rgba(26, 40, 52, 0.68), rgba(26, 40, 52, 0));
}

#contestNotify {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(39, 58, 75, 0.08);
}

#contestNotify h4,
#contestNotify b[style],
#contestNotify #textContest {
    color: #2e546d !important;
}

#contestNotify a[style] {
    color: #fff !important;
}

.progress-container {
    background: #050505 !important;
}

.progress-bard {
    background: #666 !important;
    background-image: none !important;
    animation: none !important;
}

@media screen and (max-width: 980px) {
    .tmain {
        box-shadow: none;
    }

    #title {
        height: auto;
        min-height: 66px;
        padding: 8px 12px;
    }

    #title span {
        font-size: 30px;
        line-height: 1.05;
        white-space: normal;
    }

    #title.site-wordmark img {
        height: 34px !important;
        max-width: calc(100vw - 24px);
    }

    .main,
    #pmain {
        padding-left: 12px;
        padding-right: 12px;
    }

    #idx-main,
    #idx-main > tbody,
    #idx-main > tbody > tr,
    #idx-main > tbody > tr > td {
        display: block;
        width: 100% !important;
    }

    #idx-main > tbody > tr > td {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }
}
