/* =====================================================================
   APS · V4 law-firm pages
   templates/lawfirms/hub.html (/law-firms/), detail.html (practice, platform and
   South Florida pages) and platforms_hub.html (/platforms/).
   Loaded after v4.css and v4-services.css (detail) or v4-industries.css (hubs).
   Only what those files lack; v4 tokens only, no new hex.
   ===================================================================== */

/* ---------- Breadcrumb: the live .crumb look on a semantic list ---------- */
.crumbs { margin-bottom: 26px; font-size: 14px; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: color .2s, border-color .2s; }
.crumbs a:hover { color: var(--ink); border-color: var(--gold); }
.crumbs a:active { color: var(--gold-dk); }
.crumbs [aria-current="page"] { color: var(--ink-3); }

/* ---------- Hero ---------- */
/* A little tighter than the live service hero (H1 ≤ 72px), so the answer paragraph and the
   booking button still sit above the fold at 1280 × 800. */
.lf-page .svc-hero, .lf-page .idx-hero { padding-top: clamp(32px, 4vw, 56px); }
.lf-page .svc-hero h1, .lf-page .idx-hero h1 { font-size: clamp(42px, 4.8vw, 72px); line-height: 1; }
.lf-hero .lead { margin-top: 22px; }
.lf-hero .pg-answer:not(.lead) { margin-top: var(--s3); max-width: 40em; font-size: 16px; line-height: 1.62; color: var(--ink-2); }
.lf-hero .page-actions { margin-top: var(--s5); }
.cta-micro { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.g-ink .cta-micro, .g-brown .cta-micro { color: var(--on-dark-2); }
.lf-page .svc-hero .plate-fig .ph { aspect-ratio: 4 / 5; max-height: 680px; }
.lf-hero-plate .ph { aspect-ratio: 5 / 4; }
.lf-hero .plate-fig figcaption { flex-direction: column; gap: 4px; }
.lf-hub-facts { max-width: 960px; }

/* ---------- Fit / not a fit ---------- */
.lf-fit-cols h3 { padding-bottom: var(--s3); border-bottom: 2px solid var(--gold-dk); margin-bottom: 0; }
.lf-fit-cols .is-not h3 { border-bottom-color: var(--ink-3); }
.lf-fit-cols .plain li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s2); font-size: 16px; }
.lf-fit-cols .plain li:first-child { border-top: 0; }
.lf-fit-cols .plain li::before { font: 600 16px/1.55 var(--text); }
.lf-fit-cols .is-for li::before { content: "✓"; color: var(--gold-dk); }
.lf-fit-cols .is-not li::before { content: "–"; color: var(--ink-3); }

/* ---------- Task table: task → what happens → who approves ---------- */
.task-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.task-table thead th { padding: 0 var(--s4) 14px 0; border-bottom: 2px solid var(--ink); text-align: left; font: 600 13px/1.3 var(--text); letter-spacing: .02em; color: var(--ink-3); }
.task-table thead th:first-child, .task-table tbody th, .task-table tbody td:first-child { padding-left: 12px; }
.task-table tbody th, .task-table tbody td { padding: 22px var(--s4) 22px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; text-align: left; }
.task-table tbody th { width: 28%; font: 600 clamp(20px, 1.6vw, 23px)/1.25 var(--display); color: var(--ink); }
.task-table tbody td { color: var(--ink-2); }
.task-table tbody td:last-child { width: 30%; color: var(--ink); }
.task-table tbody tr { transition: background-color .2s var(--ease); }
.task-table tbody tr:hover { background: var(--stone); }
.g-stone .task-table tbody tr:hover { background: var(--cream); }
.task-table th a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.task-table th a:hover { color: var(--gold-dk); }
.task-table th a:active { color: var(--brown); }

/* ---------- Detail body: founder + "works with" card beside the article ---------- */
.lf-founder { display: flex; align-items: center; gap: var(--s3); margin: 0; }
.lf-founder img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: sepia(.2); box-shadow: 0 0 0 1px var(--gold); }
.lf-founder b { display: block; font: 600 22px/1.15 var(--display); color: var(--ink); }
.lf-founder span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.lf-card-line { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); font: italic 500 20px/1.35 var(--display); color: var(--ink); }
.lf-card .fine { margin-top: var(--s3); line-height: 1.5; }
.pg-tools { margin-top: var(--s5); padding-top: var(--s4); border-top: 2px solid var(--ink); }
.pg-tools .label { margin-bottom: 0; }
.lf-tools { margin-bottom: 0; }
.lf-tools li { padding: 10px 0; }

