/* BBS-065 adopted r2 components. Palette/roles remain in ffb-tokens.css.
   DADS references and exceptions: docs/04_DESIGN_SYSTEM.md. */
.ffb { font-weight:400; line-height:var(--ffb-lh-body); }
.ffb :is(button,input,select,textarea,summary) { font-family:var(--ffb-font); line-height:1.5; }
.ffb :is(button,summary,.ffb-label,.ffb-check) { font-weight:500; }
.ffb :is(h1,h2,h3,h4) { font-weight:700; }
.ffb :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.ffb .ffb-form-summary:focus,
.ffb .ffb-consent .ffb-h2:focus {
  outline:3px solid var(--ffb-focus) !important;
  outline-offset:2px !important;
  scroll-margin-block:calc(var(--ffb-top-visible, 0px) + 16px) calc(var(--ffb-bottom-visible, 0px) + 16px);
}
.ffb .ffb-btn { min-height:48px; min-width:96px; padding-block:8px; font-size:16px; font-weight:500; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.ffb .ffb-btn--text { min-width:44px; }
.ffb .ffb-btn--large { min-width:136px; min-height:56px; }
.ffb .ffb-compose-fab { min-width:72px; width:72px; height:72px; min-height:72px; padding:8px; line-height:1.2; }
.ffb :is(.ffb-label,.ffb-help,.ffb-error-text,.ffb-filter__label,.ffb-select,.ffb-check,.ffb-menu__item,.ffb-tabs__item,.ffb-tab,.ffb-notice,.ffb-empty,.ffb-toc__title,.ffb-toc ol,.ffb-toc a,.ffb-breadcrumb,.ffb-footer__nav,.ffb-article-row__summary) { font-size:16px; }
.ffb :is(.ffb-label,.ffb-filter__label,.ffb-select,.ffb-tabs__item,.ffb-tab,.ffb-menu__item) { font-weight:500; line-height:1.5; }
.ffb :is(.ffb-input,.ffb-textarea) { font-weight:400; line-height:1.75; }
.ffb .ffb-select { min-height:48px; }
.ffb .ffb-check { align-items:center; min-height:44px; }
.ffb .ffb-required { color:var(--ffb-error); font-size:16px; margin-inline-start:8px; font-weight:500; }
.ffb .ffb-form-summary { display:block; margin-block:16px 24px; padding:16px; border:2px solid var(--ffb-error); border-radius:8px; background:var(--ffb-error-bg); }
.ffb .ffb-form-summary h2 { font-size:20px; margin:0 0 8px; }
.ffb .ffb-form-summary ul { margin:0; padding-inline-start:24px; }
.ffb .ffb-form-summary a { display:inline-flex; align-items:center; min-height:44px; }
.ffb :is(.ffb-breadcrumb a,.ffb-toc a,.ffb-post-menu summary,summary) { min-height:44px; }
.ffb :is(.ffb-ref__link,.ffb-board__crumb-link,.ffb-board__favorites a,.ffb-home-post__replies,.ffb-auth-dialog__register-link) { min-height:44px; }
.ffb .ffb-quick-phrase { min-height:44px; font-size:16px; white-space:normal; }
.ffb .ffb-quick-emoji { min-width:44px; min-height:44px; }
.ffb :is(.ffb-toc a,.ffb-menu__item,.ffb-tabs__item,.ffb-tab,.ffb-nav__item) { white-space:normal; overflow-wrap:anywhere; }
.ffb :is(.ffb-reaction,.ffb-favorite) { min-width:44px; min-height:44px; }
.ffb .ffb-favorite:not(.ffb-favorite--label) { flex-basis:44px; }
.ffb .ffb-favorite--label { font-size:16px; white-space:normal; }
.ffb .ffb-reaction { min-height:32px; font-weight:500; }
.ffb .ffb-navigation-dialog--menu a { font-size:16px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.ffb .ffb-navigation-dialog a[aria-current] { text-decoration:underline; text-underline-offset:4px; }
.ffb :is(.ffb-dialog,.ffb-navigation-dialog,.ffb-search-dialog,.ffb-consent) { max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain; }
.ffb :is(.ffb-table-scroll table,.ffb-prose table) { font-size:16px; }
.ffb :is(.ffb-table-scroll th,.ffb-table-scroll td) { padding:12px; }
.ffb .ffb-table-scroll { margin:4px; }
.ffb .ffb-consent :is(button,a):focus-visible { outline:3px solid var(--ffb-focus) !important; outline-offset:2px !important; }
.ffb .ffb-consent__actions .ffb-btn { min-height:48px; font-weight:500; }
/* Keep the approved compact icon entries and five-column club/bottom navigation. */
.ffb .ffb-navigation-dialog [data-scroll-close] { min-width:44px; padding:0; }
.ffb .ffb-lb__button { font-size:16px; font-weight:500; white-space:normal; }
.ffb .ffb-lb :is(label,.ffb-lb__hint,.ffb-lb__message,.ffb-lb__summary) { font-size:16px; }
.ffb .ffb-lb :is(input,select,textarea) { min-height:48px; }
@media (forced-colors:active) {
  .ffb :is(button,input,select,textarea) { forced-color-adjust:auto; }
  .ffb :is([aria-pressed="true"],[aria-current="page"],[aria-selected="true"]) { outline:1px solid Highlight; outline-offset:-2px; }
}
@media (prefers-reduced-motion:reduce) {
  .ffb *, .ffb *::before, .ffb *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
