/* =============================================================
   Ben's Gunsmithing — Policies page
   Long scannable document: Bitter headings, Source Sans body,
   no card grid. FAQ at the bottom as <details> disclosures.
   Loaded after site.css.
   ============================================================= */

/* Three-part grid: intro paragraph, on-page section nav, policy sections.
   Mobile-first single column (nav sits under the intro as an inline link
   row); at 1024px+ the nav moves into a sticky right-hand rail. */
.policy-doc {
  max-width: 980px;
  display: grid;
  grid-template-areas:
    "intro"
    "nav"
    "sections";
  gap: var(--s-lg);
}
.policy-intro { grid-area: intro; }
.policy-nav { grid-area: nav; }
.policy-sections { grid-area: sections; }

.policy-intro__text {
  font-size: 1.25rem; /* one step above --fs-body; no token between body/title */
  color: var(--charcoal-light);
  max-width: 65ch;
  margin: 0;
}

/* Section nav — inline wrapping link row (mobile/tablet default) */
.policy-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-lg);
  row-gap: var(--s-sm);
}
.policy-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--green);
}

/* Keep jumped-to headings clear of the 69px sticky site header. */
.policy-section[id],
#faq { scroll-margin-top: 96px; }

/* Desktop: nav becomes a sticky vertical rail beside the document. */
@media (min-width: 1024px) {
  .policy-doc {
    grid-template-areas:
      "intro    nav"
      "sections nav";
    grid-template-columns: 1fr 220px;
    gap: var(--s-2xl);
  }
  .policy-nav {
    position: sticky;
    top: 96px; /* clears the sticky site header */
    align-self: start;
  }
  .policy-nav ul {
    display: block;
    border-left: 2px solid var(--cream-dark);
  }
  .policy-nav li + li { margin-top: var(--s-sm); }
  .policy-nav a {
    display: block;
    padding-left: var(--s-md);
  }
}

.policy-section + .policy-section { margin-top: var(--s-2xl); }

.policy-section > h2 {
  font-size: var(--fs-title);
  color: var(--brown-dark);
  padding-bottom: var(--s-xs);
  border-bottom: 2px solid var(--brown);
}
.policy-section > p,
.policy-section > .policy-list { margin-top: var(--s-md); }
.policy-section > p { max-width: 70ch; }

/* Plain marked list — olive dash marker, not a SaaS check grid. */
.policy-list { list-style: none; max-width: 70ch; }
.policy-list > li {
  position: relative;
  padding-left: var(--s-lg);
  margin-top: var(--s-sm);
}
.policy-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background-color: var(--green);
}
.policy-list strong { color: var(--brown-dark); }

/* FAQ disclosures */
.faq-block { margin-top: var(--s-3xl); }
.faq-block > h2 {
  font-size: var(--fs-headline);
  margin-bottom: var(--s-lg);
}
.faq {
  border-top: 1px solid var(--cream-dark);
}
.faq:last-of-type { border-bottom: 1px solid var(--cream-dark); }
.faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  color: var(--brown-dark);
  padding: var(--s-md) var(--s-xl) var(--s-md) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
/* +/- indicator */
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--green);
  font-size: 1.4em;
  line-height: 1;
}
.faq[open] .faq__q::after { content: "\2013"; } /* en dash = minus */
.faq__a {
  padding: 0 0 var(--s-md);
  max-width: 70ch;
  color: var(--charcoal-light);
}
.faq__a > * + * { margin-top: var(--s-sm); }
