.aviation-hero .hero-image { height: auto; min-height: 100%; }
.aviation-hero p { max-width: 56ch; }
.hero-link {
  display: inline-block;
  margin-bottom: 9px;
  color: #f0edf4;
  font-size: 14px;
  font-weight: 700;
}
.hero-link:hover { color: #fff; }
.hero-link:focus-visible { outline-color: #fff; }

.aircraft-page .lang-switch {
  display: inline-flex;
  min-height: 36px;
  margin-top: 14px;
  padding: 6px 12px;
  border-color: #ada5bb;
  background: transparent;
  color: #fff;
}
.aircraft-page .lang-switch:hover { background: #514a63; color: #fff; }
.aircraft-page .lang-switch:focus-visible { outline-color: #fff; }

.aircraft-section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--pale);
}
.aircraft-section-nav a {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #a79fae;
  background: #fff;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.aircraft-section-nav a:hover {
  border-color: var(--slate);
  background: #e9e5ee;
}
.aircraft-page .section,
.aircraft-pl main > section:not(.hero):not(.hero-gallery) {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.aircraft-page .section > h2,
.aircraft-pl main > section > h2 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -.025em;
}
.aircraft-page .aircraft-history h3,
.aircraft-page .equipment-card h3,
.aircraft-pl .card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.aircraft-page .description,
.aircraft-page .content-card,
.aircraft-page .equipment-card,
.aircraft-page .card,
.aircraft-page .legal {
  padding: 20px 24px;
  background: var(--panel);
}
.aircraft-page .description,
.aircraft-pl #pilot > .card { border-top: 4px solid var(--red); }
.aircraft-page .description > p + p,
.aircraft-pl .card > p + p { margin-top: 10px; }
.aircraft-page .section ul,
.aircraft-pl .card ul { padding-inline-start: 20px; }
.aircraft-page .section li + li,
.aircraft-pl .card li + li { margin-top: 5px; }
.aircraft-page li::marker { color: var(--red); }

.aircraft-page .aircraft-history {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--pale);
}
.aircraft-pl .aircraft-history { margin-bottom: 16px; }
.aircraft-page .history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.aircraft-page .history-point {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.aircraft-page .history-point .year {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}
.aircraft-page .history-point strong { display: block; margin-bottom: 5px; }
.aircraft-page .history-point p,
.aircraft-page .source-note,
.aircraft-page .viewer-note,
.aircraft-page .note,
.aircraft-page .gallery-intro { color: var(--muted); }
.aircraft-page .source-note { margin-top: 12px; font-size: 13px; }

.aircraft-page .viewer-frame {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.aircraft-page model-viewer {
  display: block;
  width: 100%;
  height: clamp(340px, 55vw, 500px);
  background: var(--panel);
}
.aircraft-model .viewer-frame { margin-top: 14px; }
.aircraft-model model-viewer { height: clamp(330px, 58vw, 600px); }
.aircraft-page .viewer-note,
.aircraft-page .viewer-frame > .note {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.aircraft-page .equipment-grid,
.aircraft-page .aircraft-links {
  display: grid;
  gap: 14px;
}
.aircraft-page .aircraft-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aircraft-page .aircraft-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}
.aircraft-page .aircraft-link:hover { border-color: var(--red); }
.aircraft-page .aircraft-link-logo {
  flex: 0 0 145px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.aircraft-page .aircraft-link-logo svg { display: block; width: 100%; height: auto; }
.aircraft-page .aircraft-link-copy { min-width: 0; }
.aircraft-page .aircraft-link-copy h3 { margin: 0 0 5px; font-size: 18px; }
.aircraft-page .aircraft-link-copy p { color: var(--muted); }
.aircraft-page .aircraft-link-action {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-weight: 700;
}
.aircraft-page .aircraft-link-action::after { content: " →"; }

.aircraft-page .country-cards,
.aircraft-page .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aircraft-page .country-card,
.aircraft-page .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
}
.aircraft-page .country-card {
  flex: 1 0 auto;
  justify-content: center;
  max-width: 100%;
}
.aircraft-page .country-card img { display: block; }
.aircraft-page .tags { margin-block: 14px; }
.aircraft-page .tags .tag { background: #fff; }

.aircraft-page .specific-section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.aircraft-page .photo-grid,
.aircraft-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.aircraft-page .photo-grid a,
.aircraft-page .thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pale);
  aspect-ratio: 4 / 3;
}
.aircraft-page .photo-grid a:hover,
.aircraft-page .thumb:hover { border-color: var(--red); }
.aircraft-page .photo-grid img,
.aircraft-page .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aircraft-page .gallery-intro { margin-bottom: 14px; }
.aircraft-page .featured-photos,
.aircraft-pl .hero-gallery { margin-top: 14px; }

.aircraft-pl .legal {
  margin-top: 14px;
  border-left: 4px solid #766e88;
  color: var(--muted);
  font-size: 12px;
}
.aircraft-pl .kv {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(0, 4fr);
  align-items: start;
  gap: 10px 14px;
}
.aircraft-pl .contact-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 6px 4px 0;
  padding: 6px 12px;
  border: 1px solid #a79fae;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.aircraft-pl .contact-button:hover { border-color: var(--red); color: var(--red); }
.aircraft-pl .map-link { font-weight: 700; }
.aircraft-pl .video-card { padding: 0; background: #17151c; aspect-ratio: 16 / 9; }
.aircraft-pl .video-card iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 940px) {
  .aircraft-section-nav { position: static; }
  .aircraft-page .section,
  .aircraft-pl main > section:not(.hero):not(.hero-gallery) { scroll-margin-top: 20px; }
  .aircraft-page .aircraft-links { grid-template-columns: 1fr; }
  .aircraft-page .photo-grid,
  .aircraft-page .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .aircraft-page .history-grid { grid-template-columns: 1fr; }
  .aircraft-page .photo-grid,
  .aircraft-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .aircraft-page .description,
  .aircraft-page .content-card,
  .aircraft-page .equipment-card,
  .aircraft-page .card,
  .aircraft-page .legal { padding: 16px 18px; }
  .aircraft-page .viewer-frame,
  .aircraft-pl .video-card { padding: 0; }
  .aircraft-page .aircraft-link { align-items: flex-start; flex-direction: column; }
  .aircraft-page .aircraft-link-logo {
    flex: none;
    width: min(145px, 100%);
    padding: 0;
    border: 0;
  }
  .aircraft-pl .kv { grid-template-columns: 1fr; row-gap: 4px; }
  .aircraft-pl .kv > span + b { margin-top: 10px; }
}

.checklist-page .action-row,
.checklist-page .info-grid,
.checklist-page .toolbar { margin-block: 14px; }
.checklist-page .button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.checklist-page [aria-pressed="true"] {
  border-color: var(--slate);
  background: var(--slate);
  color: #fff;
}
.checklist-page .card p + p { margin-top: 10px; }
.checklist-reference .card:first-child { border-top: 4px solid var(--red); }
.checklist-reference .operational-note {
  border-top: 4px solid #766e88;
  background: var(--pale);
}
.checklist-reference .format-list { margin-top: 10px; padding-left: 19px; }
.checklist-reference .format-list li + li { margin-top: 4px; }
.checklist-section {
  scroll-margin-top: 18px;
  margin-top: 24px;
}
.checklist-section > .section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-bottom: 10px;
}
.checklist-section > .section-heading h2 {
  font-size: clamp(21px, 2.4vw, 25px);
  letter-spacing: -.025em;
}
.checklist-section .section-meta,
.checklist-page .row-count { color: var(--muted); font-size: 14px; }

.checklist-page .table-tools,
.checklist-page .toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--pale);
}
.checklist-page .table-tools { border-bottom: 0; }
.checklist-page .toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.checklist-page .table-tools label { font-weight: 700; }
.checklist-page .table-tools select,
.checklist-page .row-type {
  min-height: 38px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #a79fae;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.checklist-page .table-tools .button { min-height: 38px; }
.checklist-page .toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checklist-page .file-state {
  margin-inline-start: auto;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 14px;
}
.checklist-page .file-state strong { display: block; color: var(--ink); }
.checklist-page .format-note,
.checklist-page .status-panel {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  margin-block: 14px;
  padding: 12px 14px;
  border-left: 4px solid #766e88;
  background: var(--pale);
  color: var(--muted);
  font-size: 14px;
}
.checklist-page .format-note strong,
.checklist-page .status-panel strong { flex: 0 0 auto; color: var(--ink); }
.checklist-page .status-panel { border-color: #287a48; background: #f6faf6; }
.checklist-page .status-panel.warning { border-color: #9b6b16; background: #fff9ec; }
.checklist-page .status-panel.error { border-color: var(--red); background: #fff4f4; }

.checklist-page .checklist-shell,
.checklist-page .workspace-card,
.checklist-page .output-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.checklist-page .workspace-card { border-top: 4px solid var(--red); }
.checklist-page .card-heading,
.checklist-page .output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  background: var(--panel);
}
.checklist-page .card-heading h2,
.checklist-page .output-heading h2 { font-size: 18px; }
.checklist-page .output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.checklist-page .preview-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.checklist-page .preview-modes .button {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 13px;
}
.checklist-page .table-wrap,
.checklist-page .scrollable-table { overflow: auto; }
.checklist-page .table-wrap { max-height: 56vh; }
.checklist-page .scrollable-table { max-height: min(72vh, 760px); }
.checklist-page .checklist-shell.expanded .scrollable-table { max-height: none; overflow: visible; }
.checklist-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.checklist-page th,
.checklist-page td {
  padding: 7px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}
.checklist-page th:last-child,
.checklist-page td:last-child { border-right: 0; }
.checklist-page th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--slate);
  color: #fff;
  font-size: 14px;
}
.checklist-page .category-row { scroll-margin-top: 42px; }
.checklist-page .category-row td {
  background: var(--slate);
  color: #fff;
  font: 700 13px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
}
.checklist-page .category-row.emergency-row td { background: var(--red); }
.checklist-page .subsection-row td { background: var(--pale); font-weight: 700; }
.checklist-reference th:first-child { width: 40%; }
.checklist-reference tbody { font: 14px/1.45 Consolas, "Liberation Mono", monospace; }
.checklist-reference tbody tr:nth-child(even):not(.category-row):not(.subsection-row) { background: var(--panel); }
.checklist-reference .table-footnote { margin-top: 10px; color: var(--muted); font-size: 14px; }
.checklist-editor .type-column { width: 140px; }
.checklist-editor .actions-column { width: 165px; }
.checklist-editor tr { --row-accent: #a79fae; }
.checklist-editor .row-comment { --row-accent: #7198bc; background: #edf6ff; }
.checklist-editor .row-category { --row-accent: #c67b12; background: #fff6e9; }
.checklist-editor .row-item { background: #fff; }
.checklist-editor .is-active td:first-child { box-shadow: inset 4px 0 0 var(--row-accent); }
.checklist-editor .row-type { width: 100%; min-height: 34px; font-size: 13px; }
.checklist-editor .row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.checklist-editor .icon-button {
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1px solid #a79fae;
  background: #fff;
  color: var(--slate);
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.checklist-editor .icon-button:hover { border-color: var(--slate); background: var(--pale); }
.checklist-editor .icon-button.remove:hover { border-color: var(--red); color: var(--red); }
.checklist-editor .icon-button:disabled { opacity: .5; cursor: not-allowed; }
.checklist-editor .value-wrap { display: flex; align-items: baseline; gap: 8px; }
.checklist-editor .value-editor {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: 14px/1.45 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.checklist-editor .char-count { flex-shrink: 0; color: var(--muted); font: 12px Consolas, monospace; }
.checklist-editor .char-count.warning { color: #795112; font-weight: 700; }
.checklist-editor .char-count.error { color: var(--red); font-weight: 700; }
.checklist-editor .add-row-bar { padding: 8px 12px; background: var(--panel); }
.checklist-editor #tableText {
  display: block;
  width: 100%;
  height: 320px;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fdfcfe;
  color: var(--ink);
  resize: vertical;
  font: 13px/1.45 Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.checklist-editor .preview-shell { height: 320px; overflow: auto; padding: 12px; background: #16151a; }
.checklist-editor #previewArea {
  --preview-width: 40ch;
  width: calc(var(--preview-width) + 24px);
  min-height: 100%;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid #4d4a54;
  background: #000;
  color: #fff;
  font: 13px/1.35 Consolas, "Liberation Mono", monospace;
}
.checklist-editor .preview-page + .preview-page { margin-top: 15px; padding-top: 12px; border-top: 1px solid #666; }
.checklist-editor .preview-category {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 2px 8px;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-weight: 700;
  white-space: pre;
}
.checklist-editor .preview-line {
  width: var(--preview-width);
  min-height: 1.35em;
  overflow: hidden;
  white-space: pre;
}
.checklist-editor .preview-category.is-active,
.checklist-editor .preview-line.is-active { outline: 1px solid #ffcc4d; outline-offset: 2px; }
.checklist-editor .preview-empty { color: #aaa; }

@media (max-width: 960px) {
  .checklist-page .toolbar { position: static; }
  .checklist-page .output-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .checklist-page .toolbar { align-items: stretch; flex-direction: column; }
  .checklist-page .toolbar-group { flex-wrap: wrap; }
  .checklist-page .file-state { margin: 0; text-align: start; }
  .checklist-page .format-note,
  .checklist-page .status-panel { flex-direction: column; }
  .checklist-editor .type-column { width: 96px; }
  .checklist-editor .actions-column { width: 73px; }
  .checklist-editor th,
  .checklist-editor td { padding: 5px; }
  .checklist-editor .row-actions { display: grid; grid-template-columns: repeat(2, 29px); gap: 4px; }
  .checklist-editor .icon-button { width: 29px; height: 32px; }
  .checklist-editor .value-wrap { display: block; }
  .checklist-editor .char-count { display: block; margin-top: 3px; text-align: right; }
  .checklist-reference tbody { font-size: 12px; }
  .checklist-reference th,
  .checklist-reference td { padding: 6px 8px; }
}
@media print {
  .checklist-reference .site-header,
  .checklist-reference .site-footer,
  .checklist-reference .hero-image,
  .checklist-reference .hero-link,
  .checklist-reference .action-row,
  .checklist-reference .info-grid,
  .checklist-reference .table-tools,
  .checklist-reference .table-footnote { display: none !important; }
  .checklist-reference main { width: 100%; }
  .checklist-reference .hero { display: block; margin: 0; background: #fff; color: #000; }
  .checklist-reference .hero-copy { padding: 0; }
  .checklist-reference .hero h1 { font-size: 26px; }
  .checklist-reference .hero p { max-width: none; color: #000; font-size: 14px; }
  .checklist-reference .scrollable-table { max-height: none; overflow: visible; }
  .checklist-reference th { position: static; }
  .checklist-reference tr { break-inside: avoid; }
}
