body.firm-detail { line-height: 1.85; }
body.firm-detail .firm-breadcrumb { max-width: 1000px; padding: 104px 24px 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
body.firm-detail .firm-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; max-width: 1000px; padding: 30px 24px 28px; }
body.firm-detail .firm-hero-title-row { grid-column: 1; min-width: 0; gap: 18px; }
body.firm-detail .firm-hero-title-row > div { min-width: 0; }
body.firm-detail .firm-hero-name { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; overflow-wrap: anywhere; }
body.firm-detail .firm-hero .firm-logo-lg { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; }
body.firm-detail .firm-hero-summary { grid-column: 1 / -1; max-width: 760px; margin: 0; font-size: 16px; line-height: 1.85; color: var(--text-secondary); overflow-wrap: anywhere; }
body.firm-detail .firm-hero-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; max-width: 760px; color: var(--text-tertiary); font-size: 13px; line-height: 1.8; }
body.firm-detail .firm-hero-meta .tax-scope { margin: 0; font-size: 13px; line-height: 1.8; }
body.firm-detail .firm-hero-badges { grid-column: 1 / -1; align-items: center; gap: 8px; margin: 0; }
body.firm-detail .firm-hero-badges .tax-badges { gap: 6px; }
body.firm-detail .firm-hero-badges .tax-badge { color: var(--gray-600) !important; border-color: var(--gray-200) !important; background: var(--gray-50) !important; border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
body.firm-detail .firm-hero-actions { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; margin: 0; }
body.firm-detail .firm-hero-actions .modal-website-btn { padding: 11px 18px; font-size: 14px; line-height: 1.6; box-shadow: none; }
body.firm-detail .firm-section-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 1000px; margin: 0 auto 12px; padding: 0 24px 18px; border-bottom: 1px solid var(--gray-200); }
body.firm-detail .firm-section-nav a { padding: 4px 0; color: var(--text-tertiary); font-size: 13px; line-height: 1.8; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: transparent; }
body.firm-detail .firm-section-nav a:hover { color: var(--green-dark); text-decoration-color: var(--green); }
body.firm-detail .firm-section { max-width: 1000px; margin: 38px auto 0; padding: 0 24px; scroll-margin-top: 100px; }
body.firm-detail .firm-section-title { margin-bottom: 18px; font-size: 21px; line-height: 1.6; font-weight: 600; }
body.firm-detail .firm-section-text { max-width: 760px; margin: 12px 0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
body.firm-detail .firm-section-text strong { font-weight: 500; color: var(--text-primary); }
body.firm-detail .firm-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 760px; margin: 0 0 24px; padding: 4px 20px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); }
body.firm-detail .firm-facts-grid .firm-fact { min-width: 0; margin: 0; padding: 16px 0; }
body.firm-detail .firm-fact > strong { display: block; margin-bottom: 5px; color: var(--text-tertiary); font-size: 13px; font-weight: 400; line-height: 1.7; }
body.firm-detail .firm-field-long { margin-top: 22px; }
body.firm-detail .firm-field-long > strong { display: block; margin-bottom: 6px; color: var(--text-tertiary); font-size: 13px; line-height: 1.7; font-weight: 400; }
body.firm-detail .firm-field-long > strong + br { display: none; }
body.firm-detail .firm-section-compact { margin-top: 26px; }
body.firm-detail .firm-section-compact .firm-section-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; color: var(--text-tertiary); }
body.firm-detail .firm-section-compact .firm-section-text { margin-top: 8px; }
body.firm-detail .funding-round-line { padding-left: 16px; border-left: 1px solid var(--gray-200); }
body.firm-detail .funding-note { font-size: 13px; line-height: 1.8; color: var(--text-tertiary); }
body.firm-detail .firm-sub-title { margin-top: 22px; margin-bottom: 12px; font-size: 14px; line-height: 1.8; font-weight: 500; }
body.firm-detail .firm-updates-list { max-width: 760px; border-left-width: 1px; padding-left: 22px; }
body.firm-detail .firm-update-item { padding: 0 0 24px; }
body.firm-detail .firm-update-item:last-child { padding-bottom: 0; }
body.firm-detail .firm-updates-list + .firm-updates-list { margin-top: 24px; }
body.firm-detail .firm-update-date { margin-bottom: 7px; font-size: 12px; line-height: 1.8; color: var(--text-tertiary); }
body.firm-detail .firm-update-title { font-size: 16px; line-height: 1.85; font-weight: 500; overflow-wrap: anywhere; }
body.firm-detail .firm-update-detail { font-size: 15px; line-height: 1.85; }
body.firm-detail .firm-section-text a.firm-src-link,
body.firm-detail .firm-hero-summary a.firm-src-link,
body.firm-detail .timeline-source a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: 4px; text-decoration-thickness: 1px; }
body.firm-detail .firm-section-text a.firm-src-link:hover,
body.firm-detail .firm-hero-summary a.firm-src-link:hover,
body.firm-detail .timeline-source a:hover { color: var(--green-dark); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
body.firm-detail .timeline-source { margin-top: 8px; font-size: 12px; line-height: 1.8; }
body.firm-detail .firm-related-grid { max-width: 760px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.firm-detail .firm-related-card { min-width: 0; padding: 16px; gap: 10px; border-color: var(--gray-200); border-radius: 10px; background: var(--white); }
body.firm-detail .firm-related-card:hover { border-color: var(--gray-400); box-shadow: none; transform: none; }
body.firm-detail .firm-related-name { font-size: 14px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
body.firm-detail .firm-prevnext { max-width: 1000px; margin: 42px auto 0; padding: 26px 24px 0; border-top: 1px solid var(--gray-200); gap: 18px; }
body.firm-detail .firm-prevnext a { min-width: 0; max-width: 380px; padding: 16px 18px; border-color: var(--gray-200); border-radius: 10px; font-size: 14px; line-height: 1.7; background: var(--white); overflow-wrap: anywhere; }
body.firm-detail .firm-prevnext a:hover { border-color: var(--gray-400); box-shadow: none; }
body.firm-detail .firm-prevnext .dir { margin-bottom: 3px; font-size: 12px; color: var(--text-tertiary); }
body.firm-detail .firm-meta-footer { max-width: 1000px; padding: 20px 24px 0; font-size: 12px; line-height: 1.8; }
body.firm-detail a:focus-visible,
body.firm-detail button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

@media (max-width: 768px) {
  body.firm-detail .firm-breadcrumb { padding-top: 96px; }
  body.firm-detail .firm-hero { gap: 18px 24px; padding-top: 26px; }
  body.firm-detail .firm-hero-title-row { gap: 14px; }
  body.firm-detail .firm-section-nav { gap: 8px 20px; }
  body.firm-detail .firm-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.firm-detail .firm-breadcrumb { padding-right: 20px; padding-left: 20px; }
  body.firm-detail .firm-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  body.firm-detail .firm-hero-title-row { flex-direction: row; align-items: center; }
  body.firm-detail .firm-hero .firm-logo-lg { width: 52px; height: 52px; flex-basis: 52px; }
  body.firm-detail .firm-hero-name { font-size: 28px; }
  body.firm-detail .firm-hero-actions { grid-column: 1; grid-row: auto; justify-self: start; }
  body.firm-detail .firm-hero-meta { display: block; }
  body.firm-detail .firm-hero-meta .tax-scope { margin-top: 5px; }
  body.firm-detail .firm-hero-badges { gap: 8px; }
  body.firm-detail .firm-section-nav { padding: 0 20px 16px; gap: 6px 18px; }
  body.firm-detail .firm-section { margin-top: 30px; padding: 0 20px; }
  body.firm-detail .firm-section-title { font-size: 20px; margin-bottom: 16px; }
  body.firm-detail .firm-facts-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 2px 18px; }
  body.firm-detail .firm-facts-grid .firm-fact + .firm-fact { border-top: 1px solid var(--gray-200); }
  body.firm-detail .firm-section-compact { margin-top: 22px; }
  body.firm-detail .firm-section-compact .firm-section-title { font-size: 16px; margin-bottom: 8px; }
  body.firm-detail .firm-related-grid { grid-template-columns: minmax(0, 1fr); }
  body.firm-detail .firm-prevnext { padding: 24px 20px 0; gap: 12px; }
  body.firm-detail .firm-prevnext a { max-width: none; }
  body.firm-detail .firm-prevnext .next { margin-left: 0; }
  body.firm-detail .firm-meta-footer { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body.firm-detail *,
  body.firm-detail *::before,
  body.firm-detail *::after { transition: none; animation: none; scroll-behavior: auto; }
}
