/* ── SUMMIT UI — mobile-first, max-width 512px ───────────────────────── */

:root {
  --accent: #a70000;
  --accent-light: rgba(167, 0, 0, 0.08);
  --ink: #1a1917;
  --ink2: #6b6b6b;
  --ink3: #9e9e9e;
  --bg: #f5f4f3;
  --bg2: #f3f2ec;
  --card: #ffffff;
  --border: #e2ddd8;
  --teal: #3C4A66;
  --gold: #CDA23C;
  --radius: 16px;
  --radius-sm: 10px;
  --bottom-bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.header-font{
    font-family: 'Unbounded', sans-serif;
}

/* ── GATE (keep existing) ── */
#gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  position: fixed;
  inset: 0;
  z-index: 1000;
  flex-direction: column;
  gap: 20px;
}
#gate h1 { font-size: 32px; font-weight: 800; color: var(--ink); }
#gate h2 { font-size: 18px; color: var(--accent); font-style: italic; font-weight: 500; }
#gate p { color: var(--ink3); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
#gate input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--ink);
  font-size: 18px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  width: 220px;
}
#gate input:focus { border-color: var(--accent); }
#gate .err { color: var(--accent); font-size: 13px; min-height: 18px; }
#gate .gate-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#gate .gate-label { color: var(--ink2); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; max-width: 320px; }
#gate input.gate-text-input { text-align: left; letter-spacing: 0; padding-left: 10px; width: 100%; }
#gate .gate-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}
#gate .gate-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
#gate .gate-msg { color: var(--ink3); font-size: 12px; min-height: 16px; text-align: center; max-width: 320px; }
#gate .gate-or { color: var(--ink3); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }

/* ── APP SHELL ── */
#app {
  display: none;
  max-width: 512px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ── TOP HEADER ── */
.summit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}
.summit-header .back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--ink2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.summit-header .back-btn svg { width: 18px; height: 18px; }
.summit-header .page-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.event-logo img{
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  object-fit: contain;
}
.summit-header .event-logo img { width: 50px; height: 50px; object-fit: contain; }
.summit-header .event-logo-placeholder {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: repeating-conic-gradient(rgba(255,255,255,0.3) 0deg 30deg, transparent 30deg 60deg);
}

/* ── MAIN CONTENT ── */
.summit-main {
  padding: 0 0 calc(var(--bottom-bar) + 16px);
}
.summit-view { display: none; }
.summit-view.active { display: block; }

/* ── BOTTOM TAB BAR ── */
.summit-tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  /* Combine your centering transform with Safari hardware acceleration */
  transform: translateX(-50%) translate3d(0, 0, 0);
  -webkit-transform: translateX(-50%) translate3d(0, 0, 0);
  
  width: 100%;
  max-width: 512px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 100;
  
  /* Retain your padding while safely injecting dynamic device safe areas */
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  
  /* Fallback fix for height calculations inside parent wrappers */
  box-sizing: border-box; 
}

.summit-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.summit-tab svg { width: 24px; height: 24px; stroke-width: 1.8; }
.summit-tab span { font-size: 11px; font-weight: 500; }
.summit-tab.active { color: var(--accent); }
.summit-tab.active svg { stroke-width: 2.4; }
.summit-tab:active { transform: scale(0.94); }

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 20px;
  margin-bottom: 24px;
}

.home-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.home-subtitle {
  margin-top: 6px;
  font-size: 13px;
  opacity: .7;
  color: var(--ink2);
}

.home-header .event-logo img {
  width: 56px;
  height: 56px;
}

.quick-card-icon{
    height: 30px;
    width: 30px;
}

.packing-section { margin-bottom: 24px; }

.packing-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px 6px;
  background: var(--bg-secondary, #f5f4f1);
  border-radius: 8px;
  margin-bottom: 4px;
}

.packing-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light, #ebebeb);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.packing-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.packing-item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.packing-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

.packing-item-comment {
  color: var(--ink3); font-size: 14px; line-height: 1.7;
}

.packing-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.packing-meta-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary, #f5f4f1);
  padding: 2px 8px;
  border-radius: 12px;
}

.packing-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #3B5BDB);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid currentColor;
}

