/* Shared Business/Cargo presentation. Component structure and operational state are preserved. */
.ahc-corporate-design {
  background-color: #0b1218;
  --ahc-ui-font: Inter, Arial, sans-serif;
  --ahc-ui-radius: 8px;
  --ahc-ui-surface: #09141c;
  --ahc-ui-text: #f7fbff;
  --ahc-ui-muted: #b8c2cf;
  --ahc-ui-border: rgba(83, 196, 231, .42);
  --ahc-ui-button: linear-gradient(135deg, rgba(63, 180, 216, .18), rgba(63, 180, 216, .05)), rgba(12, 23, 31, .92);
  --ahc-ui-danger: linear-gradient(135deg, rgba(239, 84, 84, .15), rgba(239, 84, 84, .05)), rgba(12, 23, 31, .92);
  --ahc-ui-warning: linear-gradient(135deg, rgba(232, 184, 75, .15), rgba(232, 184, 75, .05)), rgba(12, 23, 31, .92);
  --ahc-ui-success: linear-gradient(135deg, rgba(85, 216, 149, .15), rgba(85, 216, 149, .05)), rgba(12, 23, 31, .92);
  --ahc-ui-title: clamp(24px, 2.2vw, 32px);
  --ahc-ui-section: clamp(20px, 1.7vw, 24px);
}

/* One action family. Existing compact workbench and header sizing is retained. */
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):not(.ahc-header-end-button) {
  border-radius: var(--ahc-ui-radius);
  font-family: var(--ahc-ui-font);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .14s ease, box-shadow .14s ease, filter .14s ease;
}
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):not(.ahc-header-end-button):not(.ahc-button-service-status) {
  border: 1px solid var(--ahc-action-border, var(--ahc-ui-border));
  background: var(--ahc-action-background, var(--ahc-ui-button));
  color: var(--ahc-action-text, var(--ahc-ui-text));
  box-shadow: none;
}
/* Keep compact loading and Cargo typography from their existing components. */
:root .ahc-corporate-design .ahc-button:not(.ahc-header-end-button):not(.ahc-button-service-status):not(:where(.ahc-business-ground .ahc-button)) {
  font-size: var(--ahc-action-font, 14px);
  line-height: 1.25;
}
:root .ahc-corporate-design :is(.ahc-button-danger, .ahc-bush__button.is-danger) {
  --ahc-action-background: var(--ahc-ui-danger);
  --ahc-action-border: rgba(248, 113, 113, .55);
  --ahc-action-text: #ffd3d3;
}
:root .ahc-corporate-design :is(.ahc-button-warning, .ahc-button-warm) {
  --ahc-action-background: var(--ahc-ui-warning);
  --ahc-action-border: rgba(239, 194, 95, .55);
  --ahc-action-text: #ffe7ad;
}
:root .ahc-corporate-design .ahc-button-service-status.is-hot {
  background: var(--ahc-ui-danger);
  border: 1px solid rgba(248, 113, 113, .55);
  color: #ffd3d3;
  box-shadow: none;
}
:root .ahc-corporate-design .ahc-button-service-status.is-cool {
  background: var(--ahc-ui-success);
  border: 1px solid rgba(85, 216, 149, .55);
  color: #c8f9df;
  box-shadow: none;
}
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):not(.ahc-header-end-button):hover:not(:disabled):not(.is-disabled) {
  filter: brightness(1.12);
  border-color: var(--ahc-action-border, #71d9f6);
}
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):focus-visible {
  outline: 3px solid #d7a650;
  outline-offset: 3px;
}
/* Disabled controls must outrank the shared action color rule. */
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):is(:disabled, .is-disabled, .ahc-button-disabled),
:root .ahc-corporate-design :is(.ahc-button, .ahc-bush__button):not(.ahc-button-service-status):is(:disabled, .is-disabled, .ahc-button-disabled) {
  border-color: rgba(148, 163, 184, .4);
  background: rgba(148, 163, 184, .12);
  color: #aebfcb;
  box-shadow: none;
  cursor: not-allowed;
}

