/*  Newsletter  */
.newsletter {
  text-align: center;
  padding: 20px 20px;
}

.newsletter p {
  font-size: 18px;
  margin-bottom: 20px;
}

.newsletter-hero {
  padding: 60px 20px;
  background: var(--brand-bg);
  color: #222;
  font-family: "Inter", sans-serif;
}

.newsletter-hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--brand);
}

.newsletter-hero .intro,
.newsletter-hero .emphasis,
.newsletter-hero .note {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.newsletter-hero .note a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
}
.newsletter-hero .note a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  font-weight: 700;
}

.newsletter-form-section {
  padding: 20px 20px;
  background: var(--brand-bg);
  font-family: "Inter", sans-serif;
  color: #222;
}

.newsletter-form-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter-form-section p {
  font-size: 15px;
  margin-bottom: 20px;
}

.newsletter-form-section .forminator-label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  text-align: left;
}

.newsletter-form-section input[type="text"],
.newsletter-form-section input[type="email"],
.newsletter-form-section select,
.newsletter-form-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 15px;
}

.about-section .footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.about-section .footer-socials a {
  color: var(--brand, #007c91);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.about-section .footer-socials a:hover {
  opacity: 1;
}

.about-section .social-icon {
  width: 96px;
  height: 96px;
  fill: var(--brand);
}
.about-section .social-icon :hover {
  fill: var(--brand-dark);
}

/*  Contact Us  */

/* Contact Forminator 6627 styled like your old form */
#forminator-module-6627.forminator-ui form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#forminator-module-6627 .forminator-input,
#forminator-module-6627 .forminator-textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
}

#forminator-module-6627 .forminator-textarea {
  min-height: 150px;
}

/* Optional: hide labels, since you use placeholders */
#forminator-module-6627 .forminator-label {
  display: none;
}

.membership-benefits {
  padding: 20px 0;
}

.membership-cta {
  padding: 10px 20px;
}
.membership-benefits .card {
  background: var(--brand-bg);
  border: 1px solid var(--brand-bg);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  text-align: center;
}
.membership-benefits .card img {
  width: 180px; /* controls image size */
  height: 180px; /* keeps them square */
  object-fit: contain; /* keeps original proportions inside */
  border-radius: 30%; /* makes them circular */
  margin-bottom: 15px;
}

.membership-benefits .card:hover {
  transform: translateY(-4px);
}
/*  Hall Rental  */
.rental-overview {
  padding: 60px 20px 0px;
  background-color: var(--brand-bg);
}

.rental-overview h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}

.rental-overview p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
}

.rental-overview .three-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.rental-overview .card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.rental-overview .card h3 {
  margin-bottom: 25px;
  font-size: 25px;
  text-align: center;
}

.rental-overview .card ul {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 16px;
}

.forminator-ui .forminator-label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #222;
}

.forminator-ui input,
.forminator-ui textarea,
.forminator-ui select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  margin-bottom: 16px;
}

.forminator-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.forminator-row .forminator-col {
  flex: 1 1 48%;
  min-width: 240px;
}

.rental-form {
  background-color: var(--brand-bg);
  padding: 60px 20px;
}

.rental-form h2,
.rental-form p {
  color: #222;
}

/* Gallery */

.rental-details-gallery {
  padding: 10px 20px 50px;
  background-color: var(--brand-bg);
}

.rental-details-gallery h2 {
  font-size: 32px;
  margin-bottom: 50px;
}

.rental-details-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rental-details-text ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 18px;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ====== CDS Directory (scoped) ====== */
.business-directory-list .bdp-wrap {
  --bd-gap: 24px;
  --bd-radius: 14px;
  --bd-border: #e5e7eb;
  --bd-text: #111827;
  --bd-muted: #6b7280;
  --bd-bg: #ffffff;
  --bd-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Main search box */
.business-directory-list .bdp-wrap #wpbdp-main-box {
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  background: var(--bd-bg);
  box-shadow: var(--bd-shadow);
  padding: 16px;
}

/* Search input */
.business-directory-list .bdp-wrap #wpbdp-main-box .keywords-field {
  width: 100%;
  border: 1px solid var(--bd-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  outline: none;
}
.business-directory-list .bdp-wrap #wpbdp-main-box .keywords-field:focus {
  border-color: var(--brand, #0ea5e9);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--brand, #0ea5e9) 25%, transparent);
}

