* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

.hero {
    background: #f5f5f5;
    padding: 2rem 1.5rem 1.2rem;
    text-align: center;
    border-bottom: 2px solid #cccccc;
}

.hero h1 { margin: 0; font-size: 2.2rem; color: #2a4d7a; }
.subtitle { color: #666; margin-top: 0.3rem; }

nav {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.6rem;
}

nav a {
    color: #2a4d7a;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid #2a4d7a;
    border-radius: 999px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover,
nav a:focus {
    background: #2a4d7a;
    color: #ffffff;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

section {
    margin-top: 2.5rem;
}

h2 {
    color: #2a4d7a;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 0.4rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.card {
    background: #fafafa;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    border: 1px solid #dddddd;
}

.card h3 { margin-top: 0; color: #2a4d7a; }
.card h4 { margin-bottom: 0.4rem; color: #555; }

.dropped-title { color: #555; font-size: 1.1rem; }

code {
    font-family: "Consolas", "Courier New", monospace;
    background: #eeeeee;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.dropped {
    margin-top: 1.5rem;
    background: #fafafa;
    border: 1px dashed #bbbbbb;
    border-radius: 6px;
    padding: 1rem 1.2rem;
}

.dropped h3 { margin-top: 0; color: #555; }

.parts-list, .team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem 1rem;
    list-style: none;
    padding: 0;
}

.parts-list li, .team-list li {
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
}

.placeholder {
    background: #fafafa;
    border: 1px dashed #bbbbbb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: #777;
}

.placeholder img { max-width: 100%; border-radius: 4px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.placeholder.small { padding: 0.5rem; min-height: 110px; display: flex; align-items: center; justify-content: center; }

table.sources {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fafafa;
}

table.sources th, table.sources td {
    border: 1px solid #dddddd;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

table.sources th { background: #eeeeee; color: #2a4d7a; }

.hint { color: #888; font-size: 0.9rem; }

footer {
    text-align: center;
    color: #888;
    padding: 1.5rem;
    border-top: 1px solid #dddddd;
}

a { color: #2a4d7a; }

.lightbox-img {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}