/* Standard actions and explicit compact variants. No selectors touch loading tiles. */
:root .ahc-corporate-design :is(.ahc-pagehead, .ahc-hero, .ahc-downloads, .ahc-login, .ahc-apply, .ahc-wiki) .ahc-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.25;
}
:root .ahc-corporate-design .ahc-button-small {
  --ahc-action-font: 12px;
  min-height: 32px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.25;
}
:root .ahc-corporate-design .ahc-profile-actions-row .ahc-button {
  --ahc-action-font: 13px;
  min-height: 38px;
  height: auto;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
}
:root .ahc-corporate-design .ahc-downloads .ahc-downloads-card-actions > .ahc-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ahc-action-border, var(--ahc-ui-border));
  border-radius: var(--ahc-ui-radius);
  background: var(--ahc-action-background, var(--ahc-ui-button));
  color: var(--ahc-action-text, var(--ahc-ui-text));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
:root .ahc-corporate-design .ahc-downloads-sections a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--ahc-ui-border);
  border-radius: var(--ahc-ui-radius);
  background: var(--ahc-ui-button);
  color: var(--ahc-ui-text);
  font: 700 12px/1.25 var(--ahc-ui-font);
}

/* Crew uses the same selected tint; filter pills keep their existing purpose. */
:root .ahc-corporate-design .ahc.ahc-crew {
  --crew-accent: #3fb4d8;
  --crew-card: #111820;
  --crew-line: rgba(125, 211, 252, .2);
  --crew-muted: var(--ahc-ui-muted);
  font-family: var(--ahc-ui-font);
}
:root .ahc-corporate-design .ahc-crew-tabs button {
  border: 1px solid var(--ahc-ui-border);
  border-radius: var(--ahc-ui-radius);
  background: var(--ahc-ui-button);
  color: var(--ahc-ui-text);
  font: 700 13px/1.25 var(--ahc-ui-font);
  min-height: 36px;
  padding: 8px 12px;
}
:root .ahc-corporate-design .ahc-crew-tabs button[aria-pressed="true"] {
  border-color: #71d9f6;
  background: linear-gradient(135deg, rgba(63, 180, 216, .28), rgba(63, 180, 216, .12)), #0c171f;
  color: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(113, 217, 246, .15);
}
:root .ahc-corporate-design .ahc-crew-card {
  border-radius: 12px;
}
:root .ahc-corporate-design .ahc-mobile-menu summary {
  border: 1px solid var(--ahc-ui-border);
  border-radius: var(--ahc-ui-radius);
  background: var(--ahc-ui-button);
  color: var(--ahc-ui-text);
}
:root .ahc-corporate-design :is(.ahc-crew-tabs button, .ahc-downloads-sections a, .ahc-mobile-menu summary):focus-visible {
  outline: 3px solid #d7a650;
  outline-offset: 3px;
}