/* Buttons (primary) */
.business-directory-list .bdp-wrap .wpbdp-button,
.business-directory-list .bdp-wrap input.wpbdp-button[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font: 600 14px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--brand, #0ea5e9);
  color: #fff !important;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.02s ease;
}
.business-directory-list .bdp-wrap .wpbdp-button:hover,
.business-directory-list .bdp-wrap input.wpbdp-button[type="submit"]:hover {
  filter: brightness(1.06);
}
.business-directory-list .bdp-wrap .wpbdp-button:active,
.business-directory-list .bdp-wrap input.wpbdp-button[type="submit"]:active {
  transform: translateY(1px);
}

/* Fix: “Add Listing” was white-on-white (secondary). Make it solid. */
.business-directory-list .bdp-wrap .wpbdp-button-secondary {
  background: var(--brand, #0ea5e9) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Main links row (Directory / View / Manage / Add) */
.business-directory-list .bdp-wrap .wpbdp-main-links-container {
  margin-top: 14px;
}
.business-directory-list .bdp-wrap .wpbdp-main-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.business-directory-list .bdp-wrap .wpbdp-main-links .wpbdp-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--bd-border);
  border-radius: 10px;
  color: var(--bd-text);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
.business-directory-list .bdp-wrap .wpbdp-main-links .wpbdp-link:hover {
  border-color: #d1d5db;
}

/* Advanced-search (filter) icon – make it a subtle pill so it’s visible */
.business-directory-list .bdp-wrap a.wpbdp-advanced-search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--bd-border);
  border-radius: 12px;
  color: var(--bd-muted);
  background: #fff;
}
.business-directory-list .bdp-wrap a.wpbdp-advanced-search-link:hover {
  color: var(--bd-text);
  border-color: #d1d5db;
}

/* Categories */
.business-directory-list .bdp-wrap #wpbdp-categories {
  margin-top: 20px;
}
.business-directory-list .bdp-wrap #wpbdp-categories .wpbdp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 0;
  margin: 0;
}
.business-directory-list .bdp-wrap #wpbdp-categories .wpbdp-categories li {
  list-style: none;
}
.business-directory-list .bdp-wrap #wpbdp-categories .category-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

/* Listings grid (when viewing results) */
.business-directory-list .bdp-wrap .wpbdp-listings,
.business-directory-list .bdp-wrap .wpbdp-listings-list,
.business-directory-list .bdp-wrap .wpbdp-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--bd-gap);
}

/* Card */
.business-directory-list .bdp-wrap .wpbdp-listing {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .business-directory-list .bdp-wrap .wpbdp-listing:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
  }
}

/* Thumbnail */
.business-directory-list .bdp-wrap .wpbdp-listing .wpbdp-thumbnail,
.business-directory-list .bdp-wrap .wpbdp-listing .listing-thumbnail {
  aspect-ratio: 4/3;
  background: #f6f7f9;
  overflow: hidden;
}
.business-directory-list .bdp-wrap .wpbdp-listing .wpbdp-thumbnail img,
.business-directory-list .bdp-wrap .wpbdp-listing .listing-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.business-directory-list .bdp-wrap .wpbdp-listing .wpbdp-listing__content,
.business-directory-list .bdp-wrap .wpbdp-listing .listing-content {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.business-directory-list .bdp-wrap .wpbdp-listing .listing-title,
.business-directory-list .bdp-wrap .wpbdp-listing h3 {
  margin: 0;
  font: 700 18px/1.25 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--bd-text);
}
.business-directory-list .bdp-wrap .wpbdp-listing p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

/* Buttons inside cards */
.business-directory-list .bdp-wrap .wpbdp-listing a.wpbdp-button {
  align-self: flex-start;
  margin-top: 6px;
}

