/* adreader content pages (guides, FAQ, glossary, security, contact, legal). Builds on style.css; no scripts. */
.doc-hero { position: relative; padding: 48px 0 36px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 18em; }
.doc-hero .sub { max-width: 42em; }
.doc-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--soft); }

.doc { padding-top: 48px; padding-bottom: 24px; }
.doc.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--primary); }

.prose { max-width: 760px; color: var(--soft); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.2; color: var(--text); scroll-margin-top: 96px; }
.prose h3 { margin-top: 32px; font-size: 20px; line-height: 1.3; color: var(--text); letter-spacing: -.01em; scroll-margin-top: 96px; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--line2); }
.prose code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prose td:first-child { color: var(--text); white-space: nowrap; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--primary); background: var(--surface); border-radius: 12px; padding: 16px 20px; }
.callout b:first-child { display: block; margin-bottom: 4px; }
.callout.note { border-left-color: var(--accent); }
.tldr { border: 1px solid rgba(255, 107, 0, .35); background: rgba(255, 107, 0, .06); border-radius: 14px; padding: 18px 22px; }
.tldr p:first-child { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.tldr ul { margin-top: 6px; }
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 !important; list-style: none; }
.signs li { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; line-height: 1.55; }
.signs li b { display: block; margin-bottom: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq h2 { margin-top: 40px; margin-bottom: 4px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; color: var(--text); font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--soft); font-size: 16px; line-height: 1.7; }
.faq details > div > * + * { margin-top: 10px; }

/* glossary */
.glossary { display: grid; gap: 0; }
.glossary dt { margin-top: 26px; color: var(--text); font-weight: 600; font-size: 18px; scroll-margin-top: 96px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 6px 0 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.az { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; list-style: none; }
.az a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--soft); font-size: 14px; }
.az a:hover { border-color: var(--primary); color: var(--text); }

/* guide cards (guides page, related guides) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.gcard:hover { border-color: rgba(255, 107, 0, .6); transform: translateY(-2px); }
.gcard .gk { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.gcard b { color: var(--text); font-size: 18px; line-height: 1.3; }
.gcard span:not(.gk) { color: var(--muted); font-size: 15px; line-height: 1.55; }
.gcard em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 14px; color: var(--link); }
.prose .cards { max-width: none; }

.related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 24px; margin-bottom: 18px; }
.doc-cta { margin: 56px 0 96px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, rgba(255, 107, 0, .10), var(--surface) 55%); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.doc-cta b { color: var(--text); font-size: 20px; }
.doc-cta p { margin-top: 6px; color: var(--soft); max-width: 38em; }

@media (max-width: 1040px) {
  .doc.with-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 620px) {
  .doc-hero { padding: 32px 0 28px; }
  .doc { padding-top: 32px; }
  .prose { font-size: 16.5px; }
  .signs { grid-template-columns: 1fr; }
  .prose td:first-child { white-space: normal; }
  .doc-cta { margin-bottom: 64px; padding: 22px; }
}
/* a screenshot from a scan inside a guide (2026-12-02): phone shots stay phone-sized */
.prose figure.shot { margin: 28px 0; }
.prose figure.shot img { display: block; width: 100%; max-width: 320px; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose figure.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 520px; }
.prose.wide { max-width: none; }
.prose.wide > p, .prose.wide > h2 { max-width: 760px; }
