@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Inter:wght@400;600;700;800&display=swap");

:root {
  --ink: #111a17;
  --muted: #59635f;
  --moss: #153c22;
  --forest: #0d2818;
  --acid: #e6f43d;
  --lime: #9dbc2d;
  --sky: #a7d1e7;
  --hot: #ef4b76;
  --paper: #f2f0e7;
  --panel: #fffef9;
  --line: #cbd0c5;
  --danger: #c83828;
  --danger-bg: #fff0ea;
  --shadow: 0 16px 0 rgba(18, 32, 23, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 153, 54, .13), transparent 18rem),
    linear-gradient(100deg, rgba(255,255,255,.4), transparent 40%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}
body.access-pending { overflow: hidden; }
body.access-pending > :not(.access-gate), body.access-locked > :not(.access-gate) { visibility: hidden; }
body:not(.access-pending):not(.access-locked) .access-gate { display: none; }
.access-gate {
  min-height: 100svh;
  padding: 24px;
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  color: white;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(116,145,39,.55), transparent 36%),
    repeating-radial-gradient(ellipse at 70% 30%, transparent 0 18px, rgba(165,190,52,.06) 20px 23px),
    linear-gradient(135deg, #07160d, #194522 60%, #0a1d11);
}
.access-gate-card { width: min(520px, 100%); padding: clamp(28px, 6vw, 52px); border: 1px solid rgba(255,255,255,.18); background: rgba(6,20,11,.72); box-shadow: 20px 24px 0 rgba(0,0,0,.2); }
.access-mark { margin-bottom: 24px; color: var(--acid); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 3rem; font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.access-mark span { display: inline-block; transform: rotate(-12deg); }
.access-gate h1 { margin-bottom: 14px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(3rem, 10vw, 5rem); line-height: .88; text-transform: uppercase; }
.access-gate-card > p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.access-gate form { margin-top: 26px; }
.access-code-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.access-code-row button { min-width: 96px; }
.access-gate .form-message { color: var(--acid); }
.access-staff-links { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: .8rem; }
.text-button { min-height: auto; padding: 0; color: white; background: transparent; text-decoration: underline; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-mark, .move-lockup, .card-kicker {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .86; letter-spacing: -.035em; }
h3 { margin-bottom: .55rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1; }
a { color: inherit; }

.topbar {
  min-height: 76px;
  padding: 12px clamp(14px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid rgba(230, 244, 61, .35);
  background: rgba(13, 40, 24, .96);
  color: white;
  backdrop-filter: blur(14px);
}
.brand { color: white; text-decoration: none; display: grid; line-height: 1; }
.brand-mark { color: var(--acid); font-size: 2rem; font-weight: 900; letter-spacing: -.07em; }
.brand-mark span { display: inline-block; transform: rotate(-12deg); }
.brand small { font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
nav { display: flex; gap: 7px; flex-wrap: wrap; }

button, .button-link {
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.nav-button, .secondary, .filter { background: rgba(255,255,255,.12); color: white; }
.nav-button.active, .filter.active, .primary, .button-link { background: var(--acid); color: var(--forest); }
.primary:hover, .button-link:hover { background: white; }

main { width: min(1240px, 100%); margin: 0 auto; padding: 0 20px 68px; }
.view { display: none; }
.view.active { display: block; }
.eyebrow { margin-bottom: 7px; color: #63731b; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

.conference-hub {
  margin: 0 -20px;
  padding: clamp(34px, 6vw, 70px) max(20px, calc((100vw - 1200px) / 2));
  color: white;
  background: var(--forest);
  scroll-margin-top: 84px;
}
.hub-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hub-heading h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); }
.hub-heading > p { max-width: 430px; margin: 0; color: rgba(255,255,255,.7); }
.conference-hub .eyebrow { color: var(--acid); }
.hub-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.hub-tile {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  display: grid;
  align-content: center;
  gap: 3px;
  color: white;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.hub-tile:hover, .hub-tile:focus-visible { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.hub-tile-featured { background: #276c25; }
.hub-tile-action { color: var(--forest); background: var(--acid); }
.hub-tile-action:hover, .hub-tile-action:focus-visible { background: white; }
.hub-tile-wide { min-height: 112px; grid-column: 1 / -1; grid-template-columns: auto 1fr; column-gap: 14px; justify-content: center; justify-items: start; }
.hub-tile-wide .hub-icon { grid-row: span 2; align-self: center; font-size: 2.4rem; }
.ciy-app-tile { justify-items: center; text-align: center; }
.fun-stuff-tile { color: white; background: #7d2350; }
.kentucky-mark { width: 64px; height: 38px; fill: var(--acid); }
.hub-icon { font-size: 1.55rem; font-weight: 900; line-height: 1; }
.hub-tile strong { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.hub-tile small { color: inherit; opacity: .72; font-size: .78rem; }
.student-dock { display: none; }

.manifesto {
  margin: 0 -20px;
  padding: clamp(44px, 8vw, 95px) 20px;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(23,55,25,.72), rgba(23,55,25,.72)),
    radial-gradient(circle at 40% 20%, #758526, transparent 34%),
    repeating-linear-gradient(105deg, #172b17 0 20px, #40521d 22px 26px);
}
.manifesto p { margin: 0; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(2.1rem, 6vw, 5rem); font-weight: 800; line-height: .98; text-transform: uppercase; }
.manifesto strong { color: var(--acid); }

.trip-guide { padding: clamp(54px, 8vw, 100px) 0; scroll-margin-top: 90px; }
.section-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 480px; margin-bottom: 0; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.info-card {
  grid-column: span 4;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 3px 22px 3px 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.travel-poster-card { grid-column: span 4; min-width: 0; scroll-margin-top: 90px; }
.travel-poster-card img { width: 100%; height: auto; border-radius: 3px 24px 3px 24px; display: block; box-shadow: var(--shadow); }
.travel-text-card { min-height: 520px; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.travel-text-card h3 { margin-bottom: 2px; font-size: clamp(3.5rem, 7vw, 5.4rem); }
.saturday-card { color: white; background: #2f7e1c; }
.sunday-card { color: white; background: #486f22; }
.monday-card { color: white; background: var(--moss); }
.travel-text-card .route { color: rgba(255,255,255,.84); }
.travel-text-card .compact-timeline { margin-bottom: 18px; }
.travel-text-card .compact-timeline div { padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.2); }
.travel-text-card .compact-timeline strong { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.schedule-pending { margin: 13px 0 4px; color: var(--acid); font-size: 1.05rem; text-transform: uppercase; }
.travel-sequence { margin: 10px 0 20px; padding: 0; list-style: none; }
.travel-sequence li { padding: 9px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 750; }
.travel-sequence li::before { content: "›"; margin-right: 5px; color: var(--acid); font-weight: 950; }
.travel-sequence li span { margin-left: auto; color: var(--acid); font-size: .78rem; text-transform: uppercase; }
.travel-location { margin-top: auto; margin-bottom: 12px; color: rgba(255,255,255,.85); }
.travel-text-card .card-note { color: rgba(255,255,255,.85); }
.return-card { grid-column: span 12; min-height: 0; }
.feature-card { grid-column: span 6; min-height: 470px; display: flex; flex-direction: column; }
.lime-card { color: white; background: #2f7e1c; }
.blue-card { color: var(--ink); background: var(--sky); }
.hot-card { background: #ffddea; }
.card-kicker { margin-bottom: 4px; font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.feature-card h3 { margin-bottom: 0; font-size: clamp(4rem, 9vw, 7rem); }
.route { font-size: clamp(1rem, 2.2vw, 1.45rem); letter-spacing: .08em; text-transform: uppercase; }
.route span { font-weight: 900; }
.timeline { display: grid; gap: 14px; margin: 22px 0; }
.timeline div { display: grid; grid-template-columns: minmax(110px, .6fr) 1.4fr; gap: 18px; align-items: baseline; }
.timeline strong { font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1; }
.card-note { margin-top: auto; margin-bottom: 0; font-size: 1.1rem; }
.arrow-list { margin: 20px 0 0; padding: 0; list-style: none; }
.arrow-list li { padding: 12px 0 12px 24px; border-top: 1px solid rgba(30,40,32,.14); position: relative; }
.arrow-list li::before { content: "›"; position: absolute; left: 3px; font-weight: 900; }
.theme-gallery { margin-top: 16px; display: grid; gap: 8px; }
.theme-gallery img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 4px 0 rgba(45,22,33,.1); }
.guide-detail { padding: 0; overflow: hidden; }
.guide-detail summary, .assignment-card summary { list-style: none; cursor: pointer; }
.guide-detail summary::-webkit-details-marker, .assignment-card summary::-webkit-details-marker { display: none; }
.guide-detail summary { min-height: 120px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.guide-detail summary small { display: block; margin-bottom: 8px; color: #6c761f; font-family: Inter, sans-serif; font-size: .65rem; letter-spacing: .14em; }
.guide-detail summary > span:last-child { color: #6c761f; font-size: 2.5rem; transition: transform .2s; }
.guide-detail[open] summary > span:last-child { transform: rotate(45deg); }
.detail-body { padding: 0 22px 22px; }
.detail-body p:last-child { margin-bottom: 0; }
.rules-card { border-color: #9faf41; }
.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prayer-card { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 3px 22px 3px 22px; display: flex; flex-direction: column; background: var(--panel); box-shadow: var(--shadow); }
.prayer-card p { margin: 14px 0 auto; font-size: 1.05rem; }
.prayer-card strong { color: var(--moss); }
.prayer-card small { color: var(--muted); }
.prayer-heart { color: var(--hot); font-size: 2rem; line-height: 1; }
.field-help { margin-top: -2px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.memory-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.memory-card { width: min(72vw, 360px); min-width: min(72vw, 360px); border: 1px solid var(--line); scroll-snap-align: start; color: var(--ink); background: var(--panel); text-decoration: none; box-shadow: var(--shadow); }
.memory-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.memory-card span { padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; }
.memory-card small { color: var(--muted); }
.community-page { min-height: calc(100svh - 76px); padding-top: clamp(38px, 7vw, 80px); }
.community-heading { max-width: 760px; margin-bottom: 30px; }
.community-heading h1 { margin-bottom: 12px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(3.6rem, 10vw, 7rem); line-height: .86; text-transform: uppercase; }
.community-heading > p:last-child { color: var(--muted); }
.memory-gallery-page { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
.memory-gallery-page .memory-card { width: auto; min-width: 0; }
.prayer-grid-page { padding-bottom: 90px; }
.community-dock { display: none; }

.submission-layout { padding-top: 28px; scroll-margin-top: 90px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.compact { gap: 12px; }
.panel, .schedule { padding: 24px; border: 1px solid var(--line); border-radius: 3px 20px 3px 20px; background: var(--panel); box-shadow: var(--shadow); }
.form-panel { border-top: 8px solid var(--acid); }
.submission-type-picker { margin: 24px 0 18px; padding: 0; border: 0; }
.submission-type-picker legend { margin-bottom: 10px; font-weight: 900; }
.submission-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.submission-type-grid label { margin: 0; cursor: pointer; }
.submission-type-grid input { width: 1px; height: 1px; min-height: 0; position: absolute; opacity: 0; }
.submission-type-grid span { min-height: 104px; padding: 14px; border: 2px solid var(--line); display: flex; flex-direction: column; justify-content: center; background: white; }
.submission-type-grid strong { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.submission-type-grid small { margin-top: 5px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.submission-type-grid input:checked + span { border-color: var(--moss); color: white; background: var(--moss); }
.submission-type-grid input:checked + span small { color: rgba(255,255,255,.72); }
.submission-type-grid input:focus-visible + span { outline: 3px solid #6f8517; outline-offset: 2px; }
.submission-panel { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); background: #f4f5ed; }
.submission-explainer { margin-bottom: 16px; }
.submission-explainer p { margin: 4px 0 0; color: var(--muted); }
.photo-upload { margin: 0; }
.photo-upload input { width: 1px; height: 1px; min-height: 0; position: absolute; opacity: 0; }
.photo-upload span { min-height: 50px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--forest); background: var(--acid); cursor: pointer; }
.photo-upload input:focus-visible + span { outline: 3px solid #6f8517; outline-offset: 2px; }
.next-step-options { display: grid; gap: 8px; margin: 12px 0 16px; }
.next-step-options label { margin: 0; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: white; cursor: pointer; }
.next-step-options input { width: auto; min-height: auto; }
.panel.quiet { background: #eef1e6; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header p, .auth-card p { margin-bottom: 0; color: var(--muted); }
label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #aeb8a9; border-radius: 2px; background: white; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6f8517; outline-offset: 2px; }
.checks { display: grid; gap: 9px; margin-bottom: 14px; }
.checks label { display: flex; align-items: center; gap: 10px; margin: 0; }
.checks input { width: auto; min-height: auto; }
.prompt { margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); background: white; }
.prompt p { margin-bottom: 0; color: var(--muted); }
.prompt.warning { margin-top: 16px; border-color: #d7b75b; background: #fff5d8; }
.notice { max-width: 820px; padding: 14px 16px; border-left: 4px solid #849722; background: #f5f6df; color: #303e26; }
.form-message { min-height: 24px; margin: 12px 0 0; color: #3d631c; font-weight: 800; }
.auth-card { width: min(570px, 100%); margin: 60px auto; }
.auth-card h2 { font-size: 3rem; }
.loginForm { margin-top: 18px; display: grid; gap: 12px; }
.hidden { display: none; }

.dashboard { padding-top: 35px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard-header h2 { margin-bottom: 0; }
.dashboard-header .secondary, .card-actions .secondary, #admin .secondary { background: #e2e5dc; color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.leader-metrics { grid-template-columns: repeat(3, 1fr); }
.metric { padding: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 8px 0 rgba(18,32,23,.08); }
.metric strong { display: block; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 2.4rem; line-height: 1; }
.metric span, .meta { color: var(--muted); font-size: .86rem; font-weight: 700; }
.leader-workspace-tabs { margin: 8px 0 0; padding-left: 12px; display: flex; align-items: end; gap: 5px; border-bottom: 1px solid var(--line); }
.leader-workspace-tab { min-height: 44px; padding: 10px 22px 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); background: #dfe3d8; transform: translateY(1px); }
.leader-workspace-tab.active { padding-top: 13px; color: var(--forest); background: var(--panel); box-shadow: inset 0 5px 0 var(--acid); }
.leader-tab-panel { border-top: 0; }
.assignment-hub { margin-bottom: 0; }
.challenge-manager-panel .panel-header > p { max-width: 420px; }
.challenge-editor { max-width: 680px; margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); background: #f4f5ed; }
.leader-fun-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.leader-fun-card { padding: 14px; border: 1px solid var(--line); background: white; }
.leader-fun-card.pending { border-left: 5px solid var(--hot); }
.leader-fun-card.approved { border-left: 5px solid var(--lime); }
.leader-fun-card h4 { margin: 8px 0 5px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.leader-fun-card p { margin-bottom: 10px; color: var(--muted); }
.encouragement-review-heading { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.assignment-hub .panel-header > p { max-width: 380px; }
.assignment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assignment-card { border: 1px solid var(--line); background: #f4f5ed; }
.assignment-card summary { padding: 15px; display: flex; justify-content: space-between; gap: 10px; font-weight: 900; }
.assignment-card summary span { color: var(--muted); font-size: .8rem; }
.assignment-columns { padding: 5px 15px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.assignment-columns p { margin: 0; padding: 10px; background: white; font-size: .84rem; }
.assignment-columns strong { display: block; color: #5d7019; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .filter { background: #e2e5dc; color: var(--ink); }
.filters .filter.active { background: var(--moss); color: white; }
.cards, .submission-list { display: grid; gap: 10px; }
.submission-group + .submission-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.submission-group-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submission-group-heading h4 { margin: 0; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.submission-group-heading span { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #e2e5dc; font-size: .76rem; font-weight: 900; text-align: center; }
.memory-submissions .submission-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.submission-card { padding: 14px; border: 1px solid var(--line); background: white; }
.submission-card.urgent { border-color: #f0a293; background: var(--danger-bg); }
.submission-photo { width: clamp(88px, 34%, 150px); aspect-ratio: 1; min-height: 0; margin: 10px 0; padding: 0; display: block; overflow: hidden; border: 2px solid var(--line); background: #e2e5dc; }
.submission-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.submission-photo:hover { border-color: var(--moss); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e2e5dc; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.tag.danger { background: var(--danger); color: white; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-actions .secondary { min-height: 32px; padding: 6px 9px; font-size: .72rem; }
.photo-lightbox { width: min(94vw, 1000px); max-width: none; max-height: 92svh; padding: 0; overflow: visible; border: 0; background: transparent; }
.photo-lightbox::backdrop { background: rgba(4, 13, 8, .88); }
.photo-lightbox img { width: 100%; max-height: 88svh; display: block; object-fit: contain; background: #07160d; }
.photo-lightbox-close { width: 42px; min-height: 42px; padding: 0; position: absolute; top: -16px; right: -10px; z-index: 1; border-radius: 50%; color: var(--forest); background: var(--acid); font-size: 1.7rem; line-height: 1; }
.fun-main { width: min(1040px, 100%); }
.fun-hero { margin: 0 -20px; padding: clamp(42px, 8vw, 82px) max(20px, calc((100vw - 1000px) / 2)); color: white; background: radial-gradient(circle at 85% 20%, rgba(230,244,61,.28), transparent 15rem), var(--forest); }
.fun-hero h1 { margin-bottom: 12px; color: var(--acid); font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(4rem, 13vw, 8rem); line-height: .82; text-transform: uppercase; }
.fun-hero > p:last-child { max-width: 680px; margin-bottom: 0; color: rgba(255,255,255,.76); font-weight: 700; }
.fun-identity { margin: -22px 0 24px; position: relative; z-index: 2; box-shadow: 10px 10px 0 rgba(18,32,23,.12); }
.fun-identity label { margin-bottom: 4px; }
.fun-tabs { padding: 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; border-bottom: 1px solid var(--line); }
.fun-tab { min-height: 48px; padding: 9px 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--muted); background: #dfe3d8; }
.fun-tab.active { color: var(--forest); background: var(--panel); box-shadow: inset 0 5px 0 var(--acid); transform: translateY(1px); }
.fun-panel { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.fun-section-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.fun-section-heading h2 { margin-bottom: 0; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.progress-chip { padding: 6px 11px; border-radius: 999px; color: white; background: var(--moss); font-size: .76rem; font-weight: 900; white-space: nowrap; }
.challenge-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.challenge-card { padding: 18px; border: 2px solid var(--moss); background: white; box-shadow: 7px 7px 0 rgba(21,60,34,.12); }
.challenge-card.completed { border-color: #98a58f; background: #edf0e9; box-shadow: none; }
.challenge-card > div:first-child { display: flex; align-items: start; gap: 10px; }
.challenge-card h3 { margin: 4px 0 10px; }
.challenge-check { width: 34px; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--acid); font-weight: 950; }
.challenge-card p { color: var(--muted); }
.challenge-card .primary { width: 100%; }
.challenge-card .primary:disabled { color: #435047; background: #cdd4ca; cursor: default; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bingo-square { min-height: 105px; padding: 8px 5px; border: 1px solid var(--line); color: var(--ink); background: #f4f5ed; font-size: clamp(.62rem, 1.7vw, .8rem); line-height: 1.15; }
.bingo-square span { min-height: 20px; display: block; color: var(--moss); font-size: 1.1rem; }
.bingo-square.marked { color: var(--forest); background: var(--acid); box-shadow: inset 0 0 0 2px var(--moss); }
.bingo-celebration { margin-bottom: 16px; padding: 14px; color: white; background: var(--hot); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.8rem; text-align: center; text-transform: uppercase; }
.fun-reset { margin-top: 16px; color: var(--moss); }
.hunt-prompt-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hunt-prompt { min-height: 110px; padding: 12px 8px; border: 1px solid var(--line); color: var(--ink); background: #f4f5ed; font-size: .8rem; line-height: 1.2; }
.hunt-prompt span { width: 28px; height: 28px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--moss); }
.hunt-prompt.completed { background: #eef5c7; }
.hunt-prompt.completed span { color: var(--forest); background: var(--acid); }
.fun-form { max-width: 680px; margin: 0 auto 26px; }
.inline-check { display: flex; align-items: center; gap: 9px; }
.inline-check input { width: auto; min-height: auto; }
.encouragement-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 13px; }
.encouragement-note { min-height: 190px; padding: 20px; display: flex; flex-direction: column; transform: rotate(-1deg); background: #fff6a8; box-shadow: 6px 7px 0 rgba(18,32,23,.12); }
.encouragement-note:nth-child(even) { transform: rotate(1deg); background: #dcebf4; }
.encouragement-note > span { color: var(--hot); font-size: 2rem; }
.encouragement-note p { flex: 1; }
.encouragement-note small { color: var(--muted); }
.empty-fun { padding: 30px; border: 1px dashed #96a08f; text-align: center; }
.empty-fun p { margin: 5px 0 0; color: var(--muted); }
.fun-dock { grid-template-columns: repeat(3, 1fr); }
.table { max-height: 460px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.export-list { display: grid; gap: 10px; }

footer { width: min(1200px, calc(100% - 40px)); margin: 0 auto 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .info-card { grid-column: span 6; }
  .feature-card { grid-column: span 6; }
  .travel-poster-card { grid-column: span 4; }
  .return-card { grid-column: span 12; }
  .grid.two { grid-template-columns: 1fr; }
  .assignment-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar { min-height: 62px; padding-block: 8px; position: sticky; }
  .topbar nav { margin-left: auto; }
  .topbar .brand small { display: none; }
  nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nav-button { min-height: 40px; padding: 8px 10px; font-size: .82rem; }
  main { padding: 0 12px 96px; }
  .conference-hub, .manifesto { margin-inline: -12px; }
  .conference-hub { padding: 30px 12px; scroll-margin-top: 70px; }
  .hub-heading { align-items: stretch; flex-direction: column; gap: 7px; }
  .hub-heading h2 { font-size: 2.8rem; }
  .hub-heading > p { font-size: .86rem; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-tile { min-height: 112px; padding: 13px 10px; text-align: center; justify-items: center; }
  .hub-tile strong { font-size: 1.25rem; }
  .hub-tile small { display: none; }
  .manifesto { padding-block: 26px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .manifesto p { min-width: max-content; font-size: 1.7rem; scroll-snap-align: start; }
  .section-heading, .panel-header, .dashboard-header, footer { align-items: stretch; flex-direction: column; }
  .trip-guide { padding-block: 40px; }
  .info-grid { margin-right: -12px; padding: 0 12px 16px 0; display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; }
  .info-card, .feature-card, .travel-poster-card { width: min(86vw, 390px); min-width: min(86vw, 390px); min-height: 0; scroll-snap-align: start; }
  .feature-card { min-height: 390px; }
  .timeline div { grid-template-columns: 108px 1fr; gap: 12px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .leader-metrics { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .leader-metrics .metric { padding: 12px 9px; }
  .leader-metrics .metric strong { font-size: 1.85rem; }
  .leader-metrics .metric span { font-size: .7rem; }
  .leader-workspace-tabs { padding-left: 5px; }
  .leader-workspace-tab { flex: 1; padding-inline: 10px; }
  .fun-main { padding-inline: 12px; }
  .fun-hero { margin-inline: -12px; padding-inline: 18px; }
  .fun-identity { margin-top: -16px; }
  .fun-tabs { margin-inline: -4px; padding-inline: 3px; gap: 3px; }
  .fun-tab { min-height: 50px; padding-inline: 4px; font-size: .7rem; }
  .fun-panel { margin-inline: -4px; padding: 20px 14px; }
  .fun-section-heading { align-items: start; flex-direction: column; }
  .bingo-grid { gap: 3px; }
  .bingo-square { min-height: 82px; padding: 5px 2px; font-size: .55rem; }
  .hunt-prompt-grid { grid-template-columns: 1fr 1fr; }
  .assignment-columns { grid-template-columns: 1fr; }
  .card-top { flex-direction: column; }
  .panel { padding: 18px; }
  .submission-type-grid { grid-template-columns: 1fr; }
  .submission-type-grid span { min-height: 76px; }
  .prayer-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .prayer-card { width: min(82vw, 340px); min-width: min(82vw, 340px); scroll-snap-align: start; }
  .student-dock {
    min-height: 66px;
    padding: 7px max(14px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    border-top: 1px solid rgba(255,255,255,.15);
    background: rgba(13,40,24,.98);
    box-shadow: 0 -10px 30px rgba(0,0,0,.2);
  }
  .student-dock a { display: grid; place-items: center; align-content: center; gap: 1px; color: white; font-size: .7rem; font-weight: 800; text-decoration: none; }
  .student-dock a span { color: var(--acid); font-size: 1.35rem; line-height: 1; }
  .student-dock .dock-action { color: var(--forest); background: var(--acid); }
  .student-dock .dock-action span { color: var(--forest); }
  body:has(#leader.view.active) .student-dock, body:has(#admin.view.active) .student-dock { display: none; }
  .community-page { padding-bottom: 96px; }
  .community-topbar .button-link { min-height: 40px; padding: 8px 10px; font-size: .8rem; }
  .memory-gallery-page { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .memory-gallery-page .memory-card { width: 100%; }
  .prayer-grid-page { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .prayer-grid-page .prayer-card { width: 100%; min-width: 0; }
  .community-dock { min-height: 66px; display: grid; grid-template-columns: 1fr 1fr; position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; background: rgba(13,40,24,.98); }
  .community-dock.fun-dock { grid-template-columns: repeat(3, 1fr); }
  .community-dock a { display: grid; place-items: center; align-content: center; color: white; font-weight: 800; text-decoration: none; }
  .community-dock a:first-child { border-right: 1px solid rgba(255,255,255,.15); }
  .community-dock a span { font-size: .72rem; }
}

@media (max-width: 420px) {
  .access-gate { padding: 14px; }
  .access-gate-card { padding: 26px 20px; box-shadow: 10px 12px 0 rgba(0,0,0,.2); }
  .access-code-row { grid-template-columns: 1fr; }
  .brand-mark { font-size: 1.7rem; }
  .manifesto p { font-size: 2rem; }
  .feature-card { min-height: 0; }
  .timeline div { grid-template-columns: 1fr; gap: 2px; }
  .metrics { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
