/* ----- base / reset ----- */
html {
    background-color: #e0e0e0;
    min-height: 100vh;
    display: grid;
    place-content: center;
}

body {
    background-color: #fff;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ----- title ----- */
.cockpit-title {
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.cockpit-title small {
    font-weight: 300;
    color: #777;
}

/* ----- card / tile ----- */
.tile {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background-color: #fafafa;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    padding: 12px;
    cursor: default;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tile:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tile a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile a img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.tile a img:hover {
    filter: grayscale(0.85);
    transform: scale(0.92);
}

/* ----- row spacing ----- */
.row-spacer {
    height: 28px;
}

/* ----- responsive tweaks ----- */
@media (max-width: 600px) {
    body {
        padding: 12px 8px 32px;
    }

    .tile {
        min-height: 160px;
        border-radius: 8px;
    }

    .tile a img {
        max-width: 140px;
    }

    .cockpit-title {
        font-size: 1.4rem;
    }

    .row-spacer {
        height: 12px;
    }
}

@media (max-width: 400px) {
    .tile {
        min-height: 130px;
    }

    .tile a img {
        max-width: 110px;
    }

    .cockpit-title {
        font-size: 1.1rem;
    }
}

/* medium+ screens: keep tiles a bit taller */
@media (min-width: 601px) {
    .tile {
        min-height: 250px;
    }

    .tile a img {
        max-width: 200px;
    }
}

@media (min-width: 993px) {
    .tile {
        min-height: 260px;
    }

    .tile a img {
        max-width: 220px;
    }
}

/* ----- utility: better tap target on mobile ----- */
.tile a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}