/* ── TYPOGRAPHY UTILS ── */
.page-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  padding: 20px 20px 4px;
  letter-spacing: -0.5px;
  font-family: "Unbounded", sans-serif;
}
.page-sub {
  font-size: 14px;
  color: var(--ink3);
  padding: 0 20px 16px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 16px 20px 8px;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-padded { padding: 16px; }

/* ── HOME VIEW ── */
.home-pad { padding: 0 20px; }
.home-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 8px;
}
.home-event-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.home-event-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-event-logo-inner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: repeating-conic-gradient(rgba(255,255,255,0.3) 0deg 30deg, transparent 30deg 60deg);
}
.home-event-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; flex: 1; }
.home-event-subtitle { font-size: 14px; color: var(--ink3); margin-top: 2px; }
.home-divider { height: 1px; background: var(--border); margin: 8px 20px 16px; }

/* Hero announcement card */
.hero-card {
  margin: 0 20px 16px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.hero-card-body { font-size: 14px; line-height: 1.6; opacity: 0.9; margin-bottom: 16px; }
.hero-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hero-card-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hero-card-link { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; text-decoration: none; }
.hero-card-link:hover { color: #fff; }

/* Notification card */
.notif-card {
  margin: 0 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  display: none;
}
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #f5e8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.notif-body { font-size: 13px; color: var(--ink2); line-height: 1.4; margin-bottom: 10px; }
.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}
.notif-date { font-size: 12px; color: var(--ink3); margin-top: 8px; }

/* Weather strip */
.weather-strip {
  margin: 0 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink2);
}
.weather-strip .temp { margin-left: auto; font-weight: 600; color: var(--ink); font-size: 16px; }

/* Quick link cards */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 20px 16px;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border)!important;
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.quick-card:active { background: var(--bg2); }
.quick-card-icon { font-size: 22px; }
.quick-card-title { font-size: 16px; font-weight: 500; line-height: 30px; }
.quick-card-sub { font-size: 12px; color: var(--ink3); line-height: 15px; }
.quick-card-sub-link { font-size: 12px; color: var(--ink3); text-decoration: underline; }
.quick-card-sub-links{ display: flex; align-items: center; gap: 30px;}

.content-page {
  padding: 24px;
}

.back-link {
  border: none;
  background: none;
  font-size: 15px;
  margin-bottom: 24px;
  cursor: pointer;
  width: 50%;
}

.page-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-bottom: 12px;
}

.content-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

.content-card {
  background: white;
  border: 1px solid #ece7df;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
}

.principle {
  margin-top: 28px;
}

.principle h3 {
  margin-bottom: 8px;
}

.principle p{
    font-size: 14px;
    color:var(--ink2)
}

.content-description{
     font-size: 14px;
    color:var(--ink2)
}

/* Search */
.search-bar {
  margin: 0 20px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.search-bar input::placeholder { color: var(--ink3); }
.search-bar svg { color: var(--ink3); width: 18px; height: 18px; flex-shrink: 0; }

.schedule-note {
  font-size: 14px;
  color: var(--ink3);
  padding: 0 10px 10px;
}
 
/* ── Day groups ── */
.timeline {
  padding: 0 20px calc(var(--bottom-bar) + 8px);
}
.tl-day { margin-bottom: 28px; }
.tl-day:last-child { margin-bottom: 0; }
 
.tl-day-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.tl-day-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.tl-day-date {
  font-size: 13px;
  color: var(--ink3);
}
.tl-day-weather {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg2);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
 
/* ── Rows: time | dot+line | card ── */
.tl-events { display: flex; flex-direction: column; }
 
.tl-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
 
.tl-time {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 14px;
  line-height: 1.1;
}
.tl-time-main { font-size: 16px; font-weight: 700; color: var(--ink); }
.tl-time-period { font-size: 11px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.04em; }
 
.tl-marker {
  width: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding-top: 18px;
}
.tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ink3);
  flex-shrink: 0;
}
.tl-line {
  width: 2px;
  flex: 1;
  margin-top: 4px;
  background: var(--border);
  border-radius: 1px;
}
 
.tl-event {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, opacity 0.2s;
}
.tl-event:active { background: var(--bg2); }
 
.tl-event-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  padding-right: 28px;
}
 
.tl-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}
 
.tl-event-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink2);
}
.tl-event-loc svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink3); }
 
