:root {
  --cca-navy: #16324f;
  --cca-green: #2e6b4f;
  --cca-sand: #f5f1e6;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { background: #fff; color: #1a1a1a; }

.navbar-cca { background: var(--cca-navy); }
.navbar-cca .navbar-menu { background: var(--cca-navy); }
.navbar-cca .navbar-menu .navbar-item { color: #fff; }
.navbar-cca .navbar-item, .navbar-cca .navbar-burger { color: #fff; }
.navbar-cca .navbar-item:hover, .navbar-cca .navbar-item.is-active {
  background: rgba(255,255,255,.12); color: #fff;
}
/* Mobile: slide-in panel from the right (desktop keeps the inline row) */
@media (max-width: 1023px) {
  .navbar-cca .navbar-brand { position: relative; z-index: 41; }
  .navbar-cca .navbar-menu {
    display: block;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    padding: 4.5rem 1rem 1.5rem;
    transform: translateX(105%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .navbar-cca .navbar-menu.is-active {
    transform: translateX(0);
    box-shadow: -8px 0 24px rgba(16,24,40,.35);
  }
}
.brand-mark { color: #fff; letter-spacing: .02em; }

/* Bulma 1.x uses is-primary from CSS variables; keep brand consistent */
.hero-cca { background: linear-gradient(rgba(22,50,79,.78), rgba(46,107,79,.55)), url('https://picsum.photos/id/1018/1600/700') center/cover no-repeat; }
.title { color: var(--cca-navy); }
.subtitle { color: #3d4654; }

/* Post modal: allow long headings to wrap inside the card on small screens */
#modalBody p { margin-bottom: 1em; }
#modalBody p:last-child { margin-bottom: 0; }
.modal-card-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.modal-card-head .delete { flex-shrink: 0; }
@media (max-width: 768px) {
  .modal-card-title { font-size: 1.4rem; }
}
.stats-strip { background: var(--cca-sand); border-bottom: 1px solid #e5dfcf; }
.stats-strip .title { color: var(--cca-green); }

.card { border-radius: 8px; box-shadow: 0 2px 10px rgba(16,24,40,.08); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,.14); }
.post-card.is-clickable { cursor: pointer; }
.post-card.is-clickable .read-more { text-decoration: underline; text-underline-offset: 2px; }
.h-full { height: 100%; }
.h-full .card-content { height: 100%; }

.feed-placeholder { border: 1px dashed #cfc8b0; }
.footer-cca { background: var(--cca-navy); color: #d7e0ea; }
.footer-cca a { color: #fff; }
.footer-cca strong { color: #fff; }

#joinForm .is-size-7 { color: #666; }
section[id] { scroll-margin-top: 4.5rem; }
