html {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #f7f7f7;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
}

a {
    color: #004b87;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(2500px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.site-footer {
    border-top: 1px solid #ddd;
    border-bottom: 0;
    margin-top: 2rem;
}

.site-header .container,
.site-footer .container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-title {
    font-size: 1.4rem;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-nav,
.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

main.container {
    padding: 1.5rem 0 2rem;
}

.intro,
.card,
.viewer,
.slideshow-controls,
.thumb-row {
    margin-top: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.card-body {
    padding: 1rem;
}

.card h3 {
    margin-top: 0;
}

.card-image,
.main-image,
.thumb {
    display: block;
    max-width: 100%;
    height: auto;
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
}

.main-image {
    background: #fff;
    border: 1px solid #ddd;
}

.thumb-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumb {
    width: 140px;
    border: 1px solid #ccc;
    background: #fff;
}

.button {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border: 1px solid #999;
    border-radius: 6px;
    background: #fff;
    color: #222;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.slideshow-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.group-section {
    margin-top: 2rem;
}

.group-section h3 {
    margin-bottom: 1rem;
}

.card-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #efefef;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.protected-note {
    font-weight: 600;
    color: #444;
    line-height: 1.4;
}

.meta-note {
    color: #555;
}

.protected-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.card-grid-radars {
    justify-content: start;
}

.card-grid-radars .card {
    width: 100%;
    max-width: 560px;
}

.card-grid-radars .card-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: #fff;
}

