:root {
    --ink: #162b39;
    --muted: #4d6170;
    --line: #dce5eb;
    --blue: #1755ad;
    --paper: #f2f6f9;
}
body { color: var(--ink); background: var(--paper); min-height: 100vh; }
a { color: var(--blue); }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
.shell { max-width: 1120px; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .top-nav, .brand { display: flex; align-items: center; }
.topbar-inner { min-height: 74px; justify-content: space-between; gap: 14px; padding-block: 12px; }
.brand { color: var(--ink); font-weight: 750; gap: 10px; text-decoration: none; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; font-size: .64rem; color: var(--muted); letter-spacing: .11em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--blue); color: white; }
.top-nav { flex-wrap: wrap; gap: 6px; }
.top-nav a, .nav-button { color: var(--ink); text-decoration: none; font-weight: 650; padding: 8px 10px; border-radius: 8px; font-size: .9rem; display: inline-block; }
.top-nav a:hover, .nav-button:hover, .top-nav a[aria-current] { background: #e6effb; color: #14498d; }
.nav-button { border: 0; background: transparent; }
.main-shell { padding-top: clamp(24px, 5vw, 56px); padding-bottom: 32px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 25px #182e4410; min-width: 0; }
.welcome-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.welcome, .banner { background: radial-gradient(ellipse at 98% 0%, #277386 0%, transparent 64%), linear-gradient(135deg, #162d4f, #16485e); color: white; border-radius: 22px; }
.welcome { padding: clamp(28px, 7vw, 72px); }
.welcome h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: .98; margin: 12px 0 24px; }
.welcome > p:not(.eyebrow), .banner > p:not(.eyebrow), .profile-banner p:not(.eyebrow) { color: #e1f0f4; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #b6e6df; font-weight: 750; margin-bottom: 8px; }
.welcome-tags, .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-tags span, .tags span { border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 650; }
.welcome-tags span { border: 1px solid #ffffff65; }
.tags span { background: #eaf2fb; color: #1b4e80; }
.auth { padding: clamp(24px, 5vw, 44px); align-self: center; }
.form-stack { display: grid; gap: 15px; }
.form-stack label { font-weight: 600; }
.form-stack label .form-control, .form-stack label .form-select { margin-top: 5px; }
.form-stack small { margin-top: -10px; }
.form-control, .form-select, .btn { min-height: 44px; border-radius: 9px; }
.btn-primary { --bs-btn-bg: #1755ad; --bs-btn-border-color: #1755ad; --bs-btn-hover-bg: #123f82; --bs-btn-hover-border-color: #123f82; }
.muted, .site-footer { color: var(--muted); }
.form-footer { margin: 19px 0 0; }
.banner { padding: clamp(24px, 5vw, 46px); margin-bottom: 22px; }
.banner h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 8px; }
.banner p:last-child { margin-bottom: 0; }
.search-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.search-bar .form-control { flex: 1 1 230px; width: auto; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.member { padding: 20px; }
.member-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.member-heading h2 { margin: 0; }
.member-email { margin: 3px 0 0; font-size: .85rem; }
.avatar { display: inline-block; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.avatar[hidden] { display: none; }
.initials { display: inline-grid; place-items: center; color: #124b70; background: #dceef6; font-weight: 750; text-transform: uppercase; }
.avatar-large { width: 82px; height: 82px; font-size: 1.5rem; }
.profile-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.profile-facts dt { font-size: .85rem; color: var(--muted); }
.profile-facts dd { margin: 0 0 4px; overflow-wrap: anywhere; }
.profile-banner { display: flex; align-items: center; gap: 20px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings, .empty { padding: clamp(19px, 4vw, 30px); }
.delete-panel { margin-top: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.align-start { justify-self: start; }
.edit-link, .back-link { display: inline-block; margin-top: 14px; font-weight: 650; }
.back-link { margin: 0 0 12px; }
.pager { display: flex; justify-content: center; gap: 15px; margin-top: 23px; }
.site-footer { padding-bottom: 28px; font-size: .85rem; }
@media (max-width: 767px) {
    .welcome-grid, .profile-layout { grid-template-columns: 1fr; }
    .topbar-inner { flex-wrap: wrap; }
    .top-nav a, .nav-button { padding: 6px 8px; }
}
@media (max-width: 400px) {
    .field-pair { grid-template-columns: 1fr; }
    .profile-banner { gap: 12px; }
    .profile-banner .avatar-large { width: 56px; height: 56px; }
}

.trip-toolbar, .trip-actions, .trip-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trip-toolbar { justify-content: space-between; margin-bottom: 24px; }
.trip-filter .form-select { width: auto; }
.trip-feed { display: grid; gap: 22px; }
.trip-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; }
.trip-date { background: #dcecf3; padding: 28px 20px; display: flex; flex-direction: column; gap: 2px; }
.trip-date strong { font-size: 2.4rem; letter-spacing: -.05em; }
.trip-date span { font-size: .67rem; letter-spacing: .08em; font-weight: 750; }
.trip-card-content { padding: 28px; }
.trip-card h2 { font-size: 1.65rem; }
.trip-card h2 a { color: var(--ink); text-decoration: none; }
.trip-card h2 a:hover { text-decoration: underline; }
.trip-meta { color: var(--muted); font-weight: 650; }
.trip-excerpt { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.trip-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.share-link { display: block; font-weight: 600; }
.share-link input { margin-top: 5px; }
.trip-snapshot { font-size: .9rem; }
.participant-scroll { border: 1px solid var(--line); border-radius: 12px; background: white; }
.participant-table { margin: 0; min-width: 940px; }
.participant-table td, .participant-table th { padding: 12px; vertical-align: top; overflow-wrap: anywhere; max-width: 240px; }
.participant-table caption { padding: 12px; }
@media (max-width: 600px) {
    .trip-card { grid-template-columns: 1fr; }
    .trip-date { padding: 12px 22px; flex-direction: row; align-items: center; gap: 12px; }
    .trip-date strong { font-size: 1.5rem; }
    .trip-card-content { padding: 22px; }
}

.privacy-document { max-width: 900px; margin-inline: auto; }
.privacy-document h2 { margin-top: 1.7rem; }
.privacy-document p { line-height: 1.65; overflow-wrap: anywhere; }
