/* =============================================================================
   Abolish Abortion South Dakota — site layer on top of plea.css
   plea.css is the theme exactly as delivered; everything AASD-specific is here.
   One breakpoint, 960px, as the theme asks.
   ============================================================================= */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* ---- Nav ------------------------------------------------------------------ */
.plea-nav { z-index: 10; }
.plea-nav__list > li { display: flex; align-items: center; }
.plea-nav__list a:focus-visible,
.aasd-folder > summary:focus-visible,
.plea-nav__toggle:focus-visible,
.plea-nav__brand:focus-visible {
  outline: 2px solid var(--plea-paper);
  outline-offset: 3px;
}

/* "How can I get involved?" folder: native <details>, works without JS */
.aasd-folder { position: relative; }
.aasd-folder > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plea-nav, var(--plea-paper-dim));
  white-space: nowrap;
}
.aasd-folder > summary::-webkit-details-marker { display: none; }
.aasd-folder > summary::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: var(--plea-crimson);
  transform: translateY(2px);
}
.aasd-folder[open] > summary::after { transform: translateY(-2px) rotate(180deg); }
.aasd-folder > summary:hover,
.aasd-folder.is-current > summary,
.aasd-folder[open] > summary { color: var(--plea-paper); }
.aasd-folder__menu li::before { display: none !important; }
.aasd-folder__menu {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}
.aasd-folder__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.35;
  color: var(--plea-paper-dim);
}
.aasd-folder__menu a:hover,
.aasd-folder__menu a[aria-current="page"] { color: var(--plea-paper); }
.aasd-folder__menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--plea-crimson); }

@media (min-width: 960px) {
  .plea-nav__list a { white-space: nowrap; }
  .aasd-folder__menu {
    position: absolute;
    top: calc(100% + 19px);
    right: 0;
    width: 22rem;
    background: var(--plea-ink);
    border: 1px solid rgba(241, 235, 224, 0.12);
    border-top: var(--plea-rule-h) solid var(--plea-crimson);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  }
}
/* AASD has six nav items, not the theme's four: tighten tracking near the breakpoint */
@media (min-width: 960px) and (max-width: 1199px) {
  .plea-nav__list a,
  .aasd-folder > summary { letter-spacing: 0.12em; }
  .plea-nav__list li + li::before { margin: 0 10px; }
}

