/* Shared frame, header, badge, and back button come from airpark.css. */
[hidden] {
  display: none !important;
}

/* CONTENT */
.aircraft-content {
  padding: 18px 22px 0;
}

.aircraft-content h1 {
  margin: 10px 0 14px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.aircraft-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.aircraft-content p {
  margin: 0;
  color: #526b88;
  font-size: 17px;
  line-height: 1.5;
}

.aircraft-content .aircraft-subtitle {
  margin-bottom: 10px;
  font-weight: 700;
}

.aircraft-content .aircraft-description {
  margin-bottom: 24px;
}

.aircraft-section {
  margin: 28px 0;
}

/* GALLERY */
.aircraft-gallery {
  margin-bottom: 20px;
}

.aircraft-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
}

@media (min-width: 768px) {
  .aircraft-photo {
    height: 420px;
  }
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.gallery-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dfeeff;
}

.gallery-dot[aria-pressed="true"]::before {
  background: #14345e;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* CARDS */
.aircraft-card {
  margin: 24px 0;
  padding: 18px;
  border-radius: 13px;
  background: #edf6ff;
}

.glance-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #c7daee;
}

.glance-fact {
  position: relative;
  min-width: 0;
  padding: 18px 12px 18px 70px;
  overflow-wrap: break-word;
}

.glance-fact:nth-child(even) {
  padding-left: 82px;
  padding-right: 0;
}

.glance-fact:nth-child(even)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #dce9f7;
}

.glance-fact:nth-child(n + 3) {
  border-top: 1px solid #dce9f7;
}

.glance-fact dt {
  margin: 0 0 4px;
  color: #526b88;
  font-size: 13px;
}

.glance-fact .fact-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.glance-fact:nth-child(even) .fact-icon {
  left: 12px;
}

.glance-fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.fact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aircraft-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 13px;
  background: #fff7e1;
}

.aircraft-fact h2 {
  font-size: 21px;
  margin-bottom: 8px;
}

.specification-rows {
  margin: 0;
  padding: 0 12px;
  background: white;
  border-radius: 9px;
}

.specification-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #dce9f7;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.specification-row:last-child {
  border-bottom: 0;
}

.specification-row dt {
  color: #526b88;
}

.specification-row dd {
  margin: 0;
}

/* NAVIGATION */
.aircraft-links {
  padding: 0 12px;
  background: white;
  border-radius: 9px;
}

.aircraft-resource {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #dce9f7;
  font-weight: 700;
  line-height: 1.4;
}

.aircraft-resource:last-child {
  border-bottom: 0;
}

.aircraft-resource::after {
  content: "›";
  margin-left: auto;
  color: #17558f;
  font-size: 24px;
}

.aircraft-back {
  display: block;
  margin-top: 28px;
  border-radius: 30px;
  color: #17558f;
  text-align: center;
}

.aircraft-content a:focus-visible,
.gallery-dot:focus-visible {
  outline: 3px solid #17558f;
  outline-offset: 3px;
}

/* DESKTOP */
@media (min-width: 768px) {
  .aircraft-content {
    padding: 24px 50px 0;
  }

  .aircraft-content h1 {
    font-size: 48px;
  }

  .aircraft-content h2 {
    font-size: 28px;
  }

  .aircraft-content p {
    font-size: 19px;
  }

  .aircraft-card,
  .aircraft-fact {
    padding: 26px;
  }

  .glance-fact {
    padding-left: 70px;
  }

  .glance-fact:nth-child(even) {
    padding-left: 82px;
  }

  .glance-fact .fact-icon {
    width: 54px;
    height: 54px;
  }

  .glance-fact dt {
    font-size: 16px;
  }

  .glance-fact dd {
    font-size: 20px;
  }

  .specification-row {
    font-size: 18px;
  }
}
