/* ACFP LLC — Board resources and FAQ hub (Cloudflare Pages)
   Help-center layout. Same teal/navy brand, different structure. */
:root {
  --navy: #16384a;
  --navy-deep: #0c2430;
  --teal: #1e9a6c;
  --teal-dark: #167a55;
  --ink: #1d2b30;
  --muted: #4f6460;
  --bg: #eef4f2;
  --white: #ffffff;
  --card: #ffffff;
  --line: #d4e2dc;
  --mist: #e3f0ea;
  --focus: #0f6b8f;
  --shadow: 0 12px 28px rgba(12, 36, 48, 0.08);
  --sans: "IBM Plex Sans", "Segoe UI", Calibri, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(1040px, calc(100% - 2.25rem)); margin-inline: auto; }

.site-header {
  background: var(--navy-deep);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; }
.brand-text span { font-size: 0.78rem; color: #b7d4c8; }

.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.92rem; }
.nav a { color: #e8f3ee; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1a5a4a 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}
.hero p { margin: 0; max-width: 62ch; color: #e4f0ea; font-size: 1.12rem; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ee0c3;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.jump a {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.jump a:hover { background: #fff; color: var(--navy); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: -1.75rem 0 2rem;
  position: relative;
  z-index: 2;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card a { font-weight: 600; }

.section { padding: 0.5rem 0 1.5rem; }
.section h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  scroll-margin-top: 1rem;
}
.section > p.lead { max-width: 70ch; margin: 0 0 1rem; }

.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 0.65rem;
  padding: 0 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 0.9rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--teal-dark);
  font-weight: 700;
}
.faq[open] summary::before { content: "–"; }
.faq .answer { padding: 0 0 1rem 1.2em; }
.faq .answer p:last-child { margin-bottom: 0; }

.nap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 2rem;
  box-shadow: var(--shadow);
}
.nap p { margin: 0.15rem 0; }
.nap .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 2rem;
}
.value {
  background: var(--mist);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}
.value h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.02rem; }
.value p { margin: 0; font-size: 0.95rem; }

.page-main { padding: 2.4rem 0 3.2rem; }
.page-main h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 0.8rem;
}
.prose { max-width: 70ch; }
.prose h2 { color: var(--navy); font-size: 1.25rem; margin: 1.8rem 0 0.5rem; }

.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}

.cta {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
}
.cta:hover { background: var(--teal-dark); color: #fff; }

.site-footer {
  background: var(--navy-deep);
  color: #dce8e3;
  padding: 2.2rem 0 1.6rem;
  font-size: 0.95rem;
}
.site-footer a { color: #9ee0c3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #8fb9a8;
}
.site-footer p, .site-footer ul { margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.legal {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #a9bdb5;
}

.error {
  text-align: center;
  padding: 4.5rem 0;
  background: var(--white);
  border-radius: 16px;
  margin: 2rem 0 3rem;
  border: 1px solid var(--line);
}
.error h1 { color: var(--navy); }
