/* Sanguine Works header: title, main tabs, product tabs.
   Shared by the Sanguine pages and every product site under them.
   Everything is set explicitly so a product's own styles.css can't change it. */

/* ============================================================
   HEADER CONTROLS - the same on every page
   --sw-title-y    space from the top of the page to the sanguine.works title
   --sw-gap-1      space from the title to Software / Hardware
   --sw-gap-2      space from Software / Hardware to the product row
   --sw-header-h   total height of the header band
   --sw-title-size font size of the sanguine.works title
   --sw-tab-size   font size of the two tab rows
   --sw-band-color background of the header band
   ============================================================ */
:root {
    --sw-tab-size: 16px;
    --sw-band-color: #DCD9D5;
    --sw-title-size: 40px;
    --sw-title-y: 5px;
    --sw-gap-1: 10px;
    --sw-gap-2: 10px;
    --sw-header-h: 120px;
}

.sw-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #2B2B2B;
    -webkit-font-smoothing: antialiased;
}

.sw-title a {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: var(--sw-title-size);
    line-height: 1.2;
    white-space: nowrap;
    color: #2B2B2B;
    text-decoration: none;
}

.sw-tabs {
    margin-top: var(--sw-gap-1);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sw-tabs a {
    text-decoration: none;
    color: #2B2B2B;
    font-size: var(--sw-tab-size);
    line-height: 1.25;
}

.sw-tabs a.inactive {
    color: #aaa;
}

.sw-tabs a:hover {
    color: #666;
}

/* Product row under Software / Hardware.
   It is always there (empty on pages with nothing selected) so the header is the same height on every page. */
.sw-sub {
    margin-top: var(--sw-gap-2);
    min-height: calc(var(--sw-tab-size) * 1.25);
}

/* Band that holds the header on every page. */
.sw-top {
    width: 100%;
    height: var(--sw-header-h);
    box-sizing: border-box;
    align-self: stretch;
    background: var(--sw-band-color);
    padding: var(--sw-title-y) 40px 0;
}

/* No visible scrollbar anywhere, so the centered header never shifts sideways between pages */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}
html::-webkit-scrollbar {
    display: none;
}

/* Sanguine footer: the same on every page.
   A product site only changes the colours, through
   --sw-footer-color (text), --sw-footer-bg (background) and --sw-footer-line (top line). */
.sw-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 48px 0;
    border-top: 1px solid var(--sw-footer-line, var(--sw-footer-color, #000));
    background: var(--sw-footer-bg, transparent);
    color: var(--sw-footer-color, #000);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.2;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.sw-footer .sw-col {
    display: flex;
    flex-direction: column;
}

.sw-footer a {
    color: var(--sw-footer-color, #000);
    text-decoration: none;
}

.sw-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .sw-footer {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}
