/* One readable UI typeface for the social app, including dialogs moved to body.
   Theme headers, footers, icon fonts, third-party embeds and code remain outside
   these targeted rules. The system stack supports Cyrillic without web downloads. */
body.sms-app-page {
  --sms-ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.sms-app-page .sms-app-root,
body.sms-app-page > [class^="sms-"],
body.sms-app-page > [class*=" sms-"] {
  font-family: var(--sms-ui-font);
}
body.sms-app-page .sms-app-root :is(h1, h2, h3, h4, h5, h6, input, select, textarea),
body.sms-app-page > [class^="sms-"] :is(h1, h2, h3, h4, h5, h6, input, select, textarea),
body.sms-app-page > [class*=" sms-"] :is(h1, h2, h3, h4, h5, h6, input, select, textarea) {
  font-family: var(--sms-ui-font);
}
body.sms-app-page .sms-app-root button:not([class*="fa-"]):not([class*="dashicons"]):not([class*="iconfont"]),
body.sms-app-page > [class^="sms-"] button:not([class*="fa-"]):not([class*="dashicons"]):not([class*="iconfont"]),
body.sms-app-page > [class*=" sms-"] button:not([class*="fa-"]):not([class*="dashicons"]):not([class*="iconfont"]) {
  font-family: var(--sms-ui-font);
}
/* These components explicitly set another family in the original styles. */
body.sms-app-page .sms-app-root .sms-activity-card__article-copy,
body.sms-app-page .sms-app-root .sms-article-reader__content,
body.sms-app-page .sms-article-reader__content,
body.sms-app-page .sms-article-reader__header h1 {
  font-family: var(--sms-ui-font);
}
/* Avoid Safari zooming the page when text fields receive focus on phones. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    body.sms-app-page .sms-app-root :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], textarea, select),
    body.sms-app-page > [class^="sms-"] :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], textarea, select),
    body.sms-app-page > [class*=" sms-"] :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], textarea, select) {
      font-size: max(16px, 1em);
    }
  }
}

/* Readability for social UI. Explicit pixel floors are intentional: some
   WordPress themes set the root rem to 10px. User-authored rich content,
   icon-only controls, avatars and compact numeric badges keep their own styles. */
body.sms-app-page .sms-app-root {
  font-size: 16px;
}

/* Group details, lists and management. */
body.sms-app-page :is(.sms-app-root, .sms-group-create-modal) :is(
  .sms-group-back, .sms-group-hero__title span, .sms-group-hero__title p,
  .sms-group-hero__description, .sms-group-about dt, .sms-group-about dd,
  .sms-group-members strong, .sms-group-members small,
  .sms-group-card__body small, .sms-group-card__body > span,
  .sms-group-card__body em, .sms-group-create-modal label,
  .sms-group-create-modal__dialog header span
) {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
body.sms-app-page :is(.sms-app-root, .sms-group-create-modal) :is(
  .sms-group-tabs button, .sms-group-hero__actions .sms-profile-button,
  .sms-group-create-modal__actions .sms-profile-button
) {
  font-size: 15px !important;
  line-height: 1.4 !important;
}
body.sms-app-page :is(.sms-app-root, .sms-group-create-modal) :is(
  .sms-group-create-modal input, .sms-group-create-modal select,
  .sms-group-create-modal textarea
) { font-size: 16px !important; line-height: 1.4 !important; }
body.sms-app-page :is(.sms-app-root, .sms-group-create-modal) :is(
  .sms-group-tabs button, .sms-group-hero__actions .sms-profile-button,
  .sms-group-create-modal__actions .sms-profile-button
) { min-height: 40px !important; }
body.sms-app-page .sms-app-root :is(.sms-group-hero__title h1, .sms-page-hero__identity h1) {
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.2 !important;
}
body.sms-app-page :is(.sms-app-root, .sms-group-create-modal) :is(
  .sms-group-about h2, .sms-groups__intro h2, .sms-group-create-modal__dialog h2
) { font-size: 20px !important; line-height: 1.3 !important; }
body.sms-app-page .sms-group-create-modal__dialog header span {
  font-size: 14px !important; line-height: 1.45 !important;
}
body.sms-app-page .sms-group-create-modal__dialog h2 {
  font-size: 20px !important; line-height: 1.3 !important;
}
body.sms-app-page .sms-app-root .sms-group-card__body strong {
  font-size: 17px !important; line-height: 1.3 !important;
}
body.sms-app-page .sms-app-root .sms-group-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
body.sms-app-page .sms-app-root .sms-group-tabs button { flex: 0 0 auto; white-space: nowrap; }

/* Page and profile details, discovery, events and listings. */
body.sms-app-page .sms-app-root :is(
  .sms-page-hero__identity p, .sms-page-hero__stats span,
  .sms-page-card__identity small, .sms-page-card__stats,
  .sms-page-about__meta, .sms-page-about__meta small, .sms-public-profile__identity p,
  .sms-public-profile__presence-label, .sms-profile-settings small,
  .sms-profile-section-heading p, .sms-discover__intro p,
  .sms-events__toolbar p, .sms-event-card__copy p, .sms-event-card__copy small,
  .sms-marketplace__toolbar p, .sms-marketplace-card__body p,
  .sms-marketplace-card__body small
) { font-size: 14px !important; line-height: 1.45 !important; }
body.sms-app-page .sms-app-root :is(
  .sms-page-tabs button, .sms-page-hero__actions .sms-profile-button,
  .sms-profile-settings__nav button, .sms-discover button,
  .sms-event-hero__actions .sms-profile-button,
  .sms-marketplace-owner-actions .sms-profile-button
) { font-size: 15px !important; line-height: 1.4 !important; min-height: 40px; }
body.sms-app-page .sms-app-root .sms-page-tabs { overflow-x: auto; }
body.sms-app-page .sms-app-root .sms-page-tabs button { flex: 0 0 auto; white-space: nowrap; }

/* Feed, video, conversations and comments. */
body.sms-app-page .sms-app-root :is(
  .sms-activity-card__header > div:nth-child(2) > a strong,
  .sms-activity-card__header > div:nth-child(2) > span,
  .sms-video-stream .sms-activity-card__header > div:nth-child(2) > a strong,
  .sms-video-stream .sms-activity-card__header > div:nth-child(2) > span,
  .sms-messages__appbar small, .sms-message-bubble p,
  .sms-message-context__empty p, .sms-message-context__profile > small,
  .sms-message-context__presence, .sms-comment-trigger,
  .sms-composer__link > label, .sms-composer__story-toggle small,
  .sms-composer__story-link-field > span
) { font-size: 14px !important; line-height: 1.4 !important; }
body.sms-app-page .sms-app-root :is(
  .sms-activity-card__article-copy strong, .sms-message-bubble p
) { font-size: 16px !important; line-height: 1.45 !important; }

/* Notification inbox and preference form: wrap category labels when needed. */
body.sms-app-page .sms-app-root :is(
  .sms-notifications__toolbar p, .sms-notification__body p,
  .sms-notification__body small, .sms-notification-preferences p,
  .sms-notification-preferences__section > strong,
  .sms-notification-preferences__grid label,
  .sms-notification-preferences__grid label span,
  .sms-notification-quiet-hours__toggle,
  .sms-notification-quiet-hours__toggle span,
  .sms-notification-quiet-hours__times label,
  .sms-notification-quiet-hours__times label span,
  .sms-notification-quiet-hours > small,
  .sms-push-preferences strong, .sms-push-preferences p,
  .sms-push-preferences small, .sms-digest-member-settings label,
  .sms-digest-member-settings label span, .sms-digest-member-settings small
) { font-size: 14px !important; line-height: 1.45 !important; }
body.sms-app-page .sms-app-root :is(.sms-notifications__toolbar h2, .sms-notification-preferences h3) {
  font-size: 20px !important; line-height: 1.3 !important;
}
body.sms-app-page .sms-app-root :is(
  .sms-notifications__toolbar .sms-profile-button,
  .sms-notification-preferences .sms-profile-button,
  .sms-notification-quiet-hours__times input,
  .sms-digest-member-settings select
) { font-size: 15px !important; min-height: 40px; }
body.sms-app-page .sms-app-root .sms-notification-preferences__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
}
body.sms-app-page .sms-app-root :is(
  .sms-group-hero__title p, .sms-group-hero__description,
  .sms-notification__body small, .sms-notification-preferences > div:first-child > p,
  .sms-notification-quiet-hours > small, .sms-push-preferences p,
  .sms-digest-member-settings small
) { color: var(--sms-muted-strong, #4d586f); }

/* Social dialogs are sometimes moved directly under body. */
body.sms-app-page :is(
  .sms-group-create-modal, .sms-page-create-modal,
  .sms-event-create-modal, .sms-marketplace-create-modal,
  .sms-composer-modal, .sms-story-composer
) :is(label, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  font-size: 16px !important;
  line-height: 1.4;
}
body.sms-app-page :is(
  .sms-group-create-modal, .sms-page-create-modal,
  .sms-event-create-modal, .sms-marketplace-create-modal,
  .sms-composer-modal, .sms-story-composer
) .sms-profile-button { font-size: 15px !important; min-height: 40px; }

body.sms-app-page .sms-app-root :is(
  .sms-comment__author, .sms-comment__body, .sms-comment__meta,
  .sms-comment-action, .sms-comments__header, .sms-comments__empty,
  .sms-comments__signin, .sms-comments__more, .sms-comments-status,
  .sms-message-conversation__copy strong, .sms-message-conversation__copy small,
  .sms-message-thread__identity strong, .sms-message-thread__presence,
  .sms-message-context__note, .sms-message-compose__hint,
  .sms-message-attachment__meta, .sms-message-date-separator,
  .sms-message-deleted__text, .sms-message-seen,
  .sms-discover__intro p, .sms-discover-card p, .sms-discover-card small
) { font-size: 14px !important; line-height: 1.45 !important; }
body.sms-app-page .sms-app-root :is(
  .sms-comments__composer textarea, .sms-comment-form textarea,
  .sms-message-compose textarea, .sms-message-compose input,
  .sms-message-edit-form textarea
) { font-size: 16px !important; line-height: 1.45 !important; }

/* Shared textual actions and section labels across application routes. */
body.sms-app-page .sms-app-root :is(.sms-profile-button, .sms-app-kicker) {
  font-size: 15px !important;
  line-height: 1.35;
}

/* 4.6.15 — a common type scale for every social route. Component rem values
   also carry their 16px-root floor at source, including lazily loaded styles.
   Never set the WordPress html font size or override authored canvas layers. */
#smsocial-app .sms-app-view-heading h1 {font-size:clamp(26px,2.2vw,32px);line-height:1.25;letter-spacing:-.025em;}
#smsocial-app :is(.sms-app-empty-state,.sms-profile-state) strong {font-size:18px;line-height:1.4;}
#smsocial-app :is(.sms-app-empty-state,.sms-profile-state) p {font-size:15px;line-height:1.6;}
#smsocial-app :is(.sms-profile-form,.sms-profile-privacy-form,.sms-group-form,.sms-page-form,.sms-event-form,.sms-notification-preferences) label {font-size:14px;line-height:1.5;}
#smsocial-app :is(.sms-profile-form,.sms-profile-privacy-form,.sms-group-form,.sms-page-form,.sms-event-form,.sms-notification-preferences) small {font-size:13px;line-height:1.5;}
#smsocial-app :is(.sms-profile-form,.sms-profile-privacy-form,.sms-group-form,.sms-page-form,.sms-event-form,.sms-notification-preferences) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea) {font-size:16px!important;line-height:1.45;min-block-size:44px;max-inline-size:100%;}
#smsocial-app :is(.sms-profile-settings__nav,.sms-discover__tabs,.sms-discover__sort,.sms-saved-filters,.sms-network-card__actions) :is(a,button) {font-size:14px!important;line-height:1.4;min-block-size:44px;display:inline-flex;align-items:center;justify-content:center;}
#smsocial-app :is(.sms-profile-settings__intro,.sms-discover__copy) h2 {font-size:clamp(23px,2vw,29px);line-height:1.3;}
#smsocial-app :is(.sms-profile-settings__intro,.sms-discover__copy) p {font-size:16px!important;line-height:1.6!important;}
#smsocial-app :is(.sms-discover__signals,.sms-discover-result__why,.sms-profile-about,.sms-profile-bio,.sms-network__summary) {font-size:14px;line-height:1.6;}
#smsocial-app :is(.sms-notification-item__copy,.sms-network-card) p {font-size:15px;line-height:1.55;}
#smsocial-app :is(.sms-discover__tabs,.sms-profile-settings__nav) {flex-wrap:wrap;gap:8px;}
#smsocial-app .sms-discover__intro {align-items:flex-start;flex-wrap:wrap;gap:20px;}
#smsocial-app .sms-discover__copy {flex:1 1 320px;min-inline-size:0;}
#smsocial-app .sms-discover__sort {flex-wrap:wrap;}
#smsocial-app .sms-discover-result__why {display:block;padding:10px 14px;}
#smsocial-app .sms-discover-result__why summary {cursor:pointer;font-size:13px;line-height:1.5;}
#smsocial-app .sms-discover-result__why[open] > :is(span,small) {display:block;margin-top:6px;font-size:13px;}
#smsocial-app :is(.sms-profile-settings,.sms-network,.sms-saved-library) {inline-size:100%;min-inline-size:0;}
#smsocial-app .sms-app-centre__stream:is([data-sms-route=discover],[data-sms-route=saved],[data-sms-route=network],[data-sms-route=settings]) {max-inline-size:1120px;inline-size:100%;}
#smsocial-app .sms-event-calendar__title {font-size:22px;line-height:1.35;}
#smsocial-app .sms-highlight-card__copy strong {font-size:15px;line-height:1.35;}
#smsocial-app .sms-highlight-card__copy small {font-size:13px;line-height:1.4;}
#smsocial-app .sms-feed-highlights__header span {font-size:12px;letter-spacing:.1em;}

/* Directories share the same readable scale, irrespective of lazy load order. */
#smsocial-app :is(.bgif,.bgim,.bgis,.bgia-social) {font-size:16px;}
#smsocial-app .bgif .bgif-hero h1 {font-size:clamp(27px,3cqw,36px)!important;line-height:1.2!important;}
#smsocial-app .bgif .bgif-hero-body p {font-size:16px!important;line-height:1.6!important;}
#smsocial-app .bgif .bgif-filters label {font-size:14px;line-height:1.45;}
#smsocial-app .bgif .bgif-filters :is(input,select) {font-size:16px!important;min-height:48px;line-height:1.4;}
#smsocial-app .bgif .bgif-card h3 {font-size:18px;line-height:1.4;}
#smsocial-app .bgif :is(.bgif-card p,.bgif-extra,.bgif-support p) {font-size:15px;line-height:1.6;}
#smsocial-app .bgif :is(.bgif-button,.bgif-page-button,.bgif-admin-link) {font-size:14px!important;min-height:44px;line-height:1.4;}
#smsocial-app .bgif .bgif-card-actions {flex-wrap:wrap;gap:8px;}
#smsocial-app .bgif .bgif-card-actions .bgif-button {flex:1 1 135px!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px!important;}
#smsocial-app .bgif :is(.bgif-hero-bottom,.bgif-pagination,.bgif-results-count) {font-size:14px;line-height:1.5;}
#smsocial-app .bgim .bgim-hero h1 {font-size:clamp(27px,3cqw,36px)!important;line-height:1.2!important;}
#smsocial-app .bgim .bgim-hero-body p {font-size:16px!important;line-height:1.6!important;}
#smsocial-app .bgim .bgim-filters label {font-size:14px;line-height:1.45;}
#smsocial-app .bgim .bgim-filters :is(input,select) {font-size:16px!important;min-height:48px;line-height:1.4;}
#smsocial-app .bgim .bgim-card h3 {font-size:18px;line-height:1.4;}
#smsocial-app .bgim :is(.bgim-card p,.bgim-extra,.bgim-support p) {font-size:15px;line-height:1.6;}
#smsocial-app .bgim :is(.bgim-button,.bgim-page-button,.bgim-admin-link) {font-size:14px!important;min-height:44px;line-height:1.4;}
#smsocial-app .bgim .bgim-card-actions {flex-wrap:wrap;gap:8px;}
#smsocial-app .bgim .bgim-card-actions .bgim-button {flex:1 1 135px!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px!important;}
#smsocial-app .bgim :is(.bgim-hero-bottom,.bgim-pagination,.bgim-results-count) {font-size:14px;line-height:1.5;}
#smsocial-app .bgis .bgis-hero h1 {font-size:clamp(27px,3cqw,36px)!important;line-height:1.2!important;}
#smsocial-app .bgis .bgis-hero-body p {font-size:16px!important;line-height:1.6!important;}
#smsocial-app .bgis .bgis-filters label {font-size:14px;line-height:1.45;}
#smsocial-app .bgis .bgis-filters :is(input,select) {font-size:16px!important;min-height:48px;line-height:1.4;}
#smsocial-app .bgis .bgis-card h3 {font-size:18px;line-height:1.4;}
#smsocial-app .bgis :is(.bgis-card p,.bgis-extra,.bgis-support p) {font-size:15px;line-height:1.6;}
#smsocial-app .bgis :is(.bgis-button,.bgis-page-button,.bgis-admin-link) {font-size:14px!important;min-height:44px;line-height:1.4;}
#smsocial-app .bgis .bgis-card-actions {flex-wrap:wrap;gap:8px;}
#smsocial-app .bgis .bgis-card-actions .bgis-button {flex:1 1 135px!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px!important;}
#smsocial-app .bgis :is(.bgis-hero-bottom,.bgis-pagination,.bgis-results-count) {font-size:14px;line-height:1.5;}
#smsocial-app .bgia-social .bgia-hero h1 {font-size:clamp(27px,3cqw,36px)!important;line-height:1.2!important;}
#smsocial-app .bgia-social .bgia-hero-body p {font-size:16px!important;line-height:1.6!important;}
#smsocial-app .bgia-social .bgia-filters label {font-size:14px;line-height:1.45;}
#smsocial-app .bgia-social .bgia-filters :is(input,select) {font-size:16px!important;min-height:48px;line-height:1.4;}
#smsocial-app .bgia-social .bgia-card h3 {font-size:18px;line-height:1.4;}
#smsocial-app .bgia-social :is(.bgia-card p,.bgia-extra,.bgia-support p) {font-size:15px;line-height:1.6;}
#smsocial-app .bgia-social :is(.bgia-button,.bgia-page-button,.bgia-admin-link) {font-size:14px!important;min-height:44px;line-height:1.4;}
#smsocial-app .bgia-social .bgia-card-actions {flex-wrap:wrap;gap:8px;}
#smsocial-app .bgia-social .bgia-card-actions .bgia-button {flex:1 1 135px!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px!important;}
#smsocial-app .bgia-social :is(.bgia-hero-bottom,.bgia-pagination,.bgia-results-count) {font-size:14px;line-height:1.5;}