/* Mobile drawer */
@media (max-width: 959px) {
  .plea-nav__brand { letter-spacing: 0.16em; }
  .plea-nav.is-open .plea-nav__list {
    gap: 0;
    align-items: stretch;
    max-height: calc(100vh - var(--plea-nav-h));
    overflow-y: auto;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .plea-nav.is-open .plea-nav__list > li { display: block; border-bottom: 1px solid rgba(241, 235, 224, 0.08); }
  .plea-nav.is-open .plea-nav__list > li > a,
  .plea-nav.is-open .aasd-folder > summary {
    display: block;
    padding: 15px 0;
    font-size: 13px;
  }
  .plea-nav.is-open .aasd-folder__menu { padding: 0 0 10px; }
  .plea-nav.is-open .aasd-folder__menu a { padding: 10px 0 10px 16px; }
}

/* ---- Home hero ---------------------------------------------------------- */
.aasd-hero .plea-hero__witnesses {
  --plea-witness: url("/assets/plea-cross-hero.jpg");
  background-image:
    linear-gradient(180deg, transparent 55%, var(--plea-black) 100%),
    var(--plea-witness);
  background-size: cover;
  background-position: center 45%;
}
.aasd-hero-logo {
  width: 96px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: -36px 0 20px;
  box-shadow: 0 0 0 3px var(--plea-black), 0 0 0 5px var(--plea-crimson), 0 18px 40px rgba(0, 0, 0, 0.6);
}
.aasd-hero .plea-demand { font-size: clamp(38px, 10.6vw, 54px); }
.aasd-hero .plea-hero__copy { padding-bottom: 0; }
.aasd-hero > .plea-cta {
  order: 3;
  width: auto;
  margin: 28px var(--plea-page-pad) 40px;
}

@media (min-width: 960px) {
  .aasd-hero {
    min-height: min(calc(100vh - var(--plea-nav-h) - var(--plea-footer-h)), 760px);
  }
  .aasd-hero .plea-hero__witnesses {
    --plea-witness: url("/assets/plea-cross-square.jpg");
    background-image:
      linear-gradient(90deg, var(--plea-black) 0%, transparent 30%),
      linear-gradient(180deg, transparent 70%, var(--plea-black) 100%),
      var(--plea-witness);
    background-position: 60% center;
  }
  .aasd-hero-logo { width: clamp(104px, 9vw, 132px); margin: 0 0 28px; }
  /* "Abolish Abortion" must stay on one line: two-line Demand, per DESIGN.md */
  .aasd-hero .plea-demand { font-size: clamp(64px, 6.9vw, 108px); max-width: none; }
  .aasd-hero .plea-hero__copy { padding-bottom: 8vh; }
  .aasd-hero > .plea-cta { margin: 0; }
}

/* ---- Inner page banner ---------------------------------------------------- */
.aasd-banner {
  position: relative;
  z-index: 4;
  padding: clamp(48px, 9vw, 112px) var(--plea-page-pad) clamp(40px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.55)),
    linear-gradient(180deg, transparent 55%, var(--plea-black) 100%),
    url("/assets/plea-cross-banner.jpg") 74% center / cover no-repeat;
  text-align: center;
}
.aasd-banner__inner { max-width: var(--plea-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.aasd-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plea-paper-dim);
}
.aasd-banner__title {
  font-size: clamp(34px, 9.4vw, 50px);
  line-height: 0.95;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
@media (min-width: 960px) {
  .aasd-banner {
    text-align: left;
    background:
      linear-gradient(90deg, var(--plea-black) 0%, rgba(7, 7, 7, 0.88) 38%, rgba(7, 7, 7, 0.15) 72%, transparent 100%),
      linear-gradient(180deg, transparent 60%, var(--plea-black) 100%),
      url("/assets/plea-cross-banner.jpg") right center / cover no-repeat;
  }
  .aasd-banner__inner { align-items: flex-start; }
  .aasd-banner__title { font-size: clamp(56px, 5.6vw, 88px); max-width: 16ch; }
}

/* ---- Content -------------------------------------------------------------- */
.aasd-content {
  position: relative;
  z-index: 4;
  padding: clamp(40px, 6vw, 88px) var(--plea-page-pad) clamp(56px, 8vw, 112px);
}
.aasd-prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--plea-paper-dim);
  overflow-wrap: break-word;
}
@media (min-width: 960px) { .aasd-prose { font-size: 18px; } }
.aasd-prose > :first-child { margin-top: 0; }
.aasd-prose p { margin: 0 0 1.1em; }
.aasd-prose strong { color: var(--plea-paper); font-weight: 700; }
.aasd-prose a {
  color: var(--plea-paper);
  text-decoration: underline;
  text-decoration-color: var(--plea-crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.aasd-prose a:hover { text-decoration-color: var(--plea-paper); }
.aasd-prose a:focus-visible { outline: 2px solid var(--plea-paper); outline-offset: 3px; }
.aasd-prose h1, .aasd-prose h2, .aasd-prose h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--plea-font-demand);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--plea-paper);
}
.aasd-prose h1, .aasd-prose h2 { font-size: clamp(30px, 4vw, 44px); }
.aasd-prose h3 { font-size: clamp(24px, 3vw, 32px); }
.aasd-prose h4 { margin: 1.6em 0 0.5em; color: var(--plea-paper); font-size: 1.05em; }
/* the event pages' "What's this? / Where? / When?" labels */
.aasd-prose h5 {
  margin: 1.7em 0 0.35em;
  font-family: var(--plea-font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plea-paper);
}
.aasd-prose h2 + h5, .aasd-prose p:has(> img) + h5 { margin-top: 1.2em; }
/* the three Gospel sections linked from Home and Pro-Life Is Not Enough */
.aasd-prose details.accordion[id] { scroll-margin-top: calc(var(--plea-nav-h) + 16px); }
.aasd-prose ul, .aasd-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.aasd-prose ul { list-style: square; }
.aasd-prose ul li::marker { color: var(--plea-crimson); }
.aasd-prose ol li::marker { color: var(--plea-paper); font-weight: 700; }
.aasd-prose li { margin: 0 0 0.5em; }
.aasd-prose li > p { margin: 0 0 0.4em; }
.aasd-prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: var(--plea-rule-h) solid var(--plea-crimson);
  color: var(--plea-paper);
}
.aasd-prose hr {
  width: 56px;
  height: var(--plea-rule-h);
  margin: 2.4em 0;
  background: var(--plea-crimson);
  border: 0;
}
.aasd-prose img {
  height: auto;
  margin: 2em auto;
  border: 1px solid rgba(241, 235, 224, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}
/* Responsive 16:9 YouTube embeds */
.aasd-prose iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border: 0;
  background: var(--plea-ink);
  box-shadow: 0 0 0 1px rgba(241, 235, 224, 0.12), 0 24px 48px rgba(0, 0, 0, 0.55);
}
.aasd-prose p:has(> iframe) { margin: 0; }

/* The Gospel: six collapsible sections ("Click each to open") */
.aasd-prose details.accordion { border-top: 1px solid rgba(241, 235, 224, 0.14); }
.aasd-prose details.accordion:last-of-type { border-bottom: 1px solid rgba(241, 235, 224, 0.14); margin-bottom: 1.5em; }
.aasd-prose details.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.aasd-prose details.accordion > summary::-webkit-details-marker { display: none; }
.aasd-prose details.accordion > summary h3 { margin: 0; }
.aasd-prose details.accordion > summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--plea-crimson);
  color: var(--plea-paper);
  font: 700 22px/1 var(--plea-font-ui);
}
.aasd-prose details.accordion[open] > summary::after { content: "\2212"; }
.aasd-prose details.accordion > summary:hover::after { background: var(--plea-crimson-deep); }
.aasd-prose details.accordion > summary:focus-visible { outline: 2px solid var(--plea-paper); outline-offset: 3px; }
.aasd-prose .accordion-body { padding: 0 0 28px; }

/* ---- Footer ---------------------------------------------------------------- */
/* The theme hides its footer chorus on mobile; AASD's footer is name + contact, so keep it */
.aasd-footer {
  z-index: 9; /* above the theme's fixed bottom shade so the footer stays readable */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.aasd-footer p { margin: 0; }
.aasd-footer .plea-footer__we {
  color: var(--plea-paper-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.aasd-footer__link a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plea-paper);
  text-decoration: underline;
  text-decoration-color: var(--plea-crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.aasd-footer__link a:focus-visible { outline: 2px solid var(--plea-paper); outline-offset: 3px; }
@media (min-width: 960px) {
  .aasd-footer { flex-direction: row; align-items: center; padding-top: 12px; padding-bottom: 12px; }
}
