/*
Theme Name: Mosne Astronomy Club
Theme URI: https://github.com/mosne/mosne-astronomy-club
Author: mosne
Author URI: https://mosne.it
Description: A simple theme for astronomy clubs based on Twenty Twenty Five
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version:1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: mosne-astronomy-club
Tags: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* add red overlay  like a night filter */
.theme-dark body {
 --mosne-dark-palette-base: #2F0002;
 --mosne-dark-palette-contrast: #F80605;
 --mosne-dark-palette-accent-1: #2F0002;
 --mosne-dark-palette-accent-2: #2F0002;
 --mosne-dark-palette-accent-3: #2F0002;
 --mosne-dark-palette-accent-4: #2F0002;
 --mosne-dark-palette-accent-5: #140001;
 --mosne-dark-palette-nm-900: #140001;
 --mosne-dark-palette-nm-700: #2F0002;
 --mosne-dark-palette-nm-400: #A1070D;
 --mosne-dark-palette-nm-300: #F80605;
 --wp--preset--color--base: var(--mosne-dark-palette-base, #2F0002);
 --wp--preset--color--contrast: var(--mosne-dark-palette-contrast, #F80605);
 --wp--preset--color--accent-1: var(--mosne-dark-palette-accent-1, #2F0002);
 --wp--preset--color--accent-2: var(--mosne-dark-palette-accent-2, #2F0002);
 --wp--preset--color--accent-3: var(--mosne-dark-palette-accent-3, #2F0002);
 --wp--preset--color--accent-4: var(--mosne-dark-palette-accent-4, #2F0002);
 --wp--preset--color--accent-5: var(--mosne-dark-palette-accent-5, #140001);
 --wp--preset--color--nm-900: var(--mosne-dark-palette-nm-900, #140001);
 --wp--preset--color--nm-700: var(--mosne-dark-palette-nm-700, #2F0002);
 --wp--preset--color--nm-400: var(--mosne-dark-palette-nm-400, #A1070D);
 --wp--preset--color--nm-300: var(--mosne-dark-palette-nm-300, #F80605);
 prefers-color-scheme: dark;
 background-color: var(--mosne-dark-palette-nm-900);
}

.wp-block-site-title :where(a){
    white-space: nowrap;
}

.wp-block-tabor-dark-mode-toggle__track,
.wp-block-tabor-dark-mode-toggle__selector{
    width: calc(var(--icon-size)*1.25);
}

.theme-dark .wp-block-tabor-dark-mode-toggle__input+.wp-block-tabor-dark-mode-toggle__track .wp-block-tabor-dark-mode-toggle__selector {
    transform: translateX(0);
}

.theme-dark img{
    filter: grayscale(1) !important;
}

.theme-dark::before{
    content: "";
    background-color: #f00;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    opacity: .9;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.sugar-calendar-event-list-block.sugar-calendar-event-list-block__list-view {
    color: var(--wp--preset--color--contrast) !important;
}
.sugar-calendar-event-list-block.sugar-calendar-event-list-block__list-view * {
    color: currentColor !important;
}

/* elementor fix */

.elementor-page .wp-block-post-title{
    text-align: center;
}

.ai1ec-main-container,
.elementor-page .elementor[data-elementor-type="wp-page"]{
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
}

.ai1ec-main-container .timely img, #ai1ec-container img{
    max-width: 100%;
}

.ai1ec-event-title{
    color: var(--wp--preset--color--contrast) !important;
    font-size: var(--wp--preset--font-size--large) !important;
    font-weight: 400 !important;
}

ai1ec-agenda-view .ai1ec-event-description {
    font-size: 16px;
}

.timely {
    font-family: inherit;
}

.cookies-per-purpose{
    color: initial;
}
#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header,
#cmplz-cookies-overview .cmplz-dropdown summary, #cmplz-document .cmplz-dropdown summary,
#cmplz-cookies-overview .cmplz-dropdown, #cmplz-document .cmplz-dropdown {
    background: #003264;
}

span.cmplz-icon.cmplz-open svg {
    fill: #fff;
}

.wp-block-query-pagination-numbers{
    display: flex;
    gap: 1rem;
}

.wp-block-mosne-text-to-speech__button{
    border-radius: 38px;
}

/* mobile only */
@media (max-width: 600px) {
    .main-navigation{
        order: 999;
        flex-grow: 0;
    }
}

/* desktop only */
@media (min-width: 768px) {
    .wp-site-blocks > header{
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: var(--wp--preset--color--base);
    }
    .admin-bar .wp-site-blocks > header{
        top: 32px;
    }
}
