/* Travel & stay, more events, meal choice, guest photo sharing, the wishes wall.
   Loaded only by invitations that use one of them (see invite.php), before the theme stylesheet. */

/* ---------- Travel & stay ---------- */
.tr-intro { text-align: center; color: var(--muted); max-width: 32em; }
.tr-routes { display: grid; gap: 10px; margin: 0 auto 28px; max-width: 560px; }
.tr-routes > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tr-routes dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tr-routes dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.tr-h { font-family: var(--display); font-size: 1.35rem; text-align: center; margin: 6px auto 14px; }
.tr-stay { margin-bottom: 28px; }
.tr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; }
.tr-acts .btn-line { margin: 0; }
.tr-tips { max-width: 520px; margin: 0 auto; }
.tr-tips li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid var(--line); }
.tr-tips li::before { content: ""; position: absolute; left: 4px; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- More events (some private) ---------- */
.ev-only { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); }
.vn-c.is-private { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Meal choice in the reply form ---------- */
.rs-meal-l { display: grid; gap: 8px; }
.rs-meal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 10px; }
.rs-meal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Guest photo sharing ---------- */
.wl-intro { text-align: center; color: var(--muted); max-width: 30em; }
.wl-form { display: grid; justify-items: center; gap: 12px; max-width: 420px; margin: 0 auto 24px; }
.wl-form .f { width: 100%; }
.wl-pick { position: relative; overflow: hidden; }
.wl-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.wl-status { margin: 0; text-align: center; font-size: .92rem; }
.wl-bar { width: 100%; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.wl-gal .gal-i img { cursor: zoom-in; }

/* ---------- Wishes wall: notes pinned to a board ---------- */
.rs-pin { display: flex; align-items: flex-start; gap: 10px; margin: -4px 0 16px; font-size: .92rem; line-height: 1.4; cursor: pointer; }
.rs-pin input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.rs-pin small { display: block; color: var(--muted); font-size: .8rem; }
.ws-intro { text-align: center; color: var(--muted); max-width: 30em; }
.ws-form { display: grid; gap: 4px; max-width: 460px; margin: 0 auto 30px; }
.ws-form .f-l small { float: right; font-variant-numeric: tabular-nums; opacity: .75; }
.ws-form .btn-line { justify-self: center; margin-top: 6px; }
.ws-status { margin: 6px 0 0; text-align: center; font-size: .92rem; }
.ws-status.is-err { color: #b3261e; }
.ws-board { list-style: none; margin: 0 auto; padding: 4px 0 0; max-width: 640px; columns: 2 140px; column-gap: 12px; }
.ws-n { position: relative; break-inside: avoid; margin: 0 0 16px; padding: 22px 12px 12px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 7%, var(--paper, #fff)); color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 22px -16px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); }
.ws-n:nth-child(3n + 2) { transform: rotate(1.4deg); background: color-mix(in srgb, var(--accent) 13%, var(--paper, #fff)); }
.ws-n:nth-child(3n) { transform: rotate(-.4deg); }
.ws-n::before { content: ""; position: absolute; top: 7px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .75), transparent 45%), var(--accent); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.ws-t { margin: 0; font-size: .92rem; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.ws-by { margin: 10px 0 0; font-size: .8rem; letter-spacing: .08em; color: var(--muted); overflow-wrap: anywhere; }
.ws-by::before { content: "— "; }
.ws-n.is-new { animation: ws-pin .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ws-pin { from { opacity: 0; transform: translateY(-14px) rotate(-4deg) scale(.96); } }
.ws-empty { text-align: center; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .ws-n.is-new { animation: none; } }
/* Designs whose "paper" is light while their text is light too (Dance Card): cards take a tint of the text colour instead */
.t-dancecard .tr-routes > div, .t-dancecard .ws-n, .t-dancecard .ws-n:nth-child(3n + 2) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ev-only, .vn-note { overflow-wrap: break-word; }
/* Watch it live */
.lv-c { text-align: center; }
.lv-btn { gap: 10px; margin-top: 4px; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: #d33; box-shadow: 0 0 0 0 rgba(221,51,51,.5); animation: lv-pulse 1.8s ease-out infinite; flex: none; }
@keyframes lv-pulse { to { box-shadow: 0 0 0 9px rgba(221,51,51,0); } }
@media (prefers-reduced-motion: reduce) { .lv-dot { animation: none; } }
.lv-app { margin: 10px 0 0; font-size: .82rem; opacity: .75; }
/* Announcement bar (Basics → Announcement): after the opening, pinned to the bottom of the screen until closed */
.nt { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: flex-start; gap: 10px; max-width: 560px; margin: 0 auto;
  padding: 12px 10px 12px 14px; border-radius: 16px; background: #1c1a24; color: #fff; font: 500 .94rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  animation: nt-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.intro-lock .nt, .is-opening:not(.is-opened) .nt { display: none; }
.nt p { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nt-ic { flex: none; font-size: 1.1rem; line-height: 1.3; }
.nt-x { flex: none; width: 34px; height: 34px; margin: -6px -2px -6px 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
@keyframes nt-in { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nt { animation: none; } }
.t-app .nt { bottom: calc(80px + env(safe-area-inset-bottom)); }
.t-thread .nt, .t-stories .nt { bottom: calc(76px + env(safe-area-inset-bottom)); }
.is-demo .nt { bottom: calc(78px + env(safe-area-inset-bottom)); }
