/* aircraft_type.php — type detail + white template hero */

.at-page {
    --at-silhouette-bg: #eef1f5;
}

html[data-theme="dark"] .at-page {
    --at-silhouette-bg: #1a2230;
}

.at-hero-silhouette {
    flex: 0 1 420px;
    max-width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: var(--at-silhouette-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.at-hero-silhouette img {
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.at-livery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 16px 15px 20px;
}

.at-livery-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.at-livery-card:hover {
    border-color: var(--link);
    box-shadow: 0 2px 8px rgba(42, 109, 181, 0.12);
}

.at-livery-open {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.at-livery-thumb {
    background: linear-gradient(180deg, #f4f6fa 0%, #e8ecf2 100%);
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

html[data-theme="dark"] .at-livery-thumb {
    background: linear-gradient(180deg, #222a38 0%, #1a2230 100%);
}

.at-livery-thumb img {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.at-livery-meta {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.at-livery-meta img.at-livery-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.at-livery-airline {
    font-size: 12px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.at-livery-airline-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: monospace;
}

.at-livery-operator-link {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
}

.at-livery-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px 16px;
    border-top: 1px solid var(--border);
    background: var(--panel-head);
}

.at-livery-pg-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.at-livery-pg-controls {
    display: flex;
    gap: 8px;
}

.at-livery-pg-controls .btn.disabled {
    pointer-events: none;
    opacity: 0.45;
}

@media (max-width: 600px) {
    .at-hero-silhouette {
        flex: 1 1 100%;
        min-height: 120px;
    }

    .at-livery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
        padding: 12px;
    }
}
