/* Public CoS CHECK page — scoped; does not affect /admin */

html:has(.cos-site),
html:has(.cos-site) body {
    background: #f3f2f1 !important;
    background-image: none !important;
    color: #0b0c0c !important;
    color-scheme: light !important;
    font-family: Arial, Helvetica, "Helvetica Neue", sans-serif !important;
}

.cos-site {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f3f2f1;
    color: #0b0c0c;
    font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.cos-site a {
    color: #1d70b8;
    text-decoration: underline;
}

.cos-site a:hover {
    color: #003078;
}

.cos-header {
    background: #0b0c0c;
    color: #fff;
    border-bottom: 4px solid #1d70b8;
}

.cos-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cos-crown {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.cos-brand {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    flex: 1;
}

.cos-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.cos-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 26px;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
}

.cos-lang-btn.is-active {
    border-color: #fff;
}

.cos-lang-btn:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 1px;
}

.cos-lang-btn svg {
    width: 28px;
    height: 18px;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cos-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1.25rem 3rem;
}

.cos-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border: 1px solid #b1b4b6;
    padding: 2rem 2rem 2.25rem;
}

.cos-card h1 {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0b0c0c;
    font-family: Arial, Helvetica, sans-serif;
}

.cos-card p {
    margin: 0 0 1rem;
    color: #0b0c0c;
    font-size: 1.05rem;
}

.cos-divider {
    border: 0;
    border-top: 1px solid #b1b4b6;
    margin: 1.75rem 0 1.5rem;
}

.cos-card h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b0c0c;
    font-family: Arial, Helvetica, sans-serif;
}

.cos-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #0b0c0c;
}

.cos-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: #0b0c0c;
    background: #fff;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    outline: none;
}

.cos-input:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px #0b0c0c;
}

.cos-input::placeholder {
    color: #505a5f;
    font-style: italic;
}

.cos-btn {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.55rem 1.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff !important;
    background: #1d70b8;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 0 #003078;
}

.cos-btn:hover {
    background: #003078;
}

.cos-btn:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
}

.cos-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cos-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 5px solid #1d70b8;
    background: #f3f2f1;
    color: #0b0c0c;
}

.cos-alert-error {
    border-left-color: #d4351c;
    background: #f6d7d2;
}

.cos-alert-ok {
    border-left-color: #00703c;
    background: #cce2d8;
}

.cos-alert-pending {
    border-left-color: #f47738;
    background: #fef3e8;
}

.cos-alert p {
    margin: 0 0 0.4rem;
}

.cos-alert p:last-child {
    margin-bottom: 0;
}

.cos-footer {
    background: #f3f2f1;
    border-top: 4px solid #1d70b8;
    padding: 1.75rem 1.25rem 2rem;
    text-align: center;
}

.cos-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.cos-footer-links a {
    color: #1d70b8;
    font-size: 0.95rem;
}

.cos-footer-copy {
    margin: 0;
    font-size: 0.9rem;
    color: #0b0c0c;
    line-height: 1.55;
}

.cos-footer-copy + .cos-footer-copy {
    margin-top: 0.35rem;
}

@media (max-width: 640px) {
    .cos-card {
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .cos-card h1 {
        font-size: 1.55rem;
    }

    .cos-main {
        padding: 1.5rem 0.85rem 2rem;
    }

    .cos-brand {
        font-size: 1.1rem;
    }
}