/* Pagination */
.business-directory-list .bdp-wrap .wpbdp-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.business-directory-list .bdp-wrap .wpbdp-pagination a,
.business-directory-list .bdp-wrap .wpbdp-pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--bd-border);
  font: 600 14px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--bd-text);
  background: #fff;
  text-decoration: none;
}
.business-directory-list .bdp-wrap .wpbdp-pagination .current {
  background: var(--brand, #0ea5e9);
  color: #fff;
  border-color: transparent;
}

/*   Convention */
.convention-tabs {
  background: var(--brand-bg);
  padding: 20px 0;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-container {
  min-height: 600px;
  padding: 0px 20px;
  box-sizing: border-box;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
}

.itinerary-list li {
  margin-bottom: 20px;
  text-align: left;
}

.package-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}

.package-card {
  width: 300px;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: var(--brand-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.package-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.package-card .price {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.package-card .save {
  color: green;
  font-size: 16px;
  margin-left: 8px;
}

.package-card ul {
  list-style: disc;
  margin: 15px 0;
  padding-left: 20px;
  text-align: left;
}

.package-card .deadline {
  font-size: 14px;
  color: #e63946;
  margin-top: 10px;
  text-align: center;
}

.package-card.early {
  border-color: var(--brand);
  background: #e0e0e0;
}

.package-card.regular {
  border-color: #999;
  background: #f4f4f4;
}

.convention-info {
  list-style: none;
  font-size: 16px;
  padding-left: 0;
  max-width: 800px;
  margin: 0 auto;
}

.convention-info li {
  margin-bottom: 15px;
  text-align: left;
}

/*   About Us */

/* Layout for the 3 cards */
.about-section.highlights .three-columns {
  display: flex;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; /* space between cards */
  align-items: stretch;
  margin-top: 24px;
}

/* Card styling (no outer margins inside a grid) */
.about-section.highlights .card {
  background: var(--brand-bg);
  border: 3px solid var(--brand-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  text-align: center;
}
.about-section.highlights .card:hover {
  transform: translateY(-4px);
}

.about-section.highlights .card img {
  width: 220px; /* shrink from 1024px */
  height: 220px; /* keep equal width/height for perfect circle */
  object-fit: cover; /* crop inside if needed */
  border-radius: 30%; /* makes circle */
  margin-bottom: 15px; /* space under the image */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* optional for a clean look */
}

/* Responsive: 2-up on tablets, 1-up on phones */
@media (max-width: 1024px) {
  .about-section.highlights .three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-section.highlights .three-columns {
    grid-template-columns: 1fr;
  }
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--brand);
}

/* Board Members */
.leader-card {
  background: #f9fafa;
  border: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-family: "Inter", sans-serif;
  transition: transform 0.2s ease;
}

.leader-card strong {
  color: var(--brand);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.leader-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.grid.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.officer-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 20px;
  font-size: 16px;
  color: #333;
}

.officer-list li {
  background: var(--brand-bg);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--brand);
}

/* Board History */
.history-year {
  padding: 40px 0;
  border-bottom: 1px solid #ddd;
}

.history-year:last-child {
  border-bottom: none;
}

.history-year .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.history-year h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.history-year p {
  font-size: 16px;
  color: #333;
  margin: 6px 0;
}

.history-year p strong {
  font-weight: 600;
  color: #000;
}

/* Orders tab */
.um-woo-orders {
  margin-top: 20px;
}

.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.woocommerce-orders-table th {
  background: #f5f5f5;
}

.woocommerce-orders-table .button {
  padding: 6px 12px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.woocommerce-orders-table .button:hover {
  background: var(--brand-dark);
}

body.woocommerce-view-order .woocommerce-MyAccount-navigation {
  display: none;
}

body.woocommerce-view-order .woocommerce-MyAccount-content {
  width: 100%;
}

.wp-block-woocommerce-customer-account {
  display: none !important;
}

/* Addresses */
.um-address-summary {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
}

.billing-address {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* WooCommerce address form layout (clean and consistent) */
.woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  max-width: 400px;
  margin-bottom: 30px;
}

/* Force 1 field per row for wider fields */
.form-row-wide {
  grid-column: span 2;
}

/* All fields - consistent padding & look */
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.select2-container .select2-selection--single {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 12px;
  box-sizing: border-box;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.4 !important;
  font-size: 15px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: #333;
  display: flex;
  align-items: center;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100% !important;
  right: 10px;
}

/* Save button */
.woocommerce form .form-row button.button {
  background-color: var(--brand);
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.woocommerce form .form-row button.button:hover {
  background-color: var(--brand-dark);
}

/* Hide side nav + make content full width */
body.woocommerce-edit-address .woocommerce-MyAccount-navigation {
  display: none;
}

body.woocommerce-edit-address .woocommerce-MyAccount-content {
  width: 100%;
}

/* Optional max-width for email/postal */
.woocommerce-address-fields__field-wrapper .form-row.postcode,
.woocommerce-address-fields__field-wrapper .form-row.email {
  max-width: 350px;
}

/* Export tab wrapper */
.cds-export {
  line-height: 1.6;
}
.cds-export__title {
  margin: 0 0 6px;
}
.cds-export__desc {
  margin: 0 0 12px;
  color: #6b7280;
}

/* Buttons row */
.cds-export__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cds-export__form {
  display: inline-block;
}

.cds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
}
.cds-table th,
.cds-table td {
  border: 1px solid #e3e3e3;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle; /* keep all cells aligned */
}
.cds-table th {
  background: #fafafa;
}

.cds-input {
  min-width: 220px;
  height: 36px; /* matches button height */
  box-sizing: border-box;
}

.cds-ctl {
  display: inline-flex; /* flex, but inside the TD */
  align-items: center; /* vertical centering */
  gap: 8px;
  white-space: nowrap; /* keep buttons on one line */
}

/* Membership tab */
.cds-membership {
  line-height: 1.6;
}
.cds-row {
  margin: 0 0 8px;
}
.cds-muted {
  color: #6b7280;
}

/* Upsell/notice box (custom class to avoid UM JS hiding .um-notice) */
.cds-notice {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  width: 70%;
  text-align: center;
}
.cds-notice__text {
  margin: 0 0 8px;
}
.cds-notice__actions {
  margin: 0;
}

/* Badges */
.cds-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
}
.cds-badge--active {
  background: #10b981;
  color: #111;
}
.cds-badge--soon {
  background: #f59e0b;
  color: #111;
}

.cds-privacy h1 {
  margin-bottom: 0.5rem;
}
.cds-privacy h2 {
  margin-top: 1.5rem;
}
.cds-privacy ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}
.cds-privacy li + li {
  margin-top: 0.25rem;
}

.cds-bylaws.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.cds-bylaws__paper {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.cds-bylaws__paper h1,
.cds-bylaws__paper h2,
.cds-bylaws__paper h3,
.cds-bylaws__paper h4 {
  margin: 0.5rem 0 0.25rem;
  font-weight: bolder;
}
.cds-bylaws__paper p,
.cds-bylaws__paper li {
  line-height: 1.6;
}

/* Newsletter Archive */
.cds-newsletters-hero {
  padding: 48px 0 16px;
  background: var(--brand-bg, #f7f8fa);
}
.cds-newsletters-hero .page-title {
  margin: 0 0 8px;
}
.cds-newsletters-hero .page-subtitle {
  color: #667085;
  margin: 0;
}

.cds-year-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.cds-year-nav .label {
  font-weight: 600;
}
.cds-year-nav .year-list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cds-year-nav .year-list a {
  text-decoration: none;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 8px;
}
.cds-year-nav .year-list a:hover {
  background: #f5f5f5;
}

.cds-year-heading {
  margin: 28px 0 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.cds-newsletter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.cds-newsletter {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
}
.cds-newsletter__link {
  text-decoration: none;
}
.cds-newsletter__title {
  font-weight: 600;
}
.cds-newsletter__meta {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cds-tag {
  font-size: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 8px;
}
.cds-newsletter__summary {
  margin: 8px 0 0;
  color: #4b5563;
}
.cds-newsletter-cta {
  margin: 28px 0 0;
}
.cds-newsletter-cta .btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--brand, #0ea5e9);
}

/* Membership banner */
.cds-membership-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  border-radius: 12px;
}
.cds-membership-badge {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.cds-membership-text {
  color: #065f46;
  font-weight: 500;
}

/* Newsletter Archive — Title + Date only */
.cds-newsletters-archive {
  padding: 24px 0 40px;
  color: var(--ink);
}
.cds-newsletters-archive .container {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--edge-pad);
}
.cds-newsletters-archive .page-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
}

/* Simple vertical list */
.nl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nl-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, #fff);
}
.nl-link {
  flex: 1;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.nl-link:hover {
  text-decoration: underline;
}
.nl-date {
  white-space: nowrap;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ink) 60%, #7c8790);
}

/* CTA button uses your tokens */
.cds-newsletter-cta {
  margin-top: 24px;
  text-align: center;
}
.cds-newsletter-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
}
.cds-newsletter-cta .btn-primary:hover {
  filter: brightness(1.05);
}

/* =========================
   CDS FAQ Styles
   Keep it simple & readable
   ========================= */

.cds-faq {
  --faq-maxw: 900px;
  --faq-gap: 16px;
  --faq-radius: 14px;
  --faq-pad: 14px;
  --faq-border: 1px solid rgba(0, 0, 0, 0.08);
  --faq-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  --faq-bg: #fff;
  --faq-muted: color-mix(in srgb, var(--ink) 60%, #fff 40%);
}

.cds-faq .container {
  max-width: var(--faq-maxw);
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 20px);
}

/* ===== Sticky category nav (mobile-friendly horizontal scroll) ===== */
.cds-faq-nav {
  position: sticky;
  top: calc(var(--pill-inset, 14px) + 8px);
  z-index: 5;
  margin: 10px 0 18px;
  background: var(--pill-bg);
  border: var(--pill-border);
  border-radius: var(--pill-radius);
  box-shadow: var(--pill-shadow-soft);
  backdrop-filter: blur(10px);
  padding: 8px;
}

.cds-faq-nav .label {
  display: none;
}

.cds-faq-nav .cat-list {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.cds-faq-nav .cat-list::-webkit-scrollbar {
  display: none;
}

.cds-faq-nav .cat-list a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.75);
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}
.cds-faq-nav .cat-list a:hover,
.cds-faq-nav .cat-list a:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border-color: color-mix(in srgb, var(--brand) 24%, rgba(0, 0, 0, 0.06));
  box-shadow: var(--ring);
  outline: none;
}

