:root {
  --lodge-navy: #193b50;
  --lodge-navy-dark: #102e42;
  --lodge-gold: #c49a57;
  --lodge-gold-light: #e0b97f;
  --lodge-ivory: #faf7f0;
  --lodge-border: #dfd5c3;
}
body { background: linear-gradient(135deg, #e7dfd2 0%, #f6f1e8 55%, #e9e0d0 100%); color: #34434d; }
body > .container { background: #faf8f3; box-shadow: 0 16px 45px #4437251c; }
.header {
  background: linear-gradient(115deg, #fffefb 0%, #f7f2e8 65%, #eee1c9 100%);
  color: #18394e;
  padding: 28px 0;
  border-top: 4px solid #c49a57;
}
.header::before {
  background: radial-gradient(ellipse at 95% 20%, #d6b77c26 0%, transparent 65%);
  pointer-events: none;
}
.header .header-content {
  padding: 0 28px;
  gap: 28px;
  flex-direction: row;
  text-align: left;
}
.header .logo-section { gap: 24px; min-width: 0; }
.header .lodge-logo {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border: 2px solid #c49a57;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff9ed, 0 8px 22px #173b501f;
  animation: none;
}
.header .lodge-info h1 {
  color: #18394e;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.5px;
  text-shadow: none;
  margin-bottom: 10px;
}
.header .lodge-info p { color: #485e6b; opacity: 1; font-size: 1rem; line-height: 1.6; }
.header .dates-section {
  flex-shrink: 0;
  background: #ffffffa6;
  border: 1px solid #d7c39e;
  border-radius: 10px;
  color: #344f60;
  padding: 13px 17px;
  text-align: left;
  margin: 0;
  font-size: .8rem;
  backdrop-filter: none;
}
.header .dates-section div { margin-bottom: 7px; }
.header .dates-section div:last-child { margin-bottom: 0; }
.header .dates-section i { color: #916a28; margin-right: 4px; }
@media (max-width: 1024px) {
  .header .header-content { flex-direction: column; text-align: center; gap: 20px; }
  .header .dates-section { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; text-align: center; }
  .header .dates-section div { margin: 0; }
}
@media (max-width: 600px) {
  .header { padding: 24px 0 20px; }
  .header .header-content { padding: 0 18px; gap: 18px; }
  .header .logo-section { flex-direction: column; gap: 18px; }
  .header .lodge-logo { width: 108px; height: 108px; flex-basis: 108px; }
  .header .lodge-info h1 { font-size: 1.65rem; margin-bottom: 8px; }
  .header .lodge-info p { font-size: .9rem; max-width: 320px; }
  .header .dates-section { padding: 10px 12px; gap: 6px 12px; font-size: .73rem; }
}

/* Shared content palette. Photographs and the Lodge emblem retain their colours. */
body .container :is(h1, h2, h3, h4, h5, h6) { color: var(--lodge-navy); text-shadow: none; }
body .container :is(.main-heading, .page-title)::after {
  background: linear-gradient(90deg, #a77c38, #e0b97f);
}
body .container .section-title { border-left-color: var(--lodge-gold); }
body .container :is(.content-link, .action-btn, .view-gallery-btn, .nav-btn, .back-btn, .back-link, .submit-button, .page-link),
body .container :is(.pagination, .pagination-links, .back-button) a {
  background: var(--lodge-navy);
  color: #fff;
  border-color: var(--lodge-navy);
  box-shadow: 0 4px 12px #193b5026;
  text-shadow: none;
}
body .container :is(.content-link, .action-btn, .view-gallery-btn, .nav-btn, .back-btn, .back-link, .submit-button, .page-link):hover,
body .container :is(.pagination, .pagination-links, .back-button) a:hover,
body .container :is(.pagination, .pagination-links) a:is(.active, .current) {
  background: var(--lodge-gold-light);
  color: var(--lodge-navy-dark);
  border-color: var(--lodge-gold);
  box-shadow: 0 5px 15px #8a683126;
}
body .container .nav-btn.disabled { background: #e6e0d6; color: #68635c; box-shadow: none; border-color: #e6e0d6; }
body .container :is(.community-years a, .community-category) { background: #f7efdf; color: var(--lodge-navy); border-color: #d7c39e; }
body .container .community-years a:hover { background: var(--lodge-navy); color: #fff; }
body .container :is(.community-source, .link-title a, .member-phone, .member-email) { color: #1d4b64; }
body .container :is(.community-source, .link-title a):hover { color: #805a20; }
body .container .contact-email { color: #f2d6a8; }
body .container .contact-email:hover { color: #fff; }
body .container :is(.gallery-intro, .links-intro, .publication-intro, .project-intro, .highlight-box, .honorary-section) {
  background: linear-gradient(135deg, #fffdf8, #f5eddf);
  border-color: var(--lodge-border);
  box-shadow: 0 5px 18px #493d2910;
}
body .container :is(.gallery-intro, .links-intro, .publication-intro, .project-intro)::before { border-color: var(--lodge-gold); }
body .container :is(.stat-card, .stat-item, .officer-card, .reason-item, .sidebar-card, .contact-info-card, .checkbox-section) {
  background: linear-gradient(135deg, #fff, #faf7f0);
  border-color: var(--lodge-border);
}
body .container :is(.stat-card, .stat-card:nth-child(n), .reason-item, .officer-card) { border-left-color: var(--lodge-gold) !important; }
body .container :is(.stat-number, .officer-name, .degree-title i, .category-title i, .principle-title i) { color: var(--lodge-navy); }
body .container :is(.gallery-subtitle, .stat-label, .gallery-intro p, .links-intro p, .publication-intro p, .project-intro p) { color: #5b656a; }
body .container .year-badge { background: var(--lodge-gold-light); color: var(--lodge-navy-dark); }
body .container .memorial-note { background: #f6efe3; border-color: var(--lodge-border); }
body .container .timeline::before { background: linear-gradient(var(--lodge-navy), var(--lodge-gold)); }
body .container .reason-item::before,
body .container :is(.timeline-year, .photo-number, .page-number, .degree-number, .photo-count) { background: var(--lodge-navy); color: #fff; }
body .container :is(.contact-banner, .pagination-nav, .accordion-header[aria-expanded="true"], .expandable-header.active, .expandable-header:hover) {
  background: var(--lodge-navy);
  color: #fff;
  box-shadow: 0 6px 20px #193b5026;
}
body .container :is(.contact-banner, .pagination-nav, .accordion-header[aria-expanded="true"], .expandable-header.active, .expandable-header:hover) :is(h2, h3, h4, i) { color: #fff5df; }
body .container :is(.accordion-header, .expandable-header) { border-color: var(--lodge-border); }
body .container .accordion-header:not([aria-expanded="true"]),
body .container .expandable-header:not(.active):not(:hover) { background: #f5efe4; color: var(--lodge-navy); }
body .container :is(.photo-overlay, .project-overlay) { background: linear-gradient(to top, #102e42f2, transparent); }
body .container :is(.photo-overlay, .project-overlay, .photo-caption) :is(h2, h3, h4) { color: #fff5df; }
body .container :is(.photo-caption, .gallery-caption) { background: var(--lodge-navy); color: #fff; }
body .container :is(.caption-year, .caption-date) { color: #f2d6a8; }
body .container :is(.gallery-card, .photo-card, .link-card, .degree-card, .community-project):hover { border-color: var(--lodge-gold); box-shadow: 0 10px 28px #193b5026; }
body .container :is(.community-photo, .community-photo img) { background: #f2eee5; }
body .container .members-table th { background: var(--lodge-navy); color: #fff; border-color: #38576a; }
body .container .members-table tbody tr:hover { background: #f7efdf !important; color: var(--lodge-navy); }
body .container :is(input, textarea, select):focus { border-color: #a77c38; outline-color: #a77c38; box-shadow: 0 0 0 3px #c49a5726; }
body .container input[type="checkbox"] { accent-color: var(--lodge-navy); }
body .container :is(a, button, [role="button"], summary):focus-visible { outline: 3px solid #a77c38; outline-offset: 3px; }
body .container .site-nav :is(a, button, summary):focus-visible { outline-color: #f5c87e; outline-offset: -4px; }
body .container .site-nav-dropdown a:focus-visible { outline-color: #946420; }
body .container .footer {
  background: linear-gradient(115deg, #102e42, #193b50);
  border-top: 3px solid var(--lodge-gold);
  color: #f6efdf;
  padding: 25px 20px;
}
body .container .footer :is(p, h2, h3, h4) { color: #f6efdf; }
body .container .footer a { color: #f2d6a8; text-underline-offset: 3px; }
body .container .footer a:hover { color: #fff; }
::selection { background: #e7cd9e; color: #102e42; }
