/* Amelia Island Bird Club — public site
 * Colours and fonts come from /theme.css (Theme Studio). Everything here refers
 * to the --aibc-* custom properties so the whole site follows theme changes.
 */

:root {
  --aibc-shadow-sm: 0 1px 2px rgba(var(--aibc-ink-rgb), .06), 0 2px 8px rgba(var(--aibc-ink-rgb), .05);
  --aibc-shadow: 0 2px 4px rgba(var(--aibc-ink-rgb), .05), 0 12px 32px -8px rgba(var(--aibc-primary-deep-rgb), .18);
  --aibc-shadow-lg: 0 24px 60px -20px rgba(var(--aibc-primary-deep-rgb), .35);
  --aibc-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body.site {
  font-family: var(--aibc-font-body);
  color: var(--aibc-ink);
  background: var(--aibc-sand);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display-heading {
  font-family: var(--aibc-font-heading);
  color: var(--aibc-primary-deep);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
a { color: var(--aibc-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--aibc-primary-deep); }
::selection { background: rgba(var(--aibc-sky-rgb), .3); }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--aibc-surface); padding: .5rem 1rem; border-radius: 8px; }
.text-muted, .muted { color: var(--aibc-muted) !important; }
img { max-width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.35rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: transform .15s var(--aibc-ease), box-shadow .15s, background-color .15s; }
.btn-sm { min-height: 36px; padding: .35rem .9rem; }
.btn-primary { background: var(--aibc-primary); border-color: var(--aibc-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--aibc-primary-deep); border-color: var(--aibc-primary-deep); color: #fff; }
.btn-outline-primary { color: var(--aibc-primary); border-color: rgba(var(--aibc-primary-rgb), .45); background: transparent; }
.btn-outline-primary:hover { background: var(--aibc-primary); border-color: var(--aibc-primary); color: #fff; }
.btn-sand { background: var(--aibc-surface); color: var(--aibc-primary-deep); border: 1px solid var(--aibc-line); }
.btn-sand:hover { background: var(--aibc-primary-tint); color: var(--aibc-primary-deep); }
.btn-light-ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-light-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:focus-visible, a:focus-visible, .form-control:focus, .form-select:focus { outline: 3px solid rgba(var(--aibc-sky-rgb), .55); outline-offset: 2px; box-shadow: none; }

/* ── Header ───────────────────────────────────────────────────────────── */
/* The frosted glass lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block for the fixed mobile menu. */
.site-header {
  position: sticky; top: 0; z-index: 1030; isolation: isolate;
  border-bottom: 1px solid rgba(var(--aibc-ink-rgb), .07);
  transition: box-shadow .2s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--aibc-surface-rgb), .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(var(--aibc-primary-deep-rgb), .3); }
.site-header .navbar { padding: .55rem 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-bird { width: 44px; height: auto; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Signika', var(--aibc-font-body); font-weight: 600; font-size: 1.42rem; color: var(--aibc-primary); letter-spacing: -.01em; }
.brand-sub { font-family: var(--aibc-font-body); font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--aibc-accent); margin-top: .28rem; padding-left: .08em; font-weight: 600; }
.navbar-brand { padding: 0; margin-right: 1.5rem; }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--aibc-primary-deep); padding: .25rem .5rem; min-width: 44px; min-height: 44px; }
.navbar-toggler:focus { box-shadow: none; }
.site-header .nav-link { font-weight: 600; color: var(--aibc-ink); padding: .55rem .95rem !important; border-radius: 999px; font-size: .98rem; }
.site-header .nav-link:hover { color: var(--aibc-primary); }
.site-header .nav-link.active { color: var(--aibc-primary-deep); background: var(--aibc-primary-tint); }
.site-header .nav-home .bi { font-size: 1.15rem; vertical-align: -.1em; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.signin-link { color: var(--aibc-muted) !important; font-weight: 500 !important; }
.btn-join { background: var(--aibc-primary-deep); color: #fff; padding: .5rem 1.15rem; }
.btn-join:hover { background: var(--aibc-primary); color: #fff; }
.member-chip { background: transparent; border: 1px solid var(--aibc-line); padding: .25rem .8rem .25rem .3rem; gap: .5rem; color: var(--aibc-ink); }
.avatar-dot { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--aibc-sky), var(--aibc-primary)); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.dropdown-menu { border: 1px solid var(--aibc-line); border-radius: 14px; box-shadow: var(--aibc-shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; display: flex; gap: .55rem; align-items: center; }
.dropdown-item:active { background: var(--aibc-primary); }
@media (max-width: 1199.98px) {
  .offcanvas { background: var(--aibc-surface); }
  .offcanvas .navbar-nav .nav-link { font-size: 1.15rem; padding: .8rem 1rem !important; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--aibc-line); }
}
.flash-stack { padding-top: 1rem; }
.flash-stack .alert { border-radius: 14px; border: 0; box-shadow: var(--aibc-shadow-sm); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(520px, 78vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--aibc-primary-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-drift 24s ease-out forwards; }
@keyframes hero-drift { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(var(--aibc-primary-deep-rgb), calc(var(--aibc-hero-overlay) + .35)) 0%, rgba(var(--aibc-primary-deep-rgb), var(--aibc-hero-overlay)) 38%, rgba(var(--aibc-primary-deep-rgb), 0) 70%),
    linear-gradient(0deg, rgba(var(--aibc-primary-deep-rgb), .55) 0%, transparent 40%);
}
.hero-inner { padding-block: 7rem 8.5rem; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: 1.2rem; }
.hero-eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.9rem); font-weight: 600; max-width: 13ch; margin-bottom: 1.2rem; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 38rem; color: rgba(255,255,255,.92); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn-primary { background: #fff; color: var(--aibc-primary-deep); border-color: #fff; }
.hero-actions .btn-primary:hover { background: var(--aibc-sand); color: var(--aibc-primary-deep); }
.hero-credit { position: absolute; right: 1.25rem; bottom: 4.6rem; font-size: .75rem; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.wave-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; width: 100%; fill: var(--aibc-sand); z-index: 1; }

/* Next-trip "ticket" overlapping the hero */
.next-trip-wrap { position: relative; z-index: 3; margin-top: -5.5rem; }
.next-trip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--aibc-surface); border-radius: calc(var(--aibc-radius) + 6px);
  padding: 1.35rem 1.6rem; box-shadow: var(--aibc-shadow-lg);
  border: 1px solid rgba(var(--aibc-ink-rgb), .06);
}
.next-trip .eyebrow { margin-bottom: .2rem; }
.next-trip h2 { font-size: 1.45rem; margin: 0 0 .25rem; }
.next-trip-meta { color: var(--aibc-muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.next-trip-meta i { color: var(--aibc-accent); margin-right: .3rem; }
@media (max-width: 767.98px) {
  .next-trip { grid-template-columns: auto 1fr; }
  .next-trip .btn { grid-column: 1 / -1; }
}

/* ── Sections & headings ──────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-shell { background: var(--aibc-surface); border-block: 1px solid var(--aibc-line); }
.section-deep { background: var(--aibc-primary-deep); color: rgba(255,255,255,.88); }
.section-deep h2, .section-deep h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--aibc-font-body); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--aibc-accent); margin-bottom: .6rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.section-head p { color: var(--aibc-muted); max-width: 40rem; margin: .6rem 0 0; }
.ornament { display: block; width: 74px; height: 12px; margin: .9rem 0 0; color: var(--aibc-accent); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .2s var(--aibc-ease); }
.link-arrow:hover i { transform: translateX(3px); }

/* Page header used on inner pages */
.page-hero { position: relative; padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); background:
  radial-gradient(1200px 300px at 85% 0%, rgba(var(--aibc-sky-rgb), .16), transparent 60%),
  radial-gradient(800px 260px at 0% 100%, rgba(var(--aibc-accent-rgb), .12), transparent 60%);
  border-bottom: 1px solid var(--aibc-line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .6rem; text-wrap: balance; }
.page-hero .lead { color: var(--aibc-muted); max-width: 44rem; font-size: 1.15rem; }
.page-hero .bird-watermark { position: absolute; right: max(2rem, calc(50% - 640px)); bottom: -1px; width: clamp(120px, 16vw, 210px); opacity: .1; pointer-events: none; }
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: var(--aibc-muted); }
.crumbs a { color: var(--aibc-muted); text-decoration: none; }
.crumbs a:hover { color: var(--aibc-primary); }
.crumbs i { font-size: .7rem; margin-inline: .35rem; opacity: .6; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.journal-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--aibc-surface); border-radius: var(--aibc-radius);
  border: 1px solid rgba(var(--aibc-ink-rgb), .07); box-shadow: var(--aibc-shadow-sm);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .25s var(--aibc-ease), box-shadow .25s var(--aibc-ease);
}
@media (hover: hover) and (pointer: fine) {
  a.journal-card:hover { transform: translateY(-4px); box-shadow: var(--aibc-shadow); color: inherit; }
  a.journal-card:hover .card-media img { transform: scale(1.04); }
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--aibc-sand-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--aibc-ease); }
.card-media.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--aibc-primary-tint), var(--aibc-accent-tint)); }
.card-media.is-empty img { width: 38%; height: auto; opacity: .35; object-fit: contain; }
.card-body-j { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body-j h3 { font-size: 1.28rem; margin: 0; }
.card-body-j p { color: var(--aibc-muted); margin: 0; font-size: .97rem; }
.card-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aibc-accent); }
.card-foot { margin-top: auto; padding-top: .6rem; font-size: .88rem; color: var(--aibc-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.card-chip { position: absolute; left: .8rem; top: .8rem; z-index: 1; }

.date-stamp {
  flex: none; width: 4.6rem; text-align: center; border-radius: 14px; overflow: hidden;
  background: var(--aibc-surface); border: 1px solid var(--aibc-line); box-shadow: var(--aibc-shadow-sm);
  font-family: var(--aibc-font-body); line-height: 1;
}
.date-stamp .m { display: block; background: var(--aibc-primary); color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: .38rem 0 .32rem; }
.date-stamp .d { display: block; font-family: var(--aibc-font-heading); font-size: 1.9rem; font-weight: 600; color: var(--aibc-primary-deep); padding: .4rem 0 .1rem; }
.date-stamp .w { display: block; font-size: .7rem; color: var(--aibc-muted); padding-bottom: .45rem; text-transform: uppercase; letter-spacing: .1em; }
.date-stamp.is-past .m { background: var(--aibc-muted); }

.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .28rem .7rem; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.pill-sky { background: rgba(var(--aibc-sky-rgb), .16); color: var(--aibc-primary-deep); }
.pill-marsh { background: var(--aibc-marsh-tint); color: var(--aibc-marsh); filter: saturate(1.1); }
.pill-accent { background: var(--aibc-accent-tint); color: color-mix(in srgb, var(--aibc-accent) 70%, #000); }
.pill-muted { background: rgba(var(--aibc-ink-rgb), .07); color: var(--aibc-muted); }
.pill-solid { background: rgba(var(--aibc-surface-rgb), .92); color: var(--aibc-primary-deep); box-shadow: var(--aibc-shadow-sm); }
.species-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.species-tags a, .species-tags span { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--aibc-marsh-tint); color: var(--aibc-ink); font-size: .85rem; text-decoration: none; border: 1px solid rgba(var(--aibc-marsh-rgb), .2); }
.species-tags a:hover { border-color: var(--aibc-marsh); }

/* ── Trip list rows ───────────────────────────────────────────────────── */
.trip-row { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.3rem 1.4rem; background: var(--aibc-surface); border-radius: var(--aibc-radius); border: 1px solid rgba(var(--aibc-ink-rgb), .07); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s var(--aibc-ease); }
.trip-row + .trip-row { margin-top: .9rem; }
@media (hover: hover) and (pointer: fine) { a.trip-row:hover { box-shadow: var(--aibc-shadow); transform: translateY(-2px); color: inherit; } }
.trip-row h3 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.trip-row .meta { color: var(--aibc-muted); font-size: .93rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.trip-row .meta i { color: var(--aibc-accent); margin-right: .25rem; }
.trip-row .thumb { width: 116px; aspect-ratio: 1; border-radius: 12px; object-fit: cover; margin-left: auto; flex: none; }
@media (max-width: 575.98px) { .trip-row .thumb { display: none; } }
.season-heading { display: flex; align-items: center; gap: 1rem; margin: 2.8rem 0 1.1rem; }
.season-heading h2 { font-size: 1.45rem; margin: 0; white-space: nowrap; }
.season-heading::after { content: ""; flex: 1; height: 1px; background: var(--aibc-line); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: 999px; padding: .45rem; }
.filter-bar .form-control, .filter-bar .form-select { border: 0; background-color: transparent; border-radius: 999px; min-height: 44px; }
.filter-bar .form-control:focus, .filter-bar .form-select:focus { background-color: var(--aibc-sand); }
/* Keep the bar on one line: the search box shares the row instead of taking a full line of its own */
.filter-bar .form-control { flex: 1 1 12rem; width: auto; min-width: 0; }
.filter-bar .form-select { flex: 0 1 auto; width: auto; max-width: 15rem; }
.filter-bar .btn { flex: none; }
.seg { display: inline-flex; background: rgba(var(--aibc-ink-rgb), .05); padding: .25rem; border-radius: 999px; gap: .2rem; flex-wrap: wrap; }
.seg a { padding: .45rem 1rem; border-radius: 999px; text-decoration: none; color: var(--aibc-muted); font-weight: 600; font-size: .93rem; min-height: 40px; display: inline-flex; align-items: center; }
.seg a.active { background: var(--aibc-surface); color: var(--aibc-primary-deep); box-shadow: var(--aibc-shadow-sm); }

/* ── Prose (rich text) ────────────────────────────────────────────────── */
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 46rem; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.7em; }
.prose img { border-radius: var(--aibc-radius); height: auto; box-shadow: var(--aibc-shadow-sm); }
.prose blockquote { border-left: 3px solid var(--aibc-accent); padding: .2rem 0 .2rem 1.2rem; font-family: var(--aibc-font-heading); font-size: 1.25rem; color: var(--aibc-primary-deep); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .callout, .prose .callout-sand { background: var(--aibc-accent-tint); border-radius: var(--aibc-radius); padding: 1.1rem 1.3rem; }
.prose .callout-snow { background: var(--aibc-primary-tint); border-radius: var(--aibc-radius); padding: 1.1rem 1.3rem; }
.prose a { word-break: break-word; }
.signoff { font-family: var(--aibc-font-heading); font-style: italic; font-size: 1.2rem; color: var(--aibc-primary-deep); }
.prose .signoff + .signoff-title { margin-top: .1em; }
.report-extra .extra-signature { font-size: 1.1rem; margin-top: 1.4em; }
.signoff-title { font-size: .95rem; color: var(--aibc-muted); }
.report-extra { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--aibc-line); }
.report-extra > h2:first-child { margin-top: 0; font-size: 1.55rem; }
.report-credit { margin-top: 2rem; }
.report-end-note { margin-top: 2rem; font-size: .85rem; font-style: italic; color: var(--aibc-muted); }
.report-end-note + .report-credit { margin-top: .4rem; }
.prose figure.report-photo a { display: block; }
.report-credit { font-size: .85rem; color: var(--aibc-muted); letter-spacing: .01em; }

.side-card { background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); padding: 1.4rem 1.5rem; box-shadow: var(--aibc-shadow-sm); }
.side-card + .side-card { margin-top: 1.2rem; }
.side-card h2, .side-card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.fact-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; font-size: .98rem; }
.fact-list i { color: var(--aibc-accent); font-size: 1.05rem; }
.fact-list .k { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--aibc-muted); font-weight: 700; }
@media (min-width: 992px) { .sticky-side { position: sticky; top: 96px; } }

