/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Ginto Nord Condensed';
  src: url('../fonts/ABCGintoNordCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ginto';
  src: url('../fonts/ABCGinto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ginto';
  src: url('../fonts/ABCGinto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── RVS brand ─────────────────────────────────────────────────────────── */
/* Heritage Burgundy #b20051  |  Dark Purple #420044  |  Warm Grey #f2efeb */

body {
  background: #f2efeb;
  font-family: 'Ginto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#content-wrapper {
  background: #fff;
  padding-bottom: 2rem;
}
header {
  background: linear-gradient(160deg, #420044 0%, #710045 100%);
  border-bottom: solid 1px #2a0030;
}
header h1,
header h2 {
  font-family: 'Ginto Nord Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
header h1 {
  font-weight: 700;
  letter-spacing: 0;
}
header h2 {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}
a         { color: #b20051; }
a:hover   { color: #420044; }
#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4,
#main-content h5,
#main-content h6 {
  font-family: 'Ginto Nord Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #420044;
  text-indent: 0;
  letter-spacing: 0;
}
#main-content h1:before,
#main-content h2:before,
#main-content h3:before,
#main-content h4:before,
#main-content h5:before,
#main-content h6:before { content: none; }
#main-content h1 a, #main-content h2 a, #main-content h3 a,
#main-content h4 a, #main-content h5 a, #main-content h6 a { color: inherit; }

/* ── Site nav ──────────────────────────────────────────────────────────── */
nav.site-nav {
  margin-top: 0.9rem;
}
nav.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-right: 1.2rem;
  font-size: 1rem;
  font-family: 'Ginto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
nav.site-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.shed-hero {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: block;
}
header .inner {
  position: relative;
}
@keyframes sticky-note-drop {
  0%   { transform: rotate(2deg) scaleY(0); opacity: 0; }
  65%  { transform: rotate(2deg) scaleY(1.06); opacity: 1; }
  82%  { transform: rotate(2deg) scaleY(0.97); }
  100% { transform: rotate(2deg) scaleY(1); }
}

.next-meeting-badge {
  position: absolute;
  top: 1rem;
  right: 10rem;
  width: 240px;
  padding: 0.9rem 1rem 1.6rem;
  background: #fef08a;
  border: none;
  border-radius: 1px;
  color: #2a2a2a;
  font-family: 'Marker Felt', 'Chalkboard SE', 'Comic Sans MS', 'Segoe Print', cursive;
  font-size: 1.05rem;
  line-height: 1.55;
  transform-origin: top center;
  transform: rotate(2deg);
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.35);
  animation: sticky-note-drop 0.5s ease-out both;
}
.session-card {
  border-left: 4px solid #ccc;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}
.session-confirmed  { border-color: #4caf50; }
.session-tentative  { border-color: #ff9800; }
.session-cancelled  { border-color: #f44336; opacity: 0.6; }
.session-closed     { border-color: #9e9e9e; opacity: 0.6; }
.session-private    { border-color: #7c3aed; opacity: 0.6; }
.session-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.session-date {
  font-weight: bold;
  font-size: 1.05rem;
  margin-right: 0.25rem;
}
.session-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.session-badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.session-badge-tentative { background: #fff3e0; color: #e65100; }
.session-badge-cancelled { background: #ffebee; color: #c62828; }
.session-badge-closed    { background: #f5f5f5; color: #616161; }
.session-badge-private   { background: #ede9fe; color: #5b21b6; }
.session-badge-warning   { background: #fff8e1; color: #f57f17; }
.session-people {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.2rem 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}
.session-people dt { color: #666; font-weight: normal; }
.session-people dd { margin: 0; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  max-width: 45%;
  text-decoration: none;
  color: inherit;
}
.post-nav-link:hover .post-nav-title {
  text-decoration: underline;
}
.post-nav-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.2rem;
}
.post-nav-title {
  font-size: 0.95rem;
}
.post-nav-next {
  margin-left: auto;
  text-align: right;
}
.post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.post-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  background: #f0f0f0;
}
.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.post-gallery-item:hover img {
  transform: scale(1.04);
}
.post-gallery-video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 480px;
  border-radius: 4px;
  background: #000;
}
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}
.news-pagination-link {
  padding: 0.4rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}
.news-pagination-link:hover:not(.disabled) {
  background: #f5f5f5;
}
.news-pagination-link.disabled {
  opacity: 0.35;
  cursor: default;
}
.news-pagination-info {
  font-size: 0.85rem;
  color: #888;
}
.post-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: block;
}
.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.post-images img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  flex: 1 1 280px;
}
/* ── Responsive ────────────────────────────────────────────────────────── */
.nav-toggle { display: none; }

/* Badge goes inline at all sub-desktop widths (Architect leaves full desktop
   layout at 960px, so the absolute badge overlaps heading text below that) */
@media (max-width: 959px) {
  header h1 {
    font-size: 2.2rem;
  }
  header h2 {
    font-size: 1rem;
  }
  .next-meeting-badge {
    position: static;
    display: block;
    width: auto;
    margin-top: 0.75rem;
  }
}

/* Hamburger nav — mobile only */
@media (max-width: 640px) {
  header h1 {
    font-size: 1.6rem;
    padding-right: 3rem;
  }
  header h2 {
    font-size: 0.85rem;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 0.55rem;
    right: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
  }
  nav.site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 0.75rem;
  }
  nav.site-nav.open {
    display: flex;
  }
  nav.site-nav a {
    margin-right: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
  }
  nav.site-nav a:last-child {
    border-bottom: none;
  }
}

/* ── Site footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 3px solid #b20051;
  padding: 2rem 0 2.5rem;
  margin-top: 0;
  color: #420044;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}
.footer-rvs-logo {
  width: 140px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.footer-text p {
  margin: 0.3rem 0;
  color: #420044;
}
.footer-text a {
  color: #b20051;
  font-weight: 600;
}
.footer-text a:hover {
  color: #420044;
}

/* ── Next-meeting badge ────────────────────────────────────────────────── */
.next-meeting-badge[data-cancelled="true"] {
  background: #fca5a5;
  color: #7f1d1d;
}
.next-meeting-badge .badge-label {
  display: block;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.next-meeting-badge .badge-date {
  display: block;
  text-align: center;
  font-size: 1.05rem;
}
