:root {
  --focus-ring: #2f6fed;
  --soft-ink: #304563;
}

/* Put the product in the first viewport without losing the editorial introduction. */
.hero {
  padding: 50px 0 76px;
}

.hero-copy {
  max-width: 900px;
  margin-bottom: 34px;
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
}

.lede {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.48;
}

.search-panel {
  border-radius: 22px;
  box-shadow: 0 22px 56px #13223812;
}

.search-intro {
  margin-bottom: 20px;
}

.search-intro h2 {
  margin-top: 9px;
  font-size: 30px;
}

.search-submit-row {
  padding-top: 2px;
}

#search-button {
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px #2f6fed25;
}

/* One clear reason per result. Supporting evidence stays inside the card. */
#results article {
  position: relative;
  border-color: #d7dce4;
  box-shadow: 0 8px 24px #13223808;
}

#results article.featured,
#results article.best-choice {
  border-color: #8fb0e8;
  background: linear-gradient(180deg, #f8faff 0, #fff 132px);
  box-shadow: 0 14px 34px #2f6fed12;
}

#results article > .friendly-verdict {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 13px;
  max-width: 42%;
  padding: 5px 8px;
  border: 1px solid #d7e2f6;
  border-radius: 999px;
  color: #173a73;
  background: #f4f7fd;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

#results article > .best-choice-label {
  padding: 11px 160px 11px 15px;
  border-bottom: 1px solid #dfe6f1;
  background: #eef3ff;
}

#results article > .best-choice-label strong,
#results article > .best-choice-label span {
  display: block;
}

#results article > .best-choice-label strong {
  color: var(--navy);
  font-size: 11px;
}

#results article > .best-choice-label span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

#results article .result-label {
  display: inline-block;
  margin-bottom: 8px;
}

#results article .compare-toggle,
#results article .itinerary-compare-toggle {
  width: auto;
  min-width: 88px;
}

#results article > div:not([class]) {
  padding: 16px 17px 13px;
}

#results article h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

#results article .carrier-row {
  margin: 9px 0;
}

#results article .result-metrics {
  gap: 6px;
  margin-top: 10px;
}

#results article .result-metrics span {
  padding: 8px 9px;
  border: 1px solid #eceef1;
  background: #fafaf8;
}

#results article .wayzuno-explainer {
  margin-top: 9px;
}

#results article > .cabin-clarity {
  margin: 0 17px 12px;
  padding: 9px 11px;
  border: 1px solid #eadfbd;
  border-radius: 9px;
  color: #604b1d;
  background: #fffaf0;
}

#results article > .cabin-clarity strong,
#results article > .cabin-clarity span {
  display: block;
}

#results article > .cabin-clarity strong {
  font-size: 10px;
}

#results article > .cabin-clarity span {
  margin-top: 2px;
  font-size: 9px;
}

#results article .result-actions {
  margin-top: 0;
  padding: 12px 16px 15px;
  border-top: 1px solid #e6e9ee;
  background: #fcfcfb;
}

#results article .result-price {
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -.045em;
}

#results article .check-booking {
  min-height: 44px;
  padding-inline: 16px;
}

#results article .itinerary-compare-toggle {
  width: auto;
  min-width: 88px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 28%, transparent);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    height: 70px;
  }

  .hero {
    padding: 34px 0 54px;
  }

  .hero-copy {
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .lede {
    font-size: 16px;
  }

  .search-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .search-intro {
    padding-right: 0;
  }

  .search-intro h2 {
    font-size: 27px;
  }

  #results article > .friendly-verdict {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    max-width: none;
    margin: 10px 14px 0;
  }

  #results article > .best-choice-label {
    padding: 10px 14px;
  }

  #results article > div:not([class]) {
    padding: 14px;
  }

  #results article .result-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
    gap: 8px 10px;
    padding: 12px 14px 14px;
  }

  #results article .result-price {
    grid-column: 1;
    grid-row: 1;
  }

  #results article .compare-toggle,
  #results article .itinerary-compare-toggle {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  #results article .check-booking {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
  }

  #results article > .cabin-clarity {
    margin: 0 14px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
