/* ===== COPIED FROM index.css: Header ===== */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Spacing scale */
:root {
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.05);
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Links */
a {
  color: var(--text);
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Header --- */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
#header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
  max-width: 1120px;
  margin: 0 auto;
}
.header-left a {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1;
  color: var(--text);
}
.header-left a:hover {
  text-decoration: none;
  color: var(--accent);
}
.header-right {
  display: flex;
  gap: var(--space-3);
}
.header-right a {
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: background .15s ease;
}
.header-right a:hover {
  background: var(--surface-alt);
}

@media (max-width: 640px) {
  #header nav {
    height: 56px;
  }
  .header-right {
    gap: .5rem;
  }
}

/* ===== COPIED FROM index.css: Footer ===== */
/* --- Footer --- */
#footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: clamp(2rem, 6vw, 4rem);
}
#footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
#footer h2 {
  font-size: 18px;
  margin-top: 0;
  position: relative;
  padding-left: 0.6rem;
}

#footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}
#footer p {
  margin-top: var(--space-2);
}
#footer a {
  display: inline-block;
  margin-top: .5rem;
}
#footer .contact a {
  margin-top: var(--space-3);
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
}
#footer .socials a,
#footer .learn-more a {
  display: block;
  margin-top: .6rem;
}
/* --- Footer contact: hover “box” like other links --- */
#footer .contact a {
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
#footer .contact a:hover {
  background: var(--surface);      /* subtle box on hover */
  border-color: var(--accent);     /* hint of accent */
  transform: translateY(-1px);
  text-decoration: none;
}

#credits {
  border-top: 1px solid var(--border);
  padding: .9rem 1rem;
  text-align: center;
  color: var(--text-soft);
}
#credits a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#credits a:hover {
  color: var(--accent);
  text-decoration: none;
}
@media (max-width: 900px) {
  #footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
}
@media (max-width: 640px) {
  #footer-content {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ABOUT PAGE BODY STYLES (no header, footer, or credits)
   Dependencies: reset.css, theme.css
   ========================================================= */

/* Page container */
html {
  scroll-behavior: smooth;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
}

/* Section spacing & headings */
main > * + * {
  margin-top: clamp(1rem, 3vw, 1.25rem);
}

/* Paragraph readability */
main p {
  max-width: 70ch;
  line-height: 1.65;
  color: var(--text);
}

/* Unordered lists (exclude board grid) */
main ul:not(.card-grid) {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-2);
}
main ul:not(.card-grid) li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}
main ul:not(.card-grid) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

/* Ordered & definition lists */
main ol {
  margin-top: var(--space-2);
  padding-left: 1.25rem;
  counter-reset: item;
}
main ol dl {
  margin: 0;
  padding: 0;
}
main dt {
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.5rem;
}
main dd {
  margin: .35rem 0 .9rem 0.5rem;
  padding-left: .75rem;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  line-height: 1.55;
  transition: border-color .15s ease;
}
main dd:hover {
  border-left-color: var(--accent);
}

/* Board grid section (no bullets) */
.card-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-1) 0;
  list-style: none;
}

/* Board cards */
.card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-3);
  align-items: center;
  transition: transform .12s ease, background .15s ease;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-2px);
  background: var(--surface-alt);
}

.card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 6px var(--accent),
    0 8px 24px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .15s ease;
}

.card:hover img {
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 8px var(--accent),
    0 10px 28px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

/* Card content */
.card-body {
  display: grid;
  gap: .25rem;
}
.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.card-role {
  color: var(--accent);
  font-weight: 600;
}
.card-meta {
  color: var(--text-soft);
  font-size: .95rem;
}

/* Section anchors from HTML ids */
.board h2,
#membership,
#policies-and-constitution {
  margin-top: var(--space-5);
}

/* Active section highlight when navigated via anchor */
:target {
  scroll-margin-top: 80px;
}
:target + p,
:target + ul,
:target + ol,
:target + dl {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
  padding: .25rem .5rem;
  transition: outline-color .2s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 72px 1fr;
  }
  .card img {
    width: 72px;
    height: 72px;
  }
}