/* Single-page build only. Kept in a stylesheet rather than an inline <style>
   block so the Content-Security-Policy can use style-src 'self'. */

/* html already sets scroll-padding-top: 96px for the sticky header; adding scroll
   margin on top double-offset every jump and left a dead band under the header. */
.single-section { scroll-margin-top: 0; }
/* Long in-page jumps should land immediately, not animate through 50,000px. */
html.single-page-doc { scroll-behavior: auto; }
/* Page heroes were built to clear a standalone header; as in-page sections they only
   need a short lead-in. The h1 base rule is mirrored for h2, since one page keeps one h1. */
.single-page .single-section .page-hero { padding-top: clamp(34px, 4.5vw, 62px); }
.single-page .single-section.section { padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(52px, 6vw, 84px); }
.single-page .page-hero h2 { font-family: var(--display); font-size: clamp(32px, 3.9vw, 52px); font-weight: 300; line-height: 1.05; letter-spacing: -0.042em; color: #f2f8fc; text-wrap: balance; }
.single-page .page-hero h2 em { font-style: normal; background: linear-gradient(100deg, var(--accent-bright), var(--accent) 48%, #8fb3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.single-docs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 28px; padding-top: 26px; margin-bottom: 6px; border-top: 1px solid var(--line); }
.single-docs__head .section-title { margin: 4px 0 0; }
.single-docs__head p { max-width: 40ch; }
.single-doc { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 17, 25, 0.6); }
.single-doc > summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 18px 22px; cursor: pointer; list-style: none; }
.single-doc > summary::-webkit-details-marker { display: none; }
.single-doc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 16px; }
.single-doc__kind { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.single-doc__title { font-family: var(--display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; line-height: 1.3; color: var(--text); }
.single-doc__title em { font-style: normal; color: var(--accent-bright); }
.single-doc__lede { grid-column: 1 / -1; margin: 2px 0 0; max-width: 78ch; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.single-doc__meta { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.single-doc__meta span { margin-right: 14px; }
.single-doc > summary::after { content: "+"; grid-column: 2; grid-row: 2; justify-self: end; align-self: center; font-size: 24px; line-height: 1; color: var(--accent); }
.single-doc[open] > summary::after { content: "−"; }
.single-doc[open] > summary { border-bottom: 1px solid var(--line); }
.single-doc__body { padding: 10px 22px 28px; }
.single-doc__body .container { width: auto; max-width: none; padding-inline: 0; }
.single-doc .article-layout, .single-doc .legal-layout { padding-top: 18px; }
@media (max-width: 700px) {
  .single-doc > summary { padding: 16px; }
  .single-doc__body { padding: 8px 16px 22px; }
  .single-doc__title { font-size: 18px; }
}
