/*****
 * LINECO Base: Site Structure
 *
******/

body {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
}

/* trump Foundation core style definition */
ul.accordion ul, 
ul.accordion ol {
    margin-bottom: 1rem;
}

ul.accordion ul.accordion {
    margin-bottom: 0;
}

/* Specific-use containers */
.site-size-container {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    max-width: 1440px;
}

@media print, screen and (min-width: 40em) {

    .site-size-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.ui-wide-horiz-container {
    border-bottom: 1px solid transparent; /* avoid ios7 issue ? */
    overflow-x: auto; /* avoid ugly bars in most browsers, use js test for iOS */
    -webkit-overflow-scrolling: touch;
}

.ui-wide-horiz-container.js--fits {
    overflow-x: auto;
}

.ui-wide-horiz-container.js--nofit {
    /* try to cue smooth/normal iOS scrolling, needs `scroll` */
    overflow-x: scroll; /* not auto! alas.. */
}

/** Site Header **/    

.site-header {
    z-index: 2000 !important;
    width: 100%;
    border-style: solid;
    border-width: 0 0 2px;
    border-color: transparent transparent var(--primary-cyan-600);
}

@media print, screen and (min-width: 40em) {

    .site-header {
        border-width: 0 0 1px;
        border-color: transparent transparent var(--neutral-300);
    }
}

.site-header--mobile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.site-header-section {
    width: 50%;
}

.site-header-right {
    text-align: right;
}

.site-header--mobile .button--site-menu {
    margin: 0 0 0;
    padding: 0.6875rem;
    font-size: 1.3rem;
    line-height: 1;
}

.site-header--mobile .button.button--site-menu,
.site-header--mobile .button.button--site-menu:hover,
.site-header--mobile .button.button--site-menu:focus {
    color: var(--neutral-900);
}

.site-header-upper .site-size-container {
    padding: 4px 0;
}

#site-header-menu-holder {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: var(--neutral-white);
    color: var(--neutral-900);
    visibility: hidden;
    z-index: 99999;
}

#site-header-menu-holder .menu-control {
    padding: 0.25rem;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

#site-header-menu-holder .close-x {
    padding: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: bold;
    position: relative;
    z-index: 99999;
}

.drilldown-divider,
#site-header-menu-holder .is-drilldown {
    border-top: 1px solid var(--neutral-200);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

#site-header-menu-holder .menu-holder > .is-drilldown:first-child {
    border-top-width: 0;
    padding-top: 0;
    margin-top: 0;
}

#site-header-menu-holder .menu-holder .menu-line {
    padding: 0 0 0;
    margin: 0 0 0;
}

#site-header-menu-holder .menu-holder .menu-line a {
    display: block;
}

#site-header-menu-holder .menu-holder .menu-line a,
#site-header-menu-holder .menu-holder form > .menu-line,
#site-header-menu-holder .menu-holder .is-drilldown a {
    padding: 0.85rem 1rem;
    margin: 0 0 0;
}

#site-header-menu-holder .menu-holder form > .menu-line.input-group {
    padding-right: 0.5rem;
}

#site-header-menu-holder .nav .ph, 
#site-header-menu-holder .nav .ph-fill {
    margin: 0 0 0;
}

#site-header-menu-holder .drilldown .is-drilldown-submenu-parent > a::after {
    display: none;
}

.lang-switch-link-holder {
    padding-top: 3rem;
}

#site-header-menu-holder .menu-holder .js-drilldown-back > a {
    padding-left: 0.5rem;
}

.drilldown .js-drilldown-back > a::before {
    font-family: var(--font-stack--icons);
    content: '\e9ff';
    border-width: 0 0 0;
    vertical-align: middle;
    margin: 0 0.125rem 0 0;
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.menu-section-header {
    font-weight: bold;
    border-bottom: 1px solid var(--neutral-200);
    margin: 0.5rem 0;
    font-size: var(--font-size-400);
}


.nav--site-secondary .nav-list {
    flex-direction: row-reverse;
}


.site-title {
    margin: 0 1.625rem 0 0;
    flex-basis: 190px;
}

.site-title-link,
.site-logo {
    display: block;
    margin: 0 0;
}

.site-title-link {
    padding: 1.125rem 0.6875rem;
}

.site-logo {
    max-height: 43px;
    height: 2.7rem;
}

@media print, screen and (min-width: 40em) {

    .site-title-link {
        padding: 0.125rem 0.6875rem;
    }

    .site-logo {
        max-height: 85px;
        height: 3.69rem;
    }

    .nav--site-menu {
        padding-top: 8px;
    }
}



/** Site Body **/

.site-main {
    min-height: 90vh;
    padding: 1px 1rem 1rem;
}

.site-block-inner--has-child {
    margin: 0 -1rem;
}

.site-block-inner--border-top {
    border-top: 1px solid var(--neutral-300);
    padding: 1rem 0 0;
}

.site-block-inner--border-top > .site-block-inner-child > .sidebar-row:first-child {
    margin-top: -1rem;
}

.site-block-inner-child {
    padding: 0 1rem;
}

/* Cannot use var(--site-max-width) here, so explicit */
@media print, screen and (min-width: 1440px) {
    .site-block-inner-child {
        padding: 0 0;
    }
}


.sidebar,
.sidebar-mate {
    padding: 2.5rem 2rem;
}

.sidebar {
    background-color: var(--neutral-100);
}

@media print, screen and (min-width: 40em) {

    .sidebar-row {
        display: flex;
        justify-content: space-between;
    }

    .sidebar-mate {
        width: 66%;
    }

    .sidebar-mate:first-child {
        padding-left: 0;
    }
    
    .sidebar-mate:last-child {
        padding-right: 0;
    }

    .sidebar {
        width: 33%;
    }
}


/** Site Footer **/

.site-footer a {
    color: var(--accent-gold-400);
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

@media print, screen and (min-width: 40em) {

    .site-footer-cols > .site-footer-about {
        width: 45.25%; /* desktop */
    }
}

.footer-contact {
    display: flex;
}

.footer-contact-label {
    width: 5rem;
    display: inline-block;
    font-style: normal;
    font-weight: normal;
}

.footer-disclaimer {
    margin: 2rem 0 0.8rem;
    border: 1px solid var(--neutral-100);
    border-width: 0 0 1px;
}

.footer-terms-menu {
    margin: 0.8rem 0;
}

.footer-terms-menu .nav-item {
    border: 1px solid var(--neutral-100);
    border-width: 0 1px 0 0;
    padding: 0 0.5rem;
}

.footer-terms-menu .nav-item:first-child {
    padding-left: 0;
}

.footer-terms-menu .nav-item:last-child {
    border-width: 0 0 0 0;
    padding-right: 0;
}

.footer-terms-menu .nav-link {
    padding: 0 0.25rem;
}

@media print, screen and (min-width: 40em) {
    .site-footer-cols > .site-footer-sitemap {
        width: 54.75%; /* desktop */
    }
}

.site-footer-sitemap-header {
    font-size: 1.125rem;
    line-height: 1.5;
}

.site-footer-sitemap li {
    padding: 4px 0;
    font-size: 0.875rem;
}

.site-footer-sitemap a {
    color: var(--neutral-100);
    display: block;
}


/** Utilities **/

.text-cols-2 {
    columns: 2;
}
