/* Accessibility Font Resizer */
.font-resizer {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1); /* Lighter background for dark topbar */
    padding: 3px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.font-resizer button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7); /* Muted white for inactive state */
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: var(--heading-font);
    font-weight: 700;
}

.font-resizer button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.font-resizer button.active {
    background-color: #fff;
    color: var(--primary-color); /* Teal text on white button */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.font-resizer .btn-small { font-size: 12px; }
.font-resizer .btn-medium { font-size: 16px; }
.font-resizer .btn-large { font-size: 21px; }

/* Topbar Specific Styles (now inside <header> for proper framework behavior) */
#topbar {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--primary-dark) !important; /* Dynamic Theme Color */
    transition: margin-top 0.3s ease, background-color 0.3s ease; /* Smooth hide on scroll & color switch */
}

#topbar .topbar-widget {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Keep topbar dark teal even when header becomes sticky-light */
header.smaller #topbar {
    background-color: var(--primary-dark) !important;
}

/* ==========================================================================
   Universal Font Scaling – scale from root so teal-theme rem sizes match
   ========================================================================== */

/* Default (A): browser root 16px – no class on html */

/* A+: root 19px – all rem-based text scales together */
html.font-medium {
    font-size: 19px;
}

/* A++: root 21px – noticeable increase for accessibility */
html.font-large {
    font-size: 21px;
}

/* Body inherits from root; line-height for readability when scaled */
body.font-medium,
body.font-large {
    line-height: 1.6;
}

/* Layout protection at large size */
html.font-large .container {
    max-width: 1400px;
}

/* Ensure Owl Carousel doesn't break layout */
.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* Mobile adjustments 230000000   0 */
@media (max-width: 992px) {
    #topbar {
        display: none; 
    }
}
