/* GEN-1507 administrator hub and firm pages. Builds on settlement-hubs.css. */
.stfirm .st-hub__intro { max-width: 72ch; }
.stfirm-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #E6E9EF); border-radius: 16px; overflow: hidden; }
.stfirm-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--line, #E6E9EF); }
.stfirm-row:first-child { border-top: 0; }
.stfirm-row__name { font-weight: 600; color: inherit; text-decoration: none; }
.stfirm-row__name:hover { text-decoration: underline; }
.stfirm-row__name:focus { outline: none; }
.stfirm-row:has(.stfirm-row__name:focus-visible) { outline: 3px solid var(--blue, #0051FF); outline-offset: -3px; }
.stfirm-row__n { color: var(--ink-2, #5f5f5f); font-size: 14px; }
.stfirm-info { margin: 32px 0 0; max-width: 72ch; }
.stfirm-info h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.stfirm-info p { margin: 0 0 8px; }
.stfirm-info ul { margin: 0; padding-left: 20px; }
.stfirm-info li { margin: 4px 0; }
.stfirm-accuracy { color: var(--ink-2, #5f5f5f); font-size: 14px; margin: 12px 0 0; }
.stfirm-notice { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line, #E6E9EF); color: var(--ink-2, #5f5f5f); font-size: 14px; max-width: 72ch; }
@media (max-width: 600px) {
	.stfirm-row { padding: 12px 14px; }
	.stfirm-info h2 { font-size: 18px; }
}

/* GEN-1507 r2 (Kev's first visual checkpoint): the filter buttons sit centered
   under the intro, as in the approved Before, with room before the first list.
   On phones the group narrows so four buttons wrap evenly (two and two).
   .sthub.stfirm outranks settlement-hubs.css's .sthub .st-quicklinks
   (flex-start) whatever order the two stylesheets load in. */
.sthub.stfirm .st-quicklinks { justify-content: center; max-width: 760px; margin: 22px auto 34px; }
.sthub.stfirm .st-quicklinks a { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.sthub.stfirm .st-quicklinks a:focus { outline: none; }
.sthub.stfirm .st-quicklinks a:focus-visible { outline: 3px solid var(--blue, #0051FF); outline-offset: 3px; }
.sthub.stfirm .st-quicklinks a:active { background: var(--blue-hover, #1c46d8); color: #fff; box-shadow: inset 0 1px 3px rgba(16, 24, 40, .25); }
@media (max-width: 600px) {
	.sthub.stfirm .st-quicklinks { max-width: 300px; margin: 18px auto 28px; }
}


/* ---------------------------------------------------------------------------
   GEN-1507 firm FAQ (Kev's pick: refined A). The markup reuses the live
   settlement-page FAQ (.st-section / .st-h2 / .st-answers), so type, dividers
   and colours come from style.css unchanged. These rules add only what the
   firm answers need: spacing, a small chevron, a visible keyboard focus ring,
   a 44px minimum tap height and answer lists. Every question starts collapsed.
   ------------------------------------------------------------------------ */
.stfirm .stfirm-faq { margin: 48px 0 0; max-width: 880px; }
.stfirm-faq ~ .stfirm-notice { margin-top: 40px; }
.stfirm:has(.stfirm-faq) { padding-bottom: 72px; }
.stfirm-faq .st-answers__item summary { min-height: 44px; }
.stfirm-faq .st-answers__item summary::after { content: ""; top: 50%; right: 12px; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease; }
.stfirm-faq .st-answers__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.stfirm-faq .st-answers__item summary:hover { color: var(--blue); }
.stfirm-faq .st-answers__item summary:focus { outline: none; }
.stfirm-faq .st-answers__item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.stfirm-faq .st-answers__item > p { margin: 0 40px 12px 2px; }
.stfirm-faq .st-answers__item > p:last-child { margin-bottom: 18px; }
.stfirm-faq .st-answers__item > ul { margin: 0 40px 18px 2px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.stfirm-faq .st-answers__item > ul li + li { margin-top: 6px; }
@media (max-width: 600px) {
	.stfirm .stfirm-faq { margin-top: 40px; }
	.stfirm:has(.stfirm-faq) { padding-bottom: 56px; }
	.stfirm-faq .st-answers__item > p, .stfirm-faq .st-answers__item > ul { margin-right: 8px; }
}
