/* Site-specific rules copied from the live inline footer styles, plus form/search/ticker helpers and a conservative responsive layer. Desktop (≥960px) matches the live 960px layout. */

#menu { margin-top: 0; }
#logo { margin: 0 30px 0 0; }
.h3top, .topposition_chart, .charttp img { display: none; }
li.vsrp_widget { list-style: none; }

body {
    background: #f1f1f1;
}
#header {
    padding: 20px 20px 30px 0;
    background: #fff;
    margin-bottom: 0;
}
#content {
    background: #fff;
    padding: 10px;
}
div#footer {
    background: #fff;
    padding: 10px;
}

#socialTop { float: none; }

/* News box: live CSS targeted #Widgets_on_Pages_1 but the markup id is "1". Apply the same visual to the widget class. */
#Widgets_on_Pages_1,
.widgets_on_page {
    padding-top: 10px;
    background: #ececec;
    background-image: url(../images/uploads/news-bg.png);
    border-radius: 10px;
    box-shadow: 0 0 3px #666;
    width: 363px;
}
.widgets_on_page ul {
    list-style: none;
    margin: 0;
    padding: 10px 15px 15px 15px;
}
.widgets_on_page .widgettitle {
    margin: 0 0 10px 0;
}

.vsrp_wrapper {
    text-align: left;
    vertical-align: middle;
    text-decoration: none;
    overflow: hidden;
}
.vsrp_div {
    font-size: 13px;
    padding: 4px 0;
    line-height: 1.1;
    position: relative;
    vertical-align: top;
}

.stock-quote-link {
    margin-top: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

#slider img {
    display: block;
    width: 100%;
    height: auto;
}

/* List bullets: live theme PNGs under /images/icons/ returned HTTP 503. SVG stand-ins match tick/red bullet use. */
.list-tick {
    list-style: none;
    padding-left: 28px;
}
.list-tick li {
    position: relative;
}
.list-tick li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%232e7d32' d='M1 6.5l3.2 3.2L11 2.8l-1.2-1.2-5.6 5.6L2.2 5.3z'/%3E%3C/svg%3E") no-repeat center;
}
.list-red {
    list-style: none;
    padding-left: 28px;
}
.list-red li {
    position: relative;
}
.list-red li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c42828;
}

.page-list .current_page_item > a {
    font-weight: bold;
}

/* Contact Form 7 visual styles (no WordPress runtime) */
.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}
.wpcf7-form-control-wrap {
    position: relative;
}
.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 1em;
    display: block;
}
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232;
}
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #ffb900;
}
.wpcf7-not-valid {
    border: 1px solid #f00;
}
.captcha-image {
    display: block;
    margin: 8px 0;
}
.cf7ic_instructions {
    display: block;
    margin-bottom: 8px;
}
.captcha-image label {
    display: inline-block;
    width: 48px;
    margin-right: 10px;
    cursor: pointer;
    vertical-align: middle;
}
.captcha-image svg {
    width: 36px;
    height: 36px;
    display: block;
}
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

.search-status {
    margin: 0 0 1.5em 0;
}
.search-results .blog-post {
    float: left;
    width: 100%;
    margin-bottom: 20px;
}

.lyf-table-wrap {
    overflow-x: auto;
}

/* Conservative tablet/mobile layer — does not change the 960px desktop composition */
@media (max-width: 980px) {
    .wrapper {
        width: auto;
        max-width: 960px;
        margin: 0 12px;
    }
    #slider,
    #slider li {
        width: 100%;
    }
    #main-content,
    #main-content-full {
        width: 100%;
        float: none;
    }
    #sidebar.sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 16px 10px 16px 10px;
    }
    #logo {
        float: none;
        border-right: none;
        margin: 0 0 16px 0;
        padding: 0;
    }
    #logo img {
        max-height: 70px;
        width: auto;
    }
    #menu {
        float: none;
        margin: 0 0 16px 0;
        width: 100%;
    }
    #menu > ul {
        width: 100%;
        float: none;
    }
    #menu > ul > li {
        float: none;
        width: auto;
        border-bottom: 1px solid #eee;
    }
    #menu > ul > li > a {
        float: none;
        padding: 6px 0;
    }
    #menu ul li ul {
        position: static;
        display: none;
        padding: 0 0 8px 16px;
        background: transparent;
    }
    #menu ul li.open > ul,
    #menu ul li:hover > ul {
        display: block;
        opacity: 1;
    }
    #header-right {
        float: none;
        width: 100%;
        clear: both;
    }
    #s-top {
        width: 100%;
        max-width: 280px;
    }
    .one-half,
    .one-third,
    .two-thirds,
    .one-fourth {
        width: 100%;
        margin-right: 0;
        float: none;
    }
    #page-title {
        margin-top: 0;
        float: none;
        font-size: 22px;
    }
    #breadcrumb {
        margin-bottom: 24px;
    }
    .widgets_on_page,
    #Widgets_on_Pages_1 {
        width: 100%;
    }
    .post-info,
    .post-content {
        float: none;
        width: 100%;
        text-align: left;
    }
    #copyright .left,
    #copyright .right {
        float: none;
        width: 100%;
        margin-bottom: 8px;
    }
    #slider-wrapper #slide-left,
    #slider-wrapper #slide-right {
        width: 60px;
        background-position-x: center;
    }
}
