/* Fans254 V1087 — consistent type roles and restrained X-inspired navigation.
   All rules are CSS-only. Home deliberately has NO decorative abstract curves.
   CSS variables are set at first paint by the Blade layout and updated by the
   tiny appearance client without reloading or changing feed/media behavior. */
:root {
  --f254-site-blue:#1877f2;
  --f254-nav-active:#000000;
  --f254-create-icon:#ffffff;
  --f254-type-ink:#0f172a;
  --f254-type-muted:#64748b;
  --f254-type-hairline:#e5e7eb;
}
html[data-theme="dark"] {
  --f254-type-ink:#f9fafb;
  --f254-type-muted:#9ca3af;
  --f254-type-hairline:#2c3340;
  --f254-nav-active:#ffffff;
  --f254-create-icon:#000000;
}
/* One unified font family, keeping icon fonts and code glyphs untouched. */
html,body,button,input,select,textarea,
body :is(a,p,span,strong,b,small,label,h1,h2,h3,h4,h5,h6,li,th,td,summary,blockquote) {
  font-family:var(--f254-font-stack,'Inter',system-ui,sans-serif)!important;
}
body,.social-shell,.admin-app,.auth-layout--refresh,.f823-ob,.member-tier-page {
  font-size:var(--f254-size-regular,14px);
}
/* Defined role sizes apply without flattening component-specific hierarchy. */
.social-shell :is(.social-post-text,.social-post-caption,.social-post-body),
.social-shell :is(.social-post-text p,.social-post-caption p) {font-size:var(--f254-size-regular,14px)!important;line-height:1.48;}
.social-shell .social-post-author strong {font-size:var(--f254-size-bold,15px)!important;font-weight:700!important;line-height:1.3;letter-spacing:-.018em;}
.social-shell .social-post-byline {font-size:calc(var(--f254-size-regular,15px) - 2px)!important;font-weight:400!important;}
.social-shell :is(.social-nav-link,.social-post-tool,.social-mini-follow),
.auth-layout--refresh :is(.auth-social-button,.auth-primary-link),
.admin-app :is(.primary-small,.secondary-small) {font-weight:600;}
.social-shell :is(.social-page-head h1,.social-profile-header h1),
.auth-layout--refresh :is(.auth-title,.auth-card-title) {font-size:clamp(20px,calc(var(--f254-size-heavy,17px) + 3px),34px);font-weight:800;letter-spacing:-.03em;}
/* HOME: compact mobile header, centered logo, consistent icon strokes.
   Other areas retain the existing screens, including their sticky nav. */
