/* 1. MAIN HEADER CONTAINER */
#header {
    position: relative;
    margin: 0;
    padding: 2rem 2rem 1rem 2rem !important; 
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 160px; /* Ensures space for the absolute buttons */
	padding-bottom: 0.5rem !important;
}

/* 2. SITE TITLE */
#header div.title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin: 0 0 10px 0;
    color: #111827;
	padding-right: 250px; /* IMPORTANT: Creates a 'hole' for the buttons to sit in */
}

/* User Panel - Top Right Controls */
#user_panel {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
    
    /* THE FIX: Use flex to create consistent spacing */
    display: flex !important;
    gap: 10px; /* Adjust this number to increase/decrease space between words */
    align-items: center;
}

#user_panel p {
    margin: 0;
    display: flex; /* Ensures the links inside the <p> also follow the gap */
    gap: 10px;
}

#user_panel a {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevents "log out" from breaking into two lines */
}

#user_panel a:hover {
    background: #2563eb;
    color: #ffffff;
}

#header_feed {
    display: block;
    margin-bottom: 20px;
    padding-right: 180px; /* IMPORTANT: Creates a 'hole' for the buttons to sit in */
}

#header_feed_title {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}

#header_feed_desc {
    margin: 4px 0 0 0;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
    letter-spacing: normal !important;
}

/* 4. THE BUTTON STACK (Donations/Budget) */
/* Positioned in the middle-right, above the Location bar */
div#ad_like_links {
    position: absolute;
    right: 2rem;
    top: 5.5rem; /* Adjust this to move the stack up or down */
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    z-index: 20;
}

div#ad_like_links a {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    width: 100px; /* Keeps buttons uniform */
    text-align: center;
}

div#ad_like_links a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* 5. THE LOCATION BAR (The Bottom Line) */
#header_top_feeds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 15px;
    margin-top: auto; /* Pushes it to the very bottom of the header */
    border-top: 1px solid #f1f5f9;
	margin-bottom: 0 !important;
}

div.header_top_feed_title {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 12px;
}

div.header_top_feed_item a {
    display: inline-block;
    padding: 6px 14px;
    margin: 2px 4px;
    background: #f8fafc;
    color: #475569;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The Bubble Effect on Hover */
div.header_top_feed_item a:hover {
    background: #ffffff;             /* Lightens up as it lifts */
    color: #2563eb;                 /* Text turns blue */
    border-color: #2563eb;          /* Border matches text */
    transform: translateY(-2px);    
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure the active (blue) pill doesn't fly away too much */
div.header_top_feed_item a[style*="underline"]:hover {
    background: #1d4ed8 !important; /* Slightly darker blue on hover */
    color: #ffffff !important;
    transform: translateY(-1px);    /* Smaller pop for the already active item */
}

div.header_top_feed_item p {
    margin: 0 !important;
    padding: 0 !important;
}

/* HIDE DECORATIVE EXTRAS */
#header_feed_bracket_root, #header_feed_bracket_split, .float_clear {
    display: none !important;
}