/**
 * The Hub families see -- the shared look.
 *
 * The admin redesign declares its tokens on `body.ptk-hub-look`, which only
 * exists when a site has turned the new look on and only inside wp-admin.
 * The public pages are not behind that setting and never should be, so the
 * same eleven tokens are declared here on the four public wrappers instead.
 *
 * This file carries the tokens, the fonts and the handful of parts every
 * public surface shares. Each surface's own stylesheet (search-page.css,
 * single.css, glossary-page.css, vendor-directory.css) builds on it and
 * declares no color of its own.
 *
 * No one-sided borders. Nothing here uses border-left or border-right as an
 * accent bar. Emphasis is a full background fill, a full four-sided border,
 * spacing, a stamp, or type weight.
 *
 * Every selector is scoped to a .ptk-* wrapper so this can never touch the
 * school's own theme, and the theme can never reach in.
 */

@font-face {
    font-family: 'Literata';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(../fonts/Literata-Variable.woff2) format('woff2');
}

@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/Karla-Variable.woff2) format('woff2');
}

.ptk-search-wrap,
.ptk-single-wrap,
.ptk-glossary-wrap,
.ptk-vendors-wrap,
.ptk-suggest-form-wrap {
    --ptk-bg: #F8F9F7;
    --ptk-surface: #FFFFFF;
    --ptk-primary: #356F8A;
    --ptk-primary-soft: #E7F1F5;
    --ptk-text: #243039;
    --ptk-text-dim: #68747C;
    --ptk-success: #477E5F;
    --ptk-warning: #BD8437;
    --ptk-warning-ink: #96692B;
    --ptk-error: #B15858;
    --ptk-line: #E2E6E4;

    --ptk-font-serif: 'Literata', Georgia, serif;
    --ptk-font-sans: 'Karla', system-ui, -apple-system, sans-serif;

    --ptk-radius-card: 12px;
    --ptk-radius-field: 9px;
    --ptk-radius-stamp: 4px;

    --ptk-space-1: 8px;
    --ptk-space-2: 12px;
    --ptk-space-3: 16px;
    --ptk-space-4: 22px;
    --ptk-space-5: 28px;

    font-family: var(--ptk-font-sans);
    color: var(--ptk-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* The one stamp a public screen is allowed. */

.ptk-search-wrap .ptk-stamp,
.ptk-single-wrap .ptk-stamp,
.ptk-glossary-wrap .ptk-stamp,
.ptk-vendors-wrap .ptk-stamp {
    display: inline-block;
    font: 700 10.5px/1 var(--ptk-font-sans);
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--ptk-primary);
    border-radius: var(--ptk-radius-stamp);
    padding: 5px 8px;
    white-space: nowrap;
}

/* The one action on a screen. Everything else is quiet. */

.ptk-search-wrap .ptk-action,
.ptk-single-wrap .ptk-action,
.ptk-glossary-wrap .ptk-action,
.ptk-vendors-wrap .ptk-action {
    display: inline-block;
    background: var(--ptk-primary);
    color: #FFFFFF;
    text-decoration: none;
    font: 600 14.5px/1 var(--ptk-font-sans);
    border: 1px solid var(--ptk-primary);
    border-radius: var(--ptk-radius-field);
    padding: 12px 18px;
    cursor: pointer;
}

.ptk-search-wrap .ptk-action:hover,
.ptk-single-wrap .ptk-action:hover,
.ptk-glossary-wrap .ptk-action:hover,
.ptk-vendors-wrap .ptk-action:hover {
    background: #2C5E75;
    border-color: #2C5E75;
    color: #FFFFFF;
}

.ptk-search-wrap .ptk-action:focus-visible,
.ptk-single-wrap .ptk-action:focus-visible,
.ptk-glossary-wrap .ptk-action:focus-visible,
.ptk-vendors-wrap .ptk-action:focus-visible {
    outline: 2px solid var(--ptk-primary);
    outline-offset: 2px;
}

/* A quiet link that sits beside the one action. */

.ptk-search-wrap .ptk-quiet,
.ptk-single-wrap .ptk-quiet,
.ptk-glossary-wrap .ptk-quiet,
.ptk-vendors-wrap .ptk-quiet {
    font: 500 14px/1 var(--ptk-font-sans);
    color: var(--ptk-primary);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.ptk-search-wrap .ptk-quiet:hover,
.ptk-single-wrap .ptk-quiet:hover,
.ptk-glossary-wrap .ptk-quiet:hover,
.ptk-vendors-wrap .ptk-quiet:hover {
    text-decoration: underline;
}
