/**
 * Theme Name: Iron Crusade
 * Template:   twentytwentyfive
 */

/*@media (max-width: 600px) {
    .page_title {
        padding-top: 4rem;
    }
}*/


.wp-block-cover {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.entry-content {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Start Transparent */
    background-color: transparent;
    color: white;
    /* Start with light text */
    padding: 0px 20px 0px 20px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition */
    z-index: 1000;
    /* Make sure it doesn't move the elements below (which position:sticky does by default) */
}

/* CSS class to be added by JavaScript */
.scrolled {
    background-color: var(--wp--preset--color--base);
    color: white;
    /*border-bottom: 1px solid #333; /* Optional: adds a separation line */
}

.wp-block-navigation {
    --navigation-layout-justification-setting: center !important;
    --navigation-layout-justify: center !important;
}

.wp-block-navigation a.wp-block-navigation-item__content {
    padding: 0.5rem 0.2rem !important;
    margin: 0rem !important;
    /*font-size: 2rem !important;*/
    display: block !important;
    text-align: center !important;
    line-height: 1.2rem;
}

/* Warhammer Date Block: Force text wrapping */
.warhammer-date-display {
    white-space: pre-wrap;
    /* CSS3, respects newlines and wraps text */
    word-wrap: break-word;
    /* Older browsers, ensures long words break */
    overflow-x: auto;
    /* Adds scrollbar only if absolutely needed */
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.warhammer-date-block-link {
    text-decoration: none;
    display: block;
    /* Make the link behave like a block */
}

@media print {
    body {
        color: black !important;
        background-color: white !important;
    }

    .wp-block-cover {
        box-shadow: none !important;
    }

    .wp-block-cover * {
        color: black !important;
        background-color: white !important;
    }

    header {
        display: none !important;
    }

    footer {
        display: none !important;
    }

    .wp-site-blocks .wp-block-cover {
        display: none !important;
    }

    .wp-site-blocks>.wp-block-cover:first-of-type {
        display: flex !important;
        min-height: 1px !important;
        padding: 0px !important;
    }

    .wp-site-blocks>.wp-block-cover:first-of-type .wp-block-group:first-of-type {
        padding-top: 0px !important;
        margin-block-start: 0px !important;
    }

    .wp-site-blocks>.wp-block-cover:first-of-type .wp-block-group {
        margin-block-start: 0px !important;
    }

    /*h2 {
        break-before: auto;
        page-break-before: always;
    }

    h2:first-of-type {
        break-before: avoid;
        page-break-before: unset;
    }*/

    p,
    ul,
    li {
        font-size: 12px;
        margin-block-start: 5px !important;
    }

    li {
        margin-top: 0px !important;
    }

    h1 {
        font-size: 25px;
        line-height: 25px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 15px;
    }

    .wp-block-post-excerpt {
        margin-block-start: 5px !important;
        display: none !important
    }

    .entry-content {
        padding: 0px 36px !important;
    }
}