@font-face {
  font-family: "Lazydog";
  src: url("Lazydog.otf") format("opentype");
  font-display: swap;
}

* { 
  box-sizing: border-box; 
}

body {
  font-family: Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 { font-family: "Lazydog"; }

textarea {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #bdbdbd;
  font: inherit;
  max-width: 100%;
  min-height: 200px;
  padding: 0.5rem;
  width: 100%;
}

label {
  display: block;
  margin: 0.5rem 0 0.3rem;
}

table {
  border-collapse: collapse;
  margin: 3rem 0;
}

table caption {
  font-style: italic;
}

table th,
table td {
  padding: 0.8rem;
}

tbody tr:nth-child(odd) {
  background-color: #f7f7f7;
}

.color-secondary {
  color: #B51926;
}

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

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

.text-center,
.title,
.subtitle { text-align: center; }

.campaign {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem;
  margin: 1.5rem auto;
  width: 75%;
  max-width: 1100px; /* cap width on very wide screens */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.campaign-header h2 {
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.accordion {
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
  margin: 0.75rem 0;
  overflow: clip;
}

.accordion[open] {
  background: #f9f9f9;
  border-color: #cfcfcf;
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  position: relative;
  user-select: none;
  outline: none;
}

.accordion-summary::-webkit-details-marker { display: none; }

.accordion-summary::after {
  content: "▸";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.15s ease;
}

.accordion[open] .accordion-summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion-body { padding: 0 1rem 1rem 1rem; }
.accordion-body h3 { margin-top: 0.75rem; }

.list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  list-style: none;
  padding:0;
}
.fundraiser-link {
  align-items: center;
  border-radius: 1rem;
  border: 1px solid grey;
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
}
.fundraiser-link:hover {
  background-color: #ffffd0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08)
}
.fundraiser-logo {
  max-width: 70px;
  max-height: 30px;
}

/*---------------*/
/* Media Queries */
/*---------------*/
@media (max-width: 45rem) {
  .campaign { width: 92%; } /* full-ish width on small screens */
  .accordion-summary { padding-right: 2.25rem; }
  .list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-color-scheme: light) {
  .dark-mode-only {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #eaeaea;
  }
  .color-secondary {
    color: #e84e5b;
  }
  a {
    color: #fff;
  }
  a:visited {
    color: #9f9f9f;
  }
  .light-mode-only {
    display: none;
  }
  .campaign {
    background-color: #2b2b2b;
  }
  .fundraiser-link {
    background-color: #313131;
    border-color: #4d4d4d;
    color: #fff;
  }
  .fundraiser-link:hover {
    background-color: #4f441a;
  }
  .accordion[open],
  .accordion {
    background-color: #242424;
    border-color: #626262;
  }
  textarea {
    background-color:inherit;
    color:inherit;
  }
  tbody tr:nth-child(2n+1) {
    background-color: #3c3c3c;
  }
}
