
:root {
  --dar-blue: #0033A0;
  --dar-red: #C8102E;
  --dar-gray: #4D4D4D;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  line-height: 1.6;
  background: #fff;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  background: #fff;
  padding: .5rem 1rem;
  border: 2px solid var(--dar-blue);
  z-index: 1000;
}
.site-header {
  border-top: 6px solid var(--dar-red);
  background: #f8f9fc;
  border-bottom: 1px solid #e6e6e6;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.logo { width: 160px; height: auto; }
.site-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  color: var(--dar-blue);
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.site-subtitle {
  margin: .1rem 0 0 0;
  color: #333;
  font-weight: 600;
}
.nav {
  display: flex;
  list-style: none;
  gap: .5rem;
  margin: 0;
  padding: .5rem 1rem 1rem 1rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--dar-blue);
  padding: .4rem .75rem;
  border-radius: .375rem;
  border: 1px solid transparent;
  font-weight: 600;
}
.nav a:hover { border-color: var(--dar-blue); }
.nav a.active {
  background: var(--dar-blue);
  color: #fff;
}
.container { max-width: 980px; margin: 0 auto; padding: 1.25rem; }
.hero {
  background: linear-gradient(180deg, #fff, #f5f7ff);
  border: 1px solid #eee;
  border-left: 4px solid var(--dar-blue);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
}
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; }
h2 { color: var(--dar-blue); }
h3 { color: var(--dar-red); }
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: .5rem;
  text-decoration: none;
  background: var(--dar-red);
  color: #fff;
  font-weight: 700;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  border: 1px solid #e6e6e6;
  border-radius: .5rem;
  padding: 1rem;
  background: #fff;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.small { font-size: .9rem; color: #444; }
.note { background: #fff7f8; border-left: 4px solid var(--dar-red); padding: .5rem .75rem; }
.checklist li { margin-bottom: .5rem; }
.site-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #444;
}
/* Accessibility for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Buttons */
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn.outline { background: transparent; color: var(--dar-blue); border: 2px solid var(--dar-blue); }
.btn.outline:hover { background: var(--dar-blue); color: #fff; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.thumb { margin: 0; }
.thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid #e6e6e6;
  background: #f8f8f8;
}
.thumb figcaption {
  margin-top: .4rem;
  font-size: .9rem;
  color: #333;
}


/* Accessibility & Header Enhancements */
.site-header { background:#ffffff; border-bottom:1px solid #e6e6e6; }
.header-flex { display:flex; align-items:center; gap:1rem; padding: .75rem 1rem; }
.logo { height: 48px; width:auto; display:block; }
.chapter-name { margin:0; font-size:1.25rem; color: var(--dar-blue, #0f2b46); }
.tagline { margin:.2rem 0 0; color:#444; font-size:.95rem; }

/* Members Login CTA – ensure WCAG AA contrast */
.btn-login { background: var(--dar-blue, #0f2b46); color:#fff !important; border:1px solid rgba(0,0,0,.08); }
.btn-login svg { display:inline-block; }
.btn-login:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 3px var(--dar-gold, #c5a25f); }

/* Global member area padding */
.members-page main,
.members-page {
  padding: 1.25rem;
}

/* Nice centering & width control */
.members-page main {
  max-width: 800px;
  margin: 0 auto;
}

.officer-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.officer-table th,
.officer-table td {
  padding: .75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.officer-table thead {
  background: var(--dar-blue, #0f2b46);
  color: #fff;
}

.officer-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.officer-card {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: .75rem;
}

.officer-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--dar-blue);
  box-shadow: 0 0 8px rgba(0,0,0,0.12);
  margin-bottom: .75rem;
}

.officer-card h3 {
  font-size: 1.05rem;
  margin: .25rem 0;
  color: var(--dar-blue);
  font-family: "Libre Baskerville", Georgia, serif;
}

.officer-card .name {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.officer-card img {
  background: #fff;               /* keeps a clean white field if using transparent version */
}

/* --- Header logo sizing override (VIS-friendly & responsive) --- */
.site-header .logo {
  display: block;
  width: 100%;
  max-width: clamp(220px, 24vw, 360px); /* desktop grows, mobile stays reasonable */
  height: auto !important;              /* defeats earlier 48px height */
}

/* Center stack on phones and keep type readable */
@media (max-width: 600px) {
  .header-flex { 
    flex-direction: column; 
    text-align: center; 
    gap: 0.5rem;
  }
  .site-header .logo {
    max-width: clamp(180px, 55vw, 280px);
  }
}

/* --- Mobile-safe buttons & layout fixes --- */

/* Make all "buttons" behave like flexible blocks */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 0.95rem 1.25rem;           /* more vertical padding = better tap target */
  border-radius: 14px;
  white-space: normal;                 /* allow wrapping inside long labels */
  word-break: normal;
  box-sizing: border-box;
  min-height: 3.0rem;                  /* consistent height */
}

/* Container that controls wrapping of the CTA row on the home page */
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;                           /* space between buttons */
  align-items: stretch;
}

/* Let each button grow/shrink and wrap to new lines as needed */
.cta-grid > .button {
  flex: 1 1 260px;                     /* 1 = grow, 1 = shrink, 260px = preferred base */
  max-width: 100%;
}

/* Tighter outline buttons don’t shrink smaller than their text */
a.button--outline { min-width: 220px; }

/* Navigation: allow wrapping instead of overlapping on narrow screens */
.site-nav, .site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.6rem 1rem;
}

/* Phone layout: stack CTAs full width; keep nav readable */
@media (max-width: 640px) {
  .cta-grid > .button {
    flex: 1 1 100%;                    /* each button = full width */
  }
  .site-nav a {
    flex: 1 1 calc(50% - 0.75rem);     /* two per row */
    white-space: normal;
  }
  .site-nav a.members-login {          /* push the lock/login button to its own line if needed */
    flex: 1 1 100%;
  }
}