/* ── Photo strip & gallery ────────────────────────────────────────────── */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: .7rem; }
.photo-strip a { border-radius: var(--aibc-radius); overflow: hidden; position: relative; display: block; background: var(--aibc-sand-deep); }
.photo-strip a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.photo-strip a:nth-child(2) { grid-column: span 3; }
.photo-strip a:nth-child(3), .photo-strip a:nth-child(4), .photo-strip a:nth-child(5) { grid-column: span 1; }
.photo-strip a:nth-child(3) { grid-column: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--aibc-ease); }
@media (hover: hover) and (pointer: fine) { .photo-strip a:hover img { transform: scale(1.05); } }
@media (max-width: 767.98px) { .photo-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } .photo-strip a, .photo-strip a:nth-child(n) { grid-column: span 1; grid-row: span 1; } .photo-strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; } }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .86rem; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); opacity: 0; transition: opacity .25s; }
.photo-strip a:hover .photo-cap, .photo-strip a:focus .photo-cap { opacity: 1; }
@media (hover: none) { .photo-cap { opacity: 1; } }

.masonry { columns: 4 260px; column-gap: 1rem; }
.masonry .tile { break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: var(--aibc-radius); overflow: hidden; display: block; background: var(--aibc-sand-deep); box-shadow: var(--aibc-shadow-sm); }
.masonry .tile img { width: 100%; height: auto; display: block; transition: transform .6s var(--aibc-ease); }
.masonry .tile .photo-cap { padding-top: 2.6rem; }
.masonry .tile .photo-cap small { display: block; font-weight: 400; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .masonry .tile:hover img { transform: scale(1.03); } .masonry .tile:hover .photo-cap { opacity: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 20, 28, .94); display: grid; grid-template-rows: 1fr auto; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox-stage { position: relative; display: grid; place-items: center; padding: 3.5rem 4.5rem 1rem; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-info { padding: 1rem 1.5rem 1.5rem; text-align: center; }
.lightbox-info h2 { color: #fff; font-size: 1.35rem; margin-bottom: .25rem; }
.lightbox-info p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.lightbox-info a { color: #9fdcf2; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1rem; top: 1rem; }
@media (max-width: 575.98px) { .lightbox-stage { padding: 3.5rem .5rem 1rem; } .lb-prev, .lb-next { top: auto; bottom: -3.5rem; transform: none; } }

/* ── Calendar ─────────────────────────────────────────────────────────── */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cal-toolbar h2 { margin: 0; font-size: 1.9rem; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav .btn { min-width: 44px; padding-inline: .9rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--aibc-line); gap: 1px; border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); overflow: hidden; box-shadow: var(--aibc-shadow-sm); }
.cal-dow { background: var(--aibc-surface); padding: .6rem .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aibc-muted); font-weight: 700; text-align: center; }
.cal-day { background: var(--aibc-surface); min-height: 118px; padding: .45rem .45rem .6rem; display: flex; flex-direction: column; gap: .3rem; }
.cal-day.is-out { background: rgba(var(--aibc-surface-rgb), .55); }
.cal-day.is-out .cal-num { opacity: .4; }
.cal-num { font-size: .85rem; font-weight: 700; color: var(--aibc-muted); width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--aibc-primary); color: #fff; }
.cal-item { display: block; font-size: .8rem; line-height: 1.25; padding: .3rem .45rem; border-radius: 7px; text-decoration: none; color: var(--aibc-ink); background: var(--aibc-primary-tint); border-left: 3px solid var(--aibc-primary); overflow: hidden; }
.cal-item:hover { filter: brightness(.97); color: var(--aibc-primary-deep); }
.cal-item .t { font-weight: 700; display: block; color: var(--aibc-muted); font-size: .72rem; }
.cal-item.k-event { background: var(--aibc-accent-tint); border-color: var(--aibc-accent); }
.cal-item.k-report { background: var(--aibc-marsh-tint); border-color: var(--aibc-marsh); }
.cal-item.k-other { background: rgba(var(--aibc-ink-rgb), .05); border-color: var(--aibc-muted); }
.cal-item.k-cancelled { text-decoration: line-through; opacity: .65; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--aibc-muted); margin-top: 1rem; }
.cal-legend span::before { content: ""; display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.cal-legend .l-trip::before { background: var(--aibc-primary); }
.cal-legend .l-report::before { background: var(--aibc-marsh); }
.cal-legend .l-event::before { background: var(--aibc-accent); }
.cal-legend .l-other::before { background: var(--aibc-muted); }
@media (max-width: 767.98px) {
  .cal-grid.month { display: none; }
}
.agenda { display: grid; gap: .8rem; }
.agenda-month { font-family: var(--aibc-font-heading); font-size: 1.3rem; color: var(--aibc-primary-deep); margin: 1.6rem 0 .3rem; }

/* ── Forum ────────────────────────────────────────────────────────────── */
.forum-cat { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; background: var(--aibc-surface); border: 1px solid rgba(var(--aibc-ink-rgb), .07); border-radius: var(--aibc-radius); text-decoration: none; color: inherit; transition: box-shadow .2s; }
.forum-cat + .forum-cat { margin-top: .8rem; }
.forum-cat:hover { box-shadow: var(--aibc-shadow); color: inherit; }
.forum-cat .ico { width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--aibc-primary-tint); color: var(--aibc-primary); }
.forum-cat h3 { font-size: 1.2rem; margin: 0 0 .15rem; }
.forum-cat p { margin: 0; color: var(--aibc-muted); font-size: .95rem; }
.forum-cat .stats { text-align: right; font-size: .85rem; color: var(--aibc-muted); }
.forum-cat .stats strong { display: block; font-size: 1.15rem; color: var(--aibc-ink); }
@media (max-width: 575.98px) { .forum-cat { grid-template-columns: 3.2rem 1fr; } .forum-cat .stats { display: none; } }
.thread-list { background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); overflow: hidden; }
.thread-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--aibc-line); text-decoration: none; color: inherit; align-items: center; }
.thread-item:last-child { border-bottom: 0; }
.thread-item:hover { background: rgba(var(--aibc-primary-rgb), .035); color: inherit; }
.thread-item h3 { font-size: 1.06rem; font-family: var(--aibc-font-body); font-weight: 700; color: var(--aibc-ink); margin: 0 0 .2rem; }
.thread-item .meta { font-size: .85rem; color: var(--aibc-muted); }
.thread-item .count { text-align: center; min-width: 3.5rem; font-size: .8rem; color: var(--aibc-muted); }
.thread-item .count strong { display: block; font-size: 1.1rem; color: var(--aibc-ink); }
.post { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--aibc-line); }
.post:last-of-type { border-bottom: 0; }
.post .avatar-dot { width: 3rem; height: 3rem; font-size: 1rem; }
.post-head { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-bottom: .4rem; }
.post-head strong { font-size: 1.02rem; }
.post-head .when { font-size: .85rem; color: var(--aibc-muted); }
.post-body { font-size: 1.02rem; }
.post-body p { margin-bottom: .7rem; }
.post-body blockquote { border-left: 3px solid var(--aibc-line); padding-left: .8rem; color: var(--aibc-muted); margin: 0 0 .7rem; }
.post.is-hidden { opacity: .55; }
.post-tools { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.post-tools .btn { min-height: 32px; padding: .2rem .7rem; font-size: .8rem; }
.title-badge { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--aibc-accent-tint); color: color-mix(in srgb, var(--aibc-accent) 65%, #000); }
.title-badge.mod { background: var(--aibc-primary-tint); color: var(--aibc-primary-deep); }
.read-only-note { display: flex; gap: .8rem; align-items: center; background: var(--aibc-primary-tint); border-radius: var(--aibc-radius); padding: 1rem 1.2rem; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card { background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: calc(var(--aibc-radius) + 4px); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--aibc-shadow); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form-text { color: var(--aibc-muted); }
.form-control, .form-select { border-radius: 12px; border-color: rgba(var(--aibc-ink-rgb), .16); min-height: 46px; background-color: #fff; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .form-select:focus { border-color: var(--aibc-sky); }
.form-check-input:checked { background-color: var(--aibc-primary); border-color: var(--aibc-primary); }
.form-check { min-height: 1.8rem; }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .2em; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: flex; gap: .55rem; align-items: center; padding: .75rem .95rem; border: 1px solid rgba(var(--aibc-ink-rgb), .14); border-radius: 12px; background: #fff; cursor: pointer; min-height: 48px; font-size: .96rem; }
.choice input:checked + label { border-color: var(--aibc-primary); background: var(--aibc-primary-tint); box-shadow: inset 0 0 0 1px var(--aibc-primary); }
.choice input:focus-visible + label { outline: 3px solid rgba(var(--aibc-sky-rgb), .5); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.drop-zone { border: 2px dashed rgba(var(--aibc-primary-rgb), .35); border-radius: var(--aibc-radius); padding: 2rem 1rem; text-align: center; background: rgba(var(--aibc-primary-rgb), .03); cursor: pointer; transition: background .2s, border-color .2s; }
.drop-zone.is-over { background: var(--aibc-primary-tint); border-color: var(--aibc-primary); }
.drop-zone i { font-size: 2.2rem; color: var(--aibc-primary); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: 1rem; }
.preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ── Misc blocks ──────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { padding: 1.2rem 1.3rem; border-radius: var(--aibc-radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font-family: var(--aibc-font-heading); font-size: 2.3rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .9rem; }
.hotspot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hotspot-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hotspot-list li span:last-child { color: #9fdcf2; font-weight: 600; white-space: nowrap; }
.leader-card { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem; align-items: start; }
.leader-card .portrait { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; box-shadow: var(--aibc-shadow-sm); }
.leader-card .portrait.avatar-dot { font-size: 1.6rem; }
.leader-card h3 { font-size: 1.25rem; margin: 0; }
.leader-card .role { color: var(--aibc-accent); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--aibc-radius) + 8px); padding: clamp(2rem, 5vw, 3.6rem); background: linear-gradient(120deg, var(--aibc-primary-deep), var(--aibc-primary)); color: rgba(255,255,255,.9); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band .cta-bird { position: absolute; right: -2rem; bottom: -2.5rem; width: 260px; opacity: .18; }
.cta-band .btn-primary { background: #fff; color: var(--aibc-primary-deep); border-color: #fff; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--aibc-muted); }
.empty-state i { font-size: 2.6rem; color: var(--aibc-accent); display: block; margin-bottom: .6rem; }
.empty-state h3 { font-size: 1.35rem; }
.pagination .page-link { border-radius: 999px !important; margin: 0 .15rem; border: 0; color: var(--aibc-primary-deep); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.pagination .active .page-link { background: var(--aibc-primary); color: #fff; }

/* ── Events ───────────────────────────────────────────────────────────── */
.event-card .card-media { aspect-ratio: 16 / 10; }
.event-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--ev-deep, var(--aibc-primary-deep)); }
.event-hero .bg { position: absolute; inset: 0; z-index: -2; }
.event-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 22, 34, .82), rgba(10, 22, 34, .15) 60%); }
.event-hero .inner { min-height: clamp(380px, 60vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 4rem 3rem; }
.event-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); text-wrap: balance; }
.event-hero .tagline { font-size: 1.25rem; color: rgba(255,255,255,.9); max-width: 40rem; }
.event-when { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.2rem; font-weight: 600; }
.event-when i { color: var(--ev-accent, var(--aibc-sky)); margin-right: .4rem; }
.event-poster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.event-poster .poster-img { border-radius: calc(var(--aibc-radius) + 6px); overflow: hidden; box-shadow: var(--aibc-shadow-lg); }
.event-poster .poster-img img { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px) { .event-poster { grid-template-columns: 1fr; } }
.event-accent-bar { height: 6px; background: linear-gradient(90deg, var(--ev-accent, var(--aibc-sky)), var(--ev-deep, var(--aibc-primary))); }
.rsvp-card { border-top: 5px solid var(--ev-accent, var(--aibc-primary)); }
.capacity-meter { height: 10px; border-radius: 999px; background: rgba(var(--aibc-ink-rgb), .08); overflow: hidden; }
.capacity-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--ev-accent, var(--aibc-sky)), var(--aibc-primary)); border-radius: 999px; }
.past-banner { background: rgba(var(--aibc-ink-rgb), .06); border-radius: var(--aibc-radius); padding: .9rem 1.2rem; display: flex; gap: .7rem; align-items: center; color: var(--aibc-muted); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: 5rem; position: relative; color: rgba(255,255,255,.78); }
.footer-wave { display: block; width: 100%; height: 60px; fill: var(--aibc-primary-deep); margin-bottom: -1px; }
.footer-inner { background: var(--aibc-primary-deep); padding: 2.5rem 0 1.5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: color-mix(in srgb, var(--aibc-accent) 70%, #fff); }
.footer-brand { text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.footer-note { max-width: 26rem; font-size: .98rem; }
.footer-heading { font-family: var(--aibc-font-body); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: color-mix(in srgb, var(--aibc-sky) 60%, #fff); text-decoration: underline; }
.footer-muted { color: rgba(255,255,255,.55); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Reveal on scroll (respecting reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--aibc-ease), transform .7s var(--aibc-ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Bird Brain trivia ────────────────────────────────────────────────── */
.trivia-card { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: calc(var(--aibc-radius) + 6px);
  background: linear-gradient(135deg, var(--aibc-surface) 0%, var(--aibc-accent-tint) 100%); border: 1px solid rgba(var(--aibc-accent-rgb), .25); box-shadow: var(--aibc-shadow-sm); }
.trivia-card.has-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.trivia-card::after { content: "?"; position: absolute; right: 1.2rem; top: -1.6rem; font-family: var(--aibc-font-heading); font-size: 11rem; line-height: 1; color: rgba(var(--aibc-accent-rgb), .12); pointer-events: none; }
.trivia-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.trivia-body { padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; z-index: 1; }
.trivia-label { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--aibc-accent) 75%, #000); background: rgba(255,255,255,.7); padding: .3rem .75rem; border-radius: 999px; }
.trivia-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: .9rem 0 1.1rem; max-width: 34rem; }
.trivia-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; max-width: 46rem; }
.trivia-choice { position: relative; overflow: hidden; text-align: left; border: 1px solid rgba(var(--aibc-ink-rgb), .15); background: #fff; border-radius: 12px; padding: .75rem 1rem; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 600; color: var(--aibc-ink); transition: border-color .15s, transform .15s; }
.trivia-choice:not(:disabled):hover { border-color: var(--aibc-primary); transform: translateY(-1px); }
.trivia-choice .bar { position: absolute; inset: 0 auto 0 0; background: rgba(var(--aibc-primary-rgb), .1); transition: width .8s var(--aibc-ease); z-index: 0; }
.trivia-choice .txt, .trivia-choice .pct { position: relative; z-index: 1; }
.trivia-choice .pct { font-size: .85rem; color: var(--aibc-muted); }
.trivia-choice:disabled { cursor: default; }
.trivia-choice.is-correct { border-color: var(--aibc-marsh); box-shadow: inset 0 0 0 1px var(--aibc-marsh); }
.trivia-choice.is-correct .bar { background: rgba(var(--aibc-marsh-rgb), .2); }
.trivia-choice.is-correct .txt::after { content: " \2713"; color: var(--aibc-marsh); }
.trivia-choice.is-wrong { border-color: rgba(var(--aibc-ink-rgb), .3); opacity: .85; }
.trivia-answer { margin-top: 1.1rem; max-width: 40rem; }
.trivia-verdict { font-family: var(--aibc-font-heading); font-size: 1.2rem; color: var(--aibc-primary-deep); margin-bottom: .3rem; }
.trivia-verdict:empty { display: none; }
.trivia-archive { display: inline-block; margin-top: 1rem; text-decoration: none; font-weight: 600; }
.trivia-past summary { cursor: pointer; list-style: none; }
.trivia-past summary::-webkit-details-marker { display: none; }
@media (max-width: 767.98px) { .trivia-card.has-photo { grid-template-columns: 1fr; } .trivia-photo img { max-height: 220px; } }

/* ── Message board cards (President, Club News) ───────────────────────── */
.message-card { position: relative; background: var(--aibc-surface); border-radius: calc(var(--aibc-radius) + 6px); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid rgba(var(--aibc-ink-rgb), .07); box-shadow: var(--aibc-shadow); display: flex; flex-direction: column; overflow: hidden; }
.message-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--aibc-accent), var(--aibc-sky)); }
.message-card.is-president::before { background: linear-gradient(90deg, var(--aibc-primary-deep), var(--aibc-primary), var(--aibc-sky)); }
.message-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.message-portrait { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--aibc-surface), 0 0 0 4px rgba(var(--aibc-accent-rgb), .45); }
.message-portrait.avatar-dot { font-size: 1.1rem; }
.message-by { font-size: .9rem; color: var(--aibc-muted); }
.message-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .7rem; }
.message-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--aibc-radius); margin-bottom: 1rem; }
.message-body { font-size: 1.04rem; }
.message-body p { margin-bottom: .7rem; }
.message-card.is-president .message-body { font-family: var(--aibc-font-heading); font-size: 1.15rem; line-height: 1.6; color: var(--aibc-ink); }
.message-foot { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.site-header .dropdown-menu { margin-top: .4rem; }
@media (max-width: 1199.98px) {
  .offcanvas .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; background: transparent; }
}

