/* ---------------------------------------------------------
   0. FONTS
--------------------------------------------------------- */
@font-face {
    font-family: "PT Sans Narrow";
    src: url("/static/fonts/PTSansNarrow-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans Narrow";
    src: url("/static/fonts/PTSansNarrow-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------
   1. TOKENS
--------------------------------------------------------- */

:root {
    --page-width: 1200px;
    --page-min-width: 980px;
    --cb-red: #b13535;
    --cb-yellow: #ecc52e;
    --cb-blue: #898dab;
    --cb-blue-vivid: #848abd;
    --cb-orange: #b57b2f;
    --cb-rose: #b193a8;
    --cb-teal: #95a196;
    --cb-green: #749186;
    --cb-green-vivid: #93ad96;
    --cb-gray: #707070;
}

/* ---------------------------------------------------------
   2. BASE / PAPER
--------------------------------------------------------- */

body {
    margin: 0;
    background-image: url("/static/images/siteassets/paper1_1260.jpg");
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 1260px auto;
}

.page-shell {
    width: var(--page-width);
    min-width: var(--page-min-width);
    margin: 0 auto;
}

/* ---------------------------------------------------------
   3. TYPOGRAPHY ROLES
--------------------------------------------------------- */

.type-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.type-body {
    font-family: "American Typewriter", serif;
    font-weight: 400;
}

.type-ui {
    font-family: "PT Sans Narrow", sans-serif;
}

/* ---------------------------------------------------------
   3A. LOGOTYPE SYSTEM
--------------------------------------------------------- */

.logotype {
    display: block;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.logotype-auth {
    font-size: 48px;
    color: #fff;
    mix-blend-mode: screen;
    margin: 0 0 9px 0;
    flex: 0 0 auto;
}

.logotype-register {
    font-size: 30pt;
    color: inherit;
    margin: 0 0 4px 0;
}

@media (min-width: 768px) {
    .logotype-register {
        font-size: 34pt;
    }
}

/* ---------------------------------------------------------
   4. COLORBOX SYSTEM
--------------------------------------------------------- */

.colorbox {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    mix-blend-mode: multiply;
    background-color: var(--cb-color);
}

.cb-red {
    --cb-color: var(--cb-red);
}

.cb-yellow {
    --cb-color: var(--cb-yellow);
}

.cb-blue {
    --cb-color: var(--cb-blue);
}

.cb-rose {
    --cb-color: var(--cb-rose);
}

.cb-teal {
    --cb-color: var(--cb-teal);
}

.cb-green {
    --cb-color: var(--cb-green);
}

.cb-gray {
    --cb-color: var(--cb-gray);
}

/* ---------------------------------------------------------
   5. MEDIA SYSTEM
--------------------------------------------------------- */

.media {
    display: block;
    mix-blend-mode: hard-light;
    border-radius: 15px;
}

/* ---------------------------------------------------------
   6. BUTTON SYSTEM
--------------------------------------------------------- */

.btn {
    border: 0;
    background: transparent;
    padding: 8px 18px;

    font-family: "PT Sans Narrow", sans-serif;
    text-transform: uppercase;
    text-align: center;

    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: rgba(236, 197, 46, 0.65);
    mix-blend-mode: multiply;
}

.btn:active {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

/* ---------------------------------------------------------
   7. FORM BASE
--------------------------------------------------------- */

.field-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 18px;
}

.field-wrap::before,
.field-wrap::after {
    content: none !important;
    display: none !important;
}

.field-input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    order: 1;
    height: 42px;
    border: 0;
    border-bottom: 1px solid #000 !important;
    outline: 0;
    background: transparent;

    font-family: "American Typewriter", serif;
    font-size: 20px;
    text-align: center;
    color: #000;
    caret-color: #000;
}

.field-input:hover,
.field-input:focus {
    background-color: rgba(236, 197, 46, 0.5);
    mix-blend-mode: multiply;
}

.field-label {
    display: block;
    order: 2;
    margin-top: 4px;

    font-family: "PT Sans Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: lowercase;
    text-align: center;
    color: #000;
}

/* ---------------------------------------------------------
   8. AUTH / PUBLIC ENTRY PAGES
--------------------------------------------------------- */

.auth-paper-page,
.login-paper-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 100px;
    padding-bottom: 80px;
}

.auth-paper-inner,
.login-paper-inner {
    width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand-card,
.login-mark {
    width: 520px;
    height: 420px;
    border-radius: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 0;
}

.auth-brand-card .auth-symbol,
.login-mark .login-symbol {
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
    display: block;
    filter: invert(1);
    mix-blend-mode: screen;
    margin: 0 0 23px 0;
    flex: 0 0 auto;
}

.auth-brand-title,
.login-brand-title {
    display: block;
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    mix-blend-mode: screen;
    text-align: center;
    margin: 0 0 9px 0;
    flex: 0 0 auto;
}

.auth-brand-tagline,
.login-brand-tagline {
    display: block;
    font-family: "American Typewriter", serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    color: #000;
    text-align: center;
    flex: 0 0 auto;
}

.auth-form,
.login-form {
    width: 420px;
    margin-top: 67px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 29px;
}

.auth-field,
.login-field {
    width: 420px;
    display: block;
    padding-bottom: 13px;
}

.auth-field-placeholder,
.login-field-placeholder {
    opacity: 0.3;
    pointer-events: none;
}

.auth-input,
.login-input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 42px;
    border: 0 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    padding: 0 8px;
    margin: 0;

    font-family: "American Typewriter", serif;
    font-size: 20px;
    line-height: 42px;
    text-align: center;
    color: #000;
    caret-color: #000;
}

.auth-input:hover,
.auth-input:focus,
.login-input:hover,
.login-input:focus {
    background-color: rgba(236, 197, 46, 0.5) !important;
    mix-blend-mode: multiply;
}

.auth-input::selection,
.login-input::selection {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active,
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-label,
.login-label {
    display: block;
    margin-top: 4px;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    text-align: center;
    color: #000;
}

.auth-alert-slot,
.login-alert-slot {
    width: 420px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-error,
.login-error {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1;
    color: #8d2929;
    mix-blend-mode: multiply;
    text-align: center;
    background: none;
    padding: 0;
}

.auth-error-marks,
.login-error-marks {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 20px;
    line-height: 1;
    position: relative;
    top: 1px;
}

.auth-error-message,
.login-error-message {
    font-family: "PT Sans Narrow", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-actions,
.login-actions {
    position: relative;
    width: 420px;
    height: 42px;
    margin-top: 3px;
}

.auth-action,
.login-secondary-link,
.login-submit,
.login-apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    line-height: 1;

    font-family: "PT Sans Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.auth-action-secondary,
.login-secondary-link {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.auth-action-primary,
.login-submit {
    position: absolute;
    top: 0;
    right: 0;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-apply-link,
.login-apply-link {
    margin-top: 79px;
    text-align: center;
}

.auth-action:hover,
.auth-action:focus-visible,
.login-secondary-link:hover,
.login-secondary-link:focus-visible,
.login-submit:hover,
.login-submit:focus-visible,
.login-apply-link:hover,
.login-apply-link:focus-visible {
    background: rgba(236, 197, 46, 0.65);
    mix-blend-mode: multiply;
    outline: 0;
}

.auth-action[aria-disabled="true"],
.auth-action-disabled,
.login-apply-link[aria-hidden="true"] {
    opacity: 0.3;
    pointer-events: none;
}

/* ---------------------------------------------------------
   9. REGISTER / WELCOME PAGE HELPERS
--------------------------------------------------------- */

.register-welcome-card {
    background-color: var(--cb-yellow);
    mix-blend-mode: multiply;
}

.register-logo-mark {
    opacity: 0.85;
    mix-blend-mode: multiply;
}


/* ---------------------------------------------------------
   10. SITE HEADER (GLOBAL / LOGGED-IN)
--------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 80px;
    z-index: 1000;
    pointer-events: none;
}

.site-header-inner {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 80px;
    box-sizing: border-box;
    pointer-events: auto;
}

.site-header-brand {
    position: absolute;
    left: 32px;
    top: 5px;
    z-index: 2;
    min-width: 0;
}

.site-header .logotype-header,
.site-header .site-title-font.logotype-header,
.site-header .logotype.logotype-header {
    display: inline-block;
    padding: 0;
    margin: 0 !important;
    font-size: 33px !important;
    line-height: 1 !important;
    text-align: left !important;
    color: #000 !important;
    opacity: 0.85;
    mix-blend-mode: multiply;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.site-header .site-header-tagline {
    position: fixed !important;
    left: 50vw !important;
    top: 48px !important;
    transform: translateX(-50%) !important;
    display: block !important;
    font-family: "American Typewriter", serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.62);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.site-header .site-header-tagline-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
    pointer-events: auto;
}

.site-header .site-header-tagline-link:hover,
.site-header .site-header-tagline-link:focus-visible {
    text-decoration: underline;
    outline: 0;
}

.site-header-actions {
    position: absolute;
    right: 32px;
    top: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-search-button,
.site-menu-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    mix-blend-mode: multiply;
}

.site-search-button {
    width: 40px;
    height: 40px;
    padding: 6px;
    box-sizing: content-box;
}

.site-search-button img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.site-menu-button {
    width: 48px;
    height: 48px;
    padding: 6px;
    box-sizing: content-box;
}

.site-menu-button img {
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
}

.site-header .logotype-header:hover,
.site-header .site-search-button:hover,
.site-header .site-menu-button:hover {
    background: rgba(236, 197, 46, 0.65);
    mix-blend-mode: multiply;
}

/* ---------------------------------------------------------
   11. SITE MENU PANEL
--------------------------------------------------------- */

.site-menu-panel {
    position: fixed;
    top: 74px;
    right: 32px;
    z-index: 1200;
    min-width: 245px;
    box-sizing: border-box;
    padding: 18px 0;

    background-image: url("/static/images/siteassets/paper1_1260.jpg");
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 1260px auto;
    border: 1px solid rgba(0, 0, 0, 0.18);

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
}

.site-menu-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-menu-group {
    padding: 0 0 12px 0;
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.site-menu-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-menu-heading {
    display: block;
    padding: 0 20px 9px 20px;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(0, 0, 0, 0.65);
}

.site-menu-item {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 8px 20px;

    font-family: "American Typewriter", serif;
    font-size: 15px;
    line-height: 1.2;
    color: #000;
    text-decoration: none;
}

.site-menu-item:hover,
.site-menu-item:focus-visible {
    background: rgba(236, 197, 46, 0.65);
    mix-blend-mode: multiply;
    outline: 0;
}

.site-menu-item:active {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.site-menu-item-muted {
    color: rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------
   12. GLOBAL HEADER NARROW STATES
--------------------------------------------------------- */

@media (max-width: 940px) {
    .site-header-brand {
        left: 14px;
        top: 5px;
    }

    .site-header .logotype-header,
    .site-header .site-title-font.logotype-header,
    .site-header .logotype.logotype-header {
        font-size: 31px !important;
    }

    .site-header .site-header-tagline {
        display: none !important;
    }

    .site-header-actions {
        right: 14px;
        top: 17px;
        gap: 10px;
    }

    .site-menu-panel {
        right: 14px;
    }
}

@media (max-width: 700px) {
    .site-header-brand {
        left: 0px;
        top: 4px;
    }

    .site-header .logotype-header,
    .site-header .site-title-font.logotype-header,
    .site-header .logotype.logotype-header {
        font-size: 29px !important;
    }

    .site-header-actions {
        right: 3px;
        top: 18px;
        gap: 8px;
    }

    .site-search-button {
        width: 34px;
        height: 34px;
        padding: 5px;
    }

    .site-search-button img {
        width: 24px;
        height: 24px;
    }

    .site-menu-button {
        width: 42px;
        height: 42px;
        padding: 5px;
    }

    .site-menu-button img {
        width: 42px !important;
        height: 42px !important;
    }

    .site-menu-panel {
        right: 3px;
        top: 70px;
    }
}
