/* content-blocks.css — the CMS trust / offer / lead-capture blocks (content-templates,
   17 Oct 2026; includes/content-blocks.php, site/content_blocks.py) and the pages
   built on them (/case-studies/, /pricing/, the legal drafts). Every block renders
   nothing while the CMS has nothing published for it, so none of these rules ever
   style an empty box. Tokens only (clay.css) → both themes; the same composition at
   every size (columns reflow, nothing is swapped); no motion of its own (the shared
   data-rise reveal honours prefers-reduced-motion).
   Design compare: html[data-v-trust-blocks="a"] = the pages without these blocks. */

html[data-v-trust-blocks="a"] .cb,
html[data-v-trust-blocks="a"] .svc-hero__promise { display: none !important; }

/* ── shared ─────────────────────────────────────────────────────────────── */
.cb__head { margin-bottom: clamp(26px, 3vw, 40px); }
.cb__more { margin-top: clamp(22px, 2.6vw, 32px); }
.cb h3 { overflow-wrap: break-word; }

/* hub service bullets → service pages (site/hub_links.py) */
.svc-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--bronze-rgb), .55); text-underline-offset: 3px;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
.svc-link:hover, .svc-link:focus-visible { color: var(--bronze-deep); text-decoration-color: currentColor; }
/* consistency 17 Oct: Family Office orbit bullets underlined like the other hubs' service links (.svc-link) */
a.orbit__bul { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(var(--bronze-rgb), .55); }
a.orbit__bul:hover, a.orbit__bul:focus-visible { text-decoration-color: currentColor; }

/* the response promise on the service / persona first screen */
.svc-hero__promise { margin-top: 16px; }

