/* == START Google Fonts Import == */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&family=Oswald:wght@300;400;500&display=swap');
/* == END Google Fonts Import == */

/* == START CSS Variables == */
:root {
    --tsc-blue:       #2da0ce;
    --tsc-green:      #96c832;
    --tsc-orange:     #e66a00;
    --tsc-dark:       #555555;
    --tsc-light:      #f4f4f4;
    --tsc-border:     #e6e6e6;
    --tsc-white:      #ffffff;
    --tsc-nav-bg:     #444444;
    --tsc-footer-bg:  #3a3a3a;
}
/* == END CSS Variables == */

/* == START Base & Body == */
body {
    font-family: 'Open Sans', sans-serif !important;
    background: var(--tsc-light) !important;
    color: var(--tsc-dark) !important;
    margin: 0 !important;
    padding: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif !important;
}

a {
    color: var(--tsc-blue);
}

a:hover {
    color: var(--tsc-orange);
    text-decoration: none;
}
/* == END Base & Body == */

/* == START Container == */
#container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    background-color: var(--tsc-white) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.10) !important;
    -moz-box-shadow: 0 0 20px rgba(0,0,0,0.10) !important;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.10) !important;
    min-height: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
}
/* == END Container == */

/* == START Full Width Header & Nav == */
/*
    Header and nav break out of the 1000px container using
    the negative margin viewport trick.
*/
#header,
ul#nav {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
}
/* == END Full Width Header & Nav == */

/* == START Header == */
#header {
    width: 100% !important;
    height: auto !important;
    padding: 14px 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--tsc-white) !important;
    border-bottom: 3px solid var(--tsc-green) !important;
    box-sizing: border-box !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1000px !important;
}

.header-left,
.header-right {
    flex: 1 !important;
}

.header-right {
    text-align: right !important;
    font-size: 13px !important;
    color: var(--tsc-dark) !important;
}

#logo {
    flex: 0 0 auto !important;
    display: block !important;
}

#logo img {
    max-height: 65px !important;
    width: auto !important;
    display: block !important;
}
/* == END Header == */

/* == START Navigation == */
ul#nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    background: var(--tsc-nav-bg) !important;
    border-top: none !important;
    border-bottom: 3px solid var(--tsc-blue) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    box-sizing: border-box !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    justify-content: center !important;
}

ul#nav li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul#nav li.nav-signin {
    margin-left: 0 !important;
}

ul#nav li a {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 12px 22px !important;
    margin: 0 !important;
    color: var(--tsc-white) !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background-color 0.2s ease;
}

ul#nav li a:hover {
    background-color: var(--tsc-blue) !important;
    background-image: none !important;
    color: var(--tsc-white) !important;
    text-decoration: none !important;
}

ul#nav li a.active {
    background-color: var(--tsc-blue) !important;
    background-image: none !important;
    color: var(--tsc-white) !important;
}

ul#nav li.nav-signin a:hover {
    background-color: var(--tsc-orange) !important;
    color: var(--tsc-white) !important;
}
/* == END Navigation == */

/* == START Content == */
#content {
    padding: 24px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}
/* == END Content == */

/* == START Landing Page == */
/* flex-direction: row-reverse puts sidebar on the RIGHT */
#landing_page {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 24px !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
}

#landing_page .main-content {
    flex: 1 1 400px !important;
    background-color: var(--tsc-white) !important;
    border: 1px solid var(--tsc-border) !important;
    border-radius: 6px !important;
    padding: 24px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}

#landing_page .sidebar {
    flex: 0 0 200px !important;
    float: none !important;
    width: 200px !important;
    margin-left: 0 !important;
}
/* == END Landing Page == */

/* == START Sidebar == */
.sidebar {
    background-color: var(--tsc-white) !important;
    border: 1px solid var(--tsc-border) !important;
    border-top: 3px solid var(--tsc-green) !important;
    border-radius: 6px !important;
    padding: 20px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}

.front-page-button p {
    margin: 0 0 10px 0 !important;
}

.front-page-button .button,
.front-page-button a.button {
    display: block !important;
    background-color: var(--tsc-blue) !important;
    color: var(--tsc-white) !important;
    border: none !important;
    padding: 12px 10px !important;
    border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    transition: background-color 0.2s ease;
    box-sizing: border-box !important;
    width: 100% !important;
    font-weight: normal !important;
}

.front-page-button .button:hover,
.front-page-button a.button:hover {
    background-color: var(--tsc-orange) !important;
    color: var(--tsc-white) !important;
    text-decoration: none !important;
}

.front-page-button .green.button,
.front-page-button a.green.button {
    background-color: var(--tsc-green) !important;
}

.front-page-button .green.button:hover,
.front-page-button a.green.button:hover {
    background-color: #7aaa20 !important;
    color: var(--tsc-white) !important;
}
/* == END Sidebar == */