/* ---------- How it works + prices on the ink wall ---------- */
/* Four steps instead of the live three: a smaller step title so "Workflow Diagnostic" fits. */
.lf-page .a1-body h3 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.05; }
.lf-cost { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) clamp(40px, 6vw, 112px); margin-top: clamp(56px, 6vw, 88px); padding-top: var(--s5); border-top: 1px solid var(--rule-dark-2); }
.lf-cost h3 { font-size: clamp(27px, 2.2vw, 34px); margin-bottom: var(--s3); }
.lf-prices > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4px var(--s4); padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; }
.lf-prices > div:last-child { border-bottom: 1px solid var(--rule); }
.lf-prices dt { font-weight: 600; color: var(--ink); }
.lf-prices dd { margin: 0; color: var(--ink-2); }
.lf-prices dd b { color: var(--ink); font-variant-numeric: lining-nums; }
.lf-price > .link { display: inline-block; margin-top: var(--s4); }
.lf-keep .fine { margin-top: var(--s3); line-height: 1.5; }
.g-ink .lf-prices > div { border-color: var(--rule-dark); }
.g-ink .lf-prices dt { color: var(--on-dark); }
.g-ink .lf-prices dd { color: var(--on-dark-2); }
.g-ink .lf-prices dd b { color: var(--gold-lt); }
.g-ink .lf-keep .plain li { border-color: var(--rule-dark); color: var(--on-dark-2); }
.g-ink .a1-body h3, .g-ink .lf-cost h3 { color: var(--on-dark); }

/* ---------- Related + footer link ---------- */
.svc-foot { margin-top: var(--s5); }
.related li a:active b { color: var(--brown); }
.related li a:focus-visible { outline-offset: 4px; }

/* =====================================================================
   HUB (/law-firms/)
   ===================================================================== */
.lf-lead { counter-reset: none; }
.lf-lead .tag { margin-bottom: var(--s3); }
.lf-lead .go:active { color: var(--gold-dk); }
.lf-lead h3 a:active { color: var(--gold-dk); }
.lf-lead h3 a:focus-visible { outline-offset: 4px; }

.lf-other { margin-top: clamp(64px, 7vw, 104px); }
.lf-note { margin-top: var(--s4); font-size: 15px; color: var(--ink-2); }

/* South Florida + Platforms: two ruled link blocks closing the section */
.lf-also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s6); margin-top: clamp(56px, 6vw, 88px); }
.lf-also a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s3); align-items: baseline; padding: var(--s4) 0 var(--s3); border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: border-color .25s var(--ease); }
.lf-also b { font: 600 clamp(24px, 2vw, 30px)/1.15 var(--display); transition: color .2s; }
.lf-also span { grid-column: 1; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.lf-also i { grid-row: 1; grid-column: 2; font-size: 20px; color: var(--gold-dk); transition: transform .3s var(--ease); }
.lf-also a:hover { border-color: var(--gold-dk); }
.lf-also a:hover b { color: var(--gold-dk); }
.lf-also a:active b { color: var(--brown); }
.lf-also a:focus-visible { outline-offset: 4px; }
@media (hover: hover) { .lf-also a:hover i { transform: translateX(4px); } }

/* Empty state (no practice or platform pages published) */
.lf-empty { max-width: 44em; padding: var(--s5) 0; border-top: 1px solid var(--rule-strong); }
.lf-empty h3 { font-size: clamp(27px, 2.2vw, 34px); }
.lf-empty .lead, .lf-empty p { margin-top: var(--s3); color: var(--ink-2); }
.lf-empty .page-actions { margin-top: var(--s4); }

/* "Who builds it" strip: a sentence, not a number, so a smaller display size */
.real-strip .lf-strip-h { font: 600 clamp(38px, 4.2vw, 64px)/1.02 var(--display); color: var(--on-dark); max-width: 14em; }
.real-strip .inner p + p { margin-top: var(--s3); }

/* =====================================================================
   PLATFORMS HUB (/platforms/)
   ===================================================================== */
.lf-prose p { color: var(--ink-2); max-width: 38em; }
.lf-prose p + p { margin-top: var(--s3); }
.g-ink .lf-prose p { color: var(--on-dark-2); }
.lf-own .st-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-own-note { margin-top: var(--s4); padding-top: var(--s4); border-top: 2px solid var(--ink); max-width: 40em; font-size: 16px; color: var(--ink-2); }
.lf-own-note .link { white-space: nowrap; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .lf-cost { grid-template-columns: 1fr; }
  .lf-page .svc-hero .plate-fig .ph { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .lf-hero .lead { margin-top: var(--s3); }
  .lf-hero .page-actions { margin-top: var(--s4); }
  .lf-also { grid-template-columns: 1fr; gap: 0; }
  .lf-also a { border-top-width: 1px; }
  .lf-also a:last-child { border-bottom: 1px solid var(--rule-strong); }
  .lf-prices > div { grid-template-columns: 1fr; }
  .lf-own .st-list { grid-template-columns: 1fr; }
  .lf-own-note .link { white-space: normal; }
  .crumbs a { display: inline-block; padding-block: 7px; margin-block: -7px; }

  /* Task table: one ruled block per row, each cell labelled from its column header */
  .task-table, .task-table tbody, .task-table tr, .task-table th, .task-table td { display: block; width: auto; }
  .task-table thead { display: none; }
  .task-table tbody { border-top: 2px solid var(--ink); }
  .task-table tbody tr { padding: 18px 0; border-bottom: 1px solid var(--rule-strong); }
  .task-table tbody tr:hover { background: transparent; }
  .task-table tbody th, .task-table tbody td, .task-table tbody td:first-child, .task-table tbody td:last-child { width: auto; padding: 0; border: 0; }
  .task-table tbody th { font-size: 22px; }
  .task-table tbody td { margin-top: 10px; font-size: 15px; }
  .task-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 12.5px/1.3 var(--text); letter-spacing: .02em; color: var(--gold-dk); }
}