/* Happening-now tag */
.tl-now-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(167,0,0,0.08);
  border-radius: 20px;
  padding: 3px 9px;
}
 
/* Highlighted: relevant / assigned to the logged-in camper */
.tl-event.is-highlight {
  background: #D4DBFF;
  border-color: rgba(59,91,219,0.25);
}
.tl-event.is-highlight .tl-event-loc { color: #2c3e8f; }
 
/* Past: time has elapsed */
.tl-event.is-past {
  opacity: 0.45;
}
.tl-row:has(.tl-event.is-past) .tl-dot { border-color: var(--border); }
 
/* ════════════════════════════════════════════════════════════════════
   EVENT DETAIL — bottom sheet
   ════════════════════════════════════════════════════════════════════ */
.sheet-overlay {
  position: fixed;
  /* Older Safari fix: Replace unsupported 'inset: 0' with legacy properties */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
}
.sheet-overlay.open { 
  pointer-events: auto; 
}
 
.sheet-backdrop {
  position: fixed;
  /* Older Safari fix: Replace unsupported 'inset: 0' with legacy properties */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  
  /* Prevent layer flickering during backdrop fade animations */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}
.sheet-overlay.open .sheet-backdrop { 
  opacity: 1; 
}
 
.sheet-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  
  /* Initial state: Anchors hardware acceleration while hidden off-screen */
  transform: translate(-50%, 100%) translate3d(0, 0, 0);
  -webkit-transform: translate(-50%, 100%) translate3d(0, 0, 0);
  
  width: 100%;
  
  /* Height fixes: Prevents Safari toolbar changes from clipping content */
  max-height: 82vh; 
  max-height: calc(-webkit-fill-available * 0.82); 
  max-height: 82dvh; 
  
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Fixes rigid/frozen touch scrolling in iOS */
  
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 14px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-sizing: border-box;
}

/* Active state: Crucial to repeat the translate3d so Safari keeps it on the GPU layer */
.sheet-overlay.open .sheet-panel { 
  transform: translate(-50%, 0) translate3d(0, 0, 0); 
  -webkit-transform: translate(-50%, 0) translate3d(0, 0, 0); 
}
 
.sheet-handle {
  width: 36px; 
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 4px auto 18px;
}
 
.sheet-close {
  position: absolute;
  top: 16px; 
  right: 18px;
  width: 32px; 
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  /* Eliminates a grey tapping highlight square bug native to mobile WebKit */
  -webkit-tap-highlight-color: transparent; 
}
.sheet-close svg { 
  width: 16px; 
  height: 16px; 
}

 
.sheet-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 16px;
  line-height: 1.25;
}
 
.sheet-meta { margin-bottom: 16px; }
.sheet-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 8px;
}
.sheet-meta-row svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink3); }
 
.sheet-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink2);
  margin-bottom: 22px;
}
 
.sheet-roles-btn {
  width: 100%;
  justify-content: center;
}
 
body.modal-open { overflow: hidden; }

.schedule-note {
  font-size: 14px;
  color: var(--ink3);
  margin-bottom: 8px;
}

.schedule-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg2);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 24px;
}

.timeline-day.active .timeline-content {
  border-color: var(--brand);
  background: rgba(0,0,0,.03);
}

.timeline-event.past {
  opacity: .4;
}

/* ── ENGAGE / PEOPLE VIEW ── */
.engage-feature-card {
  margin: 0 20px 16px;
  background: #D4DBFF;
  border: 1.5px solid #3B5BDB33;
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
}
.engage-feature-card .dot {
  position: absolute;
  top: 16px; right: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.efc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #3B5BDB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.efc-icon svg { color: #fff; width: 22px; height: 22px; }
.efc-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.efc-meta { font-size: 13px; color: var(--ink2); margin-top: 3px; }

/* Filter pills */
.filter-pills {
  display: flex;
  gap: 8px;
  padding: 0 20px 14px;
}
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink2);
}
.filter-pill.all-pill {
  background: var(--accent);
  color: #fff;
}

/* Filter pills — Virgin / Veteran */
.filter-pill.all-pill.active { background: var(--accent); color: #fff; 
  border: 0px solid var(--border);}