/* == START Thread Body == */
.thread-body {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--tsc-dark) !important;
}

.thread-body h1 {
    font-size: 22px !important;
    color: var(--tsc-dark) !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    font-weight: normal !important;
}

.thread-body h1::before,
.thread-body h1::after {
    content: "" !important;
    flex-grow: 1 !important;
    height: 1px !important;
    background-color: #d3d3d3 !important;
}
/* == END Thread Body == */

/* == START General Buttons == */
.button,
a.button,
input[type="submit"],
button[type="submit"] {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    font-weight: normal !important;
    cursor: pointer !important;
}
/* == END General Buttons == */

/* == START Forms == */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid var(--tsc-border) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px !important;
    color: var(--tsc-dark) !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--tsc-blue) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45,160,206,0.15) !important;
}

label {
    font-weight: bold !important;
    font-size: 13px !important;
    color: var(--tsc-dark) !important;
}
/* == END Forms == */

/* == START Alerts == */
.error_bar,
#msg_error {
    background: #fde8d8 !important;
    background-image: none !important;
    border: none !important;
    border-left: 4px solid var(--tsc-orange) !important;
    color: #7a3000 !important;
    padding: 12px 16px !important;
    height: auto !important;
    line-height: normal !important;
    margin-bottom: 16px !important;
    border-radius: 0 4px 4px 0 !important;
}

.warning_bar,
#msg_warning {
    background: #fff8d4 !important;
    background-image: none !important;
    border: none !important;
    border-left: 4px solid #e6b800 !important;
    color: #5a4500 !important;
    padding: 12px 16px !important;
    height: auto !important;
    line-height: normal !important;
    margin-bottom: 16px !important;
    border-radius: 0 4px 4px 0 !important;
}

.notice_bar,
#msg_notice {
    background: #d9eff9 !important;
    background-image: none !important;
    border: none !important;
    border-left: 4px solid var(--tsc-blue) !important;
    color: #0d5e82 !important;
    padding: 12px 16px !important;
    height: auto !important;
    line-height: normal !important;
    margin-bottom: 16px !important;
    border-radius: 0 4px 4px 0 !important;
}
/* == END Alerts == */

/* == START Footer == */
#footer {
    background-color: var(--tsc-footer-bg) !important;
    color: #aaaaaa !important;
    text-align: center !important;
    padding: 20px 24px !important;
    font-size: 12px !important;
    margin-top: 0 !important;
    border-top: 3px solid var(--tsc-blue) !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
}

#footer p {
    margin: 0 0 8px 0 !important;
    color: #aaaaaa !important;
    font-size: 12px !important;
}

#footer .footer-links {
    margin-bottom: 10px !important;
}

#footer .footer-links a {
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 12px !important;
    margin: 0 3px !important;
    transition: color 0.2s ease;
}

#footer .footer-links a:hover {
    color: var(--tsc-green) !important;
    text-decoration: none !important;
}

#footer .footer-links .sep {
    color: #666666 !important;
}

#footer a {
    color: #cccccc !important;
    text-decoration: none !important;
}

#footer a:hover {
    color: var(--tsc-green) !important;
}

#poweredBy {
    display: none !important;
}
/* == END Footer == */

/* == START Featured Knowledge Base == */
.featured-category.front-page {
    background-color: var(--tsc-white);
    border: 1px solid var(--tsc-border);
    border-top: 3px solid var(--tsc-blue);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.featured-category .category-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--tsc-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-category .icon-folder-open {
    color: var(--tsc-green);
}

.featured-category .article-headline {
    padding: 6px 0;
    border-bottom: 1px solid var(--tsc-border);
}

.featured-category .article-headline:last-child {
    border-bottom: none;
}

.featured-category .article-title a {
    color: var(--tsc-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.featured-category .article-title a:hover {
    color: var(--tsc-orange);
}

.featured-category .article-teaser {
    font-size: 13px;
    color: #888888;
    margin-top: 2px;
}
/* == END Featured Knowledge Base == */

/* == START Responsive == */
@media screen and (max-width: 768px) {
    #header {
        padding: 12px 20px !important;
        justify-content: center !important;
    }

    #header::before {
        display: none !important;
    }

    #header .pull-right {
        display: none !important;
    }

    ul#nav {
        flex-direction: column !important;
    }

    ul#nav li {
        width: 100% !important;
    }

    ul#nav li.nav-signin {
        margin-left: 0 !important;
    }

    ul#nav li a {
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    #content {
        padding: 16px !important;
    }

    #landing_page {
        flex-direction: column !important;
        gap: 16px !important;
    }

    #landing_page .sidebar {
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    #landing_page .main-content {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    #header #logo img {
        max-height: 50px !important;
    }
}
/* == END Responsive == */