.social-shell[data-social-section="home"] .social-topbar {
  background:var(--social-surface,#fff)!important;
  background-image:none!important;
  box-shadow:none!important;
  border-bottom:0!important;
}
.social-shell[data-social-section="home"] .social-topbar .social-icon {
  stroke-width:2!important;
  width:24px!important;height:24px!important;
}
.social-shell[data-social-section="home"] .social-topbar .brand-logo {
  box-shadow:none!important;
}
.social-shell[data-social-section="home"] .social-feed-selector {
  box-sizing:border-box;
  height:49px!important;min-height:49px!important;
  max-width:100%;padding:0 14px!important;
  gap:clamp(13px,2.4vw,25px)!important;
  background:var(--social-surface,#fff)!important;
  background-image:none!important;
  border:0!important;border-bottom:1px solid var(--f254-type-hairline)!important;
  box-shadow:none!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-x;
  overscroll-behavior-x:contain;
}
.social-shell[data-social-section="home"] .social-feed-selector::-webkit-scrollbar {display:none}
.social-shell[data-social-section="home"] .social-feed-selector>a {
  height:49px!important;min-height:49px!important;
  min-width:max-content!important;flex:none!important;
  padding:0 3px!important;margin:0!important;
  color:var(--f254-type-muted)!important;
  font-size:var(--f254-size-medium,14px)!important;
  font-weight:500!important;
  letter-spacing:-.015em!important;
  line-height:1.2!important;
  text-align:center;
  white-space:nowrap;
  border:0!important;
  background:transparent!important;
}
.social-shell[data-social-section="home"] .social-feed-selector>a.is-active,
.social-shell[data-social-section="home"] .social-feed-selector>a[aria-current="page"] {
  color:var(--f254-type-ink)!important;
  font-weight:700!important;
}
.social-shell[data-social-section="home"] .social-feed-selector>a.is-active::after,
.social-shell[data-social-section="home"] .social-feed-selector>a[aria-current="page"]::after {
  content:""!important;display:block!important;
  position:absolute!important;
  bottom:0!important;left:14%!important;right:14%!important;
  width:auto!important;height:3px!important;
  border-radius:999px!important;
  background:var(--f254-nav-active)!important;
}
.social-shell[data-social-section="home"] .social-feed-selector>a:not(.is-active):not([aria-current="page"])::after{display:none!important}
.social-shell[data-social-section="home"] .social-stories-strip {background-image:none!important;}
.social-shell[data-social-section="home"] .social-bottom-nav {background-image:none!important;}
@media(max-width:699px) {
  .social-shell[data-social-section="home"] .social-topbar {
    height:54px!important;min-height:54px!important;padding:0 14px!important;
  }
  .social-shell[data-social-section="home"] .social-topbar .social-topbar-start,
  .social-shell[data-social-section="home"] .social-topbar .social-header-actions {
    width:44px!important;min-width:44px!important;flex:0 0 44px!important;
  }
  .social-shell[data-social-section="home"] .social-topbar .brand-logo {
    width:40px!important;min-width:40px!important;height:40px!important;
  }
  .social-shell[data-social-section="home"] .social-topbar .brand-logo :is(.brand-mark,.brand-icon) {
    width:38px!important;max-width:38px!important;height:38px!important;max-height:38px!important;
  }
  .social-shell[data-social-section="home"] .social-feed-selector{gap:clamp(13px,3vw,21px)!important;}
}
@media(min-width:700px) and (max-width:1099px) {
  .social-shell[data-social-section="home"] .social-topbar{min-height:58px!important;padding:0 19px!important;}
  .social-shell[data-social-section="home"] .social-feed-selector{height:50px!important;min-height:50px!important;gap:22px!important;}
  .social-shell[data-social-section="home"] .social-feed-selector>a{height:50px!important;min-height:50px!important;}
}
@media(min-width:1100px) {
  .social-shell[data-social-section="home"] .social-topbar{min-height:60px!important;padding:0 20px!important;}
  .social-shell[data-social-section="home"] .social-feed-selector{height:52px!important;min-height:52px!important;gap:25px!important;}
  .social-shell[data-social-section="home"] .social-feed-selector>a{height:52px!important;min-height:52px!important;}
}
/* Only welcome/login/verification/onboarding/finance/membership get viewport-
   anchored arcs. No animation or pointer layer that could block clicks/scroll. */
.auth-layout--refresh .auth-content--refresh,
.auth-layout--refresh > .auth-visual--refresh,
.f823-ob.f977-onboard,
.f823-ob.f977-onboard .f823-frame,
.social-shell .finance-screen.wallet-screen,
.social-shell .f758-monet,
.member-tier-page,
.member-tier-page .member-tier-shell {
  background-image:
    radial-gradient(ellipse 43vw 31vh at -6% -7%,var(--f1079-curve-a,rgba(8,102,255,.12)) 0 65%,transparent 66%),
    radial-gradient(ellipse 54vw 34vh at -8% -10%,var(--f1079-curve-c,rgba(8,102,255,.045)) 0 81%,transparent 82%),
    radial-gradient(ellipse 65vw 37vh at 110% 106%,var(--f1079-curve-a,rgba(8,102,255,.12)) 0 61%,transparent 62%),
    radial-gradient(ellipse 82vw 39vh at 113% 110%,var(--f1079-curve-b,rgba(8,102,255,.065)) 0 77%,transparent 78%)!important;
  background-color:var(--f1079-page,transparent)!important;
  background-repeat:no-repeat!important;
  background-size:100vw 100dvh!important;
  background-attachment:fixed!important;
  background-position:0 0!important;
}
/* Guest authentication shares the site's actual night-mode body surface.
   Prior layered blue curves belong only to light-mode guest pages. */
html[data-theme="dark"] .auth-layout--refresh,
html[data-theme="dark"] .auth-layout--refresh .auth-content--refresh,
html[data-theme="dark"] .auth-layout--refresh > .auth-visual--refresh,
html[data-theme="dark"] .auth-layout--refresh .auth-mobile-visual,
html[data-theme="dark"] .auth-layout--refresh .auth-mobile-visual .auth-visual--refresh,
html[data-theme="dark"] .auth-layout--refresh .auth-visual-stage,
html[data-theme="dark"] .auth-layout--refresh .auth-hero-media {
  background-color:#181a1f!important;
  background-image:none!important;
}
html[data-theme="dark"] .auth-layout--refresh .field .input-wrap,
html[data-theme="dark"] .auth-layout--refresh .f254-signup-location-pair select {
  background-color:#252a32!important;
  border-color:#3c424d!important;
  color:#f3f5fa!important;
}
html[data-theme="dark"] .auth-layout--refresh .field .input-wrap input {
  background:transparent!important;
  color:#f3f5fa!important;
}
/* Preserve existing card/background tokens on onboarding & membership. */
.f823-ob.f977-onboard {background-color:var(--f977-ground,var(--f1079-page,#fff))!important;}
.f823-ob.f977-onboard .f823-frame {background-color:var(--f977-card,var(--f1079-page,#fff))!important;}
.member-tier-page,.member-tier-page .member-tier-shell {background-color:var(--tier-bg,var(--f1079-page,#fff))!important;}
html[data-theme="dark"] .social-shell[data-social-section="home"] .social-feed-selector,
html[data-theme="dark"] .social-shell[data-social-section="home"] .social-topbar {background:var(--social-surface,#1d2026)!important;background-image:none!important;}
/* Restrict backgrounds to the explicitly named families. */
.social-shell[data-social-section="home"] :is(.social-topbar,.social-feed-selector,.social-stories-strip,.social-post-list,.social-home-feed) {background-image:none!important;}
/* Appearance editor: responsive, accessible size controls. */
.f1087-typography-settings{margin-bottom:16px;padding:20px;display:grid;gap:18px;min-width:0;}
.f1087-type-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.f1087-type-head h2{font-size:20px!important;margin:3px 0 5px;}
.f1087-type-head p,.f1087-font-upload p{margin:0;color:var(--admin-muted,#64748b);font-size:13px;line-height:1.5;}
.f1087-live-pill{border:1px solid #a8d4ff;border-radius:99px;padding:5px 12px;color:#0866ef;font-weight:700;font-size:12px;}
.f1087-font-choices{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.f1087-font-choices label{display:grid;gap:4px;}
.f1087-font-choices small{color:var(--admin-muted,#64748b);}
.f1087-font-choices select,.f1087-type-row input{min-height:40px;background:var(--admin-panel,#fff);color:inherit;border:1px solid var(--admin-border,#d7deea);border-radius:10px;padding:8px;}
.f1087-font-choices select{width:min(100%,360px);}
.f1087-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.f1087-type-device{min-width:0;padding:14px;border:1px solid var(--admin-border,#e5e7eb);border-radius:15px;}
.f1087-type-device h3{font-size:14px!important;margin:0 0 14px;}
.f1087-type-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;min-width:0;}
.f1087-type-row label{font-size:12px;min-width:0;}
.f1087-type-input{display:flex;align-items:center;gap:5px;}
.f1087-type-input input{width:56px;text-align:center;}
.f1087-type-input span{font-size:11px;color:var(--admin-muted,#64748b);}
.f1087-type-input button,.f1087-font-upload>button{border:0;border-radius:9px;background:var(--blue,#1877f2);color:#fff;min-height:38px;padding:0 11px;font-size:12px;font-weight:700;}
.f1087-font-upload{border-top:1px solid var(--admin-border,#e5e7eb);padding-top:16px;display:grid;gap:12px;}
.f1087-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.f1087-upload-grid label{display:grid;gap:6px;font-weight:600;font-size:12px;min-width:0;}
.f1087-upload-grid input{width:100%;max-width:100%;font-size:12px;}
.f1087-font-upload>button{justify-self:start;}
.f1087-feedback{color:#137c51!important;}.f1087-error{color:#bd2e42!important;}
html[data-theme="dark"] .f1087-live-pill{border-color:#31558b;color:#90c2ff;}
@media(max-width:1050px){.f1087-type-grid{grid-template-columns:1fr;}.f1087-typography-settings{padding:15px;}}
@media(max-width:580px){.f1087-upload-grid{grid-template-columns:1fr;}.f1087-type-row label{font-size:11px;}}

/* V1340 — monochrome navigation only. Preserve other site action palette. */
.social-shell .social-bottom-nav.f754-mobile-nav > :is(a,button).active,
.social-shell .social-bottom-nav.f754-mobile-nav > :is(a,button)[aria-current="page"] {
  color:var(--f254-nav-active)!important;
}
.social-shell .social-bottom-nav.f754-mobile-nav > :is(a,button).active > .social-icon,
.social-shell .social-bottom-nav.f754-mobile-nav > :is(a,button)[aria-current="page"] > .social-icon {
  color:var(--f254-nav-active)!important;
  stroke:currentColor!important;
}
/* The active Dating heart uses a filled SVG, not only an outline. */
.social-shell .social-bottom-nav.f754-mobile-nav > .f254-dating-tab.active > .social-icon {
  fill:var(--f254-nav-active)!important;
}
.social-shell .social-bottom-nav.f754-mobile-nav .social-mobile-create > .social-icon {
  background:var(--f254-nav-active)!important;
  color:var(--f254-create-icon)!important;
  stroke:currentColor!important;
  box-shadow:0 4px 13px rgb(0 0 0 / 13%)!important;
}
html[data-theme="dark"] .social-shell .social-bottom-nav.f754-mobile-nav .social-mobile-create > .social-icon {
  box-shadow:0 4px 13px rgb(0 0 0 / 28%)!important;
}
.social-shell .social-profile-tabs > a.active {
  color:var(--f254-nav-active)!important;
  border-bottom-color:var(--f254-nav-active)!important;
}