/* ── Phones ───────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .container-xl { padding-inline: 1.1rem; }
  .row.g-5, .row.g-4 { --bs-gutter-x: 1.25rem; }
  .filter-bar { border-radius: 18px; flex-direction: column; align-items: stretch; width: 100%; }
  .filter-bar .form-control, .filter-bar .form-select { max-width: none !important; width: 100%; flex: none; }
  .filter-bar .btn { width: 100%; }
  .seg { width: 100%; }
  .seg a { flex: 1; justify-content: center; padding-inline: .6rem; }
  .hero-inner { padding-block: 4.5rem 7rem; }
  .hero-credit { display: none; }
  .next-trip { padding: 1.1rem; gap: 1rem; }
  .section-head { margin-bottom: 1.4rem; }
  .trip-row { padding: 1rem; gap: .9rem; }
  .date-stamp { width: 3.9rem; }
  .date-stamp .d { font-size: 1.55rem; }
  .form-card { padding: 1.2rem; }
  .masonry { columns: 2 150px; column-gap: .6rem; }
  .masonry .tile { margin-bottom: .6rem; }
  .message-card.is-president .message-body { font-size: 1.05rem; }
  .post { grid-template-columns: 2.4rem 1fr; gap: .7rem; }
  .post .avatar-dot { width: 2.4rem; height: 2.4rem; font-size: .85rem; }
  .footer-base { flex-direction: column; gap: .3rem; }
}
.filter-fold > summary { list-style: none; }
.filter-fold > summary::-webkit-details-marker { display: none; }

/* ── Help ─────────────────────────────────────────────────────────────── */
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 991.98px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static !important; } }
.help-toc { position: sticky; top: 92px; background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); padding: 1rem; font-size: .93rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.help-toc a { display: block; padding: .3rem .5rem; border-radius: 8px; text-decoration: none; color: var(--aibc-ink); }
.help-toc a:hover { background: var(--aibc-primary-tint); }
.help-toc .grp { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aibc-muted); font-weight: 700; margin: .8rem .5rem .2rem; }
.help-body { max-width: 52rem; font-size: 1.05rem; }
.help-body h2 { font-size: 1.7rem; margin-top: 2.8rem; padding-top: .6rem; border-top: 1px solid var(--aibc-line); scroll-margin-top: 90px; }
.help-body h2:first-child { margin-top: 0; border-top: 0; }
.help-body h3 { font-size: 1.2rem; margin-top: 1.6rem; scroll-margin-top: 90px; }
.help-body dl.opts { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: .45rem 1.2rem; background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); padding: 1rem 1.2rem; }
.help-body dl.opts dt { font-weight: 700; }
.help-body dl.opts dd { margin: 0; color: var(--aibc-ink); }
@media (max-width: 575.98px) { .help-body dl.opts { grid-template-columns: 1fr; } .help-body dl.opts dd { margin-bottom: .5rem; } }
.help-shot { margin: 1.2rem 0 1.6rem; }
.help-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--aibc-line); box-shadow: var(--aibc-shadow); background: #fff; }
.help-shot.help-phone img { max-width: 340px; }
.help-shot figcaption { font-size: .88rem; color: var(--aibc-muted); margin-top: .5rem; }
.help-tip { background: var(--aibc-primary-tint); border-radius: var(--aibc-radius); padding: .9rem 1.1rem; margin: 1rem 0; }
.help-tip.warn { background: var(--aibc-accent-tint); }
.help-tip strong:first-child { display: block; margin-bottom: .2rem; }
.help-step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; margin: 1.8rem 0; }
.help-step .n { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--aibc-primary); color: #fff; display: grid; place-items: center; font-family: var(--aibc-font-heading); font-size: 1.5rem; font-weight: 600; }
.help-step h3 { margin-top: .4rem; font-size: 1.35rem; }
.help-big { font-size: 1.2rem; line-height: 1.7; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

/* ── Trip reports ─────────────────────────────────────────────────────── */
.report-banner { margin: 0 0 2rem; }
.report-banner img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--aibc-radius-lg, 18px); box-shadow: var(--aibc-shadow-sm); display: block; }
.report-banner figcaption, .prose figure.report-photo figcaption { font-size: .95rem; line-height: 1.5; color: var(--aibc-muted); margin-top: .6rem; }
.prose figure.report-photo { margin: 2rem 0; }
.prose figure.report-photo img { width: 100%; display: block; }
.prose figure.report-photo figcaption strong { color: var(--aibc-primary-deep); font-weight: 700; }
.report-card { display: flex; gap: 1.2rem; align-items: stretch; text-decoration: none; color: inherit; background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-radius: var(--aibc-radius); overflow: hidden; padding-right: 1.2rem; }
.report-card img { width: 38%; min-height: 180px; object-fit: cover; flex: none; }
.report-card > div { padding-block: 1.2rem; }
.report-card .link-arrow { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .report-card:hover { box-shadow: var(--aibc-shadow-sm); border-color: var(--aibc-primary); } }
.next-trip-card .date-stamp { flex: none; }
@media (max-width: 575.98px) {
  .report-card { flex-direction: column; padding: 0; }
  .report-card img { width: 100%; min-height: 0; aspect-ratio: 16/9; }
  .report-card > div { padding: 0 1.1rem 1.1rem; }
}