/* ===== Headings ===== */
.cds-faq-heading {
  margin: 28px 0 10px;
  font-size: clamp(18px, 3.2vw, 22px);
  color: var(--brand-ink);
  scroll-margin-top: calc(
    var(--pill-min-h, 72px) + var(--pill-inset, 14px) + 18px
  );
}

/* ===== Accordion ===== */
.cds-faq-accordion {
  display: grid;
  gap: 10px;
}

.cds-faq-item {
  background: var(--faq-bg);
  border: var(--faq-border);
  border-radius: var(--faq-radius);
  box-shadow: var(--faq-shadow);
  overflow: clip;
}

/* Remove default triangle & style our own summary row */
.cds-faq-q {
  list-style: none; /* remove default marker */
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: clamp(12px, 2.6vw, 16px) clamp(14px, 3vw, 18px);
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.cds-faq-q::-webkit-details-marker {
  display: none;
}

/* Chevron */
.cds-faq-q::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(-45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cds-faq-item[open] .cds-faq-q::after {
  transform: rotate(45deg);
  border-color: var(--brand);
}

/* Hover / focus state */
.cds-faq-q:hover {
  background: color-mix(in srgb, #fff 80%, var(--brand) 5%);
}
.cds-faq-q:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: inherit;
}

/* Answer body */
.cds-faq-a {
  padding: 0 clamp(14px, 3vw, 18px) clamp(14px, 3vw, 18px);
  color: var(--faq-muted);
  line-height: 1.6;
  font-size: clamp(14px, 2.8vw, 16px);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease, padding-top 0.22s ease,
    opacity 0.22s ease;
  opacity: 0;
}
.cds-faq-item[open] .cds-faq-a {
  grid-template-rows: 1fr;
  padding-top: 2px;
  opacity: 1;
}
.cds-faq-a > * {
  min-height: 0; /* enables the grid "accordion" trick */
}
.cds-faq-a p {
  margin: 10px 0 0;
}

/* Subtle divider between Q and A when open */
.cds-faq-item[open] .cds-faq-q {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cds-faq-a {
    transition: none;
  }
  .cds-faq-q::after {
    transition: none;
  }
}

/* ===== Light theming alignment (optional, matches site tokens) ===== */
.cds-faq .cds-faq-item {
  background: #fff;
}
@supports (color: color-mix(in srgb, white, black)) {
  .cds-faq .cds-faq-item {
    background: color-mix(in srgb, #fff 96%, var(--surface) 4%);
  }
}

/* ===== Small screens ===== */
@media (max-width: 560px) {
  .cds-faq-heading {
    margin-top: 20px;
  }
  .cds-faq-nav {
    top: 8px;
  }
}

/* ===== Print: expand all, remove chrome ===== */
@media print {
  .cds-faq-nav {
    display: none !important;
  }
  .cds-faq-item {
    box-shadow: none;
    border-color: #bbb;
  }
  .cds-faq-item {
    break-inside: avoid;
  }
  .cds-faq-item[open] .cds-faq-a,
  .cds-faq-item .cds-faq-a {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}
/* Keep pill labels on one line so "&" never orphans */
.cds-faq-nav .cat-list a {
  white-space: nowrap;
  line-height: 1;
  min-height: 36px; /* matches your height */
  overflow: hidden; /* optional */
  text-overflow: ellipsis; /* optional: trims super-long labels */
  max-width: 48ch; /* optional: prevent ultra-wide pills */
}

/* If a pill still gets tall because of fonts/zoom, force center */
.cds-faq-nav .cat-list a {
  align-items: center;
}

/* Family Members editor */
.cds-family-editor {
  margin-top: 24px;
}
.cds-fm-title {
  margin: 0 0 8px;
}
.cds-fm-subtitle {
  margin: 0 0 12px;
  color: #555;
}

.cds-members-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* ensures column widths */
}

.cds-members-table th,
.cds-members-table td {
  border: 1px solid #e5e5e5;
  padding: 10px;
  vertical-align: middle;
}

.cds-members-table th:nth-child(1),
.cds-members-table td:nth-child(1) {
  width: 160px;
}
.cds-members-table th:nth-child(2),
.cds-members-table td:nth-child(2) {
  width: auto;
}
.cds-members-table th:nth-child(3),
.cds-members-table td:nth-child(3) {
  width: 140px;
}
.cds-members-table th:nth-child(4),
.cds-members-table td:nth-child(4) {
  width: 90px;
}

.cds-members-table th {
  background: #f8f8f8;
  font-weight: 600;
}
.cds-col-actions,
.cds-actions {
  text-align: center;
}

.cds-fm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}
.cds-fm-status {
  color: #666;
}
.cds-fm-errors {
  color: #b00020;
  margin: 0 0 10px;
}

.cds-name {
  width: 100%;
  box-sizing: border-box;
}
.cds-rel,
.cds-age {
  width: 100%;
  box-sizing: border-box;
}

/* Age cell: toggle between placeholder and select */
.cds-age-wrap .cds-age-placeholder {
  display: inline-block;
}
.cds-age-wrap .cds-age {
  display: none;
}
.cds-age-wrap.is-child .cds-age-placeholder {
  display: none;
}
.cds-age-wrap.is-child .cds-age {
  display: inline-block;
}

/* Shared layout */
.cds-newsletters-archive {
  background: var(--surface);
  padding: 2rem 0;
}
.cds-newsletters-archive .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge-pad);
}
.page-title {
  font-size: 1.9rem;
  color: var(--brand-ink);
  margin-bottom: 1.25rem;
}

