
#consent-banner {
  backdrop-filter: saturate(120%) blur(6px);
}
#consent-banner button:focus {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}
/* ===== DEZIPP AESTHETIC SYSTEM (Black/White + Mint) ===== */
/* Clean, minimal, black & white base with a single accent: Mint Blue (#429E9D) */

/* === DEZIPP COLOR PALETTE === */
:root {
  /* Base */
  --accent-mint: #429E9D;          /* Mint Blue accent */
  --dezipp-black: #000000;
  --dezipp-white: #FFFFFF;
  --dezipp-offwhite: #FFFFFF;      /* Keep canvas pure white */
  --text-primary: #000000;
  --text-secondary: #6E6E6E;
  --border-color: #000000;

  /* Backwards-compatible aliases (old tokens mapped to new scheme) */
  --dezipp-deep-green: var(--accent-mint);
  --dezipp-cream: #FFFFFF;
  --dezipp-beige: var(--accent-mint);
  --dezipp-outline: var(--border-color);
  --dezipp-light-grey: #FFFFFF;
  --dezipp-medium-grey: var(--text-secondary);
  --dezipp-dark-grey: var(--text-secondary);
  --dezipp-border: var(--border-color);

  /* Interactive States */
  --dezipp-hover: #F5F5F5;
  --dezipp-active: #EDEDED;
  --dezipp-focus: #000000;

  /* Typography */
  --font-primary: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;

  /* Border scale */
  --border-thin: 1px;
  --border-medium: 1px;
  --ui-border-width: 0.2px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(51, 51, 51, 0.05);
  --shadow-md: 0 2px 8px rgba(51, 51, 51, 0.08);
  --shadow-lg: 0 4px 16px rgba(51, 51, 51, 0.10);
  --shadow-xl: 0 8px 32px rgba(51, 51, 51, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Responsive Typography Scale */
  --fs-base: clamp(14px, 1.2vw, 16px);
  --fs-sm: clamp(12px, 1vw, 14px);
  --fs-md: var(--fs-base);
  --fs-lg: clamp(16px, 1.8vw, 18px);
}

/* Global base */
html { scroll-behavior: smooth; font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; }
body {
  font-family: var(--font-primary);
  font-weight: 400;
  background: #FFFFFF;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  background-image: none;
}
/* Normalize UI element font sizes and line-height */
body, button, input, select, textarea { font-size: 14px; line-height: 1.5; }
button, .btn, .appbar-tab, .news-tab, .friends-tab, .profile-nav-tab, .create-first-post-btn, .user-action-btn { font-size: 14px; line-height: 1.3; }

/* Prefer reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; }
}
/* previously nested — make standalone */
#floating-post-btn {
  background: var(--accent-mint);
  color: #FFFFFF;
  border: 0.2px solid var(--dezipp-black);
}
/* Remove previous backdrop effects */
body::before { display: none; }
/* === TYPOGRAPHY SYSTEM === */
/* Thick, geometric sans-serif with clear outlines */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--dezipp-outline);
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: 2.5rem; font-weight: 400; }
h2 { font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.5rem; font-weight: 400; }
h4 { font-size: 14px; font-weight: 400; }
h5 { font-size: 1.125rem; font-weight: 400; }
h6 { font-size: 14px; font-weight: 400; }

p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dezipp-dark-grey);
  font-weight: 400;
  margin: 0 0 var(--space-md) 0;
}

/* Enhanced Typography for Better Readability */
.post-content-text {
  font-weight: 400;
  font-size: 11px;
  color: #000000;
}

/* Profile Viewer Enhancements */
.profile-view-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.profile-view-actions .btn-group {
  display: flex;
  gap: 0.5rem;
}

.profile-view-actions button {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-view-actions .btn-primary {
  background: #429E9D;
  color: white;
  border: 0.2px solid #429E9D;
}

.profile-view-actions .btn-secondary {
  background: white;
  color: #429E9D;
  border: 0.2px solid #429E9D;
}

.profile-view-actions .btn-primary:hover {
  background: #3a8e8d;
  border-color: #3a8e8d;
}

.profile-view-actions .btn-secondary:hover {
  background: #f0fdfa;
}

.post-meta,
.comment-text,
.news-article-meta {
  font-weight: 400;
  color: var(--dezipp-dark-grey);
}

/* Additional Typography Enhancements */
.post-username {
  font-weight: 400;
  color: var(--dezipp-outline);
}

.comment-username {
  font-weight: 400;
  color: var(--dezipp-outline);
}

/* Timestamps and Meta Information */
.post-date,
.comment-date,
.news-article-snippet {
  font-weight: 400;
  color: var(--dezipp-dark-grey);
}

/* Action Counts with Better Visibility */
.action-count {
  font-weight: 400;
  color: var(--dezipp-outline);
}

/* === LAYOUT SYSTEM === */

/* Main Grid Container - Clean and Minimal */
.main-grid-container { background: #FFFFFF; }

/* Content areas with neutral backgrounds */
.full-width-post-creation {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  
  /* Remove previous gradient backgrounds */
  background-image: none;
  backdrop-filter: none;
}

/* Remove dynamic mood-based styling */
.full-width-post-creation[data-selected-mood] {
  transform: none;
  border: 0.2px solid var(--dezipp-focus);
  background: var(--dezipp-white);
  box-shadow: var(--shadow-xl);
}

/* Remove gradient accent */
.full-width-post-creation::before,
.full-width-post-creation::after {
  display: none;
}

/* === CARD SYSTEM === */

/* Post Cards - Clean White Cards with Subtle Shadows */
.post-card {
  background: #FFFFFF;
  border: 0.2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  background-image: none;
  backdrop-filter: none;
}

.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #000; }

/* News Cards */
.news-article-card { background: #FFFFFF; border: 0.2px solid #000; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background-image: none; backdrop-filter: none; }

.news-article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--dezipp-focus);
  background: var(--dezipp-white);
}

.news-article-card::before {
  display: none;
}

/* Sidebar Section Titles and Navigation Elements */
.sidebar-section-title {
  color: var(--dezipp-outline);
  font-weight: 400;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: var(--space-xl) var(--space-md) var(--space-md) var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--dezipp-border);
  text-shadow: none;
}