/* ── Website tour ─────────────────────────────────────────────────────── */
.tour-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.tour-pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tour-pick .btn, .tour-device .btn { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.tour-device { display: inline-flex; border: 1px solid var(--aibc-line); border-radius: 999px; padding: 3px; background: var(--aibc-surface); }
.tour-device .btn { border-radius: 999px; border: 0; color: var(--aibc-muted); font-weight: 600; padding-inline: 1rem; }
.tour-device .btn[aria-pressed="true"] { background: var(--aibc-primary-deep); color: var(--aibc-surface); }
.tour-contents { columns: 2 16rem; column-gap: 2rem; padding: 1.1rem 1.1rem 1.1rem 2.6rem; margin: 0 0 2.5rem; background: var(--aibc-primary-tint); border-radius: var(--aibc-radius); }
.tour-contents li { padding: .3rem 0; break-inside: avoid; }
.tour-contents a { font-weight: 600; text-decoration: none; }
.tour-stop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--aibc-line); scroll-margin-top: 90px; }
.tour-text { position: relative; }
.tour-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--aibc-primary-deep); color: var(--aibc-surface); font-weight: 700; margin-bottom: .6rem; }
.tour-text h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.tour-text h2 .bi { color: var(--aibc-primary); }
.tour-who { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.tour-where { background: var(--aibc-surface); border: 1px solid var(--aibc-line); border-left: 4px solid var(--aibc-primary); border-radius: 10px; padding: .7rem .95rem; margin-bottom: 1rem; font-weight: 600; }
.tour-where .k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aibc-muted); margin-bottom: .15rem; }
.tour-how { font-size: 1.05rem; }
.tour-how ul { padding-left: 1.2rem; }
.tour-how li { margin-bottom: .35rem; }
.tour-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tour-actions .btn { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.tour-shots { display: grid; gap: 1.5rem; }
.tour-shot { margin: 0; }
.tour-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--aibc-line); box-shadow: var(--aibc-shadow); background: var(--aibc-surface); }
.tour-shot.tour-phone { text-align: center; }
.tour-shot.tour-phone img { max-width: 300px; border-radius: 24px; border-width: 6px; border-color: var(--aibc-ink); }
.tour-shot figcaption { font-size: .88rem; color: var(--aibc-muted); margin-top: .5rem; }
[data-device="desktop"] .tour-phone, [data-device="phone"] .tour-desktop { display: none; }
.tour-end { text-align: center; padding: 3rem 0 1rem; border-top: 1px solid var(--aibc-line); }
.tour-end .btn { min-height: 44px; margin: .25rem; }
@media (max-width: 991.98px) {
  .tour-stop { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
}

/* ── Home: "A note from …" cue in the hero for each current board message ── */
.hero-notes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; width: fit-content; max-width: 100%; }
.hero-note { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; background: rgba(var(--aibc-surface-rgb), .94); color: var(--aibc-ink); text-decoration: none; box-shadow: var(--aibc-shadow); transition: transform .2s var(--aibc-ease), background .2s; }
.hero-note-portrait { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px rgba(var(--aibc-accent-rgb), .55); }
.hero-note-portrait.avatar-dot { font-size: 1rem; }
.hero-note-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-note-text small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aibc-accent); }
.hero-note-text strong { font-family: var(--aibc-font-heading); font-size: 1.12rem; color: var(--aibc-primary-deep); }
.hero-note-go { font-size: .88rem; font-weight: 600; color: var(--aibc-primary); white-space: nowrap; padding-left: .4rem; }
@media (hover: hover) and (pointer: fine) {
  .hero-note:hover { transform: translateY(-2px); background: var(--aibc-surface); color: var(--aibc-ink); }
}
.message-card { scroll-margin-top: 100px; }
.message-card:target, .message-card.is-flash { animation: note-glow 2.2s var(--aibc-ease) 1; }
@keyframes note-glow { 0%, 40% { box-shadow: 0 0 0 4px rgba(var(--aibc-accent-rgb), .55), var(--aibc-shadow); } 100% { box-shadow: var(--aibc-shadow); } }
@media (prefers-reduced-motion: reduce) { .message-card:target, .message-card.is-flash { animation: none; outline: 3px solid rgba(var(--aibc-accent-rgb), .55); } }
.tour-again { display: inline-block; text-align: left; margin: .5rem auto 1.2rem; }

/* Welcome link pages: make the sign-in username (the member's email) impossible to miss */
.username-box { display: block; background: var(--aibc-primary-tint); border-left: 4px solid var(--aibc-primary); border-radius: 10px; padding: .75rem 1rem; text-align: left; overflow-wrap: anywhere; }
.username-box .k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aibc-muted); margin-bottom: .2rem; }
.username-box strong { font-size: 1.1rem; color: var(--aibc-primary-deep); }
