/* ══ Policy pages and the Documents index (built by scripts/build-docs.js) ═══════════════════════
   Official and easy to read: a breadcrumb, a large title and one quiet line of dates; the contents
   pinned beside the text on a desktop; a reading column about 70 characters wide; numbers carried
   in the headings, the way contracts are written. Prints as a clean document with a letterhead. */
.dc { background: var(--surface, #fff); }

/* ── Header ── */
.dc-head { padding: clamp(22px, 3.2vw, 40px) 0 clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--border, #e5e7eb); }
.dc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: .9rem; color: var(--muted, #6b7280); }
.dc-crumb a { color: var(--brand, #7851a9); font-weight: 500; text-decoration: none; }
.dc-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dc-crumb span[aria-hidden] { color: var(--muted, #9ca3af); font-size: 1.05em; }
.dc-crumb span[aria-current] { color: var(--text, #1a1a1a); }
.dc-title { margin: 12px 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600 !important; line-height: 1.04; letter-spacing: -.045em !important; color: var(--black, #0a0a0a);
  text-wrap: balance; animation: hxRise .9s .05s var(--hx-ease, ease) both; }
.dc-meta { margin: 10px 0 0; font-size: .95rem; color: var(--muted, #6b7280); }
.dc-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.1em; row-gap: 2px; }
.dc-meta span { white-space: nowrap; }
/* Space between the parts, no dot: Billy reads a dot separator as machine-made. */
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dc-actions button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text, #1a1a1a);
  font: 500 .9rem/1.2 var(--font, 'Poppins', sans-serif); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.dc-actions button:hover { background: var(--ink-fill, #0a0a0a); border-color: var(--ink-fill, #0a0a0a); color: #fff; }
.dc-archived { margin-top: 22px; padding: 14px 18px; border-left: 3px solid #d97706; background: #fffbeb; border-radius: 0 12px 12px 0; color: #78350f; }
.dc-archived p { margin: 0; line-height: 1.55; }
.dc-archived a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Contents beside the text ── */
.dc-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(70px, 9vw, 120px); }
.dc-side { position: sticky; top: calc(var(--hx-nav, 64px) + 24px); max-height: calc(100vh - var(--hx-nav, 64px) - 48px); overflow-y: auto; scrollbar-width: thin; transition: top .3s; }
.dc-toc summary { list-style: none; font-size: .82rem; font-weight: 600; color: var(--muted, #6b7280); margin-bottom: 10px; cursor: default; }
.dc-toc summary::-webkit-details-marker { display: none; }
.dc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border, #e5e7eb); }
.dc-toc ol a { display: flex; gap: 8px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted, #6b7280); text-decoration: none; font-size: .9rem; line-height: 1.35;
  transition: color .2s, border-color .2s; }
.dc-toc ol a span { font-variant-numeric: tabular-nums; min-width: 1.4em; }
.dc-toc ol a:hover { color: var(--text, #1a1a1a); }
.dc-toc ol a.is-on { color: var(--text, #1a1a1a); font-weight: 500; border-left-color: var(--brand, #7851a9); }
.dc-toc-part { margin: 18px 0 8px; font-size: .92rem; font-weight: 600; }
.dc-toc-part:first-child { margin-top: 0; }
.dc-toc-part a { color: var(--text, #1a1a1a); text-decoration: none; }
.dc-toc-part a.is-on { color: var(--brand, #7851a9); }

/* ── The document ── */
/* Document text: set like a printed agreement, smaller and denser than the marketing pages. */
.dc-doc { max-width: 680px; font-size: 14.5px; line-height: 1.72; color: var(--text, #1a1a1a); }
.dc-doc p, .dc-doc ul, .dc-doc ol, .dc-doc dl { margin: 0 0 1em; }
.dc-doc ul { padding-left: 1.25em; }
.dc-doc li + li { margin-top: .45em; }
.dc-doc li::marker { color: var(--muted, #9ca3af); }
.dc-doc a { color: var(--brand, #7851a9); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dc-doc strong { font-weight: 600; }
.dc-doc code { font-size: .88em; background: #f4f2f8; color: var(--text, #1a1a1a); border-radius: 5px; padding: .1em .35em; overflow-wrap: anywhere; }
.dc-doc > div:not([class]) { margin: 0 0 1em; }
.dc-report { margin-top: 1em; max-width: none; }
.dc-intro { font-size: 1.04em; color: var(--muted, #4b5563); }
.dc-doc h2 { margin: 2.4em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--border, #e5e7eb); font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600 !important; line-height: 1.25;
  letter-spacing: -.025em !important; color: var(--black, #0a0a0a); scroll-margin-top: calc(var(--hx-nav, 64px) + 24px); }
.dc-doc h3 { margin: 1.8em 0 .5em; font-size: 1.08em; font-weight: 600 !important; letter-spacing: -.01em !important; line-height: 1.4; }
.dc-doc h6 { margin: 1.4em 0 .3em; font-size: .95em; font-weight: 600; color: var(--text, #1a1a1a); }
.dc-n { color: var(--brand, #7851a9); font-variant-numeric: tabular-nums; margin-right: .15em; }
.dc-doc .dc-part { margin: 3em 0 .8em; padding-top: 0; border-top: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.04em !important; }
.dc-doc .dc-part:first-of-type { margin-top: 0; }
.dc-doc dl { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); border-top: 1px solid var(--border, #e5e7eb); }
.dc-doc dt, .dc-doc dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.dc-doc dt { font-weight: 600; padding-right: 16px; }
@media (max-width: 560px) { .dc-doc dl { grid-template-columns: minmax(0, 1fr); } .dc-doc dt { border-bottom: 0; padding-bottom: 0; } }

/* A notice: a coloured rule and a bold lead-in, not an icon box. */
.dc-note { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand, #7851a9); color: var(--text, #1a1a1a); }


.dc-related { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--border, #e5e7eb); }
.dc-related-h { font-weight: 600; margin-bottom: .4em !important; }
.dc-related ul { list-style: none; padding: 0; }
.dc-questions { margin-top: 2.4em !important; padding-top: 1.2em; border-top: 1px solid var(--border, #e5e7eb); color: var(--muted, #6b7280); font-size: .95em; }
.dc-doc .hs-form-frame { margin-top: 1em; }

/* Phones: one column, the contents folded into a menu at the top. */
@media (max-width: 900px) {
  .dc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dc-side { position: static; max-height: none; overflow: visible; }
  .dc-toc { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 12px 16px; }
  .dc-toc summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; color: var(--text, #1a1a1a); font-size: .95rem; }
  .dc-toc summary::after { content: "+"; font-weight: 400; color: var(--muted, #6b7280); }
  .dc-toc[open] summary { margin-bottom: 10px; }
  .dc-toc[open] summary::after { content: "\2212"; }
}

/* ── The Documents index ── */
.dc-index-hero .dc-crumb { margin-bottom: 18px; }
/* The index is for finding a document: a smaller title brings the list up into the first screen. */
.dc-index-hero { padding-top: clamp(30px, 5vw, 64px); padding-bottom: 0; }
.dc-index-hero .hx-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.dc-index-hero .hx-lead { margin-top: 14px; }
.dc-index-list { padding: 0 0 clamp(70px, 9vw, 120px); }
.dc-index-list .hx-wrap:first-child .dc-group { margin-top: clamp(18px, 3vw, 34px); }
.dc-index-list .hx-rows a { padding-top: 14px; padding-bottom: 14px; }
.dc-index-list .hx-row-t { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.dc-index-list .hx-row-d { font-size: .9rem; }
.dc-index-list .hx-rows a { row-gap: 4px; }
.dc-index-list .hx-arrow { width: 32px; height: 32px; }
.dc-index-list .hx-rows { margin-top: 22px; }
.dc-group { margin: clamp(30px, 4vw, 50px) 0 6px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600 !important; letter-spacing: -.025em !important; color: var(--black, #0a0a0a); }
.dc-index-list .hx-row-d em { display: block; margin-top: 4px; font-style: normal; font-size: .85em; color: var(--muted, #9ca3af); }
.dc-index-note { margin: clamp(40px, 5vw, 60px) 0 0; color: var(--muted, #6b7280); line-height: 1.7; max-width: 62ch; }
.dc-index-note a { color: var(--brand, #7851a9); text-decoration: underline; text-underline-offset: 3px; }

.dc-print-head { display: none; }
@media (prefers-reduced-motion: reduce) { .dc-title { animation: none; } }

/* ── Print: a clean document on letterhead ── */
@media print {
  @page { margin: 18mm 16mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9pt Poppins, sans-serif; color: #6b7280; } }
  html, body { background: #fff !important; }
  .wb-header, .wb-header-spacer, footer, .dc-crumb, .dc-actions, .dc-side, .dc-questions, .dc-related, .ask-fab, .ask-hello, .ask-panel, .ask-backdrop, #promo-banner, .skip-nav { display: none !important; }
  .dc-print-head { display: flex !important; justify-content: space-between; align-items: baseline; padding: 0 0 10px; margin: 0 0 18px; border-bottom: 1.5px solid #111; font: 10pt Poppins, sans-serif; color: #111; }
  .dc-print-head b { font-size: 13pt; letter-spacing: -.02em; }
  .dc-head { border: 0; padding: 0 0 10px; }
  .dc-title { font-size: 24pt; animation: none; }
  .dc-grid { display: block; padding: 0; }
  .hx-wrap, .hx-indent { max-width: none; padding: 0 !important; }
  .dc-doc { max-width: none; font-size: 10.5pt; line-height: 1.55; }
  .dc-doc h2 { break-after: avoid; page-break-after: avoid; margin-top: 1.6em; }
  .dc-doc h3, .dc-doc h6 { break-after: avoid; }
  .dc-doc p, .dc-doc li { orphans: 3; widows: 3; }
  .dc-doc a { color: inherit; text-decoration: none; }
  .dc-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* ══ Fee Schedule (built by scripts/build-fee-schedule.js): a rate card ════════════════════════ */
.fs-search { margin-top: 26px; max-width: 560px; }
.fs-sec { scroll-margin-top: calc(var(--hx-nav, 64px) + 24px); }
.fs-doc > .fs-sec:not(:first-child) { margin-top: clamp(44px, 6vw, 64px); }
.fs-doc .fs-sec > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.fs-sub { color: var(--muted, #6b7280); }
.fs-sub a, .fs-desc a, .fs-split a { color: var(--brand, #7851a9); }
.fs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 32px; margin-top: 18px; }
.fs-split-h { font-weight: 600; margin: 0 0 8px !important; }
.fs-split ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.fs-split li { position: relative; padding: 5px 0 5px 26px; margin: 0 !important; font-size: .95em; line-height: 1.45; }
.fs-split li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 14px; border-radius: 50%; }
/* Included: a green tick. Costs extra: a purple plus. */
.fs-in li::before { background: #e5f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.fs-out li::before { background: #f1ebf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 4v6M4 7h6' fill='none' stroke='%237851a9' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 560px) { .fs-split { grid-template-columns: minmax(0, 1fr); } }

/* Phones: the sections as a row of links to swipe through, in place of the folded contents. */
.fs-chips { display: none; }
@media (max-width: 900px) {
  .fs .dc-side { display: none; }
  .fs-chips { display: flex; gap: 8px; margin: 18px calc(-1 * var(--hx-gut, 20px)) 0; padding: 0 var(--hx-gut, 20px) 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fs-chips::-webkit-scrollbar { display: none; }
  .fs-chips a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--brand-tint, #f3eefb); color: var(--brand, #6b4896); font-size: .86rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
}

/* A rate card: name and price on one line, the detail under them, the ways to buy it last. */
.fs-rows { margin-top: 16px; border-top: 1.5px solid var(--text, #1a1a1a); }
.fs-row { padding: 18px 0 20px; border-bottom: 1px solid var(--border, #e5e7eb); }
.fs-row[hidden] { display: none; }
.fs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fs-doc .fs-name { margin: 0 !important; font-size: 1.08em; line-height: 1.3; letter-spacing: -.015em !important; }
.fs-price { margin: 0 !important; flex-shrink: 0; text-align: right; line-height: 1.2; white-space: nowrap; }
.fs-price b { font-size: 1.3em; font-weight: 600; letter-spacing: -.03em; color: var(--black, #0a0a0a); font-variant-numeric: tabular-nums; }
.fs-price .fs-per, .fs-price .fs-from { font-size: .82em; color: var(--muted, #6b7280); }
.fs-price sup { margin-left: 2px; font-size: .7em; }
.fs-price sup a { color: var(--muted, #9ca3af); text-decoration: none; padding: 0 1px; }
.fs-price sup a:hover { color: var(--brand, #7851a9); }
.fs-desc { margin: 6px 0 0 !important; max-width: 58ch; color: var(--muted, #4b5563); font-size: .92em; line-height: 1.6; }
.fs-note { margin: 10px 0 0 !important; font-size: .84em; font-weight: 500; color: var(--brand, #7851a9); }
.fs-acts { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
@media (min-width: 561px) {
  /* Wider screens: the buttons sit beside the description instead of on a line of their own. */
  .fs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .fs-top { grid-column: 1 / -1; }
  .fs-desc, .fs-note { grid-column: 1; }
  .fs-acts { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-content: flex-end; margin-top: 0; }
}
.fs-buy { padding: 7px 16px; border-radius: 999px; background: var(--brand-fill, #7851a9); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .86em; transition: transform .25s, background .25s; }
.fs-buy:hover { transform: translateY(-1px); background: #5f3f8a; }
.fs-link { font-size: .88em; font-weight: 500; }
@media (max-width: 560px) {
  /* A long name and a long period ("setup + 12 mo platform") stack instead of squeezing. */
  .fs-top { flex-wrap: wrap; row-gap: 2px; }
}
.fs-none { padding: 18px 0; color: var(--muted, #6b7280); }
.fs-notes ol { padding-left: 1.3em; font-size: .8em; line-height: 1.6; color: var(--muted, #4b5563); }
.fs-notes li { margin-bottom: 6px; }
.fs-notes li { scroll-margin-top: calc(var(--hx-nav, 64px) + 24px); }
.fs-notes li:target { color: var(--text, #1a1a1a); background: var(--brand-tint, #f6f2fc); border-radius: 6px; }
@media print {
  .fs-search, .fs-acts, .fs-none { display: none !important; }
  .fs-row { break-inside: avoid; }
}
