:root {
    color-scheme: light;
    --blue: #2563eb;
    --navy: #102a56;
    --text: #526580;
}

.test-button-row { margin-top: 16px; }
.test-button {
    padding: 8px 16px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: #fff;
    color: #1749a3;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.test-button:hover { background: #dcedff; }
.test-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

[hidden] { display: none !important; }
.consent-banner {
    position: fixed; right: 24px; bottom: 24px; z-index: 1000;
    width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
    overflow-y: auto; padding: 24px; border: 1px solid #e1e5eb;
    border-radius: 12px; background: #fff; color: #374151;
    box-shadow: 0 8px 40px #102a5630; font-size: 14px; line-height: 1.6;
}
.consent-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.consent-heading > span { font-size: 26px; }
.consent-heading h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.consent-heading h2::before { display: none; }
.consent-banner p { margin-bottom: 14px; }
.consent-banner summary { cursor: pointer; color: #1749a3; padding: 10px 0; font-weight: 600; }
.consent-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e5e7eb; }
.consent-category p, .consent-help { display: block; font-size: 12px; margin: 4px 0 0; color: #526580; }
.consent-required { flex-shrink: 0; color: #176844; font-size: 12px; }
.consent-category input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #2563eb; cursor: pointer; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-actions button { flex: 1 1 110px; padding: 12px 10px; border: 1px solid #2563eb; border-radius: 6px; background: #fff; color: #1749a3; font: inherit; font-weight: 600; cursor: pointer; }
.consent-actions #consent-accept { background: #2563eb; color: #fff; }
.consent-actions button:hover { background: #e2eeff; }
.consent-actions #consent-accept:hover { background: #1749a3; }
.consent-banner .consent-demo { margin: 16px 0 8px; font-size: 11px; color: #526580; }
.consent-reset { border: 0; background: none; padding: 4px 0; color: #1749a3; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
#consent-status { margin: 8px 0 0; font-size: 12px; }
.consent-reopen { position: fixed; bottom: 0; left: 24px; z-index: 999; padding: 10px 16px; border: 1px solid #cdddf5; border-radius: 8px 8px 0 0; background: #fff; color: #1749a3; font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 2px 12px #102a5615; }
.consent-banner button:focus-visible, .consent-banner input:focus-visible, .consent-banner summary:focus-visible, .consent-reopen:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (max-width: 600px) { .consent-banner { right: 16px; bottom: 48px; max-height: calc(100dvh - 64px); padding: 20px; } }

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f5f9ff;
    border-top: 6px solid var(--blue);
}

body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 90px 48px 72px;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    background: radial-gradient(ellipse at top, #e2eeff, transparent 65%);
}

h1,
h2 {
    color: var(--navy);
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    max-width: 780px;
    margin: 0 auto 28px;
    color: #1749a3;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    text-align: center;
}

h1 + p {
    max-width: 720px;
    margin: 0 auto 72px;
    font-size: 1.2rem;
    text-align: center;
}

h2 {
    margin: 44px 0 18px;
    padding-top: 32px;
    border-top: 1px solid #cdddf5;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.025em;
}

h2::before {
    display: block;
    width: 36px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--blue);
    content: "";
}

p {
    margin: 0 0 20px;
}

a {
    color: var(--blue);
    text-underline-offset: 4px;
}

a:hover {
    color: #1749a3;
}

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
    border-radius: 2px;
}

::selection {
    color: #fff;
    background: var(--blue);
}

.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin: 32px 0;
}

figure {
    margin: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #d6e5fa;
    border-radius: 24px;
    box-shadow: 0 12px 32px #102a5608;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

figcaption {
    padding: 14px 4px 4px;
    font-size: 0.9rem;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-links a {
    padding: 10px 18px;
    border: 1px solid #cdddf5;
    border-radius: 999px;
    background: #fff;
}

.alarm-section {
    margin-top: 64px;
    padding: 32px 24px;
    border-radius: 24px;
    background: #e2eeff;
    text-align: center;
}

.alarm-section h2 {
    margin-top: 0;
    padding-top: 0;
    border: 0;
}

.alarm-section h2::before {
    margin-right: auto;
    margin-left: auto;
}

.primary-button {
    max-width: 100%;
    padding: 22px 38px;
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px #2563eb30;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
    background: #1749a3;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px #2563eb45;
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 5px;
}

#alarm-status {
    min-height: 1.8em;
    margin: 18px 0 0;
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .primary-button {
        transition: none;
    }

    .primary-button:hover,
    .primary-button:active {
        transform: none;
    }
}

.slideshow { max-width: 720px; margin: 24px auto; }
.slideshow-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.slideshow-controls button, .download-link {
    display: inline-block; padding: 12px 20px; border: 1px solid #b7cff5;
    border-radius: 12px; background: #fff; color: #1749a3; font: inherit; cursor: pointer;
}
.slideshow-controls button:hover, .download-link:hover { background: #dcedff; }
.slideshow-controls button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
#slide-status { text-align: center; font-size: .9rem; margin-top: 12px; }
.fish-grid a { display: block; border-radius: 16px; }
.fish-grid a:hover img { filter: brightness(1.04); }
.download-card { padding: 24px; background: #e2eeff; border-radius: 24px; }
.download-card h2 { margin-top: 0; padding-top: 0; border: 0; }
.contact-card { padding: 24px; border: 1px solid #d6e5fa; border-radius: 24px; background: #fff; }
.contact-avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.contact-card h3 { margin-bottom: 8px; color: var(--navy); }
.contact-card address { font-style: normal; font-size: .95rem; overflow-wrap: anywhere; }
.contact-card a { display: inline; }

@media (max-width: 600px) {
    body {
        padding: 56px 24px 40px;
        font-size: 16px;
    }

    h1 + p {
        margin-bottom: 48px;
        font-size: 1.05rem;
    }

    h2 {
        margin-top: 32px;
    }
}
