/* Design Palette (from Frank's Creek Landing sign) */
:root {
  --sky: #3FA9CF;
  --sky-dark: #2B87A8;
  --sky-light: #E8F4F9;
  --stone: #6E6A63;
  --stone-light: #A99F8E;
  --stone-bg: #F4F1EC;
  --chestnut: #9C5B34;
  --duck-green: #1E5E4E;
  --cream: #F5EFE0;
  --ink: #2A2A28;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-border: #ddd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--stone-bg);
  color: var(--ink);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--chestnut);
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--sky-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sky);
  text-decoration: underline;
}

/* Container & Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--sky);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: var(--ink);
  border-radius: 20px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--sky-light);
  color: var(--sky-dark);
  text-decoration: none;
}

.nav-link.active {
  background-color: var(--sky);
  color: var(--white);
}

/* Admin Bar */
.admin-bar {
  background-color: var(--duck-green);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 101;
}

.admin-bar-container {
  max-width: 1000px;
  margin: 0 auto;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--cream);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
}

.admin-nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.admin-nav-link:last-child {
  margin-left: auto;
}

.admin-nav-link:last-child:hover {
  background-color: #b3402e;
}

/* Footer */
.site-footer {
  background-color: var(--duck-green);
  color: var(--white);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

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

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-content a {
  color: var(--cream);
}

.footer-content a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-note {
  font-style: italic;
  opacity: 0.85;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: var(--white);
  padding: 4rem 1rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--stone);
  font-style: italic;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.card h3 {
  margin-top: 0;
}

.card-large {
  padding: 2.5rem;
}

.card-text {
  color: var(--stone);
  line-height: 1.8;
}

.card-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.card-link a {
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
}

/* Card Stats */
.card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sky-dark);
}

/* Summary Cards Row */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Category List */
.category-list {
  list-style: none;
  margin: 1.5rem 0;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 1.05rem;
}

.category-list li:last-child {
  border-bottom: none;
}

.cat-name {
  font-weight: 600;
  color: var(--chestnut);
}

.cat-amount {
  font-weight: 700;
  color: var(--sky-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--sky);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--sky-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--stone);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--ink);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-danger {
  background-color: #b3402e;
  color: var(--white);
}

.btn-danger:hover {
  background-color: #8f3024;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-edit {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--sky);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-edit:hover {
  background-color: var(--sky-dark);
  text-decoration: none;
}

.btn-delete {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #b3402e;
  color: var(--white);
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-delete:hover {
  background-color: #8f3024;
}

.payment-button-section {
  text-align: center;
  margin-top: 2rem;
}

/* Forms */
.filter-form {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.form-group label {
  font-weight: 600;
  color: var(--ink);
}

.form-group select,
.form-group input {
  padding: 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--ink);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-light);
}

.year-form {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.year-form label {
  font-weight: 600;
  color: var(--ink);
}

.year-form select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 1rem;
}

/* Controls Section */
.controls-section {
  margin-bottom: 2rem;
}

.filter-card {
  background-color: var(--sky-light);
}

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  min-height: 350px;
}

.chart-card canvas {
  max-height: 300px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

.expenses-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.expenses-table thead {
  background-color: var(--sky-light);
}

.expenses-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--sky-dark);
  border-bottom: 2px solid var(--sky);
}

.expenses-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.expenses-table tr.even {
  background-color: rgba(248, 248, 248, 0.5);
}

.expenses-table tr.odd {
  background-color: var(--white);
}

.expenses-table tr:hover {
  background-color: var(--sky-light);
}

.expenses-table tfoot {
  background-color: var(--sky-light);
  font-weight: 600;
}

.expenses-table tfoot td {
  padding: 1rem;
  border-top: 2px solid var(--sky);
}

.text-right {
  text-align: right;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--stone);
  font-style: italic;
}

