/* Lost River Events — theme layer on top of Bootstrap 5.3 (light + dark) */
:root {
  --lre-forest: #1f4d3a; --lre-pine: #2f6b4f; --lre-sage: #5f9c78; --lre-river: #2b6f8f; --lre-sky: #4fa8d1;
  --lre-amber: #e0912f; --lre-amber-d: #c27719; --lre-cream: #f7efe0; --lre-amber-ink: #1d1408;
  --lre-footer: #13271f; --lre-footer-ink: #e7e2d6; --lre-shadow-rgb: 20,40,30; --lre-sage-rgb: 95,156,120; --lre-amber-rgb: 224,145,47; --lre-accent-text: #9fd0b2;
  --lre-radius: 1.1rem; --lre-shadow: 0 1px 2px rgba(var(--lre-shadow-rgb),.06), 0 8px 24px -12px rgba(var(--lre-shadow-rgb),.18);
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: var(--lre-forest); --bs-primary-rgb: 31,77,58; --bs-link-color: var(--lre-river); --bs-link-hover-color: var(--lre-forest);
  --bs-border-radius: .7rem; --bs-border-radius-lg: 1rem;
}
[data-bs-theme="light"] { --bs-body-bg: #faf7f1; --lre-card: #fff; --lre-muted-bg: #f1ece2; --lre-nav: rgba(250,247,241,.88); --bs-body-color: #1d2b25; }
[data-bs-theme="dark"]  { --bs-body-bg: #0e1613; --lre-card: #16211c; --lre-muted-bg: #1c2a24; --lre-nav: rgba(14,22,19,.86); --bs-body-color: #e4e9e5;
  --bs-border-color: #26362e; --bs-link-color: #7cc4e4; --bs-link-hover-color: #a9dcf1; --bs-secondary-bg: #1c2a24; --bs-tertiary-bg: #16211c; }

body { font-feature-settings: "cv11","ss01"; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3, .display-font { font-family: "Fraunces", Georgia, serif; letter-spacing: -.01em; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.site-main { min-height: 60vh; }
@media (max-width: 991.98px) { .site-main { padding-bottom: 4.5rem; } }

/* ---------- Buttons ---------- */
.btn-brand { --bs-btn-bg: var(--lre-forest); --bs-btn-border-color: var(--lre-forest); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--lre-pine); --bs-btn-hover-border-color: var(--lre-pine); --bs-btn-hover-color:#fff; --bs-btn-active-bg: var(--lre-pine); }
[data-bs-theme="dark"] .btn-brand { --bs-btn-bg: var(--lre-sage); --bs-btn-border-color: var(--lre-sage); --bs-btn-color: var(--bs-body-bg); --bs-btn-hover-bg: var(--lre-accent-text); --bs-btn-hover-border-color: var(--lre-accent-text); --bs-btn-hover-color: var(--bs-body-bg); }
.btn-outline-brand { --bs-btn-color: var(--lre-forest); --bs-btn-border-color: var(--lre-forest); --bs-btn-hover-bg: var(--lre-forest); --bs-btn-hover-color: #fff; }
[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-color: var(--lre-accent-text); --bs-btn-border-color: var(--lre-sage); --bs-btn-hover-bg: var(--lre-sage); --bs-btn-hover-border-color: var(--lre-sage); --bs-btn-hover-color: var(--bs-body-bg); }
.btn-amber { --bs-btn-bg: var(--lre-amber); --bs-btn-border-color: var(--lre-amber); --bs-btn-color: var(--lre-amber-ink); --bs-btn-hover-bg: var(--lre-amber-d); --bs-btn-hover-border-color: var(--lre-amber-d); --bs-btn-hover-color:#fff; font-weight: 600; }
.btn-icon { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; color: inherit; }
.btn-icon:hover { background: var(--lre-muted-bg); }
.btn { font-weight: 500; }

/* ---------- Navigation ---------- */
.announce-bar { background: var(--lre-amber); color: var(--lre-amber-ink); text-align: center; font-size: .875rem; padding: .4rem 1rem; font-weight: 500; }
.impersonate-bar { background: #6f42c1; color: #fff; text-align: center; font-size: .875rem; padding: .35rem 1rem; }
.site-nav { background: var(--lre-nav); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--bs-border-color); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--lre-forest); }
.brand-sub { font-size: .62rem; letter-spacing: .42em; font-weight: 700; color: var(--lre-amber); margin-top: 3px; }
[data-bs-theme="dark"] .brand-name { color: var(--lre-cream); }
.site-nav .nav-link { font-weight: 500; border-radius: .6rem; padding: .45rem .8rem !important; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { background: var(--lre-muted-bg); color: var(--bs-body-color); }
.nav-search .form-control { border-radius: 2rem; min-width: 200px; background: var(--lre-muted-bg); border-color: transparent; }
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; }
.avatar-initials { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--lre-sage), var(--lre-forest)); color: #fff; font-weight: 600; font-size: .8rem; }

.mobile-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex; justify-content: space-around;
  background: var(--lre-nav); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--bs-border-color); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
.mobile-tabbar a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; color: var(--bs-secondary-color); text-decoration: none; gap: 2px; padding: .2rem .8rem; border-radius: .8rem; }
.mobile-tabbar a i { font-size: 1.1rem; }
.mobile-tabbar a.active { color: var(--lre-forest); background: var(--lre-muted-bg); }
[data-bs-theme="dark"] .mobile-tabbar a.active { color: var(--lre-accent-text); }

/* ---------- Cards ---------- */
.card { --bs-card-bg: var(--lre-card); border: 1px solid var(--bs-border-color); border-radius: var(--lre-radius); box-shadow: var(--lre-shadow); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(var(--lre-shadow-rgb),.06), 0 18px 34px -16px rgba(var(--lre-shadow-rgb),.32); }
.event-card { overflow: hidden; height: 100%; }
.event-card .ev-img { aspect-ratio: 16/9; background: var(--lre-muted-bg) center/cover no-repeat; position: relative; }
.event-card .ev-img.placeholder-img { display: grid; place-items: center; color: #fff; font-size: 2.2rem; }
.date-chip { position: absolute; left: .75rem; top: .75rem; background: var(--lre-card); color: var(--bs-body-color); border-radius: .8rem; text-align: center; padding: .3rem .6rem; line-height: 1.05; box-shadow: var(--lre-shadow); min-width: 3.2rem; }
.date-chip .m { font-size: .68rem; text-transform: uppercase; font-weight: 700; color: var(--lre-amber); letter-spacing: .06em; }
.date-chip .d { font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 700; }
.cat-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 2rem; color: #fff; }
.event-card .card-title { font-family: "Fraunces", serif; font-size: 1.15rem; margin-bottom: .25rem; }
.event-card .card-title a { color: inherit; text-decoration: none; }
.event-card .card-title a::after { content: ""; position: absolute; inset: 0; }
.event-card .meta { font-size: .85rem; color: var(--bs-secondary-color); }
.event-card .org-line { display: flex; align-items: center; gap: .5rem; font-size: .82rem; position: relative; z-index: 2; }
.org-logo { width: 28px; height: 28px; border-radius: .5rem; object-fit: cover; background: var(--lre-muted-bg); }
.org-logo-lg { width: 96px; height: 96px; border-radius: 1.2rem; object-fit: cover; background: var(--lre-card); border: 4px solid var(--lre-card); box-shadow: var(--lre-shadow); }
.select-check { position: absolute; right: .7rem; top: .7rem; z-index: 3; width: 1.4rem; height: 1.4rem; }
.featured-ribbon { position: absolute; right: .75rem; bottom: .75rem; background: var(--lre-amber); color: var(--lre-amber-ink); font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--lre-cream); background: linear-gradient(160deg, var(--lre-forest) 0%, var(--lre-pine) 45%, var(--lre-river) 120%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L180 30 L340 70 L520 10 L700 75 L880 25 L1060 70 L1260 20 L1440 60 V120 H0Z' fill='%23ffffff' fill-opacity='.06'/%3E%3Cpath d='M0 100 L200 60 L380 95 L560 50 L760 100 L940 55 L1140 95 L1300 65 L1440 90 V120 H0Z' fill='%23ffffff' fill-opacity='.08'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; pointer-events: none; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; }
.hero .lead { color: var(--lre-cream); opacity: .88; }
.hero-search { background: rgba(255,255,255,.96); border-radius: 1.2rem; padding: .4rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
[data-bs-theme="dark"] .hero-search { background: var(--lre-card); }
.hero-search .form-control, .hero-search .form-select { border: 0; background: transparent; box-shadow: none; }
.quick-chips .btn { border-radius: 2rem; background: rgba(255,255,255,.12); color: var(--lre-cream); border: 1px solid rgba(255,255,255,.2); font-size: .85rem; }
.quick-chips .btn:hover { background: rgba(255,255,255,.22); }
.stat-pill { background: rgba(255,255,255,.1); border-radius: 1rem; padding: .6rem 1rem; }

.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.section-title h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.cat-tile { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 1rem; background: var(--lre-card); border: 1px solid var(--bs-border-color); text-decoration: none; color: inherit; transition: .15s; }
.cat-tile:hover { border-color: var(--c); transform: translateY(-2px); }
.cat-tile .ic { width: 42px; height: 42px; border-radius: .8rem; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.partner-chip { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 1rem; background: var(--lre-card); border: 1px solid var(--bs-border-color); text-decoration: none; color: inherit; }
.partner-chip:hover { border-color: var(--lre-sage); }

/* ---------- Calendar ---------- */
.cal-shell { background: var(--lre-card); border-radius: var(--lre-radius); border: 1px solid var(--bs-border-color); box-shadow: var(--lre-shadow); padding: .75rem; }
@media (min-width: 768px) { .cal-shell { padding: 1.25rem; } }
.view-switch .btn { border-radius: 2rem !important; font-size: .85rem; }
.view-switch .btn.active { background: var(--lre-forest); color: #fff; border-color: var(--lre-forest); }
.fc { --fc-border-color: var(--bs-border-color); --fc-page-bg-color: var(--lre-card); --fc-neutral-bg-color: var(--lre-muted-bg); --fc-list-event-hover-bg-color: var(--lre-muted-bg);
  --fc-today-bg-color: rgba(var(--lre-amber-rgb),.12); --fc-button-bg-color: var(--lre-forest); --fc-button-border-color: var(--lre-forest); --fc-button-hover-bg-color: var(--lre-pine);
  --fc-button-active-bg-color: var(--lre-pine); --fc-event-border-color: transparent; font-size: .88rem; }
.fc .fc-toolbar-title { font-family: "Fraunces", serif; font-size: 1.35rem; }
.fc .fc-button { border-radius: .6rem; text-transform: capitalize; padding: .3rem .7rem; }
.fc .fc-daygrid-event { border-radius: .4rem; padding: 1px 4px; }
.fc .fc-event.is-inactive { opacity: .55; background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.25) 6px 12px); }
.fc .fc-event.is-featured { box-shadow: 0 0 0 2px var(--lre-amber) inset, 0 0 0 1px var(--lre-amber); font-weight: 600; }
.fc .fc-daygrid-dot-event.is-featured, .fc .fc-list-event.is-featured td { box-shadow: none; background: rgba(var(--lre-amber-rgb), .14); }
.fc .fc-feat-star { color: var(--lre-amber); margin-right: .3em; font-size: .85em; }
.fc .fc-event.is-featured:not(.fc-daygrid-dot-event):not(.fc-list-event) .fc-feat-star { color: #ffd98a; }
.fc .fc-list-event-title a { font-weight: 600; }
.fc .fc-multimonth-title { font-family: "Fraunces", serif; }
@media (max-width: 575.98px) { .fc .fc-toolbar { flex-direction: column; gap: .5rem; } .fc .fc-toolbar-title { font-size: 1.15rem; } }
.legend-dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }

/* ---------- Event detail ---------- */
.event-hero-img { border-radius: var(--lre-radius); aspect-ratio: 16/8; object-fit: cover; width: 100%; background: var(--lre-muted-bg); }
.info-row { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 38px; height: 38px; border-radius: .7rem; background: var(--lre-muted-bg); display: grid; place-items: center; color: var(--lre-forest); flex: none; }
[data-bs-theme="dark"] .info-row .ic { color: var(--lre-accent-text); }
.rich-content img { max-width: 100%; height: auto; border-radius: .8rem; }
.rich-content blockquote { border-left: 4px solid var(--lre-amber); padding-left: 1rem; color: var(--bs-secondary-color); }
.rich-content .ql-align-center { text-align: center; } .rich-content .ql-align-right { text-align: right; }
.paywall-lock { position: relative; border-radius: var(--lre-radius); overflow: hidden; }
.paywall-lock .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.paywall-lock .lock-cta { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to bottom, transparent, var(--bs-body-bg) 70%); }
/* Same 3:1 shape as the cover-photo cropper, so the whole picture shows at every screen size */
.org-head { margin-top: -44px; padding-left: 1rem; }
@media (max-width: 575.98px) { .org-head { margin-top: -28px; padding-left: .6rem; } .org-head .org-logo-lg { width: 76px; height: 76px; } }
/* Cover banners: fixed height for a consistent layout; the photo is scaled to fit (never cropped),
   with a blurred copy of itself filling any leftover space. */
.cover-banner { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--lre-forest), var(--lre-river)); }
.cover-banner-blur { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) saturate(1.15) brightness(.85); transform: scale(1.08); z-index: -1; }
.cover-banner-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.org-cover { height: 240px; border-radius: var(--lre-radius); }
.org-card-cover { height: auto; aspect-ratio: 3 / 1; }  /* same shape as the cover cropper, so it fills the card at any width */
.org-head, .org-card-logo { position: relative; z-index: 1; }  /* logos overlap the cover — keep them on top */
.org-card-cover .cover-banner-blur { inset: -20px; filter: blur(14px) saturate(1.15) brightness(.85); }
@media (max-width: 767.98px) { .org-cover { height: 170px; } }
@media (max-width: 575.98px) { .org-cover { height: 140px; } }

/* ---------- Dashboard / Admin ---------- */
.dash-nav { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { white-space: nowrap; padding: .45rem .9rem; border-radius: 2rem; text-decoration: none; color: var(--bs-body-color); background: var(--lre-card); border: 1px solid var(--bs-border-color); font-size: .88rem; font-weight: 500; }
.dash-nav a.active { background: var(--lre-forest); border-color: var(--lre-forest); color: #fff; }
.dash-nav a .badge { font-size: .65rem; }
.stat-card { padding: 1.1rem 1.2rem; }
.stat-card .num { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .lbl { font-size: .8rem; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-card .ic { width: 44px; height: 44px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.15rem; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 600; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; margin-right: .35rem; }
.form-switch { padding-left: 3.4em; min-height: 1.6em; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; margin-left: -3.4em; margin-top: .05em; cursor: pointer; flex-shrink: 0; }
.form-switch .form-check-label { padding-top: .1em; cursor: pointer; }
.form-switch.d-inline-block.m-0 { padding-left: 2.6em; } .form-switch.d-inline-block.m-0 .form-check-input { margin-left: -2.6em; }
.form-check:not(.form-switch) { padding-left: 1.8em; } .form-check:not(.form-switch) .form-check-input { margin-left: -1.8em; }
.form-switch .form-check-input:checked { background-color: var(--lre-sage); border-color: var(--lre-sage); }
.form-control, .form-select { border-radius: .7rem; }
.form-label { font-weight: 600; font-size: .88rem; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; background: var(--lre-nav); backdrop-filter: blur(10px); border-top: 1px solid var(--bs-border-color); padding: .8rem 0; margin-top: 1.5rem; }
@media (max-width: 991.98px) { .sticky-actions { bottom: 3.9rem; } }
.bulk-bar { position: sticky; top: 70px; z-index: 6; display: none; }
.bulk-bar.show { display: block; }
.ev-row-thumb { width: 64px; height: 44px; border-radius: .5rem; object-fit: cover; background: var(--lre-muted-bg); }
.event-list-mobile .card { border-radius: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--bs-secondary-color); }
.empty-state i { font-size: 2.5rem; opacity: .4; margin-bottom: 1rem; display: block; }

/* Quill editor */
.editor-wrap { border-radius: .8rem; overflow: hidden; border: 1px solid var(--bs-border-color); background: var(--lre-card); }
.editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--bs-border-color); background: var(--lre-muted-bg); }
.editor-wrap .ql-container.ql-snow { border: 0; min-height: 220px; font-family: inherit; font-size: 1rem; }
[data-bs-theme="dark"] .ql-snow .ql-stroke { stroke: #cfd8d3; } [data-bs-theme="dark"] .ql-snow .ql-fill { fill: #cfd8d3; }
[data-bs-theme="dark"] .ql-snow .ql-picker { color: #cfd8d3; } [data-bs-theme="dark"] .ql-snow .ql-picker-options { background: var(--lre-card); }
[data-bs-theme="dark"] .ql-editor.ql-blank::before { color: #7b8a83; }
.img-drop { border: 2px dashed var(--bs-border-color); border-radius: 1rem; padding: 1rem; text-align: center; cursor: pointer; background: var(--lre-muted-bg); transition: .15s; }
.img-drop:hover, .img-drop.drag { border-color: var(--lre-sage); }
.img-drop img { max-height: 180px; border-radius: .7rem; max-width: 100%; }

/* Ads */
.ad-unit { text-align: center; }
.ad-unit .ad-report { font-size: .7rem; opacity: .7; } .ad-unit .ad-report:hover { opacity: 1; color: var(--bs-danger) !important; }
.footer-report { font-size: inherit !important; line-height: inherit; border: 0; vertical-align: baseline; }
.report-reasons { display: flex; flex-wrap: wrap; gap: .4rem; }
#reportModal .btn-check:checked + .btn { background: var(--lre-forest); border-color: var(--lre-forest); color: #fff; }
.ad-unit .ad-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bs-secondary-color); margin-bottom: .2rem; }
.ad-unit img { max-width: 100%; height: auto; border-radius: .6rem; }
.ad-in_feed .card { height: 100%; }

/* Footer */
.site-footer { background: var(--lre-footer); color: var(--lre-footer-ink); margin-top: 3rem; }
.site-footer h6 { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--lre-amber); }
.site-footer a { color: var(--lre-footer-ink); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer li { margin-bottom: .35rem; }

/* Auth */
.auth-wrap { max-width: 460px; margin: 2.5rem auto; }
.auth-wrap.wide { max-width: 680px; }
.auth-card { padding: 2rem; }
@media (max-width: 575.98px) { .auth-card { padding: 1.35rem; } }
.choice-card { cursor: pointer; border: 2px solid var(--bs-border-color); border-radius: 1rem; padding: 1rem; display: block; height: 100%; }
.choice-card .choice-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; line-height: 1.2; }
.choice-card .choice-head i { flex: 0 0 auto; width: 1.25em; text-align: center; }
.btn-check:checked + .choice-card { border-color: var(--lre-sage); background: var(--lre-muted-bg); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--lre-muted-bg); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: .2s; }

/* Pricing */
.plan-card { padding: 1.75rem; height: 100%; }
.plan-card .price { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 700; }

/* Print card */
@media print { .site-nav, .site-footer, .mobile-tabbar, .no-print, .ad-unit { display: none !important; } body { background: #fff; } }

.btn-check:focus-visible + .btn, .btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(var(--lre-sage-rgb),.35); border-color: var(--lre-sage); }
.text-forest { color: var(--lre-forest); } [data-bs-theme="dark"] .text-forest { color: var(--lre-accent-text); }
.text-amber { color: var(--lre-amber); }
.bg-muted { background: var(--lre-muted-bg); }
.rounded-xl { border-radius: var(--lre-radius) !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc a { color: inherit; text-decoration: none; }
.fc .fc-col-header-cell-cushion { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); padding: .5rem 0; }
.fc .fc-daygrid-day-number { font-size: .8rem; color: var(--bs-secondary-color); }
.fc .fc-daygrid-dot-event .fc-event-title { font-weight: 600; }
.fc .fc-daygrid-dot-event:hover { background: var(--lre-muted-bg); }
@media (max-width: 575.98px) { .table > :not(caption) > * > * { padding: .55rem .4rem; } }

.cat-badge-extra { background: transparent; color: var(--c); border: 1.5px solid var(--c); }
[data-bs-theme="dark"] .cat-badge-extra { filter: brightness(1.35); }

/* Forms that wrap a whole modal (header/body/footer) keep Bootstrap's scrollable layout: body scrolls, buttons stay visible */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; }

/* Styled confirm dialog */
#lreConfirm .confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
#lreConfirm .confirm-icon.is-danger { background: rgba(var(--bs-danger-rgb), .12); color: var(--bs-danger); }
#lreConfirm .confirm-icon.is-info { background: rgba(var(--lre-sage-rgb), .18); color: var(--lre-forest); }

/* Event status pills + repeating events */
.status-pill { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.rsvp-pill { position: relative; z-index: 2; text-decoration: none; border: 1px solid transparent; }
.rsvp-pill:hover { filter: brightness(.95); text-decoration: none; }
.rsvp-pill.is-going { background: #dcefe3; color: #1f5137; border-color: #b6dbc4; }
.rsvp-pill.is-maybe { background: #dceef6; color: #1d5670; border-color: #b4d8e8; }
.rsvp-pill.is-declined { background: #eeeeee; color: #555; border-color: #d6d6d6; }
.rsvp-pill.is-waitlist, .rsvp-pill.is-pending { background: #fbe9cc; color: #6b4300; border-color: #f1d29c; }
.rsvp-pill.is-invited { background: #fff3d6; color: #6b4b00; border-color: #e8c66e; }
[data-bs-theme="dark"] .rsvp-pill { filter: brightness(.85) saturate(1.1); }
.status-pill.tool-on { background: #dcefe3; color: #1f5137; }
.status-pill.tool-off { background: #eeeeee; color: #666; }
.email-estimate { background: var(--bs-tertiary-bg); }
.email-estimate.is-over { background: #fde8e6; color: #8a1c12; }
[data-bs-theme="dark"] .email-estimate.is-over { background: #4a1f1b; color: #f8d3ce; }
.status-pill.is-private { background: #ece4f7; color: #4b2a7d; }
[data-bs-theme="dark"] .status-pill.is-private { background: #3a2b55; color: #e3d6f7; }
.fc .fc-private-lock { margin-right: .3em; font-size: .85em; }
.status-pill.is-canceled { background: #b42318; color: #fff; }
.status-pill.is-postponed { background: #f3d9a4; color: #5b3b00; }
.status-pill.is-tentative { background: #fff3bf; color: #6b5300; border: 1px dashed #c9a400; }
.status-pill.is-rescheduled { background: #d6e8f7; color: #154a75; }
.status-pill.is-repeat { background: rgba(var(--lre-sage-rgb), .18); color: var(--lre-forest); font-weight: 600; }
[data-bs-theme="dark"] .status-pill.is-postponed { background: #5b4314; color: #ffe1a6; }
[data-bs-theme="dark"] .status-pill.is-tentative { background: #4a3f12; color: #ffe58a; }
[data-bs-theme="dark"] .status-pill.is-rescheduled { background: #173a57; color: #bfe0ff; }
[data-bs-theme="dark"] .status-pill.is-repeat { color: var(--lre-accent-text); }
.event-card.is-canceled .card-title a { text-decoration: line-through; opacity: .7; }
.event-card.is-canceled .ev-img { filter: grayscale(.85); opacity: .75; }
.skip-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .35rem .2rem .7rem; border-radius: 999px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); font-size: .8rem; }
.btn-close-sm { width: .55em; height: .55em; padding: .25em; }
.series-list li:last-child { border-bottom: 0 !important; }
.status-banner { border-radius: 1rem; padding: 1rem 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.status-banner i { font-size: 1.35rem; margin-top: .1rem; }
.status-banner.is-canceled { background: rgba(180, 35, 24, .1); color: #8d1c12; }
.status-banner.is-postponed { background: rgba(243, 160, 30, .14); color: #6d4700; }
.status-banner.is-tentative { background: rgba(240, 200, 0, .14); color: #6b5300; }
.status-banner.is-rescheduled { background: rgba(31, 95, 153, .1); color: #154a75; }
[data-bs-theme="dark"] .status-banner { color: var(--bs-body-color); }
/* Calendar */
.fc .fc-event.is-canceled .fc-event-title, .fc .fc-event.is-canceled .fc-list-event-title { text-decoration: line-through; }
.fc .fc-event.is-canceled { opacity: .65; filter: grayscale(.6); }
.fc .fc-event.is-tentative:not(.fc-daygrid-dot-event):not(.fc-list-event) { border-style: dashed !important; }
.fc .fc-event.is-moved { opacity: .7; font-style: italic; background: transparent !important; border: 1px dashed var(--bs-secondary-color) !important; color: var(--bs-secondary-color) !important; }
.fc .fc-event.is-moved .fc-event-title, .fc .fc-event.is-moved .fc-event-time { color: var(--bs-secondary-color) !important; }
.fc .fc-status-tag { font-size: .68em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-right: .35em; padding: 0 .35em; border-radius: 4px; background: rgba(0,0,0,.22); }

/* Bell + notifications */
.bell-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d92d20; color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bs-body-bg); }
.bell-menu { width: min(380px, calc(100vw - 24px)); overflow: hidden; }
.bell-list { max-height: min(60vh, 420px); overflow-y: auto; }
.bell-item { display: flex; gap: .75rem; padding: .7rem 1rem; color: var(--bs-body-color); text-decoration: none; border-bottom: 1px solid var(--bs-border-color-translucent); }
.bell-item:hover { background: var(--bs-tertiary-bg); }
.bell-item.is-unread { background: rgba(var(--lre-sage-rgb), .1); }
.bell-item.is-unread .bell-title { font-weight: 600; }
.bell-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bell-msgs { color: var(--bs-body-color); background: rgba(var(--lre-amber-rgb), .12); }
.notif-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--lre-sage-rgb), .2); color: var(--lre-forest); font-size: .85rem; }
[data-bs-theme="dark"] .notif-icon { color: var(--lre-accent-text); }
.notif-icon.type-message { background: rgba(var(--lre-amber-rgb), .2); color: var(--lre-amber-ink); }
.notif-icon.type-event_change { background: rgba(180, 35, 24, .12); color: #b42318; }
.notif-icon.type-announcement { background: rgba(var(--lre-amber-rgb), .2); color: var(--lre-amber-ink); }
.list-group-item.is-unread { background: rgba(var(--lre-sage-rgb), .08); }
.unread-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #d92d20; align-self: center; }
/* Messages */
.conv-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--bs-tertiary-bg); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--lre-forest); }
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-thread { display: flex; flex-direction: column; gap: .9rem; max-height: 65vh; overflow-y: auto; }
.msg { max-width: 85%; align-self: flex-start; }
.msg.is-mine { align-self: flex-end; text-align: right; }
.msg-bubble { display: inline-block; text-align: left; padding: .65rem .9rem; border-radius: 16px 16px 16px 4px; background: var(--bs-tertiary-bg); white-space: normal; overflow-wrap: anywhere; }
.msg.is-mine .msg-bubble { border-radius: 16px 16px 4px 16px; background: var(--lre-forest); color: #fff; }
.msg.is-internal .msg-bubble { background: #fff6d6; color: #5b4a00; border: 1px dashed #d9b84a; }
[data-bs-theme="dark"] .msg.is-internal .msg-bubble { background: #3d3412; color: #ffe59a; }
.msg-meta { margin-bottom: .2rem; }
.announce-card { background: rgba(var(--lre-amber-rgb), .1); }
.announce-item + .announce-item { border-top: 1px solid var(--bs-border-color-translucent); margin-top: .75rem; padding-top: .75rem; }

/* Help guides */
.help-card { display: flex; flex-direction: column; }
.help-card.is-mine { box-shadow: 0 0 0 2px var(--lre-forest); }
.help-card-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--lre-sage-rgb), .2); color: var(--lre-forest); font-size: 1.25rem; }
.help-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
.help-toc li a { display: block; padding: .25rem .4rem; border-radius: 6px; text-decoration: none; color: var(--bs-body-color); }
.help-toc li a:hover, .help-toc li a.active { background: rgba(var(--lre-sage-rgb), .16); color: var(--lre-forest); }
[data-bs-theme="dark"] .help-toc li a.active { color: var(--lre-accent-text); }
.help-section { scroll-margin-top: 90px; }
.help-num { display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--lre-forest); color: #fff; font-size: .7em; margin-right: .55rem; vertical-align: .15em; }
.help-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .5rem; font-family: inherit; }
.help-body ol, .help-body ul { padding-left: 1.3rem; }
.help-body li { margin-bottom: .35rem; }
.help-body .help-path { display: inline-block; padding: .05rem .45rem; border-radius: 6px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); font-size: .88em; font-weight: 600; white-space: nowrap; }
.help-tip, .help-warn { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-size: .95rem; }
.help-tip { background: rgba(var(--lre-sage-rgb), .14); }
.help-warn { background: rgba(var(--lre-amber-rgb), .16); }
.help-tip::before { content: "Tip: "; font-weight: 700; }
.help-warn::before { content: "Heads up: "; font-weight: 700; }
.help-body table { width: 100%; font-size: .92rem; margin: .5rem 0 1rem; }
.help-body th, .help-body td { padding: .45rem .6rem; border-bottom: 1px solid var(--bs-border-color); vertical-align: top; }
.help-body th { background: var(--bs-tertiary-bg); }
@media print {
  .site-nav, .site-footer, .bottom-nav, .announce-bar { display: none !important; }
  .help-section { break-inside: avoid-page; box-shadow: none !important; border: 1px solid #ccc !important; }
  .help-guide .col-lg-9 { width: 100% !important; }
}

/* ---------- Events page: List view ---------- */
.ev-list { display: flex; flex-direction: column; gap: .6rem; }
.ev-day { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; font-weight: 600; margin: 1.1rem 0 .1rem; padding: .35rem 0; display: flex; align-items: center; gap: .5rem;
  position: sticky; top: 62px; z-index: 4; background: var(--bs-body-bg); }
.ev-day:first-child { margin-top: 0; }
.ev-day-rel { font-family: Inter, system-ui, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lre-amber-ink); background: rgba(var(--lre-amber-rgb), .9); border-radius: 999px; padding: .15rem .55rem; }
.ev-row { display: flex; align-items: center; gap: .9rem; background: var(--lre-card); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .6rem .9rem .6rem .6rem; box-shadow: var(--lre-shadow); }
.ev-row.is-featured { box-shadow: inset 4px 0 0 var(--lre-amber), var(--lre-shadow); }
.ev-row-img { flex: 0 0 96px; height: 72px; border-radius: .75rem; background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 1.4rem; position: relative; text-decoration: none; }
.ev-row-star { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 999px; background: var(--lre-amber); color: var(--lre-amber-ink); font-size: .62rem; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ev-row-check { position: absolute; top: .9rem; left: .9rem; z-index: 3; margin: 0; width: 1.2rem; height: 1.2rem; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ev-row-body { flex: 1 1 auto; min-width: 0; }
.ev-row-body .status-pill, .ev-row-body .rsvp-pill { position: relative; z-index: 2; }
.ev-row-title { font-family: "Fraunces", Georgia, serif; font-size: 1.06rem; font-weight: 600; line-height: 1.2; margin: 0 0 .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-row-title a { color: inherit; text-decoration: none; }
.ev-row:hover .ev-row-title a { color: var(--bs-link-color); }
.ev-row-meta { font-size: .82rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row-meta .sep { margin: 0 .35rem; }
.ev-row-cats { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .74rem; color: var(--bs-secondary-color); margin-top: .2rem; }
.ev-row-cats .legend-dot { width: .55rem; height: .55rem; margin-right: .3rem; }
.ev-row-when { flex: 0 0 auto; min-width: 5.2rem; text-align: right; padding-left: .5rem; border-left: 1px solid var(--bs-border-color); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ev-row-when .t1 { font-weight: 700; font-size: 1rem; color: var(--bs-body-color); white-space: nowrap; }
.ev-row-when .t2 { font-size: .74rem; color: var(--bs-secondary-color); white-space: nowrap; }
.ev-row.is-canceled .ev-row-title { text-decoration: line-through; opacity: .7; }
.ev-row.is-canceled .ev-row-img { filter: grayscale(.8); opacity: .7; }
.ev-list-ad .ad-label { font-size: .7rem; margin-bottom: .2rem; }
.ad-in-list .event-card { display: flex; flex-direction: row; align-items: center; height: auto; padding: .6rem; gap: .9rem; }
.ad-in-list .event-card .ev-img { flex: 0 0 96px; height: 72px; aspect-ratio: auto; border-radius: .75rem; }
.ad-in-list .event-card .card-body { padding: 0; }
@media (max-width: 575.98px) {
  .ev-row { gap: .7rem; padding: .5rem .7rem .5rem .5rem; }
  .ev-row-img, .ad-in-list .event-card .ev-img { flex-basis: 72px; height: 60px; }
  .ev-row-title { font-size: .98rem; }
  .ev-row-when { min-width: 4.4rem; padding-left: .45rem; }
  .ev-row-when .t1 { font-size: .9rem; }
  .ev-row-cats { display: none; }
  .ev-day { top: 56px; }
}

/* ---------- Events page: date pills + Filters toggle ---------- */
.pill-bar { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .2rem; -webkit-overflow-scrolling: touch; }
.pill-bar::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--bs-border-color); background: var(--lre-card); color: var(--bs-body-color); border-radius: 999px; padding: .32rem .85rem; font-size: .85rem; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: background .15s, border-color .15s; }
.pill:hover { border-color: var(--lre-sage); }
.pill.active { background: var(--lre-forest); border-color: var(--lre-forest); color: #fff; }
.pill-sep { flex: none; width: 1px; height: 1.4rem; background: var(--bs-border-color); margin: 0 .2rem; }
.pill-filter.has-filters { border-color: var(--lre-forest); color: var(--lre-forest); font-weight: 600; }
[data-bs-theme="dark"] .pill-filter.has-filters { color: var(--lre-accent-text); border-color: var(--lre-accent-text); }
.pill-count:not(:empty) { margin-left: .4rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--lre-amber); color: var(--lre-amber-ink); font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.pill-bar .dropdown-menu { font-size: .9rem; }
@media (max-width: 767.98px) {
  /* On phones the date pills scroll sideways, so keep Filters first where it's always visible */
  .pill-bar .pill-filter { order: -2; }
  .pill-bar .pill-sep { order: -1; }
}
/* Upcoming / Past toggle */
.pill-toggle { flex: none; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--lre-muted-bg); border: 1px solid var(--bs-border-color); }
.pill-toggle button { border: 0; background: transparent; color: var(--bs-secondary-color); border-radius: 999px; padding: .26rem .8rem; font-size: .85rem; font-weight: 600; line-height: 1.3; }
.pill-toggle button.active { background: var(--lre-card); color: var(--bs-body-color); box-shadow: 0 1px 3px rgba(var(--lre-shadow-rgb), .2); }
@media (max-width: 767.98px) {
  .pill-bar .pill-toggle { order: -4; }
  .pill-bar .pill-sep:first-of-type { order: -3; }
}

/* ---------- Image editor (crop before upload) ---------- */
.img-drop { position: relative; }
.img-drop-edit { position: absolute; top: .5rem; right: .5rem; z-index: 2; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); border-radius: 999px; font-weight: 600; }
.img-drop.has-image .img-drop-edit { display: inline-flex; align-items: center; }
.ie-stage { height: min(62vh, 520px); background: #1b1f1d; border-radius: .9rem; overflow: hidden; }
.ie-stage img { display: block; max-width: 100%; }
.ie-preview { width: 100%; overflow: hidden; border-radius: .75rem; background: var(--lre-muted-bg); border: 1px solid var(--bs-border-color); }
.ie-preview.is-round { width: 60%; border-radius: 50%; }
.ie-preview img { max-width: none; }
#imgEditor .cropper-view-box { outline: 2px solid #fff; outline-color: rgba(255,255,255,.9); }
#imgEditor .cropper-line, #imgEditor .cropper-point { background-color: #fff; }
#imgEditor .cropper-point { width: 10px; height: 10px; border-radius: 50%; opacity: 1; }
@media (max-width: 991.98px) { .ie-stage { height: 50vh; } .ie-preview { max-width: 320px; } }
/* ---------- Social media image maker ---------- */
.sm-stage { background: repeating-conic-gradient(var(--lre-muted-bg) 0% 25%, transparent 0% 50%) 0 0 / 22px 22px; border-radius: .9rem; padding: 1rem; display: grid; place-items: center; min-height: 320px; }
.sm-stage canvas { max-width: 100%; max-height: 62vh; height: auto; width: auto; border-radius: .5rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sm-stage[data-format="story"] canvas { max-height: 66vh; }
.form-range { accent-color: var(--lre-forest); }
/* Social image maker: layers + edit panel */
.sm-stage canvas { cursor: pointer; }
.sm-stage canvas:focus-visible { outline: 3px solid var(--lre-river); outline-offset: 3px; }
.sm-layers { display: flex; flex-wrap: wrap; gap: .35rem; }
.sm-layer { display: inline-flex; align-items: center; border: 1px solid var(--bs-border-color); border-radius: 999px; background: var(--lre-card); overflow: hidden; }
.sm-layer.active { border-color: var(--lre-river); box-shadow: 0 0 0 2px rgba(79,168,209,.35); }
.sm-layer.is-hidden .sm-layer-name { opacity: .5; text-decoration: line-through; }
.sm-layer-name, .sm-eye { border: 0; background: none; font-size: .8rem; padding: .28rem .55rem; color: var(--bs-body-color); }
.sm-eye { padding-left: .2rem; color: var(--bs-secondary-color); }
.sm-swatches { display: flex; flex-wrap: wrap; gap: .35rem; }
.sm-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bs-border-color); padding: 0; position: relative; cursor: pointer; }
.sm-sw.active { outline: 2px solid var(--lre-river); outline-offset: 2px; }
.sm-sw-custom { display: inline-grid; place-items: center; background: conic-gradient(#e0912f, #f2c14e, #5f9c78, #4fa8d1, #8e44ad, #c0392b, #e0912f); color: #fff; font-size: .7rem; overflow: hidden; }
.sm-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (min-width: 992px) { .sm-panel { max-height: 70vh; overflow-y: auto; } }
.form-range::-webkit-slider-thumb { background: var(--lre-forest); }
.form-range::-moz-range-thumb { background: var(--lre-forest); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(31,77,58,.25); }

/* One date of a repeating event: "what's special on this date" */
.date-note { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 1rem; background: rgba(var(--lre-amber-rgb), .14); border: 1px solid rgba(var(--lre-amber-rgb), .45); }
.date-note > i { color: var(--lre-amber); font-size: 1.1rem; margin-top: .15rem; }
.date-note .small { color: var(--lre-amber-ink); opacity: .85; }
[data-bs-theme="dark"] .date-note .small { color: var(--lre-amber); }
.ev-row-note { font-size: .8rem; font-weight: 600; color: var(--lre-amber-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-bs-theme="dark"] .ev-row-note { color: var(--lre-amber); }
.ev-row-note i { color: var(--lre-amber); }
.date-only-card { border-left: 4px solid var(--lre-amber); }
/* List / Cards / Calendar: separate pills with a little space between */
.view-switch { gap: .4rem; flex-wrap: wrap; }
.view-switch > .btn { margin-left: 0 !important; border-radius: 2rem !important; }