.filter-pill.virgin-pill.active { background: #E3F2E3; border-color: #6FAE6F; color: #2F6B2F; }
.filter-pill.veteran-pill.active { background: #F5E8C4; border-color: #D4A840; color: #8B6200; }
 
/* Badges — Virgin / Veteran (used in both the list row and the detail screen) */
.badge-virgin { color: #2F6B2F; background: #E3F2E3; border-color: #6FAE6F; }
.badge-veteran { color: #8B6200; background: #FFF3CC; border-color: #D4A840; }
 
/* Avatar image support (photo-or-initials, no more icon-avatar variant) */
.attendee-avatar { position: relative; }
.attendee-avatar img { width: 100%; height: 100%; object-fit: cover; }
 
/* ── Person detail screen ── */
.person-detail-close {
  position: absolute;
  top: 46px; right: 30px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.person-detail-close svg { width: 40px; height: 40px; }
 
.person-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 40px;
  position: relative;
}
 
.person-avatar-lg {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--bg2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.person-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.person-avatar-lg span { font-size: 42px; font-weight: 700; color: var(--ink3); }
 
.person-detail-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
 
.person-detail .attendee-badge { margin-bottom: 20px; }
 
.person-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
}
.person-whatsapp-btn svg { width: 18px; height: 18px; }
.person-whatsapp-btn:active { opacity: 0.85; }
 
.person-info-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.person-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--bg2);
}
.person-info-row:last-child { border-bottom: none; }
.person-info-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: #a7000032;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person-info-icon svg { width: 16px; height: 16px; }
.person-info-text { flex: 1; min-width: 0; }
.person-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}
.person-info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.person-info-link { text-decoration: none; }
.person-info-link:active { opacity: 0.7; }

/* Attendee count */
.attendee-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 0 20px 10px;
}

/* Attendee list */
.attendee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--bg2);
  cursor: pointer;
  transition: background 0.15s;
}
.attendee-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.attendee-row:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.attendee-row:active { background: var(--bg2); }
.attendee-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink2);
}
.attendee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.attendee-icon-avatar svg { color: #3B5BDB; width: 22px; height: 22px; }
.attendee-name { font-size: 16px; font-weight: 600; flex: 1; }
.attendee-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background-color: #a700002f;
  color: var(--accent);
}
.badge-guest { color: #8B6200; background: #FFF3CC; border-color: #D4A840; }
.badge-sandboxer { color: #3B5BDB; background: #E0E7FF; border-color: #3B5BDB; }
.attendee-chevron { color: var(--ink3); }
.attendees-list { margin: 0 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ── ME VIEW ── */
.me-profile-card {
  margin: 0 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.me-edit-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
}
.me-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg2);
  overflow: hidden;
  margin-bottom: 12px;
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-name { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.me-location { font-size: 15px; color: var(--ink3); margin-top: 4px; }

/* Me quick links */
.me-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 20px 20px;
}
.me-quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.me-quick-card.active-card {
  background: #e8f0e8;
  border-color: #bdd4bd;
}
.me-quick-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
}
.me-quick-card.active-card .me-quick-icon {
  background: #c5d9c5;
  color: #3a6b3a;
}
.me-quick-title { font-size: 14px; font-weight: 600; }
.me-quick-sub { font-size: 12px; color: var(--ink3); }
.me-quick-card.active-card .me-quick-sub { color: #4a7a4a; }

/* Directory visibility */
.me-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 4px 0px 10px;
}
.me-visibility-card {
  margin: 0 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.me-visibility-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--bg2);
  cursor: pointer;
}
.me-visibility-option:last-child { border-bottom: none; }
.me-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.me-radio.selected {
  border-color: var(--accent);
  background: var(--accent);
}
.me-radio.selected::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
.me-visibility-title { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.me-visibility-desc { font-size: 13px; color: var(--ink2); line-height: 1.4; }

/* Me sign in state */
.me-signin-prompt {
  margin: 0 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.me-signin-prompt p { font-size: 14px; color: var(--ink2); margin-bottom: 16px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  color: var(--ink);
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── ADMIN TOGGLE (mode switch) ── */
.mode-switch-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 20px 0;
}
.mode-switch-label { font-size: 12px; color: var(--ink3); font-weight: 500; }
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  display: inline-block;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--bg2);
  border-radius: 12px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── ADMIN PANEL (inline, replaces me content for admin) ── */
.admin-banner {
  margin: 0 20px 16px;
  background: rgba(167,0,0,0.06);
  border: 1px solid rgba(167,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink2);
}

/* ── RESPONSIVE ── */
@media (min-width: 512px) {
  #app { }
  .summit-tabs { border-radius: 0; }
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0px 20px;
}

.faq-item {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 20px;

  cursor: pointer;

  font-size: 15px;
  font-weight: 600;
  color: var(--ink)!important;
  font-family: 'DM Sans', sans-serif;

  text-align: left;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

  color: var(--ink2);
  font-size: 14px;
  line-height: 1.7;

  transition:
    max-height 0.3s ease,
    padding 0.3s ease;

  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}


.menu-night-card {
  background: var(--paper2, #f6f1e8);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.menu-night-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.menu-night-emoji {
  font-size: 24px;
  flex: 0 0 auto;
}
.menu-night-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.menu-night-chefs {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 2px;
}
.menu-courses {
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-course-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-course-icon {
  font-size: 16px;
  flex: 0 0 22px;
  text-align: center;
}
.menu-course-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.menu-course-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink3);
}
.menu-course-food {
  font-size: 13px;
  color: var(--ink);
}

/* ── Chefs sub-tabs ── */
.chefs-subtabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 16px;
}
.chefs-subtab {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.chefs-subtab.active {
  background: var(--accent);
  color: #fff;
}

/* ── Facts strip ── */

#chefs-tab-body{
  padding: 20px;
}
.chefs-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.chefs-fact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.chefs-fact-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink3);
  margin-bottom: 4px;
}
.chefs-fact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.chefs-fact-sub {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 3px;
}

