/* NaijaSubway bundle: naijasubway-style, naijasubway-cookie-consent-cmplz-reskin, naijasubway-page-loader, naijasubway-bp-reskin, naijasubway-premium-shell, naijasubway-guest-homepage, naijasubway-guest-home-premium, naijasubway-guest-stage */
/*
Theme Name: NaijaSubway
Description: Custom theme built to match the NaijaSubway mobile app's "Nocturne · Indigo" design system exactly — colors, typography, spacing, and navigation structure. Replaces buddyboss-theme as the site's active theme. Requires BuddyBoss Platform (or BuddyPress + bbPress) active for forum/community functionality.
Author: NaijaSubway
Version: 0.1.0
Text Domain: naijasubway
*/

/* 🚀 ADDED (task #630): user flagged a bright white full-height vertical
   line via a cropped screenshot (no matching border/box-shadow/outline rule
   exists anywhere in this theme's CSS for the .ns-layout column grid — that
   was ruled out first). Leading explanation: an unstyled native browser
   scrollbar, which defaults to light/white and reads as a stray line
   against this theme's dark surfaces. Thin + token-based so it's grey in
   light mode and still subtle in dark mode, using the same --ns-divider /
   --ns-text-faint tokens as the rest of the site's chrome. */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--ns-divider) transparent;
	/* 🚀 FIXED (task #701): user-reported background flash/gap at the top
	   of the page when scrolling on a MacBook. Root cause: only `body` (see
	   below) had `background: var(--ns-background)` — `html` itself was
	   left at the browser's default white. Trackpad scrolling on macOS
	   (Safari, and Chrome/Edge too once "smooth scrolling" rubber-bands past
	   the top) triggers an elastic overscroll bounce that briefly reveals
	   whatever's BEHIND body — i.e. html's own background — through the gap.
	   In dark mode that showed as a flash of stark white at the top of the
	   viewport on every over-scroll. Setting the same background token on
	   html closes that gap: the bounce now reveals more of the same themed
	   color instead of the browser default. */
	background: var(--ns-background);
}
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: var(--ns-divider);
	border-radius: var(--ns-radius-full);
}
::-webkit-scrollbar-thumb:hover {
	background: var(--ns-text-faint);
}

/* ==========================================================================
   DESIGN TOKENS
   Non-color tokens (--ns-font-*, --ns-radius-*) are ground truth extracted
   directly from the app codebase — do not eyeball or approximate these
   values. Source: constants/Theme.ts, constants/Typography.ts in the
   NaijaSubway app repo. Keep this file in sync if those change.

   🚀 REVISED (color-review handoff, see docs/naijasubway-color-review-
   design-prompt.md): the --ns-* COLOR tokens below no longer mirror the
   app's Theme.ts — this is a website-only, indigo-forward repaint. It fixes
   4 WCAG AA failures (--ns-premium, --ns-warning, --ns-text-faint, and
   white-on-premium), consolidates 7 semantic hues to 5 (info → indigo,
   status-sand → warning) and 5 card-tier tints to 3 (discussion/shared/
   community), and retunes the avatar tiers to the wordmark trio
   (orange/green/indigo). Old token names are kept as back-compat aliases
   in each block so buddypress-reskin.css needed no changes. The React
   Native / Expo app has its own separate copy of these colors and was NOT
   touched by this change — the two will visibly diverge until the app is
   updated to match (see the handoff bundle's README §8, open question 4).
   ========================================================================== */

:root {
	/* ---- Core surfaces & text ---- */
	--ns-background: #F4F4F8;
	--ns-surface: #FFFFFF;
	--ns-surface-raised: #EBEBF2;
	/* 🚀 ADDED (task #773, composer chrome cleanup): --ns-surface-raised
	   (#EBEBF2) is a "go DARKER than the card" panel token, meant for things
	   like the segmented control or a hover row that sit directly on
	   --ns-background, not on a white --ns-surface card — see the header
	   comment above ("distinction between card/raised/modal now comes from
	   --ns-surface-raised"). Used on a chip that sits INSIDE a white card
	   (composer header/footer bars), that same darkening reads as a flat
	   institutional grey slab rather than a raised panel. --ns-surface-chrome
	   is a new, narrower-purpose token for exactly that "chip inside a card"
	   case, while dark mode keeps the existing --ns-surface-raised value
	   (there, "lighter than the card" DOES read as raised/elevated, so
	   nothing needed fixing).
	   🚀 UPDATED (task #776, "light green instead of grey"): tried
	   --ns-action-subtle (a translucent brand-green wash) next, but the
	   user asked for that removed too — light mode chrome now goes fully
	   transparent, so the header/footer/title bars just show the white
	   card underneath with nothing but their own border/divider for
	   definition. Dark mode is untouched (still --ns-surface-raised). */
	--ns-surface-chrome: transparent;
	--ns-divider: #D9D9E4;
	--ns-card-border: #E3E3EC;
	--ns-text-heading: #14132B;
	--ns-text-body: #33324A;
	--ns-text-muted: #5C5B76;
	--ns-text-faint: var(--ns-text-muted);

	/* ---- Top bar — indigo in both modes now (was navy-in-light / neutral-
	   in-dark; treating indigo as a deliberate chrome family keeps it
	   consistent across the toggle). ---- */
	--ns-topbar-bg: #1B1656;
	--ns-topbar-text-muted: #BFBED0;
	--ns-topbar-action: #6CC4A4;
	--ns-topbar-action-subtle: rgba(108, 196, 164, 0.16);

	/* ---- Action / semantic ---- */
	--ns-action: #0C6E4A;
	--ns-action-pressed: #08573A;
	--ns-action-subtle: rgba(12, 110, 74, 0.09);
	--ns-on-action: #FFFFFF;
	--ns-success: var(--ns-action);
	--ns-destructive: #A3161B;
	--ns-destructive-subtle: rgba(163, 22, 27, 0.09);
	--ns-warning: #8F5E10;
	--ns-warning-subtle: rgba(143, 94, 16, 0.11);
	--ns-indigo: #1B1656;
	--ns-indigo-subtle: rgba(27, 22, 86, 0.07);
	--ns-selected-surface: rgba(12, 110, 74, 0.08);
	--ns-selected-indicator: #0C6E4A;

	/* ---- Premium (NaijaSubway+) — split flat gold into a text color and a
	   dedicated indigo-gradient surface; flat gold + white text could never
	   clear AA (was 3.25:1). ---- */
	--ns-premium: #8A6209;
	--ns-premium-subtle: rgba(138, 98, 9, 0.11);
	--ns-premium-surface: linear-gradient(150deg, #221B66 0%, #17123F 100%);
	--ns-premium-border: rgba(217, 169, 60, 0.38);
	--ns-premium-heading: #FFFFFF;
	--ns-premium-body: rgba(255, 255, 255, 0.72);
	--ns-premium-on-surface: #D9A93C;
	--ns-premium-cta-bg: linear-gradient(135deg, #E4BC5C 0%, #A97C18 100%);
	--ns-premium-cta-fg: #2A1D02;

	/* ---- Card tiers, consolidated from five to three: Discussion (topic +
	   reply, indigo-tinted), Shared (repost, warm paper), Community
	   (activity + group, green-tinted). Old five-way names aliased below. ---- */
	--ns-card-discussion-bg: #F1F1F7;
	--ns-card-discussion-border: #E4E4EF;
	--ns-card-shared-bg: #F8F5F0;
	--ns-card-shared-border: #EDE6DA;
	--ns-card-community-bg: #EFF6F2;
	--ns-card-community-border: #DCEBE3;

	/* ---- Avatar tiers, retuned to the wordmark trio (orange/green/indigo)
	   instead of orange/blue/sand — same count, coherent origin. ---- */
	--ns-avatar-orange-bg: #FBE7DF;
	--ns-avatar-orange-fg: #A83C18;
	--ns-avatar-green-bg: #E2F0E9;
	--ns-avatar-green-fg: #0C6E4A;
	--ns-avatar-indigo-bg: #E6E5F0;
	--ns-avatar-indigo-fg: #1B1656;
	--ns-bubble-own: #E6E5F0;
	--ns-bubble-own-border: #D5D3E6;

	/* ---- Ringfenced logo colors — NEVER use these as UI/interactive colors.
	   They belong to the wordmark only (see .ns-wordmark-* below). "Naija"
	   deepens a half-step (#E05B35 → #DE5427) to hold against both the
	   lighter paper and the new indigo; --ns-logo-s (the flag green) is
	   intentionally untouched. ---- */
	--ns-logo-naija: #DE5427;
	--ns-logo-s: #008751;
	--ns-logo-ubway: #FFFFFF;

	/* ---- Scrims, player chrome, shadows, like state — new tokens added by
	   the color-review handoff, replacing hardcoded rgba(0,0,0,x) / #000000
	   literals in Subway Spins and various overlay scrims. --ns-shadow-ink
	   is a bare r,g,b triplet so rgba(var(--ns-shadow-ink), α) composes
	   mode-correctly (shadow tokens still resolve to none in dark mode). ---- */
	--ns-scrim: rgba(20, 19, 43, 0.55);
	--ns-player-bg: #0B0A18;
	--ns-on-scrim: #FFFFFF;
	--ns-shadow-ink: 20, 19, 43;
	--ns-like: #C41E3A;
	--ns-shadow-card: 0 4px 12px rgba(var(--ns-shadow-ink), 0.05);
	--ns-shadow-raised: 0 8px 20px rgba(var(--ns-shadow-ink), 0.10);
	--ns-shadow-modal: 0 14px 30px rgba(var(--ns-shadow-ink), 0.16);

	/* ---- Back-compat aliases (retire in phase 2) — buddypress-reskin.css
	   and any inline PHP still using the old five-tier/blue-avatar/sand
	   names keep working unmodified. --ns-avatar-sand-bg/-fg are aliased as
	   a matched pair on purpose: the old sand avatar was a dark fill with
	   white initials, the new green avatar is a light fill with dark
	   initials — aliasing only one half would invert the polarity. ---- */
	/* 🚀 DEVIATION FROM THE COLOR-REVIEW HANDOFF: the handoff's README
	   aliases --ns-info to --ns-indigo and flags this as an open question
	   ("any informational banner relying on 'blue means info' will read as
	   brand indigo instead — visible change worth eyeballing"). Eyeballed
	   it: buddypress-reskin.css's activity card-type badge strip
	   (.ns-activity-meta-strip__badge--topic/--reply, added on a prior,
	   explicit user request for "unique colors per card type") uses
	   --ns-info for Topic and --ns-indigo directly for Reply — two
	   DIFFERENT badges the user asked to be visually distinct. Aliasing
	   --ns-info to --ns-indigo would make Topic and Reply badges render
	   pixel-identical, silently breaking that feature. Kept as its own
	   value (the pre-existing blue, unchanged — it was never flagged as an
	   AA failure) instead of aliasing, specifically to avoid that
	   regression. --ns-status-sand has no such collision (checked: no
	   other --ns-warning-colored badge renders near the "Chief" pill) so
	   it aliases as the handoff specifies. */
	--ns-info: #2563EB;
	--ns-info-subtle: rgba(37, 99, 235, 0.10);
	--ns-status-sand: var(--ns-warning);
	--ns-status-sand-subtle: var(--ns-warning-subtle);
	/* Sunset (2 December 2026): warm accent for moments (new, unread, streaks,
	   Editorial, Detty December). Never a button, link, form state or error. */
	--ns-sunset: #B83E1C;
	--ns-sunset-subtle: rgba(184, 62, 28, 0.09);
	--ns-on-sunset: #FFFFFF;
	--ns-on-status-sand: #FFFFFF;
	--ns-card-topic-bg: var(--ns-card-discussion-bg);
	--ns-card-topic-border: var(--ns-card-discussion-border);
	--ns-card-reply-bg: var(--ns-card-discussion-bg);
	--ns-card-reply-border: var(--ns-card-discussion-border);
	--ns-card-repost-bg: var(--ns-card-shared-bg);
	--ns-card-repost-border: var(--ns-card-shared-border);
	--ns-card-activity-bg: var(--ns-card-community-bg);
	--ns-card-activity-border: var(--ns-card-community-border);
	--ns-card-group-bg: var(--ns-card-community-bg);
	--ns-card-group-border: var(--ns-card-community-border);
	--ns-avatar-blue-bg: var(--ns-avatar-indigo-bg);
	--ns-avatar-blue-fg: var(--ns-avatar-indigo-fg);
	--ns-avatar-sand-bg: var(--ns-avatar-green-bg);
	--ns-avatar-sand-fg: var(--ns-avatar-green-fg);

	/* ---- Typography (constants/Typography.ts) — Quicksand, 4 static weights ---- */
	--ns-font-regular: 'Quicksand', sans-serif;
	--ns-font-medium: 'Quicksand', sans-serif; /* weight 500 */
	--ns-font-semibold: 'Quicksand', sans-serif; /* weight 600 */
	--ns-font-bold: 'Quicksand', sans-serif; /* weight 700 */

	/* ---- Radius scale (Theme.ts Radius) ---- */
	--ns-radius-sm: 8px;
	--ns-radius-md: 12px;
	--ns-radius-lg: 16px;
	--ns-radius-xl: 20px;
	--ns-radius-full: 999px;

	/* 🚀 ADDED (user-requested, "Kinetic Minimalism UI style with a touch of
	   Glassmorphism" for activity cards + the login form): a small, shared
	   set of glass-surface + motion tokens rather than one-off magic numbers
	   repeated at every call site. Mode-independent (same blur/saturate/
	   easing look right on both themes) so these live in the single shared
	   :root block alongside --ns-radius-*/--ns-shadow-* above, not duplicated
	   into the light/dark blocks below like color tokens are. Real content
	   needs to render behind an element for backdrop-filter to have anything
	   to blur — paired with the translucent color-mix() backgrounds added at
	   each glass surface's own rule (not a new token; color-mix() with the
	   existing --ns-card-*-bg/--ns-surface tokens keeps every glass tint
	   using the exact same ground-truth colors as the opaque version it
	   replaces, just with alpha punched in). --ns-motion-snap is a fast-out
	   "kinetic" ease (front-loaded deceleration) rather than a linear/generic
	   ease-in-out, so hover/press feedback reads as a decisive snap, not a
	   slow drift — the same effect performant native apps use for tap
	   feedback.

	   🚀 REFRESHED (iOS 26 Liquid Glass pass, see naijasubway-v3 apps/mobile's
	   packages/ui/src/glass.ts): tuned to read closer to Apple's native
	   Liquid Glass material now that the mobile app has the real
	   expo-glass-effect version of this look. Every consuming rule below
	   reads these same three tokens, so this is a values-only refresh -- no
	   selector was touched, and the risk profile stays the same as the
	   original glassmorphism pass. Blur nudged up (18px -> 22px) and
	   saturation raised more (160% -> 185%) because Liquid Glass leans on
	   vivid color bleed-through more than a soft frosted-window blur; the
	   highlight opacity was raised (0.10 -> 0.16) and --ns-glass-specular
	   added as a shared top-edge sheen gradient (real Liquid Glass reads as
	   a lit, faintly refractive material, not just a flat tinted blur) --
	   apply it as `background-image` on a surface (or its own ::before) at
	   the same call sites that already set `border-top` highlights, e.g.
	   guest-homepage.css's login card and buddypress-reskin.css's activity
	   cards; not force-added to every existing glass rule sitewide in this
	   pass to avoid touching unrelated selectors/specificity beyond the
	   token block itself. */
	--ns-glass-blur: 22px;
	--ns-glass-saturate: 185%;
	--ns-glass-highlight: rgba(255, 255, 255, 0.16);
	--ns-glass-specular: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
	--ns-motion-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Dark mode — mirrors the app's Colors.dark exactly. Dark mode uses
   hairline borders instead of shadows (see .ns-card / .ns-raised / .ns-modal
   below), matching the app's documented rationale in Theme.ts. ---- */
@media (prefers-color-scheme: dark) {
	:root {
		--ns-background: #08071A;
		--ns-surface: #12112A;
		--ns-surface-raised: #1C1A38;
		/* 🚀 ADDED (task #773): keep the existing --ns-surface-raised value here
		   — see the light-mode :root comment above for why dark mode doesn't
		   need the light-mode fix (lighter-than-card already reads as raised). */
		--ns-surface-chrome: var(--ns-surface-raised);
		--ns-divider: #2A2850;
		--ns-card-border: #232140;
		--ns-text-heading: #EDECF5;
		--ns-text-body: #C9C7DC;
		--ns-text-muted: #9A98B4;
		--ns-text-faint: var(--ns-text-muted);

		/* Dark mode keeps the shared dark surface for the top nav — still
		   indigo (deeper than --ns-surface), not the same neutral as cards. */
		--ns-topbar-bg: #12102E;
		--ns-topbar-text-muted: #BFBED0;
		--ns-topbar-action: #78BEA3;
		--ns-topbar-action-subtle: rgba(120, 190, 163, 0.16);

		--ns-action: #78BEA3;
		--ns-action-pressed: #63A78D;
		--ns-action-subtle: rgba(120, 190, 163, 0.14);
		--ns-on-action: #04251A;
		--ns-success: var(--ns-action);
		--ns-destructive: #FF9E97;
		--ns-destructive-subtle: rgba(255, 158, 151, 0.14);
		--ns-warning: #F2BE4A;
		--ns-warning-subtle: rgba(242, 190, 74, 0.16);
		--ns-indigo: #A99CF5;
		--ns-indigo-subtle: rgba(169, 156, 245, 0.14);
		--ns-selected-surface: rgba(120, 190, 163, 0.13);
		--ns-selected-indicator: #78BEA3;

		--ns-premium: #E8C56B;
		--ns-premium-subtle: rgba(232, 197, 107, 0.16);
		--ns-premium-surface: linear-gradient(150deg, #1E1A4C 0%, #100E28 100%);
		--ns-premium-border: rgba(232, 197, 107, 0.30);
		--ns-premium-heading: #FFFFFF;
		--ns-premium-body: rgba(255, 255, 255, 0.70);
		--ns-premium-on-surface: #E8C56B;
		--ns-premium-cta-bg: linear-gradient(135deg, #F0D68F 0%, #C79A3A 100%);
		--ns-premium-cta-fg: #2A1D02;

		--ns-card-discussion-bg: #191830;
		--ns-card-discussion-border: #262445;
		--ns-card-shared-bg: #1F1B16;
		--ns-card-shared-border: #322A20;
		--ns-card-community-bg: #101F19;
		--ns-card-community-border: #1C332A;

		--ns-avatar-orange-bg: #2A1712;
		--ns-avatar-orange-fg: #FFA98A;
		--ns-avatar-green-bg: #0F2A1F;
		--ns-avatar-green-fg: #6FE0AE;
		--ns-avatar-indigo-bg: #1F1D3D;
		--ns-avatar-indigo-fg: #BDB2FF;
		--ns-bubble-own: #201E3E;
		--ns-bubble-own-border: #2E2B52;

		/* Ringfenced logo colors flip too — see BrandWordmark.tsx dark values */
		--ns-logo-naija: #FF8560;
		--ns-logo-s: #00A86B;
		--ns-logo-ubway: #F4F4F8;

		--ns-scrim: rgba(5, 4, 12, 0.65);
		--ns-player-bg: #050409;
		--ns-on-scrim: #FFFFFF;
		--ns-shadow-ink: 5, 4, 12;
		--ns-like: #FF8A93;
		--ns-shadow-card: none;
		--ns-shadow-raised: none;
		--ns-shadow-modal: none;

		/* Back-compat aliases (retire in phase 2) — see :root's comment above,
		   incl. why --ns-info keeps its own value instead of aliasing. */
		--ns-info: #60A5FA;
		--ns-info-subtle: rgba(96, 165, 250, 0.16);
		--ns-status-sand: var(--ns-warning);
		--ns-status-sand-subtle: var(--ns-warning-subtle);
		--ns-sunset: #FF8A66;
		--ns-sunset-subtle: rgba(255, 138, 102, 0.14);
		--ns-on-sunset: #2A0D04;
		--ns-on-status-sand: #2A1D02;
		--ns-card-topic-bg: var(--ns-card-discussion-bg);
		--ns-card-topic-border: var(--ns-card-discussion-border);
		--ns-card-reply-bg: var(--ns-card-discussion-bg);
		--ns-card-reply-border: var(--ns-card-discussion-border);
		--ns-card-repost-bg: var(--ns-card-shared-bg);
		--ns-card-repost-border: var(--ns-card-shared-border);
		--ns-card-activity-bg: var(--ns-card-community-bg);
		--ns-card-activity-border: var(--ns-card-community-border);
		--ns-card-group-bg: var(--ns-card-community-bg);
		--ns-card-group-border: var(--ns-card-community-border);
		--ns-avatar-blue-bg: var(--ns-avatar-indigo-bg);
		--ns-avatar-blue-fg: var(--ns-avatar-indigo-fg);
		--ns-avatar-sand-bg: var(--ns-avatar-green-bg);
		--ns-avatar-sand-fg: var(--ns-avatar-green-fg);
	}

	/* 🚀 CHANGED (color-review handoff): was rgba(180, 200, 235, .09/.13/.17)
	   — a stock blue-grey with no token backing it, and the exact "borders
	   too bright against dark surfaces" complaint this file documents
	   elsewhere. Tokenized to --ns-card-border for all three; the elevation
	   distinction between card/raised/modal now comes from --ns-surface-raised
	   and shadow, not an escalating border alpha. */
	.ns-card { border: 1px solid var(--ns-card-border); }
	.ns-raised { border: 1px solid var(--ns-card-border); }
	.ns-modal { border: 1px solid var(--ns-card-border); }
}

/* Explicit .ns-light forces light tokens even when the OS prefers dark —
   the other half of the manual toggle in footer.php's inline script. */
.ns-light {
	--ns-background: #F4F4F8;
	--ns-surface: #FFFFFF;
	--ns-surface-raised: #EBEBF2;
	/* 🚀 ADDED (task #773) / 🚀 UPDATED (task #776, now fully transparent
	   in light mode) — see :root's comment above. */
	--ns-surface-chrome: transparent;
	--ns-divider: #D9D9E4;
	--ns-card-border: #E3E3EC;
	--ns-text-heading: #14132B;
	--ns-text-body: #33324A;
	--ns-text-muted: #5C5B76;
	--ns-text-faint: var(--ns-text-muted);
	--ns-topbar-bg: #1B1656;
	--ns-topbar-text-muted: #BFBED0;
	--ns-topbar-action: #6CC4A4;
	--ns-topbar-action-subtle: rgba(108, 196, 164, 0.16);
	--ns-action: #0C6E4A;
	--ns-action-pressed: #08573A;
	--ns-action-subtle: rgba(12, 110, 74, 0.09);
	--ns-on-action: #FFFFFF;
	--ns-success: var(--ns-action);
	--ns-destructive: #A3161B;
	--ns-destructive-subtle: rgba(163, 22, 27, 0.09);
	--ns-warning: #8F5E10;
	--ns-warning-subtle: rgba(143, 94, 16, 0.11);
	--ns-indigo: #1B1656;
	--ns-indigo-subtle: rgba(27, 22, 86, 0.07);
	--ns-selected-surface: rgba(12, 110, 74, 0.08);
	--ns-selected-indicator: #0C6E4A;
	--ns-premium: #8A6209;
	--ns-premium-subtle: rgba(138, 98, 9, 0.11);
	--ns-premium-surface: linear-gradient(150deg, #221B66 0%, #17123F 100%);
	--ns-premium-border: rgba(217, 169, 60, 0.38);
	--ns-premium-heading: #FFFFFF;
	--ns-premium-body: rgba(255, 255, 255, 0.72);
	--ns-premium-on-surface: #D9A93C;
	--ns-premium-cta-bg: linear-gradient(135deg, #E4BC5C 0%, #A97C18 100%);
	--ns-premium-cta-fg: #2A1D02;
	--ns-card-discussion-bg: #F1F1F7;
	--ns-card-discussion-border: #E4E4EF;
	--ns-card-shared-bg: #F8F5F0;
	--ns-card-shared-border: #EDE6DA;
	--ns-card-community-bg: #EFF6F2;
	--ns-card-community-border: #DCEBE3;
	--ns-avatar-orange-bg: #FBE7DF;
	--ns-avatar-orange-fg: #A83C18;
	--ns-avatar-green-bg: #E2F0E9;
	--ns-avatar-green-fg: #0C6E4A;
	--ns-avatar-indigo-bg: #E6E5F0;
	--ns-avatar-indigo-fg: #1B1656;
	--ns-bubble-own: #E6E5F0;
	--ns-bubble-own-border: #D5D3E6;
	--ns-logo-naija: #DE5427;
	--ns-logo-s: #008751;
	--ns-logo-ubway: #FFFFFF;
	--ns-scrim: rgba(20, 19, 43, 0.55);
	--ns-player-bg: #0B0A18;
	--ns-on-scrim: #FFFFFF;
	--ns-shadow-ink: 20, 19, 43;
	--ns-like: #C41E3A;
	--ns-shadow-card: 0 4px 12px rgba(var(--ns-shadow-ink), 0.05);
	--ns-shadow-raised: 0 8px 20px rgba(var(--ns-shadow-ink), 0.10);
	--ns-shadow-modal: 0 14px 30px rgba(var(--ns-shadow-ink), 0.16);
	/* Back-compat aliases (retire in phase 2) — see :root's comment above,
	   incl. why --ns-info keeps its own value instead of aliasing. */
	--ns-info: #2563EB;
	--ns-info-subtle: rgba(37, 99, 235, 0.10);
	--ns-status-sand: var(--ns-warning);
	--ns-status-sand-subtle: var(--ns-warning-subtle);
	/* Sunset (2 December 2026): warm accent for moments (new, unread, streaks,
	   Editorial, Detty December). Never a button, link, form state or error. */
	--ns-sunset: #B83E1C;
	--ns-sunset-subtle: rgba(184, 62, 28, 0.09);
	--ns-on-sunset: #FFFFFF;
	--ns-on-status-sand: #FFFFFF;
	--ns-card-topic-bg: var(--ns-card-discussion-bg);
	--ns-card-topic-border: var(--ns-card-discussion-border);
	--ns-card-reply-bg: var(--ns-card-discussion-bg);
	--ns-card-reply-border: var(--ns-card-discussion-border);
	--ns-card-repost-bg: var(--ns-card-shared-bg);
	--ns-card-repost-border: var(--ns-card-shared-border);
	--ns-card-activity-bg: var(--ns-card-community-bg);
	--ns-card-activity-border: var(--ns-card-community-border);
	--ns-card-group-bg: var(--ns-card-community-bg);
	--ns-card-group-border: var(--ns-card-community-border);
	--ns-avatar-blue-bg: var(--ns-avatar-indigo-bg);
	--ns-avatar-blue-fg: var(--ns-avatar-indigo-fg);
	--ns-avatar-sand-bg: var(--ns-avatar-green-bg);
	--ns-avatar-sand-fg: var(--ns-avatar-green-fg);
}
.ns-light .ns-card,
.ns-light .ns-raised,
.ns-light .ns-modal { border: none; }

/* An explicit .ns-dark class lets a manual toggle override prefers-color-scheme
   later if a site-wide dark mode switch is added (not just OS-level). */
.ns-dark {
	--ns-background: #08071A;
	--ns-surface: #12112A;
	--ns-surface-raised: #1C1A38;
	/* 🚀 ADDED (task #773) — see :root's comment above. */
	--ns-surface-chrome: var(--ns-surface-raised);
	--ns-divider: #2A2850;
	--ns-card-border: #232140;
	--ns-text-heading: #EDECF5;
	--ns-text-body: #C9C7DC;
	--ns-text-muted: #9A98B4;
	--ns-text-faint: var(--ns-text-muted);
	--ns-topbar-bg: #12102E;
	--ns-topbar-text-muted: #BFBED0;
	--ns-topbar-action: #78BEA3;
	--ns-topbar-action-subtle: rgba(120, 190, 163, 0.16);
	--ns-action: #78BEA3;
	--ns-action-pressed: #63A78D;
	--ns-action-subtle: rgba(120, 190, 163, 0.14);
	--ns-on-action: #04251A;
	--ns-success: var(--ns-action);
	--ns-destructive: #FF9E97;
	--ns-destructive-subtle: rgba(255, 158, 151, 0.14);
	--ns-warning: #F2BE4A;
	--ns-warning-subtle: rgba(242, 190, 74, 0.16);
	--ns-indigo: #A99CF5;
	--ns-indigo-subtle: rgba(169, 156, 245, 0.14);
	--ns-selected-surface: rgba(120, 190, 163, 0.13);
	--ns-selected-indicator: #78BEA3;
	--ns-premium: #E8C56B;
	--ns-premium-subtle: rgba(232, 197, 107, 0.16);
	--ns-premium-surface: linear-gradient(150deg, #1E1A4C 0%, #100E28 100%);
	--ns-premium-border: rgba(232, 197, 107, 0.30);
	--ns-premium-heading: #FFFFFF;
	--ns-premium-body: rgba(255, 255, 255, 0.70);
	--ns-premium-on-surface: #E8C56B;
	--ns-premium-cta-bg: linear-gradient(135deg, #F0D68F 0%, #C79A3A 100%);
	--ns-premium-cta-fg: #2A1D02;
	--ns-card-discussion-bg: #191830;
	--ns-card-discussion-border: #262445;
	--ns-card-shared-bg: #1F1B16;
	--ns-card-shared-border: #322A20;
	--ns-card-community-bg: #101F19;
	--ns-card-community-border: #1C332A;
	--ns-avatar-orange-bg: #2A1712;
	--ns-avatar-orange-fg: #FFA98A;
	--ns-avatar-green-bg: #0F2A1F;
	--ns-avatar-green-fg: #6FE0AE;
	--ns-avatar-indigo-bg: #1F1D3D;
	--ns-avatar-indigo-fg: #BDB2FF;
	--ns-bubble-own: #201E3E;
	--ns-bubble-own-border: #2E2B52;
	--ns-logo-naija: #FF8560;
	--ns-logo-s: #00A86B;
	--ns-logo-ubway: #F4F4F8;
	--ns-scrim: rgba(5, 4, 12, 0.65);
	--ns-player-bg: #050409;
	--ns-on-scrim: #FFFFFF;
	--ns-shadow-ink: 5, 4, 12;
	--ns-like: #FF8A93;
	--ns-shadow-card: none;
	--ns-shadow-raised: none;
	--ns-shadow-modal: none;
	/* Back-compat aliases (retire in phase 2) — see :root's comment above,
	   incl. why --ns-info keeps its own value instead of aliasing. */
	--ns-info: #60A5FA;
	--ns-info-subtle: rgba(96, 165, 250, 0.16);
	--ns-status-sand: var(--ns-warning);
	--ns-status-sand-subtle: var(--ns-warning-subtle);
	--ns-sunset: #FF8A66;
	--ns-sunset-subtle: rgba(255, 138, 102, 0.14);
	--ns-on-sunset: #2A0D04;
	--ns-on-status-sand: #2A1D02;
	--ns-card-topic-bg: var(--ns-card-discussion-bg);
	--ns-card-topic-border: var(--ns-card-discussion-border);
	--ns-card-reply-bg: var(--ns-card-discussion-bg);
	--ns-card-reply-border: var(--ns-card-discussion-border);
	--ns-card-repost-bg: var(--ns-card-shared-bg);
	--ns-card-repost-border: var(--ns-card-shared-border);
	--ns-card-activity-bg: var(--ns-card-community-bg);
	--ns-card-activity-border: var(--ns-card-community-border);
	--ns-card-group-bg: var(--ns-card-community-bg);
	--ns-card-group-border: var(--ns-card-community-border);
	--ns-avatar-blue-bg: var(--ns-avatar-indigo-bg);
	--ns-avatar-blue-fg: var(--ns-avatar-indigo-fg);
	--ns-avatar-sand-bg: var(--ns-avatar-green-bg);
	--ns-avatar-sand-fg: var(--ns-avatar-green-fg);
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
	background: var(--ns-background);
	color: var(--ns-text-body);
	font-family: var(--ns-font-regular);
	font-size: 14px;
	line-height: 20px;
	margin: 0;
}

a { color: var(--ns-action); text-decoration: none; }
/* 🚀 FIXED (task #326): was re-adding the browser-default underline on
   hover with no color change at all — every plain-text link sitewide
   (nothing more specific overriding it) had literally zero visible hover
   feedback beyond a flicker of an underline. Swapped to the same
   color-shift-on-hover convention already used by .ns-btn-action and most
   of the theme's other interactive elements (var(--ns-action-pressed)),
   and kept text-decoration:none explicit here so this is the true sitewide
   default any more specific selector below can still override. */
a:hover { color: var(--ns-action-pressed); text-decoration: none; }

/* ==========================================================================
   TYPE SCALE — mirrors constants/Typography.ts variants exactly
   ========================================================================== */

.ns-display { font-family: var(--ns-font-bold); font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -0.3px; color: var(--ns-text-heading); }
.ns-h1      { font-family: var(--ns-font-bold); font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -0.2px; color: var(--ns-text-heading); }
.ns-h2      { font-family: var(--ns-font-bold); font-weight: 700; font-size: 18px; line-height: 24px; letter-spacing: -0.1px; color: var(--ns-text-heading); }
.ns-h3      { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ns-text-heading); }
.ns-subtitle{ font-family: var(--ns-font-medium); font-weight: 500; font-size: 15px; line-height: 21px; color: var(--ns-text-body); }
.ns-body        { font-family: var(--ns-font-regular); font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ns-text-body); }
.ns-body-medium { font-family: var(--ns-font-medium); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--ns-text-body); }
.ns-body-bold   { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ns-text-body); }
.ns-caption { font-family: var(--ns-font-regular); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--ns-text-muted); }
.ns-label   { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ns-text-muted); }
.ns-button-text { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 15px; line-height: 20px; }

/* ==========================================================================
   SURFACES / ELEVATION
   ========================================================================== */

.ns-card    { background: var(--ns-surface); border-radius: var(--ns-radius-lg); box-shadow: var(--ns-shadow-card); }
.ns-raised  { background: var(--ns-surface); border-radius: var(--ns-radius-lg); box-shadow: var(--ns-shadow-raised); }
.ns-modal   { background: var(--ns-surface); border-radius: var(--ns-radius-xl); box-shadow: var(--ns-shadow-modal); }

/* ==========================================================================
   BUTTONS — the ONE action color, per the app's design rule
   ========================================================================== */

.ns-btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 15px;
	line-height: 20px;
	border: none;
	border-radius: var(--ns-radius-md);
	padding: 12px 20px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.ns-btn-action:hover,
.ns-btn-action:focus-visible { background: var(--ns-action-pressed); color: var(--ns-on-action); text-decoration: none; }
.ns-btn-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   FORM FIELDS — shared text/password/email input treatment for every
   custom form built from here on (password recovery, Settings, Refer a
   Friend, etc.), so they don't each reinvent input styling.
   ========================================================================== */

.ns-field-label {
	display: block;
	font-family: var(--ns-font-medium);
	font-size: 14px;
	color: var(--ns-text-body);
	margin: 0 0 6px;
}
.ns-field {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: var(--ns-radius-md);
	border: 1px solid var(--ns-divider);
	background: var(--ns-surface);
	font-family: var(--ns-font-regular);
	font-size: 14px;
	color: var(--ns-text-body);
}
.ns-field:focus {
	/* 🚀 FIXED (task #331 accessibility pass): was outline:none with only a
	   1px border-color change as the sole focus indicator — too weak/easy
	   to miss, especially for low-vision users. Restored a real, visible
	   focus ring on top of the existing border-color change. */
	outline: 2px solid var(--ns-action);
	outline-offset: 1px;
	border-color: var(--ns-action);
}
.ns-field-group { margin-bottom: 16px; }
.ns-form-message {
	border-radius: var(--ns-radius-md);
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}
.ns-form-message--success {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
.ns-form-message--error {
	/* 🚀 FIXED (color-review handoff): was rgba(224,91,53,.12) / #E05B35 —
	   the wordmark orange doing second duty as a danger accent, so a brand
	   tweak to the logo silently restyled this error state. */
	background: var(--ns-destructive-subtle);
	color: var(--ns-destructive);
}

.ns-btn-subtle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--ns-action-subtle);
	color: var(--ns-action);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 14px;
	border: none;
	border-radius: var(--ns-radius-md);
	padding: 10px 16px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
/* 🚀 ADDED (task #326): this had no hover state at all despite being used
   as a real <a> on several pages (Load More, Set your interests, group
   pagination) — same color-pressed convention as .ns-btn-action above. */
.ns-btn-subtle:hover,
.ns-btn-subtle:focus-visible {
	background: var(--ns-action-subtle-pressed, var(--ns-action-subtle));
	color: var(--ns-action-pressed);
	text-decoration: none;
}

/* ==========================================================================
   WORDMARK — ringfenced logo colors, three-color split, per BrandWordmark.tsx.
   Never repurpose --ns-logo-* as interactive UI color; see comment block above.
   ========================================================================== */

.ns-wordmark { display: inline-flex; align-items: center; font-size: 20px; white-space: nowrap; }
.ns-wordmark:hover { text-decoration: none; }
/* 🚀 UPDATED: wordmark.php now renders the flattened icon+text lockup PNG
   (see that file's header comment) instead of an icon plus three separate
   color spans, PLUS a second icon-only <img> kept specifically for the
   ≤960px icon-rail case below — by default only the full lockup shows. */
.ns-wordmark img.ns-wordmark-full { height: 32px; width: auto; display: block; }
.ns-wordmark img.ns-wordmark-icon-only { height: 32px; width: 32px; display: none; }
/* --ns-logo-naija/-s/-ubway + these three rules are unused now that
   wordmark.php renders a flattened image instead of live text spans — left
   in place (harmless) rather than deleted, since --ns-logo-* is still a
   ringfenced brand token other things could reference later. */
.ns-wordmark-naija { color: var(--ns-logo-naija); font-family: var(--ns-font-medium); font-weight: 500; }
.ns-wordmark-s     { color: var(--ns-logo-s); font-family: var(--ns-font-bold); font-weight: 700; }
.ns-wordmark-ubway  { color: var(--ns-logo-ubway); font-family: var(--ns-font-bold); font-weight: 700; }

/* 🚀 FIX (bug report — "The 'subway' part of the wordmark needs styling"):
   confirmed the visible bug is actually the "ubway" span (--ns-logo-ubway is
   white/#FFFFFF, designed to read against the always-dark .ns-topbar it used
   to live in). A prior task relocated the wordmark markup out of that dark
   top bar into this left sidebar <aside> instead — which has no background
   of its own and inherits the ordinary light `body` background in light
   mode — so the white span went effectively invisible there, with only the
   orange "naija" and green "s" spans still legible. Per wordmark.php's own
   header comment, --ns-logo-* are ringfenced brand-identity colors and must
   never be recolored to "fix" a legibility issue — the fix belongs on the
   CONTAINER instead: a small dark chip, using the same --ns-topbar-bg token
   the wordmark was originally designed against (already theme-aware: navy
   in light mode, near-black in dark mode), re-creates that original dark
   backdrop wherever the wordmark is placed, without touching a single logo
   color value. */
.ns-wordmark-chip {
	display: inline-flex;
	background: var(--ns-topbar-bg);
	border-radius: var(--ns-radius-md);
	padding: 8px 12px;
}
/* 🚀 FIXED (bug report — "website's logo in light mode in responsive mode
   still has a background box"): the dark chip above was built to backstop a
   live white "ubway" text span (see the comment block just above this rule).
   wordmark.php no longer renders live color spans at all — both the full
   lockup and the ≤960px icon-only mark (rendered inside this same chip via
   the media-query rule further down) are flattened PNGs with their own
   permanent colors, so there is nothing left needing a dark backdrop for
   legibility. In light mode specifically, that leftover chip is what showed
   as a visible indigo box behind the icon in the collapsed/responsive rail.
   Left dark mode's chip in place (not reported as an issue, and the darker
   page background there makes it far less visually intrusive). */
.ns-light .ns-wordmark-chip {
	background: transparent;
}

/* ==========================================================================
   NaijaSubway+ pill — matches app/(tabs)/profile.tsx status pill treatment.
   Uses --ns-action so it re-tints correctly in dark mode (the app's own
   version hardcodes light-mode green here — fixed in this rebuild).
   ========================================================================== */

.ns-plus-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: color-mix(in srgb, var(--ns-action) 12%, transparent);
	color: var(--ns-action);
	font-size: 12px;
	line-height: 16px;
	font-family: var(--ns-font-regular);
	border-radius: var(--ns-radius-full);
	padding: 4px 10px;
}

/* ==========================================================================
   PRIMARY NAVIGATION — X/Twitter structure: persistent vertical rail on
   desktop (the left sidebar, template-parts/secondary-left-nav.php), fixed
   bottom bar on mobile (.ns-bottomnav below). Mirrors app/(tabs)/_layout.tsx
   tab order: Explore / Your Route / Community (Groups+Forums) / Profile /
   Messages.
   🚀 CHANGED (task #708): this used to also describe a centered link row in
   the top bar (`.ns-topbar__nav` / `.ns-topbar__link`) that duplicated the
   exact same primary destinations a second time on every desktop-width
   page — removed (see template-parts/top-nav.php's own doc-comment) now
   that the left sidebar is the single, real "vertical rail" this comment
   already claimed to describe. `.ns-topbar` itself stays: it still hosts
   the Share Update / sign-in / avatar / theme-toggle actions on the right.
   ========================================================================== */

.ns-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--ns-topbar-bg);
	border-bottom: 1px solid var(--ns-divider);
	padding: 0 24px;
	height: 64px;
	position: sticky;
	top: 0;
	z-index: 100;
}
.ns-topbar__actions { display: flex; align-items: center; gap: 12px; }
.ns-topbar__avatar-link img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.ns-topbar__theme-toggle {
	background: transparent;
	border: none;
	color: var(--ns-topbar-text-muted);
	font-size: 18px;
	cursor: pointer;
	padding: 6px;
	border-radius: var(--ns-radius-md);
}
.ns-topbar__theme-toggle:hover { background: var(--ns-topbar-action-subtle); color: var(--ns-topbar-action); }
/* 🚀 UPDATED (task #447): was a single static "◐" half-circle glyph
   regardless of the active theme. Now real moon/sunny Ionicons, swapped by
   the current state (moon = "tap to go dark", sunny = "tap to go light") —
   same explicit-.ns-dark-class + prefers-color-scheme dual handling every
   other themed rule in this file already uses. */
.ns-topbar__theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
.ns-topbar__theme-toggle .ns-theme-toggle__icon--sunny { display: none; }
.ns-dark .ns-topbar__theme-toggle .ns-theme-toggle__icon--moon { display: none; }
.ns-dark .ns-topbar__theme-toggle .ns-theme-toggle__icon--sunny { display: inline-block; }
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .ns-topbar__theme-toggle .ns-theme-toggle__icon--moon { display: none; }
	html:not(.ns-light) .ns-topbar__theme-toggle .ns-theme-toggle__icon--sunny { display: inline-block; }
}
/* "Sign in" uses the subtle-button treatment sitewide, but that variant's
   green-on-tinted-green only has contrast against a light surface -- fix it
   for the always-dark topbar bg specifically. */
.ns-topbar .ns-btn-subtle { background: var(--ns-topbar-action-subtle); color: var(--ns-topbar-action); }

/* 🚀 ADDED (bug report — "Bring the mode switch to the left bar" / "Remove
   the top bar"): the #ns-theme-toggle button (markup + JS untouched, still
   the same element footer.php's click handler and header.php's pre-paint
   script both target by ID) moved from the always-dark .ns-topbar into
   secondary-left-nav.php's ordinary light/dark sidebar. Its base rule above
   uses --ns-topbar-text-muted, a FIXED light lavender-gray (#BFBED0 in both
   light and dark mode — by design, since it only ever needed to read against
   one constant dark background). Left as-is in its new home it would repeat
   the exact same legibility bug the wordmark had after task #708's move:
   near-invisible on the sidebar's light-mode background. .ns-sidenav-toggle
   (added alongside .ns-topbar__theme-toggle on the moved button, not
   replacing it) overrides just the color with the theme-aware tokens every
   other sidebar control already uses. */
/* 🚀 RESTYLED (bug report — "restyle the mode switch, and clean up the
   borders"): the plain 1px hairline border added in the previous pass
   (task #823) sat on this small icon-only square looking like a stray
   outline rather than an intentional control — especially next to the
   perfectly round avatar it shares this row with. Swapped the border for
   a soft filled circle instead (same --ns-surface-raised token used for
   other "resting" chip/pill surfaces elsewhere in this file), which reads
   as a real tappable control without a hard edge, and rounds it to match
   the avatar beside it rather than the app's standard squarer radius. */
.ns-sidenav-toggle {
	color: var(--ns-text-muted);
	background: var(--ns-surface-raised);
	border: none;
	border-radius: var(--ns-radius-full);
	transition: background 0.15s ease, color 0.15s ease;
}
.ns-sidenav-toggle:hover {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}

.ns-bottomnav {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: var(--ns-surface);
	border-top: 0.5px solid var(--ns-divider);
	z-index: 100;
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.ns-bottomnav__list { display: flex; margin: 0; padding: 10px 0; list-style: none; }
.ns-bottomnav__item { flex: 1; text-align: center; }
.ns-bottomnav__link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ns-text-muted); }
.ns-bottomnav__link.is-active { color: var(--ns-action); }
.ns-bottomnav__label { font-family: var(--ns-font-bold); font-weight: 700; font-size: 11px; }

@media (max-width: 760px) {
	.ns-topnav__links { display: none; }
	.ns-bottomnav { display: block; }
	body { padding-bottom: 74px; }
}

/* ==========================================================================
   HOMEPAGE 3-COLUMN LAYOUT — left: categories/account quick nav (primary nav
   itself lives in the top bar, see above), center: feed, right: widgets +
   a separately-scoped ad slot (both real WP widget areas, functions.php).
   ========================================================================== */

.ns-layout {
	display: grid;
	/* 🚀 CHANGED (bug report — "Increase the width of the left bar"): 220px →
	   260px, giving the nav labels + the "Share Update | New Topic" bottom
	   actions more breathing room. Kept in sync with the 1200px breakpoint
	   below and every page-template/buddypress-reskin.css override that
	   hardcodes this same first column width (inline styles win over this
	   external rule, so each of those needed the same bump). */
	grid-template-columns: 260px minmax(0, 640px) 280px;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 16px 40px;
	/* 🚀 CHANGED (bug report — "Ensure the left and right bars have same
	   height as the middle bar"): was "start", which sizes each grid item to
	   its own content height — on most pages the center column (the feed) is
	   by far the tallest, leaving the left nav and right rail looking
	   short and floating against a much taller middle column. "stretch"
	   (the grid default access via align-items) makes every column's box
	   span the full row height (the tallest column's height), while content
	   inside each column still sits at its natural top-aligned position.
	   Both columns already have no background/border of their own (only the
	   .ns-card / widget elements inside them do), so the extra stretched
	   space is just transparent page background, not a visible blank box.
	   🚀 CORRECTION — this comment originally claimed "position: sticky below
	   still works exactly the same"; that was wrong (see the real fix and
	   explanation on .ns-layout__col-inner below) — stretching these columns
	   to full height is exactly what silently broke their sticky behavior. */
	align-items: stretch;
}
/* 🚀 ADDED (bug report — "Don't show the right widget in the message
   screen"): single.php only prints the .ns-layout__col--right <aside> when
   NOT on the Messages screen (see $ns_is_messages_screen there) and adds
   this modifier class instead. Widens the center column's cap from 640px to
   900px to actually use the freed-up 280px + gap — an inbox/thread view is
   exactly the kind of content that benefits from more width, unlike the
   640px cap chosen for the reading-width feed/profile layouts that keep
   their right rail. */
/* 🚀 UPDATED (bug report — "Increase the width of the message screen
   further to the right"): 900px still left a lot of the container's own
   1440px max-width (see below) empty on wide screens once the right rail
   was gone -- the two-pane inbox/thread view has nowhere near a text
   reading-width concern, so there's no reason to cap it at all. Switched
   the center column to minmax(0, 1fr) so it fills whatever room
   .ns-layout's own max-width allows, and raised that max-width from
   1440px (a leftover from when this same page still reserved a 280px
   right-rail column -- 260 + 900 + 280 = 1440) to 1720px so the two-panel
   inbox genuinely uses the extra horizontal space on a normal desktop
   viewport instead of floating in a narrower centered box. Consolidated
   here as the single source of truth for this page's grid -- see the now-
   removed body.my-messages .ns-layout rule in buddypress-reskin.css,
   which predated $ns_is_messages_screen and still assumed a 3-column
   260/900/280 layout. */
.ns-layout--no-right-rail {
	grid-template-columns: 260px minmax(0, 1fr) !important;
	max-width: 1720px !important;
}

.ns-layout__col--center { min-width: 0; }
/* 🚀 FIXED (bug report — "Ensure the left and right columns are sticky"):
   position:sticky used to live directly on .ns-layout__col--left/--right
   themselves, and that was fine back when "align-items: start" (see the
   comment above on .ns-layout) meant each column's own box was only as tall
   as its own content — short enough to visibly "stick" while the much
   taller center column scrolled past it. Task #821 switched the parent to
   "align-items: stretch" so these columns' BOXES now stretch to match the
   center column's full height (confirmed live via getComputedStyle: ~19000px
   tall, same as the page). A position:sticky element can only look "stuck"
   for the portion of scroll where there's still room between its own
   (short) height and its (tall) container's bottom edge — once the element's
   own box IS the full container height, that room is zero, so it silently
   stops sticking altogether and just scrolls away like a normal static
   block (confirmed live: scrolling 2000px moved it exactly -2000px, i.e. no
   stick at all). The two asks (equal-height columns + sticky columns) can't
   both be satisfied on the SAME box, so position:sticky moved off the outer
   (stretched, equal-height) column and onto a small inner wrapper — see
   .ns-layout__col-inner below — that assets/js/sticky-column-fix.js injects
   around each column's actual content on page load. The outer column here
   keeps stretching for the equal-height visual; the inner wrapper is short
   (its real content's natural height) and free to actually stick within it. */
.ns-layout__col--left,
.ns-layout__col--right { position: relative; }
/* 🚀 FIXED (bug report — "gap at the top of the columns... pushing the mode
   switch out of sight"): top:84px was a leftover from when this theme had a
   sitewide top bar of roughly that height (removed entirely in task #817) —
   position:sticky's "top" value isn't just a scroll-triggered offset, it's a
   hard minimum distance from the scrollport's top edge that the browser
   enforces immediately, even at scroll:0, if the element's natural position
   would otherwise sit closer to the top than that. Since .ns-layout's own
   grid padding-top is only 20px, every page was getting yanked down an
   extra 64px (confirmed live: getBoundingClientRect().top was 84 at
   scroll:0, not 20) before any scrolling had happened at all — shrinking the
   visible room left column's content had for its own last item (the
   account row + mode-switch button), pushing it below the fold on shorter
   viewports. Matching this to .ns-layout's own 20px padding-top removes that
   dead gap entirely; scrolled stickiness still works exactly the same, just
   with a smaller (and now actually intentional) clearance from the top. */
.ns-layout__col-inner { position: sticky; top: 20px; }

.ns-widget--ad { border: 1px dashed var(--ns-divider); box-shadow: none; }

/* 🚀 FIXED (task #707 — responsive review): this used to hide the LEFT nav
   column first at this breakpoint and keep the RIGHT (ads/widgets) column
   all the way down to a single-column mobile layout — backwards priority,
   since primary navigation is far more useful on a narrower screen than
   secondary widgets. Now keeps nav + main and drops the right column
   instead; the further breakpoint below additionally drops the nav once
   the fixed bottom tab bar (.ns-bottomnav, ≤760px) takes over primary
   navigation anyway. !important is required on the grid-template-columns
   rule because some pages (e.g. page-templates/community.php) set their
   own inline `style="grid-template-columns: ..."` on this same element
   (to drop the middle column's 640px cap for list-style pages), which
   otherwise beats a plain external rule at any width. */
@media (max-width: 1200px) {
	.ns-layout { grid-template-columns: 260px minmax(0, 1fr) !important; }
	.ns-layout__col--left { display: block !important; }
	.ns-layout__col--right { display: none !important; }
}

/* 🚀 ADDED (bug report — "Resize the nav bar to icon only when page is
   resized"): between the 1200px breakpoint above (which drops the right
   column but still shows the left nav at its full 220px, label-and-all) and
   the 760px breakpoint below (which drops the left nav completely once the
   fixed mobile .ns-bottomnav takes over), there was no intermediate step —
   the left column stayed at full width the entire way down to 760px. This
   narrows it to an icon-only rail instead of leaving it full to the last
   possible moment: labels (wrapped in .ns-sidenav-label, added alongside the
   existing icon markup — see secondary-left-nav.php) hide, the wordmark's
   text hides (leaving just the mark), the account name/handle hides (leaving
   just the avatar, still a real link to the profile), and the Share
   Update/New Topic quick actions — plain text buttons with no icon glyph of
   their own — hide outright rather than rendering as unreadable icon-less
   pills. */
@media (max-width: 960px) {
	.ns-layout { grid-template-columns: 72px minmax(0, 1fr) !important; }
	.ns-layout__col--left .ns-sidenav-label,
	.ns-layout__col--left .ns-sidenav-bottom-actions {
		display: none !important;
	}
	/* 🚀 UPDATED: the old text-only span is gone (wordmark.php now renders
	   two <img> lockups instead) — swap which image shows so the rail still
	   ends up icon-only, same as before this change. */
	.ns-layout__col--left .ns-wordmark-chip .ns-wordmark-full {
		display: none !important;
	}
	.ns-layout__col--left .ns-wordmark-chip .ns-wordmark-icon-only {
		display: block !important;
	}
	.ns-layout__col--left .ns-sidenav-list a {
		justify-content: center;
	}
	/* 🚀 UPDATED (sticky-column-fix, task #827): was
	   ".ns-layout__col--left > div:first-child" — since
	   assets/js/sticky-column-fix.js now wraps this column's real children
	   inside one new ".ns-layout__col-inner" div (see style.css's
	   .ns-layout__col-inner comment above), the column's own direct child is
	   always that wrapper now, not the wordmark div this rule targets. */
	.ns-layout__col--left .ns-layout__col-inner > div:first-child {
		text-align: center;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* 🚀 ADDED (bug report — "For every small screen sizes, ensure the left Nav
   bar is displayed but with icons only"): the 960px breakpoint above keeps
   the icon-only rail visible all the way down now (see the removed
   760px override), but its 72px width + 20px grid gap + 20px page padding
   starts eating a real chunk of a narrow phone's viewport (e.g. ~112px of
   a 375px-wide screen, on top of the fixed .ns-bottomnav along the bottom
   edge). Narrows the rail itself to 48px and tightens its icon padding to
   match, so it stays a slim, thumb-reachable rail rather than crowding the
   content column on the smallest phones. */
@media (max-width: 480px) {
	.ns-layout { grid-template-columns: 48px minmax(0, 1fr) !important; }
	.ns-layout__col--left .ns-sidenav-list a {
		padding-left: 8px;
		padding-right: 8px;
	}
}

.ns-sidenav-list { list-style: none; margin: 0; padding: 0; }
.ns-sidenav-list li { margin-bottom: 2px; }
.ns-sidenav-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--ns-radius-md);
	color: var(--ns-text-body);
	font-family: var(--ns-font-medium);
	font-size: 14px;
}
.ns-sidenav-list a:hover { background: var(--ns-action-subtle); color: var(--ns-action); text-decoration: none; }
.ns-sidenav-list .ns-count { color: var(--ns-text-faint); font-size: 12px; }

/* 🚀 REMOVED (bug report — "For every small screen sizes, ensure the left
   Nav bar is displayed but with icons only"): this used to drop the left
   nav column entirely at 760px, on the theory that the fixed .ns-bottomnav
   (which appears at this same breakpoint, see above) already covers
   primary navigation on mobile. Per this request, the left rail should
   stay visible at every small width instead of disappearing — it carries
   several destinations .ns-bottomnav doesn't (Groups, Forums, Bookmarks,
   Settings), and losing it entirely meant those were only reachable via
   the "More" overflow inside a page, not from a persistent rail. Removing
   this override lets the 960px breakpoint's icon-only treatment (72px
   column, labels/wordmark-text/account-name/bottom-actions hidden — see
   above) simply keep cascading all the way down instead of being
   clobbered back to a single column + hidden rail right after it. The
   440px breakpoint just below narrows the icon rail further (48px) so it
   and the fixed bottom tab bar both still fit comfortably on the
   narrowest phone widths. */

/* ==========================================================================
   AVATAR — initials-in-a-circle, 3-color palette (orange/blue/sand), matches
   the design handoff exactly. Used wherever a real photo isn't available.
   ========================================================================== */

.ns-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ns-radius-full);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	flex-shrink: 0;
}
.ns-avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.ns-avatar--md { width: 40px; height: 40px; font-size: 14px; }
.ns-avatar--lg { width: 48px; height: 48px; font-size: 16px; }
.ns-avatar--action { background: var(--ns-action-subtle); color: var(--ns-action); }
.ns-avatar--orange  { background: var(--ns-avatar-orange-bg); color: var(--ns-avatar-orange-fg); }
.ns-avatar--blue    { background: var(--ns-avatar-blue-bg); color: var(--ns-avatar-blue-fg); }
.ns-avatar--sand    { background: var(--ns-avatar-sand-bg); color: var(--ns-avatar-sand-fg); }

/* ==========================================================================
   GLOBAL SEARCH — inline combo box + results dropdown, shared by Explore
   and Your Route. Filter chips: All / Commuters / Stations / Discussions.
   ========================================================================== */

.ns-search-combo { position: relative; }
.ns-search-combo input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 16px 0 42px;
	border-radius: var(--ns-radius-full);
	border: 1px solid var(--ns-divider);
	background: var(--ns-surface);
	font-family: var(--ns-font-regular);
	font-size: 15px;
	color: var(--ns-text-body);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* 2026-11-12: the global focus outline drew a square, offset green ring
   around this pill (it doesn't follow border-radius in every browser).
   14 November: a second, heavier ring still appeared on click, offset and cut
   off on the left by a container that hides overflow. The focus state is now
   drawn entirely INSIDE the pill (border plus an inset 1px line, so 2px of
   green), and any outline or outer shadow from other sheets is switched off,
   so nothing can stick out or be clipped. */
.ns-search-combo input[type="search"]:hover { border-color: var(--ns-text-muted); }
.ns-search-combo :is(input[type="search"], input[type="search"]:hover):is(:focus, :focus-visible) {
	outline: none !important;
	outline-offset: 0 !important;
	border-color: var(--ns-action) !important;
	box-shadow: inset 0 0 0 1px var(--ns-action) !important;
}
.ns-search-combo:focus-within {
	outline: none !important;
	box-shadow: none !important;
}
.ns-search-combo input[type="search"]::placeholder { color: var(--ns-text-muted); opacity: 1; }
.ns-search-combo input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; height: 16px; width: 16px; cursor: pointer;
	background: currentColor; color: var(--ns-text-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ns-search-combo__icon { position: absolute; left: 15px; top: 14px; color: var(--ns-text-muted); pointer-events: none; z-index: 1; }
.ns-search-combo:focus-within .ns-search-combo__icon { color: var(--ns-action); }
.ns-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
	z-index: 20;
	overflow: hidden;
}
.ns-search-chips { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--ns-divider); flex-wrap: wrap; }
.ns-chip {
	padding: 6px 14px;
	border: none;
	border-radius: var(--ns-radius-full);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	background: var(--ns-surface-raised);
	color: var(--ns-text-muted);
}
.ns-chip.is-active { background: var(--ns-action); color: var(--ns-on-action); }

/* #hashtag links rendered by inc/hashtag-linkify.php (task #445) inside
   activity/topic/reply/blog content — plain inline links to /hashtag/{tag}/,
   deliberately not styled as a filled chip (that look is reserved for the
   Trending Tags widget's own non-clickable labels) since these appear inline
   in running text, same visual register as an @mention link. */
.ns-hashtag-link { color: var(--ns-action); font-weight: 700; text-decoration: none; }
/* Kept its deliberate hover underline (this is an inline in-text link, same
   visual register as an @mention — the underline is the affordance that
   distinguishes it from surrounding prose, not a stray default) — task #326
   only adds the missing color shift, doesn't strip this one. */
.ns-hashtag-link:hover { color: var(--ns-action-pressed); text-decoration: underline; }

.ns-search-results { max-height: 320px; overflow-y: auto; }
.ns-result-row { padding: 12px 16px; border-bottom: 1px solid var(--ns-divider); display: flex; gap: 10px; align-items: center; }
.ns-result-row:hover { background: var(--ns-surface-raised); }
.ns-result-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: var(--ns-radius-full);
	background: var(--ns-action-subtle);
	color: var(--ns-action);
	flex-shrink: 0;
	white-space: nowrap;
}
.ns-result-badge--info { background: var(--ns-info-subtle); color: var(--ns-info); }
/* Task #688 — "See all results for …" row, same block-row shape as
   .ns-search-save-row below it, just in the action color since it's the
   primary way out of this preview dropdown into the real results page. */
.ns-search-see-all-row {
	display: block;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: var(--ns-action);
	border-top: 1px solid var(--ns-divider);
}
.ns-search-save-row {
	display: block;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	border-top: 1px solid var(--ns-divider);
}
.ns-search-empty { padding: 20px; text-align: center; font-size: 14px; color: var(--ns-text-faint); }

/* ==========================================================================
   INFO BANNER — "ranked not chronological" / cold-start hints, etc.
   ========================================================================== */

.ns-banner-info {
	background: var(--ns-action-subtle);
	border-radius: var(--ns-radius-lg);
	padding: 14px 18px;
	font-size: 14px;
	color: var(--ns-action-pressed);
	font-weight: 600;
}
.ns-dark .ns-banner-info,
@media (prefers-color-scheme: dark) {
	.ns-banner-info { color: var(--ns-action); }
}

/* ==========================================================================
   POST CARD — shared by Explore, Your Route, group walls. Real BuddyPress
   activity entry gets wrapped in this markup (CSS-only re-skin — the "⋮"
   report/block menu is new custom markup layered on top, not a BuddyPress
   template edit).
   ========================================================================== */

.ns-post-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; position: relative; }
.ns-post-card__head { display: flex; gap: 10px; align-items: center; }
.ns-post-card__meta { flex: 1; min-width: 0; }
.ns-post-card__name { font-weight: 700; font-size: 14px; color: var(--ns-text-heading); }
.ns-post-card__reason { font-size: 11px; color: var(--ns-text-faint); font-weight: 600; }
.ns-post-card__handle { font-size: 12px; color: var(--ns-text-faint); }
.ns-post-card__body { font-size: 14px; color: var(--ns-text-body); line-height: 1.5; }
.ns-post-card__actions { display: flex; gap: 18px; padding-top: 6px; border-top: 1px solid var(--ns-divider); font-size: 14px; color: var(--ns-text-muted); font-weight: 600; }

.ns-post-menu-btn { background: none; border: none; color: var(--ns-text-faint); cursor: pointer; font-size: 16px; padding: 0 4px; }
.ns-post-menu {
	position: absolute;
	right: 14px;
	top: 46px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-md);
	box-shadow: var(--ns-shadow-card);
	z-index: 5;
	overflow: hidden;
	min-width: 120px;
}
.ns-post-menu button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 16px;
	border: none;
	background: none;
	font-family: var(--ns-font-regular);
	font-size: 12px;
	color: var(--ns-text-body);
	cursor: pointer;
}
.ns-post-menu button.is-destructive { color: var(--ns-destructive); }
.ns-post-menu button:hover { background: var(--ns-surface-raised); }

/* ==========================================================================
   PEOPLE YOU MAY KNOW — rail widget (Your Route right rail) + full list page
   ========================================================================== */

.ns-pymk-item { display: flex; gap: 10px; align-items: center; }
.ns-pymk-item__name { font-size: 14px; font-weight: 700; color: var(--ns-text-heading); }
.ns-pymk-item__name-link, .ns-pymk-item__name-link:visited { color: inherit; text-decoration: none; }
.ns-pymk-item__name-link:hover, .ns-pymk-item__name-link:focus-visible { text-decoration: underline; }
.ns-pymk-item__avatar-link { display: block; width: 100%; height: 100%; }
.ns-pymk-item__name .bp-verified-badge { margin-left: 4px; vertical-align: -2px; }
.ns-pymk-item__reason { font-size: 11px; color: var(--ns-text-faint); }
.ns-pymk-connect-btn {
	padding: 6px 12px;
	border-radius: var(--ns-radius-full);
	border: none;
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 11px;
	cursor: pointer;
	flex-shrink: 0;
}
.ns-pymk-connect-btn.is-sent { background: var(--ns-surface-raised); color: var(--ns-text-muted); }

/* ==========================================================================
   SEGMENTED TOGGLE — Community's Groups/Forums switch, Legal's tab switch
   ========================================================================== */

.ns-segmented { display: inline-flex; background: var(--ns-surface-raised); border-radius: var(--ns-radius-full); padding: 4px; margin-bottom: 24px; }
/* Phones (15 October, staging crawl): the three Hub tabs were 12px wider than
   the column. The control now fits the column and the tabs share it. */
@media (max-width: 480px) {
	.ns-segmented { display: flex; max-width: 100%; }
	.ns-segmented > button, .ns-segmented > a { flex: 1 1 0; min-width: 0; padding: 8px 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.ns-segmented button,
.ns-segmented a {
	padding: 8px 22px;
	border: none;
	border-radius: var(--ns-radius-full);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	background: transparent;
	color: var(--ns-text-muted);
}
.ns-segmented button.is-active,
.ns-segmented a.is-active { background: var(--ns-surface); color: var(--ns-action); text-decoration: none; }
/* 🚀 FIXED (task #326): had a hover rule that only reset text-decoration —
   no actual color feedback for the non-active tab you're hovering. */
.ns-segmented a:hover { color: var(--ns-text-heading); text-decoration: none; }

/* ==========================================================================
   DIRECTORY ROWS — group/forum listing rows (Community teaser, Groups,
   Forums directories)
   ========================================================================== */

.ns-directory-row { padding: 16px; display: flex; gap: 14px; align-items: center; }
.ns-directory-row + .ns-directory-row { border-top: 1px solid var(--ns-divider); }
.ns-directory-row__title { font-weight: 700; color: var(--ns-text-heading); font-size: 15px; }
.ns-directory-row__desc { font-size: 14px; color: var(--ns-text-muted); }
.ns-directory-row__meta { font-size: 12px; color: var(--ns-text-faint); margin-top: 4px; }
.ns-directory-row__stats { text-align: right; font-size: 12px; color: var(--ns-text-faint); flex-shrink: 0; }

/* 🚀 ADDED (task #327): shared "← Back to X" breadcrumb-arrow link — was two
   independent inline-styled `<a>` tags (single.php's "← Subway Blogs",
   forgot-password.php's "← Back to sign in") with no background-hover chip
   at all, unlike every OTHER back-arrow control on the site
   (.ns-group-header__back, the Subway Spins reel back button). Gives both
   the same small rounded-chip hover treatment for consistency. */
.ns-back-arrow-link,
.ns-forward-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	margin: -4px -8px;
	border-radius: var(--ns-radius-sm);
	text-decoration: none;
	color: var(--ns-text-body);
	font-weight: 600;
}
.ns-back-arrow-link:hover,
.ns-forward-arrow-link:hover {
	background: var(--ns-surface-raised);
	color: var(--ns-action);
	text-decoration: none;
}
/* 🚀 ADDED (task #447): .ns-forward-arrow-link mirrors .ns-back-arrow-link
   for "Older →"/"Open tuning panel →"-style forward links — same hover chip,
   icon after the label instead of before. */
.ns-forward-arrow-link { flex-direction: row; }

.ns-widget--footer-links { font-size: 11px; color: var(--ns-text-faint); display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 4px 2px 0; }
.ns-widget--footer-links a { color: var(--ns-text-faint); text-decoration: none; }
/* 🚀 ADDED (task #326): footer Privacy/Terms/Contact links had no hover
   state at all — inherited nothing since these are more specific than the
   base `a:hover` rule but never redeclared their own. */
.ns-widget--footer-links a:hover { color: var(--ns-action); text-decoration: none; }

/* ==========================================================================
   SETTINGS — hub + 5 sub-pages (password/notifications/privacy/interests/
   blocked). Mirrors app/settings/index.tsx's grouped-rows layout: a label,
   a card, repeat.
   ========================================================================== */

.ns-settings-subnav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.ns-settings-subnav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--ns-radius-md);
	font-family: var(--ns-font-medium);
	font-size: 14px;
	color: var(--ns-text-body);
}
/* 🚀 FIXED (task #326): hover previously only changed the background —
   text color stayed identical to the resting state, so hovering a row gave
   almost no visible feedback. */
.ns-settings-subnav a:hover { background: var(--ns-surface-raised); color: var(--ns-action); text-decoration: none; }
.ns-settings-subnav a.is-active { background: var(--ns-action-subtle); color: var(--ns-action); }

.ns-settings-group-label {
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--ns-text-muted);
	margin: 24px 2px 8px;
}
.ns-settings-group-label:first-child { margin-top: 0; }

/* Task #447 — website icon system. ns_icon() (inc/icons.php) inlines the
   real Ionicons SVG source so the site's icon chrome matches the app's
   Ionicons-only icon set instead of raw emoji/text placeholders. Every icon
   inherits `color` via currentColor, so this one rule is all any inline
   icon needs for correct sizing + baseline alignment, in both flex rows
   (nav, settings, badges) and running text ("👥 128 members"-style spots). */
.ns-icon { display: inline-block; flex-shrink: 0; vertical-align: -4px; }
.ns-back-arrow-link .ns-icon,
.ns-forward-arrow-link .ns-icon { vertical-align: 0; }
/* Shared "icon + short heading text" pattern (e.g. "✨ Groups You May Like"). */
.ns-heading-icon-label { display: inline-flex; align-items: center; gap: 6px; }

.ns-settings-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
}
.ns-settings-row + .ns-settings-row { border-top: 1px solid var(--ns-divider); }
.ns-settings-row__left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ns-settings-row__icon { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ns-text-muted); }
.ns-settings-row__stack { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ns-settings-row__label { font-family: var(--ns-font-medium); font-size: 14px; color: var(--ns-text-body); }
.ns-settings-row__sublabel { font-size: 12px; color: var(--ns-text-faint); }
.ns-settings-row__chevron { display: inline-flex; align-items: center; color: var(--ns-text-faint); flex-shrink: 0; }
a.ns-settings-row { text-decoration: none; }
/* 🚀 FIXED (task #326): background-only hover, label text never visibly
   reacted to the cursor — the __chevron is the one bit that now shifts to
   the action color so the row still reads as clickable without recoloring
   the label itself (multiple sub-labels/icons live inside this row). */
a.ns-settings-row:hover { background: var(--ns-surface-raised); text-decoration: none; }
a.ns-settings-row:hover .ns-settings-row__chevron { color: var(--ns-action); }

/* Toggle switch — checkbox styled as a track+thumb, real form control underneath. */
.ns-switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; }
.ns-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ns-switch__track {
	position: absolute;
	inset: 0;
	background: var(--ns-divider);
	border-radius: var(--ns-radius-full);
	transition: background-color 0.15s ease;
	pointer-events: none;
}
.ns-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	background: #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(var(--ns-shadow-ink), 0.2);
	transition: transform 0.15s ease;
	pointer-events: none;
}
.ns-switch input:checked ~ .ns-switch__track { background: var(--ns-action); }
.ns-switch input:checked ~ .ns-switch__thumb { transform: translateX(18px); }
.ns-switch input:disabled ~ .ns-switch__track { opacity: 0.5; }
.ns-switch input:focus-visible ~ .ns-switch__track { outline: 2px solid var(--ns-action); outline-offset: 2px; }

/* Visibility pills (Profile Visibility: Public/Members/Connections) — reuses
   .ns-chip's shape but as a 3-way exclusive picker rather than a filter row. */
.ns-pill-grid { display: flex; gap: 8px; margin-top: 12px; }
.ns-pill-grid button {
	flex: 1;
	padding: 10px 8px;
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
	color: var(--ns-text-muted);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.ns-pill-grid button.is-active { background: var(--ns-action-subtle); border-color: var(--ns-action); color: var(--ns-action); }

/* Interests chip grid — multi-select, reuses .ns-chip's base look. */
.ns-interest-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.ns-interest-grid button.ns-chip { padding: 8px 16px; font-size: 14px; }

/* 🚀 FIXED (color-review handoff): was rgba(224, 91, 53, 0.3) — same wordmark-
   orange-as-danger-accent issue as .ns-form-message--error above. */
.ns-settings-danger-row { border-color: var(--ns-destructive-subtle); }

/* ==========================================================================
   SUBWAY SPINS — full-bleed vertical reels page (page-templates/subway-
   spins.php). Ported 1:1 from the app's app/media-reels.tsx +
   components/MediaVerticalFeed.tsx + MediaViewer.tsx: full-screen black
   canvas, scroll-snap one item per view, bottom action-row scrim (heart +
   comment, NOT a TikTok-style right-side icon stack — see the app's actual
   actionRow style, horizontal not vertical), floating circular back button.
   This is intentionally always-dark chrome regardless of site light/dark
   mode, exactly like the app's reels screen is unconditionally black.

   🚀 FIXED (color-review handoff): every color below used to be a hardcoded
   literal (#000000 canvas, rgba(0,0,0,x) scrims, #FF3B5C liked heart, an
   unguarded #6CC4A4 link with no light-mode fallback — a live ~1.9:1 AA
   failure). Now tokenized: --ns-player-bg / --ns-scrim / --ns-on-scrim /
   --ns-like / --ns-action. These tokens hold the same fixed values in both
   light and dark mode (this chrome doesn't respond to the site toggle), so
   tokenizing changes nothing visually except the two real bugs it fixes. */

body.ns-spins-body { padding-bottom: 0 !important; overflow: hidden; }
#ns-content.ns-chrome-hidden { display: block; }

.ns-spins-page {
	position: fixed;
	inset: 0;
	background: var(--ns-player-bg);
	z-index: 20;
}

.ns-spins-feed {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
}

.ns-spin {
	position: relative;
	width: 100%;
	height: 100vh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: var(--ns-player-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ns-spin video,
.ns-spin img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--ns-player-bg);
}

.ns-spin__action-row {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 20px 36px;
	background: var(--ns-scrim);
}

.ns-spin__action-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--ns-on-scrim);
	font-family: var(--ns-font-semibold);
	font-size: 14px;
}

.ns-spin__action-btn svg { flex-shrink: 0; }
/* 🚀 FIXED (color-review handoff): was #FF3B5C — close to --ns-destructive
   but not equal, so "liked" and "delete" read as the same red family under
   two different values. --ns-like is its own token now. */
.ns-spin__action-btn.is-liked svg { color: var(--ns-like); fill: var(--ns-like); }

.ns-spin__empty {
	color: var(--ns-on-scrim);
	text-align: center;
	padding: 0 32px;
}
/* 🚀 FIXED (color-review handoff), WITH A DEVIATION FROM THE HANDOFF'S
   LITERAL SUGGESTION: the handoff's README says this was hardcoded
   #6CC4A4 with "no mode guard" and reads ~1.9:1 "on white" in light mode —
   flagging var(--ns-action) as the fix. But .ns-spin__empty only ever
   renders inside .ns-spin, which has background: var(--ns-player-bg) —
   always near-black in BOTH modes (this whole Spins chrome is deliberately
   mode-invariant, see the section comment above). It never sits on white.
   var(--ns-action) would actually regress this in light mode, where it
   resolves to a dark green (#0C6E4A, ~2:1 on near-black) — the same "light-
   on-dark regardless of toggle" problem --ns-topbar-action already solves
   for the navy topbar. Using that token here instead: it keeps the same
   always-bright mint-green value (#6CC4A4) this literal already was, just
   token-backed instead of a raw hex, with no contrast regression. The
   review document's contrast scan likely checked this hex in isolation
   without its real (always-dark) parent — Subway Spins was an acknowledged
   gap in what the reviewer could see live (README §7). */
.ns-spin__empty a { color: var(--ns-topbar-action); font-weight: 700; }

.ns-spins-chrome-btn {
	position: fixed;
	top: 50px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--ns-scrim);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ns-on-scrim);
	cursor: pointer;
	z-index: 30;
}
.ns-spins-back-btn { left: 20px; }
.ns-spins-add-btn { right: 20px; }
/* 🚀 ADDED (task #327): the back/add chrome buttons floating over the
   Subway Spins reel had no hover state — resting bg is already a filled
   semi-opaque dark circle, so hover just deepens it (a color shift would be
   invisible/wrong here since these sit over arbitrary photo/video content,
   not a themed surface — same reasoning as MediaVerticalFeed.tsx's own
   always-dark reel chrome in the app, which this page mirrors). */
.ns-spins-chrome-btn:hover,
.ns-spins-chrome-btn:focus-visible {
	background: rgba(var(--ns-shadow-ink), 0.75);
}

.ns-spin__loading-more {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--ns-on-scrim);
	font-size: 12px;
	opacity: 0.7;
	z-index: 5;
}

/* Comments drawer — matches the app's DiscussionDrawer: slide-up bottom
   sheet, drag pill handle, tap-outside-to-dismiss, NOT inline on the reel. */
.ns-spin-comments-overlay {
	position: fixed;
	inset: 0;
	background: var(--ns-scrim);
	z-index: 40;
	display: none;
}
.ns-spin-comments-overlay.is-open { display: block; }

.ns-spin-comments-sheet {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	max-height: 72vh;
	background: var(--ns-surface);
	border-radius: 20px 20px 0 0;
	display: flex;
	flex-direction: column;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}
.ns-spin-comments-overlay.is-open .ns-spin-comments-sheet { transform: translateY(0); }

.ns-spin-comments-drag-pill { width: 36px; height: 4px; border-radius: 999px; background: var(--ns-divider); margin: 10px auto; }
.ns-spin-comments-title { text-align: center; margin: 0 0 12px; }
.ns-spin-comments-list { flex: 1; overflow-y: auto; padding: 0 16px; }
.ns-spin-comment-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ns-divider); }
.ns-spin-comment-row__name { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 14px; color: var(--ns-text-heading); margin: 0 0 2px; }
.ns-spin-comment-row__body { font-size: 14px; color: var(--ns-text-body); margin: 0; }
.ns-spin-comments-composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ns-divider); }
.ns-spin-comments-composer input {
	flex: 1;
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: var(--ns-radius-full);
	border: 1px solid var(--ns-divider);
	background: var(--ns-surface-raised);
	color: var(--ns-text-body);
	font-family: var(--ns-font-regular);
	font-size: 14px;
}

/* Add Spin modal — lightweight upload form (title comment removed, video-
   only, matches the app's video-only "Add Spin" picker). */
.ns-add-spin-overlay {
	position: fixed;
	inset: 0;
	background: var(--ns-scrim);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 40;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ns-add-spin-overlay.is-open { display: flex; animation: ns-am-fade .18s ease both; }
.ns-add-spin-modal {
	position: relative;
	width: min(440px, 100%);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	background: var(--ns-surface);
	color: var(--ns-text-body);
	border-radius: 24px;
	padding: 22px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35), 0 0 0 1px var(--ns-divider);
	animation: ns-am-rise .24s cubic-bezier(.2, .8, .2, 1) both;
}
.ns-am-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ns-am-title { margin: 0 0 4px; font-family: var(--ns-font-semibold); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--ns-text-heading); }
.ns-am-sub { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ns-text-muted); }
.ns-am-close {
	flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -8px 0 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--ns-text-muted); cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.ns-am-close:hover { background: var(--ns-surface-raised); color: var(--ns-text-heading); }

/* The real file input stays for the upload code; the drop zone is its face. */
.ns-am-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ns-am-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 188px; padding: 24px 16px; margin: 0 0 14px;
	border: 1.5px dashed var(--ns-divider); border-radius: 18px;
	background: var(--ns-surface-raised);
	text-align: center; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.ns-am-drop[hidden] { display: none; }
.ns-am-drop:hover, .ns-am-drop:focus-visible { border-color: var(--ns-action); outline: none; }
.ns-am-drop.is-over { border-color: var(--ns-action); background: var(--ns-action-subtle); transform: scale(1.01); }
.ns-am-drop-icon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px;
	background: var(--ns-action-subtle); color: var(--ns-action);
	transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.ns-am-drop:hover .ns-am-drop-icon, .ns-am-drop.is-over .ns-am-drop-icon { transform: translateY(-2px) scale(1.06); }
.ns-am-drop-title { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 15px; color: var(--ns-text-heading); }
.ns-am-drop-hint { font-size: 13.5px; color: var(--ns-text-muted); }
.ns-am-drop-meta { margin-top: 10px; font-size: 12.5px; color: var(--ns-text-muted); }
@media (hover: none) { .ns-am-drag-hint { display: none; } }

/* Selected video */
.ns-am-preview { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding: 10px; border-radius: 18px; background: var(--ns-surface-raised); }
.ns-am-preview[hidden] { display: none; }
.ns-am-preview video { flex: 0 0 auto; width: 84px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
.ns-am-preview-info { min-width: 0; flex: 1 1 auto; }
.ns-am-file-name { margin: 0 0 2px; font-family: var(--ns-font-semibold); font-weight: 600; font-size: 14.5px; color: var(--ns-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-am-file-meta { margin: 0 0 10px; font-size: 13px; color: var(--ns-text-muted); }
.ns-am-preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ns-am-link {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
	border: 1px solid var(--ns-divider); border-radius: 999px; background: transparent;
	font-family: var(--ns-font-semibold); font-weight: 600; font-size: 13px; color: var(--ns-text-heading);
	cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.ns-am-link:hover { background: var(--ns-surface); border-color: var(--ns-text-muted); }
.ns-am-link:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }
.ns-am-link.is-danger { color: var(--ns-destructive); }

/* Caption */
.ns-am-caption { position: relative; }
.ns-add-spin-modal textarea {
	display: block; width: 100%; box-sizing: border-box;
	min-height: 76px; max-height: 160px; padding: 12px 14px 26px;
	border-radius: 14px; border: 1px solid var(--ns-divider);
	background: var(--ns-surface-raised); color: var(--ns-text-body);
	font-family: var(--ns-font-regular); font-size: 15px; line-height: 1.5;
	resize: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.ns-add-spin-modal textarea::placeholder { color: var(--ns-text-muted); }
.ns-add-spin-modal textarea:focus { outline: none; border-color: var(--ns-action); box-shadow: 0 0 0 3px var(--ns-action-subtle); }
.ns-add-spin-modal textarea:disabled { opacity: .7; }
.ns-am-count { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: var(--ns-text-muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.ns-am-count.is-near { color: var(--ns-destructive); }

/* Progress and status */
.ns-am-progress { margin-top: 14px; }
.ns-am-progress[hidden] { display: none; }
.ns-am-bar { height: 6px; border-radius: 999px; background: var(--ns-surface-raised); overflow: hidden; }
.ns-am-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ns-action); transition: width .25s ease; }
.ns-add-spin-status { min-height: 0; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ns-text-muted); }
.ns-add-spin-status:empty { display: none; }
.ns-add-spin-status.is-error { color: var(--ns-destructive); }
.ns-add-spin-status.is-success { color: var(--ns-action); }

.ns-add-spin-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ns-add-spin-actions .ns-btn-action[disabled] { opacity: .45; cursor: not-allowed; }
.ns-add-spin-modal.is-busy .ns-add-spin-actions .ns-btn-action[disabled] { opacity: .85; cursor: progress; }

@media (max-width: 520px) {
	.ns-add-spin-overlay { align-items: flex-end; padding: 0; }
	.ns-add-spin-modal { width: 100%; border-radius: 24px 24px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); animation-name: ns-am-up; }
	.ns-add-spin-actions > * { flex: 1 1 0; }
}
@keyframes ns-am-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ns-am-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ns-am-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ns-add-spin-overlay.is-open, .ns-add-spin-modal, .ns-am-drop, .ns-am-drop-icon { animation: none !important; transition: none !important; }
}
.ns-settings-danger-row .ns-settings-row__label { color: var(--ns-destructive); }

/* Task #311 — card/list view toggle for the Subway Blog directory
   (page-templates/community-blogs.php). One shared item markup, styled two
   different ways purely via the parent's modifier class + a persisted
   localStorage preference (ns-blog-view), same convention as the site's
   light/dark theme toggle in header.php/footer.php (ns-theme key). */
.ns-blog-view-toggle { display: flex; gap: 8px; }
.ns-blog-view-toggle button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--ns-radius-full);
	border: 1px solid var(--ns-divider);
	background: var(--ns-surface);
	color: var(--ns-text-muted);
	font-family: var(--ns-font-medium, var(--ns-font-regular));
	font-size: 14px;
	cursor: pointer;
}
.ns-blog-view-toggle button.is-active {
	background: var(--ns-action);
	border-color: var(--ns-action);
	color: var(--ns-on-action);
}

.ns-blog-list--list .ns-blog-item {
	display: flex;
	gap: 14px;
	padding: 16px;
}
.ns-blog-list--list .ns-blog-item + .ns-blog-item { margin-top: 14px; }
.ns-blog-list--list .ns-blog-item__thumb { flex-shrink: 0; width: 96px; height: 96px; }
.ns-blog-list--list .ns-blog-item__body { flex: 1; min-width: 0; }

.ns-blog-list--card {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.ns-blog-list--card .ns-blog-item {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}
.ns-blog-list--card .ns-blog-item__thumb { width: 100%; height: 140px; }
.ns-blog-list--card .ns-blog-item__body { padding: 14px; }
.ns-blog-list--card .ns-blog-item__thumb .ns-blog-item__thumb-fallback,
.ns-blog-list--list .ns-blog-item__thumb .ns-blog-item__thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ns-surface-raised);
	font-size: 28px;
}
@media (max-width: 640px) {
	.ns-blog-list--card { grid-template-columns: 1fr 1fr; }
}

/* 🚀 ADDED (task #331 — accessibility + cookie consent pass)
   ============================================================ */

/* --- Screen-reader-only text (WordPress core's standard utility class —
   this theme never defined it, so it had no effect anywhere it might
   already have been used; also backs the new homepage <h1> below, task
   #332 SEO pass) --- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* --- Skip-to-content link (header.php) ---
   Visually hidden until keyboard-focused, then jumps above the nav so
   keyboard/screen-reader users don't have to tab through the top nav +
   secondary left nav on every single page just to reach the real content. */
.ns-skip-link {
	position: absolute;
	top: -999px;
	left: 0;
	z-index: 10000;
	background: var(--ns-action);
	color: var(--ns-on-action, #FFFFFF);
	padding: 12px 20px;
	font-family: var(--ns-font-bold);
	font-size: 14px;
	border-radius: 0 0 var(--ns-radius-md) 0;
	text-decoration: none;
}
.ns-skip-link:focus {
	top: 0;
	outline: 2px solid var(--ns-on-action, #FFFFFF);
	outline-offset: -4px;
}

/* --- Sitewide baseline focus-visible ring ---
   A safety net for any interactive element that doesn't already have its
   own explicit :focus-visible treatment — keyboard users should never hit
   an element with zero focus indicator anywhere on the site. Elements with
   their own more specific focus style (buttons, .ns-field, .ns-switch,
   etc.) already override this harmlessly. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ns-action);
	outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Cookie consent banner (template-parts/cookie-consent-banner.php) --- */
.ns-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9998;
	max-width: 640px;
	margin: 0 auto;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg, 16px);
	box-shadow: 0 8px 32px rgba(var(--ns-shadow-ink), 0.18);
	padding: 18px 20px;
}
.ns-cookie-banner[hidden] { display: none; }
.ns-cookie-banner p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ns-text-body);
}
.ns-cookie-banner a { color: var(--ns-action); }
.ns-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ns-cookie-banner__prefs {
	display: none;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ns-divider);
}
.ns-cookie-banner__prefs[data-ns-prefs-open="true"] { display: block; }
.ns-cookie-banner__pref-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
}
.ns-cookie-banner__pref-row + .ns-cookie-banner__pref-row { border-top: 1px solid var(--ns-divider); }
.ns-cookie-banner__pref-label {
	font-family: var(--ns-font-bold);
	font-size: 14px;
	color: var(--ns-text-heading);
	margin: 0 0 2px;
}
.ns-cookie-banner__pref-desc {
	font-size: 12px;
	color: var(--ns-text-muted);
	margin: 0;
}
@media (max-width: 480px) {
	.ns-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
}

/* --- Announcement banner (task #615/#692/#696; template-parts/announcement-banner.php,
   inc/banner-announcement.php). Renders in normal document flow, above the
   topbar (printed on wp_body_open, the first thing inside <body> — see that
   file's header comment) rather than position:fixed pinned to the viewport.
   Task #696 fix: it used to be position:fixed while the sticky .ns-topbar
   below it kept its own in-flow position — nothing reserved space for the
   fixed banner, so it visually overlapped the topbar on every load. Being a
   normal in-flow block removes the bug by construction: the topbar's sticky
   position simply starts below wherever the banner's real, flowed height
   ends, and it scrolls away naturally with the rest of the page header
   instead of staying pinned — the right behavior for a dismissible
   announcement strip, not a persistent chrome element.
   Colors map from the `style` field straight onto this theme's existing
   semantic tokens rather than introducing new hardcoded hex values:
   info=--ns-info, warning=--ns-warning, promo=--ns-action (brand accent),
   critical=--ns-destructive. --- */
.ns-announcement-banner {
	position: relative;
	z-index: 500;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 10px 20px;
	font-size: 14px;
	line-height: 1.4;
	background: var(--ns-info-subtle);
	color: var(--ns-info);
	border-bottom: 1px solid var(--ns-divider);
}
.ns-announcement-banner[hidden] { display: none; }
.ns-announcement-banner__image {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}
.ns-announcement-banner__body {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}
.ns-announcement-banner__title { font-family: var(--ns-font-bold); }
.ns-announcement-banner__cta {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}
.ns-announcement-banner__dismiss {
	flex-shrink: 0;
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
}
.ns-announcement-banner--warning { background: var(--ns-warning-subtle); color: var(--ns-warning); }
.ns-announcement-banner--promo { background: var(--ns-action-subtle); color: var(--ns-action-pressed); }
.ns-announcement-banner--critical { background: var(--ns-destructive-subtle); color: var(--ns-destructive); }
@media (max-width: 480px) {
	.ns-announcement-banner { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
}

/* ==========================================================================
   SIDEBAR: Subway Updates / Subway Rolls "Show More" widgets (tasks
   #333/#334) + NaijaSubway+ upsell widget (task #335). See
   assets/js/show-more.js and template-parts/sidebar-trend-widgets.php /
   template-parts/plus-upsell-widget.php for the markup/JS these style.
   ========================================================================== */

.ns-show-more__list { display: flex; flex-direction: column; }
.ns-show-more__item { padding: 8px 0; }
.ns-show-more__item + .ns-show-more__item { border-top: 1px solid var(--ns-divider); }
/* Without this, an item's own `display: flex` (e.g. .ns-trend-row below) ties
   the browser's default `[hidden] { display: none }` UA rule on specificity
   and wins on source order, so a hidden item would still render. Bumping
   specificity here (class + attribute) restores the expected "hidden really
   means hidden" behavior for assets/js/show-more.js's collapsed items. */
.ns-show-more__item[hidden] { display: none; }

.ns-show-more__toggle {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 8px 0 0;
	border: none;
	border-top: 1px solid var(--ns-divider);
	background: none;
	color: var(--ns-action);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 12px;
	text-align: center;
	cursor: pointer;
}
.ns-show-more__toggle:hover { color: var(--ns-action-hover, var(--ns-action)); text-decoration: underline; }

.ns-trend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
}
.ns-trend-row__label {
	color: var(--ns-text-body);
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	/* flex:1 + min-width:0 so a long title still truncates correctly with
	   ellipsis when it's the row's only child (Subway Rolls, no count
	   sibling to compete with for space) as well as when a count sibling
	   is present (Subway Updates). */
	flex: 1 1 auto;
	min-width: 0;
}
a.ns-trend-row__label { text-decoration: none; }
a.ns-trend-row__label:hover { color: var(--ns-action); text-decoration: underline; }
.ns-trend-row__count {
	flex-shrink: 0;
	font-size: 11px;
	color: var(--ns-text-faint);
	white-space: nowrap;
}

/* News sidebar widget (task #1209) — two-line row (title + source/time meta)
   instead of .ns-trend-row's single-line label+count, since a real headline
   doesn't reliably fit on one line the way a hashtag/topic-title does. */
.ns-news-row { display: flex; flex-direction: column; gap: 2px; }
.ns-news-row__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--ns-text-body);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ns-news-row__title:hover { color: var(--ns-action); text-decoration: underline; }
.ns-news-row__meta { font-size: 11px; color: var(--ns-text-faint); }

/* 🚀 FIXED (color-review handoff): was rgba(147, 51, 234, 0.18) — a stock
   #9333EA purple that exists in no token, bordering the one surface this
   palette promotes to gold. */
.ns-plus-upsell-widget { border: 1px solid var(--ns-premium-border); }

/* Dark accent, 14 October 2026: soft jade #6CC4A4 replaces the bright mint
   #2FD08C across the site (links, icons, focus rings, active tabs, filled
   buttons). Same hue family, about a third less saturated: calmer on the dark
   indigo, contrast 9.4:1 on the page background. Pressed: #57AE8E. */

.cmplz-cookiebanner{background:var(--ns-surface)!important;color:var(--ns-text-body)!important;border:1px solid var(--ns-divider)!important;border-radius:var(--ns-radius-xl)!important;box-shadow:var(--ns-shadow-modal)!important;font-family:var(--ns-font-regular)!important;max-width:420px!important}.cmplz-cookiebanner .cmplz-header{background:transparent!important;padding:20px 20px 0!important;align-items:center}.cmplz-cookiebanner .cmplz-logo{display:none}.cmplz-cookiebanner .cmplz-title{color:var(--ns-text-heading)!important;font-family:var(--ns-font-semibold)!important;font-weight:600!important;font-size:17px!important}.cmplz-cookiebanner .cmplz-close{color:var(--ns-text-muted)!important;cursor:pointer;transition:color .15s ease}.cmplz-cookiebanner .cmplz-close:hover{color:var(--ns-text-heading)!important}.cmplz-cookiebanner .cmplz-close svg{width:14px;height:14px}.cmplz-cookiebanner .cmplz-divider{background:var(--ns-divider)!important;height:1px!important;border:none!important}.cmplz-cookiebanner .cmplz-body{padding:16px 20px 0!important}.cmplz-cookiebanner .cmplz-message{color:var(--ns-text-body)!important;font-size:14px!important;line-height:1.6!important}.cmplz-cookiebanner .cmplz-categories{margin:14px 0 0}.cmplz-cookiebanner .cmplz-category{background:var(--ns-surface-raised)!important;border-radius:var(--ns-radius-md)!important;border:none!important;margin-bottom:8px;padding:10px 14px}.cmplz-cookiebanner .cmplz-category summary{cursor:pointer;list-style:none}.cmplz-cookiebanner .cmplz-category summary::-webkit-details-marker{display:none}.cmplz-cookiebanner .cmplz-category-header{display:flex;align-items:center;gap:8px;width:100%}.cmplz-cookiebanner .cmplz-category-title{color:var(--ns-text-heading)!important;font-family:var(--ns-font-medium)!important;font-weight:500!important;font-size:14px!important;flex:1}.cmplz-cookiebanner .cmplz-always-active{color:var(--ns-text-faint)!important;font-size:11px!important}.cmplz-cookiebanner .cmplz-icon svg{fill:var(--ns-text-muted)!important;width:14px;height:14px}.cmplz-cookiebanner .cmplz-description{color:var(--ns-text-muted)!important;font-size:13px!important;line-height:1.5!important;padding-top:8px}.cmplz-cookiebanner .cmplz-consent-checkbox{accent-color:var(--ns-action);width:18px;height:18px}.cmplz-cookiebanner .cmplz-links a,.cmplz-cookiebanner .cmplz-documents a{color:var(--ns-action)!important;font-size:13px!important;text-decoration:none!important}.cmplz-cookiebanner .cmplz-links a:hover,.cmplz-cookiebanner .cmplz-documents a:hover{color:var(--ns-action-pressed)!important;text-decoration:underline!important}.cmplz-cookiebanner .cmplz-buttons{display:flex;flex-direction:column;gap:10px;padding:16px 20px 20px;margin:0}.cmplz-cookiebanner .cmplz-btn{display:block;width:100%;box-sizing:border-box;text-align:center;border:none!important;border-radius:var(--ns-radius-md)!important;padding:12px 20px!important;font-family:var(--ns-font-semibold)!important;font-weight:600!important;font-size:15px!important;cursor:pointer;text-decoration:none!important;transition:background-color .15s ease,color .15s ease}.cmplz-cookiebanner .cmplz-btn.cmplz-accept{background:var(--ns-action)!important;color:var(--ns-on-action)!important}.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover{background:var(--ns-action-pressed)!important}.cmplz-cookiebanner .cmplz-btn.cmplz-deny,.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences,.cmplz-cookiebanner .cmplz-btn.cmplz-manage-options{background:var(--ns-action-subtle)!important;color:var(--ns-action)!important}.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover,.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover,.cmplz-cookiebanner .cmplz-btn.cmplz-manage-options:hover{color:var(--ns-action-pressed)!important}#cmplz-manage-consent .cmplz-btn.cmplz-manage-consent{display:inline-block;width:auto;background:var(--ns-surface-raised)!important;color:var(--ns-text-muted)!important;border:none!important;border-radius:var(--ns-radius-full)!important;padding:8px 16px!important;font-family:var(--ns-font-medium)!important;font-weight:500!important;font-size:12px!important;cursor:pointer;transition:color .15s ease}#cmplz-manage-consent .cmplz-btn.cmplz-manage-consent:hover{color:var(--ns-text-heading)!important}

#ns-page-loader{position:fixed;inset:0;z-index:999999;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0f172a;opacity:1;transition:opacity .35s ease}#ns-page-loader.is-hiding{opacity:0;pointer-events:none}#ns-page-loader .ns-wordmark{opacity:0;transform:scale(.85);animation:ns-loader-mark-in .48s cubic-bezier(.34,1.2,.4,1) forwards,ns-loader-mark-pulse 1.8s ease-in-out .48s infinite alternate}#ns-page-loader .ns-wordmark:hover{text-decoration:none}#ns-page-loader .ns-wordmark img.ns-wordmark-full{height:44px;max-width:80vw;object-fit:contain;width:auto;margin-right:0;display:block;animation:ns-loader-mark-tilt 3.4s ease-in-out .48s infinite alternate}#ns-page-loader .ns-wordmark img.ns-wordmark-icon-only,#ns-page-loader .ns-wordmark img.ns-wordmark-full--light{display:none!important}#ns-page-loader .ns-page-loader__track{position:relative;width:120px;height:2px;margin-top:26px;border-radius:1px;background:#ffffff29;overflow:hidden;opacity:0;animation:ns-loader-fade-in .4s ease .32s forwards}#ns-page-loader .ns-page-loader__dot{position:absolute;top:-3px;left:-8px;width:8px;height:8px;border-radius:50%;background:var(--ns-action, #0E7C52);animation:ns-loader-slide 1.15s ease-in-out infinite alternate}@keyframes ns-loader-mark-in{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1.04)}}@keyframes ns-loader-mark-pulse{0%{transform:scale(1.04)}to{transform:scale(1)}}@keyframes ns-loader-mark-tilt{0%{transform:rotate(-2.5deg)}to{transform:rotate(2.5deg)}}@keyframes ns-loader-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ns-loader-slide{0%{left:-8px}to{left:calc(100% - 8px)}}@media (prefers-reduced-motion: reduce){#ns-page-loader .ns-wordmark{opacity:1;transform:none;animation:none}#ns-page-loader .ns-wordmark img{animation:none;transform:none}#ns-page-loader .ns-page-loader__track{opacity:1;animation:none}#ns-page-loader .ns-page-loader__dot{animation:none;left:calc(50% - 4px)}}
#ns-page-loader{animation:ns-loader-failsafe .35s ease 4.5s forwards}@keyframes ns-loader-failsafe{to{opacity:0;visibility:hidden;pointer-events:none}}
/*
BuddyPress / bbPress CSS-ONLY re-skin.

Deliberately does NOT touch any BuddyBoss Platform or bbPress template PHP —
every selector below targets real, existing markup/class names from the
installed plugin version (verified against the actual template source, not
guessed). This preserves 100% of the existing JS-driven interactivity
(follow buttons, group join/leave, remove-connection modal, avatar upload,
activity like/comment, reply forms) while applying the app's color,
typography, and spacing tokens on top.

Loaded with a dependency on the 'bp-nouveau' handle (BuddyBoss Platform's own
stylesheet) so it always loads after and wins on cascade — see functions.php.
A handful of !important flags are used deliberately where BuddyBoss's own
CSS is more specific than a plain class selector would otherwise beat.
*/

/* ==========================================================================
   GLOBAL: base button shape + the app's single action color
   ========================================================================== */

.buddypress .buddypress-wrap button,
.buddypress .buddypress-wrap a.button,
.buddypress .buddypress-wrap input[type="submit"],
.buddypress .buddypress-wrap input[type="button"],
.buddypress .buddypress-wrap input[type="reset"],
.bbp-submit-wrapper .button,
.group-button {
	font-family: var(--ns-font-semibold) !important;
	font-weight: 600 !important;
	border-radius: var(--ns-radius-md) !important;
	border: none !important;
	background: var(--ns-action) !important;
	color: var(--ns-on-action) !important;
	box-shadow: none !important;
}
.buddypress .buddypress-wrap button:hover,
.buddypress .buddypress-wrap a.button:hover,
.buddypress .buddypress-wrap input[type="submit"]:hover,
.group-button:hover {
	background: var(--ns-action-pressed) !important;
	color: var(--ns-on-action) !important;
}

/* 🚀 FIXED (bug report): the Explore/Your Route "What's happening on your
   route?" composer-teaser pill (front-page.php / your-route.php) is a plain
   <button> nested inside #buddypress.buddypress-wrap — the GLOBAL button
   rule immediately above matches it too, since it doesn't distinguish real
   BuddyPress action buttons from this theme's own custom controls, and
   stamps it with the solid brand-green fill + white text !important. That
   silently overrides the pill's own inline "white bar with a light-gray
   inset label" styling, which is why it was rendering as a flat,
   unreadable block instead of the intended search-bar-style teaser. Scoped
   overrides here restore the pill's own look, using !important only
   because that's what's needed to out-rank the global rule above.
   🚀 FIXED (task #499 follow-up): the selector below never actually matched
   — it required TWO class ancestors, `.buddypress` and `.buddypress-wrap`,
   but (per this same comment's own description above) the real wrapper is
   `#buddypress.buddypress-wrap`: an ID, not a class, named "buddypress".
   Neither front-page.php nor your-route.php's <body> carries a literal
   class="buddypress" either (confirmed live: body class is `home-page
   bp-nouveau home wp-singular page-template…`). So none of these
   declarations ever applied, and the pill fell through to the bare
   <button> UA default — flat #f0f0f0 fill, square corners, no shadow, in
   both light and dark mode. Rescoped to the wrapper's real id. */
#buddypress.buddypress-wrap .ns-composer-pill {
	background: var(--ns-surface) !important;
	border-radius: var(--ns-radius-lg) !important;
	box-shadow: var(--ns-shadow-card) !important;
	color: inherit !important;
}
#buddypress.buddypress-wrap .ns-composer-pill:hover {
	background: var(--ns-surface) !important;
	color: inherit !important;
}
#buddypress.buddypress-wrap .ns-composer-pill .ns-composer-pill__label {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-text-faint) !important;
}

/* Secondary/outline-style actions (Like, Edit, Delete, View Conversation,
   Load More, "not following yet" state) — subtle fill instead of solid. */
.bp-secondary-action,
.buddypress .buddypress-wrap a.button.outline,
.buddypress .buddypress-wrap a.button.small.outline,
.group-button.join-group {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
}
.bp-secondary-action:hover,
.buddypress .buddypress-wrap a.button.outline:hover {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action-pressed) !important;
}

/* 🚀 FIXED (bug report — "Timeline 'Loading' is badly styled in both
   modes"): the entry-level Activity "Load More" link IS an
   `a.button.outline` (bp-nouveau's activity-loop.php ~L29) — the exact
   element the two rules just above are meant to restyle — but on this
   theme's custom page templates (member Timeline included) it never
   actually applied, for the same dead ".buddypress .buddypress-wrap"
   ancestor reason diagnosed and fixed elsewhere in this file (confirmed
   live: el.closest('.buddypress') → null). Left completely unstyled, it
   fell through to BuddyBoss core's own hardcoded, LIGHT-MODE-ONLY colors
   (bp-nouveau buddypress.css ~L5604: #fafafa background, #eee border, #555
   text) — a stark light-grey box with dark-grey text that looks broken
   sitting on this theme's dark page background, in EITHER site theme,
   since none of it is token-based. This is also the exact element this
   site's own sitewide infinite-scroll (infinite-scroll-core.js, task #324)
   auto-clicks near the bottom of the feed after swapping its text to
   "Loading…" (buddypress-activity.js loadMoreActivities()), so it's what
   the user saw appear mid-scroll. Re-declared here against the same
   proven ".activity-list" prefix used everywhere else in this file for
   this bug class — additive, doesn't touch the (real, working) rules
   above for pages that do have a genuine .buddypress ancestor. */
.activity-list .load-more,
.activity-list .load-newest {
	background: transparent !important;
	border: none !important;
	margin: 12px 0 !important;
}
.activity-list .load-more a.button.outline,
.activity-list .load-newest a.button.outline {
	display: inline-block !important;
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
	border-radius: var(--ns-radius-md) !important;
	font-family: var(--ns-font-semibold) !important;
	font-weight: 600 !important;
	padding: 10px 20px !important;
}
.activity-list .load-more a.button.outline:hover,
.activity-list .load-more a.button.outline:focus,
.activity-list .load-newest a.button.outline:hover,
.activity-list .load-newest a.button.outline:focus {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action-pressed) !important;
	box-shadow: none !important;
}

/* Destructive actions (delete, leave group) get the app's destructive token */
.buddypress .buddypress-wrap a.button.delete-activity,
.group-button.leave-group {
	background: var(--ns-destructive-subtle) !important;
	color: var(--ns-destructive) !important;
}

/* Pending/disabled state */
.group-button.pending,
.buddypress .buddypress-wrap .button.pending {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-text-muted) !important;
}

/* ==========================================================================
   MEMBER / GROUP HEADER (cover-image-container, item-header-*)
   Shared markup structure between members/single/member-header.php and
   groups/single/group-header.php.
   ========================================================================== */

#cover-image-container,
.item-header-wrap {
	background: var(--ns-surface) !important;
	border-bottom: 1px solid var(--ns-divider);
}
/* 🚀 FIX (bug report — "remove the dark mode borders in profile header
   area"): this container's own border-bottom sits at the very bottom of
   the WHOLE header block — the same visual line as .bb-user-content-wrap's
   own border-bottom just above it (that element frames the metrics/badges
   with a top+bottom band; see the "MEMBER PROFILE — header metrics bar"
   block further down this file). With the header tightened (this session's
   earlier "too much space" pass), those two independent borders now land
   close enough together to read as a doubled hairline rather than one
   clean divider — confirmed live via screenshot, worst in dark mode where
   --ns-divider resolves to a visible #2C2A4E against the #14132A surface
   (same root cause the #object-nav border fix below already flagged for
   this exact token pair). Killing THIS outer border in dark mode leaves
   .bb-user-content-wrap's own bottom border as the single line above the
   tab bar — the light-mode pair reads fine (much lower contrast) so only
   dark mode is touched, same dual .ns-dark + prefers-color-scheme pattern
   used throughout this file. */
.ns-dark #cover-image-container,
.ns-dark .item-header-wrap {
	border-bottom-color: transparent;
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) #cover-image-container,
	html:not(.ns-light) .item-header-wrap {
		border-bottom-color: transparent;
	}
}

.user-nicename,
.bb-bp-group-title {
	font-family: var(--ns-font-bold) !important;
	color: var(--ns-text-heading) !important;
	/* FIXED: BuddyBoss core (bp-nouveau/includes/functions.php) injects
	   `#buddypress div#item-header-cover-image h2 { text-shadow: 0px 0px 3px
	   rgba(0,0,0,0.8); }` inline for legibility over a cover-photo
	   background. Our redesigned header (task #742) sits on a plain
	   surface, not a photo, so that shadow just reads as a stray dark halo
	   behind the name — most visible in light mode against the white
	   background. The color override above was already winning on
	   specificity/!important; text-shadow was simply never included. */
	text-shadow: none !important;
}

/* CORRECTED (task #350): these three rules originally read
   ".header-meta-wrap .item-meta" etc. — that wrapper class doesn't exist
   live (see the long comment on .bb-user-content-wrap further down), so
   this whole rule was dead and item-meta/mention-name/separator rendered
   in BuddyBoss's own default text color instead of the app's muted token.
   Re-scoped to the real live container. */
.bb-user-content-wrap .item-meta,
.bb-user-content-wrap .mention-name,
.bb-user-content-wrap .separator,
.bp-group-meta {
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-regular);
	font-size: 14px;
}

/* Cover photo + avatar — premium re-skin (task #350, corrected after the
   avatar-gets-clipped bug reported live). The rounded-corners +
   overflow:hidden rule below originally targeted #item-header-cover-image
   — the WRONG element. Real DOM (confirmed live): #cover-image-container
   has two children, siblings, not parent/child: #header-cover-image (the
   actual <img class="header-cover-img"> cover photo) and
   #item-header-cover-image (the avatar + name/meta wrapper — a
   misleadingly-named box that has nothing to do with the cover photo).
   Putting overflow:hidden on #item-header-cover-image did nothing for the
   photo's corners and instead clipped its own child, #item-header-avatar,
   the moment its negative margin-top pulled it above that box's own top
   edge — exactly the "avatar is covered by the cover" bug. Fixed by
   rounding the REAL cover element instead, and removing overflow/radius
   from the avatar's actual container so nothing clips it. */
#header-cover-image {
	/* Spec (NaijaSubway Profile.dc.html): border-radius: var(--ns-radius-lg)
	   (16px), not --ns-radius-xl (20px). Top-only here (not all 4 corners
	   like the mockup's flat gradient cover) since our cover is a real
	   photo the avatar overlaps at the bottom-left — rounding the bottom
	   corners too would visibly cut the photo under the avatar. */
	border-radius: var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
	overflow: hidden;
	/* 🚀 REMODELED (bug report — "too much space in the profile header,
	   adopt a structure that effectively uses space"): confirmed live via
	   computed-style inspection that the previous 225px cover height, on
	   top of a fully-stacked avatar-above-content column layout below it,
	   produced a ~708px-tall header for a content column that's only
	   ~556-640px wide — a near-square block dwarfing the actual page
	   content. 160px keeps the photo a real visual anchor without being
	   the single biggest line-item in the header's height budget. */
	height: 160px !important;
}
#header-cover-image .header-cover-img {
	border-radius: var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
	height: 160px !important;
	object-fit: cover;
}
@media (max-width: 560px) {
	#header-cover-image,
	#header-cover-image .header-cover-img {
		height: 128px !important;
	}
}
#item-header-avatar {
	margin-top: -56px !important;
	margin-left: 20px;
	z-index: 2;
	position: relative;
}
#item-header-avatar .avatar {
	border-radius: 50% !important;
	border: 4px solid var(--ns-surface);
	box-shadow: var(--ns-shadow-raised);
	background: var(--ns-surface);
}
#item-header-content {
	padding: 12px 20px 16px;
}

/* 🚀 REMODELED (bug report — "too much space in the profile header.
   Remodel it with premium UI/UX in mind, and adopt a structure that
   effectively uses space"): the previous layout here (task #350/#703, per
   the NaijaSubway Profile.dc.html design brief) stacked the avatar on its
   own full-width row above a second full-width row holding every other
   detail — visually clean, but on a real ~556-640px content column that
   meant name, handle, stats and badges each got their own full-width line
   with generous gaps, adding up to a header roughly the same height as it
   was wide. This switches to the premium social-app pattern (X/LinkedIn/
   GitHub): avatar overlapping the cover on the left, name/handle/stats/
   badges stacked in a column BESIDE it rather than below it — reclaiming
   the ~140px of vertical space the avatar's own row used to cost outright.
   Row layout only applies at real desktop/tablet widths (see the
   max-width:768 override below) — a phone-width column is too narrow to
   put a legible name next to a legible avatar, so small screens keep the
   previous stacked-column shape, just with the same tightened spacing
   applied throughout the metrics-bar block further down this file. */
.users-header #item-header-cover-image {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	padding: 0 20px 14px;
}
.users-header #item-header-content {
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	/* Small top offset so the name line doesn't sit flush with the row's
	   top edge (which lines up with the cover's bottom edge) — roughly
	   aligns the name's cap-height with the avatar's upper third. */
	padding-top: 8px;
}
.users-header #item-header-avatar {
	padding: 0 !important;
	margin-bottom: 0;
	flex: 0 0 auto;
	/* Less overlap than the old -72px: the cover itself is shorter now
	   (160px vs. 225px) and the avatar is smaller (120px vs. 150px), so the
	   same ~40% overlap ratio the design brief specified scales down to
	   this rather than leaving the avatar hanging unusually low relative
	   to the new, shorter cover. */
	margin-top: -48px !important;
}
.users-header #item-header-avatar .avatar {
	width: 120px !important;
	height: 120px !important;
	border-width: 3px;
}

/* 🚀 FIXED (task #703 premium pass, UPDATED for the row-layout remodel
   above): confirmed live that BuddyBoss's own native profile-header
   stylesheet (not this theme — a separate mu-plugin/parent-theme asset)
   carries its own responsive breakpoint that forces #item-header-avatar
   back to width:100%; text-align:center below ~768px, which this theme's
   own layout (row on wide screens, stacked column on narrow ones) never
   accounted for. Under that width this reverts to the same tightened
   stacked-column shape the pre-remodel design used at every width, rather
   than the side-by-side row (too cramped once the content column itself
   drops to phone width) — and reasserts left-alignment over BuddyBoss's
   own centered default, fixing the "online" status dot's stranded
   positioning as a side effect (confirmed live in the original task #703
   pass: its absolute offsets assume an avatar-sized box, which only holds
   true once width:auto/text-align:left win back over the native rule). */
@media (max-width: 768px) {
	.users-header #item-header-cover-image {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 0;
	}
	.users-header #item-header-avatar {
		width: auto !important;
		text-align: left !important;
		margin-left: 20px;
		margin-bottom: 8px;
		margin-top: -48px !important;
	}
	.users-header #item-header-content {
		width: 100%;
		text-align: left !important;
		padding: 0 20px 12px;
	}
}

/* Typography pass (task #353) — CORRECTED (task #354, against the
   authoritative NaijaSubway Profile.dc.html design-brief handoff, which is
   the pixel-accurate spec per that bundle's own README). The bump in the
   original task #353 pass went the WRONG direction — every value below
   made the type LARGER than the real design (explicit user feedback: "The
   fonts seems bigger"). Removed that override block entirely; the correct
   sizes now live at each element's real, definitive rule further down this
   file (name: line ~86, item-meta: ~1488, stat numbers: ~1533, stat
   labels: ~1510, badge pills: ~1574, tabs: line ~193) rather than being
   re-declared here, so there's exactly one source of truth per element. */
.bp-user .user-nicename {
	font-size: 22px !important;
}

.member-social-links a,
.network_profiles a {
	color: var(--ns-action) !important;
	text-decoration: none !important;
}
/* 🚀 ADDED (task #326): no hover state at all previously — these `!important`
   base rules tie the global style.css `a:hover` fix on specificity and win
   on source order (this file loads after style.css), so the sitewide fix
   alone never reached these. */
.member-social-links a:hover,
.network_profiles a:hover {
	color: var(--ns-action-pressed) !important;
	text-decoration: none !important;
}

.group-description {
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-regular);
}

/* ==========================================================================
   SECONDARY NAV (the Timeline/Profile/Photos/etc tab row — #object-nav)
   Shared between member and group single-item views.
   ========================================================================== */

#object-nav {
	background: var(--ns-surface) !important;
	border-bottom: 1px solid var(--ns-divider);
}
/* 🚀 FIX (bug report — "remove the border color at all levels" in dark
   mode): #object-nav's bottom border, the vertical dividers before Blog
   and before the "More ▾" trigger (both border-left, further down this
   file), and the "More" dropdown panel's own outer border all pull from
   the same --ns-divider token. In dark mode that token resolves to
   #2C2A4E (style.css) against a #14132A nav/panel surface — a visible
   hairline rather than the near-invisible one this file already flagged
   as a problem for activity cards (see the --ns-card-activity-border
   fix a few hundred lines down). Rather than soften it with another
   token, explicitly zero it out here per the literal request — mirrors
   the file's one existing .ns-dark + @media(prefers-color-scheme:dark)
   pairing pattern (see the .bbp_topic_create/.bbp_reply_create rules
   further down) so an explicit .ns-dark toggle and OS-level dark mode
   both get it, while a forced .ns-light class still wins over the OS
   media query. `border-color` only overrides the color channel of each
   border-* shorthand above, leaving width/style (and thus the divider's
   layout spacing) untouched. */
/* 🚀 UPDATED (backlog — "Apply a Liquid-Glass-style frosted panel to the
   More dropdown"): the panel selector that used to be listed here alongside
   the plain tab-bar dividers is deliberately removed — the whole point of
   the frosted-glass pass on .ns-object-nav-more__panel (below) is a real,
   visible --ns-glass-highlight edge, and zeroing border-color !important
   here was overriding that highlight straight back to invisible in dark
   mode specifically, the one place a glass edge reads best against a dark
   surface. The plain hairline dividers on the tab row itself (#object-nav,
   #blog-personal-li, the "More ▾" trigger's own left border) are untouched
   — this was always really about them, not the panel. */
.ns-dark #object-nav,
.ns-dark .bp-user #object-nav > ul > li#blog-personal-li,
.ns-dark .bp-user #object-nav > ul > li.ns-object-nav-more {
	border-color: transparent !important;
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) #object-nav,
	html:not(.ns-light) .bp-user #object-nav > ul > li#blog-personal-li,
	html:not(.ns-light) .bp-user #object-nav > ul > li.ns-object-nav-more {
		border-color: transparent !important;
	}
}
#object-nav ul li a {
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-bold) !important;
	font-weight: 700 !important;
	font-size: 14px;
	text-decoration: none !important;
}
#object-nav ul li.current a,
#object-nav ul li.selected a {
	color: var(--ns-action) !important;
	border-color: var(--ns-action) !important;
}
/* 🚀 RETIRED (bug report — hover text not turning theme green): this
   task #326 rule predates the #350/#354 underline-tab redesign further
   down this file (`.bp-user #object-nav ul li a:hover`), which correctly
   sets the green --ns-action hover color + transparent background. Left
   in place, this rule's :not(.current):not(.selected) chain gave it
   higher specificity ((1,3,3) vs (1,2,3)) and silently won on every real
   hover, overriding the newer green treatment with the old
   --ns-text-heading color. Confirmed live: hover computed color stayed
   #14132B (--ns-text-heading) instead of #0C6E4A (--ns-action) until this
   was removed. Superseded, not just duplicated — safe to retire outright. */

/* Member profile tab bar — premium re-skin (task #346). The wrapping,
   randomly-ordered plain-text row this replaces was the site's own
   #object-nav ul li a rules above, applied to BuddyBoss's default
   two-line-wrap layout with no visual grouping and no hover state. This
   turns it into a single-row, horizontally-scrollable pill nav (the same
   pattern Instagram/X use for profile tabs when there are more items than
   fit), reorders the tabs to match the app's own-profile tab order
   (design brief §5.3 — Explore Media, Profile, Timeline, Connections,
   Groups, Blog, Videos, Photos, Forums, Documents, Engagement, Email
   Invites), and appends the 3 BuddyBoss-native utility tabs that have no
   app-tab equivalent (Account, Notifications, Messages) at the end since
   they're reachable elsewhere in the app (Settings / bell / tab bar) but
   still need a home here. Reordered via explicit `order` on each tab's
   real #...-personal-li id (confirmed live via DOM inspection while
   logged in) rather than editing BuddyBoss's own nav-registration PHP, to
   keep this a CSS-only reskin. Only applies to the member (not group)
   #object-nav — groups keep their native tab order, which is already
   short enough not to need this. Scoped via body.bp-user (BuddyBoss's
   real body class on member-single pages — confirmed live; there is no
   ".members" body class, that was a wrong guess corrected here). */
.bp-user #object-nav {
	overflow: hidden;
	/* BuddyBoss's own default CSS puts a border-top on #object-nav too
	   (confirmed live: 1px solid #eee) — combined with the border-bottom
	   above, plus .bb-user-content-wrap's own border-bottom right above
	   this, that's 3 divider lines stacked in a ~20px band, reading as a
	   cluttered "boxed" tab bar instead of tabs just sitting on the page
	   with a single clean divider above the composer. Killing the native
	   top border leaves exactly one line above (after the metrics/badges)
	   and one below (before the composer). */
	border-top: none !important;
	background: transparent !important;
}
.bp-user #object-nav > ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	/* CORRECTED (task #354): spec spacing is gap:6px between tab buttons
	   (each button carries its own padding:10px 14px below), not the
	   previous margin-right:14px-per-anchor mechanism. */
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0 4px;
}
.bp-user #object-nav > ul::-webkit-scrollbar {
	display: none;
}
.bp-user #object-nav > ul > li {
	flex: 0 0 auto;
	margin: 0 !important;
	/* 🚀 FIXED (task #703 premium pass): BuddyBoss's own stock
	   `li.bp-personal-tab` ships a hardcoded light-gray background
	   (#eaeaea) that the #350 underline-tab redesign never neutralized —
	   only the `a` inside it was restyled. That left every tab sitting in
	   its own flat gray box, which reads as a busy "pill row" rather than
	   the clean, boxless underline-only tab bar #350's own doc comment
	   describes and the design-brief mockup shows. Confirmed live via
	   computed-style inspection: background rgb(234, 234, 234) on the
	   <li>, clashing hard against dark mode's card surface. */
	background: transparent !important;
}
/* 🚀 CLEANED (bug report — merge Video/Photos/Discover Media into "Media",
   Groups/Forums into "Community"): #video-personal-li, #media-personal-li,
   and #forums-personal-li no longer render at all — those 3 tabs are
   removed from #object-nav by naijasubway-profile-nav-simplify.php, folded
   into #explore-media-personal-li ("Media") and #groups-personal-li
   ("Community") respectively. Their order rules are gone too now — dead
   selectors targeting elements that don't exist. */
#explore-media-personal-li  { order: 1; }
#xprofile-personal-li       { order: 2; }
#activity-personal-li       { order: 3; }
#friends-personal-li        { order: 4; }
#groups-personal-li         { order: 5; }
#blog-personal-li           { order: 6; }
#badges-personal-li         { order: 7; }
#document-personal-li       { order: 10; }
#engagement-personal-li     { order: 11; }
#invites-personal-li        { order: 12; }
#settings-personal-li       { order: 13; }
#notifications-personal-li  { order: 14; }
#messages-personal-li       { order: 15; }
/* 🚀 FIX (live-verify pass): the JS-built "More ▾" trigger <li> (class
   .ns-object-nav-more, appended by profile-nav-overflow.js) has no id and so
   matched none of the rules above, leaving it at flex's default order:0 —
   which put it visually FIRST (order:0 sorts before order:1's Media), not
   last where every doc comment/screenshot/POC assumed it would land.
   Confirmed live: tab bar rendered "More ▾ Media Profile Timeline..." before
   this rule. Give it the highest order so it always trails Blog (order:6). */
.bp-user #object-nav > ul > li.ns-object-nav-more { order: 20; }

/* 🚀 FIXED (bug report — "#object-nav needs reorganization... focus on
   simplicity"): 15 tabs in one endless horizontally-scrolling row (the #346
   redesign above) reads as an undifferentiated wall of text. Two follow-up
   changes together fix this — this file only handles the visual half:
     1. naijasubway-profile-nav-simplify.php (mu-plugin) removes 2 of the 15
        tabs outright — Settings and Messages — since both already have a
        real entry point in the site's persistent left nav
        (template-parts/secondary-left-nav.php: "Settings" and "Chats"), so
        keeping them here a second time was pure duplication, not a real
        destination unique to this row.
     2. assets/js/profile-nav-overflow.js collapses the 4 lowest-traffic
        remaining tabs — Documents, Engagement, Email Invites, Notifications
        — into a single "More ▾" trigger + dropdown, the real interactive
        overflow menu the earlier CSS-only pass (see prior revision of this
        comment) deliberately avoided for lack of live-testing here. Having
        it move real <li>/<a> nodes rather than clone them means this can
        finally happen without touching BuddyBoss's own click-handling.
   Net result: Discover Media, Profile, Timeline, Connections, Groups, Blog,
   Videos, Photos, Forums, plus one "More ▾" trigger — 10 visible items
   instead of 15, with nothing actually lost (Documents/Engagement/Invites/
   Notifications are one click further, not gone). A thin divider still
   marks where the identity cluster ends and the content cluster begins. */
.bp-user #object-nav > ul > li#blog-personal-li {
	padding-left: 10px;
	margin-left: 4px !important;
	border-left: 1px solid var(--ns-divider);
}

/* The "More ▾" trigger + dropdown that assets/js/profile-nav-overflow.js
   builds around the 4 collapsed tabs. Kept visually consistent with this
   file's other dropdown panels (e.g. the "filtering"/"search" openers
   above) — same surface/divider/shadow tokens, so it doesn't look like a
   one-off. */
.bp-user #object-nav > ul > li.ns-object-nav-more {
	position: relative;
	padding-left: 10px;
	margin-left: 4px !important;
	border-left: 1px solid var(--ns-divider);
}
.bp-user #object-nav > ul > li.ns-object-nav-more > a.ns-object-nav-more__trigger {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	padding: 10px 14px;
	color: var(--ns-text-muted);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	text-decoration: none !important;
	cursor: pointer;
}
.bp-user #object-nav > ul > li.ns-object-nav-more:hover > a.ns-object-nav-more__trigger,
.bp-user #object-nav > ul > li.ns-object-nav-more.is-open > a.ns-object-nav-more__trigger,
.bp-user #object-nav > ul > li.ns-object-nav-more > a.ns-object-nav-more__trigger:focus,
.bp-user #object-nav > ul > li.ns-object-nav-more > a.ns-object-nav-more__trigger:focus-visible {
	/* 🚀 FIX (bug report — hover text should be theme green "at all levels"):
	   this selector is more specific than the generic
	   `.bp-user #object-nav ul li a:hover` rule above, so it was silently
	   winning for the trigger specifically and keeping it at
	   --ns-text-heading instead of the green --ns-action used everywhere
	   else on hover. Also added :focus/:focus-visible to match the
	   background-neutralization fix above — .is-open alone doesn't cover
	   the moment right after a click before any mouseleave. */
	color: var(--ns-action);
}
.bp-user #object-nav > ul > li.ns-object-nav-more.current > a.ns-object-nav-more__trigger {
	color: var(--ns-action);
	border-bottom-color: var(--ns-action);
}
.bp-user #object-nav > ul > li.ns-object-nav-more .ns-object-nav-more__caret {
	font-size: 10px;
	transition: transform 0.15s ease;
}
.bp-user #object-nav > ul > li.ns-object-nav-more.is-open .ns-object-nav-more__caret {
	transform: rotate(180deg);
}
/* 🚀 FIX (live-verify pass): #object-nav's own horizontal-scroll rules
   (`overflow-x: auto; overflow-y: hidden;` on the `> ul` above, plus
   `overflow: hidden` on #object-nav itself) clip any absolutely-positioned
   descendant that extends past the tab row — confirmed live, this panel
   rendered with `display:block` and a correct bounding rect but was
   completely invisible, clipped by an ancestor's overflow rather than any
   display/visibility issue. `position: fixed` (viewport-relative, not
   containing-block-relative to the clipped scroll ancestor) escapes that
   clipping; profile-nav-overflow.js computes top/left from the trigger's
   real position each time the panel opens (and closes it on scroll/resize,
   since a fixed panel can't track the scroll container the way absolute
   positioning would have). */
/* 🚀 UPDATED (backlog — "Apply a Liquid-Glass-style frosted panel to the
   More dropdown"): was a flat, fully opaque var(--ns-surface) fill with a
   plain --ns-divider hairline — every other floating/overlay surface this
   theme built after the Kinetic Minimalism + Glassmorphism pass (activity
   cards, the meta-strip badges above, guest-homepage's sign-in card) uses
   the same translucent + blurred treatment, and this dropdown was the one
   remaining solid-surface holdout. Same shared tokens, same pattern as
   .ns-activity-meta-strip__badge just above: color-mix() punches
   transparency into the exact ground-truth --ns-surface color (not a new,
   separately-maintained rgba value) so backdrop-filter has real content
   behind it to actually frost, and --ns-glass-highlight replaces the flat
   divider border for the same soft, light-catching edge every other glass
   surface uses. The inset top highlight (matching guest-homepage.css's
   sign-in card) adds the thin light sheen along the top edge that reads as
   "glass" rather than just "blur" — real object-nav content sits above the
   panel visually, unlike sparse guest-homepage backgrounds, so this uses a
   slightly higher opacity (78% vs the card's 68%) to keep menu text legible
   against whatever busy content happens to be behind it while still
   reading as translucent, not flat. */
.bp-user #object-nav > ul > li.ns-object-nav-more .ns-object-nav-more__panel {
	display: none;
	position: fixed;
	z-index: 500;
	min-width: 180px;
	background: color-mix(in srgb, var(--ns-surface) 78%, transparent);
	backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	-webkit-backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	border: 1px solid var(--ns-glass-highlight);
	border-radius: var(--ns-radius-md);
	box-shadow: var(--ns-shadow-raised), inset 0 1px 0 var(--ns-glass-highlight);
	padding: 6px;
}
.bp-user #object-nav > ul > li.ns-object-nav-more.is-open .ns-object-nav-more__panel {
	display: block;
}
/* 🚀 FIX (same task): --ns-shadow-raised literally resolves to the keyword
   `none` in dark mode (style.css — this theme's own "hairline borders
   instead of shadows" dark-mode convention, see that file's header comment).
   A comma-separated box-shadow list where one layer is the bare keyword
   `none` is invalid CSS as a whole, not just that one layer — confirmed
   live, the combined declaration above was computing to no box-shadow at
   all in dark mode, silently dropping the inset glass highlight along with
   the (correctly absent) drop shadow. Hardcoding just the inset layer here,
   without referencing --ns-shadow-raised at all, sidesteps the invalid-list
   problem entirely and keeps dark mode's real convention (glow/hairline, no
   drop shadow) while still getting the glass sheen this task asked for. */
.ns-dark .bp-user #object-nav > ul > li.ns-object-nav-more .ns-object-nav-more__panel {
	box-shadow: inset 0 1px 0 var(--ns-glass-highlight);
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .bp-user #object-nav > ul > li.ns-object-nav-more .ns-object-nav-more__panel {
		box-shadow: inset 0 1px 0 var(--ns-glass-highlight);
	}
}
/* Real BuddyBoss <li> nodes get relocated inside this panel by the JS — undo
   the horizontal-scroll-row treatment (inline-flex/nowrap/underline tabs)
   and lay them out as a plain vertical menu instead. */
.bp-user #object-nav .ns-object-nav-more__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bp-user #object-nav .ns-object-nav-more__list > li {
	/* 🚀 FIX (live-verify pass): BuddyBoss core's own mobile-width rule
	   (`.buddypress-wrap:not(.bp-single-vert-nav) .bp-navs li { background:
	   #eaeaea; }`, bp-nouveau/css/buddypress.css) is a descendant selector
	   keyed off #object-nav's own `.bp-navs` class, not off exact nesting —
	   so it still matches these relocated <li>s once profile-nav-overflow.js
	   moves the real DOM node into this nested list. The existing
	   `#object-nav > ul > li { background: transparent !important; }` rule
	   above only protects direct children of the top-level tab row and stops
	   matching the moment a node is relocated in here. Confirmed live: these
	   items showed BuddyBoss's #eaeaea gray fill at all times, not just on
	   hover. Same override, extended to this nested list. */
	flex: none;
	background: transparent !important;
}
.bp-user #object-nav .ns-object-nav-more__list > li > a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--ns-radius-sm);
	border-bottom: none !important;
	color: var(--ns-text-body);
	font-family: var(--ns-font-regular);
	font-weight: 400;
	font-size: 14px;
	white-space: nowrap;
	background: transparent;
}
.bp-user #object-nav .ns-object-nav-more__list > li > a:hover {
	/* 🚀 CHANGED (bug report — "remove background on hover"): matches the
	   sitewide convention this file uses elsewhere (action-row icons #644,
	   view-count pill, bookmark toggle) — hover state is color-only, no
	   background fill. Needs !important: BuddyBoss core's own hover rule
	   (`.bp-navs li:not(.current) a:hover { background: #ccc; }`, same
	   bp-nouveau/css/buddypress.css) has higher specificity (0,3,2) than
	   this un-flagged selector and was winning on real hover — confirmed
	   live via genuine pointer hover + computed-style inspection (a
	   background of rgb(204,204,204) appeared on hover, transparent
	   otherwise, and persisted even after this rule's background
	   declaration was first removed rather than overridden). */
	background: transparent !important;
	color: var(--ns-action);
}
.bp-user #object-nav .ns-object-nav-more__list > li.current > a,
.bp-user #object-nav .ns-object-nav-more__list > li.selected > a {
	color: var(--ns-action);
	font-family: var(--ns-font-bold);
	font-weight: 700;
}

/* 🚀 ADDED (bug report — merge Video/Photos/Discover Media into "Media",
   Groups/Forums into "Community"): spacing for the segmented sub-toggle
   naijasubway-profile-tabs-merge.php prints via bp_before_member_body — it's
   the first thing inside #item-body, directly under the #object-nav tab bar,
   so it needs breathing room above it that the shared .ns-segmented rule
   (style.css) doesn't provide on its own (that rule only sets
   margin-bottom, since community.php/legal pages don't sit flush under a
   tab bar the way this does). Horizontal padding matches this reskin's
   other #item-body content, which BuddyBoss's own default padding already
   provides everywhere else — only the missing top gap needs adding here. */
.ns-profile-tab-toggle {
	margin-top: 16px;
}

/* Underline style (task #350 revision) — the pill/filled-background
   treatment task #346 shipped read as too busy/heavy for 15 tabs in a
   row ("still looks bad" feedback + the design-brief mockup, which shows
   plain text tabs with just a colored underline on the active one, no
   background fill at all). Kept the single-row horizontal-scroll
   mechanics from #346 — they're still the right fix for 15 tabs not
   fitting a fixed-width row — just swapped the visual treatment. */
.bp-user #object-nav ul li a {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	/* CORRECTED (task #354): spec padding is 10px 14px per button, with
	   spacing between buttons coming from the parent ul's gap:6px above
	   (not a per-anchor margin-right). */
	padding: 10px 14px;
	margin: 0;
	border-bottom: 2px solid transparent;
	letter-spacing: 0.1px;
	text-decoration: none !important;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.bp-user #object-nav ul li a:hover,
.bp-user #object-nav ul li a:focus,
.bp-user #object-nav ul li a:focus-visible {
	/* 🚀 FIX (bug report — gray hover box still showing on main tab row, e.g.
	   "Connections"): same root cause as the "More" dropdown fix above —
	   BuddyBoss core's `.bp-navs li:not(.current) a:hover { background:
	   #ccc; }` (bp-nouveau/css/buddypress.css) is never neutralized for this
	   generic `ul li a:hover` selector, only for the dropdown-specific one.
	   Also switched hover color from --ns-text-heading to --ns-action (theme
	   green) per explicit request — hover state should read as green at
	   every level (main row + dropdown), not just active/current tabs.
	   🚀 FIX (bug report — "More" trigger still shows a solid gray box):
	   BuddyBoss core's actual paired rule is `a:hover, a:focus { background:
	   #ccc; }` — clicking the "More ▾" trigger to open its dropdown gives
	   the <a> real browser focus, which persists after the pointer moves
	   away (no :hover anymore, but :focus remains), so only neutralizing
	   :hover left the :focus half of that core rule free to paint the
	   trigger gray for as long as the panel stayed open. Added :focus and
	   :focus-visible here to close that gap. */
	background: transparent !important;
	color: var(--ns-action) !important;
}
.bp-user #object-nav ul li.current a,
.bp-user #object-nav ul li.selected a {
	color: var(--ns-action) !important;
	border-bottom-color: var(--ns-action) !important;
	font-family: var(--ns-font-bold) !important;
}

/* xprofile field table */
.profile-fields.bp-tables-user td.label {
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-medium);
}
.profile-fields.bp-tables-user td.data {
	color: var(--ns-text-body) !important;
}
.screen-heading.profile-group-title {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-bold);
}

/* ==========================================================================
   ACTIVITY STREAM
   ========================================================================== */

/* REVISED per explicit instruction: each post now carries the app's real
   PsychologicalFeedCard background — its own floating rounded card with a
   visible gap to the next one — instead of the earlier flat, undivided
   "X/Twitter row" treatment. The feed still reads as one clean single
   column (that part of the original X/Twitter direction stands); what
   changed is that individual posts are no longer flattened into one
   continuous surface. The outer <ul> is now just a spacing container, not
   a card itself. */
#activity-stream,
.activity-list.item-list.bp-list {
	background: transparent !important;
	/* 🚀 ADDED (user-reported, "too bright"): BuddyBoss's own core CSS
	   (buddypress.css ~L1416-1419) hardcodes ".activity-list.bp-list" with
	   "background: #fafafa; border: 1px solid #eee" — this rule already
	   killed the background, but never overrode "border", so that bright
	   near-white #eee outline around the ENTIRE feed was still rendering,
	   especially glaring in dark mode. Swapped for the theme's own thin,
	   mode-aware divider token. */
	border: 1px solid var(--ns-divider) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	display: flex !important;
	flex-direction: column;
	gap: 14px;
}

/* Scoped to the real BuddyBoss activity-item class specifically (not every
   <li> in the list) so custom, deliberately-distinct rows we inject
   ourselves — like the "Join the conversation" signup CTA in
   front-page.php, which uses .ns-card on purpose — aren't affected. Radius/
   shadow/border values match PsychologicalFeedCard.tsx's real
   `hierarchicalCardFrame` style (24px radius, 1px hairline border, resting-
   card shadow) rather than the site's smaller generic card radius, since
   this is the app's single most-repeated "hero" card. */
.activity-list .activity-item {
	/* 🚀 UPDATED (user-requested: "premium background color for Forum Reply,
	   Activity, and Group posts cards alongside the tier coloring"): this base
	   rule is what plain personal-update posts actually render with (Reply/
	   Group override it below, same as Topic/Repost already did) — was flat
	   var(--ns-surface) (identical to the page background), now the app's own
	   new "Activity" tier tint (see PsychologicalFeedCard.tsx's
	   premiumActivityCard/darkPremiumActivityCard), the lightest-weight of the
	   five tints since plain updates are the most common post type.
	 * 🚀 UPDATED (user-requested, "Kinetic Minimalism UI style with a touch
	   of Glassmorphism" for the cards): the tint above was a fully opaque
	   hex fill — color-mix() punches transparency into that exact same
	   ground-truth color (not a new, separately-maintained rgba value) so
	   backdrop-filter has something to actually frost. Kept the tier tint
	   itself per the user's explicit choice to keep each card type's own
	   color rather than flattening all five to one neutral glass surface.
	 * 🚀 REFRESHED (iOS 26 Liquid Glass pass, see style.css's :root token
	   block + naijasubway-v3 apps/mobile's packages/ui/src/glass.ts): added
	   --ns-glass-specular as a first background layer -- CSS's native
	   multi-layer background support means this sits on top of each tier's
	   own color-mix() tint below it without touching that tint's color or
	   opacity. Applied to all five tier rules below (Topic/Repost/Reply/
	   Group), not just this base rule, so every card tier gets the same
	   lit-glass edge consistently. */
	background: var(--ns-glass-specular), color-mix(in srgb, var(--ns-card-activity-bg) 68%, transparent) !important;
	backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	-webkit-backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	border-radius: 20px !important;
	/* 🚀 FIX (user-reported, dark-mode border too bright): was --ns-divider
	   directly — fine in light mode, but --ns-divider's dark value (#2B3752)
	   reads as a harsh outline against the dark card/page surfaces. --ns-card-
	   activity-border gives plain-activity cards a subtle, tier-matched
	   hairline instead, same idea as --ns-card-topic-border. */
	border: 1px solid var(--ns-card-activity-border) !important;
	box-shadow: var(--ns-shadow-card) !important;
	margin-bottom: 0 !important;
	padding: 18px !important;
	/* 🚀 ADDED (Kinetic Minimalism pass): a fast, front-loaded "snap" rather
	   than a slow drift — see :hover rule just below for the actual motion. */
	transition: transform 0.25s var(--ns-motion-snap), box-shadow 0.25s var(--ns-motion-snap), border-color 0.2s ease;
}
/* 🚀 ADDED (Kinetic Minimalism pass): a small, decisive lift on hover so the
   feed reads as tactile/responsive rather than a flat list of static boxes
   — the same "kinetic" hover-lift convention guest-homepage.css already uses
   on .submit-btn/.social-pill/.slang-card, applied here for consistency.
   Gated behind no-preference so a reduced-motion visitor keeps the plain,
   static card (no transform), matching that same established convention. */
@media (prefers-reduced-motion: no-preference) {
	.activity-list .activity-item:hover {
		transform: translateY(-3px);
		box-shadow: var(--ns-shadow-raised) !important;
	}
}

/* NS ADDITION (task #369): the base rule above gives every card one flat
   background, but PsychologicalFeedCard.tsx actually gives forum-topic and
   repost cards their own distinct tint (premiumSoothingTopicCard /
   premiumRepostCard) — reply and plain-activity cards share the default
   look in the app too, so only these two need an override. bbp_topic_create
   is a real BuddyPress activity-type class already relied on elsewhere in
   this file; repost has no native class to hook (it's detected from
   content, not activity type — see entry.php's $ns_is_repost), so entry.php
   stamps a dedicated `ns-is-repost` class onto the <li> for this to target.
 * 🚀 UPDATED (Kinetic Minimalism + Glassmorphism pass): same color-mix()
   translucency treatment as the base rule above, same reasoning — every
   tier keeps its own hue, just as a frosted tint instead of a flat fill.
   backdrop-filter itself isn't repeated here: it's set once on the base
   ".activity-item" rule above and cascades to every one of these more
   specific selectors untouched, since none of them override that property. */
.activity-list li.bbp_topic_create.activity-item {
	background: var(--ns-glass-specular), color-mix(in srgb, var(--ns-card-topic-bg) 68%, transparent) !important;
	border-color: var(--ns-card-topic-border) !important;
}
.activity-list li.ns-is-repost.activity-item {
	background: var(--ns-glass-specular), color-mix(in srgb, var(--ns-card-repost-bg) 68%, transparent) !important;
	border-color: var(--ns-card-repost-border) !important;
}
/* 🚀 ADDED (same task as the base-rule update above): Reply and Group posts
   previously fell through to the base rule's plain fill — now they get their
   own tint here, same pattern as Topic/Repost. bbp_reply_create is BuddyBoss's
   real activity-type class (confirmed live, same as bbp_topic_create above).
   Group posts (e.g. "joined_group") carry a real "groups" class, but a
   forum topic CREATED INSIDE a group carries BOTH "groups" AND
   "bbp_topic_create" — :not() guards here so Topic's own tint (matching
   PsychologicalFeedCard.tsx's isForumTopic check running before isGroupPost)
   always wins for that overlap case, exactly like the app. */
.activity-list li.bbp_reply_create.activity-item {
	background: var(--ns-glass-specular), color-mix(in srgb, var(--ns-card-reply-bg) 68%, transparent) !important;
	border-color: var(--ns-card-reply-border) !important;
}
.activity-list li.groups.activity-item:not(.bbp_topic_create):not(.bbp_reply_create) {
	background: var(--ns-glass-specular), color-mix(in srgb, var(--ns-card-group-bg) 68%, transparent) !important;
	border-color: var(--ns-card-group-border) !important;
}

/* Embedded topic/reply-quote box inside forum-activity cards ("Admin Subway
   started the discussion X in the forum Y" → quoted topic content below).
   BuddyBoss hardcodes a light #fafafa fill here (buddypress.css:
   `.activity-list li.bbp_topic_create/.bbp_reply_create .bb-content-inr-wrap`)
   that was never caught in the earlier activity-stream reskin (tasks
   264–280) — the sample feeds reviewed then had no forum-topic activities.
   Found live on the single-group Feed (task 258). Applies sitewide
   (Explore/Your Route too) since the underlying template is shared. */
.activity-list li.bbp_topic_create .bb-content-inr-wrap,
.activity-list li.bbp_reply_create .bb-content-inr-wrap {
	background-color: var(--ns-surface-raised) !important;
	border-radius: 0 0 var(--ns-radius-md) var(--ns-radius-md);
	/* 🚀 ADDED (task #657, user-reported "refer to the attached image in how
	   to display a reply" — a bordered quote-card, X/Twitter-style, rather
	   than a borderless flat-fill box): pairs with the matching top/left/
	   right border on .activity-discussion-title-wrap below so the two
	   adjoining siblings read as ONE outlined card — no border-top here so
	   the shared edge between them stays seamless (no double line). */
	border: 1px solid var(--ns-card-border) !important;
	border-top: none !important;
	padding: 10px 12px !important;
}

/* The topic-title line sitting directly above .bb-content-inr-wrap
   (.activity-discussion-title-wrap) carries the SAME BuddyBoss #fafafa fill
   as its own separate rule — confirmed live still white after the fix
   above, since it's a sibling, not a descendant, of .bb-content-inr-wrap. */
.activity-discussion-title-wrap {
	background-color: var(--ns-surface-raised) !important;
	color: var(--ns-text-heading) !important;
	border-radius: var(--ns-radius-md) var(--ns-radius-md) 0 0;
	/* 🚀 ADDED (task #657) — see matching comment on .bb-content-inr-wrap
	   just above. No border-bottom here so the shared edge with that sibling
	   box stays a single line, not a doubled-up one. */
	border: 1px solid var(--ns-card-border) !important;
	border-bottom: none !important;
	padding: 8px 12px !important;
}
/* 🚀 FIXED (dark-mode link legibility bug report): the title text itself is
   an <a>, and BuddyBoss's own buddypress.css hardcodes a direct rule on
   that anchor — `.activity-discussion-title-wrap a { color: #333; }`
   (buddypress.css ~line 20146). An explicit rule on the element beats
   inherited color no matter how it's set on the parent, so the `color:
   var(--ns-text-heading) !important` immediately above never reached the
   link text at all. #333-on-dark-surface is why it rendered near-invisible
   in dark mode (readable-ish, barely, in light mode — never intentional
   either way). Targeting the anchor directly, with !important to out-rank
   BuddyBoss's own un-important #333. */
.activity-discussion-title-wrap a {
	color: var(--ns-text-heading) !important;
}
.activity-discussion-title-wrap a:hover {
	color: var(--ns-action) !important;
}
/* 🚀 UPDATED (user-reported, dark mode only): same two-tone-box problem as
   .activity-inner just above — --ns-surface-raised is a flat navy that no
   longer matches now that the outer .activity-item card carries a
   translucent glass tint (task #678). Dropping both this quote-box's body
   (.bb-content-inr-wrap) and its title strip (.activity-discussion-title-wrap)
   to transparent in dark mode lets the card's own glass tint show through
   uninterrupted; the shared border (var(--ns-card-border), set above) still
   outlines the quote card, so it doesn't disappear entirely — it just stops
   fighting the card color. Light mode is untouched (not flagged, and still
   reads fine against a solid white card). Same explicit-.ns-dark-class +
   prefers-color-scheme dual handling every other themed rule here uses. */
.ns-dark .activity-list li.bbp_topic_create .bb-content-inr-wrap,
.ns-dark .activity-list li.bbp_reply_create .bb-content-inr-wrap,
.ns-dark .activity-discussion-title-wrap {
	background-color: transparent !important;
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .activity-list li.bbp_topic_create .bb-content-inr-wrap,
	html:not(.ns-light) .activity-list li.bbp_reply_create .bb-content-inr-wrap,
	html:not(.ns-light) .activity-discussion-title-wrap {
		background-color: transparent !important;
	}
}

/* NS ADDITION — top meta badge strip markup added by this theme's
   buddypress/activity/entry.php override (see that file's header comment).
   No side padding needed — .activity-item already carries 16px padding on
   all sides. */
/* 🚀 UPDATED (task #636): task #590 had collapsed this strip to an
   icon-only circle (tooltip carried the label). User asked for the visible
   card-type name back, so the badge is a pill again (icon + short label)
   — justify-content: flex-end keeps it anchored to the same top-right
   corner it's always used. */
.ns-activity-meta-strip {
	display: flex;
	align-items: center;
	/* 🚀 UPDATED (user-reported, "push them to the top left of the card"):
	   was flex-end (top-right). BuddyBoss's own "..." bubble menu
	   (.bb-activity-more-options-wrap) and the pin/mute icons (.bb-pin-
	   action) are BOTH absolutely positioned at the top-RIGHT corner
	   (buddypress.css: right:15px/right:20px) — moving the badge to the
	   left side sidesteps that overlap entirely, so the old right-side
	   reserved padding is no longer needed. */
	justify-content: flex-start;
	margin-bottom: 10px;
}
/* Icon + label pill. data-balloon/data-balloon-pos (set in entry.php) still
   drive a hover tooltip with the fuller descriptive sentence, using
   BuddyBoss's own bundled tooltip CSS — no extra CSS needed for that part. */
/* 🚀 UPDATED (user-reported, "change the background color of Group post" —
   plus the broader "Kinetic Minimalism UI style with a touch of
   Glassmorphism" request): every badge used to fill with its own accent hue
   at low opacity (--ns-X-subtle), which is exactly why Group post's badge
   was so hard to tell apart from its own card — --ns-avatar-orange-bg is an
   orange tint sitting on the Group tier's OWN warm orange/brown card
   background (--ns-card-group-bg), so chip and card nearly matched. Rather
   than hand-pick yet another hue for Group alone (the other 4 tiers already
   claim green/blue/indigo/amber — a 5th accent color competing for the same
   "tinted chip" treatment starts running out of clearly-distinct hues), all
   five badges now share ONE neutral frosted-glass surface — translucent +
   blurred, not accent-colored — so a chip always reads as visually separate
   from whatever color the card underneath happens to be, regardless of
   tier. The accent hue still carries each badge's own identity, just via
   the icon + label color only (see the 4 --badge--X color-only rules below,
   which now longer set their own background at all). */
.ns-activity-meta-strip__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 10px;
	border-radius: var(--ns-radius-full);
	background: color-mix(in srgb, var(--ns-surface) 45%, transparent);
	backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	-webkit-backdrop-filter: blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));
	border: 1px solid var(--ns-glass-highlight);
	color: var(--ns-action);
	transition: transform 0.2s var(--ns-motion-snap);
}
@media (prefers-reduced-motion: no-preference) {
	.ns-activity-meta-strip__badge:hover {
		transform: scale(1.04);
	}
}
.ns-activity-meta-strip__label {
	font-family: var(--ns-font-semibold);
	font-size: 11px;
	line-height: 1;
	white-space: nowrap;
}
/* 🚀 UPDATED (user-reported, "give other card-type badges unique colors —
   use the theme colors"): Topic/Reply/Group previously all shared one muted
   grey. Each type now gets its own hue, but pulled ONLY from colors that
   already exist as real, ground-truth tokens extracted from the app
   codebase (see this file's own header comment) — no invented hex values.
   Activity keeps the brand green (--ns-action, base badge rule above),
   Repost keeps amber (--ns-warning) — Topic gets blue (--ns-info), Reply
   gets indigo/purple (--ns-indigo), and Group post reuses the app's own
   letter-avatar "orange" tint (--ns-avatar-orange-fg) rather than a made-up
   5th color, since that's already a real distinct hue this theme ships
   with.
 * 🚀 UPDATED (Kinetic Minimalism + Glassmorphism pass, see the comment on
   .ns-activity-meta-strip__badge above): these 4 rules used to ALSO set a
   matching -subtle background per type; now color-only, since every badge
   shares one neutral frosted-glass background instead. */
.ns-activity-meta-strip__badge--topic {
	color: var(--ns-info);
}
.ns-activity-meta-strip__badge--reply {
	color: var(--ns-indigo);
}
.ns-activity-meta-strip__badge--repost {
	color: var(--ns-warning);
}
.ns-activity-meta-strip__badge--group {
	color: var(--ns-avatar-orange-fg);
}

/* NS FIX (task #370): "Show [personal posts ▾] by [new posts ▾]" — the
   activity-stream filter dropdown openers. The GLOBAL button rule at the
   top of this file (".buddypress .buddypress-wrap button" etc.) matches
   these too, since they're plain <button> elements, and stamps every one
   with the brand green fill + 12px radius — but it never sets padding, so
   BuddyBoss's own `padding: 0` for this specific button (buddypress.css:
   .bb-subnav-filters-filtering .subnav-filters-opener) survived untouched.
   Result confirmed live: a rounded green chip with the label text jammed
   flush against its own corners — reads as broken/unstyled rather than a
   deliberate control. Restyled here as a proper, breathing-room pill using
   the SUBTLE fill (this is a lightweight filter toggle, not a primary CTA
   like "Share Update" — giving it the same solid treatment overstates it).
   Scoped to the "filtering" variant specifically so the separate 30x30
   icon-only search opener (.bb-subnav-filters-search) is untouched. */
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
	padding: 6px 12px !important;
	border-radius: var(--ns-radius-full) !important;
	gap: 6px !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener:hover,
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener:focus {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action-pressed) !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener span,
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener i {
	color: inherit !important;
	font-size: 12px !important;
}
/* The dropdown panel itself hardcodes white/#b7b7b7/a blue checkmark
   (#385dff) — light-only and off-brand (blue, not the site's green) —
   which would render broken in dark mode and clash everywhere else. */
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-modal {
	background: var(--ns-surface) !important;
	border-color: var(--ns-divider) !important;
	box-shadow: var(--ns-shadow-raised) !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-modal li a {
	color: var(--ns-text-body) !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-modal li a:hover {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-modal li.selected a:after {
	color: var(--ns-action) !important;
}

/* 🚀 FIXED (task #704 — "Search Feed" input restyle): the #370 fix above
   was deliberately scoped to the "filtering" variant only, explicitly
   leaving the icon-only search opener (.bb-subnav-filters-search) alone.
   Live inspection (click the magnifying-glass icon to reveal it) confirms
   that revealed panel has its own separate, equally hardcoded BuddyBoss
   defaults never touched by that fix: the panel itself
   (#subnav-filters.subnav-filters-modal) is a hardcoded white box with a
   #b7b7b7 border, and the <input> hardcodes solid black text on a
   transparent background. Both read fine by coincidence against
   BuddyBoss's own white panel in light mode, but the panel stays a
   hardcoded white box floating on the dark surface in dark mode, with
   black-on-white text sitting inside it — exactly the same class of bug
   #370 fixed for the neighboring "personal posts / new posts" dropdown.
   The opener icon and the green submit button already read as reasonably
   on-brand (BuddyBoss's own green happens to be close to this theme's
   accent), so this leaves those two alone and only retokenizes the two
   pieces that actually break: the panel surface/border and the input's
   text/placeholder color. */
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search .subnav-filters-modal {
	background: var(--ns-surface) !important;
	border-color: var(--ns-divider) !important;
	box-shadow: var(--ns-shadow-raised) !important;
	/* 🚀 FIX (bug report — "premium styling on click", padding + radius):
	   BuddyBoss core gives this open panel a cramped `padding: 2px 4px` and
	   a flat `border-radius: 8px` sized for its own bare 260px input —
	   fine as a hitbox, but reads thin/unfinished next to this theme's
	   other floating panels (dropdowns, the "More" tab panel), which all
	   use --ns-radius-md + real breathing room. */
	padding: 8px !important;
	border-radius: var(--ns-radius-md) !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search #member-activity-search {
	color: var(--ns-text-body) !important;
	/* 🚀 FIX (bug report — "premium styling on click", padding + radius):
	   BuddyBoss core ships this specific input with `border: 0;
	   border-radius: 0; padding: 3px 10px;` (no border/radius of its own —
	   the rounded look people see comes entirely from the panel above).
	   That's exactly why the sitewide `input:focus-visible` safety-net
	   ring (style.css) rendered as a harsh, un-rounded rectangle cutting
	   across the panel's own rounded corners on click: the input had
	   nothing for that outline to follow. Giving the input its own
	   padding/border/radius here fixes both the cramped feel AND gives
	   the focus ring below something proper to hug. */
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: var(--ns-radius-sm) !important;
	padding: 8px 12px !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search #member-activity-search::placeholder {
	color: var(--ns-text-muted) !important;
	opacity: 1 !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search #member-activity-search:focus,
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search #member-activity-search:focus-visible {
	/* 🚀 FIX (bug report — thick hard-edged green rectangle on click):
	   confirmed root cause via live inspection — style.css's sitewide
	   `input:focus-visible { outline: 2px solid var(--ns-action);
	   outline-offset: 2px; }` safety-net rule (added so no interactive
	   element site-wide is ever missing a keyboard focus indicator) was
	   the only focus treatment reaching this specific input, and with no
	   border-radius of its own to clip against, it rendered as a flat
	   rectangle floating outside the panel's rounded corners. Same fix
	   pattern already used at #register-page input:focus a few thousand
	   lines down this file: swap the raw outline for a soft, radius-
	   following box-shadow ring instead of suppressing focus feedback
	   altogether. */
	outline: none !important;
	border-color: var(--ns-action) !important;
	box-shadow: 0 0 0 3px var(--ns-action-subtle) !important;
}

/* 🚀 FIXED (bug report — search icon "needs better styling in light mode"):
   task #704's comment above claimed the search opener's icon/fill already
   "read as reasonably on-brand" and left it alone — that assumption was
   wrong. The GLOBAL button rule at the very top of this file matches EVERY
   <button> under .buddypress-wrap, including this icon-only opener, and
   stamps it with a solid var(--ns-action) fill (dark brand green) — same
   bug #370 found and fixed for the neighboring "filtering" opener. But
   BuddyBoss's own core CSS sets `.subnav-filters-opener > i { color:
   #5a5a5a; }` directly ON the icon (not inherited from the button), so that
   wins over the button's own on-action text color and never gets
   recolored. Net result confirmed via the reported screenshot: a solid
   dark-green circle with a dark-gray magnifying glass sitting on it —
   low-contrast and reads as broken in light mode. Recolors the icon to the
   button's own contrasting token and rounds it into a clean small circular
   icon button (matching this theme's other icon-button treatments, e.g.
   .ns-topbar__theme-toggle) instead of the GLOBAL rule's squarer 12px
   radius, which read oversized/heavy for a 30px icon trigger. */
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search .subnav-filters-opener {
	border-radius: var(--ns-radius-full) !important;
	width: 32px !important;
	height: 32px !important;
}
.buddypress-wrap .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search .subnav-filters-opener > i {
	color: var(--ns-on-action) !important;
}

/* 🚀 FIX (bug report — "The Timeline search bar is still broken, remove
   it"): #member-activity-search (styled by the two rule blocks above) is
   rendered by ONE shared BuddyBoss core template
   (common/search-and-filters-bar.php) reused verbatim on three different
   pages — the member profile's own Timeline tab, the homepage Activity
   Directory feed, and a single Group's Feed — with no page-specific class
   on .activity-head-bar itself to tell them apart at the source. Per the
   report, only the profile Timeline instance is the problem; the homepage
   and Group Feed instances (already styled above) are to stay. `body.bp-
   user` — BuddyBoss core's own class, present on every tab of a member's
   own profile and nowhere else (same scoping hook already used throughout
   this file for #object-nav) — is the only available ancestor that
   isolates just that one instance, so this hides it there instead of
   touching the shared component every page relies on. */
body.bp-user .activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-search {
	display: none !important;
}

/* 🚀 FIX (bug report — "restyle the loader for premium look and feel, also
   look at its placement"): while the activity stream is (re)loading,
   BuddyBoss core reveals `<i class="bb-icon-f bb-icon-loader animate-spin">`
   in this same row via a `:has(li.loading)` rule — completely unstyled by
   the theme until now. Core ships it at 22px in the row's plain inherited
   text color (reading as a stark, heavy, off-brand icon marooned in the
   flex row's open space) and spins it via the SHARED `.animate-spin` utility
   class/`@keyframes spin` at a slow, mechanical 2s/linear — not a spinner
   built for this theme at all.
   Placement: core's own `margin: 0 15px 0 auto` is what pushes it flush
   against the "Show ▾ / by ▾" filter group rather than sitting in the
   search icon's dead space — kept here (tightened to 10px) rather than
   removed, since floating loose in the row with no anchor reads worse than
   sitting right before the controls whose data it's fetching.
   Style: recolored to the brand action-green (at reduced opacity so a
   background refresh doesn't read as an alarm), shrunk to match the row's
   own 14-15px type scale instead of dominating it, and given its own
   scoped keyframe (rather than overriding the shared `@keyframes spin`,
   which other unrelated spinners on the site also use) spinning faster and
   smoother for a lighter, more premium feel. */
.buddypress-wrap .activity-head-bar .bb-icon-loader {
	color: var(--ns-action) !important;
	font-size: 15px !important;
	margin: 0 10px 0 auto !important;
	opacity: 0.72;
	animation: ns-activity-loader-spin 0.85s linear infinite !important;
}
@keyframes ns-activity-loader-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Author row (avatar + name/action-sentence/timestamp) — sized and spaced
   to match the app card's author row (38px avatar, bold heading-weight
   name, muted timestamp) rather than BuddyBoss's smaller default. */
/* 🚀 FIXED (task #589): entry.php now wraps the avatar + .activity-header
   pair in .ns-activity-author-row (see that file's header comment) instead
   of leaving them to BuddyBoss's own percentage-width float (item-avatar
   15% + activity-header 80% margin:0 auto), which drifted depending on the
   card's available width rather than holding a fixed gap. A plain flex row
   mirrors the same fix the group-activity branch already uses
   (.bp-activity-head-group { display:flex } + .activity-group-avatar's
   margin-right:10px, buddypress.css ~L5712-5735) — 10px matches that
   existing convention exactly, so both post types now share one gap. */
.ns-activity-author-row {
	display: flex;
	align-items: flex-start;
	/* 🚀 TIGHTENED (user-reported, "avatar and titles are too far apart"):
	   was 10px, matching BuddyBoss's own native .activity-group-avatar
	   margin-right convention (buddypress.css ~L5735) exactly — but that
	   value was set to match a 40px group-style avatar, not this row's
	   smaller 38px personal avatar, and reads as loose next to it. 8px pulls
	   the name block visually closer to the avatar it belongs to. */
	gap: 8px;
	margin-bottom: 10px;
}
.ns-activity-author-row .activity-avatar.item-avatar {
	width: auto !important;
	margin: 0 !important;
	flex: 0 0 auto;
	/* BuddyBoss's own ".activity-item.mini .activity-avatar" rule (see the
	   max-width fix a few blocks down) also sets text-align:center — width/
	   margin above already neutralize its layout impact via !important, but
	   text-align was never covered and could still visually shift the
	   avatar inside this now content-sized wrapper on "mini" posts. */
	text-align: left !important;
}
.ns-activity-author-row .ns-post-meta-col,
.ns-group-post-meta {
	/* 🚀 RENAMED (user-reported, "remove 'replied to the discussion'/etc
	   and the .activity-header — first line should only contain the avatar
	   name and time"): entry.php no longer renders BuddyBoss's own
	   .activity-header/.activity-header--group divs at all (see that
	   file's ns_render_activity_byline()) — these are this theme's own
	   replacement wrapper classes for the same "flex-child next to the
	   avatar, taking the remaining row width" role. Since BuddyBoss's stock
	   buddypress.css only ever targeted its own .activity-header class
	   name (width:80%; margin:0 auto, built for its original float-based
	   directory-list layout), switching away from that class name entirely
	   means this rule's width/margin reset is now mostly precautionary —
	   nothing in core CSS targets .ns-post-meta-col/.ns-group-post-meta —
	   but flex:1 1 auto/min-width:0 are still needed so this column
	   actually fills the remaining row width next to the fixed-size avatar
	   instead of just sizing to its content. */
	width: auto !important;
	margin: 0 !important;
	flex: 1 1 auto;
	min-width: 0;
}
/* Stacks the group name above the byline (name+time) as two lines inside
   the one flex-child .ns-group-post-meta occupies next to the group/author
   avatar pair — .bp-activity-head-group itself is a plain flex ROW
   (BuddyBoss default), so without this the heading and byline would sit
   side by side instead of stacked. */
.ns-group-post-meta {
	display: flex;
	flex-direction: column;
}
.activity-avatar.item-avatar img.avatar {
	width: 38px !important;
	height: 38px !important;
	border-radius: var(--ns-radius-full) !important;
	/* 🚀 ADDED (user-reported, avatar still not a clean circle): matches
	   .moderators-lists img.avatar's identical fix elsewhere in this file —
	   without object-fit, a non-square source image (e.g. a fallback/default
	   avatar not run through BuddyBoss's own square-crop pipeline) gets
	   squashed to fit the forced 38x38 box instead of cropped, which still
	   clips to a circle but visibly distorts the image inside it. */
	object-fit: cover !important;
	/* 🚀 REAL ROOT CAUSE FOUND (confirmed live via getComputedStyle on the
	   actual DOM): BuddyBoss's own core CSS has a completely generic,
	   always-on rule — ".activity-list .activity-item div.item-avatar img"
	   (buddypress.css ~L3753-3756) — that caps EVERY activity avatar's
	   <img> to "max-width: 40%" with no ".mini" gating at all. Because that
	   selector carries more TYPE selectors (div, img) than this rule, it
	   wins the max-width property outright (this rule never set max-width,
	   so there was nothing to contest it with). The forced "width: 38px"
	   above never mattered: max-width silently clamped the rendered size
	   down to 40% of whatever narrow flex column the avatar sits in
	   (confirmed live at ~15px instead of 38px) on EVERY post, not just
	   "mini" ones — the earlier .mini-only fix attempt only helped the
	   subset of posts that actually got the .mini class, which is why the
	   bug kept reappearing on ordinary posts too. */
	max-width: none !important;
}
/* Separately, ".activity-item.mini" activities (BuddyBoss also applies this
   class to any post with empty text content, e.g. video/image-only posts —
   not just "joined a group" style updates) get a SECOND max-width cap layered
   on top (15%/60%, buddypress.css ~L3822-3844) — neutralized here too so
   there's no gap between the general and mini-specific BuddyBoss rules. */
.activity-list .activity-item.mini .activity-avatar.item-avatar img.avatar {
	max-width: none !important;
}
/* 🚀 ADDED (user-reported): the group/forum "object avatar" shown on
   group-join and forum-discussion activities (.activity-group-avatar's
   .group-avatar + .author-avatar pair, buddypress.css ~L5712-5735) never
   got the same circular treatment as the personal-post avatar above — a
   real uploaded group/forum photo rendered with its true square corners
   instead of being cropped to a circle. BuddyBoss's own core CSS sizes and
   positions these (width/height/object-fit) but never sets border-radius. */
.activity-group-avatar .group-avatar img,
.activity-group-avatar .author-avatar img {
	border-radius: var(--ns-radius-full) !important;
	/* 🚀 ADDED (same fix as .activity-avatar.item-avatar img.avatar above,
	   applied proactively here too): BuddyBoss's own core CSS already sets
	   width/height/position on these, but not object-fit, so a non-square
	   source image would distort inside the circular clip. */
	object-fit: cover !important;
}
/* 🚀 TIGHTENED (user-reported, "avatar and titles are too far apart") —
   matches the 10px→8px tightening on .ns-activity-author-row just above,
   applied to this branch's own native BuddyBoss spacing mechanism
   (buddypress.css ~L5735 sets this margin-right directly on the avatar
   box itself, not a flex gap, since .bp-activity-head-group never sets
   one — !important needed since ours must beat BuddyBoss's own rule of
   equal specificity that would otherwise win on source order alone). */
.activity-group-avatar {
	margin-right: 8px !important;
}
.activity-header {
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-regular);
	/* 🚀 TIGHTENED (user-reported, "align typography/font sizes according to
	   the levels"): was 14px, one size off from the handle/eyebrow's 13px —
	   matching it exactly makes the sentence read as the same "Level 2"
	   tier as the handle, with only the 15px bold name standing above it. */
	font-size: 13px;
	line-height: 1.5;
}
.activity-header a { color: var(--ns-text-heading) !important; font-family: var(--ns-font-semibold); text-decoration: none !important; }
/* 🚀 ADDED (task #326): the author-name link at the top of every activity
   item had no hover feedback at all. */
.activity-header a:hover { color: var(--ns-action) !important; text-decoration: none !important; }

/* 🚀 ADDED (user-reported, "align the typography and font sizes according
   to the levels"): before this, the author name, the @handle, the sentence
   text, and the group/forum-name eyebrow line all rendered at the SAME
   ~13-14px weight — no visual hierarchy at all, so the name didn't read as
   the most important thing on the line. Establishing 3 clear levels, same
   idea as the app's own PsychologicalFeedCard header (bold name > muted
   meta > faint timestamp):
   Level 1 (name)      — 15px, bold, heading color.
   Level 2 (handle,     13px, regular/medium, muted color.
     sentence, forum/
     group eyebrow)
   Level 3 (timestamp) — 12px, faint color (already set on .time-since). */
.ns_avatar_name a {
	font-size: 15px !important;
	font-weight: 700;
}
.activity-group-heading {
	margin: 0 0 2px;
}
.activity-group-heading a {
	font-size: 12px !important;
	font-weight: 600;
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-semibold);
}

/* 🚀 FIXED (task #653, user-reported "post privacy icon needs a better
   placement"): bp_activity_action() (BuddyBoss core) wraps the whole author
   sentence in a plain <p>, and bp_nouveau_activity_privacy()'s own
   .bb-media-privacy-wrap globe icon is that <p>'s sibling inside
   .activity-header. A block-level element following a <p> always starts a
   new line regardless of its own display:inline-block value — confirmed via
   live getComputedStyle, BuddyBoss's own inline-block/vertical-align CSS on
   .bb-media-privacy-wrap was never the problem. Making .activity-header
   itself (and the group-post equivalent, .activity-group-post-meta) a flex
   row turns the <p>, the privacy globe, the "(edited)" marker, and the forum-
   topic link into flex items that sit on ONE line and wrap together instead
   of stacking. Same fix applies to both the plain-post and group-post
   branches of entry.php since both share this exact sibling structure. */
.activity-header,
.activity-group-post-meta,
.ns-post-byline {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 6px;
	row-gap: 2px;
}
.activity-header > p,
.activity-group-post-meta > .activity-post-author {
	margin: 0 !important;
}
/* The globe/privacy icon reads as a loud, fully-saturated icon at BuddyBoss's
   default color next to muted body text — toning it down to the same faint
   tone already used for the timestamp keeps it legible without it competing
   with the author name for attention. */
.activity-header .bb-media-privacy-wrap .privacy,
.activity-group-post-meta .bb-media-privacy-wrap .privacy,
.ns-post-byline .bb-media-privacy-wrap .privacy {
	color: var(--ns-text-faint) !important;
}
.activity-header .bb-media-privacy-wrap,
.activity-group-post-meta .bb-media-privacy-wrap,
.ns-post-byline .bb-media-privacy-wrap {
	margin: 0 !important;
}
/* 🚀 ADDED (user-reported, "first line should only contain the avatar name
   and time" — see entry.php's ns_render_activity_byline()): a plain middot
   between the name/handle group and the time link, matching the visual
   rhythm of the old inline sentence's own "· Xh ago" tail without needing
   any extra markup. ns_render_activity_byline() always renders
   .ns-post-byline__time immediately after .ns_avatar_name, so a fixed
   ::before here (rather than a sibling-combinator trick) is enough. */
.ns-post-byline__time::before {
	content: "\00B7";
	margin-right: 6px;
	color: var(--ns-text-faint);
}

/* 🚀 ADDED (bug report — "Implement 'reposted from' using the same method
   as the app"): entry.php now strips the raw "🔄 Reposted from @handle"
   marker paragraph out of the activity body (see the $ns_repost_header_text
   extraction near $ns_is_repost) and renders it here instead, right after
   ns_render_activity_byline() in both the group and personal branches — a
   small muted icon + caption line, matching PsychologicalFeedCard.tsx's own
   repost-header treatment (muted color, regular weight, no bold, no raw
   emoji glyph). var(--ns-text-muted) reused rather than a new hardcoded hex,
   per this file's existing retokenization convention. The icon is mirrored
   (scaleX(-1)) to match the app's repost-arrow orientation; ns_icon('repeat')
   is the same icon slug already used for the top badge-strip's Repost badge. */
.ns-repost-header {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 2px 0 6px;
}
.ns-repost-header__icon {
	color: var(--ns-text-muted);
	transform: scaleX(-1);
	flex-shrink: 0;
}
.ns-repost-header__text {
	font-size: 12px;
	color: var(--ns-text-muted);
}

/* 🚀 ADDED (task #655/#656/#658, user-reported "standardize the avatar name
   using snake case" + "ensure avatar/name/header are aligned" + "include the
   user's @name and verified badge"): assets/js/activity-meta-normalize.js
   wraps the author-name link (+ BuddyBoss's own native .bp-verified-badge,
   when present) in this new element and inserts an @handle span right after
   it, derived straight from the member-profile href already in the sentence
   — no new PHP/REST call needed, and it applies uniformly to every activity
   sentence variant (plain post, group post, forum reply, forum topic) since
   they all wrap the author name in a link to /members/{slug}/ the same way.
   Named in snake_case specifically per that request — every other class in
   this file follows kebab-case; this is a deliberate, scoped exception for
   the one element the user explicitly asked to be snake_case, not a
   convention change for the rest of the file. */
.ns_avatar_name {
	display: inline-flex;
	align-items: baseline;
	column-gap: 4px;
	flex-wrap: nowrap;
}
.ns_author_handle {
	color: var(--ns-text-faint);
	font-family: var(--ns-font-regular);
	font-size: 13px;
	font-weight: 400;
}

.activity-title h2,
.activity-inner {
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-regular);
}

.time-since {
	color: var(--ns-text-faint) !important;
	font-size: 12px;
}

/* activity-content is the direct child wrapper inside .activity-item that
   holds header/inner/meta/comments — bp-nouveau gives it its own border in
   some BuddyBoss versions, which stacks with .activity-item's own
   border-radius+shadow to look like a "double box" / nested-rectangle. Reset
   it explicitly so only the outer .activity-item card shows a boundary. */
.activity-content {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
}
/* 🚀 FIXED (task #700, light mode): this used to force
   `background: var(--ns-surface-raised)` in light mode (see the #678 dark-
   mode fix right below, which already dropped dark mode to transparent for
   the same reason) — a flat "one step lighter" panel meant to separate the
   post's text/quote content from the card chrome around it. In practice it
   read as a visible two-tone box-inside-a-box in light mode too: the post
   body sat in its own light-gray rectangle nested inside the already-
   distinct card background, rather than inheriting the card's own color
   like every other tier does. Dropping to transparent here lets
   .activity-inner inherit whichever tier color .activity-item itself is
   set to (--ns-card-activity-bg/--ns-card-reply-bg/etc), matching dark
   mode's existing behavior and removing the redundant nested box in both
   modes. border/box-shadow/radius/padding are kept only for popular BuddyBoss
   default reference — none render since there's no more differing fill to
   have an edge against. */
/* 🚀 FIX (bug report — attached post image still overflowing the card,
   even after the bp-media .entry-img fix above): live DOM inspection of the
   actual reported post found the real culprit is a COMPLETELY different
   mechanism than BuddyBoss's own media system. The mobile app embeds
   attached photos/videos as raw HTML directly in the activity content field
   — `<img class="app-attached-image">` / `<video class="app-attached-video">`
   (app/(tabs)/explore.tsx, profile.tsx) — bypassing bp-media's entry-img
   wrapper entirely, so none of the .bb-media-length-1 rules above ever
   match it. The app's own composer code sets an inline
   `style="width:100%; border-radius:0px;"` on newer posts, but this is NOT
   reliable: the exact post in the bug report has NO inline style at all
   (confirmed via getAttribute('style') → null — an older post, predating
   that inline style, or created through a different path, e.g. an admin/
   seed script), so nothing capped it and it rendered at its full native
   pixel width (1200px), blowing straight through the card and into the
   right rail. Capping it here in CSS — rather than trusting every post to
   always carry the right inline style — fixes every post regardless of how
   or when it was created. `!important` is required to win over any inline
   `border-radius:0px` a newer post DOES carry (inline `width:100%` is
   harmless/compatible and left alone). */
.activity-list .activity-item img.app-attached-image,
.activity-list .activity-item video.app-attached-video {
	display: block;
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	border-radius: var(--ns-radius-md) !important;
	margin-top: 10px;
}

.activity-inner {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: var(--ns-radius-md) !important;
	overflow: visible !important;
	padding: 10px 12px !important;
}

/* 🚀 FIX (bug report — attached post image overflowing the card): a
   single-photo activity post's <img> (BuddyBoss core:
   `.bb-media-length-1 .bb-activity-media-elem .entry-img img`) ships with
   only a *floor* on its size — `width: auto; min-width: 100%;` — and no
   ceiling, so a real full-resolution upload renders at its own native pixel
   width/height. Nothing upstream catches that: .activity-inner and
   .activity-content are both deliberately `overflow: visible` above (and
   BuddyBoss's own core CSS does the same for media posts specifically, so
   multi-photo grids can flush-bleed to the card edge), and `.entry-img`
   itself only clips content that's already smaller than its own box — with
   no width of its own in the single-image (non-grid) case, its box just
   grows to match the oversized image instead of containing it, so the photo
   pushes straight through .activity-item's rounded corners.
   Deliberately NOT fixed by adding `overflow: hidden` to `.activity-item`
   itself — that would also silently clip the "..." more-options dropdown
   (`.bb-activity-more-options`), a real absolutely-positioned menu that can
   render below a short card's visible height. Capping the image's own
   intrinsic size instead means there's nothing left to overflow in the
   first place, so every ancestor's existing `overflow: visible` (needed
   elsewhere) stays untouched. Scoped to the exact single-image selector
   BuddyBoss core already uses (`bb-media-length-1`) so multi-photo grids —
   which size their images via absolute-position inset, not intrinsic width
   — are unaffected. */
.activity-list .activity-item .bb-media-length-1 .bb-activity-media-elem .entry-img img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
}
.activity-list .activity-item .bb-media-length-1 .bb-activity-media-elem .entry-img {
	border-radius: var(--ns-radius-md) !important;
}

/* Action-link row wrapper — verified exact markup from
   bp-nouveau/includes/activity/template-tags.php: bp_nouveau_wrapper()
   renders <div class="bp-generic-meta activity-meta action"> for BOTH the
   entry-level row (Like/Comment) and the comment-level row (Reply/Like/
   Edit, via bp_nouveau_activity_comment_buttons(['container'=>'div'])) —
   there is no separate ".acomment-meta" wrapper class as earlier guessed;
   both rows share ".activity-meta". Individual link classes, also
   verified from bp_nouveau_get_activity_entry_buttons() /
   bp_nouveau_get_activity_comment_buttons():
     - Like:          a.button.fav.bp-secondary-action.bp-like-button.reaction
       (becomes .unfav.has-like.has-reaction once liked)
     - Comment (entry): a#acomment-comment-{id}.button.acomment-reply.bp-primary-action
     - View Conversation: a.button.view.bp-secondary-action.bp-tooltip
   NOTE — if BuddyBoss's ReadyLaunch template pack is active instead of
   classic Nouveau (check: does a live comment's <li> id start with
   "bb-rl-acomment-"? if yes, ReadyLaunch is on), the wrapper is instead
   ".bb-rl-activity-footer-actions" and comments use "bb-rl-" prefixed
   classes throughout — mirrored defensively at the bottom of this block
   since it costs nothing if unused. */
.activity-meta {
	display: flex !important;
	align-items: center;
	/* UPDATED (task #633): was flex-start — at the time that was set,
		BuddyBoss's own space-around was blamed for Share rendering on what
		looked like its own full-width highlighted line. That symptom was
		actually caused by an item not yet having a fixed width/flex-basis;
		".activity-meta a" below now explicitly forces
		"flex: 0 0 auto; width: auto" on every action link, so no child can
		stretch or look like a full-width row regardless of justify-content.
		With that guard in place, space-between is safe and spreads the
		icons evenly across the row as requested, instead of clustering them
		on the left. */
	justify-content: space-between !important;
	gap: 10px !important;
	margin-top: 10px !important;
	flex-wrap: wrap;
	/* 🚀 ADDED (user-reported, "post inner divider... too bright"): confirmed
	   live via getComputedStyle that BuddyBoss's own core CSS puts a
	   "border-top: 1px solid #eaeaea" directly on this row (separating post
	   content from the Like/Comment/Share row) — near-white, never
	   overridden by this theme before. Swapped for the same thin, mode-aware
	   divider token used everywhere else. */
	border-top: 1px solid var(--ns-divider) !important;
	padding-top: 10px;
}
/* Every action link (Like, Comment, Share, View Conversation, Edit, Delete)
   gets the same icon-pill treatment — matches the app's real feed-card
   footer action buttons (see components/PsychologicalFeedCard.tsx:
   hierarchyFooterActionRowItemButton — icon + label inside a rounded,
   subtly-filled pill, not a bare inline text link). Explicit flex/width
   overrides here are deliberate, not decorative: they're what stops any
   single link (Share in particular) from stretching to fill the row. */
.activity-meta a {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	align-items: center;
	gap: 6px;
	padding: 7px 12px !important;
	border-radius: var(--ns-radius-md) !important;
	/* 🚀 CHANGED (user-reported, "make the reaction icons' background
	   transparent"): every action link previously sat on a filled
	   --ns-surface-raised pill (and Like/Comment on --ns-action-subtle green,
	   see the rule below) — removed so Like/Comment/Share/Bookmark/View/Edit
	   are just an icon + count sitting directly on the card, no pill chrome.
	   Padding/border-radius are kept (not just decorative — they still define
	   the hover/tap hit area) even though there's nothing to see at rest. */
	background: transparent !important;
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-semibold);
	font-size: 12px;
	text-decoration: none !important;
}
.activity-meta a:hover { color: var(--ns-action) !important; }

/* CORRECTED (task #361): this used to carve out an exception so
   .bp-primary-action (the entry-level Comment button) kept the solid-green
   CTA fill while Like/Share stayed subtle — on the theory that Comment
   was "the" primary action. Checked against the app's own reference
   component (components/PsychologicalFeedCard.tsx, styles.
   premiumActivityActionButton / darkPremiumActivityActionButton): Like,
   Comment, and Repost/Share all render with the exact same flat muted-pill
   style there — there is no highlighted "primary" action button in the
   real app, they're deliberately equal-weight. The solid-green Comment
   pill here was inconsistent with that reference and looked like a stray
   bug next to the two subtle pills beside it. Comment now gets the same
   subtle treatment as every other action link. The base button rule near
   the top of this file (".buddypress .buddypress-wrap a.button") is more
   specific than a plain ".bp-secondary-action" class selector and would
   otherwise force EVERY button solid green, so bp-primary-action/
   bp-like-button are listed explicitly here to win that specificity
   fight. */
.buddypress .buddypress-wrap a.button.bp-secondary-action,
.buddypress .buddypress-wrap a.button.bp-like-button {
	/* 🚀 CHANGED (user-reported, "make the reaction icons' background
	   transparent"): this used to re-fill Like/Comment with a solid
	   --ns-action-subtle green pill, undoing the transparent base rule above
	   for those two specific buttons. Now every action link (not just Share/
	   Bookmark/View/Edit) shares the same flat, no-background treatment. */
	background: transparent !important;
	color: var(--ns-action) !important;
}
.buddypress .buddypress-wrap a.button.bp-secondary-action:hover,
.buddypress .buddypress-wrap a.button.bp-like-button:hover { background: transparent !important; color: var(--ns-action-pressed) !important; }

/* 🚀 CHANGED (bug report — "Implement the App's model for comments/reply
   class=\"button acomment-reply bp-primary-action\""): .bp-primary-action is
   used ONLY by the Comment/Reply buttons (both the entry-level Comment
   toggle and each nested comment's own "Reply" link — confirmed via
   bp-templates/bp-nouveau/includes/activity/template-tags.php lines 660/
   1059/1170, all three render class="... acomment-reply bp-primary-action"),
   never by Like (.bp-like-button) or Share (.bp-secondary-action) — so
   restyling it here does not touch those two, which keep the flat/
   transparent treatment from task #361 above. The app's own reference
   (components/PsychologicalFeedCard.tsx: premiumActivityActionButton /
   darkPremiumActivityActionButton) renders its action buttons as a filled
   rounded pill, not a bare transparent link — background var(--ns-surface-
   raised) (light #EBEBF2 / dark #1E1C3A, closely matching the app's #ECF0F5/
   #1F2937) is the same "raised surface" token already used sitewide for this
   exact kind of filled chip, reused here instead of a one-off hex value. */
.buddypress .buddypress-wrap a.button.bp-primary-action {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-action) !important;
}
.buddypress .buddypress-wrap a.button.bp-primary-action:hover {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-action-pressed) !important;
}
.buddypress .buddypress-wrap a.button.unfav,
.buddypress .buddypress-wrap a.button.has-like { color: var(--ns-action) !important; }
/* 🚀 FIXED (live-verification pass, task #813): live inspection of this
   theme's custom homepage/Discover template found `el.closest('.buddypress')`
   → null — same dead-ancestor bug already diagnosed and fixed for the icon
   rules further down this file (see the big comment block a few hundred
   lines below, "EVERY rule above this point... permanently unmatchable").
   That earlier fix only re-declared the ::before icon rules against
   ".activity-list .activity-item" — it never touched these three
   color/background blocks just above, so the app's-model pill fill for
   Comment/Reply (and the Like/Share color corrections right above it) were
   silently never applying outside genuine BuddyBoss-native page templates.
   Re-declared here against the same proven ".activity-list .activity-item"
   prefix, additive (old rules untouched, harmless on templates that really
   do have a .buddypress ancestor). */
.activity-list .activity-item a.button.bp-secondary-action,
.activity-list .activity-item a.button.bp-like-button {
	background: transparent !important;
	color: var(--ns-action) !important;
}
.activity-list .activity-item a.button.bp-secondary-action:hover,
.activity-list .activity-item a.button.bp-like-button:hover { background: transparent !important; color: var(--ns-action-pressed) !important; }
.activity-list .activity-item a.button.bp-primary-action {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-action) !important;
}
.activity-list .activity-item a.button.bp-primary-action:hover {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-action-pressed) !important;
}
.activity-list .activity-item a.button.unfav,
.activity-list .activity-item a.button.has-like { color: var(--ns-action) !important; }

/* Icon prefixes for the 3 action types, matching the X/Twitter-benchmark
   heart/comment/share look from the design handoff — added via ::before.
   🚀 UPDATE (user-reported, "remove the text on post reactions"): the old
   version of this comment explained why .like-count/.comment-count's text
   was left alone (a label+count concatenation this CSS-only approach
   couldn't cleanly split). That's now moot — both spans are hidden outright
   further down this file, tooltips take over as the sighted-user label, so
   there's nothing left to split. */
/* 🚀 UPDATED (task #447): these were raw emoji glyphs (♡/♥/💬/↗) shoved into
   ::before content — the one spot in this CSS-only-reskin file that could
   never get a real <svg> element without forking BuddyBoss's own button
   markup. Converted to CSS mask-image icons instead: a transparent mask
   shaped like the real Ionicons source (ns-*.svg, same files ns_icon() in
   inc/icons.php inlines elsewhere) painted with `currentColor`, so these
   buttons now use the exact same icon set as everywhere else on the site
   without touching BuddyBoss's template. */
.buddypress .buddypress-wrap a.button.bp-like-button::before,
.buddypress .buddypress-wrap a.button.unfav::before,
.buddypress .buddypress-wrap a.button.has-like::before,
.buddypress .buddypress-wrap a.button.acomment-reply::before,
.buddypress .buddypress-wrap a.button.bp-primary-action.view::before,
.ns-share-link::before,
.ns-bookmark-toggle::before,
.ns-view-count::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 5px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}
.buddypress .buddypress-wrap a.button.bp-like-button::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-heart-outline.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-heart-outline.svg);
}
.buddypress .buddypress-wrap a.button.unfav::before,
.buddypress .buddypress-wrap a.button.has-like::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-heart.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-heart.svg);
}
.buddypress .buddypress-wrap a.button.acomment-reply::before,
.buddypress .buddypress-wrap a.button.bp-primary-action.view::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-chat.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-chat.svg);
}
.ns-share-link::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-share.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-share.svg);
}
/* 🚀 UPDATED (2nd pass, user confirmed the text was still showing live):
   this site runs BuddyBoss's real native Reactions feature in single-toggle
   "Like" mode (bb_reaction_mode/bb_reactions_button options), not the plain
   classic Favorite button — confirmed via bp-activity/bb-activity-reactions.php
   and the live DB export. Its icon is a REAL `<i class="bb-icon-thumbs-up">`
   element, not a `::before` pseudo-element, so the mask-icon swap below
   (kept for Share/Bookmark, which really are theme `::before` icons) never
   applied to Like/Comment to begin with — BuddyBoss's own core CSS
   (buddypress.css ~L4118/~L9278) actively sets `.bp-like-button:before {
   display:none}` with HIGHER specificity than this file's original rule, so
   that part was always inert. Left as-is: the native thumbs-up icon is a
   perfectly fine icon on its own, no need to fight BuddyBoss's core CSS to
   replace it. The one rule that actually matters is hiding `.like-count`/
   `.comment-count`'s visible text — broadened here to drop the
   `.buddypress .buddypress-wrap` ancestor requirement entirely (that
   ancestor DOES exist on this page per the icon rule immediately below
   still applying, so it likely wasn't the reason text kept showing, but it
   costs nothing to stop depending on it, and nested-comment threads are
   now covered explicitly too via `.acomment_inner`, matching
   activity-meta-normalize.js's own nested-thread handling). */
.activity-list a.button.bp-like-button .like-count,
.activity-list a.button.acomment-reply .comment-count,
.acomment_inner a.button.bp-like-button .like-count,
.acomment_inner a.button.acomment-reply .comment-count {
	display: none !important;
}
.buddypress .buddypress-wrap a.button.bp-like-button::before,
.buddypress .buddypress-wrap a.button.acomment-reply::before,
.ns-share-link::before,
.ns-bookmark-toggle::before {
	margin-right: 0 !important;
}
/* 🚀 ADDED (task #591) — Bookmark toggle + read-only view-count, both
   printed by functions.php's bp_activity_entry_meta hook. .ns-bookmark-toggle
   already carries the real "bp-secondary-action" class, so it inherits the
   same always-green subtle pill every action button gets from the rule
   block above (task #361: Like/Comment/Share are deliberately equal-weight,
   no separate "active" background) — the swap below only needs to change
   the icon silhouette (outline → filled), the exact same active/inactive
   signal Like's own fav↔unfav state already relies on. */
/**
 * 🚀 FIXED (user-reported, screenshot showing Comment/Share/Bookmark/View
 * icons missing entirely): live inspection found EVERY rule above this point
 * that paints the Like/Comment icon set is scoped under a
 * ".buddypress .buddypress-wrap" ancestor prefix (two SEPARATE classes,
 * descendant combinator) — and on this theme's custom page templates
 * (Explore, Your Route, etc.) the real markup only ever has a
 * ".buddypress-wrap" class, with NO separate ".buddypress" ancestor anywhere
 * in the tree (confirmed live: `el.closest('.buddypress')` → null). That
 * makes ".buddypress .buddypress-wrap ...::before" permanently unmatchable
 * on every page this reskin actually targets — it was always dead CSS here.
 * Share/Bookmark/View never had this problem because those 3 already used
 * bare, unprefixed selectors (".ns-share-link::before" etc.) — Like's visible
 * icon survived too, but only by accident: it's a real BuddyBoss
 * `<i class="bb-icon-thumbs-up">` icon-font glyph, not a `::before` mask, so
 * it was never depending on the dead rule to begin with. Comment (and the
 * separate "View Conversation" link some templates render) have NO other
 * icon mechanism, so they rendered as blank when their one supporting rule
 * never matched.
 *
 * Fix: re-declare the same properties using ".activity-list .activity-item"
 * instead — proven, throughout this whole file, to reliably match on every
 * page an activity stream renders. Old ".buddypress .buddypress-wrap"
 * rules above are left in place untouched (harmless if some other,
 * non-custom BuddyBoss template ever does wrap in a real ".buddypress" div —
 * this is additive, not a replacement).
 */
.activity-list .activity-item a.button.acomment-reply::before,
.activity-list .activity-item a.button.bp-primary-action.view::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-chat.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-chat.svg);
	margin-right: 0 !important;
}
/* Active/liked-state icon+color for Like — also written against
   ".buddypress .buddypress-wrap" above and equally dead on these templates.
   Like's icon itself is the native <i> glyph (unaffected), but the GREEN
   tint that signals "you already liked this" was silently never applying. */
.activity-list .activity-item a.button.unfav,
.activity-list .activity-item a.button.has-like {
	color: var(--ns-action) !important;
}
/**
 * 🚀 FIXED (same report, "Share/Bookmark still show background on hover"):
 * the intended hover-transparent override for these two also lived under the
 * same dead ".buddypress .buddypress-wrap" prefix, so the only rule actually
 * winning on hover was the generic, unprefixed ".bp-secondary-action:hover"
 * near the top of this file (shared with unrelated buttons like "Join
 * Group"), which still fills them with --ns-action-subtle green. "a." is
 * added purely to outrank that rule's specificity — both are otherwise
 * equally simple selectors, and this makes the win explicit rather than
 * relying on source-order tie-breaking.
 */
a.ns-share-link:hover,
a.ns-bookmark-toggle:hover {
	background: transparent !important;
}
.ns-bookmark-toggle::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-bookmark.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-bookmark.svg);
}
.ns-bookmark-toggle--active::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-bookmark-filled.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-bookmark-filled.svg);
}
.ns-view-count::before {
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-eye.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-eye.svg);
}
/* .ns-view-count is a <span>, not an <a> — the shared ".activity-meta a"
   pill treatment a few blocks up only targets real links, so this repeats
   the same visual recipe (padding/radius/bg/color/font) rather than
   inheriting it, matching the same non-interactive "state" pill pattern
   already used for .activity-state above. */
.ns-view-count {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	align-items: center;
	padding: 7px 12px !important;
	border-radius: var(--ns-radius-md) !important;
	/* 🚀 CHANGED (user-reported, "make the reaction icons' background
	   transparent") — matches the same change to ".activity-meta a" above. */
	background: transparent !important;
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-semibold);
	font-size: 12px;
	cursor: default;
}

/**
 * Real counters for Share/Bookmark (task: "add tooltip and counter for each
 * button") — printed server-side by functions.php's bp_activity_entry_meta
 * hooks (ns_get_activity_share_count() / ns_get_activity_bookmark_count(),
 * naijasubway-activity-share-bookmark-counts.php) and kept in sync
 * optimistically by explore-interactions.js / activity-bookmark-toggle.js on
 * click. Same small-number-next-to-icon look BuddyBoss's own Like button
 * already uses (".likes-count"), so all action-row counts read consistently.
 */
.ns-action-count {
	font-family: var(--ns-font-semibold);
	font-size: 12px;
	line-height: 1;
}

/**
 * Real comment count (task: "add tooltip and counter for each button") — the
 * BuddyBoss-rendered ".comment-count" span inside the entry-level Comment
 * button is NOT a number, it's a static "Comment" label (kept hidden above,
 * task #628), so there was never a live count to show. entry.php now stamps
 * the real bp_activity_get_comment_count() total onto the <li> as
 * data-ns-comment-count, and activity-meta-normalize.js injects this span
 * into the Comment button at runtime, matching Like's own ".likes-count".
 */
.ns-comment-count {
	font-family: var(--ns-font-semibold);
	font-size: 12px;
	line-height: 1;
}

/**
 * Real [data-balloon]/[data-balloon-pos] tooltip system (task: "add tooltip
 * ... for each button") — these attributes have been sprinkled across the
 * action row since tasks #590/#591 on the assumption that a Balloon.css-style
 * library would render them into a visible bubble on hover/focus. No such
 * library was ever enqueued anywhere in this theme and no CSS anywhere ever
 * painted one — confirmed live (no "[data-balloon]" selector existed in this
 * file or any other asset before this rule), so the attributes were 100%
 * inert decoration. This is that missing implementation, built from scratch
 * as plain CSS (no JS, no external library): a small dark pill above the
 * element with a triangular arrow, shown on hover/focus. Colors reuse
 * --ns-topbar-bg/--ns-on-action — the same "always-dark-chrome, regardless of
 * site light/dark mode" pairing already used for the top nav (task #320) —
 * rather than inventing a new tooltip-specific token pair. Only the "up"
 * position is implemented since every data-balloon-pos in this codebase is
 * "up" (verified via sitewide grep); safe to extend later if a "down"/"left"/
 * "right" use case ever shows up.
 */
[data-balloon] {
	position: relative;
}
[data-balloon]::before,
[data-balloon]::after {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translate(-50%, 4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 20;
}
[data-balloon]::after {
	content: attr(data-balloon);
	padding: 6px 10px;
	border-radius: var(--ns-radius-sm);
	background: var(--ns-topbar-bg);
	/**
	 * 🚀 FIXED (user-reported, "check tooltip in dark mode"): this originally
	 * read --ns-on-action, on the wrong assumption that it meant "light text
	 * for a dark chip" generally. It's actually "text color ON TOP OF
	 * --ns-action" specifically, and --ns-action ITSELF flips from a dark
	 * green (light mode) to a bright green (dark mode) — so --ns-on-action
	 * flips the opposite way too (#FFFFFF light mode -> #04251A, near-black,
	 * dark mode), since it's tuned for a bright-green chip, not this
   	 * always-dark --ns-topbar-bg. Confirmed live: this made dark-mode
	 * tooltip text nearly invisible (near-black on near-black navy).
	 * --ns-topbar-text-muted is the token actually built for "text sitting on
	 * --ns-topbar-bg, in either mode" (it's what the top nav's own links use
	 * against this exact background) and is IDENTICAL in all 4 light/dark
	 * blocks (#94A1B8), so it stays legible regardless of site theme.
	 */
	color: var(--ns-topbar-text-muted);
	font-family: var(--ns-font-semibold);
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}
[data-balloon]::before {
	content: "";
	bottom: calc(100% + 2px);
	border: 5px solid transparent;
	border-top-color: var(--ns-topbar-bg);
	border-bottom-width: 0;
}
[data-balloon]:hover::before,
[data-balloon]:hover::after,
[data-balloon]:focus-visible::before,
[data-balloon]:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Tooltips near the right edge of a scrolling column (the sidebar's dark mode
   toggle): data-balloon-pos="up-right" lines the bubble up with the button's
   right edge so it grows to the left and is not cut off. "up-left" does the
   same from the left edge. The arrow stays centred on the button. */
[data-balloon][data-balloon-pos="up-right"]::after { left: auto; right: 0; transform: translate(0, 4px); }
[data-balloon][data-balloon-pos="up-left"]::after { left: 0; transform: translate(0, 4px); }
[data-balloon][data-balloon-pos="up-right"]:hover::after,
[data-balloon][data-balloon-pos="up-right"]:focus-visible::after,
[data-balloon][data-balloon-pos="up-left"]:hover::after,
[data-balloon][data-balloon-pos="up-left"]:focus-visible::after { transform: translate(0, 0); }

/**
 * 🚀 FIXED (user-reported, "icons are missing" — real root cause, found via
 * live getComputedStyle on a genuine Comment button): every action-row icon
 * above is painted via a same-element ::before pseudo, and EVERY one of
 * these buttons ALSO carries a data-balloon attribute (the tooltip system
 * just defined above, `[data-balloon]::before`/`::after`). CSS cascades per
 * PROPERTY, not per rule block, so a single element's ::before pseudo ends
 * up with a MERGED style: mask-image/background-color from the icon rules,
 * PLUS position:absolute/opacity:0/border/transform from the tooltip rules
 * — since none of the icon rules ever declared those properties themselves,
 * nothing in this file overrode them. `position: absolute` also forces the
 * pseudo-element's *used* display to "block" regardless of the
 * display:inline-block requested above (spec behavior for absolutely
 * positioned boxes), and `opacity: 0` makes the icon fully invisible except
 * mid-hover/focus, when it very briefly becomes a stray tooltip-arrow
 * triangle floating above the button instead of the intended inline icon.
 * Confirmed live: getComputedStyle on a real "Comment" button's ::before
 * showed `opacity: "0"`, `position: "absolute"` despite mask-image already
 * correctly resolving to ns-chat.svg — the icon was being painted, just
 * hidden and mispositioned by this collision, on every button this applies
 * to (Comment, Share, Bookmark, Views, Edit).
 *
 * This resets exactly those tooltip-authored properties back to normal
 * in-flow icon behavior for every button doing double duty as both an icon
 * and a data-balloon trigger. The tooltip LABEL (::after, completely
 * separate pseudo-element, untouched by any of this) still renders on
 * hover/focus exactly as before on all of them — only the small arrow
 * (::before, used on tooltip-only elements that have no icon of their own)
 * is intentionally not shown for these specific buttons, in exchange for
 * keeping their icon visible at all times, which is the correct trade for
 * an icon button.
 */
a.acomment-reply::before,
a.bp-primary-action.view::before,
a.ns-share-link::before,
a.ns-bookmark-toggle::before,
span.ns-view-count::before,
a.action-edit.buddyboss_edit_activity:not(.action-save)::before,
a.buddyboss_edit_activity_comment:not(.action-save)::before,
a.edit-activity::before {
	position: static !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
	transition: none !important;
	z-index: auto !important;
	border: none !important;
	left: auto !important;
	bottom: auto !important;
}

/* Activity-stream loading skeleton (task #361) — BuddyBoss's own
   .bb-activity-placeholder / .bb-loading-bg (bp-nouveau/css/buddypress.css)
   are hardcoded to a light-theme white card (#fff) with a #f2f4f5 shimmer
   bar, on every page load and on every "load more" — in dark mode (and to
   a lesser extent light mode, where the hardcoded #b7b7b7 border doesn't
   match this theme's divider token) that's a jarring flash of an
   unstyled white card against the app's dark surface right as the page
   loads, the opposite of "premium." Re-themed to the same card surface
   the real activity entries use once loaded, so the skeleton reads as
   part of the page rather than a foreign flash. */
.bb-activity-placeholder {
	background: var(--ns-surface) !important;
	border: 1px solid var(--ns-divider) !important;
}
.bb-loading-bg {
	background-color: var(--ns-surface-raised) !important;
}

/* Nested comment thread — real markup from buddypress/activity/comment.php:
   .acomment-display > .acomment_inner > (.acomment-avatar + .acomment-content_wrap)
   .acomment-content_wrap > .acomment-content_block (.acomment-meta, .acomment-content,
   .comment-reactions) + .acomment-foot-actions (buttons + timestamp). */
/* Collapsed by default (per explicit instruction: comments should only
   show once the person asks for them, not render open on every post) —
   .activity-comments-toggle.js adds .ns-comments-open to the parent
   .activity-item when the "N Comment(s)" link or "Comment" button is
   clicked, or when a direct comment permalink lands on this page. This
   wrapper holds BOTH the existing comments list AND the "write a reply"
   box (see entry.php: both live inside the same real BuddyBoss markup),
   so opening it reveals both together — matches tapping "Comment" meaning
   "let me see and join this conversation", not just one or the other. */
.activity-comments {
	display: none;
	background: transparent !important;
	border-top: 1px solid var(--ns-divider) !important;
	margin-top: 12px !important;
	padding-top: 12px !important;
}
.activity-item.ns-comments-open .activity-comments {
	display: block;
}
.activity-comments ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.acomment_inner {
	display: flex;
	gap: 8px;
	padding: 8px 0;
	font-size: 14px;
}
/* Real avatar <img> ships with width="150" height="150" HTML attributes
   (verified in the live DOM) — with no explicit CSS size, the browser
   renders it at its literal 150x150px, which is what was making the whole
   comment look oversized. Comments are subordinate to the post itself, so
   this gets a smaller size than the entry-level avatar (38px). */
.acomment-avatar.item-avatar img.avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: var(--ns-radius-full) !important;
	/* 🚀 ADDED (task #630 follow-up): this rule had border-radius but was
	   missing the object-fit fix already applied to the entry-level and
	   group avatars — a non-square comment avatar was squashed into the
	   28x28 box instead of cropped. */
	object-fit: cover !important;
	/* 🚀 ADDED (task #634 follow-up): comment avatars carry ".item-avatar"
	   too, so they're also caught by BuddyBoss's generic
	   ".activity-list .activity-item div.item-avatar img { max-width: 40% }"
	   rule (buddypress.css ~L3753-3756) — same clamp that was shrinking the
	   entry-level avatar. */
	max-width: none !important;
}
.acomment-meta .author-name {
	font-family: var(--ns-font-semibold);
	font-size: 14px;
	color: var(--ns-text-heading) !important;
}
.acomment-content {
	background: var(--ns-surface-raised) !important;
	border-radius: var(--ns-radius-md);
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ns-text-body) !important;
}
.acomment-content p { margin: 0; }
.acomment-foot-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
}
.acomment-foot-actions a {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	align-items: center;
	gap: 4px;
	padding: 4px 8px !important;
	border-radius: var(--ns-radius-sm) !important;
	background: var(--ns-surface) !important;
	font-size: 12px !important;
}
.acomment-foot-actions .time-since { order: 99; background: none !important; padding: 4px 0 !important; font-size: 11px !important; } /* timestamp last, after action links */
.acomment-foot-actions a,
.acomment-foot-actions a:not([style]),
.activity-meta a {
	color: var(--ns-text-muted);
	text-decoration: none !important;
}
/* 🚀 ADDED (task #326): comment-level action links (Like/Reply/etc under a
   nested comment) had no hover feedback — .activity-meta a already has its
   own hover a few lines above this block, so only the comment-level one
   needed adding. */
.acomment-foot-actions a:hover {
	color: var(--ns-action) !important;
	text-decoration: none !important;
}
/* The real Like button's inner label span carries a hardcoded inline
   `style="color:#000000"` (verified in the live DOM dump) — inline style
   normally beats any external rule targeting an ANCESTOR, since the span
   itself is never otherwise targeted. Only a rule that targets the span
   directly, with !important, can override it. */
.acomment-foot-actions .like-count,
.activity-meta .like-count {
	color: inherit !important;
}
/* A second, older "Like" control (class "acomment-like fav-comment",
   onclick="budyboss_wall_comment_like_unlike" — note the typo in that
   function name, a good sign this is legacy/vestigial) renders alongside
   the real one (class "bp-like-button unfav.../fav...") in the live DOM —
   two separate like controls on one comment. The real one has working
   AJAX (a real href + nonce); this one is hidden rather than restyled. */
.acomment-like.fav-comment {
	display: none !important;
}

.activity-comments-toggle,
.acomment-read-more a {
	color: var(--ns-action) !important;
	font-family: var(--ns-font-semibold);
	font-size: 14px;
	text-decoration: none !important;
}
/* 🚀 ADDED (task #326): "View N more comments" / "Read more" toggles had no
   hover feedback despite already being the action color at rest. */
.activity-comments-toggle:hover,
.acomment-read-more a:hover {
	color: var(--ns-action-pressed) !important;
	text-decoration: none !important;
}

/* 🚀 ADDED (task #588): the comment reply composer (BuddyBoss's real
   markup — buddypress/activity/comment-form.php: form.ac-form >
   .ac-reply-content > .ac-textarea > .ac-input[contenteditable], plus
   .ac-submit-wrap) was never touched by this theme, so it fell straight
   through to BuddyBoss's own stock CSS (buddypress.css ~L9737-9821):
   hardcoded #eaeaea pill, #555 text, #767676 placeholder, and a stock
   #5087e5 blue send button. In dark mode that rendered as a light-gray
   "island" with an off-brand blue button floating inside an otherwise
   --ns-surface-dark card — the exact bug this task flagged. Values below
   mirror the app's real comment composer (components/DiscussionDrawer.tsx's
   commentInputField/commentSendBtn), reusing --ns-surface-raised (already
   the convention for sunken input-like surfaces on this site, see
   .acomment-content above) instead of literally copying the app's
   asymmetric #DCE3EC/#0A0F1C light/dark split. */
form.ac-form .ac-reply-content {
	background: var(--ns-surface-raised) !important;
	border: 1px solid transparent !important;
}
form.ac-form .ac-reply-content:focus-within {
	border-color: var(--ns-action) !important;
}
form.ac-form .ac-reply-content .ac-textarea .ac-input[contenteditable="true"] {
	color: var(--ns-text-heading) !important;
}
/* Empty-state placeholder ("Write a comment...") — real markup renders it
   via a ::before pseudo-element reading a data-placeholder attribute, not
   a real <input placeholder>, so it needs its own color rule. */
form.ac-form.events-initiated:not(.has-content) .ac-reply-content .ac-input:before,
form.ac-form.not-initialized .ac-reply-content .ac-input:before {
	color: var(--ns-text-muted) !important;
}
form.ac-form .ac-reply-content .ac-submit-wrap,
form.ac-form .ac-reply-content .ac-submit-wrap input[name="ac_form_submit"] {
	background-color: var(--ns-action) !important;
}
form.ac-form .ac-reply-content .ac-submit-wrap:before {
	color: var(--ns-on-action) !important;
}

/* 🚀 ADDED (task #588): the "…" Edit/Pin/Report/Delete bubble menu
   (.bb-activity-more-options-wrap .bb-activity-more-options, real markup
   from bb_nouveau_activity_entry_bubble_buttons()) was only ever styled for
   *position* in this theme (see the entry-header block above) — its actual
   panel chrome fell through to BuddyBoss's stock CSS (buddypress.css
   ~L4544-4614): a hardcoded white #fff panel, #fff pointer triangle, and
   #7f868f menu-item text with a stock #5087e5 blue hover. In dark mode this
   rendered as a solid white dropdown floating over the dark activity
   stream. */
.activity-list .bb-activity-more-options-wrap .bb-activity-more-options-action i {
	color: var(--ns-text-muted) !important;
}
.activity-list .bb-activity-more-options-wrap .bb-activity-more-options-action:hover i {
	color: var(--ns-action) !important;
}
.activity-list .bb-activity-more-options-wrap .bb-activity-more-options {
	background: var(--ns-surface) !important;
	box-shadow: var(--ns-shadow-raised);
	border: 1px solid var(--ns-divider);
}
.activity-list .bb-activity-more-options-wrap .bb-activity-more-options:after {
	border-color: var(--ns-surface) var(--ns-surface) transparent transparent !important;
}
#buddypress .activity-list .bb-activity-more-options-wrap .bb-activity-more-options .generic-button a {
	color: var(--ns-text-body) !important;
	background-color: transparent !important;
}
#buddypress .activity-list .bb-activity-more-options-wrap .bb-activity-more-options .generic-button a:hover {
	color: var(--ns-action) !important;
	background-color: var(--ns-surface-raised) !important;
}
/* 🚀 ADDED (task #632): Edit (a.edit-activity, real BuddyBoss markup inside
   this same bubble menu) still showed visible "Edit" text via its own
   ".edit-label" span, inconsistent with every other action link on the site
   now being icon+tooltip only. ".bp-screen-reader-text" (the OTHER span
   inside this link) is left alone — it's already visually hidden and is
   the real accessible name, so removing it would be an a11y regression, not
   a fix. Tooltip text is added via activity-meta-normalize.js (data-balloon,
   same convention as Like/Comment), since this is core plugin markup. */
.activity-list .bb-activity-more-options-wrap .generic-button a.edit-activity .edit-label {
	display: none !important;
}
.activity-list .bb-activity-more-options-wrap .generic-button a.edit-activity {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
/* 🚀 CORRECTED (live DOM inspection via tunnel): the fix above targets
   BuddyBoss's own "a.edit-activity" inside the "…" bubble menu — but that
   element is confirmed hidden (offsetParent null) at all times on this
   site. The Edit button actually visible in the action row comes from a
   completely different, separately-installed plugin
   ("buddypress-edit-activity"), which injects its own real
   ".action-edit.buddyboss_edit_activity" link (entry-level) /
   ".buddyboss_edit_activity_comment" link (comments) directly into the row
   — confirmed via its real markup:
   <a class="button bp-secondary-action action-edit buddyboss_edit_activity"
      onclick="return buddypress_edit_activity_initiate(this)">Edit</a>
   That plugin's own JS (buddypress-edit-activity.js) reuses this SAME
   element for the "Save" state by adding an "action-save" class and
   replacing its text — so this can't be a static text-hide the way Like/
   Comment/Share were; it must stay text-visible once editing starts (the
   ":not(.action-save)" guards below), or the Save/Cancel confirmation
   controls would silently disappear while a post is being edited. */
.activity-meta a.action-edit.buddyboss_edit_activity:not(.action-save),
.acomment-meta a.buddyboss_edit_activity_comment:not(.action-save) {
	font-size: 0 !important; /* no wrapping span exists around the plain
		text node to target directly — this is the standard way to hide
		bare anchor text while keeping a same-element ::before icon visible
		(the icon's own explicit width/height below aren't affected by the
		parent's font-size). */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.activity-meta a.action-edit.buddyboss_edit_activity:not(.action-save)::before,
.acomment-meta a.buddyboss_edit_activity_comment:not(.action-save)::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-create.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-create.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}
.activity-list .bb-activity-more-options-wrap .generic-button a.edit-activity::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-create.svg);
	mask-image: url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/icons/ns-create.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

/* CORRECTED — a live DOM dump the user shared proved this earlier guess
   wrong. ".activity-state-reactions" (thumbs-up icon + reactor summary,
   e.g. "You") and ".activity-state-comments" ("N Comment(s)") are
   BuddyBoss's OWN native, real, currently-active reaction/comment-count
   SUMMARY line — no wp-ulike markup appears anywhere in the real DOM at
   all. This isn't a duplicate of the actual Like button in the
   ".activity-meta" row below it; it's the same real pattern as Instagram/
   Facebook's "Liked by X" line sitting above the action-button row — a
   passive summary, not a second click target. Hiding it (as an earlier fix
   attempted, based on an incorrect assumption about wp-ulike being the
   active mechanism) removed real functionality; styled properly instead. */
.activity-state {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	font-size: 12px;
	color: var(--ns-text-muted);
}
.activity-state-reactions,
.comment-reactions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
/* FIX (found live): BuddyBoss's own stock CSS absolutely-positions the
   comment-level reactions badge (".comment-reactions .activity-state-reactions
   { position:absolute; bottom:-10px; right:0; ... }") expecting its
   *immediate* wrapper, ".comment-reactions", to be its containing block.
   Without position:relative here, that containing block search skips right
   past it to the next positioned ancestor up the tree -- the whole
   "<li class="comment-item">" (BuddyPress gives every comment
   position:relative) -- so the small floating badge stretched/mispositioned
   itself across the entire comment instead of peeking out of the content
   bubble's corner. Scoped to .comment-reactions only, not
   .activity-state-reactions above (that one is the entry-level state row,
   which must stay in normal flow). */
.comment-reactions {
	position: relative;
}
.reactions_item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: var(--ns-radius-full);
	background: var(--ns-surface-raised);
}
.reactions_item i { font-size: 12px !important; }
.activity-reactions_count,
.comment-reactions_count {
	font-family: var(--ns-font-medium);
	color: var(--ns-text-muted);
}
.activity-state-comments,
.activity-state-comments.has-comments {
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-medium);
	text-decoration: none !important;
}
.activity-state-comments:hover { color: var(--ns-action) !important; }

/* 🚀 REMOVED (bug report — "Remove comments-count"): this is BuddyBoss
   core's own bp_nouveau_activity_state() output — the "N Comment(s)" link
   sitting on its own row above the Like/Comment/Share action row (confirmed
   via bp-templates/bp-nouveau/includes/activity/template-tags.php,
   ~line 284: <a class="activity-state-comments"><span class="comments-count">
   printf( '%d Comments', ... )</span></a>). Hiding it only removes this
   redundant summary line — the actual Comment button in the .activity-meta
   row below (a.acomment-reply.bp-primary-action) shares the exact same
   ".acomment-reply" class and independently opens/closes the same comment
   thread (assets/js/activity-comments-toggle.js listens for both selectors),
   so clicking to open comments still works with this row gone. */
.activity-state-comments {
	display: none !important;
}
/* The "who reacted" popup — hidden until BuddyBoss's own JS toggles it open
   (its own CSS already handles the show/hide toggle; this only restyles the
   chrome once visible). */
.activity-state-popup_inner {
	background: var(--ns-surface) !important;
	border-radius: var(--ns-radius-md);
	box-shadow: var(--ns-shadow-card);
}

/* wp-ulike / wp-ulike-pro — CONFIRMED (by the site owner) as the actual
   reactions mechanism in use, hooked into bp_activity_entry_meta and
   bp_activity_comment_options (real action hooks inside .activity-meta),
   so its button(s) render inline alongside Like/Comment/Edit. Verified by
   reading the plugin's own template generator functions
   (wp-ulike/includes/functions/templates.php, wp-ulike-pro/includes/
   general-functions.php) rather than guessing:
     - Out-of-the-box default is ONE button + one count-box
       (wrapper class "wpulike-default", button "wp_ulike_btn", counter
       "count-box"), which is what renders unless an admin explicitly
       picks a Pro voting style in wp-ulike's BuddyPress settings.
     - The "+ / count / −" pair actually seen live matches one of Pro's
       "Arrow/Minimal/Stack Votings" styles (wrapper class
       "wpulike-arrow-votings" / "wpulike-minimal-votings" /
       "wpulike-stack-votings" depending on which was picked), where the
       real per-button classes are "wp_ulike_btn_up" / "wp_ulike_btn_down"
       sharing one "count-box".
   Selectors below originally matched wp-ulike's own bundled CSS scoping
   verbatim (#buddypress #activity-stream ...), but #activity-stream is an
   ID only present on BuddyBoss's OWN stock activity directory template
   (buddypress/activity/index.php) — front-page.php and your-route.php are
   custom page templates that call bp_has_activities()/bp_the_activity()
   directly without that wrapper, so on those pages #activity-stream simply
   doesn't exist and every rule below silently matched nothing (this is why
   the widget kept rendering with wp-ulike's own unstyled default look no
   matter what the styling said). Rescoped to #buddypress instead — that
   wrapper div IS present on every page, custom or stock (see front-page.php
   / your-route.php's own "#buddypress.buddypress-wrap" comment) — with
   !important throughout so it still reliably beats wp-ulike's own CSS. */
#buddypress .activity-meta .wpulike,
#buddypress .activity-comments .wpulike,
#buddypress .activity-inner .wpulike {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
}
#buddypress .activity-comments .wpulike .wp_ulike_general_class,
#buddypress .activity-meta .wpulike .wp_ulike_general_class {
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	gap: 4px;
}
#buddypress .activity-comments .wpulike button.wp_ulike_btn,
#buddypress .activity-meta .wpulike button.wp_ulike_btn,
#buddypress .activity-inner .wpulike button.wp_ulike_btn {
	background: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: var(--ns-radius-md) !important;
	height: 30px !important;
	padding: 0 12px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--ns-font-semibold);
	font-size: 12px !important;
	cursor: pointer;
}
/* Pro's "down/dislike" button specifically — real class "wp_ulike_btn_down" */
#buddypress .activity-comments .wpulike button.wp_ulike_btn_down,
#buddypress .activity-meta .wpulike button.wp_ulike_btn_down {
	background: var(--ns-destructive-subtle) !important;
	color: var(--ns-destructive) !important;
}
#buddypress .activity-comments .wpulike .count-box,
#buddypress .activity-meta .wpulike .count-box,
#buddypress .activity-inner .wpulike .count-box {
	font-family: var(--ns-font-semibold);
	font-size: 12px !important;
	color: inherit !important;
	background: transparent !important;
	box-shadow: none !important;
	min-width: 12px;
	text-align: center;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}
/* the free default template's count-box draws a little CSS-triangle
   "pointer" via ::before pointing at the button — harmless but visually
   odd once the button chrome above is restyled; drop it. */
#buddypress .wpulike-default .count-box:before { display: none !important; }
/* wp-ulike's button ships its own emoji/icon as either a real <img>/<svg> or
   a CSS background-image on an inner span, depending on the icon set
   picked in its admin panel — sized here so it doesn't blow out the pill's
   30px height regardless of which one is configured. */
#buddypress .activity-meta .wpulike button.wp_ulike_btn img,
#buddypress .activity-meta .wpulike button.wp_ulike_btn svg,
#buddypress .activity-comments .wpulike button.wp_ulike_btn img,
#buddypress .activity-comments .wpulike button.wp_ulike_btn svg {
	width: 14px !important;
	height: 14px !important;
}
/* Comment-level wp-ulike widget renders inside .acomment-content, which is
   already sized down for comments generally — shrink this to match rather
   than sharing the entry-level 30px pill height, which was contributing to
   comments reading oversized. */
#buddypress .acomment-content .wpulike button.wp_ulike_btn {
	height: 22px !important;
	padding: 0 8px !important;
}
#buddypress .acomment-content .wpulike .count-box {
	font-size: 11px !important;
}

/* Defensive catch-all: whatever BuddyBoss's real markup structure turns out
   to be for a given button (plain <a>, or an <a> nested inside its own
   "generic-button" wrapper div — both exist in BuddyBoss's own CSS, see
   buddypress.css ~L4198), nothing inside .activity-meta is allowed to
   stretch to fill the row. This is what was putting Share on its own
   full-width highlighted line even after the .activity-meta a fix above. */
.activity-meta .generic-button,
.activity-meta > * {
	flex: 0 1 auto !important;
	width: auto !important;
}
.activity-meta .generic-button > a {
	width: auto !important;
	flex: 0 1 auto !important;
}
/**
 * 🚀 FIXED (user-reported, "remove background on hover"): live DOM inspection
 * showed Like/Comment/Edit are the "<a> nested inside its own generic-button
 * wrapper div" case referenced in the comment above — and BuddyBoss's own
 * core CSS has a dedicated, MORE SPECIFIC hover rule just for that exact
 * shape ("div.generic-button > a:hover { background-color: #eaeaea }",
 * buddypress.min.css), which wins over this file's earlier, lower-specificity
 * ".activity-meta a:hover"/".bp-secondary-action:hover" overrides (confirmed
 * via a live specificity check: BuddyBoss's selector chain out-specifies
 * both). Share/Bookmark/View aren't nested in a generic-button wrapper, so
 * they were never affected — this rule only needed to target the
 * generic-button case specifically. "html body" is prepended purely to push
 * this selector's specificity above BuddyBoss's own chain (both use
 * !important, so without that, higher specificity — not load order — decides
 * the winner); it carries no semantic meaning.
 */
html body .activity-list .activity-item .activity-meta .generic-button > a:hover,
html body .activity-list .activity-item .activity-meta .generic-button > a:focus {
	background: transparent !important;
	background-color: transparent !important;
}
/**
 * 🚀 FIXED (same report): ".ns-view-count" is a <span>, not an <a>, so none
 * of the "a.button..." hover overrides above ever matched it — only the
 * generic ".bp-secondary-action:hover" rule (near the top of this file, a
 * shared style also used by unrelated buttons like "Join Group") did,
 * unopposed, giving it a green-tinted hover fill despite being a
 * non-interactive, cursor:default counter. "span." adds just enough
 * specificity to win over that shared rule.
 */
span.ns-view-count:hover {
	background: transparent !important;
}

#bp-nouveau-activity-form,
.activity-update-form {
	background: var(--ns-surface) !important;
	border-radius: var(--ns-radius-lg) !important;
	box-shadow: var(--ns-shadow-card);
	border: none !important;
}

/* ==========================================================================
   GROUPS DIRECTORY (card grid)
   ========================================================================== */

#groups-list.groups-dir-list .item-entry,
.bb-group-card {
	/* --ns-surface-raised, not --ns-surface: this list sits inside the
	   page's own .ns-card wrapper (the theme's generic Elementor content
	   shell), which already uses --ns-surface as ITS background. Using the
	   same token here made each row invisible against its container (task
	   258 — confirmed live, zero contrast). --ns-surface-raised is this
	   stylesheet's existing convention for exactly this "nested/elevated
	   element one step lighter than its parent" case (see e.g. the
	   activity-meta and object-nav rules above). */
	background: var(--ns-surface-raised) !important;
	border-radius: var(--ns-radius-lg) !important;
	box-shadow: var(--ns-shadow-card);
	border: none !important;
	display: block;
	margin-bottom: 12px;
	overflow: hidden;
}

.list-title.groups-title,
.bb-card-heading {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-bold);
}

.item-meta.group-details,
.bb-card-meta {
	color: var(--ns-text-muted) !important;
	font-size: 12px;
}

.item-desc.group-item-desc {
	color: var(--ns-text-body) !important;
}

/* BuddyBoss's own stock grid CSS (buddypress.css: `.grid > li .list-wrap`)
   paints a light #fafafa fill + #eee border on this nested wrapper, which
   sits visually on top of and hides the dark background applied to the
   parent .item-entry above. Confirmed live via computed-style inspection
   (task 258) — .item-entry itself IS dark and correctly styled; .list-wrap
   is the actual element painting the white card the user sees. Scoped to
   #groups-list.groups-dir-list only (not a bare .list-wrap override) since
   BuddyBoss reuses that class elsewhere (e.g. the members directory) which
   this task doesn't touch. */
#groups-list.groups-dir-list .item-entry .list-wrap {
	background: transparent !important;
	border: none !important;
	border-radius: inherit;
}

/* ==========================================================================
   SINGLE GROUP PAGE — cover placeholder, moderators avatar, post composer
   All three confirmed live via computed-style inspection (task 258).
   ========================================================================== */

/* Group has no cover photo uploaded yet ("has-default"): BuddyBoss's own
   #buddypress #header-cover-image rule (2-ID specificity) hardcodes a flat
   white fill in that case — needs matching specificity to override. */
#buddypress #header-cover-image.has-default {
	background-color: var(--ns-surface-raised) !important;
}

/* "Organized by" admin/mod avatar list: the <a class="bp-tooltip"> wrapper
   is squeezed narrow by its dl/dd/ul ancestors' shrink-to-fit widths, but
   the <img> keeps its real HTML width/height attributes (150×150) since
   nothing here constrains them — width collapses to ~34px while height
   stays 150px, stretching the avatar into a tall oval. Forcing an explicit
   small square (matching the 38px author-avatar convention set above)
   fixes it regardless of the ancestor chain's width. */
.moderators-lists img.avatar {
	width: 38px !important;
	height: 38px !important;
	border-radius: var(--ns-radius-full) !important;
	object-fit: cover !important;
}

/* Post composer ("Share something with the group…"): BuddyBoss's own
   #whats-new-form / #whats-new-toolbar hardcode white/light-gray fills that
   sat untouched because nothing on this site had targeted the single-group
   composer before. Icon color also darkened to stay legible once the strip
   goes dark. */
#whats-new-form {
	background: var(--ns-surface) !important;
}
/* 🚀 UPDATED (task #776, "light green instead of grey"): swapped to the
   --ns-surface-chrome token (now a translucent brand-green wash — see
   style.css) instead of the flat neutral --ns-surface-raised, so the poll-
   icon chip this ID wraps in the footer matches the header/footer/title
   chrome elsewhere in the composer rather than reading as an unrelated grey
   box at a different "level" of the same component. */
#whats-new-toolbar {
	background: var(--ns-surface-chrome) !important;
}
#whats-new-toolbar .toolbar-button i {
	color: var(--ns-text-muted) !important;
}
/* 🚀 FIXED (task #766, "inner areas"): this was var(--ns-text-faint) — meant
   for de-emphasized secondary text, not what someone is actively typing.
   Real post content rendered muted/low-contrast against the composer's own
   dark surface. Actual typed text now gets the same body-copy color as
   everything else in the app; the placeholder keeps its own muted look via
   the ::before rule below (BuddyBoss/Medium Editor render the placeholder as
   a `content: attr(placeholder)` pseudo-element on this same contenteditable
   div, hardcoded to a light-mode-only rgb(187,187,187) that reads as too-low-
   contrast pale gray against a dark surface — retokenized here too). */
#whats-new {
	color: var(--ns-text-body) !important;
}
#whats-new:empty:before {
	color: var(--ns-text-faint) !important;
}

/* 🚀 Composer polish (task #498, follow-up to the #497 onclick fix) —
   confirmed live via computed-style inspection on the Explore/Your Route
   inline composer (#ns-compose > #bp-nouveau-activity-form.activity-update-
   form, which already gets this file's card treatment above: dark surface,
   16px radius, shadow, no border). The PROBLEM is one level deeper: the
   actual <form id="whats-new-form"> BuddyBoss renders inside that card still
   carries its own stock inline-dialog chrome — a flat 1px light-gray border,
   0 radius, 0 padding — meant for when this same markup is opened as a
   floating modal (hence the header/close-button/feature-image row at the
   top, which core's own CSS already hides via display:none in that state).
   Nested inside our already-card-styled wrapper, that border reads as a
   stray rectangle-in-a-rectangle with zero breathing room. Stripping the
   border/radius here lets the OUTER wrapper's rounding read as one
   continuous card, and the added padding/gap give the avatar row and text
   field the same spacing convention used by every other ns-card on the
   site. overflow:hidden on the outer wrapper keeps the toolbar's own flat
   bottom edge from poking past the parent's rounded corners. */
#bp-nouveau-activity-form.activity-update-form,
.activity-update-form {
	overflow: hidden;
}
#whats-new-form {
	border: none !important;
	border-radius: 0 !important;
	padding: 16px !important;
}
.whats-new-form-header {
	gap: 10px;
	margin-bottom: 10px;
}
.whats-new-form-header .activity-post-avatar img {
	border-radius: var(--ns-radius-full) !important;
}
.whats-new-form-header .activity-post-user-name-container,
.whats-new-form-header .activity-post-user-name-container a {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-semibold);
}
#whats-new {
	border-radius: var(--ns-radius-md) !important;
	padding: 4px 0 !important;
}
/* 🚀 FIXED (task #499): the original rule here bled the toolbar edge-to-edge
   with `margin: 12px -16px -16px` to match its rounded corners to the outer
   card's — solving a corner-clipping problem that didn't actually exist,
   since #whats-new-form already has its own 16px padding on every side, so
   the toolbar was never touching the card's outer edge in the first place.
   That negative margin dragged the toolbar (and everything BuddyBoss Pro
   appends inside it via the bb_whats_new_toolbar_after hook — e.g. the Add
   Poll icon, #activity-poll-button) partway outside the card's padded
   content box, which is what made that icon appear to "float" detached
   below-left of the composer, overlapping the next feed card. Reverted to a
   simple self-contained inset strip; added position/overflow so anything
   this or a future hook renders here stays visually contained. */
#whats-new-toolbar {
	position: relative;
	overflow: hidden;
	margin-top: 12px;
	border-radius: var(--ns-radius-md) !important;
}

/* 🚀 FIXED (task #766, "inner areas"): the optional post-title field
   (#whats-new-title) had never been touched by this theme — confirmed live,
   zero --ns-* coverage. BuddyBoss core hardcodes it as an 18px/600-weight
   input on a flat #eee border with #333 text, which reads as an oversized
   heading rather than an optional field, and (being pure hex, no theme
   awareness) sat as a stark white box on this composer's dark surface in
   dark mode. Demoted the visual weight to sit under the body-copy textarea
   rather than above it, swapped the border/background for theme surface
   tokens, and gave the placeholder text its own muted color rather than
   inheriting the (now heading-colored) typed-text color. */
/* 🚀 UPDATED (task #776): swapped to --ns-surface-chrome (brand-green wash
   in light mode) to match the composer's other chrome-level surfaces —
   header, footer, toolbar chip — instead of the flat neutral grey. */
#whats-new-title {
	background: var(--ns-surface-chrome) !important;
	color: var(--ns-text-heading) !important;
	border: 1px solid var(--ns-divider) !important;
	border-radius: var(--ns-radius-md) !important;
	font-family: var(--ns-font-medium);
	font-size: 15px !important;
	font-weight: 500 !important;
	padding: 10px 14px !important;
	margin-bottom: 8px;
}
#whats-new-title::placeholder {
	color: var(--ns-text-faint) !important;
}

/* 🚀 FIXED (task #766, "inner areas"): #editor-toolbar (the row holding the
   "Aa" text-formatting toggle and "@" mention icons) is a separate container
   from #whats-new-toolbar above (the media-attach row this file already
   styled in task #498) and had never been touched — confirmed live via
   computed-style inspection: transparent background, no border, and
   BuddyBoss core's own 20px/25px/16px padding, which read as a large blank
   gap between the textarea and a row of icons floating with no visual
   connection to the rest of the composer. Added a divider border to tie it
   to the content above (matching the same --ns-divider convention used by
   the header/footer bars below) and tightened the inherited padding so the
   icon row reads as a compact toolbar strip rather than empty whitespace. */
#editor-toolbar {
	border-top: 1px solid var(--ns-divider) !important;
	padding: 10px 16px !important;
	margin-top: 8px;
	gap: 6px;
}
/* 🚀 RESTYLED (task #770/#774): the Aa/@ icons had color but no hit-area or
   hover feedback (same gap as the header/footer icons above — see those
   comments for the hover-pill convention this follows). Sized to 32x32 with
   --ns-radius-sm (task #774) to match the header's close/feature-image
   buttons and the footer's poll/schedule buttons, so every icon control
   across the composer's header/toolbar/footer reads as one consistent
   system instead of three slightly-different sizes. */
#editor-toolbar .toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--ns-radius-sm);
	transition: background 0.15s ease, color 0.15s ease;
}
#editor-toolbar .toolbar-button i,
#editor-toolbar .toolbar-button span {
	color: var(--ns-text-muted);
}
#editor-toolbar .toolbar-button:hover {
	background: var(--ns-action-subtle);
}
#editor-toolbar .toolbar-button:hover i,
#editor-toolbar .toolbar-button:hover span {
	color: var(--ns-action);
}

/* Post/Save/Update submit button — BuddyBoss only renders this once the
   field has content (its own is-empty/is-focused state classes toggle it),
   so style it defensively by the shared .button class BuddyBoss always
   gives it rather than an ID, to match the app's primary-action pill look
   used elsewhere (e.g. the ns-composer-pill label, Share Update nav button). */
/* 🚀 RESTYLED (task #776, "Post button needs proper padding/margin/
   background"): background/radius/weight were already themed, but the
   button had no padding or sizing of its own — it fell back to BuddyBoss's
   stock 4-6px input padding, so it rendered as a cramped, undersized pill
   next to the 32px-tall schedule button beside it. Explicit padding + a
   min-height matching that 32px system, and a pressed-state hover
   background matching every other primary-action control on the site.
   🚀 UPDATED (task #776): dropped the extra margin-left added here — the
   schedule dropdown button now carries its own right margin (see its rule
   above), so adding margin here too was doubling up the gap between them. */
#whats-new-form .activity-post-form-buttons .button,
#whats-new-form input[type="submit"].button {
	background: var(--ns-action) !important;
	color: var(--ns-on-action) !important;
	border: none !important;
	border-radius: var(--ns-radius-full) !important;
	font-family: var(--ns-font-semibold);
	font-weight: 600 !important;
	font-size: 13px !important;
	box-shadow: none !important;
	padding: 8px 20px !important;
	min-height: 32px;
	margin: 0 !important;
	line-height: 1.4;
}
#whats-new-form .activity-post-form-buttons .button:hover,
#whats-new-form input[type="submit"].button:hover {
	background: var(--ns-action-pressed) !important;
}

/* 🚀 FIXED (task #499, true root cause): live inspection via getBoundingClientRect
   traced the floating poll icon to something the earlier toolbar-margin fix
   above didn't touch at all. BuddyBoss renders its composer with a second
   class, `.modal-popup`, on the SAME `#bp-nouveau-activity-form` element our
   #ns-compose card wraps (buddypress.css: `.activity-update-form.modal-popup
   { position: fixed; width:100%; height:100%; z-index: 999991; ... }`). That
   class is meant for when this markup pops up as a true full-screen dialog
   ("Create a post", with its own Title field — the first user screenshot).
   Our explore-interactions.js instead reveals this exact element INLINE
   inside the card, but never strips modal-popup, so under the hood it's
   still `position: fixed` — taken completely out of the card's layout and
   positioned relative to the viewport instead. Confirmed live: focusing the
   composer's text field (which is what un-hides the toolbar/poll button in
   BuddyBoss's own JS) placed the toolbar and poll icon well below and
   outside #ns-compose's actual rendered box — exactly the "floating,
   overlapping the next card" bug from the user's screenshots. Neutralizing
   modal-popup's fixed/full-viewport/backdrop rules here forces the form back
   into normal in-flow layout inside our card, so the toolbar and everything
   in it (poll button, emoji picker, etc.) stays contained no matter what
   BuddyBoss Pro appends to it. Scoped to #ns-compose so the real standalone
   "Create a post" modal (if ever triggered elsewhere as an actual overlay)
   is untouched. */
#ns-compose .activity-update-form.modal-popup {
	position: relative !important;
	inset: auto !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	padding: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	z-index: auto !important;
	display: block !important;
}
#ns-compose .activity-update-form.modal-popup .activity-update-form-overlay {
	position: static !important;
	inset: auto !important;
}
#ns-compose .activity-update-form.modal-popup #whats-new-form {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* 🚀 FIXED (task #499, second root cause found on user re-report): after the
   modal-popup fix above, the user still saw what looked like a duplicate
   composer — a small bordered "Share what's on your mind…" box sitting
   directly above the full "Create a post" panel, with a visible gap between
   them. Live inspection found these are NOT the same element: BuddyBoss
   renders a SECOND, completely separate skeleton/loading element,
   `#bp-nouveau-activity-form-placeholder` (class `.bp-nouveau-activity-
   form-placeholder-`), as a sibling of our real `#bp-nouveau-activity-form`
   inside #ns-compose. BuddyBoss's own stylesheet hides it unconditionally
   (`.bp-nouveau-activity-form-placeholder- { display: none; }`, no
   !important) — but BuddyBoss's own JS sets an inline `style="display:
   block;"` on it as part of its Backbone render lifecycle and, on this
   custom inline-embedded page (vs. BuddyBoss's native activity stream), it
   never gets hidden again. That inline style (no !important) was beating
   the unqualified stock rule, so this redundant skeleton sat there
   permanently, stacked right above the real, working composer — this is
   what actually LOOKED like a floating/duplicated icon and a second
   half-composer. Confirmed live via computed-style + getAttribute('style')
   inspection. Re-hiding it with !important (which DOES beat a non-important
   inline style) removes the redundant box entirely; the real composer
   beneath it is unaffected. */
#ns-compose #bp-nouveau-activity-form-placeholder,
#ns-compose .bp-nouveau-activity-form-placeholder- {
	display: none !important;
}

/* 🚀 FIXED (task #698): the composer's own "Create a post" header bar
   (.bb-model-header — BuddyBoss Pro's stock chrome for the title/close-
   button row that appears above #whats-new-form once the field is
   focused) ships with a near-white background (#fbfbfc) and no color
   declarations of its own on the title/close-button/feature-image
   elements — so in dark mode they silently inherited this site's light
   dark-mode body text color, producing near-invisible pale-gray text on a
   near-white bar. Confirmed live via computed-style inspection: color
   rgb(207, 216, 230) on background rgb(255, 255, 255) — effectively
   invisible. Rather than patching the text color in place (which would
   leave a jarring near-white strip floating inside our otherwise fully
   dark-themed card), recolor the whole bar to the card's own raised
   surface so it blends in — the inherited text color then reads
   correctly against it in both light and dark mode. The two icon
   controls (close button, feature-image toggle) get their own explicit
   override since their hardcoded colors (dark navy / dark gray) assumed
   the original white bar and would otherwise vanish against the new dark
   one. Scoped to #ns-compose so this file's many OTHER .bb-model-header
   instances (video-thumbnail uploader, report popup, album creation,
   etc.) — genuine full-screen white modals outside this themed inline
   card — keep their native light styling untouched. */
/* 🚀 UPDATED (task #702): originally scoped to `#ns-compose .bb-model-header`
   only, on the assumption the Profile page's OWN activity-directory composer
   was a totally separate, un-modified BuddyBoss modal instance. Live DOM
   inspection (walking the ACTUAL visible header, not a same-classed hidden
   modal template elsewhere in the page — BuddyBoss renders several
   `.bb-model-header`-having templates hidden in the DOM at once, which
   produced a false lead on the first pass) showed this is wrong: the
   Profile page's composer uses the exact same markup, `#bp-nouveau-
   activity-form.activity-update-form.modal-popup > header#activity-header
   .bb-model-header`, as the #ns-compose-wrapped Explore/Your Route
   composer — it's just not wrapped in #ns-compose. That form ID is stable
   and unique to the real "new post" composer (BuddyBoss's video-uploader,
   report-popup, and album-creation modals live under their own distinct
   container IDs, not #bp-nouveau-activity-form), so scoping to the ID
   instead of #ns-compose fixes BOTH instances at once and can't leak onto
   any other modal. */
/* 🚀 RESTYLED (task #774, composer chrome cleanup): swapped the flat
   --ns-surface-raised fill (read as a grey institutional slab in light mode —
   see the --ns-surface-chrome comment in style.css) for the new, purpose-
   built --ns-surface-chrome token, which stays a barely-there off-white in
   light mode and keeps the previous raised-panel look in dark mode. Also
   rounded the bar into a standalone "chip" (it's already inset from the
   card's edges — see task #499's rect measurements) and normalized its
   padding to this composer's 16px rhythm instead of BuddyBoss's stock,
   mismatched 15px/25px. The old border-bottom divider is dropped now that
   the bar reads as its own rounded, color-contrasted block; margin-bottom
   gives it breathing room from the title/body fields below. */
#bp-nouveau-activity-form .bb-model-header {
	background: var(--ns-surface-chrome) !important;
	box-shadow: none !important;
	border-bottom: none !important;
	border-radius: var(--ns-radius-md) !important;
	padding: 14px 16px !important;
	margin-bottom: 8px;
}
#bp-nouveau-activity-form .bb-model-header h3 {
	font-family: var(--ns-font-semibold);
}
/* 🚀 RESTYLED (task #770, "restyle inner areas round 2"): the close-button
   and feature-image-toggle icons had a recolor (task #698) but no hit-area
   or hover feedback of their own — just bare icon glyphs sitting in the
   header row. Gives both the same "utility toolbar icon" treatment as
   .ns-topbar__theme-toggle (the theme's own established hover-pill
   convention: transparent at rest, a soft tinted pill + brand-color icon on
   hover) rather than the flat, no-background convention used for feed
   action-row icons (Like/Comment/Share) — those two conventions are
   deliberately different elsewhere in this file, and this is a toolbar
   control, not a feed action, so it follows the former. */
#bp-nouveau-activity-form .bb-model-header .bb-model-close-button,
#bp-nouveau-activity-form .bb-activity-post-feature-image-ctrl {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--ns-radius-sm);
	transition: background 0.15s ease, color 0.15s ease;
}
#bp-nouveau-activity-form .bb-model-header .bb-model-close-button i,
#bp-nouveau-activity-form .bb-activity-post-feature-image-ctrl i {
	color: var(--ns-text-muted) !important;
}
#bp-nouveau-activity-form .bb-model-header .bb-model-close-button:hover,
#bp-nouveau-activity-form .bb-activity-post-feature-image-ctrl:hover {
	background: var(--ns-action-subtle) !important;
}
#bp-nouveau-activity-form .bb-model-header .bb-model-close-button:hover i,
#bp-nouveau-activity-form .bb-activity-post-feature-image-ctrl:hover i {
	color: var(--ns-action) !important;
}

/* 🚀 FIXED (task #702 — "toolbar background"): the bottom bar housing the
   camera/video/attachment/poll icons and the Post button (.whats-new-form-
   footer) ships with a hardcoded light gray background (#eaeaea) that
   BuddyBoss never intended to be recolored — confirmed live, it's the one
   piece of this composer with no theme styling at all. In light mode that
   merely looks a little flat; in dark mode it's a stark light-gray patch
   glued to the bottom of an otherwise fully dark-themed composer. Recolor
   to the card's own raised surface so it reads as one continuous panel in
   both modes, and pin the icon color explicitly rather than leaving it to
   coincidentally-correct inheritance (it was only reading var(--ns-text-
   muted) by accident, via ancestor cascade). */
/* 🚀 RESTYLED (task #774, composer chrome cleanup): swapped to the new
   --ns-surface-chrome token (see the header's task #774 comment above and
   the style.css token comment) so the footer no longer reads as a flat grey
   slab in light mode, and rounded it into the same standalone "chip" as the
   header — it's already inset from the card's edges (see task #499's rect
   measurements). Dropped the border-top divider now that the bar is its own
   rounded, color-contrasted block; margin-top gives it breathing room from
   the toolbar/body above. */
#bp-nouveau-activity-form .whats-new-form-footer {
	background: var(--ns-surface-chrome) !important;
	border-top: none !important;
	border-radius: var(--ns-radius-md) !important;
	margin-top: 8px;
}
/* 🚀 FIXED (task #770, "restyle inner areas round 2"): live inspection found
   this bar was never actually rendering as one row. Root cause, confirmed
   via getComputedStyle: BuddyBoss core sets `flex-direction: column` (plus
   `align-items: center`) on .whats-new-form-footer itself — a layout meant
   for narrow/mobile widths — so its two children (#whats-new-toolbar, the
   poll-icon wrapper, and #activity-form-submit-wrapper, holding the
   schedule dropdown + Post button) always stacked as two independently-
   centered rows instead of icons-left/actions-right on one row, no matter
   how wide the composer card actually was. Forcing `flex-direction: row`
   (this file only had `flex-wrap`/`justify-content` overrides before, never
   touched direction) fixes this without touching the children's internal
   contents (the poll button, schedule dropdown, and Post button keep
   whatever styling they already had). */
#bp-nouveau-activity-form .whats-new-form-footer {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 12px 16px !important;
	gap: 10px;
}
#bp-nouveau-activity-form .whats-new-form-footer > #whats-new-toolbar,
#bp-nouveau-activity-form .whats-new-form-footer > #activity-form-submit-wrapper {
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 !important;
}
#bp-nouveau-activity-form .whats-new-form-footer > #activity-form-submit-wrapper {
	display: flex !important;
	align-items: center !important;
	gap: 8px;
}
/* 🚀 RESTYLED (task #770/#774): same "utility toolbar icon" hover-pill
   convention applied to the header above — the poll icon had a recolor
   (task #702) but no hit-area or hover feedback. Sized to a fixed
   32x32/--ns-radius-sm box (task #774) since it holds a single glyph with
   nothing else competing for space. */
#bp-nouveau-activity-form .whats-new-form-footer .toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent !important;
	border-radius: var(--ns-radius-sm);
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}
/* 🚀 RESTYLED (task #776, "restyle the scheduling button padding and
   margin"): the schedule dropdown isn't a single glyph like the poll
   icon — it's a clock icon PLUS a caret, so forcing it into the same fixed
   32x32 square as the poll button (task #774) clipped/cramped the caret
   against the box edge. Let it size to its own content instead (auto width,
   a comfortable 6px/10px padding) and gave it its own right margin for
   breathing room before the Post button, rather than relying on the
   parent's 8px flex gap alone. */
#bp-nouveau-activity-form .whats-new-form-footer .bb-schedule-post_dropdown_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 32px;
	background: transparent !important;
	border-radius: var(--ns-radius-sm);
	padding: 6px 10px;
	margin: 0 6px 0 0;
	transition: background 0.15s ease, color 0.15s ease;
}
#bp-nouveau-activity-form .whats-new-form-footer .toolbar-button i,
#bp-nouveau-activity-form .whats-new-form-footer .bb-schedule-post_dropdown_button i {
	color: var(--ns-text-muted) !important;
}
#bp-nouveau-activity-form .whats-new-form-footer .toolbar-button:hover,
#bp-nouveau-activity-form .whats-new-form-footer .bb-schedule-post_dropdown_button:hover {
	background: var(--ns-action-subtle) !important;
}
#bp-nouveau-activity-form .whats-new-form-footer .toolbar-button:hover i,
#bp-nouveau-activity-form .whats-new-form-footer .bb-schedule-post_dropdown_button:hover i {
	color: var(--ns-action) !important;
}

/* ==========================================================================
   SINGLE GROUP HEADER — full custom rebuild (task 258 follow-up, round 2)
   Markup: buddypress/groups/single/group-header.php (theme override,
   replaces BuddyBoss's stock big-cover-photo hero with the app's compact
   profile-card layout — see that file's own header comment for the full
   rationale). The old #cover-image-container / .item-header-wrap /
   .moderators-lists rules above no longer apply to groups (this new markup
   doesn't use those classes) but are left in place since member profile
   pages still share that older header structure.
   ========================================================================== */

.ns-group-header {
	padding: 14px 16px 0;
	background: transparent;
}
.ns-group-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.ns-group-header__back,
.ns-group-header__manage {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
	color: var(--ns-text-heading);
	font-size: 15px;
	text-decoration: none;
}
/* 🚀 ADDED (task #326): the back/manage icon buttons in the group header had
   no hover state at all. */
.ns-group-header__back:hover,
.ns-group-header__manage:hover {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
	text-decoration: none;
}
.ns-group-header__card {
	padding: 16px;
}
.ns-group-header__row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ns-group-header__title-block {
	flex: 1;
	min-width: 0;
}
.ns-group-header__desc {
	margin: 12px 0 0;
	color: var(--ns-text-body);
}
.ns-group-header .ns-avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--ns-radius-full);
	object-fit: cover;
}

/* ==========================================================================
   GROUPS HUB — full custom directory rebuild (task 258 follow-up)
   Markup: buddypress/groups/index.php (theme override, not the stock
   BuddyBoss cover-card directory this section used to target).
   ========================================================================== */

/* The theme's generic Elementor page wrapper (the same one that supplies
   .ns-card/.ns-body around every BP directory's injected content — see
   task 258's investigation into where that wrapper comes from) prints the
   real WP "Groups" page's own the_title() as a plain "Groups" <h1> ABOVE
   this template's content. That's now redundant with this template's own
   "Groups Hub" heading below it — confirmed live (task 258 follow-up).
   `body.directory.groups` is BuddyPress's own stable body-class pair for
   specifically the groups directory (not the single-group view, which
   gets "single-item groups" instead), so this only hides it here. */
body.directory.groups .ns-card > .ns-h1:first-child {
	display: none;
}

.ns-groups-hub__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 4px;
}
.ns-groups-hub__create-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: var(--ns-radius-full);
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-size: 15px;
	text-decoration: none;
}
.ns-groups-hub__create-btn:hover,
.ns-groups-hub__create-btn:focus-visible {
	background: var(--ns-action-pressed);
	color: var(--ns-on-action);
}
/* Locked (non-Plus) state stays visually muted vs. the unlocked "+" —
   mirrors the app's lock-closed icon reading as disabled/gated, not just a
   recolored action button. */
.ns-groups-hub__create-btn:not(.is-unlocked) {
	background: var(--ns-surface-raised);
	color: var(--ns-text-muted);
}

/* "Groups You May Like" — 2-up (wraps to 1-up on narrow viewports) rail of
   real server-scored suggestion cards. */
.ns-groups-suggest { margin-bottom: 4px; }
.ns-groups-suggest__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 14px;
	color: var(--ns-text-heading);
}
/* Horizontal-scrolling carousel — matches the app's actual horizontally-
   scrollable FlatList (app/(tabs)/groups.tsx renders this as a row of
   fixed-width cards, SCREEN_WIDTH * 0.44 each, NOT a static wrapping grid).
   -webkit-overflow-scrolling for momentum on iOS Safari; scroll-snap so
   cards settle cleanly instead of stopping mid-card. */
.ns-groups-suggest__row {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
	margin: 0 -2px;
}
.ns-groups-suggest__row::-webkit-scrollbar { height: 6px; }
.ns-groups-suggest__row::-webkit-scrollbar-thumb { background: var(--ns-divider); border-radius: var(--ns-radius-full); }
.ns-groups-suggest__card {
	flex: 0 0 158px;
	width: 158px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: var(--ns-surface);
	border-radius: var(--ns-radius-md);
	box-shadow: var(--ns-shadow-card);
	padding: 12px;
}
.ns-groups-suggest__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.ns-groups-suggest__top .ns-avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--ns-radius-full);
	object-fit: cover;
}
/* 🚀 REMOVED (task #447): .ns-emoji used to shrink raw oversized/colorful
   emoji glyphs down to text size. All call sites now use ns_icon() (real
   inline Ionicons SVGs via .ns-icon in style.css) instead of emoji, so this
   rule and its callers were retired together — nothing references
   .ns-emoji anymore. */
.ns-groups-suggest__card .ns-chip--match { padding: 3px 8px; font-size: 11px; }
.ns-groups-suggest__title {
	display: block;
	margin: 0 0 6px;
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	color: var(--ns-text-heading);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* 🚀 ADDED (task #326): group-suggestion card title had no hover state. */
.ns-groups-suggest__title:hover { color: var(--ns-action); text-decoration: none; }
.ns-groups-suggest__meta,
.ns-groups-suggest__reason {
	margin: 0 0 6px;
	font-size: 11px;
	line-height: 15px;
	color: var(--ns-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ns-groups-suggest__reason { color: var(--ns-action); }
/* Pins the Join button to the same bottom edge on every card in the row,
   regardless of how many lines the name/reason above it take up. */
.ns-groups-suggest__card .ns-group-join-btn {
	margin-top: auto;
	padding: 7px 0;
	font-size: 12px;
}

/* Shared chip variants — .ns-chip is the existing base (buddypress-reskin
   uses it elsewhere as a plain static badge, not just the clickable filter
   pill it was originally built for in the search combo). */
.ns-chip--static { cursor: default; }
.ns-chip--match {
	cursor: default;
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
.ns-chip--status {
	cursor: default;
	margin-left: 8px;
	background: var(--ns-surface-raised);
	color: var(--ns-text-faint);
}
.ns-chip--status.is-public {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}

/* Directory row avatar images — .ns-avatar's own base styling only covers
   the initials-fallback <span> case; when bp_core_fetch_avatar() returns a
   real <img>, it needs the same circular clip explicitly. */
.ns-directory-row .ns-avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--ns-radius-full);
	object-fit: cover;
}

/* ==========================================================================
   BBPRESS FORUMS — directory listing, single topic, replies
   ========================================================================== */

#bbpress-forums,
.bbp-forums,
.bbp-topics {
	background: transparent;
	font-family: var(--ns-font-regular);
}

.bbp-forums .bbp-header,
.bbp-topics .bbp-header {
	background: var(--ns-surface-raised) !important;
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-bold);
	font-size: 12px;
	border-radius: var(--ns-radius-md) var(--ns-radius-md) 0 0;
}

.bbp-forums .bbp-body,
.bbp-topics .bbp-body {
	background: var(--ns-surface) !important;
	border-radius: 0 0 var(--ns-radius-md) var(--ns-radius-md);
	box-shadow: var(--ns-shadow-card);
}

.bbp-forum-title,
.bbp-topic-permalink {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-semibold) !important;
}
.bbp-forum-title:hover,
.bbp-topic-permalink:hover { color: var(--ns-action) !important; }

.bbp-forum-content,
.bbp-topic-meta,
.bbp-topic-started-by,
.bbp-topic-started-in,
.bbp-topic-freshness-author {
	color: var(--ns-text-muted) !important;
	font-size: 14px;
}

.bbp-topic-reply-count,
.bbp-forum-topic-count,
.bbp-forum-reply-count {
	color: var(--ns-text-body) !important;
}

/* Single topic lead post + replies */
#bbp-topic-lead .bbp-topic-content,
.bbp-reply-content,
.bbp-topic-content {
	background: var(--ns-surface) !important;
	border-radius: var(--ns-radius-lg) !important;
	box-shadow: var(--ns-shadow-card);
	color: var(--ns-text-body) !important;
	padding: 20px !important;
	margin-bottom: 12px !important;
}

.bbp-topic-author,
.bbp-reply-author {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-semibold);
}

.bbp-meta,
.bbp-topic-post-date,
.bbp-reply-post-date {
	color: var(--ns-text-faint) !important;
	font-size: 12px;
}

/* Reply form */
.bbp-reply-form fieldset.bbp-form {
	background: var(--ns-surface) !important;
	border-radius: var(--ns-radius-lg) !important;
	border: 1px solid var(--ns-divider) !important;
	padding: 16px !important;
}
.bbp-reply-form legend {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-bold);
}
#bb_reply_discard_draft.button.discard {
	background: transparent !important;
	color: var(--ns-text-muted) !important;
}

/* ==========================================================================
   FORUMS HUB + SINGLE FORUM + SINGLE TOPIC — full custom rebuild
   Mirrors the GROUPS HUB / SINGLE GROUP HEADER sections above exactly, per
   explicit instruction to restructure Forums "just exactly like the
   Group". Markup: bbpress/content-archive-forum.php, bbpress/
   content-single-forum.php, bbpress/content-single-topic.php + friends
   (theme overrides — see those files' own header comments). The stock
   .bbp-forums/.bbp-topics/.bbp-topic-content rules above no longer apply
   to the pages rebuilt here (this new markup doesn't use those classes)
   but are left in place as they still may apply to any bbPress widgets
   elsewhere that use the stock loop markup.
   ========================================================================== */

.ns-forums-hub .ns-directory-row__meta,
.ns-forum-row__stats {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.ns-forum-row__divider {
	color: var(--ns-text-faint);
}

/* Subscribe/Subscribed pill — bbPress's own real, already-AJAX-enhanced
   bbp_forum_subscription_link()/bbp_topic_subscription_link(), just
   restyled to look like a pill button matching .ns-btn-action/.ns-btn-subtle. */
.ns-forum-subscribe-btn .subscription-toggle,
.ns-forum-post__actions .subscription-toggle,
.ns-forum-post__actions .favorite-toggle {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--ns-radius-md);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 12px;
	text-decoration: none;
	background: var(--ns-action);
	color: var(--ns-on-action);
	margin-left: 6px;
}
.ns-forum-subscribe-btn span.is-subscribed .subscription-toggle,
.ns-forum-post__actions span.is-subscribed .subscription-toggle,
.ns-forum-post__actions span.is-favorite .favorite-toggle {
	background: var(--ns-surface-raised);
	color: var(--ns-text-muted);
}

/* Single forum + single topic compact header — reuses the exact
   .ns-group-header__* classes already defined for the single group page
   header above; no new selectors needed for the header shell itself. */
.ns-forum-header .ns-group-header__card { margin-bottom: 4px; }

/* New Topic / New Reply composer editors — bbp_the_content() renders
   either a plain textarea or a TinyMCE-backed WP editor depending on site
   settings; both get the same surface/border treatment. */
.ns-new-topic-form textarea,
.ns-new-reply-form textarea,
.ns-new-topic-form .wp-editor-area,
.ns-new-reply-form .wp-editor-area {
	width: 100% !important;
	box-sizing: border-box;
	border-radius: var(--ns-radius-md) !important;
	border: 1px solid var(--ns-divider) !important;
	background: var(--ns-surface) !important;
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-regular);
	font-size: 14px;
	padding: 10px 14px !important;
}
.ns-new-topic-form .wp-editor-tools,
.ns-new-reply-form .wp-editor-tools,
.ns-new-topic-form .quicktags-toolbar,
.ns-new-reply-form .quicktags-toolbar {
	background: var(--ns-surface-raised) !important;
	border-radius: var(--ns-radius-md) var(--ns-radius-md) 0 0 !important;
	border: 1px solid var(--ns-divider) !important;
	border-bottom: none !important;
}
/* 🚀 CHANGED (review — "the discussion list also needs restyling"): each
   topic row is now its own floating card instead of one flat list of
   hairline-divided rows (see loop-topics.php, which dropped the shared
   .ns-card wrapper). Tinted with the same --ns-card-topic-bg/border tokens
   the app's PsychologicalFeedCard uses for forum-topic cards elsewhere on
   the site, so the discussion list reads as "cards of topics" consistent
   with the rest of the site's card language, not a bare list. */
.ns-topic-row {
	background: var(--ns-card-topic-bg);
	border: 1px solid var(--ns-card-topic-border);
	border-radius: var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
	transition: transform 0.25s var(--ns-motion-snap), box-shadow 0.25s var(--ns-motion-snap), border-color 0.2s ease;
}
/* Undo the base .ns-directory-row stacked-list divider — each row is a
   standalone card now, so a hairline between adjacent rows would just
   double up with the card's own border. */
.ns-topic-row + .ns-topic-row { border-top: none; }
@media (prefers-reduced-motion: no-preference) {
	.ns-topic-row:hover {
		transform: translateY(-2px);
		box-shadow: var(--ns-shadow-raised);
	}
}
/* Pinned topic row accent */
.ns-topic-row.is-pinned {
	border-left: 3px solid var(--ns-action);
	padding-left: 13px;
}
.ns-topic-row .ns-directory-row__meta {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Lead post / reply cards — deliberately styled to match the app's
   PsychologicalFeedCard visual language (avatar, author, timestamp, body)
   even though bbPress replies have no shared PHP template with BuddyPress
   activity to reuse — see content-single-topic-lead.php's header comment. */
.ns-forum-post {
	padding: 14px 16px;
	margin-bottom: 10px;
}
.ns-forum-post__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.ns-forum-post__author {
	display: block;
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 14px;
	color: var(--ns-text-heading);
}
.ns-forum-post__date {
	display: block;
	font-size: 11px;
	color: var(--ns-text-faint);
}
.ns-forum-post__actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}
.ns-forum-post__body {
	color: var(--ns-text-body);
}
.ns-forum-post--lead {
	border-left: 3px solid var(--ns-action);
}
.ns-forum-post--reply {
	margin-left: 16px;
}

/* Threaded forum replies (15 October, staging crawl): bbPress indents each
   level by 90px (50px margin + 40px padding), so a fourth-level reply on a
   phone was 34px wide and the page scrolled sideways by 105px. Now each
   level steps in 14px beside a thin thread line, and on phones the steps
   stop after the second level, so a reply is never narrower than the column
   allows. */
.ns-forum-replies-list ul.bbp-threaded-replies,
#bbpress-forums ul.bbp-threaded-replies {
	margin: 0 0 0 14px !important;
	padding: 0 0 0 12px !important;
	border-left: 2px solid var(--ns-divider);
	list-style: none;
}
.ns-forum-replies-list li[class*="depth-"],
#bbpress-forums li[class*="depth-"] { min-width: 0; }
.ns-forum-replies-list ul.bbp-threaded-replies .ns-forum-post--reply,
#bbpress-forums ul.bbp-threaded-replies .ns-forum-post--reply { margin-left: 0; }
@media (max-width: 600px) {
	.ns-forum-replies-list ul.bbp-threaded-replies,
	#bbpress-forums ul.bbp-threaded-replies { margin-left: 6px !important; padding-left: 10px !important; }
	.ns-forum-replies-list ul.bbp-threaded-replies ul.bbp-threaded-replies ul.bbp-threaded-replies,
	#bbpress-forums ul.bbp-threaded-replies ul.bbp-threaded-replies ul.bbp-threaded-replies { margin-left: 0 !important; padding-left: 0 !important; border-left: 0; }
	.ns-forum-post--reply { margin-left: 0; }
}

.ns-forum-pagination {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}
.ns-forum-pagination .bbp-pagination-links a,
.ns-forum-pagination .bbp-pagination-links span.current {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	margin: 0 3px;
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
	color: var(--ns-text-body);
	text-decoration: none;
	font-size: 14px;
}
.ns-forum-pagination .bbp-pagination-links span.current {
	background: var(--ns-action);
	color: var(--ns-on-action);
}
/* 🚀 ADDED (task #326): pagination page-number links had no hover state. */
.ns-forum-pagination .bbp-pagination-links a:hover {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
	text-decoration: none;
}
.bbp-pagination,
.bbp-topic-pagination {
	color: var(--ns-text-faint) !important;
	font-size: 12px;
}
.bbp-pagination .bbp-pagination-links a {
	color: var(--ns-action) !important;
	text-decoration: none !important;
}
.bbp-pagination .bbp-pagination-links a:hover {
	color: var(--ns-action-pressed) !important;
	text-decoration: none !important;
}

/* 🚀 ADDED (review — "fix the navigation at the top"). Two pieces here:
   1. .ns-topics-pagination-count — the lightweight "Viewing X - Y of Z
      discussions" caption shown above the (infinite-scroll) topic list for
      JS visitors (see bbpress/pagination-topics.php's 'count' mode). No
      card/border — it's just a caption line, not a control.
   2. .ns-topics-pagination / .ns-express-jump — the FULL pagination (count +
      real numbered page links + Jump-to-page), only rendered inside the
      <noscript> fallback now. Previously these were three separate,
      completely unstyled pieces (a bare <p>, plain default-browser
      <a>/<span> page-number links, and a totally unstyled <input>+<button>
      for "Jump to station"); now they're one cohesive card, with the jump
      box visually merged onto the bottom of the same card via the adjacent-
      sibling selector below (ns_add_jump_to_page() in
      naijasubway-legacy-theme-functions.php renders it as the next sibling,
      immediately after this div, via bbp_template_after_pagination_loop —
      so it can't be nested in markup, only merged visually with CSS). */
.ns-topics-pagination-count {
	margin: 0 0 12px;
}
.ns-topics-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-card-border);
	border-radius: var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
	box-shadow: var(--ns-shadow-card);
	padding: 14px 16px;
	margin-bottom: 0;
}
.ns-topics-pagination .ns-topics-pagination-count {
	margin: 0;
	font-size: 13px;
}
.ns-topics-pagination .ns-topics-pagination-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.ns-topics-pagination .ns-topics-pagination-links a,
.ns-topics-pagination .ns-topics-pagination-links span.current,
.ns-topics-pagination .ns-topics-pagination-links span.dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	margin-left: 4px;
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
	color: var(--ns-text-body);
	text-decoration: none;
	font-size: 13px;
}
.ns-topics-pagination .ns-topics-pagination-links span.dots {
	background: transparent;
	color: var(--ns-text-faint);
}
.ns-topics-pagination .ns-topics-pagination-links span.current {
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-weight: 600;
}
.ns-topics-pagination .ns-topics-pagination-links a:hover {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
/* Merge the "Jump to station" box onto the bottom of the pagination card
   above — same surface, matching radius, hairline divider instead of a gap,
   so the two sibling elements read as one component. */
.ns-topics-pagination + .ns-express-jump {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-card-border);
	border-top: 1px solid var(--ns-divider);
	border-radius: 0 0 var(--ns-radius-lg) var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
	padding: 12px 16px;
	margin-top: -1px;
	margin-bottom: 16px;
}
.ns-express-jump input#ns-jump-input {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px 12px;
	border-radius: var(--ns-radius-md);
	border: 1px solid var(--ns-divider);
	background: var(--ns-surface-raised);
	color: var(--ns-text-body);
	font-family: var(--ns-font-regular);
	font-size: 13px;
}
.ns-express-jump input#ns-jump-input:focus {
	outline: none;
	border-color: var(--ns-action);
}
.ns-express-jump input#ns-jump-input::placeholder {
	color: var(--ns-text-faint);
}
.ns-express-jump button {
	flex-shrink: 0;
	padding: 8px 16px;
	border: none;
	border-radius: var(--ns-radius-md);
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-family: var(--ns-font-medium, var(--ns-font-regular));
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.ns-express-jump button:hover {
	background: var(--ns-action-pressed);
}

/* ==========================================================================
   MEMBER PROFILE — header metrics bar + action buttons + two new custom
   tabs (task #260). Everything else on the profile (xprofile table,
   Timeline, Connections, Groups, Blog, Photos/Videos, Forums, Documents) is
   already covered by the #cover-image-container/.item-header-wrap and
   #object-nav rules near the top of this file, which still apply here —
   member profiles never adopted the Groups-only .ns-group-header rebuild.
   ========================================================================== */

/* Following / Followers / Views metrics row. CORRECTED (task #346): the
   selector this block originally targeted, .header-meta-wrap, does not
   exist anywhere in the real member-header.php markup — confirmed live via
   DOM inspection while logged in as the profile owner (the only state that
   renders these elements at all; logged-out visitors never see this row).
   That's why the "stacked one-per-line" bug survived the first attempted
   fix. The real direct children of .bb-user-content-wrap, in native DOM
   order, are: .member-title-wrap (name+badges), .item-meta
   (handle/joined/active line), .views-wrap (this theme's own addition —
   see inc/profile-header.php), .member-social (wraps followers+following
   in its own nested .flex div), .member-social-links (social icons).
   Forced into an explicit flex layout with !important + explicit `order`
   on every child, since the bare `.flex` utility class member-header.php
   uses is not reliable enough on its own to keep name/handle on their own
   lines while sharing one row for the three stats. */
.bb-user-content-wrap {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	/* 🚀 TIGHTENED (bug report — "too much space in the profile header"):
	   was gap:4px 28px / padding:14px 0. The row-gap and vertical padding
	   were two of the biggest contributors to the header reading as
	   over-spaced — confirmed live via computed-style measurement (this
	   block alone accounted for ~286px of height on a ~640px-wide column).
	   Column gap (28px, between stat blocks) is untouched. */
	gap: 6px 28px;
	padding: 10px 0;
	margin-bottom: 4px;
	/* CORRECTED (task #354): spec frames the metrics row with a single
	   border-top + border-bottom band, not per-item divider lines between
	   stat blocks. Real DOM has no dedicated "metrics row" wrapper element
	   (following/followers/views sit as siblings of name/handle inside
	   this same container), so the closest CSS-only match is framing the
	   whole content block top and bottom — name/handle above the line,
	   stats+badges below it, single divider on each edge. */
	border-top: 1px solid var(--ns-divider);
	border-bottom: 1px solid var(--ns-divider);
}
/* 🚀 FIX (bug report — "remove the dark mode borders in profile header
   area"): only the BOTTOM edge of this frame — the border-top (above the
   name) isn't part of what the screenshot flagged. That bottom edge sits
   right above #cover-image-container/.item-header-wrap's own border-bottom
   (killed in dark mode a bit further up this file) — with both gone, the
   badges row is followed by empty space and then the tab bar, instead of
   two close-together hairlines. */
.ns-dark .bb-user-content-wrap {
	border-bottom-color: transparent;
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .bb-user-content-wrap {
		border-bottom-color: transparent;
	}
}
/* 🚀 REMODELED (bug report — "too much space in the profile header"): the
   name (h2.user-nicename) and the "Chief"-style role pill (span.bp-member-
   type) are real adjacent DOM siblings inside .member-title-wrap, which
   already carries BuddyBoss's own "flex align-items-center" utility
   classes — but something else in the cascade forces it to display:block
   (confirmed live via computed-style: display:block despite those
   classes), so the pill has always rendered on its own line below the
   name rather than beside it, costing an entire extra text row. Declaring
   flex directly here (our own !important-free rule still wins on source
   order/specificity against whatever silently neutralized the utility
   classes) puts them on one line, wrapping only if a long display name
   genuinely needs the room. */
.bb-user-content-wrap > .member-title-wrap {
	order: 1;
	flex-basis: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 2px;
}
.bb-user-content-wrap > .item-meta {
	order: 2;
	flex-basis: 100%;
	color: var(--ns-text-muted) !important;
	font-family: var(--ns-font-regular);
	font-size: 14px;
	/* 🚀 TIGHTENED: was margin-top:15px (the single largest individual gap
	   in the whole header, confirmed live) with an incidental
	   padding-bottom:9.8px this rule never explicitly set — both collapsed
	   down here since there's no real design reason for either. */
	margin-top: 4px;
	margin-bottom: 4px;
	padding-bottom: 0;
}

/* 🚀 ADDED (bug report — "had a space for short description"): real
   xprofile "Bio" field content, rendered by ns_profile_header_bio_line()
   in inc/profile-header.php. Sits between the handle/joined line and the
   stats row — order:3 (with every rule below it bumped up by one to make
   room) rather than fighting for a spot among the existing 1/2/4/5/6
   values, since flex `order` only cares about relative rank, not
   contiguous numbering. */
.bb-user-content-wrap > .ns-profile-bio {
	order: 3;
	flex-basis: 100%;
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-regular);
	font-size: 14px;
	line-height: 1.4;
	margin: 2px 0 6px;
}

/* Stat blocks — number-on-top / label-below (task #350's design-brief
   mockup), replacing the earlier inline "176 views" single-line text.
   .views-wrap, .followers-wrap and .following-wrap all share the exact
   same real markup shape — <div><strong>N</strong> label</div> — so one
   rule turns the number+label pair into a two-line block for all three:
   flex-direction: column stacks the <strong> element above the bare
   "label" text node that follows it (browsers give bare text runs inside
   a flex container an anonymous flex item, so this needs no markup
   change). Divider lines between blocks use a right border on all but
   the last, reordered to match the mockup's Following → Followers →
   Views sequence (BuddyBoss's own template renders Followers before
   Following — see member-header.php — so `order` swaps them here rather
   than in PHP, keeping this a CSS-only reskin). */
/* CORRECTED (task #354): spec has no per-item divider lines between the
   three stat blocks — just even gap:28px (set on the shared parent gap
   properties below), so the padding-right/border-right pair that
   simulated dividers here is removed entirely. */
/* 🚀 REMODELED (bug report — "can this be side by side, instead of top
   bottom"): was flex-direction:column (number stacked above label — two
   text lines per stat block, "3" then "following" underneath). A row with
   baseline alignment puts the bold number and its label on one line
   ("3 following"), so each stat block is one compact line instead of two. */
.bb-user-content-wrap > .views-wrap,
.bb-user-content-wrap .followers-wrap,
.bb-user-content-wrap .following-wrap {
	display: flex !important;
	flex-direction: row;
	align-items: baseline;
	gap: 4px;
	color: var(--ns-text-muted) !important;
	/* 🚀 SHRUNK (bug report — "reduce the font size"): was 12px, now scaled
	   down alongside the bold number below it (16px → 13px). */
	font-size: 11px;
	font-family: var(--ns-font-medium);
}
.bb-user-content-wrap .following-wrap {
	order: 1;
}
.bb-user-content-wrap .followers-wrap {
	order: 2;
}
.bb-user-content-wrap > .views-wrap {
	order: 5;
}
.bb-user-content-wrap .followers-wrap strong,
.bb-user-content-wrap .following-wrap strong,
.bb-user-content-wrap .views-wrap strong {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-bold);
	/* 🚀 SHRUNK (bug report — "reduce the font size"): was 16px (set by
	   task #354, against the design brief, before the stat blocks were
	   later switched from stacked number-over-label to an inline "3
	   following" row — at that larger size on one line the numbers read as
	   too heavy/oversized next to their labels). */
	font-size: 13px;
	line-height: 1.1;
}
.bb-user-content-wrap > .member-social {
	/* Sits between the bio line (3) and views-wrap (5) — the whole
	   Following+Followers pair renders as one flex item here since it's
	   BuddyBoss's own wrapper div, not two separate direct children. */
	order: 4;
	margin: 0;
}
.bb-user-content-wrap > .member-social > div {
	display: flex !important;
	align-items: center;
	/* CORRECTED (task #354): 28px to match the spec's even gap between all
	   three stat blocks (Following/Followers/Views) — this inner div only
	   covers the Following+Followers pair; the container's own gap
	   (below) handles the gap out to Views. */
	gap: 28px;
}
/* 🚀 REMODELED (bug report — "too much space in the profile header"): this
   previously forced flex-basis:100%, pushing the social icons onto their
   own dedicated full-width row below the stats — an entire extra line
   (plus its own 10px margin-top) for what's just 1-2 small icons. Real DOM
   order already places this right after the stats blocks (order:3/4
   above), so simply letting it wrap naturally puts it on the SAME line as
   Following/Followers/Views whenever there's room (there always is on a
   ~500px+ content column) — margin-left:auto then pushes it to the far
   right of that line, stats-left/icons-right, rather than crowding
   straight after the numbers. */
.bb-user-content-wrap > .member-social-links,
.bb-user-content-wrap > .network_profiles {
	order: 6;
	flex-basis: auto;
	margin-top: 0;
	margin-left: auto;
	gap: 10px;
}

/* Real achievement badge pills (task #350 / #349's research — server-
   computed from actual lifetime post+reply counts, see
   ns_profile_header_badges_row() in inc/profile-header.php). Own row,
   after the metrics/social-links block, before the tab bar — matches the
   design-brief mockup's badge-chip row position exactly. */
.bb-user-content-wrap > .ns-profile-badges-row {
	order: 7;
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	/* 🚀 TIGHTENED (bug report — "too much space..."): was 10px. */
	margin-top: 8px;
}
.ns-profile-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: var(--ns-radius-full);
	background: var(--ns-action-subtle);
	color: var(--ns-action);
	font-family: var(--ns-font-semibold);
	/* SHRUNK (follow-up, deliberate deviation from the .dc.html brief's 11px):
	   these are a teaser row into the app's real, dedicated Badges screen
	   (app/badges.tsx) — they should read as a lighter-weight secondary
	   strip, not compete visually with the header above it. */
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
/* "+N more" overflow chip (ns_profile_header_badges_row()'s cap) — a link,
   not an earned badge, so it's deliberately outlined instead of filled to
   read as "more info" rather than another achievement. Links to the new
   Badges tab (#badges-personal-li below / ns_badges_tab_content()). */
.ns-profile-badge-pill--more {
	background: transparent;
	border: 1px solid var(--ns-divider);
	color: var(--ns-text-muted);
	text-decoration: none;
}
.ns-profile-badge-pill--more:hover {
	border-color: var(--ns-action);
	color: var(--ns-action);
}

/* Badges tab (ns_badges_tab_content()) — full catalog with progress, mirrors
   the app's dedicated Badges screen (app/badges.tsx) card-for-card: icon
   circle (filled+colored when earned, gray when locked), bold title, muted
   description, a "current / target" readout only while locked, and a
   checkmark only once earned. Locked rows dim slightly (opacity), same as
   the app's badgeRowLocked. */
.ns-badges-intro {
	color: var(--ns-text-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}
.ns-badges-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ns-badge-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
}
.ns-badge-row--locked {
	opacity: 0.7;
}
.ns-badge-icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--ns-radius-full);
	background: var(--ns-surface-raised);
	color: var(--ns-text-faint);
}
.ns-badge-icon-circle--earned {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
.ns-badge-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.ns-badge-title {
	color: var(--ns-text-muted);
	font-family: var(--ns-font-bold);
	font-size: 15px;
}
.ns-badge-row:not(.ns-badge-row--locked) .ns-badge-title {
	color: var(--ns-text-heading);
}
.ns-badge-description {
	color: var(--ns-text-muted);
	font-family: var(--ns-font-regular);
	font-size: 13px;
	line-height: 1.4;
}
.ns-badge-progress {
	color: var(--ns-action);
	font-family: var(--ns-font-bold);
	font-size: 12px;
	margin-top: 2px;
}
.ns-badge-earned-check {
	flex-shrink: 0;
	color: var(--ns-action);
}

/* Follow / Connect / Message triad — native bp_nouveau_member_header_buttons()
   + bp_member_header_actions output (design brief §5.4: all three already
   render server-side from real BuddyBoss/bp-friends data; this is styling
   only, no new button markup). Reuses the same pill treatment as the global
   button rules at the top of this file, just laid out to match the app's
   side-by-side row. */
.member-header-actions-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.member-header-actions-wrap .member-header-actions,
.member-header-actions-wrap .bb_more_options {
	display: flex;
	gap: 8px;
}

/* Member-type badge pill (e.g. "Chief") next to the display name.
   Real markup confirmed from bp_get_user_member_type()'s actual source
   (bp-members-functions.php): `<span class="bp-member-type
   bb-current-member-{type}">{Label}</span>` — this was previously guessed
   as ".bp-profile-member-type" (wrong class, never matched anything,
   hence "Chief" rendering as plain unstyled text). Sand-colored per the
   design brief. Scoped to .member-title-wrap only — the same span is also
   echoed once right after the avatar (#item-header-avatar) as a small
   corner badge with its own BuddyBoss-native positioning; left untouched
   here to avoid fighting that positioning with a generic pill style. */
.member-title-wrap .bp-member-type {
	/* FIXED (design debrief follow-up): this previously referenced
	   --ns-sand and --ns-surface-deep — neither exists anywhere in this
	   theme's token system (see style.css's :root block; the real token is
	   --ns-status-sand). Since undefined custom properties silently fall
	   back to their fallback value, this was rendering as the LITERAL
	   hardcoded fallback colors (#d8b26a tan / #1a1a1a near-black) on every
	   page load, never actually reading the theme at all — which is exactly
	   why it looked off-brand and didn't respond to light/dark mode.
	   Matches the design brief exactly: background:var(--ns-status-sand);
	   color:#fff. */
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--ns-radius-full);
	background: var(--ns-status-sand);
	/* FIXED (contrast follow-up): the brief hardcodes #fff here, which passes
	   AA against light mode's darker sand swatch (~5.2:1) but fails against
	   dark mode's much lighter one (~1.9:1). --ns-on-status-sand flips with
	   the mode instead. */
	color: var(--ns-on-status-sand);
	font-size: 11px;
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	vertical-align: middle;
}
/* Diamond separator between the name and the role pill (task #354 — real
   spec element, confirmed in NaijaSubway Profile.dc.html, previously
   omitted). Added as ::before content on the pill itself rather than a
   new PHP element, since real DOM already puts .user-nicename and
   .bp-member-type as adjacent flex siblings inside .member-title-wrap —
   this only ever appears when a member-type pill is actually present. */
.member-title-wrap .bp-member-type::before {
	content: "\25C6";
	display: inline-block;
	margin-right: 6px;
	/* FIXED: was --ns-action (the app's brand green), which read as an
	   off-brand green accent stuck onto an otherwise amber/sand-toned
	   "Chief" pill. Diamond now takes the same on-sand tone as the pill's
	   own label text, so it's visible against the sand pill background
	   (an earlier attempt used --ns-status-sand itself here, which is the
	   pill's *background* color — same color on same color, invisible)
	   and reads as one cohesive badge instead of two clashing colors. */
	color: var(--ns-on-status-sand);
	font-size: 16px;
	vertical-align: middle;
}

/* Engagement tab (inc/profile-header.php's ns_engagement_tab_content()) */
.ns-engagement-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	margin-bottom: 14px;
}
.ns-engagement-total__label {
	font-family: var(--ns-font-semibold);
	color: var(--ns-text-muted);
	font-size: 14px;
}
.ns-engagement-total__value {
	font-family: var(--ns-font-bold);
	color: var(--ns-text-heading);
	font-size: 24px;
}
.ns-engagement-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 8px;
}
.ns-engagement-stat {
	padding: 16px;
	text-align: center;
}
.ns-engagement-stat__value {
	display: block;
	font-family: var(--ns-font-bold);
	color: var(--ns-text-heading);
	font-size: 20px;
	margin-bottom: 4px;
}
.ns-engagement-stat__label {
	display: block;
	font-family: var(--ns-font-medium);
	color: var(--ns-text-muted);
	font-size: 12px;
}

/* Explore Media tab (inc/profile-header.php's ns_explore_media_tab_content(),
   real sitewide bp_has_media() loop reusing BuddyBoss's own media/entry.php
   per-item template — grid layout only, no per-item markup of our own). */
.ns-explore-media-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.ns-explore-media-grid__item {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
}
.ns-explore-media-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 640px) {
	.ns-explore-media-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 🚀 REMOVED (bug report — "Increase the width of the message screen
   further to the right"): this rule widened the shared .ns-layout center
   column for the Messages page back when it still reserved a 280px right-
   rail column (260 + 900 + 280 = the 1440px max-width below) — task #835
   removed that right rail via $ns_is_messages_screen + the
   .ns-layout--no-right-rail modifier class instead, which already carries
   its own (now wider, see style.css) grid-template-columns + max-width
   with !important, so this non-!important, 3-column, stale-max-width rule
   was dead weight that no longer matched what single.php actually renders
   for this page — left in place it was just confusing to read next to the
   real, current rule. See .ns-layout--no-right-rail in style.css for the
   single source of truth now. */
/* 🚀 ADDED (bug report — "Increase the width of the message screen further
   to the right", follow-up): widening .ns-layout--no-right-rail's own
   columns (style.css) turned out not to be enough on its own -- BuddyBoss
   core hardcodes #buddypress.buddypress-wrap { max-width: 1200px; } (its
   generic default content-width cap, meant for the classic single-column
   BuddyBoss template this theme doesn't use), which was still capping
   .bp-messages-container at 1200px regardless of how wide its .ns-layout
   grandparent grew -- confirmed live via computed styles (the wrapper
   chain #buddypress -> .bp-wrap -> .item-body -> .messages-wrapper ->
   .messages-screen -> .bp-messages-container all inherited that same
   1200px). Scoped to body.my-messages (this page's own body class,
   already used a few lines up) rather than un-capping #buddypress
   sitewide, since other BuddyBoss pages may still rely on that 1200px
   default for their own (unrelated) layouts. */
/* 🚀 ADDED (user request — "expand the width of the registration form and
   the collage"): same BuddyBoss-core #buddypress.buddypress-wrap max-width
   cap documented above was independently capping the register page's
   content at its own default (not 1200px here — BuddyBoss's register
   screen ships a narrower `extended-default-reg` variant) regardless of
   how wide .ns-layout's own center column had grown via the body.register
   override in assets/css/onboarding-premium.css. Same fix, same reasoning,
   different page. */
body.register #buddypress.buddypress-wrap {
	max-width: none;
	width: 100%;
}
body.my-messages #buddypress.buddypress-wrap {
	max-width: none;
	width: 100%;
}

/* ==========================================================================
   Task #261 — Messages re-skin (CSS only).
   Real markup confirmed live (member-header.php's messages sub-page uses
   BuddyBoss's *newer* two-panel messages UI, not the classic
   .message-threads/.single-message layout): a left .bp-messages-nav-panel
   (search + subnav + #message-threads list) and a right .bp-messages-content
   (thread header + #bp-message-thread-list + the reply composer). The
   default markup has NO sender-side class on individual message rows (no
   left/right bubble split like the app's messages/[id].tsx bubbleOwn vs
   bubbleTheir) — that would need a small JS pass to compare each row's
   author link against the current user, same pattern as task #275's DOM
   normalizer. Left as a follow-up rather than in scope for this CSS-only
   pass; every row gets one consistent card treatment for now. ---- */
.bp-messages-container {
	/* Was align-items: flex-start, which let each panel size to its own
	   content -- the nav panel's #message-threads list has no height cap
	   (unlike #bp-message-thread-list, which BuddyBoss core already bounds
	   to max-height: 50vh), so with many threads it grew taller than the
	   content panel, leaving the two columns visibly mismatched in height.
	   #message-threads now gets the same 50vh cap below; align-items:
	   stretch guarantees both columns end up exactly the same final height
	   regardless of any small remainder. */
	background: transparent;
	border: none;
	display: flex;
	gap: 16px;
	align-items: stretch;
}
.bp-messages-nav-panel {
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
#bp-messages-threads-list {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}
#message-threads {
	/* Mirrors #bp-message-thread-list's own max-height: 50vh; overflow:
	   auto; (BuddyBoss core, css/buddypress.css) so the two panels' lists
	   are bounded to the same viewport-relative height instead of the
	   thread list growing arbitrarily tall with every thread the user has. */
	flex: 1;
	min-height: 0;
	max-height: 50vh;
	overflow-y: auto;
}
.bp-messages-search-form {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ns-divider);
}
.bp-messages-search-form input[type="text"],
.bp-messages-search-form input[type="search"] {
	background: var(--ns-surface-raised) !important;
	border: 1px solid var(--ns-divider) !important;
	border-radius: var(--ns-radius-full) !important;
	color: var(--ns-text-body) !important;
	font-family: var(--ns-font-medium);
	padding: 9px 14px !important;
	height: auto !important;
}
.bp-messages-search-form #user_messages_search_submit {
	color: var(--ns-text-muted);
}
.bp-messages-nav-panel .subnav {
	display: flex;
	gap: 4px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--ns-divider);
	list-style: none;
	margin: 0;
}
.bp-messages-nav-panel .subnav li a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--ns-radius-full);
	color: var(--ns-text-muted);
	font-family: var(--ns-font-semibold);
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
}
.bp-messages-nav-panel .subnav li.selected a,
.bp-messages-nav-panel .subnav li.current a {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
/* 🚀 ADDED (task #326): non-selected tabs (Inbox/Sent/Starred/Compose) had
   no hover feedback at all. */
.bp-messages-nav-panel .subnav li:not(.selected):not(.current) a:hover {
	background: var(--ns-surface-raised);
	color: var(--ns-text-heading);
	text-decoration: none;
}
#message-threads {
	list-style: none;
	margin: 0;
	padding: 0;
}
#message-threads .thread-item {
	border-bottom: 1px solid var(--ns-divider);
	transition: background 0.15s ease;
}
#message-threads .thread-item:hover {
	background: var(--ns-surface-raised);
}
#message-threads .thread-item.current,
#message-threads .thread-item.is-active {
	background: var(--ns-selected-surface);
}
#message-threads .bp-message-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	text-decoration: none;
}
#message-threads .thread-avatar img.avatar {
	border-radius: var(--ns-radius-full);
}
#message-threads .thread-content .thread-subject {
	font-family: var(--ns-font-semibold);
	color: var(--ns-text-heading);
	font-size: 14px;
}
#message-threads .thread-content .thread-subject .excerpt,
#message-threads .thread-content .excerpt {
	font-family: var(--ns-font-regular);
	color: var(--ns-text-muted);
	font-weight: 400;
}
#message-threads .thread-item.unread .thread-subject,
#message-threads .thread-item.unread .thread-content strong {
	color: var(--ns-text-heading);
	font-family: var(--ns-font-bold);
}

/* 🚀 ADDED (task #327): BuddyBoss's own bundled message-attachment
   collapse/expand chevron (bp-messages-single-list.php) — this theme never
   reskinned it at all before, so it had zero hover feedback of any kind
   (whatever BuddyBoss's own bundled CSS did or didn't provide). Matches the
   same icon-button hover convention used everywhere else in this file. */
.document-action_collapse {
	color: var(--ns-text-muted);
	border-radius: var(--ns-radius-sm);
}
.document-action_collapse:hover {
	color: var(--ns-action);
	background: var(--ns-surface-raised);
}

.bp-messages-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
	overflow: hidden;
}
.bp-messages-content-wrapper {
	/* Fills any leftover height once align-items: stretch matches this
	   panel to the (now-capped) nav panel's height, instead of leaving a
	   bare gap below the composer. #bp-message-thread-list keeps its own
	   independent max-height/overflow (core CSS), so this wrapper itself
	   doesn't need to scroll -- header and composer stay put, only the
	   message list scrolls. */
	flex: 1;
	min-height: 0;
}
.bp-messages-content .single-message-thread-header {
	padding: 14px 20px;
	border-bottom: 1px solid var(--ns-divider);
}
.bp-messages-content .single-message-thread-header .thread-avatar img {
	border-radius: var(--ns-radius-full);
}
.bp-messages-content .thread-participants dd {
	color: var(--ns-text-heading);
	font-family: var(--ns-font-semibold);
}
/* 🚀 ADDED (bug report — white backgrounds in dark mode on the Messages
   personal-nav row): BuddyBoss core hardcodes #eaeaea directly on
   .bp-personal-sub-tab (the "Messages" / "Actions ▾" / "New Message" pills
   above the thread list) and on the "..." options dropdown it opens
   (.bb_more_dropdown / .bb_more_options_list, plus its #f2f4f5 title bar).
   Text/icon colors on these were already correctly muted for dark mode
   (BuddyBoss reads those off a separate, already-dark-aware token) — only
   the background was ever left as the hardcoded light-mode literal, which
   is what made the pills and dropdown read as solid white/light-grey
   islands against the dark page. .bb_more_dropdown is a shared BuddyBoss
   component (the same "..." menu also opens on document attachments, see
   buddypress/common/js-templates/messages/parts/bp-messages-single-list.php)
   so this fix isn't Messages-specific — deliberately unscoped so every
   place that dropdown appears gets it. */
.ns-dark .bp-personal-sub-tab,
.ns-dark .bb_more_dropdown,
.ns-dark .bb_more_options_list,
.ns-dark .message_action__list {
	background: var(--ns-surface-raised) !important;
}
.ns-dark .bb_more_dropdown__title {
	background: var(--ns-surface-chrome) !important;
	border-bottom: 1px solid var(--ns-divider);
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .bp-personal-sub-tab,
	html:not(.ns-light) .bb_more_dropdown,
	html:not(.ns-light) .bb_more_options_list,
	html:not(.ns-light) .message_action__list {
		background: var(--ns-surface-raised) !important;
	}
	html:not(.ns-light) .bb_more_dropdown__title {
		background: var(--ns-surface-chrome) !important;
		border-bottom: 1px solid var(--ns-divider);
	}
}
#bp-message-thread-list {
	/* BuddyBoss core also hardcodes #bp-message-thread-list { background:
	   #fafafa; border-top: 1px solid #eaeaea; } on the <ul> itself (not just
	   the <li> rows, which were already overridden below) -- that's what was
	   leaving a near-white panel behind the whole thread in dark mode. */
	background: var(--ns-surface) !important;
	border-top: 1px solid var(--ns-divider) !important;
	list-style: none;
	margin: 0;
	padding: 16px 20px;
}
/* FIXED (dark-mode follow-up): BuddyBoss's own default rule
   (#bp-message-thread-list li { background:#fff; border:1px solid #ccc;
   box-shadow:-2px 1px 9px 0 #eee; }) hardcodes a literal white card behind
   EVERY row -- message or date-divider -- with zero theme-token awareness,
   so it stayed a bright white box even in dark mode. Matches the app's own
   chat screen better anyway to drop the per-row card entirely and let the
   bubble itself carry the visual weight. */
#bp-message-thread-list li {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 2px 0 !important;
}
#bp-message-thread-list li.divider-date {
	text-align: center;
	margin: 16px 0 !important;
}
#bp-message-thread-list li.divider-date .bp-message-content-wrap {
	/* Overrides BuddyBoss's own hardcoded color:#767676 on this element
	   (see buddypress.css's li.divider-date .bp-message-content-wrap) --
	   also never theme-aware, just happened to read okay in light mode. */
	background: var(--ns-surface-raised) !important;
	color: var(--ns-text-faint) !important;
	border: none !important;
	border-radius: var(--ns-radius-full) !important;
}
#bp-message-thread-list .bp-single-message-wrap {
	display: flex;
	gap: 10px;
	padding: 6px 0;
}
#bp-message-thread-list a.bp-user-avatar,
#bp-message-thread-list img.avatar {
	border-radius: var(--ns-radius-full);
}
#bp-message-thread-list .message-metadata .user-link strong {
	color: var(--ns-text-heading);
	font-family: var(--ns-font-semibold);
}
#bp-message-thread-list .message-metadata time {
	color: var(--ns-text-faint);
	font-size: 12px;
}
#bp-message-thread-list .bp-message-content-wrap {
	background: var(--ns-bubble-own);
	border: 1px solid var(--ns-bubble-own-border);
	border-radius: var(--ns-radius-md);
	padding: 8px 12px;
	color: var(--ns-text-body);
	margin-top: 4px;
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	word-break: break-word;
}

/* Own vs. their message bubbles (task #378) -- real markup has no
   sender-side class, so assets/js/messages-bubble-normalize.js tags each
   row .ns-own/.ns-their by comparing the sender link against the logged-in
   user's own profile URL (localized from PHP, not DOM-guessed). Mirrors the
   app's messages/[id].tsx bubbleOwn vs. plain/their-message treatment:
   own messages sit right-aligned in the tinted bubble-own color, their
   messages stay left-aligned in a neutral surface-raised bubble. */
#bp-message-thread-list li.ns-own .bp-single-message-wrap {
	flex-direction: row-reverse;
}
#bp-message-thread-list li.ns-own .bp-single-message-content {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
}
#bp-message-thread-list li.ns-own .message-metadata {
	flex-direction: row-reverse;
}
#bp-message-thread-list li.ns-their .bp-message-content-wrap {
	background: var(--ns-surface-raised);
	border-color: var(--ns-divider);
}
/* Task #383: some seed messages have a body of only a zero-width space --
   not truly empty (so a real message never rendered nothing), but not
   real content either. messages-bubble-normalize.js tags those rows
   .ns-blank-content once it confirms there's no media/video/document/gif
   attachment either; collapse the bubble instead of showing a floating
   empty capsule. The avatar/name/timestamp row still shows normally. */
#bp-message-thread-list li.ns-blank-content .bp-message-content-wrap {
	display: none;
}

/* Reply composer — medium-editor-based rich text area + attach/emoji
   toolbar (#whats-new-messages-toolbar) + the "Send Reply" submit input. */
.bp-messages-content .medium-editor-element {
	background: var(--ns-surface-raised);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-md);
	color: var(--ns-text-body);
	padding: 10px 14px;
	min-height: 44px;
}
/* #whats-new-messages-toolbar's own padding is pinned by a more specific
   BuddyBoss core rule (.bp-messages-content #bp-message-content
   #whats-new-messages-toolbar { padding: 0 15px 0 0; }), so the consistent
   left/right inset for the whole icons+Aa+emoji+send row is applied one
   level up on the wrapper that holds all three toolbar pieces -- that
   wrapper has no competing core rule. */
#message-reply-form-submit-wrapper {
	border-top: 1px solid var(--ns-divider);
	padding: 8px 14px;
}
#whats-new-messages-toolbar {
	border-top: none;
}
#whats-new-messages-toolbar .bb-icon,
#whats-new-messages-toolbar [class*=" bb-icon-"],
#whats-new-formatting-toolbar .bb-icon,
#whats-new-formatting-toolbar [class*=" bb-icon-"] {
	/* BuddyBoss core hardcodes color: rgba(18, 43, 70, 0.5) (a light-mode-
	   only dark navy) on this selector -- fine on a white composer, nearly
	   invisible on the dark one (this specifically broke the "Aa" text-
	   formatting toggle icon, #show-toolbar-button .bb-icon-font, which
	   lives in #whats-new-formatting-toolbar and had no override at all). */
	color: var(--ns-text-muted) !important;
}
#send_reply_button,
input#send_reply_button {
	background: var(--ns-action) !important;
	color: var(--ns-on-action) !important;
	border: none !important;
	border-radius: var(--ns-radius-full) !important;
	padding: 8px 18px !important;
	font-family: var(--ns-font-semibold);
	font-size: 14px !important;
}
#send_reply_button:hover {
	background: var(--ns-action-pressed) !important;
}

/* ==========================================================================
   Task #261 (part 2) — Notifications re-skin (CSS only).
   Real markup confirmed from the plugin's own notifications.php /
   notifications-loop.php (this theme has no override for either): tabs are
   a plain .subnav (Unread/Read, same class BuddyBoss reuses everywhere,
   not previously styled outside the Messages nav-panel scope), the list
   itself is a genuine <table class="notifications bp-tables-user"> (icon /
   bulk-checkbox / description / date / actions columns) inside
   #notifications-user-list, and empty/loading states use the shared
   .bp-feedback.info notice. No populated notifications existed on the test
   account to screenshot against, so this follows the template's real
   column structure rather than a live render. ---- */
body.notifications .subnav {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 16px;
	padding: 4px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-full);
	width: fit-content;
}
body.notifications .subnav li a {
	display: inline-block;
	padding: 6px 16px;
	border-radius: var(--ns-radius-full);
	color: var(--ns-text-muted);
	font-family: var(--ns-font-semibold);
	font-size: 14px;
	text-decoration: none;
}
body.notifications .subnav li.selected a,
body.notifications .subnav li.current a {
	background: var(--ns-action-subtle);
	color: var(--ns-action);
}
/* 🚀 ADDED (task #326): non-selected tabs (All/Unread/Read) had no hover. */
body.notifications .subnav li:not(.selected):not(.current) a:hover {
	background: var(--ns-surface-raised);
	color: var(--ns-text-heading);
	text-decoration: none;
}
#notifications-user-list .select-wrap select {
	background: var(--ns-surface) !important;
	border: 1px solid var(--ns-divider) !important;
	border-radius: var(--ns-radius-md) !important;
	color: var(--ns-text-body) !important;
	padding: 8px 12px !important;
	font-family: var(--ns-font-medium);
	font-size: 14px !important;
}
.bp-feedback.info {
	background: var(--ns-action-subtle) !important;
	border: 1px solid var(--ns-divider) !important;
	border-radius: var(--ns-radius-md) !important;
	color: var(--ns-text-body) !important;
	padding: 12px 16px !important;
}
.bp-feedback.info svg,
.bp-feedback.info .bp-icon {
	color: var(--ns-action) !important;
}
table.notifications.bp-tables-user {
	width: 100%;
	border-collapse: collapse;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
	overflow: hidden;
	box-shadow: var(--ns-shadow-card);
}
table.notifications.bp-tables-user thead th {
	background: var(--ns-surface-raised);
	color: var(--ns-text-muted);
	font-family: var(--ns-font-semibold);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 10px 14px;
	border-bottom: 1px solid var(--ns-divider);
	text-align: left;
}
table.notifications.bp-tables-user tbody tr,
table.notifications.bp-tables-user tbody tr.alt {
	/* BuddyBoss core hardcodes tbody tr { background: #fafafa; } and
	   tr.alt td { background: #fafafa; } (buddypress.css) -- never
	   theme-token-aware, so it silently wins in dark mode leaving a
	   near-white row behind themed text. Override explicitly. */
	background: transparent !important;
	border-bottom: 1px solid var(--ns-divider);
}
table.notifications.bp-tables-user tbody tr:last-child {
	border-bottom: none;
}
table.notifications.bp-tables-user tbody tr:hover {
	background: var(--ns-surface-raised);
}
table.notifications.bp-tables-user td {
	background: transparent !important;
	padding: 12px 14px;
	color: var(--ns-text-body);
	font-size: 14px;
	vertical-align: middle;
}
table.notifications.bp-tables-user .notification-description a {
	color: var(--ns-text-heading);
	font-family: var(--ns-font-medium);
	text-decoration: none;
}
/* 🚀 ADDED (task #326): neither the notification text link nor the
   Read/Delete action links had a hover state. */
table.notifications.bp-tables-user .notification-description a:hover {
	color: var(--ns-action);
	text-decoration: none;
}
table.notifications.bp-tables-user .notification-since {
	color: var(--ns-text-faint);
	font-size: 12px;
	white-space: nowrap;
}
table.notifications.bp-tables-user .notification-actions a {
	color: var(--ns-action);
	font-size: 14px;
	font-family: var(--ns-font-semibold);
	text-decoration: none;
}
table.notifications.bp-tables-user .notification-actions a:hover {
	color: var(--ns-action-pressed);
	text-decoration: none;
}
.notifications-options-nav {
	margin-top: 12px;
}
.notifications-options-nav select {
	background: var(--ns-surface) !important;
	border: 1px solid var(--ns-divider) !important;
	border-radius: var(--ns-radius-md) !important;
	color: var(--ns-text-body) !important;
	padding: 8px 12px !important;
}

/* ==========================================================================
   REGISTRATION PAGE (/register/) — task #227/#430, rebuilt task #593 into a
   Facebook-style minimal signup form.
   Task #593 added a real theme template override
   (buddypress/members/register.php) — the first one this page has ever had —
   specifically to add a compact header, real social sign-up buttons (closing
   the exact gap this comment used to flag: neither social-login integration
   ever rendered a button here before), and a progressive-disclosure toggle
   for non-required xprofile fields. All of BuddyBoss's own real markup/
   classes are unchanged (#signup-form, .bb-signup-field, #profile-details-section,
   .bp-checkbox-wrap, etc.), so the rules below are additive to the original
   #430 reskin, not a replacement of it.
   ========================================================================== */
#register-page {
	max-width: 680px;
	margin: 24px auto;
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-lg);
	padding: 32px;
	box-shadow: var(--ns-shadow-card);
}
#register-page > h2,
#register-page .bp-feedback {
	font-family: var(--ns-font-semibold);
	color: var(--ns-text-heading);
}
/* Header block (.ns-register-head, real class from the theme override) */
#register-page .ns-register-head {
	text-align: center;
	margin-bottom: 20px;
}
#register-page .ns-register-logo {
	display: inline-block;
	font-family: var(--ns-font-semibold);
	font-size: 20px;
	color: var(--ns-action);
	margin-bottom: 14px;
}
#register-page .ns-register-title {
	font-family: var(--ns-font-semibold);
	font-size: 22px;
	color: var(--ns-text-heading);
	margin: 0 0 4px;
}
#register-page .ns-register-subtitle {
	font-size: 14px;
	color: var(--ns-text-muted);
	margin: 0 0 12px;
}
#register-page .ns-register-login-row {
	font-size: 13px;
	color: var(--ns-text-muted);
}
#register-page .ns-register-login-row a {
	font-family: var(--ns-font-medium);
	color: var(--ns-action);
	margin-left: 4px;
}
#register-page .ns-register-login-row a:hover {
	color: var(--ns-action-pressed);
}
/* Social sign-up buttons (.social-row/.social-pill — same convention as the
   guest homepage's sign-in card, scoped locally here rather than sharing
   assets/css/guest-homepage.css, since that stylesheet also carries
   homepage-only hero/marquee rules that have no business loading on
   /register/). */
#register-page .social-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}
#register-page .social-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border: 1px solid var(--ns-divider);
	border-radius: var(--ns-radius-md);
	background: var(--ns-surface-raised);
	font-family: var(--ns-font-medium);
	font-size: 14px;
	color: var(--ns-text-heading);
}
#register-page .social-pill:hover {
	border-color: var(--ns-action);
	background: var(--ns-action-subtle);
}
#register-page .social-pill svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
#register-page .ns-register-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 18px;
	font-size: 12px;
	color: var(--ns-text-faint);
}
#register-page .ns-register-divider::before,
#register-page .ns-register-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--ns-divider);
}
/* Optional-field progressive disclosure (task #593, register-minimal.js).
   `.optional-field` is BuddyBoss's own real class from bp_get_field_css_class()
   — added to every non-required xprofile field wrapper, not a class we invented. */
#profile-details-section.ns-collapsed .optional-field {
	display: none;
}
/* 🚀 FIX (live-verified, task #593): the generic
   ".buddypress .buddypress-wrap button" reskin rule (near the top of this
   file) styles EVERY bare <button> inside BuddyBoss's theme-compat wrapper
   as a solid, bold, action-colored pill via `!important` — that rule wins
   over this one on every property it touches unless matched with its own
   `!important`, regardless of this selector's higher specificity. */
#register-page .ns-register-more-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	width: auto !important;
	margin-bottom: 14px;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--ns-font-medium) !important;
	font-weight: 500 !important;
	font-size: 13px;
	color: var(--ns-action) !important;
	cursor: pointer;
}
#register-page .ns-register-more-toggle:hover {
	color: var(--ns-action-pressed) !important;
	text-decoration: underline;
}
#register-page .register-section {
	margin-bottom: 8px;
}
#register-page .register-section + .register-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--ns-divider);
}
/* Basic fields (.bb-signup-field, real class from register.php) and the raw
   xprofile fields inside #profile-details-section share the same visual
   treatment — same label/input styling as .ns-field-label/.ns-field
   elsewhere on the site (Settings, Refer a Friend), reproduced here against
   BuddyBoss's own real markup instead of renaming its classes. */
#register-page .bb-signup-field,
#profile-details-section > div,
#profile-details-section .editfield {
	margin-bottom: 18px;
}
#register-page label,
#profile-details-section label {
	display: block;
	font-family: var(--ns-font-medium);
	font-size: 14px;
	color: var(--ns-text-body);
	margin: 0 0 6px;
}
#register-page input[type="text"],
#register-page input[type="email"],
#register-page input[type="password"],
#register-page input[type="url"],
#profile-details-section input[type="text"],
#profile-details-section input[type="email"],
#profile-details-section input[type="url"],
#profile-details-section textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: var(--ns-radius-md);
	border: 1px solid var(--ns-divider);
	background: var(--ns-background);
	font-family: var(--ns-font-regular);
	font-size: 14px;
	color: var(--ns-text-body);
}
#register-page input:focus,
#profile-details-section input:focus,
#profile-details-section textarea:focus {
	outline: none;
	border-color: var(--ns-action);
	box-shadow: 0 0 0 3px var(--ns-action-subtle);
}
/* Password field's eye-toggle wrapper (.bb-password-wrap, real class) */
#register-page .bb-password-wrap {
	position: relative;
}
#register-page .bb-password-wrap .bb-toggle-password {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ns-text-faint);
}
#register-page .bb-password-wrap .bb-toggle-password:hover {
	color: var(--ns-action);
}
#register-page #pass-strength-result {
	margin-top: 6px;
	border-radius: var(--ns-radius-sm);
	padding: 6px 10px !important;
	font-size: 12px !important;
}
/* WYSIWYG-style xprofile textareas (e.g. the "Interests" freeform field)
   render a Visual/Code tab row above the textarea — real TinyMCE markup
   (.wp-editor-tabs / .switch-tinymce-editor), left functional, just muted
   to match the rest of the field chrome instead of raw browser-default
   buttons sitting on a white ta pill. */
#profile-details-section .wp-editor-tabs {
	margin-bottom: 4px;
}
#profile-details-section .wp-editor-tabs .wp-switch-editor {
	background: var(--ns-surface-raised) !important;
	border: 1px solid var(--ns-divider) !important;
	color: var(--ns-text-muted) !important;
	border-radius: var(--ns-radius-sm) var(--ns-radius-sm) 0 0 !important;
	font-family: var(--ns-font-medium);
	font-size: 12px !important;
}
/* Terms checkbox (.input-options.checkbox-options > .bp-checkbox-wrap,
   #legal_agreement — real ids/classes from bp_nouveau_signup_terms_privacy()) */
#register-page .input-options.checkbox-options {
	margin: 20px 0;
	padding: 14px 16px;
	background: var(--ns-surface-raised);
	border-radius: var(--ns-radius-md);
}
#register-page .bp-checkbox-wrap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
#register-page .bp-checkbox-wrap input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--ns-action);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
#register-page .bp-checkbox-wrap .option-label {
	margin: 0;
	font-size: 14px;
	color: var(--ns-text-muted);
	font-family: var(--ns-font-regular);
}
#register-page .bp-checkbox-wrap .option-label a {
	color: var(--ns-action);
	font-family: var(--ns-font-medium);
	text-decoration: underline;
}
/* 🚀 ADDED (task #326): kept this one underlined (inline legal-copy link,
	Terms/Privacy inside the signup checkbox label — underline reads as
	expected/clearer here than the site's usual plain-link treatment) but it
	had zero hover feedback at all — the #register-page ID selector's
	specificity beats style.css's plain `a:hover` rule outright. */
#register-page .bp-checkbox-wrap .option-label a:hover {
	color: var(--ns-action-pressed);
	text-decoration: underline;
}
/* Terms/Privacy modal popups (#terms-modal/#privacy-modal, real ids) */
#register-page .registration-popup.bb-modal {
	background: var(--ns-surface) !important;
	color: var(--ns-text-body) !important;
	border-radius: var(--ns-radius-lg) !important;
}
/* Submit button (.submit #signup_submit — real ids from bp_nouveau_submit_button()) */
#register-page .submit {
	margin-top: 8px;
}
#register-page .submit input[type="submit"],
#register-page #signup_submit {
	display: inline-flex;
	width: 100%;
	justify-content: center;
	background: var(--ns-action) !important;
	color: var(--ns-on-action) !important;
	border: none !important;
	border-radius: var(--ns-radius-md) !important;
	padding: 13px 20px !important;
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	box-shadow: none !important;
}
#register-page .submit input[type="submit"]:hover,
#register-page #signup_submit:hover {
	background: var(--ns-action-pressed) !important;
}
@media (max-width: 700px) {
	#register-page {
		margin: 0;
		border-radius: 0;
		border-left: none;
		border-right: none;
		padding: 20px 16px;
	}
}

/* 🚀 FIXED (task #654, user-reported "check and fix the styling of the
   profile card on class bb-profile-card bb-popup-card"): this is BuddyBoss's
   hover-preview card (shows when hovering an author avatar/name anywhere on
   the site) — confirmed via live DOM read there's exactly one shared
   #profile-card element BuddyBoss repopulates and repositions on every
   hover. Its own default CSS (buddypress.css ~L13327-13565) hardcodes a
   plain white background, black-ish default text, and #fafafa member-type
   pill with zero dark-mode awareness at all — every other BuddyBoss-native
   surface on this site (Messages, Notifications, popup cards elsewhere) has
   needed the same real-tokens treatment, this one was simply never reached
   yet. Rewritten here to use this theme's real surface/border/shadow/font
   tokens so it matches the rest of the site's card language and stays
   legible in dark mode automatically (same vars flip themselves, no
   separate dark-mode block needed — see this file's other card rules). */
.bb-profile-card.bb-popup-card {
	background-color: var(--ns-surface) !important;
	border: 1px solid var(--ns-card-border) !important;
	border-radius: var(--ns-radius-md) !important;
	box-shadow: var(--ns-shadow-raised) !important;
	padding: 16px !important;
	font-family: var(--ns-font-regular);
}
.bb-profile-card .bb-card-heading {
	color: var(--ns-text-heading) !important;
	font-family: var(--ns-font-semibold);
	font-size: 16px;
}
.bb-profile-card .bb-card-profile-type.hasMemberType {
	background-color: var(--ns-action-subtle) !important;
	color: var(--ns-action) !important;
	border-radius: var(--ns-radius-sm);
}
.bb-profile-card .bb-card-meta span {
	color: var(--ns-text-muted) !important;
}
.bb-profile-card .bb-card-footer .card-button,
.bb-profile-card .bb-card-footer button.follow-button {
	background: var(--ns-action) !important;
	/* 🚀 FIXED (color-review handoff): was #fff — the theme's own reskin
	   layer down to this one literal across 4,091 lines. var(--ns-on-action)
	   is the same white value in both modes, just token-backed. */
	color: var(--ns-on-action) !important;
	border-radius: var(--ns-radius-sm) !important;
	border: none !important;
}
.bb-profile-card .bb-card-footer .card-button:hover,
.bb-profile-card .bb-card-footer button.follow-button:hover {
	background: var(--ns-action-pressed) !important;
}
.bb-profile-card .bb-card-footer .bb-card-action-outline .card-button {
	background: transparent !important;
	color: var(--ns-action) !important;
	border: 1px solid var(--ns-card-border) !important;
}
.bb-profile-card .skeleton-card-avatar,
.bb-profile-card .skeleton-card-type,
.bb-profile-card .skeleton-card-heading,
.bb-profile-card .skeleton-card-meta,
.bb-profile-card .skeleton-card-button {
	background-color: var(--ns-surface-raised) !important;
}

/* Task #690 — read receipts. Echoed via bp_after_message_meta (see
   naijasubway-messages-read-receipts.php), so it renders right under the
   existing <time> sent-timestamp on the sender's own most recent message —
   same muted-caption treatment as every other message-metadata text. */
.ns-message-seen {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--ns-text-faint);
}

/* 🚀 ADDED (bug report — "ensure encryption and security is implemented and
   emphasized"): honest trust badge injected once per thread view by
   assets/js/messages-bubble-normalize.js (see that file's injectSecurityBadge()
   for exactly why JS, not PHP). Small and quiet by design — a security
   indicator that shouts for attention reads as anxious, not reassuring. */
.ns-messages-security-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--ns-surface-chrome);
	border: 1px solid var(--ns-divider);
	color: var(--ns-success);
	font-family: var(--ns-font-medium);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
	cursor: default;
}
.ns-messages-security-badge svg {
	flex-shrink: 0;
}

/* ==========================================================================
   Forum and topic pagination (15 October). One row: "Page 1 of 2" on the
   left, round page buttons on the right (current page filled green). Pages
   with 4 or more pages get a compact "Go to page [ n ] of N  Go" box under
   the buttons. Replaces bbPress's grey squares and the full-width
   "Jump to station" field.
   ========================================================================== */
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	float: none;
	width: auto;
	margin: 0 0 12px;
	padding: 0;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-count {
	float: none;
	margin: 0;
	color: var(--ns-text-muted) !important;
	font: 500 13px/1.4 var(--ns-font-medium, inherit);
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	float: none;
	margin: 0;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links :is(a, span),
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--ns-divider) !important;
	border-radius: 999px;
	background: transparent !important;
	color: var(--ns-text-body) !important;
	font: 600 14px/1 var(--ns-font-semibold, inherit);
	text-decoration: none !important;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links a:hover,
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links a:hover {
	border-color: var(--ns-action) !important;
	color: var(--ns-action) !important;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links span.current,
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links span.current {
	border-color: var(--ns-action) !important;
	background: var(--ns-action) !important;
	color: var(--ns-on-action) !important;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links span.dots,
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links span.dots {
	min-width: 20px;
	padding: 0;
	border-color: transparent !important;
	color: var(--ns-text-faint) !important;
}
:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-links :is(a.prev, a.next) { font-size: 16px; }

/* Go to page */
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--ns-text-muted);
	font: 500 13px/1 var(--ns-font-medium, inherit);
}
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump label { margin: 0; color: inherit; font: inherit; }
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump input {
	flex: none;
	width: 64px;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid var(--ns-divider);
	border-radius: 999px;
	background: var(--ns-surface-raised);
	color: var(--ns-text-heading);
	font: 600 14px/1 var(--ns-font-semibold, inherit);
	text-align: center;
	box-shadow: none;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump input::-webkit-outer-spin-button,
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump input::placeholder { color: var(--ns-text-faint); }
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump input:focus-visible {
	border-color: var(--ns-action);
	box-shadow: 0 0 0 3px var(--ns-action-subtle);
}
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump button {
	flex: none;
	height: 36px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ns-action);
	border-radius: 999px;
	background: transparent;
	color: var(--ns-action);
	font: 700 14px/1 var(--ns-font-bold, inherit);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump button:hover {
	background: var(--ns-action);
	color: var(--ns-on-action);
}
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links { gap: 6px; }
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination .ns-topics-pagination-links :is(a, span) { margin-left: 0; }
/* Forum topic list: the box sits inside the bottom of the pagination card. */
:is(html, #ns-pg) :is(body, #ns-pg) .ns-topics-pagination + form.ns-express-jump {
	margin: -1px 0 16px;
	padding: 10px 16px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-card-border);
	border-top-color: var(--ns-divider);
	border-radius: 0 0 var(--ns-radius-lg) var(--ns-radius-lg);
	box-shadow: var(--ns-shadow-card);
}
@media (max-width: 480px) {
	:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination { justify-content: center; }
	:is(html, #ns-pg) :is(body, #ns-pg) .bbp-pagination .bbp-pagination-count { width: 100%; text-align: center; }
	:is(html, #ns-pg) :is(body, #ns-pg) form.ns-express-jump { justify-content: center; }
}

/* ==========================================================================
   Editorials in the feed (2 December 2026)
   A member's blog post (activity li.blogs, BuddyBoss markup:
   [a.bb-post-img-link > img] + div.bb-content-wrp > a.bb-post-title-link >
   span.bb-post-title, then the excerpt <p>). BuddyBoss gave it a flat
   #fafafa box with faint text, which glared in dark mode. Now an editorial
   card in theme colours: "EDITORIAL" eyebrow, a large title, three lines of
   excerpt in body colour, "Read editorial", the featured image on top when
   there is one, and the whole card is one link. Matches the app's card.
   ========================================================================== */
.activity-list li.blogs .activity-content .activity-inner {
	position: relative;
	padding: 0 !important;
	border: 1px solid var(--ns-card-border);
	border-radius: var(--ns-radius-lg);
	background: var(--ns-surface) !important;
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ns-dark .activity-list li.blogs .activity-content .activity-inner { background: rgba(255, 255, 255, 0.03) !important; }
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .activity-list li.blogs .activity-content .activity-inner { background: rgba(255, 255, 255, 0.03) !important; }
}
.activity-list li.blogs .activity-content .activity-inner:hover {
	border-color: var(--ns-action);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.activity-list li.blogs .activity-content .activity-inner .bb-post-img-link {
	display: block;
	margin: 0 !important;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.activity-list li.blogs .activity-content .activity-inner .bb-post-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	display: block;
}
.activity-list li.blogs .activity-content .activity-inner .bb-content-wrp {
	background: transparent !important;
	padding: 16px 18px 16px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}
.activity-list li.blogs .activity-content .activity-inner .bb-content-wrp::before {
	content: "Editorial";
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ns-sunset);
	background: linear-gradient(var(--ns-sunset), var(--ns-sunset)) left center / 18px 2px no-repeat;
	padding-left: 26px;
}
.activity-list li.blogs .activity-content .activity-inner .bb-post-title-link {
	display: block;
	text-decoration: none !important;
}
/* The whole card opens the article. */
.activity-list li.blogs .activity-content .activity-inner .bb-post-title-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.activity-list li.blogs .activity-content .activity-inner .bb-post-title-link:focus-visible { outline: none; }
.activity-list li.blogs .activity-content .activity-inner:focus-within { outline: 2px solid var(--ns-action); outline-offset: 2px; }
.activity-list li.blogs .activity-content .activity-inner .bb-post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--ns-text-heading) !important;
	transition: color .18s ease;
}
.activity-list li.blogs .activity-content .activity-inner:hover .bb-post-title { color: var(--ns-action) !important; }
.activity-list li.blogs .activity-content .activity-inner .bb-content-wrp p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 8px 0 0 !important;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ns-text-body) !important;
}
.activity-list li.blogs .activity-content .activity-inner .bb-content-wrp::after {
	content: "Read editorial \2192";
	display: block;
	margin-top: 12px;
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 14px;
	color: var(--ns-action);
}
@media (prefers-reduced-motion: reduce) {
	.activity-list li.blogs .activity-content .activity-inner,
	.activity-list li.blogs .activity-content .activity-inner:hover { transition: none; transform: none; }
}

/* ==========================================================================
   NaijaSubway premium shell (2026-09-25)
   Shared chrome used on every page: theme-aware lockup in the left nav,
   grouped nav with Theme.ts selection styling, one Create entry point,
   bottom tab bar with icons and a centre Create button, and on phones a top
   bar that opens the left nav as a drawer (replacing the icon rail).
   Colours come from the --ns-* tokens in style.css, so light and dark mode
   follow the site toggle and prefers-color-scheme automatically.
   ========================================================================== */

/* ---------- Lockup: light lockup on light grounds, dark on dark ---------- */
.ns-wordmark-full--light { display: none; }
.ns-wordmark-chip { background: transparent !important; padding: 0 !important; }
.ns-wordmark-chip .ns-wordmark-full { height: 34px; width: auto; }
.ns-wordmark-chip .ns-wordmark-full:not(.ns-wordmark-full--light) { display: none; }
.ns-wordmark-chip .ns-wordmark-full--light { display: block; }
html.ns-dark .ns-wordmark-chip .ns-wordmark-full:not(.ns-wordmark-full--light) { display: block; }
html.ns-dark .ns-wordmark-chip .ns-wordmark-full--light { display: none; }
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .ns-wordmark-chip .ns-wordmark-full:not(.ns-wordmark-full--light) { display: block; }
	html:not(.ns-light) .ns-wordmark-chip .ns-wordmark-full--light { display: none; }
}

/* ---------- Left nav ---------- */
.ns-sidenav-heading {
	margin: 18px 12px 6px;
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--ns-text-muted);
}
.ns-sidenav-list a.ns-sidenav-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: var(--ns-radius-md);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 15px;
	line-height: 20px;
	color: var(--ns-text-body);
	text-decoration: none;
	transition: background-color 160ms var(--ns-motion-snap), color 160ms var(--ns-motion-snap);
}
.ns-sidenav-list a.ns-sidenav-link svg { flex: none; }
.ns-sidenav-list a.ns-sidenav-link:hover { background: var(--ns-surface-raised); color: var(--ns-text-heading); }
.ns-sidenav-list a.ns-sidenav-link.is-active { background: var(--ns-selected-surface); color: var(--ns-text-heading); }
.ns-sidenav-list a.ns-sidenav-link.is-active::before {
	content: "";
	position: absolute;
	left: 0; top: 10px; bottom: 10px;
	width: 3px;
	border-radius: 3px;
	background: var(--ns-selected-indicator);
}
.ns-sidenav-list a.ns-sidenav-link:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }

/* ---------- Create (left nav) ---------- */
.ns-create { position: relative; padding: 12px 8px 4px; }
.ns-create__btn {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: var(--ns-radius-full);
	background: var(--ns-action);
	color: var(--ns-on-action);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px var(--ns-action);
	transition: transform 140ms var(--ns-motion-snap), background-color 140ms;
}
.ns-create__btn:hover { background: var(--ns-action-pressed); }
.ns-create__btn:active { transform: scale(0.97); }
.ns-create__btn:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 3px; }
.ns-create__menu,
.ns-create-sheet__panel {
	background: var(--ns-surface);
	border: 1px solid var(--ns-divider);
	box-shadow: var(--ns-shadow-modal);
}
.ns-create__menu {
	position: absolute;
	left: 8px; right: 8px;
	top: calc(100% + 6px);
	z-index: 60;
	padding: 6px;
	border-radius: var(--ns-radius-lg);
}
.ns-create__menu a,
.ns-create-sheet__panel a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--ns-radius-md);
	color: var(--ns-text-heading);
	text-decoration: none;
}
.ns-create__menu a:hover,
.ns-create__menu a:focus-visible,
.ns-create-sheet__panel a:hover { background: var(--ns-surface-raised); outline: none; }
.ns-create__menu a svg,
.ns-create-sheet__panel a svg { flex: none; color: var(--ns-action); }
.ns-create__menu b,
.ns-create-sheet__panel b { display: block; font-family: var(--ns-font-bold); font-size: 14px; line-height: 19px; }
.ns-create__menu small,
.ns-create-sheet__panel small { display: block; font-size: 12px; line-height: 16px; color: var(--ns-text-muted); }

/* Icon rail (761px to 960px): Create becomes a round button, headings go. */
@media (max-width: 960px) {
	.ns-sidenav-heading { display: none; }
	.ns-layout__col--left .ns-sidenav-list a.ns-sidenav-link { justify-content: center; padding: 0; }
	.ns-layout__col--left .ns-create.ns-sidenav-bottom-actions { display: block !important; padding: 12px 0 4px; }
	.ns-layout__col--left .ns-create__btn { width: 46px; margin: 0 auto; }
	.ns-layout__col--left .ns-create__menu { left: calc(100% + 8px); right: auto; top: 0; width: 240px; }
}

/* ---------- Bottom tab bar (phones) ---------- */
.ns-bottomnav {
	background: color-mix(in srgb, var(--ns-surface) 92%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	border-top: 1px solid var(--ns-divider);
}
.ns-bottomnav__list { align-items: center; padding: 6px 4px; }
.ns-bottomnav__link {
	gap: 3px;
	padding: 4px 6px;
	min-width: 56px;
	color: var(--ns-text-muted);
	text-decoration: none;
}
.ns-bottomnav__link svg { width: 22px; height: 22px; }
.ns-bottomnav__link.is-active { color: var(--ns-text-heading); }
.ns-bottomnav__link.is-active svg { color: var(--ns-action); }
.ns-bottomnav__label { font-family: var(--ns-font-semibold); font-weight: 600; font-size: 11px; line-height: 13px; }
.ns-bottomnav__link.is-active .ns-bottomnav__label { font-family: var(--ns-font-bold); font-weight: 700; }
.ns-bottomnav__create {
	appearance: none;
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--ns-action);
	color: var(--ns-on-action);
	cursor: pointer;
	box-shadow: 0 10px 22px -8px var(--ns-action);
	transition: transform 140ms var(--ns-motion-snap);
}
.ns-bottomnav__create:active { transform: scale(0.94); }
.ns-bottomnav__create:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 3px; }

/* Create sheet */
.ns-create-sheet { position: fixed; inset: 0; z-index: 1100; }
.ns-create-sheet[hidden] { display: none; }
.ns-create-sheet__scrim { position: absolute; inset: 0; background: var(--ns-scrim, rgba(6, 10, 20, 0.5)); opacity: 0; transition: opacity 220ms; }
.ns-create-sheet__panel {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0));
	border-radius: 22px 22px 0 0;
	border-bottom: 0;
	transform: translateY(100%);
	transition: transform 280ms var(--ns-motion-snap);
}
.ns-create-sheet.is-open .ns-create-sheet__scrim { opacity: 1; }
.ns-create-sheet.is-open .ns-create-sheet__panel { transform: none; }
.ns-create-sheet__grip { display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--ns-divider); }
.ns-create-sheet__cancel {
	appearance: none;
	width: 100%;
	height: 46px;
	margin-top: 8px;
	border: 0;
	border-radius: var(--ns-radius-full);
	background: var(--ns-surface-raised);
	color: var(--ns-text-heading);
	font-family: var(--ns-font-bold);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

/* ---------- Mobile top bar + nav drawer (760px and below) ---------- */
.ns-mtopbar { display: none; }
.ns-drawer-scrim[hidden] { display: none; }

@media (max-width: 760px) {
	.ns-mtopbar {
		position: sticky;
		top: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 56px;
		padding: 0 10px;
		background: color-mix(in srgb, var(--ns-background) 88%, transparent);
		-webkit-backdrop-filter: saturate(160%) blur(16px);
		backdrop-filter: saturate(160%) blur(16px);
		border-bottom: 1px solid var(--ns-divider);
	}
	.ns-mtopbar__menu,
	.ns-mtopbar__icon {
		appearance: none;
		position: relative;
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--ns-text-heading);
		cursor: pointer;
	}
	.ns-mtopbar__icon:hover,
	.ns-mtopbar__menu:hover { background: var(--ns-surface-raised); }
	.ns-mtopbar__avatar,
	.ns-mtopbar__avatar img { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; object-fit: cover; }
	.ns-mtopbar__logo { position: absolute; left: 50%; transform: translateX(-50%); line-height: 0; }
	.ns-mtopbar__lock { height: 28px; width: auto; display: block; }
	.ns-mtopbar__lock--dark { display: none; }
	html.ns-dark .ns-mtopbar__lock--light { display: none; }
	html.ns-dark .ns-mtopbar__lock--dark { display: block; }
	.ns-mtopbar__actions { display: flex; gap: 2px; }

	/* Detail pages (16 October, inc/back-nav.php): Back and the page name
	   take the left side; the avatar and logo step aside. */
	.ns-mtopbar--back { justify-content: flex-start; gap: 4px; }
	.ns-mtopbar--back .ns-mtopbar__menu,
	.ns-mtopbar--back .ns-mtopbar__logo { display: none; }
	.ns-mtopbar--back .ns-mtopbar__actions { margin-left: auto; }
	.ns-mtopbar__back {
		flex: none;
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		margin-left: -4px;
		border-radius: 50%;
		color: var(--ns-text-heading);
		text-decoration: none;
	}
	.ns-mtopbar__back:hover { background: var(--ns-surface-raised); }
	.ns-mtopbar__back:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }
	.ns-mtopbar__title {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		color: var(--ns-text-heading);
		font-family: var(--ns-font-bold);
		font-weight: 700;
		font-size: 18px;
		line-height: 1.2;
	}
	/* The page's own small back chip (forum, topic, group events) would repeat it. */
	body.ns-has-back .ns-group-header__back { display: none !important; }
	/* Same for the round back button on a group cover; it keeps its space so the actions stay right. */
	body.ns-has-back .ns-gh2__back { visibility: hidden; pointer-events: none; }
	.ns-mtopbar__badge {
		position: absolute;
		top: 4px; right: 3px;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		border-radius: var(--ns-radius-full);
		border: 2px solid var(--ns-background);
		background: var(--ns-sunset); /* 2 Dec 2026: Sunset, not error red */
		color: var(--ns-on-sunset);
		font-size: 10px;
		line-height: 13px;
		font-weight: 700;
		text-align: center;
		box-sizing: border-box;
	}

	/* Icon rail (2026-10-08): phones keep the left nav as a slim icon-only
	   rail beside the content, the same as 761 to 960px. The top bar's
	   avatar button expands it into the full labelled drawer. */
	.ns-layout { grid-template-columns: 56px minmax(0, 1fr) !important; gap: 0 12px !important; padding-left: 0 !important; }
	/* The home feed runs edge to edge against the rail. */
	body.home.logged-in .ns-layout { column-gap: 0 !important; }
	.ns-layout__col--left {
		position: sticky !important;
		top: 56px;
		align-self: start;
		display: block !important;
		width: 56px;
		height: calc(100vh - 56px);
		height: calc(100dvh - 56px);
		padding: 10px 4px calc(84px + env(safe-area-inset-bottom, 0));
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: none;
		background: var(--ns-background);
		border-right: 1px solid var(--ns-divider);
		box-sizing: border-box;
	}
	.ns-layout__col--left::-webkit-scrollbar { display: none; }
	.ns-layout__col--left .ns-layout__col-inner { position: static !important; top: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; }
	.ns-layout__col--left .ns-sidenav-label,
	.ns-layout__col--left .ns-sidenav-bottom-actions,
	.ns-layout__col--left .ns-sidenav-heading { display: none !important; }
	.ns-layout__col--left .ns-sidenav-list a.ns-sidenav-link { justify-content: center; padding: 0; }
	.ns-layout__col--left .ns-sidenav-me { flex-direction: column !important; gap: 8px !important; }
	.ns-layout__col--left .ns-sidenav-me > a { flex: none; display: flex; justify-content: center; }
	/* The top bar already shows the logo. */
	.ns-layout__col--left .ns-wordmark-chip { display: none !important; }

	/* Expanded: the full labelled drawer over the page. */
	html.ns-drawer-open .ns-layout__col--left {
		position: fixed !important;
		top: 0; bottom: 0; left: 0;
		z-index: 1001;
		width: min(300px, 84vw);
		height: auto;
		padding: 18px 12px calc(24px + env(safe-area-inset-bottom, 0));
		background: var(--ns-surface);
		box-shadow: var(--ns-shadow-modal);
		animation: ns-drawer-in 280ms var(--ns-motion-snap);
	}
	/* Holds the rail's place in the grid while the drawer is out. */
	html.ns-drawer-open .ns-layout::before { content: ""; grid-column: 1; grid-row: 1; }
	html.ns-drawer-open { overflow: hidden; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-label { display: inline !important; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-bottom-actions { display: block !important; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-heading { display: block !important; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-list a.ns-sidenav-link { justify-content: flex-start; padding: 0 12px; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-me { flex-direction: row !important; gap: 6px !important; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-me > a { flex: 1; justify-content: flex-start; }
	.ns-layout__col--left .ns-create__btn { width: 100%; }
	.ns-layout__col--left .ns-create__menu { left: 8px; right: 8px; top: calc(100% + 6px); width: auto; }
	.ns-drawer-scrim {
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: var(--ns-scrim, rgba(6, 10, 20, 0.5));
	}
	/* The create sheet replaces the left-nav Create on phones. */
	.ns-layout__col--left .ns-create { display: none !important; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
	html:not(.ns-light) .ns-mtopbar__lock--light { display: none; }
	html:not(.ns-light) .ns-mtopbar__lock--dark { display: block; }
}

@keyframes ns-drawer-in { from { transform: translateX(-105%); } to { transform: none; } }
@media (max-width: 480px) {
	.ns-layout { grid-template-columns: 48px minmax(0, 1fr) !important; }
	.ns-layout__col--left { width: 48px; padding-left: 2px; padding-right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-layout__col--left,
	.ns-create-sheet__panel,
	.ns-create-sheet__scrim { transition: none !important; }
	html.ns-drawer-open .ns-layout__col--left { animation: none !important; }
}

/* ---------- Left nav fit (2026-09-25 follow-up) ----------
   Bigger lockup, aligned with the nav icons; the whole column fits the
   viewport (compact rows, profile + mode switch on one row) and scrolls
   inside itself on short screens instead of cutting off the bottom. */
.ns-layout__col--left .ns-wordmark-chip .ns-wordmark-full { height: 46px; }
.ns-layout__col--left .ns-layout__col-inner > div:first-child,
.ns-layout__col--left > div:first-child { padding: 0 4px 10px !important; text-align: left !important; }
.ns-layout__col--left .ns-wordmark-chip { display: inline-flex; justify-content: flex-start; }
.ns-layout__col--left .ns-wordmark-chip .ns-wordmark { display: inline-flex; line-height: 0; }
.ns-sidenav-list :is(a, summary).ns-sidenav-link { min-height: 38px; }
.ns-sidenav-heading { margin: 12px 12px 4px; }
.ns-create { padding-top: 6px; }
.ns-sidenav-me { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 6px !important; }
.ns-sidenav-me > a { flex: 1; min-width: 0; }
.ns-sidenav-me .ns-sidenav-toggle { margin: 0 !important; align-self: center !important; flex: none; }
@media (min-width: 761px) {
	.ns-layout__col--left .ns-layout__col-inner {
		max-height: calc(100vh - 20px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--ns-divider) transparent;
		padding-bottom: 12px;
	}
	body.admin-bar .ns-layout__col--left .ns-layout__col-inner { max-height: calc(100vh - 52px); }
	.ns-layout__col--left .ns-layout__col-inner::-webkit-scrollbar { width: 6px; }
	.ns-layout__col--left .ns-layout__col-inner::-webkit-scrollbar-thumb { background: var(--ns-divider); border-radius: 6px; }
}
@media (max-width: 960px) and (min-width: 761px) {
	.ns-layout__col--left .ns-layout__col-inner > div:first-child { text-align: center !important; padding: 0 0 10px !important; }
	.ns-sidenav-me { flex-direction: column !important; }
}


/* Right column scrolls on its own too (desktop, where it is shown). */
@media (min-width: 1201px) {
	.ns-layout__col--right .ns-layout__col-inner {
		max-height: calc(100vh - 20px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--ns-divider) transparent;
		padding-bottom: 20px;
		/* 2026-10-15: keep the widgets clear of the scroll bar. The gutter is
		   reserved even before the column overflows, so nothing shifts when
		   the bar appears. */
		scrollbar-gutter: stable;
		padding-right: 10px;
		margin-right: -4px;
	}
	body.admin-bar .ns-layout__col--right .ns-layout__col-inner { max-height: calc(100vh - 52px); }
	.ns-layout__col--right .ns-layout__col-inner::-webkit-scrollbar { width: 6px; }
	.ns-layout__col--right .ns-layout__col-inner::-webkit-scrollbar-thumb { background: var(--ns-divider); border-radius: 6px; }
}

/* ---------- Logo size standard (2026-09-25) ----------
   One scale for the lockup everywhere in the app shell. The *-trim.png
   lockups have no built-in padding, so these heights are the visible logo.
   Desktop left nav 36px, tablet rail 40px icon, phones 30px (26px on very
   narrow phones). */
:root { --ns-logo-h: 36px; --ns-logo-mark: 40px; }
@media (max-width: 760px) { :root { --ns-logo-h: 30px; } }
@media (max-width: 360px) { :root { --ns-logo-h: 26px; } }

.ns-layout__col--left .ns-wordmark-chip .ns-wordmark-full {
	height: var(--ns-logo-h);
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}
.ns-layout__col--left .ns-layout__col-inner > div:first-child,
.ns-layout__col--left > div:first-child { padding: 4px 8px 14px !important; }
@media (max-width: 960px) and (min-width: 761px) {
	.ns-layout__col--left .ns-wordmark-chip .ns-wordmark-icon-only {
		width: var(--ns-logo-mark) !important;
		height: var(--ns-logo-mark) !important;
		border-radius: 10px;
	}
	.ns-layout__col--left .ns-layout__col-inner > div:first-child,
	.ns-layout__col--left > div:first-child { padding: 4px 0 14px !important; text-align: center !important; }
	.ns-layout__col--left .ns-wordmark-chip { justify-content: center; }
}
@media (max-width: 760px) {
	.ns-mtopbar__lock {
		height: var(--ns-logo-h);
		width: auto;
		max-width: calc(100vw - 210px);
		object-fit: contain;
	}
}

/* Feeling tag at the top of a post ("😊 feeling happy"), added by the composer. */
.activity-inner .ns-feeling,
.bb-activity-inner .ns-feeling {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px;
	background: var(--ns-action-subtle); color: var(--ns-text-heading); font-family: var(--ns-font-semibold); font-weight: 600; font-size: 13px; line-height: 20px;
}
.activity-inner .ns-feeling img.emoji,
.bb-activity-inner .ns-feeling img.emoji { width: 1.15em !important; height: 1.15em !important; margin: 0 !important; vertical-align: -0.2em; }

/* WordPress's emoji images (used on browsers without full native emoji support): keep them text-sized. */
img.emoji,
img.wp-smiley,
/* 24 October: BuddyBoss's emoji picker inserts img.emojioneemoji (fixed
   24px) into comment boxes, the post composer, messages and the posts
   themselves, so a picked emoji stood twice the height of the text. Now
   text-sized everywhere, like typed emoji. */
img.emojioneemoji,
.emojionearea .emojionearea-editor img.emojioneemoji,
[contenteditable] img.emojioneemoji,
[contenteditable] img.emoji {
	display: inline !important; width: 1.2em !important; height: 1.2em !important; margin: 0 0.07em !important;
	vertical-align: -0.2em !important; border: none !important; box-shadow: none !important; background: none !important; padding: 0 !important;
}

/* Mention links inside posts and comments read as names, not raw links. */
.activity-inner a.bp-suggestions-mention,
.acomment-content a.bp-suggestions-mention,
.bbp-reply-content a.bp-suggestions-mention,
.bbp-topic-content a.bp-suggestions-mention {
	color: var(--ns-action); font-family: var(--ns-font-semibold); font-weight: 600; text-decoration: none;
	background: var(--ns-action-subtle); padding: 0 4px; border-radius: 5px;
}
.activity-inner a.bp-suggestions-mention:hover,
.acomment-content a.bp-suggestions-mention:hover { text-decoration: underline; }

/* ==========================================================================
   Feed search + "Show by" filters, sitewide (2026-09-26).
   BuddyBoss hides search behind an icon that opens a boxed input with a
   separate square button. Now: an always-visible pill with the icon inside,
   a clear button, and matching pill filters with a card-style menu.
   ========================================================================== */
#buddypress .activity-head-bar {
	display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
	margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
}
#buddypress .activity-head-bar .bb-subnav-filters-search {
	position: relative; flex: 1 1 260px; max-width: 420px; order: 0; margin: 0 !important;
}
#buddypress .activity-head-bar .bb-subnav-filters-search > .subnav-filters-opener { display: none !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search .subnav-filters-modal {
	display: block !important; position: static !important; inset: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
	width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
}
#buddypress .activity-head-bar .bb-subnav-filters-search .subnav-filters-modal > ul,
#buddypress .activity-head-bar .bb-subnav-filters-search .subnav-filters-modal li { display: block !important; margin: 0 !important; padding: 0 !important; list-style: none; border: 0 !important; background: none !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search .bp-search,
#buddypress .activity-head-bar .bb-subnav-filters-search form { position: relative; display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"] {
	width: 100% !important; height: 42px !important; margin: 0 !important; padding: 0 40px 0 42px !important;
	border: 1px solid transparent !important; border-radius: var(--ns-radius-full) !important; outline: none !important; box-shadow: none !important;
	background: var(--ns-surface) !important; color: var(--ns-text-heading) !important; font-size: 14.5px !important; line-height: 42px !important;
	-webkit-appearance: none; appearance: none;
}
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"]::placeholder { color: var(--ns-text-muted) !important; opacity: 1; }
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"]:hover { border-color: var(--ns-divider) !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"]:focus {
	border-color: var(--ns-action) !important; box-shadow: 0 0 0 3px var(--ns-action-subtle) !important;
}
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
/* Search icon inside the field (it is still the real submit button). */
#buddypress .activity-head-bar .bb-subnav-filters-search .search-form_submit,
#buddypress .activity-head-bar .bb-subnav-filters-search button[type="submit"] {
	position: absolute !important; left: 6px !important; top: 50% !important; right: auto !important; transform: translateY(-50%) !important;
	display: inline-grid !important; place-items: center; width: 32px !important; height: 32px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ns-text-muted) !important; box-shadow: none !important; cursor: pointer;
}
#buddypress .activity-head-bar .bb-subnav-filters-search button[type="submit"] .bb-icon-search,
#buddypress .activity-head-bar .bb-subnav-filters-search button[type="submit"] [class*="bb-icon"] { font-size: 18px !important; color: inherit !important; margin: 0 !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search button[type="submit"]:hover { color: var(--ns-action) !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search .search-form_reset {
	position: absolute !important; right: 6px !important; top: 50% !important; transform: translateY(-50%) !important;
	width: 30px !important; height: 30px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important;
	background: var(--ns-surface-raised) !important; color: var(--ns-text-muted) !important; box-shadow: none !important; cursor: pointer;
}
#buddypress .activity-head-bar .bb-subnav-filters-search .search-form_reset [class*="bb-icon"] { font-size: 13px !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search form:not(.search-form-has-reset) .search-form_reset,
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"]:placeholder-shown ~ .search-form_reset { display: none !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search label.bp-screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* "Show" / "Show by" filters */
#buddypress .activity-head-bar .bb-subnav-filters-container-main { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; }
#buddypress .activity-head-bar .bb-subnav-filters-label { color: var(--ns-text-muted) !important; font-size: 13.5px !important; font-weight: 500; white-space: nowrap; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering { position: relative; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering > .subnav-filters-opener {
	display: inline-flex !important; align-items: center; gap: 6px; height: 36px !important; padding: 0 12px 0 14px !important; margin: 0 !important;
	border: 1px solid var(--ns-divider) !important; border-radius: var(--ns-radius-full) !important; background: var(--ns-surface) !important; box-shadow: none !important;
	color: var(--ns-text-heading) !important; font-family: var(--ns-font-semibold); font-weight: 600; font-size: 13.5px !important; cursor: pointer;
}
#buddypress .activity-head-bar .bb-subnav-filters-filtering > .subnav-filters-opener .selected { color: inherit !important; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering > .subnav-filters-opener:hover { background: var(--ns-surface-raised) !important; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering > .subnav-filters-opener [class*="bb-icon"] { font-size: 14px !important; color: var(--ns-text-muted) !important; transition: transform 160ms; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering.active > .subnav-filters-opener [class*="bb-icon"] { transform: rotate(180deg); }
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal {
	min-width: 220px !important; padding: 6px !important; border: 1px solid var(--ns-divider) !important; border-radius: var(--ns-radius-lg) !important;
	background: var(--ns-surface) !important; box-shadow: var(--ns-shadow-modal) !important; right: 0; left: auto;
}
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal ul { margin: 0 !important; padding: 0 !important; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal li { margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal li :is(a, button, label) {
	display: flex !important; align-items: center; width: 100%; padding: 9px 12px !important; border: 0 !important; border-radius: 10px !important; background: none !important;
	color: var(--ns-text-heading) !important; font-size: 14px !important; text-align: left; text-decoration: none !important; cursor: pointer;
}
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal li :is(a, button, label):hover { background: var(--ns-surface-raised) !important; }
#buddypress .activity-head-bar .bb-subnav-filters-filtering .subnav-filters-modal li.selected :is(a, button, label) { background: var(--ns-selected-surface) !important; font-weight: 700; }
@media (max-width: 560px) {
	#buddypress .activity-head-bar .bb-subnav-filters-search { flex-basis: 100%; max-width: none; }
}
#buddypress .activity-head-bar .bb-subnav-filters-search .subnav-filters-modal > ul,
#buddypress .activity-head-bar .bb-subnav-filters-search .subnav-filters-modal li { width: 100% !important; float: none !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search form { height: 42px !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search input[type="search"] { float: none !important; position: static !important; }
#buddypress .activity-head-bar .bb-subnav-filters-search form::before,
#buddypress .activity-head-bar .bb-subnav-filters-search form::after,
#buddypress .activity-head-bar .bb-subnav-filters-search .bp-search::before { content: none !important; display: none !important; }

/* ==========================================================================
   Glass sheet (2026-09-26): shared premium popup built on native <dialog>
   (top layer, Esc to close, focus handled by the browser). Frost (backdrop
   blur + saturation), a light rim, and a soft sheen. Solid surface where
   backdrop-filter is unsupported or the viewer prefers less transparency.
   Centred card on desktop, bottom sheet on phones.
   ========================================================================== */
dialog.ns-sheet {
	--sheet-glass: color-mix(in srgb, var(--ns-surface) 78%, transparent);
	--sheet-rim: rgba(255, 255, 255, 0.6);
	--sheet-hi: rgba(255, 255, 255, 0.75);
	position: fixed; inset: 0; margin: auto; padding: 0; border: 0; width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px);
	overflow: visible; background: transparent; color: var(--ns-text-body);
}
html.ns-dark dialog.ns-sheet { --sheet-glass: color-mix(in srgb, var(--ns-surface) 72%, transparent); --sheet-rim: rgba(255, 255, 255, 0.12); --sheet-hi: rgba(255, 255, 255, 0.14); }
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) dialog.ns-sheet { --sheet-glass: color-mix(in srgb, var(--ns-surface) 72%, transparent); --sheet-rim: rgba(255, 255, 255, 0.12); --sheet-hi: rgba(255, 255, 255, 0.14); }
}
dialog.ns-sheet::backdrop {
	background: radial-gradient(120% 90% at 50% 10%, rgba(12, 110, 74, 0.28), rgba(6, 10, 20, 0.55) 60%);
	-webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%);
	opacity: 0; transition: opacity 220ms ease;
}
dialog.ns-sheet[open]::backdrop { opacity: 1; }
.ns-sheet__panel {
	position: relative; isolation: isolate; display: flex; flex-direction: column; max-height: inherit; overflow: hidden;
	border-radius: 24px; background: var(--sheet-glass); border: 1px solid var(--sheet-rim);
	-webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
	box-shadow: inset 0 1px 0 var(--sheet-hi), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(6, 10, 20, 0.35), 0 8px 24px rgba(6, 10, 20, 0.18);
	transform: translateY(12px) scale(0.98); opacity: 0; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
/* Sheen: a soft diagonal light across the top of the glass. */
.ns-sheet__panel::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: -1; pointer-events: none;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light;
}
dialog.ns-sheet[open] .ns-sheet__panel { transform: none; opacity: 1; }
dialog.ns-sheet.is-closing .ns-sheet__panel { transform: translateY(8px) scale(0.98); opacity: 0; }
dialog.ns-sheet.is-closing::backdrop { opacity: 0; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.ns-sheet__panel { background: var(--ns-surface); }
}
@media (prefers-reduced-transparency: reduce) {
	.ns-sheet__panel { background: var(--ns-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.ns-sheet__panel::before { display: none; }
}

.ns-sheet__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 12px 24px; }
.ns-sheet__titles { flex: 1 1 auto; min-width: 0; }
.ns-sheet__eyebrow { margin: 0 0 2px; font-family: var(--ns-font-bold); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ns-action); }
.ns-sheet__title { margin: 0; font-family: var(--ns-font-bold); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ns-text-heading); }
.ns-sheet__sub { margin: 4px 0 0; font-size: 14px; color: var(--ns-text-muted); }
.ns-sheet__close {
	appearance: none; flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
	background: color-mix(in srgb, var(--ns-text-heading) 8%, transparent); color: var(--ns-text-heading);
}
.ns-sheet__close:hover { background: color-mix(in srgb, var(--ns-text-heading) 14%, transparent); }
.ns-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 16px; }
.ns-sheet__foot {
	display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid color-mix(in srgb, var(--ns-divider) 70%, transparent); background: color-mix(in srgb, var(--ns-surface) 40%, transparent);
}
.ns-sheet__foot-note { margin-right: auto; font-size: 13px; color: var(--ns-text-muted); }
.ns-sheet :focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }

.ns-sheet__btn {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
	border: 1px solid transparent; font-family: var(--ns-font-bold); font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap; text-decoration: none;
	transition: background 160ms, transform 140ms, box-shadow 160ms, opacity 160ms;
}
.ns-sheet__btn--primary { background: var(--ns-action); color: var(--ns-on-action, #fff); box-shadow: 0 6px 18px color-mix(in srgb, var(--ns-action) 35%, transparent); }
.ns-sheet__btn--primary:hover:not(:disabled) { background: var(--ns-action-pressed, var(--ns-action)); transform: translateY(-1px); }
.ns-sheet__btn--primary:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.ns-sheet__btn--ghost { background: transparent; color: var(--ns-text-heading); border-color: color-mix(in srgb, var(--ns-divider) 90%, transparent); }
.ns-sheet__btn--ghost:hover { background: color-mix(in srgb, var(--ns-text-heading) 6%, transparent); }
.ns-sheet__btn.is-busy { opacity: 0.7; cursor: progress; }

@media (max-width: 640px) {
	dialog.ns-sheet { inset: auto 0 0 0; margin: 0; width: 100vw; max-width: 100vw; max-height: 92vh; }
	.ns-sheet__panel { border-radius: 24px 24px 0 0; border-bottom: 0; transform: translateY(100%); }
	.ns-sheet__panel::after { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: color-mix(in srgb, var(--ns-text-heading) 22%, transparent); }
	dialog.ns-sheet.is-closing .ns-sheet__panel { transform: translateY(100%); }
	.ns-sheet__head { padding-top: 24px; }
	.ns-sheet__body { padding: 4px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.ns-sheet__panel, dialog.ns-sheet::backdrop { transition: none; }
}
html.ns-sheet-open { overflow: hidden; }

/* Icon rail tooltips (2026-10-03, see premium-shell.js). The CSS balloons
   are clipped by the scrolling rail, so the floating .ns-rail-tip replaces
   them while the rail is narrow. */
.ns-layout__col--left.ns-rail-mode [data-balloon]::before,
.ns-layout__col--left.ns-rail-mode [data-balloon]::after { display: none !important; }
.ns-rail-tip {
	position: fixed;
	z-index: 10000;
	transform: translate(-4px, -50%);
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--ns-text-heading, #111);
	color: var(--ns-background, #fff);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s ease, transform .12s ease;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.ns-rail-tip.is-on { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .ns-rail-tip { transition: none; } }

/* Unread count on the left nav (Notifications, 16 October). */
.ns-sidenav-list a.ns-sidenav-link .ns-sidenav-badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	margin-left: auto;
	padding: 0 6px;
	border-radius: var(--ns-radius-full);
	/* Brand green with its paired text colour (22 October): the old
	   destructive fill turned pale salmon in dark mode, and white on it was
	   hard to read. Green/on-action is 6.3:1 light and 8.7:1 dark, and
	   matches the unread colour in the app.
	   3 December 2026: Sunset, the accent for new and unread, matching the
	   app's notification count (dark ink on #FF8A66 is 8.3:1, white on
	   #B83E1C is 5.6:1). Green stays for things you tap. */
	background: var(--ns-sunset);
	color: var(--ns-on-sunset);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-sizing: border-box;
}
@media (max-width: 960px) {
	.ns-sidenav-list a.ns-sidenav-link .ns-sidenav-badge {
		position: absolute;
		top: 4px;
		left: calc(50% + 2px);
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		font-size: 10px;
		box-shadow: 0 0 0 2px var(--ns-background);
	}
	html.ns-drawer-open .ns-sidenav-list a.ns-sidenav-link .ns-sidenav-badge { position: static; min-width: 20px; height: 20px; font-size: 11px; box-shadow: none; }
}
/* Phones: the top bar already has the bell, so the rail leaves it out; the drawer keeps it. */
@media (max-width: 760px) {
	html:not(.ns-drawer-open) .ns-layout__col--left .ns-sidenav-link--notifs { display: none !important; }
}

/* ==========================================================================
   2026-11-16 (timeline polish T8): the "More" group in the left menu
   (template-parts/secondary-left-nav.php). The toggle looks and behaves like
   the links around it, in the full menu, the icon rail and the drawer.
   ========================================================================== */
.ns-sidenav-more { margin: 0; }
.ns-sidenav-more__body { display: flex; flex-direction: column; gap: 2px; }
.ns-sidenav-list summary.ns-sidenav-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 38px; /* same as the links (line 390) */
	padding: 0 12px;
	border-radius: var(--ns-radius-md);
	font-family: var(--ns-font-semibold);
	font-weight: 600;
	font-size: 15px;
	line-height: 20px;
	color: var(--ns-text-body);
	list-style: none;
	cursor: pointer;
	transition: background-color 160ms var(--ns-motion-snap), color 160ms var(--ns-motion-snap);
}
.ns-sidenav-list summary.ns-sidenav-link::-webkit-details-marker { display: none; }
.ns-sidenav-list summary.ns-sidenav-link svg { flex: none; }
.ns-sidenav-list summary.ns-sidenav-link:hover { background: var(--ns-surface-raised); color: var(--ns-text-heading); }
.ns-sidenav-list summary.ns-sidenav-link:focus-visible { outline: 2px solid var(--ns-action); outline-offset: -2px; }
.ns-sidenav-more__chev { display: inline-flex; margin-left: auto; color: var(--ns-text-muted); transition: transform 160ms var(--ns-motion-snap); }
.ns-sidenav-more[open] > summary .ns-sidenav-more__chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .ns-sidenav-more__chev { transition: none; } }
@media (max-width: 960px) {
	.ns-layout__col--left .ns-sidenav-list summary.ns-sidenav-link { justify-content: center; padding: 0; }
	.ns-layout__col--left .ns-sidenav-more__chev { display: none; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-list summary.ns-sidenav-link { justify-content: flex-start; padding: 0 12px; }
	html.ns-drawer-open .ns-layout__col--left .ns-sidenav-more__chev { display: inline-flex; }
}

/* Photo viewer (4 December 2026, premium-shell.js): a post's photos, full size. */
.activity-inner img.app-attached-image { cursor: zoom-in; }
.ns-photoview { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; overflow: hidden; }
.ns-photoview::backdrop { background: rgba(0, 0, 0, .6); }
.ns-photoview__img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.ns-photoview__count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(20, 19, 43, .55); font: 700 13px/1 var(--ns-font-bold, sans-serif); font-variant-numeric: tabular-nums; }
.ns-photoview__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 19, 43, .55); color: #fff; font: 400 28px/1 sans-serif; cursor: pointer; }
.ns-photoview__btn:hover { background: rgba(20, 19, 43, .8); }
.ns-photoview__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ns-photoview__close { top: 12px; right: 16px; }
.ns-photoview__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ns-photoview__next { right: 16px; top: 50%; transform: translateY(-50%); }
.ns-photoview__btn[hidden], .ns-photoview__count[hidden] { display: none; }

:root{--scene-sky-1: #D9CDEF;--scene-sky-2: #F8CBA6;--scene-building-far: #CAD4E4;--scene-building-near: #8496B5;--scene-track: #B0BED3;--scene-road: #D2DAE8;--scene-train-body: #5D6980;--scene-livery-a: #008751;--scene-livery-b: #E05B35;--scene-train-roof: #2E384C;--scene-train-trim: #7E6A4B;--scene-window: #7E6A4B;--scene-window-cool: #6E7C99;--scene-headlamp: #FFFFFF;--scene-tail-light: #A61B1B;--scene-rider: #2E384C;--scene-signal: #2E384C;--scene-veil: rgba(245, 247, 250, 0);--ns-card-shadow: 0 20px 40px -10px rgba(15, 23, 42, .1);--ns-card-border: #F1F5F9}@media (prefers-color-scheme: dark){:root{--scene-sky-1: #0F172A;--scene-sky-2: #1A0E4E;--scene-building-far: #46527F;--scene-building-near: #161E36;--scene-track: #2B3752;--scene-road: #1E2739;--scene-train-body: #1E2739;--scene-livery-a: #00A86B;--scene-livery-b: #FF7A59;--scene-train-roof: #131A2B;--scene-train-trim: #CDB79A;--scene-window: #F0CE92;--scene-window-cool: #A8C2E8;--scene-headlamp: #FFF6DC;--scene-tail-light: #FF6B5A;--scene-rider: #8C97AE;--scene-signal: #ECF1F8;--scene-veil: rgba(10, 15, 28, 0);--ns-card-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);--ns-card-border: rgba(255, 255, 255, .05)}}.ns-light{--scene-sky-1: #D9CDEF;--scene-sky-2: #F8CBA6;--scene-building-far: #CAD4E4;--scene-building-near: #8496B5;--scene-track: #B0BED3;--scene-road: #D2DAE8;--scene-train-body: #5D6980;--scene-livery-a: #008751;--scene-livery-b: #E05B35;--scene-train-roof: #2E384C;--scene-train-trim: #7E6A4B;--scene-window: #7E6A4B;--scene-window-cool: #6E7C99;--scene-headlamp: #FFFFFF;--scene-tail-light: #A61B1B;--scene-rider: #2E384C;--scene-signal: #2E384C;--scene-veil: rgba(245, 247, 250, 0);--ns-card-shadow: 0 20px 40px -10px rgba(15, 23, 42, .1);--ns-card-border: #F1F5F9}.ns-dark{--scene-sky-1: #0F172A;--scene-sky-2: #1A0E4E;--scene-building-far: #46527F;--scene-building-near: #161E36;--scene-track: #2B3752;--scene-road: #1E2739;--scene-train-body: #1E2739;--scene-livery-a: #00A86B;--scene-livery-b: #FF7A59;--scene-train-roof: #131A2B;--scene-train-trim: #CDB79A;--scene-window: #F0CE92;--scene-window-cool: #A8C2E8;--scene-headlamp: #FFF6DC;--scene-tail-light: #FF6B5A;--scene-rider: #8C97AE;--scene-signal: #ECF1F8;--scene-veil: rgba(10, 15, 28, 0);--ns-card-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);--ns-card-border: rgba(255, 255, 255, .05)}@media (prefers-reduced-motion: reduce){.ns-guest-home *{animation-duration:.001ms!important;animation-iteration-count:1!important}}#ns-theme-toggle.ns-guest-theme-toggle{position:fixed;top:16px;right:16px;z-index:30;width:40px;height:40px;border-radius:999px;border:1px solid var(--ns-divider);background:var(--ns-surface);color:var(--ns-text-heading);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--ns-shadow-modal);transition:background .15s ease}#ns-theme-toggle.ns-guest-theme-toggle:hover{background:var(--ns-surface-raised)}#ns-theme-toggle.ns-guest-theme-toggle svg{width:18px;height:18px}.ns-guest-theme-toggle .ns-theme-toggle__icon--sunny,html.ns-dark .ns-guest-theme-toggle .ns-theme-toggle__icon--moon{display:none}html.ns-dark .ns-guest-theme-toggle .ns-theme-toggle__icon--sunny{display:flex}.ns-guest-home{background:var(--ns-background)}.ns-guest-home .login-split{display:flex;min-height:100vh}.ns-guest-home .form-col{flex:1 1 46%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--ns-background);padding:clamp(20px,4vh,40px) 20px clamp(64px,11vh,110px)}html.ns-dark .ns-guest-home .form-col{background:radial-gradient(ellipse 680px 560px at 12% -10%,rgba(0,168,107,.22),transparent 62%),radial-gradient(ellipse 600px 480px at 105% 112%,rgba(255,122,89,.2),transparent 62%),radial-gradient(ellipse 950px 820px at 50% 38%,#14203C 0%,var(--ns-background) 68%)}.ns-guest-home .brand-col{position:relative;flex:1 1 54%;min-height:100vh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,var(--scene-sky-1) 0%,var(--scene-sky-2) 100%)}.ns-guest-home .scene-svg{position:absolute;inset:0;width:100%;height:100%;display:block;filter:saturate(.88) brightness(.97)}.ns-guest-home .scene-fade-top{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,var(--scene-veil) 0%,transparent 30%)}.ns-guest-home .boarding-strip{position:relative;z-index:2;margin-top:clamp(16px,4vw,26px);display:inline-flex;align-items:center;gap:9px;padding:7px clamp(12px,3vw,16px);border-radius:999px;background:var(--ns-surface-raised);border:1px solid var(--ns-divider);max-width:calc(100vw - 32px)}.ns-guest-home .boarding-dot{width:7px;height:7px;border-radius:999px;background:var(--scene-livery-a);box-shadow:0 0 6px 1px var(--scene-livery-a);animation:nsPulseDot 1.6s ease-in-out infinite;flex:none}@keyframes nsPulseDot{0%,to{opacity:1}50%{opacity:.25}}.ns-guest-home .boarding-text{font-size:clamp(9.5px,2.4vw,11px);font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:var(--ns-text-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ns-guest-home .ns-app-carousel{position:relative;z-index:2;width:min(620px,calc(100% - 24px));margin:clamp(32px,7vh,64px) auto 0;padding:28px 32px 30px;border-radius:30px;overflow:hidden;background:linear-gradient(165deg,#141a2ed1,#0a0d1ae6);border:1px solid rgba(255,255,255,.14);box-shadow:0 22px 50px #0006,inset 0 1px #ffffff14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.ns-guest-home .ns-app-carousel__glow{position:absolute;inset:-20%;z-index:0;pointer-events:none;background:radial-gradient(closest-side,rgba(224,91,53,.38),transparent 70%) 0% 0% / 65% 55% no-repeat,radial-gradient(closest-side,rgba(0,135,81,.4),transparent 70%) 100% 100% / 65% 55% no-repeat;filter:blur(6px)}.ns-guest-home .ns-app-carousel__kicker{position:relative;margin:0 0 18px;text-align:left;font-size:12px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:#ffffffad}.ns-guest-home .ns-app-carousel__stage{position:relative;z-index:1;display:flex;align-items:center;gap:28px}.ns-guest-home .ns-app-carousel__viewport{position:relative;flex:none;width:210px;aspect-ratio:1206 / 2622;border-radius:26px;overflow:hidden;border:2px solid rgba(255,255,255,.14);box-shadow:0 0 0 1px #00000073,inset 0 0 0 1px #ffffff1a,inset 0 20px 40px #00000040;background:#0f172a}html.ns-dark .ns-guest-home .ns-app-carousel__viewport{box-shadow:0 0 0 1px #00000073,inset 0 0 0 1px #ffffff1a,inset 0 20px 40px #00000040,0 0 60px -14px #ff7a5966,0 0 90px -20px #945ce873}.ns-guest-home .ns-app-carousel__track{position:relative;width:100%;height:100%;list-style:none;margin:0;padding:0}.ns-guest-home .ns-app-carousel__slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .5s ease}.ns-guest-home .ns-app-carousel__slide.is-active{opacity:1;visibility:visible}.ns-guest-home .ns-app-carousel__slide img{width:100%;height:100%;object-fit:cover;display:block}.ns-guest-home .ns-app-carousel__captions{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column}.ns-guest-home .ns-app-carousel__caption-track{position:relative;width:100%;min-height:122px;list-style:none;margin:0;padding:0}.ns-guest-home .ns-app-carousel__caption-slide{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;opacity:0;visibility:hidden;transform:translate(18px);transition:opacity .45s ease,transform .45s ease,visibility 0s}.ns-guest-home .ns-app-carousel__caption-slide.is-active{opacity:1;visibility:visible;transform:translate(0)}.ns-guest-home .ns-app-carousel__name{display:block;font-size:25px;font-weight:800;letter-spacing:.1px;color:#fff}.ns-guest-home .ns-app-carousel__desc{display:block;margin-top:8px;font-size:15px;font-weight:500;line-height:1.45;color:#ffffff9e}.ns-guest-home .ns-app-carousel__controls{position:relative;z-index:1;display:flex;align-items:center;gap:14px;margin-top:22px}.ns-guest-home .ns-app-carousel__dots{display:flex;align-items:center;gap:8px}.ns-guest-home .ns-app-carousel__dot{width:7px;height:7px;border-radius:999px;flex:none;padding:0;border:none;cursor:pointer;background:#ffffff47;transition:background .2s ease,transform .2s ease,width .2s ease}.ns-guest-home .ns-app-carousel__dot.is-active{width:16px;border-radius:4px;background:linear-gradient(90deg,#e05b35,#008751)}.ns-guest-home .ns-app-carousel__dot:focus-visible{outline:2px solid #fff;outline-offset:2px}.ns-guest-home .ns-app-carousel__arrow{width:30px;height:30px;border-radius:999px;flex:none;display:flex;align-items:center;justify-content:center;background:#ffffff14;border:1px solid rgba(255,255,255,.16);color:#ffffffd9;cursor:pointer;transition:background .15s ease,border-color .15s ease}.ns-guest-home .ns-app-carousel__arrow:hover{background:#ffffff2e;border-color:#ffffff4d}.ns-guest-home .ns-app-carousel__arrow:focus-visible{outline:2px solid #fff;outline-offset:2px}.ns-guest-home .ns-app-carousel__arrow svg{width:15px;height:15px}@media (prefers-reduced-motion: reduce){.ns-guest-home .ns-app-carousel__caption-slide{transition:opacity .3s ease,visibility 0s;transform:none}}@media (max-width: 560px){.ns-guest-home .ns-app-carousel__stage{flex-direction:column;align-items:center;gap:18px}.ns-guest-home .ns-app-carousel__viewport{width:180px}.ns-guest-home .ns-app-carousel__captions{align-items:center;text-align:center}.ns-guest-home .ns-app-carousel__caption-slide{align-items:center}.ns-guest-home .ns-app-carousel__controls{justify-content:center}.ns-guest-home .ns-app-carousel__kicker{text-align:center}}@media (min-width: 1600px){.ns-guest-home .ns-app-carousel{width:min(680px,calc(100% - 24px))}.ns-guest-home .ns-app-carousel__viewport{width:230px}}.ns-guest-home .brand-lockup{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:clamp(24px,21vh,999px) 20px 0;text-align:center}.ns-guest-home .brand-lockup-lg{height:clamp(64px,11vw,104px);width:auto;display:block;margin:0 auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.28))}html.ns-light .ns-guest-home .brand-lockup-lg{filter:drop-shadow(0 8px 20px rgba(15,23,42,.18))}.ns-guest-home .brand-wordmark-lg .n{color:var(--ns-logo-naija)}.ns-guest-home .brand-wordmark-lg .s{color:var(--ns-logo-s)}.ns-guest-home .brand-wordmark-lg .u{color:var(--ns-logo-ubway)}html.ns-dark .ns-guest-home .brand-wordmark-lg .u{color:#f8fafc}.ns-guest-home .brand-tagline{margin-top:clamp(14px,2.4vw,20px);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#ffffffd1}html.ns-light .ns-guest-home .brand-tagline{color:#0f172a8c}.ns-guest-home .brand-tagline--4color .n{color:var(--ns-logo-naija)}.ns-guest-home .brand-tagline--4color .s{color:var(--ns-logo-s)}.ns-guest-home .brand-tagline--4color .u{color:var(--ns-logo-ubway)}html.ns-dark .ns-guest-home .brand-tagline--4color .u{color:#f8fafc}.ns-guest-home .form-col .ns-guest-marquee-band{position:relative;align-self:stretch;width:100%;margin-top:clamp(20px,3vh,30px);border-top:1px solid var(--ns-divider);padding-top:clamp(16px,2.5vh,24px)}.ns-guest-home .slang-marquee{position:relative;z-index:2;flex:none;width:100%;overflow:hidden;padding:12px 0 4px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(90deg,transparent,#000 28%,#000 72%,transparent)}.ns-guest-home .slang-track{display:flex;align-items:stretch;gap:14px;width:max-content;animation:nsSlangMarqueeScroll 40s linear infinite}.ns-guest-home .slang-marquee:hover .slang-track{animation-play-state:paused}@keyframes nsSlangMarqueeScroll{0%{transform:translate(0)}to{transform:translate(-50%)}}.ns-guest-home .slang-card{flex:none;display:flex;flex-direction:column;gap:5px;width:clamp(190px,22vw,230px);padding:16px 20px;border-radius:18px;background:var(--ns-surface-raised);box-shadow:0 16px 32px -12px #0f172a1a;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}.ns-guest-home .slang-card:hover,.ns-guest-home .slang-card:focus-visible{transform:translateY(-2px);box-shadow:0 20px 40px -12px #0f172a24}.ns-guest-home .slang-card:focus-visible{outline:2px solid var(--ns-action);outline-offset:2px}.ns-guest-home .slang-term{font-size:15px;font-weight:700;color:var(--ns-logo-naija)}.ns-guest-home .slang-def{font-size:12px;line-height:1.4;color:var(--ns-text-body);white-space:normal}.ns-guest-home .card-wrap{position:relative;z-index:3;width:100%;display:flex;align-items:center;justify-content:center;padding:clamp(14px,3.5vh,32px) 20px}.ns-guest-home .signin-card{position:relative;width:100%;max-width:420px;border:1px solid var(--ns-card-border);border-radius:28px;padding:clamp(20px,3.5vh,32px) 26px;background:var(--ns-glass-specular),linear-gradient(160deg,color-mix(in srgb,var(--ns-surface-raised) 62%,transparent),color-mix(in srgb,var(--ns-surface) 72%,transparent) 55%);backdrop-filter:blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));-webkit-backdrop-filter:blur(var(--ns-glass-blur)) saturate(var(--ns-glass-saturate));box-shadow:var(--ns-card-shadow),inset 0 1px 0 var(--ns-glass-highlight)}.ns-guest-home .card-title{font-size:22px;font-weight:700;color:var(--ns-text-heading);text-align:center;margin:0 0 4px}.ns-guest-home .card-subtitle{font-size:14px;color:var(--ns-text-muted);text-align:center;margin:0 0 clamp(14px,3vh,28px)}.ns-guest-home .field{margin-bottom:clamp(10px,2.2vh,17px)}.ns-guest-home .field-inner{position:relative}.ns-guest-home .ns-guest-label{display:block;margin:0 0 6px 4px;font-size:12px;font-weight:700;color:var(--ns-text-muted);text-transform:uppercase;letter-spacing:.4px}.ns-guest-home .field input{width:100%;height:56px;border-radius:14px;padding:0 16px;background:var(--ns-surface-raised);border:1.5px solid var(--ns-divider);color:var(--ns-text-heading);font-family:Quicksand,sans-serif;font-size:15px;font-weight:500;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.ns-guest-home .field-inner input{padding-right:46px}.ns-guest-home .field input::placeholder{color:var(--ns-text-muted)}.ns-guest-home .field input:focus{border-color:var(--ns-action);box-shadow:0 0 0 4px var(--ns-action-subtle)}.ns-guest-home .field.has-error input{border-color:var(--ns-destructive);background:var(--ns-destructive-subtle)}.ns-guest-home .field-error{display:none;margin:6px 0 0 4px;font-size:12px;color:var(--ns-destructive);font-weight:600}.ns-guest-home .field.has-error .field-error{display:block}.ns-guest-home .pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:transparent;border-radius:10px;color:var(--ns-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center}.ns-guest-home .pw-toggle:hover{color:var(--ns-text-body);background:var(--ns-divider)}.ns-guest-home .pw-toggle:focus-visible{outline:2px solid var(--ns-action);outline-offset:2px}.ns-guest-home .pw-toggle svg{width:19px;height:19px}.ns-guest-home .utility-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 clamp(10px,2vh,16px)}.ns-guest-home .utility-row a{font-size:12px;color:var(--ns-text-muted);text-decoration:none;font-weight:600;white-space:nowrap}.ns-guest-home .utility-row a:hover{color:var(--ns-text-body)}.ns-guest-home .remember-me{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--ns-text-muted);cursor:pointer;user-select:none}.ns-guest-home .remember-me input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--ns-action);cursor:pointer;flex:none}.ns-guest-home .form-status{display:none;margin:0 0 16px;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:600;line-height:1.5}.ns-guest-home .form-status.is-error{display:block;background:var(--ns-destructive-subtle);color:var(--ns-destructive)}.ns-guest-home .form-status.is-info{display:block;background:var(--ns-action-subtle);color:var(--ns-action)}.ns-guest-home .form-status.is-warning{display:block;background:#d99b1b29;color:#b7791f}html.ns-dark .ns-guest-home .form-status.is-warning{background:#f5be4229;color:#f5be42}.ns-guest-home .submit-btn{width:100%;height:56px;border-radius:14px;border:none;cursor:pointer;background:var(--ns-logo-s);color:var(--ns-on-action);font-family:Quicksand,sans-serif;font-size:15px;font-weight:700;letter-spacing:.5px;box-shadow:0 6px 20px color-mix(in srgb,var(--ns-logo-s) 25%,transparent);transition:filter .15s ease,transform .15s ease,box-shadow .15s ease,opacity .15s ease}.ns-guest-home .submit-btn:hover{filter:brightness(.93)}.ns-guest-home .submit-btn:active{transform:scale(.99);filter:brightness(.87)}.ns-guest-home .submit-btn[disabled]{opacity:.7;cursor:not-allowed;transform:none;filter:none}@media (prefers-reduced-motion: no-preference){.ns-guest-home .submit-btn:hover{transform:translateY(-1px);box-shadow:0 10px 26px color-mix(in srgb,var(--ns-logo-s) 32%,transparent)}.ns-guest-home .submit-btn:active{transform:translateY(0) scale(.98);box-shadow:0 4px 14px color-mix(in srgb,var(--ns-logo-s) 22%,transparent)}}.ns-guest-home .divider-row{display:flex;align-items:center;gap:14px;margin:clamp(16px,4vh,30px) 0 clamp(10px,2vh,16px)}.ns-guest-home .divider-row .line{flex:1;height:1px;background:var(--ns-divider)}.ns-guest-home .divider-row span{font-size:11px;font-weight:700;letter-spacing:1.2px;color:var(--ns-text-muted);text-transform:uppercase}.ns-guest-home .ns-social-toggle{width:100%;border:none;background:transparent;padding:0;margin-top:clamp(16px,4vh,30px);cursor:pointer;font-family:Quicksand,sans-serif}.ns-guest-home .ns-social-toggle:hover span:not(.line){color:var(--ns-text-body)}.ns-guest-home .ns-social-toggle:focus-visible{outline:2px solid var(--ns-action);outline-offset:3px;border-radius:6px}.ns-guest-home .ns-social-toggle__chevron{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ns-text-muted);transition:transform .2s ease}.ns-guest-home .ns-social-toggle__chevron{transform:rotate(90deg)}.ns-guest-home .ns-social-toggle[aria-expanded=true] .ns-social-toggle__chevron{transform:rotate(-90deg)}.ns-guest-home .ns-social-collapse{max-height:0;overflow:hidden;transition:max-height .32s cubic-bezier(.4,0,.2,1)}@media (prefers-reduced-motion: reduce){.ns-guest-home .ns-social-collapse,.ns-guest-home .ns-social-toggle__chevron{transition:none}}.ns-guest-home .social-row{display:flex;flex-direction:column;gap:10px}.ns-guest-home .social-pill{width:100%;height:48px;border-radius:12px;background:transparent;border:1px solid var(--ns-divider);display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;flex:none;text-decoration:none;padding:0 16px}.ns-guest-home .social-pill svg{width:17px;height:17px;flex:none}.ns-guest-home .social-pill span{font-size:14px;font-weight:600;color:var(--ns-text-heading);font-family:Quicksand,sans-serif}.ns-guest-home .social-pill:hover{background:var(--ns-surface-raised);border-color:var(--ns-text-faint)}.ns-guest-home .social-pill:focus-visible{outline:2px solid var(--ns-action);outline-offset:2px}@media (prefers-reduced-motion: no-preference){.ns-guest-home .social-pill:not([aria-disabled=true]):hover{transform:translateY(-1px);box-shadow:0 6px 16px #00000024}.ns-guest-home .social-pill:not([aria-disabled=true]):active{transform:translateY(0) scale(.99);box-shadow:none}}.ns-guest-home .social-pill[aria-disabled=true]{cursor:not-allowed;opacity:.45}.ns-guest-home .social-pill[aria-disabled=true]:hover{background:transparent;border-color:var(--ns-divider)}.ns-guest-home .app-badges-block{width:100%;max-width:420px;margin:clamp(18px,3.5vh,28px) auto 0;text-align:center}.ns-guest-home .app-badges-heading{margin:0 0 10px;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--ns-text-muted)}.ns-guest-home .app-badges-row{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.ns-guest-home .app-badges-row img{display:block;height:38px;width:auto}.ns-guest-home .signup-row{text-align:center;margin-top:clamp(14px,3vh,24px);font-size:14px;color:var(--ns-text-muted)}.ns-guest-home .signup-row a{color:var(--ns-logo-naija);font-weight:700;text-decoration:none}.ns-guest-home .signup-row a:hover{text-decoration:underline}.ns-guest-home .legal-footer{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:clamp(14px,3vh,30px);flex-wrap:wrap}.ns-guest-home .legal-footer a{font-size:12px;color:var(--ns-text-muted);text-decoration:none}.ns-guest-home .legal-footer a:hover{color:var(--ns-text-body)}.ns-guest-home .legal-footer .dot{color:var(--ns-text-faint)}.ns-guest-home .guest-copyright{text-align:center;font-size:11px;color:var(--ns-text-faint);margin-top:6px}.ns-guest-home .train-top{animation:nsTrainTopMove 7s cubic-bezier(.65,0,.35,1) infinite}.ns-guest-home .train-bottom{animation:nsTrainBottomMove 9s cubic-bezier(.65,0,.35,1) infinite}@keyframes nsTrainTopMove{0%{transform:translate(1500px)}36%{transform:translate(870px)}40%{transform:translate(790px)}56%{transform:translate(520px)}60%{transform:translate(440px)}76%{transform:translate(150px)}80%{transform:translate(70px)}to{transform:translate(-260px)}}@keyframes nsTrainBottomMove{0%{transform:translate(-260px)}24%{transform:translate(240px)}28%{transform:translate(320px)}54%{transform:translate(600px)}58%{transform:translate(680px)}80%{transform:translate(960px)}84%{transform:translate(1040px)}to{transform:translate(1500px)}}.ns-guest-home .station-dot{animation:nsStationFlash 2.4s ease-in-out infinite}.ns-guest-home .station-dot.d2{animation-delay:.7s}.ns-guest-home .station-dot.d3{animation-delay:1.5s}@keyframes nsStationFlash{0%,to{opacity:.35}50%{opacity:1}}.ns-guest-home .route-glow{stroke-dasharray:10 16;opacity:.55;animation:nsRouteFlow 2.6s linear infinite}@keyframes nsRouteFlow{to{stroke-dashoffset:-52}}.ns-guest-home .danfo{animation:nsDanfoMove 16s linear infinite}.ns-guest-home .okada{animation:nsOkadaMove 9s linear infinite}@keyframes nsDanfoMove{0%{transform:translate(-140px)}to{transform:translate(1500px)}}@keyframes nsOkadaMove{0%{transform:translate(-100px)}to{transform:translate(1560px)}}@media (max-width: 420px){.ns-guest-home .signin-card{padding:24px 18px;border-radius:20px}.ns-guest-home .social-row{gap:8px}.ns-guest-home .utility-row{flex-wrap:wrap;justify-content:flex-start}}@media (max-width: 760px){.ns-guest-home .signin-card{padding:26px 20px;border-radius:22px}}@media (max-width: 900px){.ns-guest-home .login-split{flex-direction:column-reverse}.ns-guest-home .form-col,.ns-guest-home .brand-col{flex:none;width:100%;min-height:auto}.ns-guest-home .brand-col{padding:36px 20px 28px}.ns-guest-home .brand-lockup{flex:none}.ns-guest-home .form-col{padding:32px 20px 12px}}@media (min-width: 1600px){.ns-guest-home .brand-wordmark-lg{font-size:64px}.ns-guest-home .signin-card{max-width:460px}}

/* ==========================================================================
   Premium guest homepage (page-templates/guest-homepage.php)
   Loaded after guest-homepage.css, only on the logged-out front page.

   Light mode is the default. Dark mode applies with the site toggle
   (html.ns-dark) or the OS setting unless the visitor chose html.ns-light.
   Surfaces, text and action colours come from the site's --ns-* tokens,
   which already switch with the theme; --gh-* covers what they don't
   (the live wall and a few brand constants).
   ========================================================================== */

.ns-gh {
	/* light */
	--gh-wall: #EEF0F8;
	--gh-wall-card: #FFFFFF;
	--gh-wall-line: #DCE3EC;
	--gh-wall-text: #0F172A;
	--gh-wall-muted: #5D6980;
	--gh-glow1: #D9CDEF; --gh-glow1-o: 0.9;
	--gh-glow2: #F8CBA6; --gh-glow2-o: 0.5;
	--gh-glow3-o: 0.12;
	--gh-bub-in: #ECF0F5;
	--gh-bub-out: #223049; --gh-bub-out-text: #ECF1F8;
	--gh-reel-a: #3B2F86; --gh-reel-b: #1B1656;
	--gh-card-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	--gh-google-bg: #FFFFFF; --gh-google-border: #747775; --gh-google-text: #1F1F1F; --gh-google-hover: #F8F9FA;
	--gh-cta-glow: rgba(12, 110, 74, 0.28);
	--gh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gh-live: #0C6E4A;
	--gh-sand: #7A5A1E; --gh-sand-bg: #F3EAD7;
}
html.ns-dark .ns-gh {
	--gh-wall: #0F172A;
	--gh-wall-card: #131A2B;
	--gh-wall-line: #2B3752;
	--gh-wall-text: #ECF1F8;
	--gh-wall-muted: #94A1B8;
	--gh-glow1: #1A0E4E; --gh-glow1-o: 0.95;
	--gh-glow2: #E8C56B; --gh-glow2-o: 0.16;
	--gh-glow3-o: 0.14;
	--gh-bub-in: #2B3752;
	--gh-bub-out: #223049; --gh-bub-out-text: #ECF1F8;
	--gh-reel-a: #241A5C; --gh-reel-b: #0A0F1C;
	--gh-card-shadow: none;
	--gh-sand: #D8B878; --gh-sand-bg: rgba(216, 184, 120, 0.14);
	--gh-google-bg: #131314; --gh-google-border: #8E918F; --gh-google-text: #E3E3E3; --gh-google-hover: #1E1F20;
	--gh-cta-glow: rgba(108, 196, 164, 0.26);
	--gh-live: #6CC4A4;
}
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .ns-gh {
		--gh-wall: #0F172A;
		--gh-wall-card: #131A2B;
		--gh-wall-line: #2B3752;
		--gh-wall-text: #ECF1F8;
		--gh-wall-muted: #94A1B8;
		--gh-glow1: #1A0E4E; --gh-glow1-o: 0.95;
		--gh-glow2: #E8C56B; --gh-glow2-o: 0.16;
		--gh-glow3-o: 0.14;
		--gh-bub-in: #2B3752;
		--gh-bub-out: #223049; --gh-bub-out-text: #ECF1F8;
		--gh-reel-a: #241A5C; --gh-reel-b: #0A0F1C;
		--gh-card-shadow: none;
		--gh-sand: #D8B878; --gh-sand-bg: rgba(216, 184, 120, 0.14);
		--gh-google-bg: #131314; --gh-google-border: #8E918F; --gh-google-text: #E3E3E3; --gh-google-hover: #1E1F20;
		--gh-cta-glow: rgba(108, 196, 164, 0.26);
		--gh-live: #6CC4A4;
	}
}

/* ---------- Page ---------- */
.ns-guest-home.ns-gh { background: var(--ns-background) !important; color: var(--ns-text-heading); min-width: 0; }
.ns-gh *, .ns-gh *::before, .ns-gh *::after { box-sizing: border-box; }
.ns-gh .ns-guest-theme-toggle { z-index: 20; }

/* ---------- 1. Hero ---------- */
.ns-gh .gh-hero { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); min-height: 100vh; }
.ns-gh .gh-auth {
	display: flex; flex-direction: column; padding: 48px clamp(24px, 4vw, 52px) 32px;
	background: var(--ns-surface); border-right: 1px solid var(--ns-divider); min-width: 0;
}
.ns-gh .gh-lockup { display: flex; justify-content: center; align-self: center; line-height: 0; margin-bottom: 36px; }
.ns-gh .gh-lockup img { height: 44px; width: auto; max-width: 100%; display: block; }
.ns-gh .gh-lockup__dark { display: none !important; }
html.ns-dark .ns-gh .gh-lockup__light { display: none !important; }
html.ns-dark .ns-gh .gh-lockup__dark { display: block !important; }
@media (prefers-color-scheme: dark) {
	html:not(.ns-light) .ns-gh .gh-lockup__light { display: none !important; }
	html:not(.ns-light) .ns-gh .gh-lockup__dark { display: block !important; }
}
.ns-gh .gh-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ns-text-muted); }
.ns-gh .gh-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gh-live); animation: gh-pulse 2s infinite; }
@keyframes gh-pulse { 0% { box-shadow: 0 0 0 0 var(--gh-cta-glow); } 70% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.ns-gh .gh-title { margin: 0 0 10px; font-family: var(--ns-font-bold); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -0.02em; color: var(--ns-text-heading); }
.ns-gh .gh-sub { margin: 0 0 26px; font-size: 16px; line-height: 23px; color: var(--ns-text-muted); }

.ns-gh .gh-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 18px; border-radius: var(--ns-radius-full); background: var(--ns-surface-raised); }
.ns-gh .gh-seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; height: 40px; border-radius: var(--ns-radius-full); font: inherit; font-size: 14px; font-weight: 700; color: var(--ns-text-muted); cursor: pointer; transition: color 260ms var(--gh-ease); }
.ns-gh .gh-seg button[aria-selected="true"] { color: var(--ns-text-heading); }
.ns-gh .gh-seg button:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }
.ns-gh .gh-seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--ns-radius-full); background: var(--ns-surface); box-shadow: var(--ns-shadow-card); transition: transform 260ms var(--gh-ease); }
html.ns-dark .ns-gh .gh-seg__thumb { box-shadow: inset 0 0 0 1px var(--ns-divider); }
.ns-gh .gh-seg.is-up .gh-seg__thumb { transform: translateX(100%); }

.ns-gh .gh-google {
	display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: var(--ns-radius-full);
	background: var(--gh-google-bg); border: 1px solid var(--gh-google-border); color: var(--gh-google-text) !important;
	font-weight: 700; font-size: 15px; text-decoration: none !important; transition: background-color 140ms, transform 140ms var(--gh-ease);
}
.ns-gh .gh-google:hover { background: var(--gh-google-hover); }
.ns-gh .gh-google:active { transform: scale(0.98); }
.ns-gh .gh-google svg { width: 18px; height: 18px; }
.ns-gh .gh-google:focus-visible, .ns-gh .gh-social a:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 2px; }
.ns-gh .gh-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ns-gh .gh-social a {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--ns-radius-full);
	border: 1px solid var(--ns-divider); background: var(--ns-surface); color: var(--ns-text-heading) !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color 140ms, transform 140ms var(--gh-ease);
}
.ns-gh .gh-social a:hover { border-color: var(--ns-text-muted); transform: translateY(-1px); }
.ns-gh .gh-social svg { width: 16px; height: 16px; }
.ns-gh .gh-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ns-text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.ns-gh .gh-or::before, .ns-gh .gh-or::after { content: ""; flex: 1; height: 1px; background: var(--ns-divider); }

/* Floating-label fields */
.ns-gh .gh-field { position: relative; margin: 0 0 10px !important; }
.ns-gh .gh-field .field-inner { position: relative; }
.ns-gh .gh-field input[type="text"], .ns-gh .gh-field input[type="password"] {
	width: 100%; height: 56px; margin: 0; padding: 22px 48px 6px 16px !important;
	border-radius: var(--ns-radius-md) !important; border: 1.5px solid var(--ns-divider) !important; background: var(--ns-surface-raised) !important;
	color: var(--ns-text-heading) !important; font: inherit; font-size: 15px !important; font-weight: 600; outline: none; box-shadow: none !important;
	transition: border-color 260ms var(--gh-ease), box-shadow 260ms var(--gh-ease);
}
.ns-gh .gh-field input:focus { border-color: var(--ns-action) !important; box-shadow: 0 0 0 3px var(--ns-action-subtle) !important; }
.ns-gh .gh-label {
	position: absolute; left: 17px; top: 18px; margin: 0 !important; font-size: 15px !important; line-height: 20px; font-weight: 500 !important;
	letter-spacing: 0 !important; text-transform: none !important; color: var(--ns-text-muted) !important; pointer-events: none; transform-origin: left top;
	transition: transform 260ms var(--gh-ease), color 260ms var(--gh-ease);
}
.ns-gh .gh-field input:focus + .gh-label, .ns-gh .gh-field input:not(:placeholder-shown) + .gh-label { transform: translateY(-11px) scale(0.75); }
.ns-gh .gh-field input:focus + .gh-label { color: var(--ns-action) !important; }
.ns-gh .gh-field .pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ns-text-muted); cursor: pointer; padding: 0; }
.ns-gh .gh-field .pw-toggle svg { width: 18px; height: 18px; }
.ns-gh .gh-field .field-error { display: none; margin-top: 6px; font-size: 12px; color: var(--ns-destructive); }
.ns-gh .gh-field.has-error .field-error { display: block; }
.ns-gh .gh-field.has-error input { border-color: var(--ns-destructive) !important; }
.ns-gh .form-status:empty { display: none; }
.ns-gh .form-status { margin: 0 0 12px; border-radius: var(--ns-radius-md); font-size: 13px; }

.ns-gh .gh-utility { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 16px; font-size: 13px; color: var(--ns-text-muted); }
.ns-gh .gh-utility a { color: var(--ns-action); font-weight: 700; text-decoration: none; }
.ns-gh .gh-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ns-gh .gh-remember input { width: 18px; height: 18px; accent-color: var(--ns-action); margin: 0; }

.ns-gh .gh-cta {
	position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px;
	border: 0; border-radius: var(--ns-radius-full); background: var(--ns-action); color: var(--ns-on-action) !important;
	font: inherit; font-family: var(--ns-font-bold); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none !important;
	box-shadow: 0 10px 30px var(--gh-cta-glow); transition: transform 140ms var(--gh-ease), box-shadow 260ms;
}
.ns-gh .gh-cta::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 70%); animation: gh-shine 3.6s var(--gh-ease) infinite 1.2s; }
@keyframes gh-shine { 35%, 100% { transform: translateX(120%); } }
.ns-gh .gh-cta:hover { box-shadow: 0 14px 36px var(--gh-cta-glow); }
.ns-gh .gh-cta:active { transform: scale(0.98); }
.ns-gh .gh-cta:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 3px; }

.ns-gh .gh-upsteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ns-gh .gh-upsteps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ns-text-body); }
.ns-gh .gh-upsteps span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ns-selected-surface); color: var(--ns-action); font-weight: 700; font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--ns-action); }
.ns-gh .gh-free { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ns-text-muted); }

.ns-gh .gh-proof { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 13px; line-height: 18px; color: var(--ns-text-muted); }
.ns-gh .gh-proof b { color: var(--ns-text-heading); }
.ns-gh .gh-faces { display: flex; flex: none; }
.ns-gh .gh-faces i { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--ns-surface); background: var(--ns-surface-raised); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ns-text-heading); }
.ns-gh .gh-faces i:first-child { margin-left: 0; }
.ns-gh .gh-fine { margin: auto 0 0; padding-top: 24px; font-size: 12px; line-height: 17px; color: var(--ns-text-muted); }
.ns-gh .gh-fine a { color: var(--ns-text-body); text-decoration: underline; text-underline-offset: 2px; }

/* Live wall */
.ns-gh .gh-wall { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 56px clamp(24px, 4vw, 56px) 40px; background: var(--gh-wall); color: var(--gh-wall-text); min-width: 0; }
.ns-gh .gh-wall > * { position: relative; }
.ns-gh .gh-glow { position: absolute !important; inset: 0; pointer-events: none; }
.ns-gh .gh-glow span { position: absolute; border-radius: 50%; filter: blur(64px); animation: gh-drift 18s ease-in-out infinite alternate; }
.ns-gh .gh-glow span:nth-child(1) { width: 60%; height: 50%; left: -10%; top: -10%; background: var(--gh-glow1); opacity: var(--gh-glow1-o); }
.ns-gh .gh-glow span:nth-child(2) { width: 45%; height: 40%; right: -10%; top: 20%; background: var(--gh-glow2); opacity: var(--gh-glow2-o); animation-duration: 22s; }
.ns-gh .gh-glow span:nth-child(3) { width: 50%; height: 40%; left: 20%; bottom: -10%; background: #6CC4A4; opacity: var(--gh-glow3-o); animation-duration: 26s; }
@keyframes gh-drift { to { transform: translate(8%, 6%) scale(1.1); } }
.ns-gh .gh-wall__title { margin: 0 0 6px; font-family: var(--ns-font-bold); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: var(--gh-wall-text); }
.ns-gh .gh-wall__sub { margin: 0 0 22px; font-size: 15px; color: var(--gh-wall-muted); }
.ns-gh .gh-ticker { overflow: hidden; margin-bottom: 22px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ns-gh .gh-ticker__track { display: flex; gap: 8px; width: max-content; animation: gh-tick 34s linear infinite; }
.ns-gh .gh-ticker:hover .gh-ticker__track { animation-play-state: paused; }
@keyframes gh-tick { to { transform: translateX(-50%); } }
.ns-gh .gh-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--ns-radius-full); background: var(--gh-wall-card); border: 1px solid var(--gh-wall-line); font-size: 13px; font-weight: 700; color: var(--gh-wall-text); white-space: nowrap; }
.ns-gh .gh-tag em { font-style: normal; font-weight: 600; color: var(--gh-wall-muted); }

.ns-gh .gh-bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: auto; gap: 14px; flex: 1; align-content: start; }
.ns-gh .gh-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--ns-radius-lg); background: var(--gh-wall-card); border: 1px solid var(--gh-wall-line); box-shadow: var(--gh-card-shadow); color: var(--gh-wall-text); animation: gh-float 7s ease-in-out infinite; }
.ns-gh .gh-card:nth-child(2) { animation-delay: -2.3s; }
.ns-gh .gh-card:nth-child(3) { animation-delay: -4.6s; }
@keyframes gh-float { 50% { transform: translateY(-6px); } }
.ns-gh .gh-kicker { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gh-wall-muted); }
.ns-gh .gh-who { display: flex; align-items: center; gap: 10px; }
.ns-gh .gh-who b { font-size: 15px; }
.ns-gh .gh-in { display: block; font-size: 12px; color: var(--gh-wall-muted); }
.ns-gh .gh-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gh-wall-line); font-weight: 700; color: var(--gh-wall-text); }
.ns-gh .gh-sigbadge { margin-left: 6px; padding: 1px 7px; border-radius: var(--ns-radius-full); border: 1px solid currentColor; color: var(--ns-premium); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
.ns-gh .gh-post__title { margin: 14px 0 10px; font-size: 17px; line-height: 23px; font-weight: 700; color: var(--gh-wall-text); }
.ns-gh .gh-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 44px; font-size: 12px; color: var(--gh-wall-muted); }
.ns-gh .gh-locked {
	position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
	background: linear-gradient(to top, var(--gh-wall-card) 55%, rgba(0, 0, 0, 0)); color: var(--ns-action) !important; font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.ns-gh .gh-locked:hover { text-decoration: underline !important; }
.ns-gh .gh-card--reel { grid-row: span 2; min-height: 340px; padding: 0; display: block; background: linear-gradient(160deg, var(--gh-reel-a), var(--gh-reel-b) 75%); border-color: transparent; text-decoration: none !important; color: #ECF1F8; }
.ns-gh .gh-card--reel .gh-kicker { color: rgba(236, 241, 248, 0.7); margin-bottom: 6px; }
.ns-gh .gh-play { position: absolute; inset: 0; display: grid; place-items: center; }
.ns-gh .gh-play svg { width: 28px; height: 28px; padding: 18px; box-sizing: content-box; border-radius: 50%; background: rgba(236, 241, 248, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #ECF1F8; transition: transform 260ms var(--gh-ease); }
.ns-gh .gh-card--reel:hover .gh-play svg { transform: scale(1.08); }
.ns-gh .gh-reel__cap { position: absolute; left: 18px; right: 18px; bottom: 20px; }
.ns-gh .gh-reel__cap b { display: block; font-size: 15px; line-height: 21px; color: #ECF1F8; }
.ns-gh .gh-reel__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: #6CC4A4; animation: gh-prog 6s linear infinite; }
@keyframes gh-prog { from { width: 0; } to { width: 100%; } }
.ns-gh .gh-card--reel:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 3px; }
.ns-gh .gh-bub { max-width: 85%; margin: 0 0 6px; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 18px; background: var(--gh-bub-in); color: var(--gh-wall-text); }
.ns-gh .gh-bub--out { margin-left: auto; border-bottom-right-radius: 4px; background: var(--gh-bub-out); color: var(--gh-bub-out-text); }
.ns-gh .gh-typing { display: flex; gap: 4px; width: max-content; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--gh-bub-in); }
.ns-gh .gh-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gh-wall-muted); animation: gh-dot 1.2s infinite; }
.ns-gh .gh-typing i:nth-child(2) { animation-delay: 0.15s; }
.ns-gh .gh-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes gh-dot { 0%, 60%, 100% { opacity: 0.4; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.ns-gh .gh-wall .gh-marquee { position: relative; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--gh-wall-line); min-width: 0; }
.ns-gh .gh-marquee__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gh-wall-muted); }
.ns-gh .gh-marquee__label a { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ns-action); text-decoration: none; }
.ns-gh .gh-marquee__label a:hover { text-decoration: underline; }
.ns-gh .gh-wall .slang-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ns-gh .gh-wall .slang-card { width: 210px; background: var(--gh-wall-card); border: 1px solid var(--gh-wall-line); box-shadow: var(--gh-card-shadow); }
.ns-gh .gh-wall .slang-def { color: var(--gh-wall-muted); }
/* Moments reel video */
.ns-gh .gh-card--reel { min-height: 420px; }
.ns-gh .gh-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.ns-gh .gh-reel__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 10, 20, 0.88) 0%, rgba(6, 10, 20, 0.35) 34%, rgba(6, 10, 20, 0) 55%); pointer-events: none; }
.ns-gh .gh-card--reel.has-video .gh-play { transition: opacity 300ms var(--gh-ease); }
.ns-gh .gh-card--reel.is-playing .gh-play { opacity: 0; }
.ns-gh .gh-card--reel.is-playing:hover .gh-play { opacity: 1; }
.ns-gh .gh-card--reel.is-auto .gh-reel__bar { animation: none; width: 0; }
.ns-gh .gh-reel__live { display: inline-flex; align-items: center; gap: 6px; color: #F5B942; }
.ns-gh .gh-reel__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F5B942; }
.ns-gh .gh-card--reel .gh-reel__cap { z-index: 1; }
.ns-gh .gh-bento > .gh-card--reel { grid-column: 2; grid-row: 1 / span 2; }
/* Groups card (fallback when there is no clean discussion) */
.ns-gh .gh-kicker__sand { padding: 2px 8px; border-radius: var(--ns-radius-full); background: var(--gh-sand-bg); color: var(--gh-sand); letter-spacing: 0.08em; }
.ns-gh .gh-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ns-gh .gh-groups li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--ns-radius-md); border: 1px solid var(--gh-wall-line); }
.ns-gh .gh-groups li > div { flex: 1; min-width: 0; }
.ns-gh .gh-groups b { display: block; font-size: 15px; color: var(--gh-wall-text); }
.ns-gh .gh-groups .gh-in { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-gh .gh-av--sq { border-radius: 12px; width: 42px; height: 42px; }
.ns-gh .gh-join { flex: none; padding: 7px 14px; border-radius: var(--ns-radius-full); background: var(--ns-action); color: var(--ns-on-action, #fff) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.ns-gh .gh-join:hover { filter: brightness(1.06); }
.ns-gh .gh-groups__note { margin: 12px 0 0; font-size: 12px; color: var(--gh-wall-muted); }

/* ---------- 2. Features ---------- */
.ns-gh .gh-band { max-width: 1200px; margin: 0 auto; padding: 88px 48px; }
.ns-gh .gh-h2 { margin: 0 0 10px; text-align: center; font-family: var(--ns-font-bold); font-weight: 700; font-size: 34px; line-height: 40px; letter-spacing: -0.02em; color: var(--ns-text-heading); }
.ns-gh .gh-lead { max-width: 560px; margin: 0 auto 40px; text-align: center; font-size: 16px; line-height: 23px; color: var(--ns-text-muted); }
.ns-gh .gh-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ns-gh .gh-f { padding: 22px; border-radius: var(--ns-radius-lg); background: var(--ns-surface); box-shadow: var(--ns-shadow-card); border: 1px solid var(--ns-card-border); transition: transform 260ms var(--gh-ease), box-shadow 260ms var(--gh-ease); }
.ns-gh .gh-f:hover { transform: translateY(-4px); box-shadow: var(--ns-shadow-raised); }
.ns-gh .gh-f--wide { grid-column: span 2; }
.ns-gh .gh-ic { width: 44px; height: 44px; margin-bottom: 14px; border-radius: var(--ns-radius-md); display: grid; place-items: center; background: var(--ns-surface-raised); color: var(--ns-text-heading); }
.ns-gh .gh-f h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; color: var(--ns-text-heading); }
.ns-gh .gh-f p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ns-text-muted); }

/* ---------- 3. Naija Signature (premium tokens, both modes) ---------- */
.ns-gh .gh-sig {
	position: relative; overflow: hidden; max-width: 1104px; margin: 0 auto; padding: 56px; border-radius: 24px;
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
	background: var(--ns-premium-surface); color: var(--ns-premium-heading); border: 1px solid var(--ns-premium-border);
}
.ns-gh .gh-sig::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 90% 0%, rgba(232, 197, 107, 0.22), transparent 60%); }
.ns-gh .gh-sig > * { position: relative; }
.ns-gh .gh-sig__pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 6px 12px; border-radius: var(--ns-radius-full); border: 1px solid var(--ns-premium-border); color: var(--ns-premium-on-surface); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ns-gh .gh-sig h2 { margin: 0 0 12px; font-family: var(--ns-font-bold); font-weight: 700; font-size: 36px; line-height: 42px; letter-spacing: -0.02em; color: var(--ns-premium-heading); }
.ns-gh .gh-sig__lead { margin: 0 0 26px; font-size: 16px; line-height: 24px; color: var(--ns-premium-body); }
.ns-gh .gh-sig__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ns-gh .gh-gold { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: var(--ns-radius-full); background: var(--ns-premium-cta-bg); color: var(--ns-premium-cta-fg) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: 0 12px 34px rgba(232, 197, 107, 0.28); transition: transform 140ms var(--gh-ease); }
.ns-gh .gh-gold:hover { transform: translateY(-1px); }
.ns-gh .gh-ghost { display: inline-flex; align-items: center; height: 50px; padding: 0 20px; border-radius: var(--ns-radius-full); border: 1px solid rgba(255, 255, 255, 0.28); color: #FFFFFF !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.ns-gh .gh-ghost:hover { border-color: rgba(255, 255, 255, 0.55); }
.ns-gh .gh-gold:focus-visible, .ns-gh .gh-ghost:focus-visible { outline: 2px solid var(--ns-premium-on-surface); outline-offset: 3px; }
.ns-gh .gh-sig__small { margin: 14px 0 0; font-size: 12px; color: var(--ns-premium-body); opacity: 0.8; }
.ns-gh .gh-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ns-gh .gh-perks li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--ns-radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(232, 197, 107, 0.18); transition: transform 260ms var(--gh-ease), background-color 260ms; }
.ns-gh .gh-perks li:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.09); }
.ns-gh .gh-perks__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(232, 197, 107, 0.14); color: var(--ns-premium-on-surface); }
.ns-gh .gh-perks b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ns-premium-heading); }
.ns-gh .gh-perks span { font-size: 13px; line-height: 18px; color: var(--ns-premium-body); }

/* ---------- 4. App band, marquee, legal ---------- */
.ns-gh .gh-band--app { padding-bottom: 32px; }
.ns-gh .gh-app { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px 48px; border-radius: 24px; background: var(--ns-surface); border: 1px solid var(--ns-card-border); box-shadow: var(--ns-shadow-card); }
.ns-gh .gh-app h2 { margin: 0 0 6px; font-family: var(--ns-font-bold); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--ns-text-heading); }
.ns-gh .gh-app p { margin: 0 0 18px; color: var(--ns-text-muted); }
.ns-gh .gh-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ns-gh .gh-badge { position: relative; display: inline-flex; line-height: 0; border-radius: 9px; transition: transform 140ms var(--gh-ease), box-shadow 140ms var(--gh-ease); }
.ns-gh .gh-badge img { height: 48px; width: auto; display: block; }
.ns-gh .gh-badge:hover { transform: translateY(-1px); }
.ns-gh .gh-badge:focus-visible { outline: 2px solid var(--ns-action); outline-offset: 3px; }
/* Keep the black badges defined on dark grounds */
html.ns-dark .ns-gh .gh-badge { box-shadow: 0 0 0 1px rgba(236, 241, 248, 0.22); }
@media (prefers-color-scheme: dark) { html:not(.ns-light) .ns-gh .gh-badge { box-shadow: 0 0 0 1px rgba(236, 241, 248, 0.22); } }
.ns-gh .gh-badge.is-soon { cursor: default; }
.ns-gh .gh-badge.is-soon:hover { transform: none; }
.ns-gh .gh-badges:has(.is-soon) { padding-top: 18px; }
.ns-gh .gh-badge__soon { position: absolute; bottom: calc(100% + 4px); right: 0; padding: 2px 7px; border-radius: var(--ns-radius-full); background: var(--gh-sand-bg); color: var(--gh-sand); border: 1px solid currentColor; font-size: 9px; line-height: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
html:not(.ns-dark) .ns-gh .gh-badge__soon { background: #FBF4E6; }
.ns-gh .gh-badges--sm .gh-badge img { height: 36px; }
.ns-gh .gh-badges--sm .gh-badge { border-radius: 7px; }
.ns-gh .gh-getapp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ns-divider); }
.ns-gh .gh-getapp > span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ns-text-muted); }
.ns-gh .gh-qr { margin: 0; text-align: center; }
.ns-gh .gh-qr svg { width: 132px; height: 132px; padding: 12px; border-radius: 16px; background: #FFFFFF; color: #0F172A; display: block; }
.ns-gh .gh-qr figcaption { margin-top: 8px; font-size: 12px; color: var(--ns-text-muted); }
.ns-gh .gh-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 28px; font-size: 13px; color: var(--ns-text-muted); }
.ns-gh .gh-legal a { color: var(--ns-text-muted); text-decoration: none; }
.ns-gh .gh-legal a:hover { color: var(--ns-text-heading); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ns-gh .gh-bento { grid-template-columns: 1fr 1fr; }
	.ns-gh .gh-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ns-gh .gh-sig { grid-template-columns: 1fr; margin: 0 24px; padding: 40px; }
}
@media (max-width: 900px) {
	.ns-gh .gh-hero { grid-template-columns: 1fr; min-height: 0; }
	.ns-gh .gh-auth { border-right: 0; border-bottom: 1px solid var(--ns-divider); padding: 40px 24px 28px; }
	.ns-gh .gh-wall { padding: 40px 20px 32px; }
	.ns-gh .gh-band { padding: 56px 20px; }
	.ns-gh .gh-app { grid-template-columns: 1fr; padding: 28px 24px; }
	.ns-gh .gh-qr { display: none; }
}
@media (max-width: 600px) {
	.ns-gh .gh-title { font-size: 32px; line-height: 38px; }
	.ns-gh .gh-bento { grid-template-columns: 1fr; }
	.ns-gh .gh-bento > .gh-card--reel { grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
	.ns-gh .gh-lockup img { height: 38px; }
	.ns-gh .gh-feat { grid-template-columns: 1fr; }
	.ns-gh .gh-f--wide { grid-column: auto; }
	.ns-gh .gh-sig { margin: 0 16px; padding: 28px 22px; }
	.ns-gh .gh-sig h2 { font-size: 28px; line-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-gh *, .ns-gh *::before, .ns-gh *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* ==================================================================
   2026-09-30: Live pulse, In the news, Groups buzzing (fills the wall
   on tall screens with real, live content)
   ================================================================== */

/* Live pulse: real numbers, one slim line */
.ns-gh .gh-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 16px 0 18px; font-size: 13px; line-height: 20px; color: var(--gh-wall-muted); }
.ns-gh .gh-pulse b { color: var(--gh-wall-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ns-gh .gh-pulse__live { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px; border-radius: var(--ns-radius-full); background: var(--gh-wall-card); border: 1px solid var(--gh-wall-line); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gh-wall-text); }
.ns-gh .gh-pulse__live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #6CC4A4; }
.ns-gh .gh-pulse__live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #6CC4A4; opacity: 0; animation: gh-live 2s ease-out infinite; }
@keyframes gh-live { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.4); opacity: 0; } }
.ns-gh .gh-pulse__item + .gh-pulse__item::before { content: "·"; margin-right: 18px; margin-left: -12px; color: var(--gh-wall-line); font-weight: 700; }

/* Card header link */
.ns-gh .gh-kicker__link { color: var(--ns-action); letter-spacing: 0; text-transform: none; font-size: 12px; text-decoration: none; }
.ns-gh .gh-kicker__link:hover { text-decoration: underline; }

/* In the news */
.ns-gh .gh-card--news { grid-column: 1; }
.ns-gh .gh-news { list-style: none; margin: 0; padding: 0; }
.ns-gh .gh-news li + li { border-top: 1px solid var(--gh-wall-line); }
.ns-gh .gh-news a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--gh-wall-text); text-decoration: none; }
.ns-gh .gh-news li:first-child a { padding-top: 0; }
.ns-gh .gh-news li:last-child a { padding-bottom: 0; }
.ns-gh .gh-news__img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--gh-wall-line); }
.ns-gh .gh-news__txt { min-width: 0; }
.ns-gh .gh-news b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 19px; font-weight: 700; }
.ns-gh .gh-news a:hover b { text-decoration: underline; text-underline-offset: 2px; }
.ns-gh .gh-news .gh-in { margin-top: 3px; }

/* Groups buzzing */
.ns-gh .gh-card--buzz { grid-column: 2; }
.ns-gh .gh-buzz { list-style: none; margin: 0 0 14px; padding: 0; }
.ns-gh .gh-buzz li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ns-gh .gh-buzz li:first-child { padding-top: 0; }
.ns-gh .gh-buzz__av { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--gh-wall-line); }
.ns-gh .gh-buzz__txt { flex: 1; min-width: 0; }
.ns-gh .gh-buzz__txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ns-gh .gh-faces { display: flex; flex: none; }
.ns-gh .gh-faces img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gh-wall-card); background: var(--gh-wall-line); }
.ns-gh .gh-faces img + img { margin-left: -8px; }
.ns-gh .gh-buzz__cta { font-size: 13px; font-weight: 700; color: var(--ns-action) !important; text-decoration: none !important; }
.ns-gh .gh-buzz__cta:hover { text-decoration: underline !important; }

@media (max-width: 1100px) {
	.ns-gh .gh-card--news,
	.ns-gh .gh-card--buzz { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-gh .gh-pulse__live i::after { animation: none; }
}


/* "Your account is ready" note above the Log in form, shown when the
   activation dialog sends a new member here (?ns_welcome=1), 23 October. */
.gh-welcome {
	display: flex; align-items: flex-start; gap: 10px;
	margin: 0 0 14px; padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(12, 110, 74, .28);
	background: rgba(12, 110, 74, .09);
	color: var(--ns-text-body, inherit);
	font-size: 13.5px; line-height: 1.45; text-align: left;
	animation: gh-welcome-in .35s cubic-bezier(.22, 1, .36, 1) both;
}
.gh-welcome strong { color: var(--ns-text-heading, inherit); font-weight: 700; }
.gh-welcome__tick {
	flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ns-action, #0C6E4A); color: var(--ns-on-action, #fff);
}
@keyframes gh-welcome-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gh-welcome { animation: none; } }

/* 2026-11-12: the reel's link is said in words, so the play button only plays. */
.ns-gh .gh-reel__go { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; color: #2FD08C; }
.ns-gh .gh-card--reel:hover .gh-reel__go, .ns-gh .gh-card--reel:focus-visible .gh-reel__go { text-decoration: underline; }

/* Explore NaijaSubway: the section cards are links (26 November 2026). */
.ns-gh a.gh-f--link { display: block; color: inherit; text-decoration: none; }
.ns-gh a.gh-f--link h3::after { content: " →"; color: var(--ns-action); }
.ns-gh a.gh-f--link:hover h3, .ns-gh a.gh-f--link:focus-visible h3 { color: var(--ns-action); }
/* NaijaSubway, in short. */
.ns-gh .gh-faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.ns-gh .gh-faq__item { padding: 20px 22px; border-radius: var(--ns-radius-lg); background: var(--ns-surface); border: 1px solid var(--ns-card-border); }
.ns-gh .gh-faq__item dt { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ns-text-heading); }
.ns-gh .gh-faq__item dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--ns-text-body); }
@media (max-width: 720px) { .ns-gh .gh-faq__list { grid-template-columns: 1fr; } }

@font-face{font-family:NS Display;src:url(https://www.naijasubway.com/wp-content/themes/naijasubway/assets/fonts/bricolage-grotesque-800.woff2?v=2) format("woff2");font-weight:800;font-style:normal;font-display:swap}.ns-gh{--st-field1: #2A2690;--st-field2: #110F4A;--st-weave-o: .1;--st-sheet-shadow: 0 40px 90px rgba(8, 7, 40, .45), 0 2px 6px rgba(8, 7, 40, .12);--st-sheen: rgba(255, 255, 255, .9)}html.ns-dark .ns-gh{--st-field1: #17145A;--st-field2: #05051A;--st-weave-o: .08;--st-sheet-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(180, 200, 235, .12);--st-sheen: rgba(255, 255, 255, .07)}@media (prefers-color-scheme: dark){html:not(.ns-light) .ns-gh{--st-field1: #17145A;--st-field2: #05051A;--st-weave-o: .08;--st-sheet-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(180, 200, 235, .12);--st-sheen: rgba(255, 255, 255, .07)}}.ns-gh .gh-stage{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,440px);gap:clamp(40px,6vw,112px);align-items:center;min-height:100vh;min-height:100svh;padding:112px clamp(24px,6vw,104px) 64px;color:#fff}.ns-gh .gh-stage__field{position:absolute;inset:0;z-index:-1;background:linear-gradient(160deg,var(--st-field1) 0%,var(--st-field2) 72%)}.ns-gh .gh-stage__weave{position:absolute;inset:-24px;background:var(--wpr-bg-a44281fa-9fda-4431-99f3-83b3ec9add58) 0 0 / 96px 96px repeat;opacity:var(--st-weave-o);-webkit-mask-image:radial-gradient(120% 95% at 28% 42%,#000 25%,transparent 82%);mask-image:radial-gradient(120% 95% at 28% 42%,#000 25%,transparent 82%);animation:st-drift 90s linear infinite,st-in 1.6s var(--gh-ease) both;transition:transform .7s var(--gh-ease);will-change:transform}@keyframes st-drift{to{background-position:96px 96px}}@keyframes st-in{0%{opacity:0}}.ns-gh .gh-stage__glow{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none}.ns-gh .gh-stage__glow--g{width:min(60vw,760px);aspect-ratio:1;right:-14%;top:-28%;background:#6cc4a4;opacity:.2;animation:gh-drift 24s ease-in-out infinite alternate}.ns-gh .gh-stage__glow--c{width:min(48vw,620px);aspect-ratio:1;left:-16%;bottom:-34%;background:#e05b35;opacity:.22;animation:gh-drift 30s ease-in-out infinite alternate-reverse}.ns-gh .gh-stage:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;z-index:-1;background:linear-gradient(90deg,transparent 0%,#008751 18%,#008751 38%,#F5F7FA 38%,#F5F7FA 62%,#008751 62%,#008751 82%,transparent 100%);opacity:.55}.ns-gh .gh-stage__lockup{position:absolute;top:30px;left:clamp(24px,6vw,104px);line-height:0;animation:st-rise .8s var(--gh-ease) .1s both}.ns-gh .gh-stage__lockup img{height:56px;width:auto;display:block}.ns-gh .gh-stage__lockup:focus-visible{outline:2px solid #6CC4A4;outline-offset:6px;border-radius:8px}.ns-gh .gh-stage__copy{min-width:0}.ns-gh .gh-stage__main{display:flex;flex-direction:column;align-items:flex-start;max-width:760px}.ns-gh .gh-stage__live{display:inline-flex;align-items:center;gap:9px;height:34px;margin:0 0 26px;padding:0 15px 0 13px;border-radius:999px;background:#ffffff17;border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);font-size:13px;font-weight:600;color:#ffffffd1;animation:st-rise .8s var(--gh-ease) .3s both}.ns-gh .gh-stage__live b{color:#fff;font-weight:700}.ns-gh .gh-stage__live i{position:relative;width:8px;height:8px;border-radius:50%;background:#6cc4a4}.ns-gh .gh-stage__live i:after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid #6CC4A4;animation:st-ping 2.2s cubic-bezier(0,0,.2,1) infinite}@keyframes st-ping{0%{transform:scale(.6);opacity:.9}80%,to{transform:scale(1.8);opacity:0}}.ns-gh .gh-say{display:grid;width:100%;animation:st-rise .9s var(--gh-ease) .42s both}.ns-gh .gh-say__line{grid-area:1 / 1;align-self:end;font-family:"NS Display",var(--ns-font-bold),system-ui,sans-serif;font-weight:800;font-size:clamp(52px,7vw,108px);line-height:.96;letter-spacing:-.035em;color:#fff;text-wrap:balance;opacity:0;transform:translateY(.3em);filter:blur(12px);transition:opacity .7s ease,transform .9s var(--gh-ease),filter .7s ease}.ns-gh .gh-say__line.is-past{transform:translateY(-.3em)}.ns-gh .gh-say__line.is-on{opacity:1;transform:none;filter:none}.ns-gh .gh-say__cap{display:flex;align-items:center;gap:10px;margin:20px 0 0;font-size:14px;font-weight:600;color:#ffffffad;animation:st-rise .8s var(--gh-ease) .56s both}.ns-gh .gh-say__cap b{padding:4px 9px;border-radius:999px;background:#ffffff1f;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff}.ns-gh .gh-stage .gh-title{margin:40px 0 8px;font-family:var(--ns-font-bold);font-size:clamp(22px,2vw,28px);line-height:1.2;letter-spacing:-.01em;color:#fff;animation:st-rise .8s var(--gh-ease) .66s both}.ns-gh .gh-stage .gh-sub{margin:0;max-width:460px;font-size:16px;line-height:24px;color:#ecf1f8b8;animation:st-rise .8s var(--gh-ease) .74s both}.ns-gh .gh-stage__proof{margin-top:30px;color:#ecf1f8b8;animation:st-rise .8s var(--gh-ease) .82s both}.ns-gh .gh-stage__proof b{color:#fff}.ns-gh .gh-stage__proof .gh-faces i{border-color:var(--st-field2);background:#ffffff29;color:#fff}@keyframes st-rise{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}.ns-gh .gh-auth.gh-sheet{position:relative;align-self:center;display:flex;flex-direction:column;padding:30px 30px 26px;border:0;border-radius:32px;background:var(--ns-surface);color:var(--ns-text-heading);box-shadow:var(--st-sheet-shadow);animation:st-card 1s cubic-bezier(.22,1,.36,1) .26s both}.ns-gh .gh-auth.gh-sheet:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 var(--st-sheen)}@keyframes st-card{0%{opacity:0;transform:translateY(28px) scale(.98)}to{opacity:1;transform:none}}.ns-gh .gh-sheet .gh-fine{margin-top:0;padding-top:18px}.ns-gh .gh-oauth{display:flex;gap:10px}.ns-gh .gh-oauth .gh-google{flex:1;min-width:0;height:52px}.ns-gh .gh-oauth__icon{flex:none;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--ns-divider);background:var(--ns-surface);color:var(--ns-text-heading)!important;text-decoration:none!important;transition:transform .16s var(--gh-ease),border-color .16s,background-color .16s}.ns-gh .gh-oauth__icon:hover{border-color:var(--ns-text-muted);background:var(--ns-surface-raised);transform:translateY(-1px)}.ns-gh .gh-oauth__icon:active{transform:scale(.96)}.ns-gh .gh-oauth__icon:focus-visible{outline:2px solid var(--ns-action);outline-offset:2px}.ns-gh .gh-oauth__icon svg{width:20px;height:20px}.ns-gh .gh-hero--wall{display:block;min-height:0}.ns-gh .gh-hero--wall .gh-wall{padding:72px max(24px,calc((100% - 1200px)/2)) 56px}@media (max-width: 1100px){.ns-gh .gh-stage{grid-template-columns:minmax(0,1fr) minmax(360px,400px);gap:40px}.ns-gh .gh-say__line{font-size:clamp(48px,6.4vw,72px)}}@media (max-width: 900px){.ns-gh .gh-stage{grid-template-columns:1fr;gap:0;min-height:0;padding:0}.ns-gh .gh-stage__lockup{top:24px;left:24px}.ns-gh .gh-stage__lockup img{height:44px}.ns-gh .gh-stage__copy{padding:104px 24px 76px}.ns-gh .gh-say__line{font-size:clamp(46px,11vw,72px)}.ns-gh .gh-stage:after{display:none}.ns-gh .gh-auth.gh-sheet{margin-top:-36px;padding:28px max(24px,calc((100% - 520px)/2)) 32px;border-radius:32px 32px 0 0;border-bottom:1px solid var(--ns-divider);box-shadow:0 -18px 50px #06061e52;animation-name:st-sheet}.ns-gh .gh-auth.gh-sheet:before{display:none}.ns-gh .gh-hero--wall .gh-wall{padding:48px 20px 32px}}@keyframes st-sheet{0%{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}@media (max-width: 600px){.ns-gh .gh-stage__copy{padding:92px 22px 72px}.ns-gh .gh-say__line{font-size:clamp(42px,12.5vw,56px);line-height:1}.ns-gh .gh-stage .gh-title{margin-top:30px;font-size:21px}.ns-gh .gh-stage .gh-sub{font-size:15px;line-height:22px}.ns-gh .gh-oauth .gh-google{height:50px}.ns-gh .gh-oauth__icon{width:50px;height:50px}}@media (prefers-reduced-motion: reduce){.ns-gh .gh-say__line{transition:none;filter:none}.ns-gh .gh-stage__weave{transition:none}}.ns-gh a.gh-rails-chip{text-decoration:none;transition:background-color .2s ease,border-color .2s ease,box-shadow .4s ease,transform .2s var(--gh-ease)}.ns-gh a.gh-rails-chip:hover{background:#ffffff24;border-color:#6cc4a48c;transform:translateY(-1px)}.ns-gh a.gh-rails-chip:focus-visible{outline:2px solid #6CC4A4;outline-offset:3px}.ns-gh a.gh-rails-chip b{padding:2px 7px;border-radius:999px;background:#6cc4a4;color:#0b0a2a;font-size:11px;letter-spacing:.06em;text-transform:uppercase}.ns-gh a.gh-rails-chip svg{width:16px;height:16px;flex:none;color:#9fe0c6}.ns-gh a.gh-rails-chip em{font-style:normal;color:#fff9;transition:transform .2s var(--gh-ease)}.ns-gh a.gh-rails-chip:hover em{transform:translate(3px);color:#fff}.ns-gh a.gh-rails-chip .gh-rails-chip__more{display:contents}@media (max-width: 600px){.ns-gh a.gh-rails-chip .gh-rails-chip__more{display:none}}.ns-gh a.gh-rails-chip.is-train{border-color:#6cc4a499;box-shadow:0 0 0 4px #6cc4a41f,0 0 28px #6cc4a447}.ns-gh .gh-stage{--jr-h: 210px;--jr-foot: 0px}@media (min-width: 901px){.ns-gh .gh-stage{padding-top:100px;padding-bottom:calc(var(--jr-h) - 30px)}}@media (min-width: 1200px){.ns-gh .gh-jr__bus{transform:scale(1.12);transform-origin:0 100%}}.ns-gh .gh-stage__main,.ns-gh .gh-stage__lockup{position:relative;z-index:1}.ns-gh .gh-stage__lockup{position:absolute}.ns-gh .gh-auth.gh-sheet{z-index:2}.ns-gh .gh-stage:has(.gh-jr):after{display:none}.ns-gh .gh-jr{position:absolute;left:0;right:0;bottom:0;z-index:0;height:var(--jr-h);overflow:hidden;pointer-events:none;animation:st-in 1.4s var(--gh-ease) .4s both}.ns-gh .gh-jr__scene{position:absolute;left:0;right:0;top:0;bottom:var(--jr-foot)}.ns-gh .gh-jr__scene:before{content:"";position:absolute;inset:0 0 auto;height:100%;z-index:-1;background:linear-gradient(180deg,transparent 0%,rgba(8,7,36,.35) 70%,rgba(8,7,36,.6) 100%)}.ns-gh .gh-jr__sky{position:absolute;left:0;bottom:48px;height:150px;width:calc(100% + 2400px);background:var(--wpr-bg-0e0a529f-8556-4be0-935f-1d142417e999) 0 0 / auto 100% repeat-x;will-change:transform}.ns-gh .gh-jr__rail{position:absolute;left:0;right:0;bottom:60px;height:44px}.ns-gh .gh-jr__rail:before{content:"";position:absolute;left:0;right:0;bottom:3px;height:2px;background:#d6deff57}.ns-gh .gh-jr__sleepers{position:absolute;left:0;bottom:0;height:4px;width:calc(100% + 28px);background:repeating-linear-gradient(90deg,rgba(214,222,255,.18) 0 3px,transparent 3px 14px);will-change:transform}.ns-gh .gh-jr__train{position:absolute;left:0;bottom:3px;width:430px;height:40px;overflow:visible;transform:translate3d(-460px,0,0);filter:drop-shadow(0 6px 14px rgba(5,4,26,.5)) drop-shadow(0 0 18px rgba(108,196,164,.18));will-change:transform}.ns-gh .gh-jr__road{position:absolute;left:0;right:0;bottom:0;height:52px;overflow:hidden;background:linear-gradient(180deg,#1a1848,#100e36);box-shadow:inset 0 1px #d6deff29}.ns-gh .gh-jr__lane{position:absolute;left:0;top:23px;height:3px;width:calc(100% + 128px);background:repeating-linear-gradient(90deg,rgba(245,247,250,.55) 0 34px,transparent 34px 64px);border-radius:2px;will-change:transform}.ns-gh .gh-jr__kerb{position:absolute;left:0;bottom:0;height:6px;width:calc(100% + 96px);background:repeating-linear-gradient(90deg,#e8c12e 0 24px,#15142e 24px 48px);opacity:.75;will-change:transform}.ns-gh .gh-jr__bus{position:absolute;bottom:4px;left:clamp(16px,10vw,200px);width:250px;height:100px}.ns-gh .gh-jr__danfo{display:block;width:250px;height:100px;overflow:visible;filter:drop-shadow(0 10px 18px rgba(4,3,24,.45))}.ns-gh .gh-jr__body{animation:jr-bob .52s ease-in-out infinite alternate}.ns-gh .gh-jr__wheel{animation:jr-spin .42s linear infinite}.ns-gh .gh-jr__beam{animation:jr-beam 2.4s ease-in-out infinite alternate}@keyframes jr-bob{0%{transform:translateY(0)}to{transform:translateY(-1.4px)}}@keyframes jr-spin{to{transform:rotate(360deg)}}@keyframes jr-beam{0%{opacity:.75}to{opacity:1}}.ns-gh .gh-jr__board{position:absolute;left:30px;bottom:104px;margin:0;display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 10px;border-radius:10px;background:#0b0a24;border:1px solid rgba(232,193,46,.35);box-shadow:0 10px 24px #04031873,inset 0 1px #ffffff0f;white-space:nowrap;font-size:11px;line-height:1;transform-origin:50% 100%;transition:transform .18s ease,opacity .18s ease}.ns-gh .gh-jr__board:after{content:"";position:absolute;left:22px;bottom:-6px;width:10px;height:10px;background:#0b0a24;border-right:1px solid rgba(232,193,46,.35);border-bottom:1px solid rgba(232,193,46,.35);transform:rotate(45deg)}.ns-gh .gh-jr__board span{font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ecf1f88c}.ns-gh .gh-jr__board b{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#ffc93c;text-shadow:0 0 8px rgba(255,201,60,.55)}.ns-gh .gh-jr__board.is-flip{transform:rotateX(80deg);opacity:.4}@media (min-width: 1600px){.ns-gh .gh-stage{--jr-h: 230px}.ns-gh .gh-jr__sky{height:168px}}@media (max-width: 900px){.ns-gh .gh-stage{--jr-h: 196px;--jr-foot: 36px;padding-bottom:0}.ns-gh .gh-stage__copy{padding-bottom:12px}.ns-gh .gh-jr{position:relative}.ns-gh .gh-jr__sky{height:120px;bottom:44px}.ns-gh .gh-jr__road{height:44px}.ns-gh .gh-jr__lane{top:19px}.ns-gh .gh-jr__rail{bottom:52px}.ns-gh .gh-jr__train{width:330px;height:31px}.ns-gh .gh-jr__bus{left:12px;bottom:2px;transform:scale(.82);transform-origin:0 100%}}@media (prefers-reduced-motion: reduce){.ns-gh .gh-jr__body,.ns-gh .gh-jr__wheel,.ns-gh .gh-jr__beam{animation:none}.ns-gh .gh-jr__train{display:none}.ns-gh .gh-jr__board{transition:none}}.ns-gh .gh-rails{position:relative;isolation:isolate;overflow:hidden;padding:clamp(64px,8vw,112px) clamp(24px,6vw,104px);background:linear-gradient(160deg,var(--st-field1) 0%,var(--st-field2) 80%);color:#fff}.ns-gh .gh-rails:before{content:"";position:absolute;z-index:-1;width:min(60vw,720px);aspect-ratio:1;right:-18%;bottom:-40%;border-radius:50%;background:#6cc4a4;opacity:.14;filter:blur(100px)}.ns-gh .gh-rails__in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,88px);align-items:center;max-width:1280px;margin:0 auto}.ns-gh .gh-rails__pill{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:6px 13px 6px 11px;border-radius:999px;background:#6cc4a424;border:1px solid rgba(108,196,164,.32);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9fe0c6}.ns-gh .gh-rails__pill span{width:7px;height:7px;border-radius:50%;background:#6cc4a4;box-shadow:0 0 10px #6cc4a4}.ns-gh .gh-rails__title{margin:0 0 16px;font-family:"NS Display",var(--ns-font-bold),system-ui,sans-serif;font-weight:800;font-size:clamp(34px,3.6vw,56px);line-height:1.02;letter-spacing:-.03em;color:#fff;text-wrap:balance}.ns-gh .gh-rails__lead{margin:0;max-width:480px;font-size:16.5px;line-height:26px;color:#ecf1f8bd}.ns-gh .gh-rails__stats{display:flex;gap:12px;margin:28px 0 30px}.ns-gh .gh-rails__stats div{flex:1;max-width:132px;padding:14px 16px;border-radius:16px;background:#ffffff0f;border:1px solid rgba(236,241,248,.1)}.ns-gh .gh-rails__stats dt{font-size:12px;font-weight:600;color:#ecf1f899}.ns-gh .gh-rails__stats dd{margin:2px 0 0;font-family:"NS Display",var(--ns-font-bold),system-ui,sans-serif;font-size:30px;font-weight:800;line-height:1.1;color:#fff}.ns-gh .gh-rails__cta{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 24px;border-radius:999px;background:#6cc4a4;color:#0b0a2a!important;font-size:16px;font-weight:700;text-decoration:none!important;box-shadow:0 12px 30px #6cc4a447;transition:transform .18s var(--gh-ease),background-color .18s ease,box-shadow .18s ease}.ns-gh .gh-rails__cta:hover{background:#7fd3b4;transform:translateY(-1px);box-shadow:0 16px 36px #6cc4a45c}.ns-gh .gh-rails__cta:active{transform:scale(.98)}.ns-gh .gh-rails__cta:focus-visible{outline:2px solid #FFFFFF;outline-offset:3px}.ns-gh .gh-rails__lines{margin:0;padding:8px;list-style:none;border-radius:24px;background:#0908246b;border:1px solid rgba(236,241,248,.1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 30px 70px #04031866}.ns-gh .gh-rails__line{display:grid;grid-template-columns:minmax(0,172px) minmax(80px,1fr) auto;grid-template-areas:"name map status" "name about about";column-gap:18px;row-gap:2px;align-items:center;padding:12px 14px;border-radius:16px;text-decoration:none!important;color:#fff;transition:background-color .16s ease}.ns-gh .gh-rails__in--lines{display:block;margin-top:clamp(40px,5vw,64px)}.ns-gh .gh-rails__in--lines .gh-rails__lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}.ns-gh .gh-rails__lines li:nth-child(n+3) .gh-rails__line{box-shadow:inset 0 1px #ecf1f812}.ns-gh .gh-rails__film{position:relative;margin:0;aspect-ratio:16 / 9;overflow:hidden;border-radius:24px;background:#1a1713 center / cover no-repeat;border:1px solid rgba(236,241,248,.14);box-shadow:0 40px 90px #04031880,0 0 0 6px #ffffff08}.ns-gh .gh-rails__film video{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}.ns-gh .gh-rails__film-bar{position:absolute;left:14px;bottom:14px;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border-radius:999px;background:#0c0b1e9e;border:1px solid rgba(255,255,255,.14);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%)}.ns-gh .gh-rails__film-btn{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;transition:background-color .16s ease,transform .16s var(--gh-ease)}.ns-gh .gh-rails__film-btn:hover{background:#ffffff38}.ns-gh .gh-rails__film-btn:active{transform:scale(.94)}.ns-gh .gh-rails__film-btn:focus-visible{outline:2px solid #6CC4A4;outline-offset:2px}.ns-gh .gh-rails__film-btn svg{width:18px;height:18px}.ns-gh .gh-rails__film .is-pause,.ns-gh .gh-rails__film.is-playing .is-play,.ns-gh .gh-rails__film .is-sound,.ns-gh .gh-rails__film.is-sound .is-muted{display:none}.ns-gh .gh-rails__film.is-playing .is-pause,.ns-gh .gh-rails__film.is-sound .is-sound{display:block}.ns-gh .gh-rails__film.is-playing .gh-rails__film-bar{padding-right:5px}.ns-gh .gh-rails__film.is-playing .gh-rails__film-cap{display:none}.ns-gh .gh-rails__film-cap{font-size:12.5px;font-weight:600;color:#ffffffd1;white-space:nowrap}.ns-gh .gh-rails__line:hover{background:#ffffff0f}.ns-gh .gh-rails__line:focus-visible{outline:2px solid #6CC4A4;outline-offset:-2px}.ns-gh .gh-rails__name{grid-area:name;display:flex;flex-direction:column;min-width:0}.ns-gh .gh-rails__name b{font-size:15px;font-weight:700;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ns-gh .gh-rails__name small{font-size:12.5px;color:#ecf1f88c}.ns-gh .gh-rails__map{grid-area:map;position:relative;display:flex;justify-content:space-between;align-items:center;height:14px}.ns-gh .gh-rails__map:before{content:"";position:absolute;left:5px;right:5px;top:50%;height:4px;margin-top:-2px;border-radius:2px;background:var(--c);box-shadow:0 0 12px color-mix(in srgb,var(--c) 60%,transparent)}.ns-gh .gh-rails__map i{position:relative;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 2.5px var(--c)}.ns-gh .gh-rails__map i:first-child,.ns-gh .gh-rails__map i:last-child{width:12px;height:12px}.ns-gh .is-construction .gh-rails__map:before{background:repeating-linear-gradient(90deg,var(--c) 0 8px,transparent 8px 14px);box-shadow:none}.ns-gh .is-construction .gh-rails__map i{background:transparent}.ns-gh .gh-rails__about{grid-area:about;font-size:13px;line-height:18px;color:#ecf1f899;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ns-gh .gh-rails__status{grid-area:status;justify-self:end;padding:4px 9px;border-radius:999px;white-space:nowrap;font-size:11.5px;font-style:normal;font-weight:700;color:#9fe0c6;background:#6cc4a424}.ns-gh .is-limited .gh-rails__status{color:#ffd27a;background:#ffc93c21}.ns-gh .is-construction .gh-rails__status{color:#ecf1f8b3;background:#ecf1f817}@media (max-width: 1000px){.ns-gh .gh-rails__in,.ns-gh .gh-rails__in--lines .gh-rails__lines{grid-template-columns:1fr}.ns-gh .gh-rails__lines li:nth-child(n+2) .gh-rails__line{box-shadow:inset 0 1px #ecf1f812}}@media (max-width: 600px){.ns-gh .gh-rails{padding:56px 16px 64px}.ns-gh .gh-rails__copy{padding:0 6px}.ns-gh .gh-rails__stats div{padding:12px}.ns-gh .gh-rails__stats dd{font-size:26px}.ns-gh .gh-rails__line{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name status" "map map" "about about";row-gap:8px}.ns-gh .gh-rails__lines{padding:4px}.ns-gh .gh-rails__film{border-radius:18px}.ns-gh .gh-rails__film-bar{left:10px;bottom:10px}.ns-gh .gh-rails__film-cap{display:none}}

