/* --- Root & Variables --- */
:root {
  --nav-height: 56px; /* default navbar height */
  --nav-bg: #333;
  --text-color: #222;
  --accent-color: #1e90ff;
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.4;
}

/* --- Navbar --- */
nav {
  background-color: var(--nav-bg);
  color: white;
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* --- Main Content --- */
main {
  padding: calc(var(--nav-height) + 24px) 24px 24px; /* top clears navbar */
  margin: 0 auto;
  max-width: 1200px;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 2rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Tagline styling */
.tagline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tagline span {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #222;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Optional subtle emphasis on the middle word */
.tagline span:nth-child(2) {
  color: #444;
}

/* Slight hover lift for subtle punch */
.tagline span:hover {
  transform: translateY(-2px);
  color: var(--accent-color);
}

/* Hero image styling */
.hero img {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 4px;
}

/* --- Leader Cards --- */
.leader-card {
  display: inline-block;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 200px;
  text-align: center;
}

.leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* --- Sections --- */
#leadership-section, #bylaws-section {
  margin: 2rem auto;
  max-width: 800px;
}

#bylaws-section a {
  color: #0066cc;
  text-decoration: underline;
}

/* --- Calendar --- */
#calendar {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Footer --- */
footer {
  margin-top: 4rem;
  background-color: #f2f2f2;
  color: #444;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 16px 24px;
  border-top: 1px solid #ddd;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* --- Tables --- */
.officials-table-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  overflow-x: auto;
}

.officials-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1.3rem;
}

.officials-table th,
.officials-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.officials-table th {
  background: #f3f3f3;
  font-weight: 600;
  white-space: nowrap;
}

.officials-table tr:nth-child(even) {
  background: #fafafa;
}

.officials-table tr:hover {
  background: #f0f6ff;
}

.officials-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Buttons --- */
button {
  margin: 1rem 0.5rem 0 0;
  padding: 8px 14px;
  font-size: 0.95rem;
}

/* --- Calendar Editable Cells --- */
#calendar-table td[contenteditable] {
  background: #fff;
  cursor: text;
}

#calendar-table td[contenteditable]:focus {
  outline: 2px solid var(--accent-color);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline span {
    font-size: 1.4rem;
  }

  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
  }

  main {
    padding-top: calc(var(--nav-height) + 32px);
  }
}