/* ==========================================================================
   base.css — LNVHV New Site
   Foundational resets, layout structure, typography, global element styles.
   Derived exclusively from _lnvhv-STHSMain-CSSOverwriteNEW.css patterns.
   DO NOT add component-specific or page-specific rules here.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (ROOT VARIABLES)
   -------------------------------------------------------------------------- */

:root {
    /* Layout */
    --padding: 40px;
    --max-width: 1440px;
    --logo-size: 144px;

    /* Team colour defaults (overridden per-page by header.php) */
    --teamcolorprimary: 65, 105, 225;    /* royalblue fallback */
    --teamcolorsecondary: 51, 51, 51;    /* dark grey fallback */
}

@media screen and (max-width: 600px) {
    :root {
        --padding: 10px;
    }
}

@media screen and (min-width: 800px) {
    :root {
        --logo-size: 288px;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --logo-size: 320px;
    }
}


/* --------------------------------------------------------------------------
   2. BOX MODEL RESET
   -------------------------------------------------------------------------- */

body *,
body *::before,
body *::after {
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   3. BASE BODY
   -------------------------------------------------------------------------- */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #333333;
    background: #ffffff;
    margin: 0;
    padding: 0;
}


/* --------------------------------------------------------------------------
   4. HEADINGS
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color: rgb(37, 37, 37);
}

h1 {
    border-bottom: 1px solid rgb(210, 210, 210);
    font-size: 42px;
    line-height: 52px;
    padding: 20px 10px;
}

h2 {
    font-size: 28px;
    line-height: 42px;
    padding: 20px 10px;
}

h3 {
    font-size: 20px;
    line-height: 28px;
    padding: 10px;
}

@media only screen and (min-width: 1024px) {
    h1, h2 {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 640px) {
    h2 {
        font-size: 22px;
        line-height: 30px;
        padding: 10px 10px;
    }
}


/* --------------------------------------------------------------------------
   5. LINKS
   -------------------------------------------------------------------------- */

a {
    text-decoration: none;
    color: rgba(65, 105, 225, 1);
}

a:hover {
    text-decoration: underline;
    color: rgba(65, 105, 225, 0.8);
}


/* --------------------------------------------------------------------------
   6. IMAGES
   -------------------------------------------------------------------------- */

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}


/* --------------------------------------------------------------------------
   7. LISTS
   -------------------------------------------------------------------------- */

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* --------------------------------------------------------------------------
   8. SEMANTIC LAYOUT ELEMENTS
   -------------------------------------------------------------------------- */

header,
main,
footer,
section,
article,
aside,
nav {
    display: block;
}


/* --------------------------------------------------------------------------
   9. PAGE LAYOUT STRUCTURE
   -------------------------------------------------------------------------- */

/* Wraps everything below the nav */
.lnvhv-sitemain {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.lnvhv-sitemain #wrapper {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #000000;
    background-color: #ffffff;
}

/* Root content container; constrains max-width on large screens */
#wrapper #root {
    flex: 1 0 auto;
}

@media only screen and (min-width: 1024px) {
    #wrapper #root {
        margin: 0 auto;
        width: 100%;
        max-width: var(--max-width);
    }
}


/* --------------------------------------------------------------------------
   10. CONTENT WRAPPER
   -------------------------------------------------------------------------- */

.lnvhv-contentmain h2 {
    padding: 20px 10px;
}


/* --------------------------------------------------------------------------
   11. SCROLLUP BUTTON
   -------------------------------------------------------------------------- */

.scrollup {
    z-index: 9999;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(var(--teamcolorprimary), 0.85);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.scrollup:hover {
    background: rgba(var(--teamcolorprimary), 1);
    text-decoration: none;
    color: #ffffff;
}


/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */

.footer {
    font-size: 12px;
    color: #666666;
    padding: 20px var(--padding);
    border-top: 1px solid rgb(210, 210, 210);
    line-height: 1.6;
    text-align: center;
}

.footer a {
    color: #666666;
}

.footer a:hover {
    color: rgba(65, 105, 225, 1);
}


/* --------------------------------------------------------------------------
   13. UTILITY / SUPPRESS
   -------------------------------------------------------------------------- */

/* Hide STHS-generated ad/banner containers */
#bannersBox {
    display: none !important;
}

/* Hidden fields (trade form etc.) */
.hiddenFields {
    position: absolute;
    visibility: hidden;
    left: -999999px;
}

/* Abbreviation — no browser default dotted underline */
abbr {
    text-decoration: none;
    cursor: default;
}
