h1, h2, h3,h4, h5{text-transform: uppercase; padding: 0; margin: 0; }

.hero{
    width: 100%;
    min-height: calc(100vh - 120px);
    background: var(--dark-grey);
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
    position: relative;
    background-size: cover!important; 
    background-position: center!important;
    overflow: hidden;
}

.hero .mask{
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: var(--text-color);
}

.hero .content_wrapper{
    width: calc(100% - 90px);
    height: calc(100% - 60px);
    padding: 30px; 
    position: relative;
}

@media(min-width: 900px){
    .hero .content_wrapper{
        width: 672px;
    }
}

.hero .content_wrapper h1{
    font-size: 8vh;
}

.hero .content_wrapper h1, .hero .content_wrapper h2, .hero .content_wrapper h3, .hero .content_wrapper p{
    color: white;
    line-height: 0.9em;
}

.hero .content_wrapper p{
    line-height: 1.2em;
    font-size: 3vh;
}



.countdown{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 1em 0;
    width: 30vw;
}

.countdown.elapsed{
    grid-template-columns: 1fr;
}

.countdown .count_digit{
    text-align: center;
}

.countdown .count_digit h1, .countdown .count_digit p{
    line-height: 1em; padding: 0; margin: 0; 
    
}


@media(max-width: 740px){
    .hero .content_wrapper h1{
        font-size: 48px;
    }

    .hero .content_wrapper p{
        font-size: 18px;
    }

    .countdown{
        width: 100%; 
    }

    .countdown .count_digit p{
        font-size:  2vh;
    }

    .hero .content_wrapper{
        width: calc(100% - 30px);
        padding: 15px; 
    }
}

.block{
    background: var(--text-color);
    color: white;
    padding: 30px;
}

.block.short_top{padding-top: 0;}
.block.short_bottom{padding-bottom: 1em;}

.block.block_head{
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
}

.block.block_bottom{
    border-bottom-left-radius: 20px; 
    border-bottom-right-radius: 20px;
    margin-bottom: 1em;
}

.block:last-child{padding-bottom: 10em;}

.block h1, .block h2, .block h3, .block p{color: white;}

.block .block_head{
    padding: 3em 0 1em 0;
}

.dojo_item{
    border-radius: 10px; 
    overflow: hidden;
    background: var(--dark-grey);
    position: relative;
}

.dojo_item .img_wrapper{
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover!important; 
    background-position: center!important;
    border-top-left-radius: 10px; 
    border-top-right-radius: 10px;
    position: relative;
}

.dojo_item .img_wrapper .tag{
    position: absolute; 
    top: 10px; left: 10px; 
    color: white; font-size: 11px;
    padding: 3px 10px; 
    background: var(--text-color);
    border-radius: 3px; 
    border: 1px solid rgba(125,125,125, 0.25);
    text-transform: uppercase;
}

.dojo_item .img_wrapper .tag.tag_right{
    left: initial;
    right: 10px;
    background: var(--primary-color);
    color: var(--text-color);
}

.dojo_item .img_wrapper .tag span.icon{
    font-size: 13px; 
    transform: translateY(2px);
    margin-right: 0.5em;
}


.dojo_grid{
    gap: 1em;
}

.dojo_grid .text_grid{
    display: grid; 
    grid-template-columns: 100px 1fr;
    gap: 1em;
}

.dojo_grid .text_grid .logo{
    background-size: 60%!important;
    background-position: center!important;
    
    width: 100px; height: 100px; 
}

.dojo_grid .text_grid .logo.invert{
    filter: invert(100%);
}

.dojo_grid .text_grid > div:nth-child(2){
    padding: 1em 10px 4em 10px;
    
}

.dojo_grid .text_grid h3{padding: 0; margin: 0; }

.dojo_grid .text_grid p{opacity: 0.7;}

.dojo_grid .text_grid > div:nth-child(2) .button{
    position: absolute; 
    bottom: 2em; left: 120px; 
}

.dojo_item .text_wrapper{padding: 20px 20px 4em 20px; }

.dojo_item .text_wrapper .button{
    position: absolute;
    bottom: 2em;
    left: 20px;
}



