@font-face {
    font-family: "tablica";
    src: url("../fonts/tablica-1JmynVI.woff2") format("woff2");
    font-display: swap;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fafafa;
    scroll-margin-top: 80px;
}

main {
    flex-grow: 1;
}

.plate {
    width: fit-content;
    margin: auto;
    border: 5px solid #000;
    border-radius: 15px;
}

.plate .plate-inner {
    background: #fff url("../images/plate-Uwg4Njm.svg") no-repeat left/contain;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #333;
    font-family: "tablica";
    text-transform: uppercase;
    box-sizing: border-box;
}

.plate .plate-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-left: 10px;
    margin-right: 10px;
    height: 100%;
}

.plate .plate-text {
    text-align: center;
    border: none;
    background: transparent;
    color: inherit;
    outline: none;
    font-family: inherit;
    padding: 0;
}

.plate .plate-select {
    position: relative;
    cursor: pointer;
    text-align: center;
    user-select: none;
    outline: none;
    line-height: normal;
}

.plate .plate-select:focus-visible {
    outline: 2px solid #0d4397;
    outline-offset: 2px;
}

.plate .plate-select .options {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    font-size: 30px;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #333;
    border-radius: 5px;
    z-index: 1;
}

.plate .plate-select.active .options {
    display: block;
}

.plate .plate-select .option {
    padding: 4px 8px;
}

.plate .plate-select .option:hover {
    background: #eee;
    border-radius: 3px;
}

.plate .plate-sticker {
    background-color: #eaeaea;
    border-radius: 3px;
}

.plate.plate-error {
    animation: plate-error 2s ease;
}

.plate.plate-success {
    animation: plate-success 2s ease;
}

@keyframes plate-error {
    0%,
    50% {
        color: red;
    }
    100% {
        color: inherit;
    }
}

@keyframes plate-success {
    0%,
    50% {
        color: green;
    }
    100% {
        color: inherit;
    }
}

.plate-lg {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plate-lg .plate-inner {
    width: 500px;
    height: 110px;
    padding-left: 50px;
    font-size: 90px;
}

.plate-lg .plate-text {
    width: 300px;
    font-size: 90px;
}

.plate-lg .plate-select {
    width: 55px;
}

.plate-lg .plate-select .options {
    min-width: 45px;
    margin-top: -15px;
}

.plate-lg .plate-sticker {
    width: 15px;
    height: 25px;
    margin: 5px;
}

.plate-sm {
    border-width: 2px;
    border-radius: 6px;
}

.plate-sm .plate-inner {
    width: 200px;
    height: 44px;
    padding-left: 20px;
    font-size: 32px;
    border-width: 1px;
    border-radius: 4px;
}

.plate-sm .plate-text {
    width: 150px;
    font-size: 32px;
}

.plate-sm .plate-select {
    width: 30px;
}

.plate-sm .plate-select .options {
    min-width: 35px;
    margin-top: -15px;
}

.plate-sm .plate-sticker {
    width: 8px;
    height: 12px;
    margin: 5px;
    border-radius: 2px;
}

.news-content {
    line-height: 1.75;
}

.news-content p {
    margin-top: 0;
    margin-bottom: 1em;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.news-content ul,
.news-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.news-content li {
    margin-bottom: 0.25em;
}

.news-content blockquote {
    border-left: 4px solid #0d4397;
    padding-left: 1em;
    margin-left: 0;
    color: #555;
    font-style: italic;
}

.news-content pre {
    background: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

.news-content a {
    color: #0d4397;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.btn-primary {
    background-image: linear-gradient(135deg, #1455b8, #0d4397);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-image: linear-gradient(135deg, #0d4397, #092e6b);
    border-color: transparent;
}

.btn:focus-visible {
    outline: 2px solid #0d4397;
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #0d4397;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Cookie consent accessibility */
[role="alertdialog"],
[role="dialog"],
.cookieconsent {
    outline: 2px solid transparent;
}

[role="alertdialog"]:focus-visible,
[role="dialog"]:focus-visible,
.cookieconsent:focus-visible {
    outline: 2px solid #0d4397;
    outline-offset: 2px;
}

[role="alertdialog"] button:focus-visible,
[role="dialog"] button:focus-visible,
.cookieconsent button:focus-visible {
    outline: 2px solid #0d4397;
    outline-offset: 2px;
}

main .card {
    transition:
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

main .card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .plate-lg {
        border-width: 3px;
        border-radius: 10px;
    }

    .plate-lg .plate-inner {
        width: 270px;
        height: 60px;
        padding-left: 25px;
        font-size: 45px;
        border-width: 1px;
        border-radius: 6px;
    }

    .plate-lg .plate-text {
        width: 150px;
        font-size: 45px;
    }

    .plate-lg .plate-select {
        width: 30px;
    }

    .plate-lg .plate-select .options {
        min-width: 35px;
        margin-top: -5px;
    }

    .plate-lg .plate-sticker {
        width: 10px;
        height: 15px;
        margin: 5px;
        border-radius: 2px;
    }
}
