/* Wayfinder Trips. Wayfinder's palette (blue #2563eb, amber #fbbf24, ink #111827, Inter), light. */

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --edge: #e3e8f2;
  --ink: #111827;
  --muted: #5b6475;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #e8efff;
  --amber: #fbbf24;
  --amber-soft: #fff6dc;
  --red: #dc2626;
  font-family: Inter, "SF Pro Text", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.1rem; margin-top: 28px; }
h3 { font-size: 1.05rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
.muted { color: var(--muted); }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); background: var(--card); border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.brand b { color: var(--blue); font-weight: 700; }
.brand img { border-radius: 8px; }
.account { display: flex; align-items: center; gap: 14px; }
.who { font-weight: 600; }

.page { width: min(1120px, 100%); margin: 0 auto; padding: 28px 16px 48px; }
.foot { padding: 18px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--edge); background: var(--card); }

.button {
  display: inline-block; border: 0; border-radius: 10px; padding: 10px 18px; background: var(--blue); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--blue-deep); }
.button:disabled { background: #c7cfdd; cursor: not-allowed; }
.button.ghost { background: transparent; color: var(--blue); border: 1px solid var(--edge); }
.button.ghost:hover { background: var(--blue-soft); }
.button.danger { background: var(--red); }
.button.small { padding: 6px 12px; font-size: 0.9rem; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }

.hero { max-width: 640px; margin: 56px auto; text-align: center; }
.hero h1 { font-size: 2.3rem; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin-bottom: 24px; }
.notice { background: var(--amber-soft); border: 1px solid #f5d27a; border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.trip {
  display: block; background: var(--card); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden;
  color: inherit; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s;
}
.trip:hover { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08); transform: translateY(-2px); }
.trip-body { padding: 14px 16px 16px; }
.trip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trip p { margin: 4px 0 0; font-size: 0.92rem; }
.relation { font-weight: 500; }
.cancelled .cover { filter: grayscale(1); opacity: 0.6; }
.status { color: var(--red); font-weight: 600; }
.empty { padding: 18px; border: 1px dashed var(--edge); border-radius: 12px; background: var(--card); }

.cover { height: 96px; }
.cover.large { height: 160px; border-radius: 12px; margin-bottom: 18px; }
.cover-tokyo { background: linear-gradient(135deg, #f9a8d4, #c084fc); }
.cover-lisbon { background: linear-gradient(135deg, #fde68a, #f97316); }
.cover-cape-town { background: linear-gradient(135deg, #86efac, #0ea5e9); }
.cover-reykjavik { background: linear-gradient(135deg, #67e8f9, #1e3a8a); }

.badge { white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; }
.badge.manage { background: var(--blue-soft); color: var(--blue-deep); }
.badge.view { background: #eef0f4; color: #374151; }

.panel { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.panel h2 { margin-top: 0; }
.access { position: sticky; top: 16px; }
.access p { font-size: 0.9rem; line-height: 1.5; }
.scopes { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; }
.scopes code { background: var(--blue-soft); color: var(--blue-deep); padding: 3px 8px; border-radius: 6px; }

dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 18px 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 500; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions p { margin: 0; font-size: 0.92rem; }

.shares { list-style: none; padding: 0; margin: 0 0 16px; }
.shares li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--edge); }
.shares li span:first-child { flex: 1; font-weight: 500; }
.shares form { margin: 0; }
.share { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.share label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.share select { font: inherit; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; min-width: 180px; }