/* Sidebar Icons - Enhanced Consistency */
.sidebar-menu-item i,
.nav-link i {
  color: #429E9D;
  text-shadow: none;
  margin-right: var(--space-md);
  font-size: 1.125rem;
  transition: all var(--transition-base);
}

.sidebar-menu-item:hover i,
.nav-link:hover i {
  color: var(--dezipp-outline);
  /* Forward zoom on icon (no lateral movement) */
  transform: scale(1.08);
}

.sidebar-menu-item.active i,
.nav-link.active i {
  color: #000000;
}

/* Quick Action Buttons in Insights */
.quick-action-btn {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  border-radius: var(--radius-lg);
  color: var(--dezipp-outline);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.quick-action-btn:hover {
  background: var(--dezipp-beige);
  border-color: var(--dezipp-outline);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Left and Right Sidebars - Enhanced Dezipp Aesthetic */
.left-sidebar-combined,
.insights-right-top-area,
.insights-right-top-area.sticky-sidebar {
  background: #FFFFFF;
  border: 0.2px solid #000;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  background-image: none;
  backdrop-filter: none;
}

/* Right Insights Area - Specific Enhancements */
.insights-right-top-area {
  background: var(--dezipp-light-grey);
  border: 0.2px solid var(--dezipp-outline);
  box-shadow: var(--shadow-xl);
}

.insights-right-top-area:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--dezipp-outline);
}

/* Sidebar Menu Items - Enhanced Dezipp Aesthetic */
.nav-link.sidebar-menu-item,
.sidebar-menu-item {
  background: #FFFFFF;
  border: 0.2px solid #000;
  color: #000;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: 400;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  background-image: none;
  backdrop-filter: none;
  text-shadow: none;
  /* Forward zoom interactions align with new behavior */
  transform-origin: center;
}

/* Force left sidebar active/hover colors to follow the new scheme (higher specificity) */
.left-sidebar-combined.sidebar-container .nav-link:hover { background: var(--dezipp-hover); color: #000; box-shadow: inset 0 0 0 1px #000; }
.left-sidebar-combined.sidebar-container .nav-link.active { background: #FFFFFF; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,0.12); border-color: #000; }

.nav-link.sidebar-menu-item:hover,
.sidebar-menu-item:hover {
  background: var(--dezipp-beige);
  border-color: var(--dezipp-outline);
  color: var(--dezipp-outline);
  box-shadow: var(--shadow-md);
  /* Subtle lift plus forward zoom (no lateral shift) */
  transform: translateY(-1px) scale(1.04);
}

.nav-link.sidebar-menu-item.active,
.sidebar-menu-item.active {
  background: #000000;
  border-color: #429E9D;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  /* Active state forward zoom */
  transform: scale(1.06);
}

.sidebar-menu-item::before {
  display: none;
}

/* === BUTTON SYSTEM === */

/* Tabs: neutral base with mint underline for active */
.news-tab,
.friends-tab,
.profile-nav-tab,
.dezipp-sport-tab,
.pill,
.nfl-conf-tab,
.nba-conf-tab,
.football-league-tab {
  background: transparent;
  color: #000;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
}
.news-tab:hover,
.friends-tab:hover,
.profile-nav-tab:hover,
.dezipp-sport-tab:hover,
.pill:hover,
.nfl-conf-tab:hover,
.nba-conf-tab:hover,
.football-league-tab:hover {
  background: var(--dezipp-hover);
}
.news-tab.active,
.friends-tab.active,
.profile-nav-tab.active,
.dezipp-sport-tab.active,
.pill.active,
.nfl-conf-tab.active,
.nba-conf-tab.active,
.football-league-tab.active {
  border-bottom-color: var(--accent-mint);
}

/* Friends tabs - adopt deep green accents */
.friends-tabs { background: var(--dezipp-deep-green); box-shadow: var(--shadow-md); }
.friends-tab { color: rgba(255,255,255,0.9); }
.friends-tab:hover { background: rgba(255,255,255,0.12); color: var(--dezipp-white); }
.friends-tab.active { background: var(--dezipp-cream); color: var(--dezipp-black); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.friends-content { border-top: 2px solid var(--dezipp-deep-green); }

/* Primary Button - Soft Beige Fill with Dark Outline (Logo Style) */
/* Primary buttons use mint accent; secondary remain neutral */
#submit-post,
.btn-primary,
.submit-btn,
button[type="submit"] {
  background: var(--accent-mint);
  color: #FFFFFF;
  border: 0.2px solid #000;
  border-radius: var(--radius-lg);
  font-weight: 400;
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-base);
  background-image: none;
  box-shadow: var(--shadow-md);
  text-transform: none;
  letter-spacing: normal;
}

#submit-post:hover,
.btn-primary:hover,
.submit-btn:hover,
button[type="submit"]:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Remove gradient animations */
#submit-post::before,
#submit-post::after,
.btn-primary::before,
.btn-primary::after {
  display: none;
}

/* Secondary Buttons - Enhanced Consistency */
.btn-secondary { background: #FFFFFF; color: #000; border: 0.2px solid #000; border-radius: var(--radius-lg); font-weight: 400; transition: all var(--transition-base); }
.btn-secondary:hover { background: var(--dezipp-hover); border-color: #000; box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* === MOOD SYSTEM === */

/* Universal Mood Row - Simplified Clean Design */
.universal-mood-row { /* allow component styles to control mood row appearance */ background: transparent; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); overflow: hidden; background-image: none; backdrop-filter: none; }

.universal-mood-row::before {
  display: none;
}

/* Mood Buttons - Clean Flat Design with Soft Colors */
.universal-mood-btn,
.mood-button { /* let per-mood colors apply from components.css */ background: transparent; color: inherit; border: 0.2px solid transparent; font-weight: 400; text-shadow: none; border-radius: var(--radius-sm); background-image: none; }

.universal-mood-btn:hover,
.mood-button:hover { background: var(--dezipp-hover); border-color: #000; transform: translateY(-1px) scale(1.02); box-shadow: var(--shadow-sm); }

.universal-mood-btn.selected,
.mood-button.selected { background: #000; color: #FFFFFF; border-color: #000; box-shadow: var(--shadow-md); }

/* Remove individual mood button colors for consistent neutral design */
.mood-button:nth-child(n) {
  background: var(--dezipp-light-grey);
  color: var(--dezipp-outline);
}

.mood-button:nth-child(n):hover {
  background: var(--dezipp-hover);
  box-shadow: var(--shadow-sm);
}

.mood-button:nth-child(n).selected {
  background: var(--dezipp-outline);
  color: var(--dezipp-white);
}

/* Removed neutralizing overrides to allow per-mood colors from components.css */

/* === FORM SYSTEM === */

/* Input Fields - Clean Minimal Design */
.modern-textarea,
.contact-input,
input[type="text"],
input[type="email"],
textarea,
.comment-textarea {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  border-radius: var(--radius-md);
  color: var(--dezipp-outline);
  font-family: var(--font-primary);
  
  /* Remove previous gradient styles */
  background-image: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}

.modern-textarea:focus,
.contact-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
.comment-textarea:focus {
  border-color: var(--dezipp-focus);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
  background: var(--dezipp-white);
  outline: none;
}

/* === HEADER SYSTEM === */

/* Header system extended 20% beyond sidebars with curved bottom corners */
#site-header {
    position: fixed;
    top: 0;
    left: calc(max(var(--space-4, 1rem), (100vw - 1400px) / 2 + var(--space-4, 1rem)) - 56px);
    right: calc(max(var(--space-4, 1rem), (100vw - 1400px) / 2 + var(--space-4, 1rem)) - 56px);
    width: calc(100vw - 2 * (max(var(--space-4, 1rem), (100vw - 1400px) / 2 + var(--space-4, 1rem)) - 56px));
    height: var(--header-offset, 6rem);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 250, 250, 0.95) 50%, 
        rgba(245, 245, 245, 0.92) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-radius: 0 0 3rem 3rem;
    overflow: visible;
}

/* Larger logo styling */
#site-header #logo-link img {
    height: 4.5rem;
    max-height: 4.5rem;
    width: auto;
    object-fit: contain;
}

/* Direct connection lines from header bottom to sidebar edges */
#site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(max(var(--gap), (100vw - var(--center-max)) / 2 + var(--gap)));
    width: var(--sidebar-w);
    height: 1px;
    background: #e5e7eb;
    z-index: 999;
}

#site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: calc(max(var(--gap), (100vw - var(--center-max)) / 2 + var(--gap)));
    width: var(--sidebar-w);
    height: 1px;
    background: #e5e7eb;
    z-index: 999;
}

