* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f7f7f7;
}

a {
    color: #005faf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    height: 1.4em;
    width: auto;
}

nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.nav-link {
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
}

.nav-link:hover {
    background: #eee;
    text-decoration: none;
}

.nav-link.active {
    font-weight: 700;
}

.hero {
    padding: 1.25rem 1.25rem 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hero p {
    max-width: 640px;
    margin: 0.25rem auto;
    font-size: 0.98rem;
    text-align: left;
}

.hero p:last-child {
    text-align: center;
}

.hero hr {
    max-width: 640px;
    margin: 1rem auto;
    border: none;
    border-top: 1px solid #ddd;
}

.hero-tag {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.5rem;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 1.5rem auto;
    align-items: center;
    justify-content: center;
}

.image-row-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
}

.image-row-4 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top left;
}

.image-row-4 img:nth-child(2) {
    object-position: top right;
}

.image-row-4 img:nth-child(3) {
    object-position: center center;
}

.image-row img {
    max-width: 100%;
    border-radius: 6px;
    border: 0px solid #d0d8e8;
    display: block;
}

.image-placeholder {
    background: linear-gradient(135deg, #cddff5, #f0f4ff);
    border-radius: 6px;
    border: 1px solid #d0d8e8;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #445;
}

section {
    margin: 1rem 0;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 1.25rem 1.25rem 1.5rem;
}

section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

section h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.35rem;
}

section p+p {
    margin-top: 0.5rem;
}

blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid black;
    background: #f3f6fb;
    font-style: italic;
}

blockquote p {
    margin: 0;
}

.section-news {
    background: #fcf4c2;
}

.section-with-image {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.section-with-image img {
    max-width: 280px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #d0d8e8;
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.grid-links a {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 4px;
    background: #ffffff;
    border: 2px solid #dde5f5;
    font-weight: 600;
}

.grid-links a:hover {
    text-decoration: none;
    border-color: #005faf;
}

.grid-links a span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: black;
    margin-top: 0.25rem;
}

ul.references {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

ul.references li {
    margin-bottom: 0.5rem;
}

ul.references li:last-child {
    margin-bottom: 0;
}

footer {
    border-top: 1px solid #ddd;
    padding: 1rem 0 2rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Small screens */
@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .image-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .section-with-image {
        grid-template-columns: 1fr;
    }

    .section-with-image img {
        max-width: 100%;
        margin: 1rem auto 0;
        display: block;
    }
}