/* Boarding-pass calculator: the signature component */
.pass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px var(--ink);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  justify-self: end;
}
.pass__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  background: var(--brand);
  color: var(--surface);
  font-size: .85rem;
  letter-spacing: .04em;
}
.pass__label { font-weight: 700; text-transform: uppercase; }
.pass__code { opacity: .85; font-variant-numeric: tabular-nums; }
.pass__body {
  display: grid;
  gap: .9rem;
  padding: 1.25rem 1.25rem 1rem;
}
.pass__body input,
.pass__body select { min-width: 64px; width: 100%; }
.pass__stub {
  position: relative;
  padding: 1rem 1.25rem 1.1rem;
  border-top: 2px dashed var(--border);
}
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
}
.pass__stub::before { left: -11px; }
.pass__stub::after { right: -11px; }
.pass__stub .result-label {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pass__stub .result-value {
  margin: .15rem 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.pass__stub .result-sub { margin: 0; color: var(--ink); font-size: .9rem; }
.pass__note {
  margin: 0;
  padding: .75rem 1.25rem 1rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.pass__note a { color: var(--brand); }
@media (max-width: 860px) {
  .pass { justify-self: stretch; max-width: none; margin-top: 1.5rem; }
}

/* Hero image: shorter, with a readable credit */
.hero img,
.hero__media,
.hero__image {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}
.hero__media,
.hero__image { overflow: hidden; }
.hero figcaption,
.hero [class*="credit"] {
  font-size: .85rem;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  padding: .25rem .6rem;
}

/* Cards and tables: no truncated text, aligned equal-height cards */
lg-cards [class*="grid"] { align-items: stretch; }
lg-cards [class*="card"] { height: 100%; align-items: flex-start; }
lg-cards [class*="card"] > *:last-child { min-height: 1.4em; }
lg-cards *,
lg-table td,
lg-table th,
[class*="similar"] *,
[class*="related"] * {
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow-wrap: anywhere;
}
lg-cards [class*="meta"],
lg-cards [class*="label"],
lg-cards [class*="kicker"],
[class*="similar"] [class*="label"],
[class*="similar"] [class*="kicker"],
[class*="related"] [class*="label"],
[class*="related"] [class*="kicker"] {
  overflow: visible;
}