:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    background: #f5f8fc;
    color: #1c314b;
    --accent: #245c98;
    --panel: #ffffff;
    --border: #cbd9e8;
}
* { box-sizing: border-box; }
body { margin: 0; }
.masthead {
    padding: 8px clamp(8px, 3vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 3vw, 24px);
    text-align: left;
    background: #eaf2fb;
    border-bottom: 1px solid var(--border);
}
h1 { margin: 0; font: 700 clamp(.75rem, 2.3vw, 1.35rem) system-ui, sans-serif; white-space: nowrap; }
form { display: flex; gap: 8px; max-width: 420px; min-width: 0; flex: 1; }
input, button { font: inherit; border-radius: 8px; padding: 7px clamp(5px, 1.5vw, 12px); font-size: .85rem; }
input {
    width: 100%;
    min-width: 0;
    border: 1px solid #8fa7c0;
    background: #ffffff;
    color: inherit;
}
button { border: 0; background: var(--accent); color: #ffffff; font-weight: 700; cursor: pointer; white-space: nowrap; }
main { max-width: 1540px; margin: auto; padding: 9px clamp(8px, 3vw, 28px) 16px; }
section + section { margin-top: 10px; }
h2 { font-size: 1.15rem; margin: 0 0 5px; }
small { margin-left: 8px; font-size: .85rem; color: #48627c; font-weight: 400; }
a { color: inherit; }
button:hover { background: #194b81; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid {
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 3px 6px;
    scrollbar-color: #7794b3 #ffffff;
}
.calls { grid-template-rows: repeat(3, 30px); grid-auto-columns: minmax(112px, max-content); }
.calls a, .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    text-decoration: none;
    font-weight: 650;
}
.calls a:hover, .back:hover { color: var(--accent); border-color: var(--accent); }
.gallery { grid-template-rows: repeat(2, auto); grid-auto-columns: min(360px, 100%); }
.gallery a { display: block; background: var(--panel); border-radius: 10px; overflow: hidden; }
.gallery a:focus-visible { outline-offset: -3px; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 228; object-fit: contain; }
.back { min-height: 44px; margin-bottom: 20px; }
.original img { display: block; max-width: 100%; height: auto; }
.notice { color: #425c75; }

.scroller {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
}
.arrow {
    display: grid;
    place-items: center;
    text-decoration: none;
    background: #245c98;
    color: white;
    border-radius: 8px;
    width: 27px;
    min-height: 36px;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
}
.arrow.at-edge {
    background: var(--border);
    color: #48627c;
    cursor: default;
}

@media (max-width: 480px) {
    .masthead { flex-wrap: wrap; }
    .masthead form { flex-basis: 100%; }
}
