/* Text pages in the new look (legal, requirements, guides, FAQ, contact): one reading column, the same type as components.css.
   Loaded by Layout::text(); colours only from tokens.css. */
.tpage { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 96px; box-sizing: border-box; }
.tpage-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.tpage-head .h1 { font-size: clamp(36px, 5vw, 56px); }
.tpage-meta { color: var(--subtle); font-size: 14px; margin: 0; }
.tcol { max-width: 760px; }
.prose { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); color: var(--text); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; }
.prose h3 { color: var(--text); font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn-p):not(.btn-s) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-35); }
.prose code { font-family: var(--font-mono); font-size: 14px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* legal: the row of legal pages */
.tnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.tnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-3); color: var(--muted); font-size: 14px; }
.tnav a:hover { color: var(--text); }
.tnav a[aria-current="page"] { color: var(--text); border-color: var(--accent-35); background: var(--accent-12); }
.note { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--border-3); background: var(--surface); color: var(--text-2); margin: 0 0 20px; font-size: 15px; }
.note-ok { border-color: var(--accent-35); }
.note-error { border-color: var(--live); }
.note-wait { border-color: var(--border-strong); }

/* guides: contents on the left, the text on the right */
.doc { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.doc-nav input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--border-3); background: var(--surface); color: var(--text); margin-bottom: 14px; }
.doc-nav input:focus { outline: none; border-color: var(--accent-35); }
.doc-toc, .doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc > li { margin-bottom: 4px; }
.doc-toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 14px; line-height: 1.4; }
.doc-toc a:hover { color: var(--text); background: var(--surface); }
.doc-toc > li > a { color: var(--text-2); font-weight: 600; }
.doc-toc > li > a span { color: var(--accent); margin-right: 8px; font-family: var(--font-mono); font-size: 12px; }
.doc-toc ul a { padding-left: 30px; font-size: 13px; }
.doc-sec { padding-top: 8px; margin-bottom: 40px; border-top: 1px solid var(--border-2); }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
.doc-sec > h2:first-child { margin-top: 24px; }
.doc-main h3 { scroll-margin-top: 88px; }
.doc-anchor { color: var(--faint); margin-right: 6px; font-weight: 400; text-decoration: none; }
.doc-note { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--border-3); background: var(--surface); margin: 16px 0; color: var(--text-2); }
.doc-note.is-warn { border-color: var(--live); }
.doc-note.is-tip { border-color: var(--accent-35); }
.doc-code { overflow-x: auto; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-band); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.fld-help { color: var(--subtle); font-size: 14px; margin: 0; }
@media (max-width: 899px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-nav { position: static; max-height: 46vh; border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 14px; }
}

/* forms (contact) */
.fm { display: grid; gap: 20px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--border-2); background: var(--surface); }
.form { display: grid; gap: 20px; }
.fld { display: grid; gap: 8px; }
.fld label { color: var(--text); font-weight: 600; font-size: 15px; }
.fld input, .fld select, .fld textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--border-3); background: var(--bg); color: var(--text); }
.fld textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-12); }
.fld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.fm button[type="submit"] { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { font-size: 16px; }

/* FAQ groups */
.faq-group { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 48px 0 0; }
.faq-group:first-child { margin-top: 0; }
@media (max-width: 640px) { .tpage { padding-top: 48px; } .fm { padding: 22px; } }
.docs-more { margin-top: 32px; }
/* Classic page: the two price boxes side by side at equal height with their buttons on one line, the text in one block under both */
.cl-split { display: flex; flex-direction: column; gap: 56px; }
.cl-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 24px; }
.cl-plans .plan-btns { margin-top: auto; }
.cl-split .split-copy { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
@media (max-width: 899px) { .cl-plans { grid-template-columns: minmax(0, 1fr); } .cl-split { gap: 40px; } }
.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 64px; }
@media (max-width: 899px) { .ct-split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.ct-split .split-copy { display: flex; flex-direction: column; gap: 20px; }
.ct-h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 0; }
.t-note { margin-top: 32px; color: var(--subtle); font-size: 13px; }

/* FluffCams RTC customer login: two equal login boxes */
.rtc-login { align-items: stretch; }
.rtc-login .fm h2 { margin: 0; }
.rtc-login .fm button[type="submit"] { margin-top: auto; }
.rtc-login-help { margin-top: 32px; }
.rtc-guide { grid-template-rows: auto 1fr auto; padding: 28px; text-decoration: none; }
.rtc-guide h2, .rtc-guide p { margin: 0; }
