/**
 * Theme Name: Reefton CFA
 * Template: twentytwentyfive
 */

body {
    min-height: 100vh;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-site-blocks>main {
    flex: 1 0 auto;
}

body.single-post .wp-site-blocks>main {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.cfa-fire-danger {
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.cfa-rating-Low {
    background: #4caf50;
    color: #fff;
}

.cfa-rating-Moderate {
    background: #ffeb3b;
    color: #000;
}

.cfa-rating-High {
    background: #ff9800;
    color: #fff;
}

.cfa-rating-Extreme {
    background: #f44336;
    color: #fff;
}

.cfa-rating-Catastrophic {
    background: #6a1b9a;
    color: #fff;
}

.cfa-forecast,
.cfa-restriction {
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 400;
}

.cfa-updated,
.cfa-issued {
    font-size: 12px;
}



.cfa-afdrs-wheel {
    width: 100%;
    position: relative;
    font-family: Arial, sans-serif;
    text-align: center;
}

.cfa-wheel {
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 2/1;
    border-radius: 260px 260px 0 0;
    overflow: hidden;
    position: relative;
    border: 6px solid #333;
    border-bottom: none;
}


.cfa-wheel::before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #333;
    width: 100%;
    left: 0;
    z-index: 1;
}

.cfa-wheel::after {
    content: '';
    position: absolute;
    bottom: 0;
    border-radius: 100%;
    ;
    background-color: #fff;
    border: 3px solid #333;
    width: 30px;
    height: 30px;
    left: 50%;
    z-index: 1;
    transform: translate3d(-50%, 50%, 0);
}

.cfa-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 100%;
}

.cfa-seg-none {
    background: #ffffff;
}

.cfa-seg-moderate {
    background: #2ecc71;
    transform: rotate(-10deg);
}

.cfa-seg-high {
    background: #f1c40f;
    transform: rotate(45deg);
}

.cfa-seg-extreme {
    background: #e67e22;
    transform: rotate(90deg);
}

.cfa-seg-catastrophic {
    background: #e74c3c;
    transform: rotate(135deg);
}

.cfa-needle {
    width: 4px;
    height: 80%;
    border-radius: 10px;
    background: #fff;
    border: 3px solid #111;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: 7px 100%;
    z-index: 1;
}

.cfa-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -6px;
    width: 16px;
    height: 16px;
    background: #111;
    border-radius: 50%;
}

.cfa-rating-label {
    margin: 0 auto;
    font-weight: bold;
    font-size: 20px;
    max-width: calc(90% - 4px);
    border: 3px solid #333;
    border-top: 0;
    padding: .25em;
}

.cfa-meta {
    margin-top: 10px;
    font-size: 13px;
}

.wp-block-button__link {
    text-wrap: balance;
}

.wp-block-group.is-style-content-box {
    padding: 1em;
    overflow: hidden;
    position: relative;
}

.wp-block-group.is-style-content-box::before {
    content: '';
    height: 8px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--wp--preset--color--accent-2);
}

.wp-block-group.is-style-content-box.is-style-content-box--orange::before {
    background-color: var(--wp--preset--color--accent-3);
}

.wp-block-group.is-style-content-box.is-style-content-box--green::before {
    background-color: var(--wp--preset--color--accent-4);
}

.wp-block-group.is-style-content-box.is-style-content-box--red::before {
    background-color: var(--wp--preset--color--accent-1);
}

.wp-block-group.is-style-content-box h2 {
    font-size: 1em;
    font-weight: bold;
    border-bottom: 1px solid #d1d1d1;
    padding: 0 .5em .5em;
}

.text-balance {
    text-wrap: balance;
}

strong {
    font-weight: bold;
}

/* GRIDS */
@media all and (max-width: 700px) {
    .is-layout-grid {
        display: flex !important;
        flex-direction: column;
    }
}