/*
Theme Name: Ash Green Primary School PTFA
Theme URI: https://ashgreenprimary.co.uk/
Author: Ash Green PTFA Committee
Description: Custom lightweight woodland-green WordPress theme for Ash Green Primary School PTFA (Trentham). Includes custom post types for PTFA Events (with live webcal:// iCal feed), Weekly Mini Projects, Committee Notices, and role-aware top utility navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ash-green-ptfa
*/

/* Base helpers complementing Tailwind CSS */
#top-utility-bar {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.fade-in {
    animation: ptfaFadeIn 0.28s ease-in-out;
}

@keyframes ptfaFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-scroll::-webkit-scrollbar {
    width: 5px;
}

.social-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.social-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

/* Adjust sticky header when WordPress Admin Bar is visible at top */
body.admin-bar header.sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.sticky {
        top: 46px;
    }
}

/* WordPress wp_nav_menu() item styling */
header nav ul li a,
#mobile-nav ul li a {
display: block;
padding: 0.5rem 1rem;
border-radius: 0.75rem;
color: #475569;
font-weight: 600;
font-size: 0.875rem;
transition: background-color 0.2s ease, color 0.2s ease;
}

header nav ul li a:hover,
#mobile-nav ul li a:hover {
background-color: #f1f5f9;
color: #2D4D23;
}

header nav ul li.current-menu-item > a,
header nav ul li.current_page_item > a,
#mobile-nav ul li.current-menu-item > a,
#mobile-nav ul li.current_page_item > a {
background-color: #F1F6EF;
color: #2D4D23;
font-weight: 700;
}

/* Adjust sticky header when WordPress Admin Bar is visible at top /