/* Filters */
.nl-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.nl-filter {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--btn-radius);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}
.nl-filter.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
}

/* List items */
.nl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.nl-item {
  background: var(--pill-bg);
  border: var(--pill-border);
  border-radius: var(--pill-radius);
  box-shadow: var(--pill-shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.8rem 1rem;
  margin-bottom: 2px;
}
.nl-link {
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
}
.nl-link:hover {
  text-decoration: underline;
}
.nl-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--brand-tr);
  color: var(--brand-ink);
}
.nl-date {
  margin-left: auto;
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 600px) {
  .nl-date {
    flex: 1 0 100%;
    margin-left: 0;
  }
}

.cds-newsletter-cta .btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  padding: 0 1.25rem;
  height: var(--btn-h);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.cds-newsletter-cta .btn-primary:hover {
  background: var(--brand-dark);
}
/* ---------------------------------------------------------
   Newsletter Filter Buttons
   Scoped to .cds-newsletters-archive to avoid theme overrides
   --------------------------------------------------------- */

.cds-newsletters-archive .nl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
  justify-content: flex-start;
}

/* Base button style */
.cds-newsletters-archive .nl-filter {
  appearance: none;
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--brand);
  border-radius: var(--btn-radius);
  padding: 0.45rem 1rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--pill-shadow-soft);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  user-select: none;
}

/* Hover & focus (override global pink) */
.cds-newsletters-archive .nl-filter:hover,
.cds-newsletters-archive .nl-filter:focus {
  background: var(--brand-bg);
  color: var(--brand-ink);
  border-color: var(--brand-dark);
  outline: none;
}

/* Active/Selected */
.cds-newsletters-archive .nl-filter.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 60%, transparent);
}

/* Active + hover/focus (stay green, darker tone) */
.cds-newsletters-archive .nl-filter.is-active:hover,
.cds-newsletters-archive .nl-filter.is-active:focus {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

/* Accessibility ring */
.cds-newsletters-archive .nl-filter:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Responsive */
@media (max-width: 600px) {
  .cds-newsletters-archive .nl-filters {
    gap: 0.4rem;
  }
  .cds-newsletters-archive .nl-filter {
    flex: 1 0 calc(50% - 0.4rem);
    text-align: center;
  }
}
.funder {
  margin-bottom: 16px;
}
.funder-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.funder-logos img {
  max-height: 80px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.funder-logos img:hover {
  opacity: 1;
}