/* Shared dark form controls; native checkboxes, ranges and file inputs are excluded. */
:root .ahc-corporate-design :is(.ahc, dialog, [role="dialog"], .ahc-downloads, .ahc-crew, .ahc-bush, .ahc-mw, .business-ground-dialog)
  :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea) {
  border: 1px solid rgba(115, 158, 178, .52);
  border-radius: var(--ahc-ui-radius);
  background: var(--ahc-ui-surface);
  color: var(--ahc-ui-text);
  font-family: var(--ahc-ui-font);
  color-scheme: dark;
}
:root .ahc-corporate-design :is(.ahc, dialog, [role="dialog"], .ahc-downloads, .ahc-crew, .ahc-bush, .ahc-mw)
  :is(input, select, textarea):focus-visible {
  outline: 3px solid rgba(215, 166, 80, .85);
  outline-offset: 2px;
  border-color: #71d9f6;
}
:root .ahc-corporate-design :is(select, textarea, input)::placeholder { color: #9fb2bf; opacity: 1; }
:root .ahc-corporate-design select option { background: #09141c; color: #f7fbff; }
:root .ahc-corporate-design :is(input, select, textarea)[aria-invalid="true"] { border-color: #f87171; }

/* Shared page hierarchy. Home hero and the pilot's rank/name banner are intentional exceptions. */
:root .ahc-corporate-design:not(.home) h1:not(:where(.ahc-profile-title h1, .ahc-profile-rank-copy h1, .ahc-islandhopper h1)) {
  font-family: var(--ahc-ui-font);
  font-size: var(--ahc-ui-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ahc-ui-text);
}
:root .ahc-corporate-design:not(.home) h2:not(:where(.ahc-islandhopper h2)) {
  font-family: var(--ahc-ui-font);
  font-size: var(--ahc-ui-section);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
:root .ahc-corporate-design:not(.home) h3:not(:where(.ahc-islandhopper h3)) {
  font-family: var(--ahc-ui-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
:root .ahc-corporate-design :is(.ahc-business-ground, .ahc-bush__hero) :is(h1, h2) { font-size: 24px; }
:root .ahc-corporate-design .ahc-business-ground h2 { font-size: 19px; }
:root .ahc-corporate-design .ahc-business-ground h3 { font-size: 14px; }
:root .ahc-corporate-design:not(.home) .ahc-business-ground h1 { font-size: 24px; }
:root .ahc-corporate-design :is(.ahc-crew-card h2, .ahc-airline-card h2) { font-size: 20px; }
:root .ahc-corporate-design :is(.ahc-profile-panel-title, .ahc-profile-logbook-full h2) { font-size: 24px; }

/* The privacy content currently carries legacy inline heading sizes. */
:root .ahc-corporate-design .ahc-privacy-page { padding-top: 28px !important; padding-bottom: 28px !important; }
:root .ahc-corporate-design .ahc-privacy-page h1 { font-size: var(--ahc-ui-title) !important; line-height: 1.2 !important; }
:root .ahc-corporate-design .ahc-privacy-page h2 { font-size: var(--ahc-ui-section) !important; line-height: 1.3 !important; }

/* Page headers retain their real imagery and content but use the workbench spacing. */
:root .ahc-corporate-design:not(.home) :is(
  .ahc-pagehead, .ahc-fleet-pagehead, .ahc-free-flight-head, .ahc-airline-pagehead,
  .ahc-career-pagehead, .ahc-team-pagehead, .ahc-apply-head, .ahc-login-pagehead,
  .ahc-missions-pagehead, .ahc-rankings-pagehead, .ahc-downloads-hero,
  .ahc-wiki-pagehead, .ahc-wiki-hero, .ahc-tour-detail-head, .ahc-aircraft-detail-head) {
  min-height: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}
:root .ahc-corporate-design:not(.home) :is(.ahc-pagehead, .ahc-downloads-hero, .ahc-wiki-hero) h1:not(:where(.ahc-profile-title h1, .ahc-profile-rank-copy h1, .ahc-islandhopper h1)) {
  margin-top: 8px;
  margin-bottom: 12px;
}
:root .ahc-corporate-design:not(.home) :is(.ahc-kicker, .ahc-crew-kicker) {
  color: #7dd3fc;
  font-family: var(--ahc-ui-font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  :root .ahc-corporate-design:not(.home) :is(.ahc-pagehead, .ahc-downloads-hero, .ahc-wiki-hero) {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  :root .ahc-corporate-design .ahc-downloads-sections { gap: 8px; }
  :root .ahc-corporate-design .ahc-downloads-sections a { white-space: normal; }
}

/* An active shift and the full navigation must not overlap on medium desktops. */
@media (min-width: 1181px) and (max-width: 1800px) {
  :root .ahc-corporate-design:not(.ahc-islandhopper-page) .site-header { flex-wrap: wrap; row-gap: 10px; }
  :root .ahc-corporate-design:not(.ahc-islandhopper-page) .site-header .ahc-header-operation-wrap {
    position: static;
    left: auto;
    transform: none;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    justify-content: center;
  }
}
