/* ══ 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(36px, 6vw, 72px) 0 clamp(26px, 4vw, 44px); 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: 18px 0 0; font-size: clamp(2.3rem, 5vw, 4rem); 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: 16px 0 0; font-size: .95rem; color: var(--muted, #6b7280); }
.dc-meta { display: flex; flex-wrap: wrap; align-items: baseline; }
.dc-meta span { white-space: nowrap; }
/* A dot between the parts on a wide screen; on a phone, where they wrap, space alone, so no line
   starts or ends on a stray dot. */
.dc-meta span + span::before { content: "\00b7"; margin: 0 .5em; opacity: .55; }
@media (max-width: 600px) { .dc-meta { column-gap: 1.1em; row-gap: 2px; } .dc-meta span + span::before { content: none; } }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dc-actions button { padding: 9px 16px; 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(30px, 4vw, 50px); 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 ── */
.dc-doc { max-width: 720px; font-size: clamp(1rem, 1.15vw, 1.06rem); line-height: 1.75; 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.08em; 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.3rem, 2vw, 1.6rem); 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 .dc-part + .dc-short { 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); }

/* The short version */
.dc-short { margin: 0 0 2em; padding: clamp(20px, 2.6vw, 28px); border-radius: 18px; background: var(--brand-tint, #f6f2fc); }
.dc-short-h { margin: 0 0 10px !important; font-weight: 600; font-size: 1.05em; color: var(--black, #0a0a0a); }
.dc-short ul { margin: 0 !important; padding-left: 1.15em; }
.dc-short li::marker { color: var(--brand, #7851a9); }
.dc-short-note { margin: 14px 0 0 !important; font-size: .86em; color: var(--muted, #6b7280); }

.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; }
.dc-index-list { padding: clamp(20px, 3vw, 40px) 0 clamp(70px, 9vw, 120px); }
.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-short { background: none; border: 1px solid #ccc; break-inside: avoid; }
  .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: 0 32px; margin-top: 14px; }
.fs-split-h { font-weight: 600; margin: 0 0 6px !important; padding-bottom: 8px; border-bottom: 1.5px solid var(--text, #1a1a1a); }
.fs-split > div + div .fs-split-h { border-bottom-color: var(--brand, #7851a9); }
.fs-split ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.fs-split li { padding: 9px 0; margin: 0 !important; border-bottom: 1px solid var(--border, #e5e7eb); font-size: .97em; }
@media (max-width: 560px) { .fs-split { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.fs-rows { margin-top: 16px; border-top: 1.5px solid var(--text, #1a1a1a); }
.fs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.fs-row[hidden] { display: none; }
.fs-doc .fs-name { margin: 0 !important; font-size: 1.08em; letter-spacing: -.015em !important; }
.fs-desc { margin: 6px 0 0 !important; color: var(--muted, #4b5563); font-size: .95em; line-height: 1.65; }
.fs-note { margin: 8px 0 0 !important; font-size: .86em; font-weight: 500; color: var(--brand, #7851a9); }
.fs-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fs-price { margin: 0 !important; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.fs-price b { font-size: clamp(1.5rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.035em; color: var(--black, #0a0a0a); font-variant-numeric: tabular-nums; }
.fs-price span { margin-top: 4px; font-size: .84em; color: var(--muted, #6b7280); white-space: nowrap; }
.fs-price sup { margin-left: 3px; font-size: .78em; }
.fs-price .fs-from { margin: 0 0 2px; font-size: .78em; }
.fs-price sup a { color: var(--brand, #7851a9); text-decoration: none; padding: 0 1px; }
.fs-acts { display: flex; align-items: center; gap: 14px; }
.fs-buy { padding: 8px 16px; border-radius: 999px; background: var(--brand-fill, #7851a9); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .88em; transition: transform .25s, background .25s; }
.fs-buy:hover { transform: translateY(-1px); background: #5f3f8a; }
.fs-link { font-size: .9em; font-weight: 500; }
@media (max-width: 560px) {
  .fs-row { grid-template-columns: minmax(0, 1fr); }
  .fs-side { text-align: left; flex-direction: row; align-items: center; justify-content: space-between; }
  .fs-price { align-items: flex-start; }
}
.fs-none { padding: 18px 0; color: var(--muted, #6b7280); }
.fs-notes ol { padding-left: 1.4em; font-size: .93em; color: var(--muted, #4b5563); }
.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; }
}