/* ── credentials strip ──────────────────────────────────────────────────── */
.cb-cred { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px clamp(24px, 3vw, 48px); align-items: baseline; }
.cb-cred__list { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 0; }
.cb-cred__item { padding: 2px clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); min-width: 0; }
.cb-cred__item:first-child { border-left: 0; padding-left: 0; }
.cb-cred__k { font: 500 var(--fs-label, 12px)/1.6 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.cb-cred__v { margin: 4px 0 0; font: 400 15px/1.5 Inter, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.cb-cred__by { margin: 2px 0 0; font: 400 12.5px/1.5 Inter, sans-serif; color: var(--ink-soft); }
@media (max-width: 760px) {
  .cb-cred { grid-template-columns: minmax(0, 1fr); }
  .cb-cred__item { flex: 1 1 100%; border-left: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .cb-cred__item:first-child { padding-top: 0; border-top: 0; }
}

/* ── how we work ────────────────────────────────────────────────────────── */
.cb-steps { gap: clamp(22px, 3vw, 40px); }
.cb-step { border-top: 1px solid var(--line); padding-top: 22px; }
.cb-step__t { margin-top: 14px; font-size: 1.3125rem; line-height: 1.25; font-weight: 400; }
.cb-step .small { margin-top: 10px; }

/* ── packages ───────────────────────────────────────────────────────────── */
.cb-pkgs { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cb-pkgs--1 { max-width: 560px; }
.cb-pkg { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cb-pkg__for { margin-bottom: 10px; }
.cb-pkg__name { font-size: clamp(1.375rem, 1.8vw, 1.75rem); }
.cb-pkg__price { margin-top: 14px; font: 300 clamp(1.875rem, 2.6vw, 2.5rem)/1.1 Newsreader, Georgia, serif; color: var(--ink); }
.cb-pkg__price b { font-weight: 400; }
.cb-pkg__from { font: 500 var(--fs-label, 12px)/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); vertical-align: middle; }
.cb-pkg__turn { display: flex; gap: 8px; align-items: center; margin-top: 10px; font: 400 13.5px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.cb-pkg__turn svg { color: var(--bronze-deep); flex: 0 0 auto; }
.cb-pkg__inc { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cb-pkg__inc li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font: 400 14px/1.55 Inter, sans-serif; color: var(--ink-muted); }
.cb-pkg__inc svg { margin-top: 3px; color: var(--bronze-deep); }
.cb-pkg__cta { margin-top: auto; align-self: flex-start; }
.cb-pkg__inc + .cb-pkg__cta, .cb-pkg__turn + .cb-pkg__cta, .cb-pkg__price + .cb-pkg__cta { margin-top: 26px; }
@media (max-width: 520px) { .cb-pkg__cta { align-self: stretch; justify-content: center; } }

/* ── guarantees ─────────────────────────────────────────────────────────── */
.cb-guas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px) clamp(24px, 3.4vw, 56px); }
.cb-gua { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; border-top: 1px solid var(--line); padding-top: 20px; }
.cb-gua__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bronze-deep);
  background: var(--ground-flat); box-shadow: var(--clay-sm); }
.cb-gua__t { font-size: 1.1875rem; line-height: 1.3; font-weight: 400; }
.cb-gua .small { margin-top: 6px; }
@media (max-width: 760px) { .cb-guas { grid-template-columns: minmax(0, 1fr); } }

/* ── comparison ─────────────────────────────────────────────────────────── */
.cb-cmp-wrap { padding: clamp(8px, 1.4vw, 18px) clamp(14px, 2.2vw, 30px); }
.cb-cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 14.5px/1.55 Inter, sans-serif; color: var(--ink-muted); }
.cb-cmp th, .cb-cmp td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cb-cmp tbody tr:last-child th, .cb-cmp tbody tr:last-child td { border-bottom: 0; }
.cb-cmp thead th { font: 500 var(--fs-label, 12px)/1.5 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.cb-cmp tbody th { font-weight: 500; color: var(--ink); }
.cb-cmp .cb-cmp__us { color: var(--ink); }
.cb-cmp thead .cb-cmp__us { color: var(--bronze-deep); }
@media (max-width: 520px) { .cb-cmp { font-size: 13px; } .cb-cmp th, .cb-cmp td { padding: 12px 6px; } }

/* ── case studies (cards) ───────────────────────────────────────────────── */
.cb-cases { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cb-case { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cb-case:hover { box-shadow: var(--clay-hover); }
.cb-case__t { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.22; }
.cb-case__t a { color: inherit; text-decoration: none; }
.cb-case__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cb-case__t a:focus-visible { outline: none; }
.cb-case:has(.cb-case__t a:focus-visible) { outline: 2px solid var(--bronze-bright); outline-offset: 3px; }
.cb-case__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cb-case__ms { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-case__m { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--ground-sink); font: 400 12.5px/1.4 Inter, sans-serif; color: var(--ink-soft); }
.cb-case__m b { font: 400 16px/1 Newsreader, Georgia, serif; color: var(--bronze-deep); }
.cb-case__go { margin-top: auto; padding-top: 6px; }
.cb-case__logo { max-height: 40px; max-width: 160px; width: auto; height: auto; object-fit: contain; align-self: flex-start; }

/* ── lead magnets ───────────────────────────────────────────────────────── */
.cb-mags { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cb-mag { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-mag__t { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.22; }
.cb-mag__open { align-self: flex-start; margin-top: 6px; }
.cb-mag__form { display: grid; gap: 16px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.cb-mag__form[hidden] { display: none; }
.cb-mag__form .btn[type="submit"] { justify-self: start; }
.cb-mag__msg { font: 400 14px/1.6 Inter, sans-serif; color: var(--ink); }
.cb-mag__msg a { color: var(--bronze-deep); }
.cb-mag__msg[data-state="error"] { color: #9d3a2a; }
html[data-theme="blue"] .cb-mag__msg[data-state="error"] { color: #a33b2c; }
@media (max-width: 520px) { .cb-mag__open, .cb-mag__form .btn[type="submit"] { justify-self: stretch; align-self: stretch; justify-content: center; } }

/* ── /case-studies/<slug>/ ──────────────────────────────────────────────── */
.cs-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cs-sec + .cs-sec { margin-top: clamp(30px, 3.4vw, 44px); }
.cs-sec h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.cs-sec p { margin-top: 12px; max-width: 64ch; }
.cs-quote { margin: clamp(30px, 3.4vw, 44px) 0 0; padding-left: 22px; border-left: 2px solid var(--bronze); }
.cs-quote p { font: 300 clamp(1.25rem, 1.8vw, 1.625rem)/1.4 Newsreader, Georgia, serif; color: var(--ink); }
.cs-quote footer { margin-top: 10px; font: 400 13.5px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.cs-aside { position: sticky; top: calc(var(--head-h) + 24px); }
.cs-aside dl { margin: 14px 0 0; border-top: 1px solid var(--line); }
.cs-aside dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cs-aside dt { font: 500 var(--fs-label, 12px)/1.6 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.cs-aside dd { margin: 4px 0 0; font: 400 14.5px/1.5 Inter, sans-serif; color: var(--ink); }
.cs-aside dd a { color: inherit; }
.cs-metrics { display: grid; gap: 14px; margin-top: 18px; }
.cs-metric b { display: block; font: 300 clamp(2rem, 3vw, 2.75rem)/1 Newsreader, Georgia, serif; color: var(--bronze-deep); }
.cs-metric span { display: block; margin-top: 4px; font: 400 13px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.cs-src { margin-top: 18px; font: 400 12.5px/1.6 Inter, sans-serif; color: var(--ink-faint); }
.cs-src a { color: inherit; }
@media (max-width: 1000px) {
  .cs-detail { grid-template-columns: minmax(0, 1fr); }
  .cs-aside { position: static; max-width: 640px; }
}

/* ── listing filters (/case-studies/) ───────────────────────────────────── */
.cs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(22px, 2.6vw, 30px); padding-bottom: 10px; }
.cs-filter a { padding: 7px 16px; border-radius: var(--r-pill); font: 500 13px/1.4 Inter, sans-serif; color: var(--ink-muted);
  text-decoration: none; background: var(--ground-flat); box-shadow: var(--clay-sm); }
.cs-filter a[aria-current="true"] { color: var(--cream); background: var(--dark); box-shadow: none; }

/* ── legal drafts (compliance calendar, glossary) ───────────────────────── */
.draft-banner { position: relative; z-index: 2; margin: 0 0 clamp(18px, 2vw, 26px); padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(var(--bronze-rgb), .16); border: 1px solid rgba(var(--bronze-rgb), .5); font: 500 13.5px/1.55 Inter, sans-serif; color: var(--ink); }
.draft-banner b { color: var(--bronze-deep); }
.legal-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 14px/1.55 Inter, sans-serif; color: var(--ink-muted); }
.legal-table th, .legal-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal-table thead th { font: 500 var(--fs-label, 12px)/1.5 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.legal-table td:first-child { color: var(--ink); font-weight: 500; }
.legal-table .src { font-size: 12.5px; }
.legal-table .src a { color: var(--bronze-deep); }
.legal-group + .legal-group { margin-top: clamp(36px, 4vw, 56px); }
.legal-group h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }
.legal-note { margin-top: 10px; font: 400 13px/1.6 Inter, sans-serif; color: var(--ink-soft); max-width: 72ch; }
.gloss { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.gloss > div { padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.gloss dt { font: 400 1.25rem/1.25 Newsreader, Georgia, serif; color: var(--ink); }
.gloss dt small { font: 400 12.5px/1.4 Inter, sans-serif; color: var(--ink-soft); margin-left: 6px; }
.gloss dd { margin: 8px 0 0; font: 400 14.5px/1.65 Inter, sans-serif; color: var(--ink-muted); }
.gloss .src { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }
.gloss .src a { color: var(--bronze-deep); }
@media (max-width: 760px) {
  .gloss { grid-template-columns: minmax(0, 1fr); }
  /* the calendar table becomes one labelled card per filing (same content, no squeezed columns) */
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table colgroup, .legal-table thead { display: none; }
  .legal-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: 0; }
  .legal-table td { border: 0; padding: 3px 0; }
  .legal-table td::before { content: attr(data-label); display: block; font: 500 var(--fs-label, 12px)/1.6 Inter, sans-serif; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-faint); }
  .legal-table td:first-child::before { display: none; }
  .legal-table td:first-child { font-size: 15px; }
}