@media(min-width: 940px){
    .dojo_grid_2{
        grid-template-columns: 1fr 1fr;
    }

    .dojo_grid_3{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dojo_grid_4{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(min-width: 1240px){
    .dojo_grid_4{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.block p.dojo_status{
    
    color: var(--primary-color);
    text-transform: uppercase;
}

.dojo_status span{
    font-size: 1.2em;
    transform: translateY(3px);
}

.block_head h1{line-height: 1em; padding: 0; margin: 0; }

.dojo_head_grid, .dojo_nav_grid{
    display: grid; 
    gap: 10px; 
}

@media(min-width: 940px){
    .dojo_head_grid{
    grid-template-columns: 1fr 360px; 
    align-items: end;

}

    .dojo_nav_grid{
        grid-template-columns: 1fr 360px; 
        align-items: center;
    }
}



p.highlight, h2.highlight, h3.highlight{
    color: var(--primary-color);
}

.bar{
    display: block; 
    border-top: 1px solid var(--light-grey);
    margin: 1em 0;
    opacity: 0.3;
}

.btn_line{
    padding: 5px;
    display: flex; 
    justify-content: space-between;
    background: var(--dark-grey);
    gap: 5px; 
    border-radius: 10px; 
    
}

.btn_line .btn{
    padding: 8px 10px; 
    background: transparent;
    text-decoration: none;
    border-radius: 5px; 
    font-size: 13px;
    text-transform: uppercase; 
    transition-duration: 0.25s;
    color: white;
}

.btn_line .btn:hover{
    background: var(--dark-grey2);
}

.btn_line .btn.active{
    background: var(--text-color);
}

a.button{
    margin-bottom: 2px; 
}


.dojo_item .text_wrapper{
    padding: 10px; 

}

.dojo_item .text_wrapper .profile_grid{
    display: grid; 
    grid-template-columns: 40px 1fr 20px;
    gap: 10px; 

}

.dojo_item .text_wrapper .profile_grid .avatar{
    width: 40px; height: 40px; 
    background: url(../images/backgrounds/icon-user-profile.svg) no-repeat;
    border-radius: 50%; 
    background-size: cover!important; 
    background-position: center!important;
}

.dojo_item .text_wrapper .profile_grid > div:nth-child(2){
    position: relative; 
    padding-bottom: 1.5em;
}

.dojo_item .text_wrapper .profile_grid a{
    left: 0; 
    bottom: 0px; 
}

h2.dojo{padding-bottom: 0.5em;}

.starts_in{transform: translateY(10px);}

.dojo_nav{
    position: absolute;
    width: calc(100% - 40px);
    top: 20px;
    left: 20px;
    z-index: 5;
}

.box{
    display: block; 
    padding: 20px; 
    background: white;
    border-radius: 20px; 
}

#dashboard{
    padding-bottom: 10px;
}

#dashboard.show .grid .box {
    opacity: 1;
    transition-duration: 0.5s;
}

.video_preview, .image_preview{
    width: calc(100% - 4px); 
    aspect-ratio: 16 / 9;
    border: 2px solid var(--light-grey);
    border-radius: 10px; 
    overflow: hidden; 
    margin: 0 0 5px 0; 
    background-size: cover!important; 
    background-position: center!important;
}

/* an empty preview is a state, not a hole: without this the box is an
   invisible outline and "no cover yet" looks the same as a broken one */
#dojo_image_id:not([style]){
    background: var(--light-grey);
}

.dojo_week_grid{
    display: grid; 
    grid-template-columns: 80px 2fr 220px 1fr 50px 60px;
    gap: 1em;
}

.dojo_week_grid .form_field{
    padding: 5px 0; margin: 0; 
}

#dojo_calendar .description_field{
    display: none;
}

#dojo_calendar.show_description .description_field{
    display: block;
}

.dojo_entry{
    margin-bottom: 5px; 
    border-radius: 5px; 
    overflow: hidden;
    border: 1px solid rgba(125,125,125,0.5);
    min-height: 80px;
}

.dojos_list_grid{
    display: grid; 
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1em;
}

.dojos_list_grid .dojo_avatar{
    width: calc(100% - 2px);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--text-color);
    border-radius: 5px; 
    background: var(--text-color); 
    background-size: cover!important;
    background-position: center!important; 
}

.dark .dojos_list_grid .dojo_avatar{
    border: 1px solid var(--light-grey); 
}

.dojo_entries .dojo_grid{
    display: grid; 
    grid-template-columns: 1fr;
    min-height: 80px; 
    gap: 0;
}

@media(min-width: 1200px){
    .dojo_entries .dojo_grid{
        grid-template-columns: 400px 1fr;
        gap: 10px;
    }
}

.dojo_entries .dojo_grid .grid_profile{
    display: grid;
    grid-template-columns: 40px 80px 1fr;
    gap: 10px;
    background: var(--dark-grey); 
    border-radius: 5px; 
    position: relative;
    
}

.dojo_entries .dojo_grid .grid_profile h2{
    padding: 10px 10px;
    
}

.dojo_entries .dojo_grid .grid_profile .nav{
    position: absolute; 
    bottom: 10px; right: 10px; 
}

.dojo_entries .dojo_grid .grid_profile .avatar{
    background: #151515 url(../images/backgrounds/icon-user-profile.svg) no-repeat;
    background-size: cover!important; 
    background-position: center!important; 
    height: 80px; 

}

.dojo_entries .dojo_grid .grid_profile .text_wrapper{
    padding: 15px 10px; 
}

.dojo_entries .grid_dojo_6{
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding-right: 5px; 
    gap: 10px; 
}

.dojo_entries .grid_dojo_6 > div{
    aspect-ratio: 1 / 1;
    margin: 5px 0;
    border: 1px solid rgba(125,125,125,0.5); 
    border-radius: 5px; 
    background: radial-gradient(circle at 33% 33%, rgba(125,125,125,0.3) 0%, rgba(125,125,125,0) 100%);
    
    background-size: cover!important;
    background-position: center!important;
}
/* The way out of the editor. It sits above the title rather than beside it so
   a long dojo name can't push it off the line. */
.dojo_back{
    margin: 0 0 2px 0;
}

.dojo_back a{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color);
    opacity: 0.65;
    text-decoration: none;
}

.dojo_back a:hover{
    opacity: 1;
}

.dojo_back .material-symbols-outlined{
    font-size: 1.2em;
}
