/* ==========================================================================
   ASC Development: shared stylesheet for content pages (trade pages, guides).
   Same tokens as the homepage: black / white / #f5f5f5, DM Sans, dashed rules.
   One file for every content page, so pages stay small and consistent.
   ========================================================================== */
:root {
  --black: #000; --white: #fff; --muted: #f5f5f5; --raised: #ebebeb; --ink: #171717;
  --meta: rgba(0, 0, 0, 0.68); --rule: rgba(0, 0, 0, 0.4);
  --meta-inv: rgba(255, 255, 255, 0.62); --rule-inv: rgba(255, 255, 255, 0.3);
  --wrap: 46rem; --wide: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--muted); color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- header ---------- */
.p-hdr {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; justify-content: space-between;
  height: 4.0625rem; background: var(--black); color: var(--white); border-bottom: 1px dashed var(--rule-inv);
}
.p-logo { display: flex; align-items: center; padding-inline: 1rem; text-decoration: none; font-size: 1.0625rem; letter-spacing: 0.02em; }
@media (min-width: 768px) { .p-logo { padding-inline: 2rem; } }
.p-logo strong { font-weight: 800; }
.p-logo i { font-style: normal; padding-inline: 0.18em; }
.p-nav { display: none; align-items: center; gap: 2.25rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: -0.01em; }
@media (min-width: 900px) { .p-nav { display: flex; } }
.p-nav a { text-decoration: none; opacity: 0.85; }
.p-nav a:hover { opacity: 1; }
.p-book {
  display: flex; align-items: center; padding-inline: 1.25rem; background: var(--white); color: var(--black);
  text-decoration: none; font-size: 0.875rem; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 768px) { .p-book { padding-inline: 2.25rem; font-size: 0.9375rem; } }
.p-book:hover { background: var(--raised); }

/* ---------- hero ---------- */
.p-hero { background: var(--black); color: var(--white); padding: 3.5rem 1rem 4rem; }
@media (min-width: 768px) { .p-hero { padding: 5.5rem 2rem 6rem; } }
.p-hero-in { max-width: var(--wide); margin-inline: auto; }
.p-crumbs { font-size: 0.75rem; text-transform: uppercase; color: var(--meta-inv); margin-bottom: 2.5rem; }
.p-crumbs a { text-decoration: none; }
.p-crumbs a:hover { text-decoration: underline; }
.p-eyebrow { margin: 0 0 1rem; font-size: 0.75rem; text-transform: uppercase; color: var(--meta-inv); }
.p-hero h1 {
  margin: 0; max-width: 16ch; font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 400;
  line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance;
}
.p-answer { margin: 2.25rem 0 0; max-width: 44rem; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.4; }
.p-meta { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--rule-inv); font-size: 0.875rem; color: var(--meta-inv); }

/* ---------- body ---------- */
.p-body { max-width: var(--wrap); margin-inline: auto; padding: 1rem 1rem 3rem; }
@media (min-width: 768px) { .p-body { padding: 2rem 0 4.5rem; } }
.p-body section { padding-block: 2.5rem; border-bottom: 1px dashed var(--rule); }
.p-body section:last-child { border-bottom: 0; }
.p-body h2 { margin: 0 0 1rem; font-size: clamp(1.625rem, 3.4vw, 2.125rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.p-body h3 { margin: 1.75rem 0 0.5rem; font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.p-body p { margin: 0 0 1rem; }
.p-body p:last-child { margin-bottom: 0; }
.p-body ul, .p-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.p-body li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.p-body strong { font-weight: 500; }
.p-body a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.p-table { width: 100%; overflow-x: auto; margin: 1.25rem 0 0; }
.p-table table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.p-table th, .p-table td { text-align: left; vertical-align: top; padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px dashed var(--rule); }
.p-table th { font-size: 0.75rem; font-weight: 400; text-transform: uppercase; color: var(--meta); }
.p-table td:first-child { font-weight: 500; width: 34%; }

/* ---------- FAQ ---------- */
.p-faq { background: var(--raised); padding: 3.5rem 1rem; }
@media (min-width: 768px) { .p-faq { padding: 5rem 2rem; } }
.p-faq-in { max-width: var(--wrap); margin-inline: auto; }
.p-faq h2 { margin: 0 0 1.5rem; font-size: clamp(1.625rem, 3.4vw, 2.125rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.p-faq details { border-top: 1px dashed var(--rule); }
.p-faq details:last-child { border-bottom: 1px dashed var(--rule); }
.p-faq summary { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 500; line-height: 1.25; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; flex: none; font-weight: 400; }
.p-faq details[open] summary::after { content: "\2212"; }
.p-faq details p { margin: 0 0 1.5rem; max-width: 40rem; color: var(--meta); }

/* ---------- related + CTA + footer ---------- */
.p-related { max-width: var(--wrap); margin-inline: auto; padding: 3rem 1rem; }
@media (min-width: 768px) { .p-related { padding: 4rem 0; } }
.p-related h2 { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 400; text-transform: uppercase; color: var(--meta); }
.p-related ul { list-style: none; margin: 0; padding: 0; }
.p-related li { border-top: 1px dashed var(--rule); }
.p-related li:last-child { border-bottom: 1px dashed var(--rule); }
.p-related a { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; text-decoration: none; font-weight: 500; }
.p-related a::after { content: "\2192"; }
.p-related a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.p-related-next { padding-top: 0; }
@media (min-width: 768px) { .p-related-next { padding-top: 0; } }
.p-cta { background: var(--black); color: var(--white); padding: 4rem 1rem; text-align: center; }
@media (min-width: 768px) { .p-cta { padding: 6.5rem 2rem; } }
.p-cta h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2rem, 5vw, 3.4375rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.p-cta p { margin: 1.5rem auto 0; max-width: 34rem; color: var(--meta-inv); }
.p-btn {
  display: inline-block; margin-top: 2.25rem; padding: 1rem 1.75rem; border: 1px dashed var(--rule-inv);
  color: var(--white); text-decoration: none; text-transform: uppercase; font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s;
}
.p-btn:hover { background: var(--white); color: var(--black); }
.p-ftr { background: var(--black); color: var(--meta-inv); border-top: 1px dashed var(--rule-inv); padding: 2rem 1rem; font-size: 0.875rem; }
@media (min-width: 768px) { .p-ftr { padding: 2.25rem 2rem; } }
.p-ftr-in { max-width: var(--wide); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.p-ftr a { text-decoration: none; }
.p-ftr a:hover { color: var(--white); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .p-btn { transition: none; } }