/* Dues Highlight */
.dues-highlight {
  background: linear-gradient(135deg, var(--sky-light) 0%, var(--cream) 100%);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.dues-amount {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dues-amount .label {
  font-size: 1.1rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.dues-amount .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--sky-dark);
}

/* Payment Instructions */
.payment-instructions {
  background-color: var(--sky-light);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
}

/* QR Code */
.qr-section {
  text-align: center;
  padding: 2rem;
}

.qr-code {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Placeholder Box */
.placeholder-box {
  background-color: var(--gray-light);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  color: var(--stone);
  border: 2px dashed var(--stone-light);
}

/* Link List */
.link-list {
  list-style: none;
  margin: 1.5rem 0;
}

.link-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
}

/* Page Content */
.page-content {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    gap: 1rem;
  }

  .site-nav ul {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .admin-nav {
    gap: 0.5rem;
  }

  .admin-nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .admin-nav-link:last-child {
    margin-left: auto;
  }

  .logo {
    height: 40px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .filter-form {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  .expenses-table {
    font-size: 0.9rem;
  }

  .expenses-table th,
  .expenses-table td {
    padding: 0.5rem;
  }

  .dues-amount .amount {
    font-size: 2.5rem;
  }

  .container {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-large {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    width: 100%;
    flex-direction: column;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .category-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-nav {
    flex-direction: column;
    width: 100%;
  }

  .admin-nav-link {
    width: 100%;
    text-align: center;
  }

  .admin-nav-link:last-child {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .action-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-edit,
  .btn-delete {
    width: 100%;
    text-align: center;
  }

  .filter-form {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  .expenses-table {
    font-size: 0.85rem;
  }

  .expenses-table th,
  .expenses-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* ── Admin help panel ─────────────────────────────── */
.admin-help {
  background: var(--sky-light);
  border: 1px solid var(--sky);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-help > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sky-dark);
  font-size: 1.05rem;
  padding: 0.25rem 0;
  list-style: none;
}
.admin-help > summary::-webkit-details-marker { display: none; }
.admin-help[open] > summary { margin-bottom: 0.5rem; }
.admin-help-body p { margin: 0.5rem 0; color: var(--ink); }
.admin-help-body ol { margin: 0.5rem 0 0.5rem 1.25rem; padding: 0; }
.admin-help-body li { margin-bottom: 0.6rem; line-height: 1.5; color: var(--ink); }
.admin-help-note {
  background: var(--cream);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}

/* ── Contact cards (admin) ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid #e7e1d6;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.contact-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.contact-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.contact-headline { min-width: 0; }
.contact-name {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.contact-profession {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.12rem 0.6rem;
  background: var(--sky-light);
  color: var(--sky-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.contact-role {
  margin: 0 0 0.9rem;
  color: #5a564e;
  font-size: 0.95rem;
  line-height: 1.45;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0;
  border-top: 1px solid #efeae0;
  margin-top: auto;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sky-dark);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}
.contact-line:hover { text-decoration: underline; }
.contact-line-muted { color: var(--stone); font-style: italic; }
.contact-line-muted:hover { text-decoration: none; }
.contact-ico { flex: 0 0 auto; width: 1.25rem; text-align: center; }
.contact-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid #efeae0;
}
.contact-photo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sky-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.contact-photo-preview {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--sky-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-photo-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sky);
}
.photo-remove-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.photo-remove-label input[type="checkbox"] {
  cursor: pointer;
}
@media (max-width: 500px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Admin Table ─────────────────────────────── */
.admin-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background-color: var(--sky-light);
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--sky-dark);
  border-bottom: 2px solid var(--sky);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.admin-table tbody tr:hover {
  background-color: var(--sky-light);
}

/* ── Documents ─────────────────────────────── */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--gray-light);
  border-radius: 8px;
  gap: 1rem;
}

.document-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-title {
  font-weight: 600;
  color: var(--sky-dark);
  word-break: break-word;
}

.document-size {
  font-size: 0.9rem;
  color: var(--stone);
}

/* ── Announcements ─────────────────────────────── */
.announcement-card {
  border-left: 4px solid var(--sky);
}

.announcement-card h3 {
  margin-bottom: 0.5rem;
}

.announcement-date {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.announcement-body {
  line-height: 1.7;
  color: var(--ink);
}

.announcements-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.announcement-preview {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.announcement-preview:last-child {
  border-bottom: none;
}

.announcement-preview h4 {
  margin-bottom: 0.25rem;
  color: var(--chestnut);
}

.announcement-admin-card {
  border-left: 4px solid var(--sky);
}

.announcement-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.announcement-admin-head h3 {
  margin-bottom: 0.25rem;
}

.announcement-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Forms ─────────────────────────────── */
.form-errors {
  background-color: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-msg {
  color: #c62828;
  margin: 0.5rem 0;
  font-weight: 500;
}

.field-error {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 150px;
}

.admin-actions {
  margin-bottom: 1.5rem;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

textarea {
  font-family: inherit;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--ink);
}

textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-light);
}

/* ── Flash Messages ─────────────────────────────── */
.flash {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.flash-success {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.flash-error {
  background-color: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
}

/* ── FAQs ─────────────────────────────── */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: block;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: all 0.2s;
}

.faq-question:hover {
  background-color: var(--sky-light);
  color: var(--sky-dark);
}

.faq-item[open] .faq-question {
  background-color: var(--sky-light);
  color: var(--sky-dark);
  border-bottom: 1px solid var(--gray-border);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--ink);
  line-height: 1.7;
}

/* ── Contact Form ─────────────────────────────── */
.contact-intro {
  font-size: 1.05rem;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.success-message {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-left: 4px solid #4caf50;
}

.success-message h3 {
  color: #2e7d32;
  margin-bottom: 1rem;
}

.success-message p {
  color: #558b2f;
  line-height: 1.7;
}

.success-message a {
  color: #2e7d32;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ── Concerns (Admin) ─────────────────────────────── */
.concerns-summary {
  margin-bottom: 1.5rem;
}

.concern-count {
  font-size: 1rem;
  color: var(--stone);
  font-weight: 500;
}

.concerns-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.concern-card {
  border-left: 4px solid var(--gray-border);
  transition: border-color 0.2s;
}

.concern-card.new {
  border-left-color: var(--sky);
  background-color: rgba(63, 169, 207, 0.02);
}

.concern-card.resolved {
  border-left-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.02);
  opacity: 0.85;
}

.concern-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.concern-header h3 {
  margin-bottom: 0.25rem;
}

.concern-meta {
  font-size: 0.9rem;
  color: var(--stone);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.concern-date {
  font-weight: 500;
}

.concern-category {
  display: inline-block;
  background-color: var(--sky-light);
  color: var(--sky-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.concern-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.concern-status.new {
  background-color: #fff3cd;
  color: #856404;
}

.concern-status.resolved {
  background-color: #d4edda;
  color: #155724;
}

.concern-content {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.concern-email {
  font-size: 0.95rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.concern-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-resolve {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #4caf50;
  color: var(--white);
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-resolve:hover {
  background-color: #45a049;
}

.btn-reopen {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--sky);
  color: var(--white);
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-reopen:hover {
  background-color: var(--sky-dark);
}

.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

/* Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .document-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .announcement-admin-head {
    flex-direction: column;
  }

  .announcement-admin-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-table {
    font-size: 0.9rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }

  .form-actions .btn {
    min-width: auto;
  }
}

/* ── Preserve line breaks typed into multi-line fields ──────────────
   HTML collapses newlines by default, so text the board enters on
   separate lines (FAQ answers, announcements, payment instructions,
   member concerns, contact roles) would run together. `pre-line`
   honors those newlines while still collapsing stray extra spaces. */
.faq-answer,
.announcement-body,
.announcement-preview p,
.concern-content p,
.contact-role,
.payment-instructions,
.hero-subtext {
  white-space: pre-line;
}

/* Net Income Styling ────────────────────── */
.net-positive .stat-value {
  color: var(--duck-green);
}

.net-negative .stat-value {
  color: #b3402e;
}
