/* First Class trial reminders (airshow_trial_notice.js): a printed cabin announcement that slides out under the
   top bar when 10 hours and when 1 hour are left. Paper with the First Class band of the boarding pass along its
   top edge, navy type, one navy action and a quiet one. It sits in the free strip under the top bar, so the map,
   the flight and the docks stay uncovered; the script measures that strip and passes it in as variables. */
.trial-notice {
  --tn-paper: #f8f6f1;
  --tn-ink: #17182d;
  --tn-text: #3b3d52;
  --tn-muted: #5f6072;
  --tn-rule: rgba(23, 24, 45, 0.28);
  --tn-navy: #1d0d78;
  --tn-band: linear-gradient(90deg, #96b8ff, #cf9eff);
  position: absolute;
  top: var(--trial-notice-y, 64px);
  left: var(--trial-notice-x, 50%);
  z-index: 1304; /* over the map and its docks, under the top bar (1306) and the panels it opens */
  display: flex;
  justify-content: center;
  width: var(--trial-notice-w, 760px);
  font-family: var(--airshow-ui-font-family, "Pretendard Variable", sans-serif);
  color: var(--tn-ink);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.trial-notice[hidden] { display: none; }
.trial-notice.open {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Only the paper takes taps; the rest of the strip stays part of the map. */
.trial-notice.open .trial-notice-paper { pointer-events: auto; }
.trial-notice.is-flipped {
  top: auto;
  bottom: var(--trial-notice-y, 64px);
  transform: translateY(8px);
}
.trial-notice.is-flipped.open { transform: none; }

/* The paper is as wide as its words, centred in the strip the script found. */
.trial-notice-paper {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  padding: 14px 14px 13px 16px;
  border-radius: 10px;
  background: var(--tn-band) top / 100% 4px no-repeat, var(--tn-paper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.trial-notice-pa {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--tn-navy);
}
.trial-notice-text {
  flex: 1 1 auto;
  min-width: 0;
}
.trial-notice-kicker {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tn-muted);
}
.trial-notice-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.trial-notice-line {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tn-text);
  text-wrap: pretty;
}
.trial-notice-line b {
  font-weight: 700;
  color: var(--tn-ink);
  white-space: nowrap;
}
.trial-notice-short { display: none; }
.trial-notice-actions {
  flex: none;
  display: flex;
  gap: 8px;
}
.trial-notice-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.trial-notice-keep {
  border: 0;
  background: var(--tn-navy);
  color: #fff;
}
.trial-notice-keep:hover,
.trial-notice-keep:focus-visible { background: #2d1ba8; }
.trial-notice-quiet {
  border: 1px solid var(--tn-rule);
  background: transparent;
  color: var(--tn-ink);
}
.trial-notice-quiet:hover,
.trial-notice-quiet:focus-visible {
  border-color: rgba(23, 24, 45, 0.45);
  background: rgba(23, 24, 45, 0.06);
}
.trial-notice-btn:focus-visible {
  outline: 2px solid #004aad;
  outline-offset: 2px;
}

/* A narrow strip (phones): the title and one short line, then the two keys on their own row. */
.trial-notice.is-compact .trial-notice-paper {
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  padding: 11px 10px 10px 12px;
}
.trial-notice.is-compact .trial-notice-pa {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.trial-notice.is-compact .trial-notice-text { flex-basis: calc(100% - 30px); }
.trial-notice.is-compact .trial-notice-kicker { display: none; }
.trial-notice.is-compact .trial-notice-title { font-size: 15px; }
.trial-notice.is-compact .trial-notice-line {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
}
.trial-notice.is-compact .trial-notice-full { display: none; }
.trial-notice.is-compact .trial-notice-short { display: inline; }
.trial-notice.is-compact .trial-notice-actions {
  box-sizing: border-box;
  flex-basis: 100%;
  padding-left: 30px;
}
.trial-notice.is-compact .trial-notice-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.trial-notice.is-compact .trial-notice-keep { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  .trial-notice,
  .trial-notice.open,
  .trial-notice.is-flipped {
    transform: none;
    transition: none;
  }
}
