@font-face {
    font-family: 'Lato';
    src: url('../fonts/LatoLatin-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'Lato';
    src: url('../fonts/LatoLatin-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --escr-red: #950b25;
    --escr-blue: #004564;

    --escr-ct: var(--escr-red);
    --escr-mr: var(--escr-blue);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.invalid-field label,
.invalid-field > span:first-child {
    color: #dc2626 !important;
}

@keyframes escr-exclusion-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
    60%  { box-shadow: 0 0 0 7px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

@keyframes escr-exclusion-label {
    0%, 60% { color: #b45309; }
    100%    { color: inherit; }
}

@keyframes escr-exclusion-hint {
    0%        { opacity: 0; transform: translateY(-3px); }
    10%, 78%  { opacity: 1; transform: translateY(0); }
    100%      { opacity: 0; transform: translateY(-3px); }
}

[data-exclusion-hint] {
    position: relative;
}

[data-exclusion-hint] input[type="checkbox"],
[data-exclusion-hint] input[type="radio"] {
    border-radius: 0.25rem;
    animation: escr-exclusion-pulse 0.5s ease-out 2;
}

[data-exclusion-hint] label > div > span:first-child {
    animation: escr-exclusion-label 1s ease-out;
}

[data-exclusion-hint]::after {
    content: attr(data-exclusion-hint);
    position: absolute;
    top: -0.25rem;
    right: 0;
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
    padding: 0.125rem 0.625rem;
    border: 1px solid #fcd34d;
    border-radius: 9999px;
    background-color: #fffbeb;
    color: #92400e;
    font-size: 0.75rem;
    line-height: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: escr-exclusion-hint 3.5s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    [data-exclusion-hint] input[type="checkbox"],
    [data-exclusion-hint] input[type="radio"],
    [data-exclusion-hint] label > div > span:first-child {
        animation: none;
    }
    [data-exclusion-hint]::after {
        animation: escr-exclusion-hint 3.5s step-end forwards;
    }
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
}

.escr-hero-bg {
    background-color: #f3f4f6;
    background-image: url('/images/heart-watermark.png');
    background-image: -webkit-image-set(
        url('/images/heart-watermark.webp') type('image/webp'),
        url('/images/heart-watermark.png') type('image/png'));
    background-image: image-set(
        url('/images/heart-watermark.webp') type('image/webp'),
        url('/images/heart-watermark.png') type('image/png'));
    background-repeat: no-repeat;
    background-position: right 40px top 80px;
    background-size: auto min(85%, 760px);
    background-attachment: scroll;
}

.escr-footer {
    margin-top: auto;
}

@media (max-width: 768px) {
    .escr-hero-bg {
        background-position: right -120px top 120px;
        background-size: auto 70%;
    }
}


mark.escr-search-mark {
    background: #fde68a;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.escr-search-hit {
    background: #fffbeb;
    border-radius: 4px;
    outline: 2px solid #fcd34d;
    outline-offset: 2px;
}

.escr-search-dim {
    opacity: 0.38;
}

.escr-search-revealed {
    position: relative;
}

.escr-search-revealed::before {
    content: "opened by search — not selected";
    position: absolute;
    top: -0.5625rem;
    right: 0;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    padding: 0.125rem 0.4375rem;
    font-size: 0.625rem;
    line-height: 1;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 9999px;
}

[data-needs-answer] {
    position: relative;
}

[data-needs-answer]::after {
    content: attr(data-needs-answer);
    position: absolute;
    top: -0.25rem;
    right: 0;
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 9999px;
}

@keyframes escr-auto-ticked {
    from { background: #fde68a; }
    to   { background: transparent; }
}

[data-auto-ticked] {
    border-radius: 0.25rem;
    animation: escr-auto-ticked 1.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    [data-auto-ticked] {
        animation: none;
    }
}