/* Header overlap effect on main content */

#site-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: linear-gradient(to bottom, 
                rgba(255,255,255,0.95) 0%,
                rgba(255,255,255,0.8) 30%,
                rgba(255,255,255,0.4) 60%,
                rgba(255,255,255,0.1) 80%,
                transparent 100%);
    pointer-events: none;
    z-index: 999;
}

/* Ensure content starts under the header overlap */
.main-container {
    position: relative;
    z-index: 5;
}

/* Main content area straight edges for seamless header flow */
.main-content-area,
.posts-content-area {
    border-radius: 0;
    border-top: none;
}

/* Clamp Pages section width to the same feed max as other tabs */
#main-content > #pages-section,
#main-content .content-section#pages-section,
#main-content #pages-section.content-section,
#main-content #pages-section.content-section.packed-layout {
  width: 100%;
  max-width: var(--feed-max, 860px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Right sidebar overlap integration to match left sidebar */
.right-sidebar-combined {
    top: var(--header-offset, 6rem);
    border-radius: 0;
    border-top: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08), 
                0 2px 8px rgba(0,0,0,0.06);
}

/* Header connection lines extending to sidebars */
.left-sidebar-combined::before,
.right-sidebar-combined::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1000;
}

/* Vertical lines from header to sidebars */
.left-sidebar-combined::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    z-index: 1000;
}

.right-sidebar::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    z-index: 1000;
}

/* Updated sidebar overlap integration for new right sidebar and extended header */
.left-sidebar-combined,
.right-sidebar {
    top: var(--header-offset, 6rem);
    border-radius: 0;
    border-top: none;
}

/* Ensure sidebars connect seamlessly with header */
.left-sidebar-combined {
    border-top: none;
}

.right-sidebar {
    border-top: none;
}

/* COMPLETE RIGHT SIDEBAR OVERHAUL - Force to match left sidebar exactly */

/* Override ALL right sidebar styling from components.css and other files */
.right-sidebar-combined .insights-nav-link {
    /* Force exact left sidebar menu styling */
    display: flex;
    align-items: center;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-md, 0.75rem);
    text-decoration: none;
    color: var(--accent-white, #FFFFFF);
    background: linear-gradient(135deg, rgba(150, 47, 191, 0.3), rgba(214, 36, 159, 0.25), rgba(245, 133, 41, 0.2));
    border: 0.2px solid rgba(254, 218, 119, 0.3);
    transition: all var(--transition-base, 200ms) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 400;
    font-size: var(--text-sm, 0.875rem);
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    /* Remove any conflicting styles */
    box-shadow: none;
    transform: none;
}

.right-sidebar-combined .insights-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    opacity: 0;
    transition: opacity var(--transition-base, 200ms) ease;
}

