/* ============================================================
   Snug Harbor Studio — design system
   Earthy cream + warm brown, Libre Baskerville serif.
   Migrated 1:1 from the Next.js site's Tailwind theme.
   ============================================================ */
:root {
  --bg: #eee3d7;
  --fg: #443c34;
  --card: #fbf8f3;
  --primary: #271e0f;
  --primary-fg: #fbf8f3;
  --secondary: #f0e9de;
  --muted: #f4efe7;
  --muted-fg: #7d746a;
  --accent: #ece2d2;
  --border: #e6ddd0;
  --input: #e6ddd0;
  --ring: #271e0f;
  --destructive: #c53929;
  --radius: 0.625rem;
  --shadow-lg: 0 10px 15px -3px rgb(39 30 15 / 0.10), 0 4px 6px -4px rgb(39 30 15 / 0.08);
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { height: 100%; }
body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.6;
}
/* Scroll shell — keeps the sticky header stable inside the /a/ iframe on iOS */
#siteScroll { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
svg.icon { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -0.125em; }

.container { margin-inline: auto; padding-inline: 1rem; width: 100%; max-width: 64rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.wide { max-width: 80rem; margin-inline: auto; }
.narrow { max-width: 48rem; margin-inline: auto; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgb(238 227 215 / 0.95); backdrop-filter: blur(6px);
}
.header-row { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; padding-top: 1.25rem; }
.brand { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.brand:hover { opacity: 0.8; }
.brand img { height: 3rem; width: 3rem; object-fit: contain; }
.brand span { font-weight: 700; color: #271e0f; font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; }
.header-actions a { font-weight: 500; }
.header-actions a:hover, .main-nav a:hover { color: var(--muted-fg); }
.menu-btn { padding: 0.5rem; display: inline-flex; }
.main-nav { display: none; align-items: center; gap: 1.5rem; font-size: 0.875rem; padding: 0.75rem 0; }
.main-nav a { font-weight: 500; white-space: nowrap; }
.main-nav .nav-admin { margin-left: auto; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: rgb(238 227 215 / 0.97); }
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- hero banners ---------- */
.page-hero { padding: 3rem 0; }
.hero-panel {
  position: relative; overflow: hidden; border-radius: 1rem; background: var(--primary);
  padding: 4rem 2rem;
}
@media (min-width: 768px) { .hero-panel { padding: 5rem 3rem; } }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.hero-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.hero-overlay.light { background: rgb(255 255 255 / 0.5); }
.hero-content { position: relative; z-index: 10; }
.hero-content h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
.hero-content .sub { margin-top: 1.5rem; max-width: 42rem; color: rgb(255 255 255 / 0.9); font-size: 1.25rem; }
.hero-content.on-light h1, .hero-content.on-light .sub { color: #271e0f; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.375rem; padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.875rem;
  transition: background-color .15s, color .15s, opacity .15s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #3a2d17; }
.btn-outline { border: 2px solid var(--primary); color: #271e0f; background: transparent; }
.btn-outline:hover { background: rgb(39 30 15 / 0.08); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: rgb(255 255 255 / 0.9); }
.btn-outline-white { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgb(255 255 255 / 0.1); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* pill filter tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab-btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.375rem; padding: 0.5rem 1rem;
  font-weight: 600; font-size: 0.875rem; background: var(--muted); color: var(--muted-fg); transition: all .15s; }
.tab-btn:hover { background: var(--accent); }
.tab-btn.active { background: var(--primary); color: var(--primary-fg); }
.tab-btn .count { font-size: .75rem; opacity: .75; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.card-hover { transition: box-shadow .2s; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card-hover:hover { box-shadow: var(--shadow-lg); }
.card-pad { padding: 1.5rem; }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--muted); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-hover:hover .card-img img { transform: scale(1.05); }
.card-topbar { height: 0.375rem; width: 100%; background: var(--primary); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.card-body h3 { font-size: 1.125rem; line-height: 1.375; }
.card-hover:hover h3 { color: #271e0f; }
.card-body h3.xl { font-size: 1.5rem; }
.meta-rows { margin-top: 0.75rem; display: grid; gap: 0.4rem; }
.meta-row { display: flex; align-items: center; gap: 0.5rem; color: var(--muted-fg); font-size: 0.875rem; }
.card-desc { margin-top: 0.75rem; color: var(--muted-fg); font-size: 0.875rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc.clamp4 { -webkit-line-clamp: 4; }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.link-more { font-weight: 500; color: #271e0f; font-size: 0.875rem; display: inline-flex; align-items: center; gap: .25rem; }
.type-pill { display: inline-block; border-radius: 9999px; background: rgb(39 30 15 / 0.1); padding: 0.125rem 0.625rem; font-weight: 500; color: #271e0f; font-size: 0.75rem; }

/* section headers */
.section { padding: 4rem 0; }
.section-lg { padding: 6rem 0; }
.sec-head { margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sec-head h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
.view-all { display: inline-flex; align-items: center; gap: 0.5rem; color: #271e0f; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-4 { gap: 1rem; }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.5rem; }
label { font-weight: 500; font-size: 0.875rem; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--input); border-radius: 0.375rem; background: var(--bg);
  padding: 0.5rem 0.75rem; font: inherit; font-size: 0.875rem; color: var(--fg);
}
.input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.input::placeholder { color: var(--muted-fg); }
.form-note { color: var(--muted-fg); font-size: 0.75rem; }
.alert { border-radius: 0.375rem; padding: 1rem; font-size: 0.875rem; margin-top: 1rem; }
.alert-ok { background: #e8f3e8; color: #1e6b2e; }
.alert-err { background: #fbeaea; color: #a02020; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--input); border-radius: 9999px; background: var(--muted); }
.stepper button { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; font-weight: 600; }
.stepper input { width: 4rem; height: 2.5rem; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 500; }
.stepper input:focus { outline: none; }

/* emoji verification */
.emoji-verify { border: 1px solid var(--input); border-radius: var(--radius); background: rgb(244 239 231 / 0.5); padding: 1rem; }
.ev-row { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1rem; }
.ev-tile { width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--muted); font-size: 2.25rem;
  user-select: none; touch-action: none; }
.ev-src { cursor: grab; transition: transform .15s; }
.ev-src:hover { transform: scale(1.05); border-color: var(--primary); }
.ev-src.dragging { opacity: 0.4; }
.ev-target.silhouette > span { filter: grayscale(1) brightness(0.3) opacity(0.5); transform: scale(0.9); display: inline-block; }
.ev-target.over { transform: scale(1.05); border-color: var(--primary); background: rgb(39 30 15 / 0.08); }
.ev-target.ok { border-color: #2e7d32; background: #e8f3e8; }
.ev-ghost { position: fixed; z-index: 1000; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center;
  font-size: 2.25rem; pointer-events: none; background: var(--card); border: 2px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgb(244 239 231 / 0.4); margin-top: auto; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h3 { font-size: 1.125rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.footer-grid nav a, .footer-grid p { color: var(--muted-fg); font-size: 0.875rem; }
.footer-grid nav a:hover { color: #271e0f; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--border); padding: 2rem 0; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .footer-bottom { grid-template-columns: 1fr auto 1fr; } }
.footer-bottom .copyright { color: var(--muted-fg); font-size: 0.75rem; }
.social-links { display: flex; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .social-links { justify-content: flex-end; } }
.social-links a { color: var(--muted-fg); }
.social-links a:hover { color: #271e0f; }
.cloud-badge { display: flex; justify-content: center; align-items: center; }
.cloud-badge img { height: 24px; width: auto; opacity: .9; }
.cloud-badge:hover img { opacity: 1; }

/* ---------- event detail ---------- */
.event-hero { position: relative; min-height: 75vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--primary); }
.event-hero .back-link { position: absolute; top: 1rem; left: 1rem; z-index: 20; color: rgb(255 255 255 / 0.9); }
.event-hero .back-link:hover { color: #fff; }
.event-hero-bg { position: absolute; inset: 0; }
.event-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.event-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.6); }
.event-hero-content { position: relative; z-index: 10; width: 100%; }
.event-hero-content .inner { max-width: 56rem; margin-inline: auto; padding: 6rem 1rem 4rem; }
.event-hero-content .white-pill { display: inline-block; border-radius: 9999px; background: rgb(255 255 255 / 0.2); padding: 0.25rem 0.75rem; color: #fff; font-weight: 500; font-size: 0.875rem; backdrop-filter: blur(4px); margin-bottom: 0.5rem; }
.event-hero-content h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.event-hero-content .rows { margin-top: 1.5rem; display: grid; gap: 0.75rem; color: rgb(255 255 255 / 0.9); font-size: 1.125rem; }
.event-hero-content .rows > div { display: flex; align-items: center; gap: 0.75rem; }

.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.sidebar-card { position: sticky; top: 6rem; }
.info-rows { display: grid; gap: 1rem; }
.info-rows > div { display: flex; align-items: flex-start; gap: 0.75rem; }
.info-rows .icon { margin-top: 0.2rem; color: var(--muted-fg); }
.info-rows p { font-weight: 500; overflow-wrap: anywhere; }

/* prose (rich text) */
.prose { max-width: none; font-size: 1.05rem; }
.prose p { margin: 1rem 0; }
.prose h1 { font-size: 2rem; margin: 2rem 0 1rem; }
.prose h2 { font-size: 1.6rem; margin: 1.5rem 0 0.75rem; }
.prose h3 { font-size: 1.3rem; margin: 1.25rem 0 0.5rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin: 0.25rem 0; }
.prose blockquote { border-left: 4px solid var(--accent); padding-left: 1rem; font-style: italic; margin: 1rem 0; color: var(--muted-fg); }
.prose a { color: #271e0f; text-decoration: underline; }
.prose img { border-radius: 0.5rem; margin: 1.5rem 0; }
.prose .video-embed { margin: 1.5rem 0; }
.prose .video-embed .frame { position: relative; aspect-ratio: 16/9; }
.prose .video-embed.reel .frame { aspect-ratio: 9/16; max-width: 315px; }
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0.5rem; }

/* gallery */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.g-item { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); background: var(--muted); transition: transform .2s; padding: 0; width: 100%; }
.g-item:hover { transform: scale(1.03); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(100%); transition: transform .25s;
  background: rgb(0 0 0 / 0.7); color: #fff; padding: 1rem; text-align: left; }
.g-item:hover .g-cap { transform: translateY(0); }
.g-cap h3 { font-size: 1rem; }
.g-cap p { font-size: 0.8125rem; color: rgb(255 255 255 / 0.8); margin-top: 0.25rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.lightbox img { max-height: calc(100vh - 14rem); max-width: calc(100vw - 2rem); object-fit: contain; border-radius: 0.25rem; }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; border-radius: 9999px; background: rgb(255 255 255 / 0.1); padding: 0.5rem; color: #fff; display: inline-flex; }
.lb-close:hover { background: rgb(255 255 255 / 0.2); }
.lb-info { margin-top: 1rem; width: 100%; max-width: 56rem; border-radius: var(--radius); background: rgb(255 255 255 / 0.1); padding: 1.5rem; color: #fff; backdrop-filter: blur(6px); }
.lb-info h2 { font-size: 1.5rem; }
.lb-info p { color: rgb(255 255 255 / 0.8); margin-top: 0.5rem; font-size: 0.9375rem; }
.lb-hint { margin-top: 1rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.6); }

/* dark CTA band */
.cta-band { background: var(--primary); color: var(--primary-fg); padding: 6rem 0; }
.cta-band h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); }
.cta-band .sub { margin: 1rem auto 0; max-width: 42rem; font-size: 1.125rem; color: rgb(251 248 243 / 0.9); }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* dropdown menu (add to calendar) */
.dd { position: relative; display: inline-block; }
.dd-trigger { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg); padding: 0.5rem 1rem; font-weight: 500; font-size: 0.875rem; }
.dd-trigger:hover { background: var(--muted); }
.dd-trigger.compact { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
.dd-menu { position: absolute; z-index: 60; margin-top: 0.25rem; min-width: 240px; border: 1px solid var(--input); border-radius: 0.375rem; background: var(--bg); padding: 0.25rem; box-shadow: var(--shadow-lg); left: 0; }
.dd-menu.end { left: auto; right: 0; }
.dd-menu button { display: flex; width: 100%; align-items: center; gap: 0.5rem; border-radius: 0.25rem; padding: 0.375rem 0.5rem; text-align: left; font-size: 0.875rem; }
.dd-menu button:hover { background: var(--muted); }

/* calendar view */
.cal-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .cal-grid { grid-template-columns: 1fr 1fr; } }
.dp { width: 100%; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dp-head .nav-btn { width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.375rem; opacity: 0.6; }
.dp-head .nav-btn:hover { opacity: 1; background: var(--muted); }
.dp-table { width: 100%; border-collapse: collapse; }
.dp-table th { color: var(--muted-fg); font-weight: 400; font-size: 0.8rem; padding: 0.5rem 0; }
.dp-table td { text-align: center; padding: 0.125rem 0; }
.dp-day { position: relative; width: 2.25rem; height: 2.25rem; border-radius: 0.375rem; font-size: 0.875rem; }
.dp-day:hover { background: var(--muted); }
.dp-day.today { background: var(--accent); font-weight: 700; }
.dp-day.selected { background: var(--primary); color: var(--primary-fg); }
.dp-day.outside { opacity: 0.35; }
.dp-day.has-events::after { content: ""; position: absolute; bottom: 0.25rem; left: 50%; transform: translateX(-50%); width: 0.25rem; height: 0.25rem; border-radius: 9999px; background: var(--primary); }
.dp-day.selected.has-events::after { background: var(--primary-fg); }

/* testimonials */
.stars { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; }
.stars .icon.on { fill: #facc15; stroke: #facc15; }
.stars .icon.off { stroke: var(--muted-fg); }

/* toast */
#toasts { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: grid; gap: 0.5rem; }
.toast { border-radius: 0.5rem; background: var(--primary); color: #fff; padding: 0.75rem 1.25rem; font-size: 0.875rem; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; max-width: 22rem; }
.toast.err { background: var(--destructive); }
.toast .t-sub { opacity: .8; font-size: 0.8125rem; margin-top: 0.125rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(0.5rem); } }

/* modal */
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.5); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { width: 100%; max-width: 34rem; max-height: 90vh; overflow-y: auto; border-radius: var(--radius); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.modal.lg { max-width: 52rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head h3 { font-size: 1.25rem; }

/* skeletons */
.skel { animation: pulse 1.6s ease-in-out infinite; background: var(--muted); border-radius: var(--radius); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- admin ---------- */
.admin-shell { padding: 2rem 0 5rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 1.75rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.stat-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-card .num { font-size: 1.75rem; font-weight: 700; color: #271e0f; }
.stat-card .lbl { color: var(--muted-fg); font-size: 0.8125rem; margin-top: 0.25rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 640px; }
table.data th { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted-fg); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--fg); }
table.data td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgb(244 239 231 / 0.5); }
.row-actions { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.chip { display: inline-block; border-radius: 9999px; padding: 0.125rem 0.625rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.chip-live { background: #e8f3e8; color: #1e6b2e; }
.chip-draft { background: var(--muted); color: var(--muted-fg); }
.chip-archive { background: #f3ecd9; color: #8a6d1a; }
.chip-new { background: #e3edf7; color: #1c5d99; }
.chip-confirmed { background: #e8f3e8; color: #1e6b2e; }
.chip-cancelled { background: #fbeaea; color: #a02020; }
.chip-type { background: rgb(39 30 15 / 0.1); color: #271e0f; }
.admin-form { display: grid; gap: 1rem; }
.form-2col { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; border: 1px solid var(--input); border-bottom: 0; border-radius: 0.375rem 0.375rem 0 0; padding: 0.375rem; background: var(--muted); }
.rt-toolbar button { padding: 0.25rem 0.625rem; border-radius: 0.25rem; font-size: 0.8125rem; font-weight: 600; }
.rt-toolbar button:hover { background: var(--accent); }
.rt-editor { min-height: 12rem; border: 1px solid var(--input); border-radius: 0 0 0.375rem 0.375rem; background: var(--bg); padding: 0.75rem; font-size: 0.9375rem; overflow-y: auto; max-height: 30rem; }
.rt-editor:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.img-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; max-height: 16rem; overflow-y: auto; padding: 0.25rem; }
.img-pick-grid button { position: relative; aspect-ratio: 1; border-radius: 0.375rem; overflow: hidden; border: 2px solid transparent; padding: 0; }
.img-pick-grid button img { width: 100%; height: 100%; object-fit: cover; }
.img-pick-grid button.sel { border-color: var(--primary); }
.admin-gate { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }

/* utility spacing */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.muted { color: var(--muted-fg); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.75rem; }
.bold { font-weight: 700; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .wrap { flex-wrap: wrap; }
.bg-soft { background: rgb(244 239 231 / 0.4); }

/* loading page */
.page-loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; color: var(--muted-fg); }

/* empty state */
.empty-state { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 3rem; text-align: center; }
.empty-state .icon { width: 3rem; height: 3rem; color: var(--muted-fg); margin: 0 auto 1rem; }

/* search input with icon */
.search-wrap { position: relative; max-width: 28rem; }
.search-wrap .icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; }
.search-wrap input { padding-left: 2.5rem; }

@media print { .site-header, .site-footer, .cta-band { display: none; } }

/* ============================================================
   Refinement layer — appended 2026-07-27 (Ora · Fable 5)
   Non-destructive cascade overrides: generous side padding,
   typographic rhythm, softer motion, a11y focus states.
   Remove this block to revert to the migrated 1:1 baseline.
   ============================================================ */

/* --- breathing room: side padding at every width --- */
.container { padding-inline: 1.5rem; }
@media (min-width: 768px) { .container { padding-inline: 2.75rem; } }
@media (min-width: 1024px) { .container { padding-inline: 3.5rem; } }
.event-hero-content .inner { padding-inline: 1.5rem; }
@media (min-width: 768px) { .event-hero-content .inner { padding-inline: 2.5rem; } }

/* --- typographic awareness --- */
body { text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p, .card-desc, .sub { text-wrap: pretty; }
::selection { background: #271e0f; color: #fbf8f3; }

/* --- vertical rhythm: fluid section spacing --- */
.section { padding-block: clamp(3.5rem, 6vw, 5rem); }
.section-lg { padding-block: clamp(5rem, 9vw, 7.5rem); }
.cta-band { padding-block: clamp(4.5rem, 8vw, 7rem); }
/* cascade guard: the baseline `.section/.page-hero/.admin-shell { padding: X 0 }`
   shorthands zero the container's side padding (same specificity, later in file).
   Re-assert the side padding here with compound selectors so it always wins. */
.container, .page-hero.container, .section.container, .section-lg.container, .admin-shell.container { padding-inline: 1.5rem; }
@media (min-width: 768px) { .container, .page-hero.container, .section.container, .section-lg.container, .admin-shell.container { padding-inline: 2.75rem; } }
@media (min-width: 1024px) { .container, .page-hero.container, .section.container, .section-lg.container, .admin-shell.container { padding-inline: 3.5rem; } }
.sec-head { margin-bottom: 2.5rem; }

/* --- header: quieter glass, intentional hover --- */
.site-header { background: rgb(238 227 215 / 0.88); backdrop-filter: blur(12px) saturate(1.35); -webkit-backdrop-filter: blur(12px) saturate(1.35); }
.main-nav { gap: 1.75rem; }
.main-nav a { position: relative; padding: 0.25rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--primary); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.main-nav a:hover, .header-actions a:hover { color: var(--primary); }
.mobile-nav nav { padding: 1.25rem 1.5rem; gap: 1.25rem; }
.mobile-nav nav a { font-size: 1rem; font-weight: 500; }

/* --- hero: depth instead of a flat scrim --- */
.hero-panel { border-radius: 1.25rem; }
@media (min-width: 1024px) { .hero-panel { padding: 6rem 4rem; } }
.hero-overlay { background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.36)); }
.hero-content .sub { line-height: 1.6; }
.event-hero-bg::after { background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.42)); }

/* --- buttons: tactile, calm --- */
.btn { border-radius: 0.5rem; transition: background-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 8px 18px -8px rgb(39 30 15 / 0.5); }

/* --- filter tabs → pills --- */
.tab-btn { border-radius: 9999px; padding: 0.5rem 1.125rem; }
.tab-btn.active { box-shadow: 0 4px 10px -4px rgb(39 30 15 / 0.4); }

/* --- cards: lift, don't just shadow --- */
.card-hover { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: rgb(39 30 15 / 0.18); box-shadow: 0 18px 32px -12px rgb(39 30 15 / 0.18), 0 6px 12px -6px rgb(39 30 15 / 0.10); }
.card-img img { transition: transform .45s cubic-bezier(.22,.61,.36,1); }

/* --- gallery captions: gradient, not a slab --- */
.g-cap { background: linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.45) 65%, rgb(0 0 0 / 0)); padding-top: 2.25rem; }

/* --- forms: soft focus ring --- */
.input, textarea.input, select.input { padding: 0.625rem 0.875rem; border-radius: 0.5rem; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(39 30 15 / 0.12); }

/* --- footer: settle the base of the page --- */
.site-footer { background: rgb(244 239 231 / 0.6); }
.footer-grid { padding: 4rem 0 0; gap: 2.5rem; }

/* --- a11y: visible keyboard focus everywhere --- */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:focus-visible, .tab-btn:focus-visible { outline-offset: 3px; }

/* --- quiet scrollbar inside the scroll shell --- */
#siteScroll::-webkit-scrollbar { width: 10px; }
#siteScroll::-webkit-scrollbar-thumb { background: rgb(39 30 15 / 0.18); border-radius: 8px; border: 2px solid var(--bg); }
#siteScroll::-webkit-scrollbar-thumb:hover { background: rgb(39 30 15 / 0.30); }

/* --- respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card-hover:hover, .btn:hover { transform: none; }
}

/* --- event supply list (Lynn L3, 2026-07-27) --- */
.supply-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .supply-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.supply-list li { display: flex; gap: 0.875rem; align-items: flex-start; }
.supply-check { flex-shrink: 0; width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; border: 2px solid rgb(39 30 15 / 0.35); border-radius: 0.375rem; background: var(--bg); color: #271e0f; font-size: 0.8125rem; display: flex; align-items: center; justify-content: center; }

/* --- printable flyer card (Lynn L2, 2026-07-27) --- */
.flyer-card { display: flex; align-items: center; gap: 1.125rem; padding: 0.875rem 1.125rem; }
.flyer-card img { width: 3.75rem; height: auto; border-radius: 0.375rem; border: 1px solid var(--border); flex-shrink: 0; }

/* --- Venmo payment block on priced events (2026-07-27) --- */
.venmo-pay { border: 1px solid var(--border); border-radius: var(--radius); background: rgb(244 239 231 / 0.5); padding: 1.25rem; }
