/* ==========================================================================
   What's New — public changelog timeline (/whats-new)
   Served automatically by stylesheet_link_tag :app (Propshaft bulk helper),
   same as homepage/styles.css. All selectors are wn- prefixed.
   ========================================================================== */

/* Fill the viewport so short pages don't expose the layout's dark main
   background as a band between the light section and the footer. */
.wn-fill {
  min-height: calc(100vh - 90px);
}

.wn-container {
  max-width: 840px;
}

.wn-intro {
  max-width: 560px;
}

/* ── Month jump nav ──────────────────────────────────────────────── */

.wn-month-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.wn-month-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #333f52;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.wn-month-nav a:hover {
  border-color: #16a34a;
  color: #16a34a;
}

/* ── Timeline rail ───────────────────────────────────────────────── */

.wn-timeline {
  position: relative;
  padding-left: 28px;
}

.wn-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1px;
}

.wn-month-header {
  position: relative;
  margin: 40px 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #333f52;
  scroll-margin-top: 80px;
}

.wn-month-header:first-of-type {
  margin-top: 0;
}

/* Month marker dot on the rail */
.wn-month-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -27px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #16a34a;
  border: 3px solid #f5f7fb;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
}

/* ── Entry cards ─────────────────────────────────────────────────── */

.wn-entry {
  position: relative;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}

/* Entry tick on the rail (timeline only — detail pages reuse .wn-entry as a plain card) */
.wn-timeline .wn-entry::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.wn-entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wn-entry-meta time {
  font-size: 13px;
  color: #6c757d;
}

.wn-entry-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.wn-entry-title a {
  color: inherit;
  text-decoration: none;
}

.wn-entry-title a:hover {
  color: #16a34a;
  text-decoration: underline;
}

.wn-entry-image {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.wn-entry-body {
  color: #444f63;
}

.wn-entry-body p:last-child {
  margin-bottom: 0;
}

.wn-action-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid #16a34a;
  border-radius: 0 8px 8px 0;
  background: rgba(22, 163, 74, 0.07);
  color: #333f52;
  font-size: 0.925rem;
}

.wn-entry-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
}

.wn-entry-link:hover {
  color: #128a3f;
  text-decoration: underline;
}

.wn-entry-link::after {
  content: " \2192";
}

/* ── Entry scenes ────────────────────────────────────────────────────
   Hand-built HTML/CSS graphics inside entry body partials (no images).
   Wrapped in aria-hidden containers — purely decorative product vignettes. */

.wn-scene {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #f4f7fb 0%, #eff7f2 100%);
  font-size: 13px;
  line-height: 1.35;
  color: #333f52;
  user-select: none;
}

.wn-scene-card {
  background: #ffffff;
  border: 1px solid rgba(20, 40, 70, 0.1);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07);
  padding: 12px 14px;
}

.wn-scene-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.wn-scene-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 16px;
}

.wn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(51, 63, 82, 0.07);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.wn-chip--ok {
  background: rgba(22, 163, 74, 0.12);
  color: #128a3f;
}

.wn-chip--muted {
  background: transparent;
  border: 1px dashed rgba(51, 63, 82, 0.25);
  color: #6c757d;
}

.wn-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(20, 40, 70, 0.15);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.wn-pill--on {
  border-color: #16a34a;
  color: #128a3f;
  box-shadow: inset 0 0 0 1px #16a34a;
}

.wn-pill--off {
  background: #f8f9fa;
  color: #adb5bd;
  text-decoration: line-through;
}

.wn-scene-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6c757d;
}

/* Refund flow — reservation row, confirm step, refunded outcome */

.wn-refund {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wn-refund-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wn-refund-guest {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.wn-refund-guest span {
  font-size: 12px;
  color: #6c757d;
}

.wn-refund-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wn-refund-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wn-refund-amount {
  font-size: 15px;
  font-weight: 700;
}

.wn-refund-pass {
  font-size: 11px;
  color: #6c757d;
  letter-spacing: 1px;
}

.wn-refund-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Attribution journey — ad click → branded booking host → tracked booking */

.wn-journey {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.wn-journey-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wn-journey-step .wn-scene-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.wn-browser-dots {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6dbe3;
  box-shadow: 10px 0 0 #d6dbe3, 20px 0 0 #d6dbe3;
  margin-right: 16px;
}

.wn-browser-url {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn-browser-url b {
  color: #128a3f;
}

.wn-journey-result {
  flex-wrap: wrap;
}

/* Waiver tablet — live signing frame */

.wn-waiver {
  display: flex;
  justify-content: center;
}

.wn-tablet {
  width: 100%;
  max-width: 320px;
  padding: 14px 12px;
  border-radius: 20px;
  background: #1f2937;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.18);
}

.wn-tablet-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #ffffff;
}

.wn-waiver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.wn-waiver-line {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
  color: #6c757d;
}

.wn-waiver-sig {
  padding: 6px 10px;
  border: 1px dashed rgba(51, 63, 82, 0.3);
  border-radius: 8px;
}

.wn-waiver-sig svg {
  display: block;
  width: 100%;
  height: 34px;
}

.wn-waiver .wn-scene-btn {
  justify-content: center;
}

/* Rental picker — durations, start times, live availability */

.wn-rental {
  display: flex;
  justify-content: center;
}

.wn-rental-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wn-rental-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wn-rental-opts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wn-rental .wn-scene-btn {
  justify-content: center;
}

/* Charter pipeline — request lifecycle and detail card */

.wn-charter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wn-charter-stages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wn-charter-stages i {
  font-style: normal;
  color: #94a3b8;
  font-size: 12px;
}

.wn-charter-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wn-charter-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 575.98px) {
  .wn-journey {
    flex-direction: column;
  }

  .wn-journey .wn-scene-arrow {
    transform: rotate(90deg);
  }
}

/* ── Detail pages ────────────────────────────────────────────────── */

.wn-back-link {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
}

.wn-back-link:hover {
  color: #16a34a;
}

@media (max-width: 575.98px) {
  .wn-timeline {
    padding-left: 20px;
  }

  .wn-timeline::before {
    left: 4px;
  }

  .wn-month-header::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }

  .wn-entry {
    padding: 18px 20px;
  }

  .wn-entry::before {
    left: -20px;
  }
}
