﻿@import url("./lingage-palette.css");

body.website-body:has(> main.website-concept) {
    background: var(--white);
}

/* Opt-in page structure. Each website keeps its own colors and typography. */
body.website-body {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.website-body > .website-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px max(20px, calc((100% - 1280px) / 2));
    background: inherit;
    font-family: system-ui, sans-serif;
}

.website-header .website-brand {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

    .website-header .website-brand strong {
        display: block;
        overflow-wrap: anywhere;
    }

.website-body > main,
.website-body > .reference-layout {
    flex: 1 0 auto;
}

    .website-body > main.website-concept {
        display: block;
        width: 100%;
        max-width: 1344px;
        min-height: 0;
        margin: 0 auto;
        padding: 0 32px;
    }

    .website-body > main.website-landing {
        min-height: 0;
    }

.website-body > .website-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    padding: 20px 32px;
    border-top: 1px solid var(--gray-dd);
    font: 14px/1.6 system-ui, sans-serif;
}

.website-body .contents {
    top: 100px;
}

.website-body .reference-layout section,
.website-body > main > section {
    scroll-margin-top: 110px;
}

.concept-search {
    display: flex;
    align-items: center;
    flex: 0 1 280px;
    width: 280px;
    max-width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    border: 1px solid var(--gray-dd);
    border-radius: 18px;
    background: var(--gray-ee);
    color: var(--gray-30);
    font: 14px/1.4 system-ui, sans-serif;
}

    .concept-search:focus-within {
        outline: 2px solid var(--very-dark-blue);
        outline-offset: 2px;
    }

    .concept-search input {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0;
        padding: 0 12px;
        border: 0;
        border-radius: inherit;
        outline: none;
        background: transparent;
        color: inherit;
        font: inherit;
    }

        .concept-search input::placeholder {
            color: var(--gray-48);
            opacity: 1;
        }

    .concept-search button {
        display: grid;
        place-items: center;
        flex: 0 0 34px;
        width: 34px;
        height: 32px;
        margin: 0 1px 0 0;
        padding: 7px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--soft-blue);
        cursor: pointer;
    }

        .concept-search button:hover {
            background: var(--gray-dd);
        }

        .concept-search button:focus-visible {
            outline: 2px solid var(--very-dark-blue);
        }

    .concept-search svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

@media (max-width: 560px) {
    .website-body > main.website-concept {
        padding: 0 20px;
    }

    .website-body > .website-footer {
        padding: 20px;
    }

    .website-body .reference-layout section,
    .website-body > main > section {
        scroll-margin-top: 160px;
    }
}
