.aircraft-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 0; margin: 0 0 16px; border-bottom: 1px solid #c9d6df; }
.aircraft-nav a { padding: 4px 0; }
.aircraft-nav a[aria-current="page"] { color: #222; font-weight: bold; text-decoration: none; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.catalog-filters button, [data-repaint-reset] { font: inherit; cursor: pointer; padding: 7px 12px; border: 1px solid #9ab4c7; background: #fff; color: #003399; border-radius: 3px; }
.catalog-filters button[aria-pressed="true"] { background: #275f88; border-color: #275f88; color: #fff; }
.catalog-count { color: #555; margin: 10px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
.photo-grid figure { margin: 0; min-width: 0; }
.photo-grid a { display: block; background: #eef3f8; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.photo-grid figcaption { font-size: 12px; line-height: 1.4; margin-top: 6px; color: #444; }
.catalog-return { margin: 24px 0; }
.repaint-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 12px 0; }
.repaint-heading { min-width: 0; line-height: 1.3; }
.repaint-heading h1 { display: inline; font-size: clamp(20px, 2.4vw, 26px); margin: 0; }
.repaint-heading .catalog-count { display: inline; margin: 0 0 0 8px; font-size: 14px; color: #4d606f; white-space: nowrap; }
.catalog-tools { display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 4px; }
.catalog-sort { appearance: none; -webkit-appearance: none; box-sizing: border-box; max-width: 145px; height: 44px; padding: 8px 22px 8px 4px; font: inherit; font-size: 14px; border: 0; border-radius: 0; background: transparent; color: #164f7a; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23164f7a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.catalog-search-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: 4px; color: #164f7a; cursor: pointer; }
.catalog-search-toggle:hover { background: #edf4f9; }
.catalog-search-toggle .search-close-symbol { display: none; }
.catalog-search-toggle[aria-expanded="true"] .search-symbol { display: none; }
.catalog-search-toggle[aria-expanded="true"] .search-close-symbol { display: inline; }
.catalog-search { width: 300px; min-width: 0; margin: 0; overflow: hidden; animation: reveal-catalog-search 180ms ease-out; }
.catalog-search input { box-sizing: border-box; width: 100%; min-height: 44px; font: inherit; padding: 8px; border: 0; border-bottom: 1px solid #8ca9bc; border-radius: 0; background: #fff; color: #1d2b36; }
.catalog-search input:focus-visible { outline: none; border-bottom: 2px solid #275f88; }
@keyframes reveal-catalog-search { from { max-width: 0; opacity: 0; } to { max-width: 300px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .catalog-search { animation: none; } }
@media (max-width: 900px) {
    .repaint-toolbar[data-search-open="true"] { grid-template-columns: minmax(0, 1fr); min-height: 44px; }
    .repaint-toolbar[data-search-open="true"] .repaint-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .repaint-toolbar[data-search-open="true"] .catalog-tools { width: 100%; }
    .catalog-search { flex: 1 1 0; max-width: 300px; }
    .catalog-sort { flex: 0 0 auto; }
}
.repaint-help { margin: 24px 0 0; font-size: 14px; color: #4d606f; max-width: 760px; }
.repaint-help summary { cursor: pointer; padding: 8px 0; color: #164f7a; }
/* Compact only catalog chrome; all six main destinations remain visible. */
.repaints-page #head { margin-top: 4px; }
.repaints-page #head img { width: 220px; }
.repaints-page .site-nav { margin: 4px 0 8px; }
.repaints-page .aircraft-nav { padding: 0; margin-bottom: 0; gap: 0 18px; }
.repaints-page .aircraft-nav .catalog-support { display: none; }
.repaints-page .aircraft-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
@media (max-width: 700px) {
    .repaints-page #head img { width: 200px; }
    .repaints-page .site-nav li { flex: 1 1 calc(33.333% - 4px); }
    .repaints-page .site-nav a { padding: 6px 4px; font-size: 13px; }
    .repaints-page .aircraft-nav { gap: 0 14px; font-size: 14px; }
}
.repaint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; align-items: start; }
.repaint-card { min-width: 0; border-bottom: 1px solid #c9d6df; padding-bottom: 16px; }
.repaint-preview { display: block; background: #eef3f8; }
.repaint-preview img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.repaint-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.repaint-identity { display: flex; align-items: baseline; flex: 1 1 130px; min-width: 0; }
.repaint-card h3 { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 18px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repaint-card h3 a { color: #1d2b36; text-decoration: none; }
.repaint-card h3 a:hover { text-decoration: underline; }
.repaint-card:target { outline: 2px solid #275f88; outline-offset: 8px; scroll-margin-top: 24px; }
.repaint-author, .repaint-photo-count { margin: 4px 0; font-size: 14px; color: #4d606f; }
.repaint-author { flex: 0 0 auto; max-width: 65%; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repaint-author::before { content: " · "; white-space: pre; }
.repaint-downloads { display: flex; flex-direction: column; gap: 0; flex: 0 0 auto; }
.catalog-download { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 44px; padding: 8px 0 8px 8px; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.catalog-download:hover .download-size, .catalog-download:focus-visible .download-size { text-decoration: underline; text-underline-offset: 3px; }
.download-icon { flex: 0 0 20px; }
.download-action { font-size: 13px; font-weight: bold; }
.download-size { font-size: 13px; }
.repaint-details { font-size: 13px; margin-top: 10px; }
.repaint-details summary { cursor: pointer; color: #003399; }
.catalog-original-notes { margin-top: 10px; overflow-wrap: anywhere; }
.catalog-original-notes ul { margin-left: 1.25em; }
.catalog-files { margin-top: 32px; padding-top: 12px; border-top: 2px solid #357cb3; }
.catalog-files h2 { text-align: left; margin: 14px 0; }
.catalog-original-resources { margin-top: 24px; }
.catalog-original-resources img { max-width: 100%; height: auto; }
.catalog-original-resources table { max-width: 100%; }
.catalog-filters[hidden], .catalog-search[hidden], .photo-grid [hidden], .repaint-grid [hidden], [data-repaint-empty][hidden] { display: none; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .repaint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .repaint-grid { grid-template-columns: 1fr; } }

/* Old fragment links retain a no-JavaScript path to the moved resources. */
.moved-files { display: none; }
.moved-files:target { display: block; margin: 24px 0; }
