/* Shared final typography layer for public pages, the member app and embeds.
   Keep this after page styles. Minimum reading size: 14px; copy/fields: 16px.
   rem sizes follow the visitor's default text size and browser zoom. */
:root {
  --fb-type-caption: .875rem;
  --fb-type-secondary: .9375rem;
  --fb-type-body: 1rem;
  --fb-type-post: 1.0625rem;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: var(--fb-type-body) !important; line-height: 1.6; }
/* Inputs stay at least 16px on iOS, which also prevents focus-triggered zoom. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),
textarea, select, [contenteditable=true],
.fb-home-workspace .fb-home-search input,
.fb-home-workspace .fb-home-existing-composer #postText,
#fbHomeComposeSlot .fb-composer #postText,
#fbLiveChat .fblc-input {
  font-size: var(--fb-type-body) !important;
  line-height: 1.5 !important;
}
p, .post, .social-text, .social-body, .fb-home-reply,
.fb-home-workspace .fb-home-reasoning,
#fbLiveChat .fblc-text, .fblc-pinned,
.lesson-block p, .example-box p, .try-box p, .answer-choice {
  font-size: var(--fb-type-body) !important;
  line-height: 1.65 !important;
}
.fb-home-workspace .fb-home-body,
.fb-home-workspace .fb-home-pick-line {
  font-size: var(--fb-type-post) !important;
  line-height: 1.65 !important;
}
/* Captions remain distinct from the main copy, with a readable floor. */
small, time, label, kbd, .small, .sub, .meta, .eyebrow,
.fb-home-workspace .fb-home-kicker,
.fb-home-workspace .fb-home-author time,
.fb-home-workspace .fb-home-confidence-note,
.fb-home-workspace .fb-home-footnote,
.fb-home-workspace .fb-home-muted,
.fb-home-workspace .fb-home-feed-meta p,
.fb-home-workspace .fb-home-media-verification,
.fb-home-workspace .fb-media-verification,
.fb-home-workspace .fb-home-discovery-card small,
.fb-home-workspace .fb-home-creator-card small,
.fb-composer .fb-label, .fb-composer .fb-hint,
.fb-composer .fb-count, .fb-composer .fb-muted,
footer p, footer small, .footer-inner p {
  font-size: var(--fb-type-caption) !important;
  line-height: 1.55 !important;
}
.fb-home-workspace .fb-home-clarity,
.fb-home-workspace .fb-home-author strong,
.fb-home-workspace .fb-home-discovery-card strong,
.fb-home-workspace .fb-home-creator-card > strong,
.navlinks a, .header-links a, .top-nav a, .fb-explore-nav a {
  font-size: var(--fb-type-secondary) !important;
  line-height: 1.55 !important;
}
.btn, .button, .back, .sel, .fb-home-primary, .fb-home-secondary,
.fb-home-workspace .fb-home-tabs button,
.fb-home-workspace .fb-home-category-pills button,
.fb-home-workspace .fb-home-more-items button,
.fb-home-workspace .fb-home-discover > summary,
.fb-home-workspace .fb-home-expand,
.fb-home-workspace .fb-home-existing-composer .social-type,
.fb-composer .fb-seg button, .fb-composer .fb-actions button,
.workspace-tabs button, .league-tabs button {
  font-size: var(--fb-type-body) !important;
  line-height: 1.4 !important;
  min-height: 44px;
}
.fb-home-workspace .fb-home-action,
.fb-home-workspace .fb-home-permalink,
.fb-home-workspace .fb-home-analysis-links a {
  font-size: var(--fb-type-secondary) !important;
  line-height: 1.5 !important;
}
.fb-home-workspace .fb-home-trending-shelf > h2,
.fb-home-workspace .fb-home-discovery-content h2 { font-size: 1.125rem !important; }
.fb-home-kicker, .eyebrow, .brand small, .brand-sub, .nav-label,
.board-heading, .mobile-cell-label { letter-spacing: .06em; }
/* Allow growing text to make rows taller, including at browser text zoom. */
.header-inner, .topbar, header .nav { height: auto; min-height: 72px; }
.board-heading, .market-row { overflow-wrap: anywhere; }
.market-row > *, .row-cell, .selection, .platform-copy { min-width: 0; }
.platform-choice, .platform-footer, .stats > div { overflow-wrap: anywhere; }
.platform-footer { flex-wrap: wrap; }
.fb-home-discovery-card, .path-card { overflow-wrap: anywhere; }
.fb-home-category-pills, .workspace-tabs, .league-tabs { scroll-padding-inline: 12px; }
.fb-home-pick-inputs label { font-size: var(--fb-type-caption) !important; }
/* Keep table data at reading size; use the existing local scroll containers. */
table, .tbl, .table, .list, .scan-table, .sb-table, .history-table {
  font-size: var(--fb-type-caption);
  line-height: 1.55;
}
svg text { font-family: inherit; }
.fb-company-link, .fb-company-link a { font-size: var(--fb-type-caption) !important; }
@media (max-width: 760px) {
  body.fb-neo .fb-guest-header .bar,
  body.fb-neo .fb-73-header .bar {
    display: grid !important;
    grid-template-columns: 40px 44px minmax(0, 1fr);
    gap: 6px !important;
  }
  body.fb-neo .fb-guest-header .brand,
  body.fb-neo .fb-73-header .brand {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: 44px !important;
  }
  body.fb-neo .fb-guest-header .actions,
  body.fb-neo .fb-73-header .actions {
    justify-self: end;
    margin-left: 0;
    flex-wrap: nowrap;
  }
  /* Member headers have a fourth child: keep search on the same row. */
  body.fb-neo:not(.fb-guest-home) .fb-73-header .bar {
    grid-template-columns: 40px 44px minmax(0, 1fr) 40px;
  }
  body.fb-neo .fb-73-header .fb-neo-open { grid-column:1; grid-row:1; }
  body.fb-neo .fb-73-header .brand { grid-column:2; grid-row:1; }
  body.fb-neo .fb-73-header .actions { grid-column:3; grid-row:1; }
  body.fb-neo:not(.fb-guest-home) .fb-73-header .fb-neo-header-tools {
    grid-column:4; grid-row:1; margin-left:0; justify-self:end;
  }
  body.fb-guest-home .fb-guest-header .actions .btn {
    font-size: var(--fb-type-body) !important;
    line-height: 1.4 !important;
  }
  .fb-home-workspace .fb-home-discovery-grid,
  .fb-home-workspace .fb-home-creator-grid { grid-template-columns: 1fr; }
  .fb-home-workspace .fb-home-action { gap: 5px; }
  .navlinks, .header-links, .header-inner, .topbar, header .nav { flex-wrap: wrap; }
  .topbar, header .nav { padding-block: 10px; }
  .board-heading { font-size: var(--fb-type-caption); }
  .mobile-cell-label { line-height: 1.4; letter-spacing: .02em; }
  .row-actions { flex-wrap: wrap; }
}