.right-sidebar-combined .insights-nav-link:hover {
    background: linear-gradient(135deg, rgba(150, 47, 191, 0.4), rgba(214, 36, 159, 0.35), rgba(245, 133, 41, 0.3));
    border-color: rgba(254, 218, 119, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--accent-white, #FFFFFF);
}

.right-sidebar-combined .insights-nav-link:hover::before {
    opacity: 1;
}

.right-sidebar-combined .insights-nav-link.active {
    background: linear-gradient(135deg, rgba(150, 47, 191, 0.5), rgba(214, 36, 159, 0.4), rgba(245, 133, 41, 0.35));
    border-color: rgba(254, 218, 119, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    transform: none;
}

.right-sidebar-combined .insights-nav-link.active::before {
    opacity: 1;
}

/* Force icon styling to match left sidebar */
.right-sidebar-combined .insights-nav-link i {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    font-size: 14px;
    color: inherit;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    display: inline-block;
    justify-content: unset;
    align-items: unset;
}

.right-sidebar-combined .insights-nav-link span {
    flex: 1;
    font-weight: inherit;
    color: inherit;
}

/* Sidebar overlap integration */
.left-sidebar-combined,
.right-sidebar-combined {
    top: var(--header-offset, 6rem);
    border-radius: 0;
    border-top: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08), 
                0 2px 8px rgba(0,0,0,0.06);
}

/* Force removal of any remaining curved corners */
.left-sidebar-combined *,
.right-sidebar-combined *,
.sidebar-container,
.enhanced-sidebar {
    border-radius: 0;
}

/* Exception: Allow navigation button styling to keep their intended border-radius */
.left-sidebar-combined .sidebar-menu-item,
.right-sidebar-combined .insights-nav-link {
    border-radius: var(--radius-md, 0.75rem);
}

/* Override header inner texture to ensure straight bottom edge */
.header-inner {
    border-radius: 0;
}

/* Override header texture pseudo-element to not interfere with straight edges */
.header-inner::before {
    border-radius: 0;
}

.top-appbar { background: #F8F8F8; color: #000000; border-bottom: 1px solid #000; }
.top-appbar .brand-name { color: #000; font-weight: 400; text-shadow: none; }

/* Header inner - textured pure white with overlap effect */
.header-inner { 
    background: linear-gradient(135deg, #FFFFFF 0%, #FDFDFD 25%, #FFFFFF 50%, #FBFBFB 75%, #FFFFFF 100%);
    background-size: 400% 400%;
    animation: subtleTextureShift 20s ease-in-out infinite;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 
                0 8px 40px rgba(0,0,0,0.06),
                inset 0 1px 0 rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Add subtle noise texture for premium feel */
.header-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(248,248,248,0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(250,250,250,0.15) 0%, transparent 50%);
    background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    background-position: 0 0, 40px 40px, 80px 80px, 120px 120px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* Subtle texture animation */
@keyframes subtleTextureShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced header elements for pure white theme */
.header-inner > * {
    position: relative;
    z-index: 2;
}

.header-search input {
    background: rgba(255,255,255,0.95);
    border: 0.2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 
                inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.header-search input:focus {
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 
                inset 0 1px 0 rgba(255,255,255,0.95),
                0 0 0 3px rgba(255,255,255,0.5);
}

.header-btn {
    background: rgba(255,255,255,0.9);
    border: 0.2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 
                inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 
                inset 0 1px 0 rgba(255,255,255,0.95);
    transform: translateY(-1px);
}

/* Brand Mark: simple monochrome */
.brand-mark { background: transparent; border: none; color: #000; box-shadow: none; }
.brand-mark:hover { background: var(--dezipp-hover); box-shadow: var(--shadow-sm); }

/* Header tabs: underline active in mint */
.appbar-tab { background: transparent; color: #000; border: none; border-bottom: 2px solid transparent; box-shadow: none; white-space: nowrap; flex: 0 0 auto; }
.appbar-tab:hover { background: var(--dezipp-hover); color: #000; transform: none; box-shadow: none; }
.appbar-tab.active { border-bottom-color: var(--accent-mint); color: #000; }

/* Navigation CTA in header uses mint */
.appbar-cta.primary { background: var(--accent-mint); color: #FFFFFF; border: 0.2px solid #000; font-weight: 400; border-radius: var(--radius-pill); }

/* Shareable sports items affordance */
.sport-shareable {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.sport-shareable:hover {
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
tr.sport-share-row {
  cursor: pointer;
}
tr.sport-share-row:hover td {
  background: #fafafa;
}

.appbar-cta.primary:hover { background: #3E5A36; color: var(--dezipp-white); box-shadow: var(--shadow-md); }

/* Utility: Deep Forest Green accents for reuse */
.bg-deep-forest { background-color: var(--dezipp-deep-green); color: var(--dezipp-white); }
.text-deep-forest { color: var(--dezipp-deep-green); }
.btn-deep-forest { background: var(--dezipp-deep-green); color: var(--dezipp-cream); border: 0.2px solid var(--dezipp-black); }
.btn-deep-forest:hover { background: #3E5A36; color: var(--dezipp-white); }

/* Apply Deep Forest Green to a few existing buttons as contrast accents */
.user-action-btn.message-btn { background: #FFFFFF; color: #000; border: 0.2px solid #000; box-shadow: var(--shadow-sm); }
.user-action-btn.message-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.create-first-post-btn { background: var(--accent-mint); color: #FFFFFF; border: 0.2px solid #000; }
.create-first-post-btn:hover { filter: brightness(0.95); }

/* === COMMENTS SYSTEM === */

/* Comments Section - Clean Design */
.comments-section { background: #FFFFFF; border-top: 0; background-image: none; }
/* When comments are expanded, show a subtle divider instead of a thick black line */
.comments-section.show { border-top: 1px solid #e5e7eb; }

.comment-item {
  /* Allow mood-based background colors */
  /* background: var(--dezipp-white); */
  border: 0.2px solid var(--dezipp-border);
  box-shadow: var(--shadow-sm);
}

.comment-header {
  background: var(--dezipp-light-grey);
  color: var(--dezipp-outline);
  
  /* Remove mood-based gradient backgrounds */
  background-image: none;
}

/* Remove all mood-specific comment header colors for consistency */
.comment-header[data-mood] {
  background: var(--dezipp-light-grey);
  color: var(--dezipp-outline);
}

/* === INSIGHTS SYSTEM === */

/* Insights Cards - Enhanced Dezipp Aesthetic */
.insights-section-card {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  
  /* Remove previous gradient styles */
  background-image: none;
  backdrop-filter: none;
}

.insights-section-card:hover {
  background: var(--dezipp-beige);
  border-color: var(--dezipp-outline);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.insights-title {
  color: var(--dezipp-outline);
  font-weight: 400;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.stat-number {
  color: var(--dezipp-outline);
  font-weight: 400;
  font-size: 1.5rem;
}

.stat-label {
  color: var(--dezipp-dark-grey);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

/* === PROFILE SYSTEM === */

/* Profile Cards and Sections */
.facebook-profile-container,
.about-card,
.section-card {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  box-shadow: var(--shadow-md);
}

/* Profile specific neutralization to match Dezipp look while keeping layout */
#profile-section, #profile-section * { color: var(--dezipp-outline); text-shadow: none; }
#profile-section .profile-cover-section { background: var(--dezipp-light-grey); }
#profile-section .profile-cover-photo { background: var(--dezipp-light-grey); }
#profile-section .profile-cover-photo::before { display: none; }
#profile-section .cover-image { filter: none; }

#profile-section .profile-main-info { background: var(--dezipp-white); box-shadow: var(--shadow-md); border-bottom: 1px solid var(--dezipp-border); }
#profile-section .profile-picture-wrapper-large { border: 0.2px solid var(--dezipp-white); box-shadow: var(--shadow-md); }
#profile-section .profile-picture-aura::before, 
#profile-section .profile-picture-aura.online::after { display: none; }

/* Stat cards de-glow and neutral */
#profile-section .profile-stat-card { 
  background: var(--dezipp-white); 
  border: 0.2px solid var(--dezipp-border); 
  box-shadow: var(--shadow-sm); 
}
#profile-section .profile-stat-card::after { display: none; }
#profile-section .profile-stat-card span.label { color: var(--dezipp-dark-grey); opacity: 1; }
#profile-section .profile-stat-card span.value { color: var(--dezipp-outline); }

/* Actions */
#profile-section .profile-action-btn.primary { background: var(--dezipp-deep-green); color: var(--dezipp-cream); border: 0.2px solid var(--dezipp-deep-green); }
#profile-section .profile-action-btn.primary:hover { background: #3E5A36; color: var(--dezipp-white); }
#profile-section .profile-action-btn.secondary { background: var(--dezipp-white); color: var(--dezipp-outline); border: 0.2px solid var(--dezipp-border); }
#profile-section .profile-action-btn.secondary:hover { background: var(--dezipp-beige); }

/* Tabs */
#profile-section .profile-navigation { background: var(--dezipp-white); border-top: 1px solid var(--dezipp-border); box-shadow: var(--shadow-sm); }
#profile-section .profile-nav-tabs { border-bottom: 1px solid var(--dezipp-border); padding: 0.5rem 2rem; }
#profile-section .profile-nav-tab { 
  color: var(--dezipp-dark-grey); 
  padding: 8px 12px; 
  min-height: 36px; 
  line-height: 1; 
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
#profile-section .profile-nav-tab i { 
  width: 1.25rem; 
  height: 1.25rem; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(2,6,23,0.04);
  font-size: var(--post-font-size, 0.9rem);
}
#profile-section .profile-nav-tab::after { background: var(--dezipp-deep-green); }
#profile-section .profile-nav-tab.active { 
  color: var(--dezipp-deep-green); 
  background: linear-gradient(180deg, #f0fdfa, #ecfeff);
  border-color: rgba(58,175,169,0.25);
  box-shadow: 0 1px 2px rgba(23,37,42,0.06);
}
#profile-section .profile-nav-tab.active i {
  background: rgba(20,184,166,0.12);
  color: #0f766e;
}

/* Content area */
#profile-section .profile-content-area { background: var(--dezipp-light-grey); }
#profile-section .profile-tab-content { background: transparent; }

/* Profile container improvements */
#profile-section .profile-container-grid {
  background: var(--dezipp-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

#profile-section .profile-info-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  padding: 80px 32px 32px 32px;
  background: var(--dezipp-white);
  min-height: 120px;
}

#profile-section .profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dezipp-outline);
  margin: 0 0 8px 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  #profile-section .profile-info-row { 
    grid-template-columns: 180px 1fr; 
  }
  #profile-section .profile-content-right { 
    display: none; 
  }
}

@media (max-width: 768px) {
  #profile-section .profile-info-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 60px 16px 24px 16px;
    text-align: center;
  }
  #profile-section .profile-name {
    font-size: 1.75rem;
  }
}

/* About cards */
#profile-section .about-card { border-radius: var(--radius-lg); }
#profile-section .about-card h3 { font-weight: 400; }

/* Profile posts cards */
#profile-section .profile-post-card { background: var(--dezipp-white); border: 0.2px solid var(--dezipp-border); box-shadow: var(--shadow-sm); }
#profile-section .profile-post-card:hover { box-shadow: var(--shadow-md); }

/* === RESPONSIVE DESIGN === */

/* Maintain clean design across all screen sizes */
@media (max-width: 768px) {
  /* Header tabs scroll horizontally on small screens */
  .appbar-center { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; gap: var(--space-sm); }
  .appbar-center::-webkit-scrollbar { display: none; }
  .appbar-tab { padding: 0.35rem 0.65rem; }

  /* Friends tabs become scrollable */
  .friends-tabs { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .friends-tabs::-webkit-scrollbar { display: none; }
  .friends-tab { flex: 0 0 auto; }

  /* News tabs become scrollable */
  .news-tabs-wrapper { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .news-tabs-wrapper::-webkit-scrollbar { display: none; }
  .news-tab { display: inline-flex; flex: 0 0 auto; white-space: nowrap; }

  .universal-mood-row {
    height: 36px;
    border-width: 0.2px;
  }
  
  .universal-mood-btn {
    font-size: 0.75rem;
  }
}

/* === UTILITY CLASSES === */

/* Background utilities */
.bg-dezipp-beige { background-color: var(--dezipp-beige); }
.bg-dezipp-white { background-color: var(--dezipp-white); }
.bg-dezipp-light-grey { background-color: var(--dezipp-light-grey); }

/* Contrast helpers - apply semantic text color based on background */
.on-beige { color: var(--dezipp-black); }
.on-deep { color: var(--dezipp-cream); }

/* Text utilities */
.text-dezipp-outline { color: var(--dezipp-outline); }
.text-dezipp-dark-grey { color: var(--dezipp-dark-grey); }
.text-dezipp-medium-grey { color: var(--dezipp-medium-grey); }

/* Border utilities */
.border-dezipp-border { border-color: var(--dezipp-border); }
.border-dezipp-outline { border-color: var(--dezipp-outline); }

/* Shadow utilities */
.shadow-dezipp-sm { box-shadow: var(--shadow-sm); }
.shadow-dezipp-md { box-shadow: var(--shadow-md); }
.shadow-dezipp-lg { box-shadow: var(--shadow-lg); }

/* === ANIMATION OVERRIDES === */

/* Remove flashy animations for calm, minimal aesthetic */
@keyframes none { }

.universal-mood-btn::before,
.post-card::before,
.post-card::after,
.sidebar-menu-item::before,
*[class*="pulse"]::before,
*[class*="shimmer"]::before,
*[class*="glow"]::before {
  display: none;
}

/* Remove continuous animations */
*[class*="pulse"],
*[class*="shimmer"],
*[class*="glow"],
*[class*="sweep"] {
  animation: none;
}

/* === ICON SYSTEM === */

/* Clean icon styling */
.fas, .far, .fab, .fal, .fad,
i[class*="fa-"],
.icon {
  color: var(--dezipp-outline);
  text-shadow: none;
}

.sidebar-menu-item i {
  color: #429E9D;
  text-shadow: none;
}

/* === FOCUS SYSTEM === */

/* Clean focus styles for accessibility */
/* Base tokenized ring */
:root {
  --focus-ring-color: #111827; /* near-black for AA contrast */
  --focus-ring-offset: 2px;
  --focus-ring-width: 2px;
}

/* Ensure focus is visible on all interactive controls */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
details:focus-visible,
.pill:focus-visible,
.nav-link:focus-visible,
.sidebar-menu-item:focus-visible,
.profile-nav-tab:focus-visible,
.dezipp-sport-tab:focus-visible,
.vertical-action-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 calc(var(--focus-ring-width) + 1px) rgba(17,24,39,0.05); /* subtle halo */
  border-radius: var(--radius-sm);
}

/* Provide a high-contrast mint variant for primary actions */
.btn-primary:focus-visible,
#submit-post:focus-visible,
.appbar-cta.primary:focus-visible,
.create-first-post-btn:focus-visible {
  outline-color: var(--accent-mint);
  box-shadow: 0 0 0 3px rgba(66,158,157,0.35);
}

/* Remove any focus suppression from legacy styles */
*:focus { outline: none; }
*:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* === POST ACTIONS === */

/* Vertical Action Buttons - Simplified */
.vertical-action-btn {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  color: var(--dezipp-outline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  
  /* Remove previous gradient styles */
  background-image: none;
  backdrop-filter: none;
}

.vertical-action-btn:hover {
  background: var(--dezipp-hover);
  border-color: var(--dezipp-outline);
  box-shadow: var(--shadow-md);
}

.vertical-action-btn .icon {
  color: #000000;
  text-shadow: none;
  box-shadow: none;
  background: none;
  border: none;
}

/* Remove specific accent colors for consistent design */
.vertical-action-btn.like-btn .icon,
.vertical-action-btn.comment-btn .icon,
.vertical-action-btn.share-btn .icon { color: #000000; }

/* Like state: mint when liked */
.vertical-action-btn.like-btn.liked .icon,
.vertical-action-btn.like-btn.liked .post-reaction-heart,
.pill.like-btn.liked .post-reaction-heart,
.post-reaction-heart.reacted { color: #429E9D; }

/* Pills row (mobile/compact) */
.pill.like-btn:not(.liked) .post-reaction-heart { color: #000000; }
.vertical-action-btn.like-btn:not(.liked) .post-reaction-heart { color: #000000; }

.vertical-action-btn:hover.like-btn .icon,
.vertical-action-btn:hover.comment-btn .icon,
.vertical-action-btn:hover.share-btn .icon {
  color: var(--dezipp-outline);
  box-shadow: none;
}

/* Action counts */
.action-count {
  color: var(--dezipp-outline);
  text-shadow: none;
}

/* === POST SIDEBAR === */

.post-sidebar { background: #FFFFFF; border: none; box-shadow: var(--shadow-md); background-image: none; backdrop-filter: none; }

/* === FINAL OVERRIDES === */

/* Ensure all gradients are removed (but do NOT wipe avatars that use background-image) */
*:not(.post-avatar):not(.comment-avatar):not(.notification-avatar):not(.conversation-avatar):not(.chat-avatar):not(.user-card-avatar):not(.team-avatar) { 
  background-image: none; 
}

/* Ensure consistent neutral palette, excluding elements that purposefully set background-image (avatars) */
*[style*="background"]:not(.post-avatar):not(.comment-avatar):not(.notification-avatar):not(.conversation-avatar):not(.chat-avatar):not(.user-card-avatar):not(.team-avatar) {
  background-image: none;
}

/* Remove any remaining colorful styling */
*[class*="purple"], *[class*="blue"], *[class*="teal"], *[class*="gradient"] { background: #FFFFFF; color: #000; }

/* ===== UNIVERSAL BORDER WIDTH UNIFIER (hairline) ===== */
/* Core cards and containers */
.post-card,
.news-article-card,
.nav-link.sidebar-menu-item,
.sidebar-menu-item,
.comment-item,
.post-sidebar,
.insights-section-card,
.left-sidebar-combined,
.insights-right-top-area,
.card,
.facebook-profile-container,
.about-card,
.section-card,
.profile-post-card {
  border-width: var(--ui-border-width);
}

/* Inputs, textareas, pills, buttons with borders */
input[type="text"], input[type="email"], textarea, .modern-textarea, .contact-input,
.btn-secondary, .user-action-btn.message-btn,
.vertical-action-btn, .universal-mood-btn, .mood-button {
  border-width: var(--ui-border-width);
}

/* Tables and separators within cards */
.post-card th, .post-card td { border-bottom-width: var(--ui-border-width); }
.post-header { border-bottom-width: var(--ui-border-width); }
.top-appbar { border-bottom-width: var(--ui-border-width); }

/* Profile page specific */
#profile-section .profile-main-info { border-bottom-width: 2px; }
#profile-section .profile-stat-card { border-width: 0.2px; }
#profile-section .profile-navigation { border-top-width: 2px; }
#profile-section .profile-nav-tabs { border-bottom-width: 2px; }
#profile-section .profile-action-btn.secondary { border-width: 0.2px; }

/* Friends tabs separators */
.friends-content { border-top-width: 2px; }

/* Sidebar titles underline */
.sidebar-section-title { border-bottom-width: 2px; }

/* Vendor-driven thin borders via vars */
:root { --fa-border-width: var(--ui-border-width); }

/* === NEWS CARDS (Global Feed) === */
.global-news-card .news-card-header { 
  background: var(--dezipp-white); 
}
.content-section#global-feed-section, 
.content-section#global-feed-section * {
  color: #000000;
  text-shadow: none;
}
.content-section#global-feed-section a,
.content-section#global-feed-section a:link,
.content-section#global-feed-section a:visited,
.content-section#global-feed-section a:focus,
.content-section#global-feed-section a:active {
  color: #000000;
  text-decoration: none;
}
.news-headline {
  /* Force solid black headline text (override gradient/clip rules) */
  color: #000000;
  -webkit-text-fill-color: #000000;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
  margin: 0 0 var(--space-sm) 0;
}
.news-headline-link {
  color: #000000;
  -webkit-text-fill-color: #000000;
  text-decoration: none;
  text-shadow: none;
}
.news-headline-link:visited,
.news-headline-link:focus,
.news-headline-link:active {
  color: #000000;
  -webkit-text-fill-color: #000000;
  text-decoration: none;
}
.news-headline-link:hover {
  color: var(--dezipp-focus); /* subtle dark hover */
  -webkit-text-fill-color: var(--dezipp-focus);
  text-decoration: underline;
}
.global-news-card .news-info span,
.global-news-card .news-description { 
  color: var(--dezipp-dark-grey); 
}

/* === SPORTS HUB TABS (Pill style) === */
/* Pills handled in unified Tabs section above */

.dezipp-sport-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Simple card utility for event rows */
.card {
  background: var(--dezipp-white);
  border: 0.2px solid var(--dezipp-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}

/* Ensure tables stay within cards on mobile */
.post-card table { width: 100%; border-collapse: collapse; }
.post-card th, .post-card td { padding: 6px 8px; border-bottom: 1px solid var(--dezipp-border); text-align: left; }
.post-card thead th { position: sticky; top: 0; background: var(--dezipp-light-grey); }

/* Links: black base, mint hover */
a, a:link, a:visited { color: #000000; text-decoration: none; }
a:hover, a:focus { color: var(--accent-mint); text-decoration: underline; }

/* Post header: do not override background so mood color can show; keep divider only */
.post-header { border-bottom: 2px solid #000; }

/* ===== BORDER WIDTH NORMALIZATION FOR KEY AREAS (hairline) ===== */
/* Right Insights sidebar container and cards */
.right-sidebar-combined.enhanced-sidebar.sidebar-container {
  border-width: var(--ui-border-width);
  border-color: #e5e7eb;
}
.right-sidebar-combined .insights-section-card,
.right-sidebar-combined .insight-stat-card,
.right-sidebar-combined .insight-item {
  border-width: var(--ui-border-width);
}
.right-sidebar-combined .insights-nav-link.active {
  border-width: var(--ui-border-width);
}

/* Notifications toolbar/tabs/pills/cards */
.notifications-toolbar,
.notif-tab,
.notifications-actions .pill,
.notification-card {
  border-width: var(--ui-border-width);
}

/* Header search input and dropdown results */
.appbar-search-input {
  border-width: var(--ui-border-width);
  border-color: #e5e7eb;
}
.global-search-results {
  border-width: var(--ui-border-width);
  border-color: #e5e7eb;
}

/* Thin top loading bar */
#top-loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent-mint); z-index: 99999; transition: width 0.3s ease, opacity 0.3s ease; }
.loading-progress { width: 70%; }
.loading-complete { width: 100%; opacity: 0; }

/* Force mobile header simplification (wins over earlier files) */
@media (max-width: 767px) {
  /* Make the header/logo an appropriate size on mobile */
  :root { --header-offset: 4rem; }

  /* Hide all action buttons on the site header */
  #site-header .header-actions,
  #site-header #header-friends-btn,
  #site-header #header-messages-btn,
  #site-header #create-post-desktop,
  #site-header .header-search { display: none; }

  /* Show hamburger on left, center the logo */
  #site-header .header-inner { 
    justify-content: space-between; 
    align-items: center;
  }
  
  /* Show and position hamburger on the left */
  #mobile-hamburger-btn { 
    display: flex; 
    order: -1;
  }
  
  /* Center the logo */
  #site-header #logo-link { 
    margin: 0 auto; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Ensure the logo image scales within the header offset without overflow */
  #site-header #logo-link img {
    height: auto;
    max-height: var(--header-offset);
    width: auto;
    object-fit: contain;
  }

  /* Keep header inner height consistent with offset */
  #site-header .header-inner { min-height: var(--header-offset); }
  #header-spacer { height: var(--header-offset); }

  /* Hide the right sidebar on mobile */
  .right-sidebar { display: none; }

  /* Add a subtle padding to posts so they don't touch screen edges */
  .main-content-area .posts-content-area {
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* Also hide the right sidebar on tablets and smaller */
@media (max-width: 1023px) {
  .right-sidebar { display: none; }
}

/* Hairline overrides for elements with inline or legacy borders */
#mobile-hamburger-btn,
#mobile-menu-close,
#mobile-create-post,
.mobile-nav-link,
#header-friends-btn,
#header-messages-btn,
.header-btn,
#global-search,
#global-search-results,
.gso-input-wrap,
.gso-close,
.gso-card,
.gso-card img,
.user-action-btn,
.friends-search-input,
.user-card,
.user-card-status,
.notification-card,
.notifications-toolbar,
.notif-tab,
.notifications-actions .pill,
.post-sidebar,
.post-card,
.comment-item {
  border-width: var(--ui-border-width);
}

/* Global Search Overlay polish */
.global-search-overlay .gso-panel { border-top-left-radius: 1rem; border-top-right-radius: 1rem; box-shadow: 0 -8px 32px rgba(0,0,0,.12); }
.gso-top { border-bottom: var(--ui-border-width) solid #e5e7eb; background: linear-gradient(180deg,#fff,#fafafa); }
.gso-top .gso-hero { padding: .25rem .25rem .5rem; }
.gso-hero-title { font-weight: 900; letter-spacing: .02em; font-size: 1.1rem; color: #0f172a; margin-bottom: .35rem; }
.gso-quick-chips { display:flex; gap:.4rem; flex-wrap:wrap; }
.gso-chip { appearance:none; border: var(--ui-border-width) solid #e5e7eb; background: #fff; color:#0f172a; border-radius: 999px; padding: .3rem .6rem; font-weight:700; font-size:.8rem; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.gso-chip:hover { transform: translateY(-1px); background:#f8fafc; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-color:#cbd5e1; }
.gso-input-wrap { border: var(--ui-border-width) solid #e5e7eb; background: #F9FAFB; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); }
.gso-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .85rem; }
.gso-card { border: var(--ui-border-width) solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.gso-card img, .gso-thumb-fallback { border: var(--ui-border-width) solid #e5e7eb; }
.gso-res-item { border: var(--ui-border-width) solid #e5e7eb; box-shadow: 0 1px 1px rgba(0,0,0,0.03); }

/* Mobile sidebar search button */
.mobile-sidebar-search { display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .6rem; border-radius:.6rem; background:#fff; border: var(--ui-border-width) solid #e5e7eb; color:#111827; font-weight:700; font-size:.85rem; }
.mobile-sidebar-search i { color:#6b7280; }
.mobile-sidebar-search:hover { background:#f8fafc; }
.mobile-sidebar-search .ms-label { display:none; }
@media (min-width: 380px) { .mobile-sidebar-search .ms-label { display:inline; font-weight:600; font-size:.82rem; color:#374151; } }

/* === SPORTS: CLEAN RESULTS ROWS === */
#sport-section .sports-results-list { display:flex; flex-direction:column; gap:.4rem; }
#sport-section .sports-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.7rem .9rem; background:#fff; border: 0.2px solid #e5e7eb; border-radius:14px; transition: box-shadow .15s ease, transform .05s ease, border-color .15s ease; }
#sport-section .sports-row:hover { box-shadow: 0 6px 18px rgba(17,24,39,0.08); border-color:#d1d5db; }
#sport-section .sports-row.is-live { border-color:#ef4444; box-shadow: 0 6px 18px rgba(239,68,68,0.12); }
#sport-section .sports-row.is-final { border-color:#10b981; }
#sport-section .sports-row.is-upcoming { opacity: .95; }
#sport-section .sports-row .teams { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
#sport-section .sports-row .teams .team { display:flex; align-items:center; gap:.4rem; font-weight:700; color:#111827; }
#sport-section .sports-row .teams .team .team-name { display:inline-block; min-width: var(--team-col-width, auto); text-align: center; }
#sport-section .sports-row.home-leading .teams .team-home .team-name { color:#111827; text-decoration: underline; text-underline-offset: 3px; }
#sport-section .sports-row.away-leading .teams .team-away .team-name { color:#111827; text-decoration: underline; text-underline-offset: 3px; }
#sport-section .sports-row.is-tied .scoreline { color:#374151; }
#sport-section .sports-row .teams .team .team-avatar { width:22px; height:22px; border-radius:9999px; background:#eef2f7; display:inline-grid; place-items:center; font-size:.65rem; color:#374151; overflow:hidden; box-shadow: inset 0 0 0 1px #e5e7eb; }
#sport-section .sports-row .scoreline { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color:#111827; letter-spacing:.02em; font-weight:800; }
#sport-section .sports-row .teams .scoreline { min-width: 92px; text-align: center; }
#sport-section .sports-row .scoreline .sep { color:#9ca3af; font-weight:700; padding:0 .25rem; }
#sport-section .sports-row .meta { display:flex; align-items:center; gap:.5rem; color:#6b7280; font-size:.75rem; }
#sport-section .sports-row .meta .chip { display:inline-flex; align-items:center; gap:.35rem; padding:.15rem .45rem; border-radius:9999px; background:#f3f4f6; color:#374151; border: 0.2px solid #e5e7eb; font-weight:600; }
#sport-section .sports-row .meta .chip-live { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
#sport-section .sports-row .meta .chip-final { background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
#sport-section .sports-row .meta .chip-neutral { background:#e5e7eb; color:#374151; border-color:#d1d5db; }

/* Enforce horizontal text/layout for sports tabs and strips */
#sport-section .nav-tabs { 
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  flex-wrap: nowrap; 
  overflow-x: auto; 
  overflow-y: hidden; 
}
#sport-section .nav-tab { 
  display: inline-flex; 
  flex-direction: row; 
  align-items: center; 
  white-space: nowrap; 
  writing-mode: horizontal-tb; 
  text-orientation: mixed; 
}
#sport-section .results-strip .strip-days { 
  display: inline-flex; 
  flex-direction: row; 
  white-space: nowrap; 
}

/* ===== UNIVERSAL TYPOGRAPHY OVERRIDES (3 sizes, jet-black) ===== */
:root {
  --universal-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Reduce sizes ~25% */
  --universal-fz-heading: 15px;  /* was 20px */
  --universal-fz-body: 12px;     /* was 16px */
  --universal-fz-small: 10.5px;  /* was 14px */
  --universal-text-black: #000000;
}

/* Apply font family and jet-black text everywhere */
html, body { font-family: var(--universal-font-family); color: var(--universal-text-black); }
/* Exclude SVG fill/stroke; apply to common textual elements */
body, body :where(p, div, span, a, li, ul, ol, dl, dt, dd, label, button, input, select, textarea, blockquote, code, pre, kbd, small, strong, em, b, i, th, td, caption, figcaption, h1, h2, h3, h4, h5, h6) {
  color: var(--universal-text-black);
  -webkit-text-fill-color: var(--universal-text-black);
  font-family: var(--universal-font-family);
}

/* Three size system */
h1, h2, h3, h4, h5, h6 { font-size: var(--universal-fz-heading); line-height: 1.35; font-weight: 500; }
/* Body text elements */
body :where(p, div, span, a, li, dt, dd, label, button, input, select, textarea, blockquote, code, pre, kbd, th, td) { font-size: var(--universal-fz-body); line-height: 1.5; font-weight: 400; }
/* Small text helpers */
body :where(small, .text-xs, .text-sm, .caption, .meta, .helper-text) { font-size: var(--universal-fz-small); line-height: 1.4; font-weight: 400; }

/* Form placeholders also jet-black */
::placeholder { color: var(--universal-text-black); opacity: 1; }
::-ms-input-placeholder { color: var(--universal-text-black); }
::-webkit-input-placeholder { color: var(--universal-text-black); }

/* Links: keep black; optional subtle underline on hover */
a, a:link, a:visited, a:focus, a:active { color: var(--universal-text-black); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Ensure icons inherit black where they use font glyphs */
.fas, .far, .fab, .fal, .fad, i[class*="fa-"] { color: var(--universal-text-black); }

