@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --retro-blue: #0766C3;
    --retro-blue-dark: #054A8E;
    --retro-blue-light: #3A8FE6;
    --retro-gold: #FDDB43;

    --retro-text: #0B1F36;
    --retro-muted: rgba(11, 31, 54, 0.55);
    --retro-border: rgba(11, 31, 54, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html, body {
    margin: 0;
    background-color: var(--retro-blue);
    width: 100%;
    display: flex;
    flex-direction: column;
}

label {
    text-align: left;
}

h2 {
    margin: 1.5rem 0 .75rem;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    margin: 1.25rem 0 .5rem;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

h2, h3 {
    color: var(--retro-blue-dark);
}

.divider {
    width: 25%;
    border-bottom: 0.125rem solid var(--retro-blue);
    margin-bottom: 0.35rem;
}

.pages-wrapper {
    padding: 1rem 24rem 5rem 24rem;
    background-color: white;
}

p {
    margin: 0 0 1rem;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

p a {
    color: var(--retro-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.toggler {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    height: 36px;
    padding: 0 14px;
    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;
    line-height: 1;

    cursor: pointer;
    user-select: none;
    text-decoration: none;

    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.toggler svg,
.toggler img {
    width: 16px;
    height: 16px;
}

.toggler::before {
    content: "🔎";
    font-size: 14px;
    line-height: 1;
    transform: translateY(1px);
}

.search-form, search-form2 {
    display: none;
    margin: 0 0 10px 0;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
}

.message, .red {
    margin: 16px 0 22px;
    padding: 14px 18px;

    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;

    color: #0f172a;
    background: linear-gradient(
            180deg,
            #eef2ff,
            #e0e7ff
    );

    border: 1px solid #c7d2fe;
    border-left: 6px solid #2563eb;
    border-radius: 10px;

    box-shadow: 0 4px 14px rgba(37, 99, 235, .18),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

.red {
    color: #7f1d1d;
    background: linear-gradient(
            180deg,
            #fff1f2,
            #ffe4e6
    );

    border-color: #fecaca;
    border-left-color: #dc2626;

    box-shadow: 0 4px 16px rgba(220, 38, 38, .28),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}

.message a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

.red a {
    color: #b91c1c;
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.message {
    animation: message-pop .18s ease-out;
}

.pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 10px;
    font-size: 14px;
}

.pages {
    color: transparent;
}

.pages a {
    color: #1e293b;
}

.page-num,
.page-next,
.page-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;

    font-weight: 500;
    text-decoration: none;
    cursor: pointer;

    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.page-num:hover,
.page-next:hover,
.page-prev:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.current-page {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    cursor: default;
}

.page-next, .page-prev {
    padding: 0 16px;
    font-weight: 600;
}

.current-page:hover {
    background-color: #2563eb;
}

.jump-to-page {
    display: none;
}