/* ── Guide blocks ── */
.chefs-guide-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.chefs-guide-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.chefs-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
  padding: 4px 0;
}
.chefs-guide-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink3);
  margin-top: 6px;
}

/* ── Meat temps ── */
.chefs-meat-card {
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.chefs-temp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
  font-size: 13px;
}
.chefs-temp-meat { color: var(--ink2); }
.chefs-temp-val {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ── Past menus ── */
.past-menu-year {
  margin-bottom: 24px;
}
.past-menu-year-label {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink3);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.past-menu-night {
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.past-menu-night-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}
.past-menu-day {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.past-menu-chefs {
  font-size: 11px;
  color: var(--ink3);
  font-family: 'DM Mono', monospace;
}
.past-menu-courses {
  padding: 6px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.past-menu-course {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.4;
}
.past-course-label {
  flex: 0 0 18px;
  font-size: 14px;
}

/* ── 2026 menu cards (reused) ── */
.menu-night-card {
  background: var(--paper2, #f6f1e8);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.menu-night-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.menu-night-emoji { font-size: 22px; flex: 0 0 auto; }
.menu-night-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.menu-night-chefs { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.menu-courses { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.menu-course-row { display: flex; align-items: center; gap: 10px; }
.menu-course-icon { font-size: 16px; flex: 0 0 22px; text-align: center; }
.menu-course-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink3);
}
.menu-course-food { font-size: 13px; color: var(--ink); }

/* ── CONTENT CARDS (used in Me tab + Person Detail) ── */
.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.ccfield-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}

/* ── DETAILS/SUMMARY accordion (my-detail) ── */
.my-detail {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg2);
}
.my-detail summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.my-detail summary::-webkit-details-marker { display: none; }
.my-detail summary::after {
  content: '＋';
  font-size: 16px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.my-detail[open] summary::after { transform: rotate(45deg); }
.my-detail-body {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}

/* ── PHASE / TASK labels inside detail bodies ── */
.ph {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 10px 0 4px;
}
.ti {
  font-size: 13px;
  color: var(--ink2);
  padding-left: 8px;
  border-left: 2px solid var(--border);
  margin-bottom: 4px;
  line-height: 1.5;
}

.person-detail .content-card {
  margin: 0;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
}

/* ── WHATSAPP button — centered standalone, not inside a wrapper div ── */
.person-detail .person-whatsapp-btn {
  margin: 14px 0 4px;
}

.shift-people-list { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-person-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.shift-person-name { font-weight: 600; color: var(--ink1); }
.shift-person-note { color: var(--ink3); font-size: 11px; }