/* ═══════════════════════════════════════════════════════
   ORTBITE — public pages (landing + public itinerary)
   ─────────────────────────────────────────────────────────
   Sits on top of ortbite.css. Only what the two public,
   logged-out pages need beyond the shared primitives.

   The old landing page genuinely scrolled sideways on a
   phone: .lp-bar was a single flex row holding the wordmark
   plus two full-size buttons with 28px side padding, which
   measured 360px of content inside a 311px viewport at
   320px wide. The top bar here is the shared .topbar and
   carries one action; the rest moves into the page.
═══════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.lp-hero { padding: 22px 0 8px; text-align: center; }

/* The TGL mark is a tall acrostic — the letters spell down the page, with a
   word beside each one. Sizing it by width squashes those words to a few
   illegible pixels, so it is sized by HEIGHT and left to find its own width.
   The old page gave it 224px; 150px is the phone equivalent. */
.lp-logo {
  display: block;
  height: 150px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(47,77,163,.08));
}

/* The ORTBO "August 2026" mark is not a logo file — it is a transparent
   1280×720 slide with the artwork sitting in one corner, so it has to be
   cropped to its content box or the page shows a mostly-empty rectangle.
   Exact content bounding box in the native canvas: x=219–409, y=257–470
   (190×213px). Image scaled to 910px wide (0.711×), content then at
   x=156–291, y=183–334, and the box adds 20px padding each side.
   Fixed size on purpose: it already fits inside a 320px viewport. */
.lp-logo-slide {
  display: block;
  position: relative;
  width: 175px;
  height: 192px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.lp-logo-slide img {
  position: absolute;
  width: 910px;
  height: auto;
  left: -136px;
  top: -163px;
  max-width: none;              /* the shared reset caps images at 100% */
}

.lp-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
}

.lp-title {
  margin-top: 8px;
  font-size: clamp(1.9rem, 9vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: break-word;
}

.lp-subtitle {
  margin-top: 9px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.lp-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .84rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

/* ── Attendee chips ──────────────────────────────────── */
/* A card list, not a wrapping row of fixed-width chips. Dense but word-safe:
   a long name wraps inside its own card instead of pushing the row wider. */
.lp-people { display: flex; flex-direction: column; gap: 8px; }

.lp-person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
}

.lp-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.lp-person-body { flex: 1; min-width: 0; }
.lp-person-name { font-size: .94rem; font-weight: 700; color: var(--ink); overflow-wrap: break-word; }
.lp-person-roles { margin-top: 2px; font-size: .78rem; color: var(--muted); overflow-wrap: break-word; }

@media (min-width: 520px) {
  .lp-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  /* Grid children default to min-width:auto and refuse to shrink below their
     content — a long name would push the column and blow out the page. */
  .lp-person { min-width: 0; }
}

/* ── Category bars ───────────────────────────────────── */
.lp-cats { display: flex; flex-direction: column; gap: 13px; }

.lp-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.lp-cat-name {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 7px;
  font-size: .89rem; font-weight: 600; color: var(--text);
  overflow-wrap: break-word;
}
.lp-cat-emoji { flex: none; font-style: normal; }
.lp-cat-amt {
  flex: none;
  font-size: .89rem; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lp-cat-amt small { margin-left: 5px; font-size: .76rem; font-weight: 600; color: var(--faint); }

.lp-cat-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.lp-cat-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  /* Width is a measured proportion, set from JS after render. */
  width: 0;
  transition: width .4s ease-out;
}
@media (prefers-reduced-motion: reduce) { .lp-cat-fill { transition: none; } }

/* ── Footer ──────────────────────────────────────────── */
.lp-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
  color: var(--faint);
  overflow-wrap: break-word;
}
.lp-foot-stale { margin-top: 4px; }

/* ── Public itinerary ────────────────────────────────── */
.pi-day { }
.pi-day-head {
  position: sticky;
  top: calc(var(--topbar-h) + var(--safe-t));
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 2px;
  /* Frosted, never opaque — a solid bar over a scrolling timeline reads as a
     seam. And no clip-path near this: it suppresses backdrop-filter. */
  background: rgba(245,246,249,.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pi-day-label {
  flex: 1; min-width: 0;
  font-size: .95rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.pi-day-count { flex: none; font-size: .76rem; color: var(--faint); font-weight: 600; }

.pi-items { display: flex; flex-direction: column; gap: 8px; }

/* Same card shape as the attendee timeline: time as a badge above the title,
   never a rigid three-column row that shatters on a phone. */
.pi-item { padding: 12px 14px; overflow-wrap: break-word; }
.pi-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pi-time {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pi-icon { flex: none; font-size: 1rem; font-style: normal; }
.pi-title { margin-top: 8px; font-size: .99rem; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: break-word; }
.pi-notes { margin-top: 5px; font-size: .87rem; color: var(--muted); line-height: 1.5; overflow-wrap: break-word; }

.pi-days { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 700px) {
  .lp-hero { padding: 34px 0 12px; }
  .lp-logo { height: 200px; }
}
