/* Shared details for the homepage, aircraft showcase and interior pages. */
#app {
  --flyone-blue: #246bb3;
  --flyone-blue-hover: #1a548f;
  --flyone-focus: #4898e5;
  --flyone-radius: 6px;
}

#app :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--flyone-focus);
  outline-offset: 3px;
}

/* Keep page-specific layout and colour treatments on the two reference pages. */
[data-flyone-page="interior"] #app .s-section + .s-section,
[data-flyone-page="interior"] #app :is(.pt-section, .hire-section) + :is(.pt-section, .hire-section) {
  border-block-start: 1px solid rgb(110 133 168 / 22%);
}

[data-flyone-page="interior"] #app :is(.s-section, .fly-training, .hire-page) :is(h1, h2, h3) {
  letter-spacing: -.02em;
  text-wrap: pretty;
}

[data-flyone-page="interior"] #app .s-section .section__text :is(p, li) {
  line-height: 1.55;
}

[data-flyone-page="interior"] #app :is(.s-section a.btn, .pt-button, .hire-cta, .hire-secondary, .pt-nav a) {
  border-radius: var(--flyone-radius);
  text-underline-offset: .2em;
}

[data-flyone-page="interior"] #app :is(.s-section a.btn.btn_primary, .fly-training .pt-card .pt-button, .hire-page .hire-cta) {
  background-color: var(--flyone-blue);
  color: white;
}

[data-flyone-page="interior"] #app :is(.s-section a.btn.btn_primary, .fly-training .pt-card .pt-button, .hire-page .hire-cta):hover {
  background-color: var(--flyone-blue-hover);
}

[data-flyone-page="interior"] #app .s-section .section__text a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

#app .flyone-footer .fo-register {
  border-radius: var(--flyone-radius);
}

@media (prefers-reduced-motion: no-preference) {
  #app :is(.s-section a.btn, .pt-button, .hire-cta, .hire-secondary, .fo-register) {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  }
}
