
:root {
    box-model: border-box;
    --theme-color: #231f20;
    --accent-color: #be1e20;
}

* {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    --display: grid;
    --grid-template: 'header' 'main' 'footer';
    --grid-template-rows: 3rem 1fr 3rem;
}

header {
    position: sticky;
    top: 0;
    background: var(--theme-color);
    color: #fff;
    height: 4rem;
    overflow: hidden;
    box-shadow: 0 0 1rem 0 rgba(0,0,0,.3);
    z-index: 1;
}

header div {
    padding: .5rem !important;
    display: flex;
}

header img {
    height: 3rem;
    padding-right: 1rem;
}

header h1 {
    padding: 0;
    margin: 0;
    line-height: 3rem;
    font-size: 1rem;
    color: inherit;
    text-shadow: .1rem .1rem .1rem .1rem rgba(255,255,255,.4);
}

main {
}

.content {
    padding: 1rem;
    margin: 0 auto;
    max-width: 60rem;
}

section {
    break-inside: avoid;
}

section.grey {
    background: #eee;
    box-shadow: -60rem 0 0 #eee, -30rem 0 0 #eee, 30rem 0 0 #eee, 60rem 0 0 #eee;
}



.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.columns-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
    
.checklist ul {
    padding: 0;
}

.checklist li {
    list-style: none;
}

.checklist label {
    display: block;
    padding: .2rem 0;
}

h2, h3 {
    margin-bottom: 0;
}

h2 {
    border-bottom: .2rem solid #be1e20;
}

th, td {
    text-align: left;
}

th {
    padding-right: .5rem;
}

ul {
    padding-left: 1rem;
    margin-top: .5rem;
}

.agenda li span.time {
    display: block;
    font-size: .8em;
    font-weight: bold;
}

.agenda li {
    padding: .5rem 0;
    list-style: none;
}

.agenda ul {
    padding-left: 0;
}

.agenda-past-event {
    opacity: .5;
}

.agenda .agenda-current-event span.time {
    background:#be1e20; 
    color: white;   
    margin-inline: -.3rem;
    padding-inline: .3rem;
    border-radius: .3rem;
}


.agenda .agenda-next-event {
    color: var(--accent-color);
}

.field, .field-inline {
    margin-block: 3rem;
    line-height: 2em;
    border-bottom: .1rem solid var(--theme-color);
}

.field {
    padding-bottom: 4rem;
}

.hide {
    display: none;
}

main:has(.enable-focus:checked) {
}

.focus-show-more {
    display: none;
}

body:not(.admin) .admin-panel {
    display: none;
}

.buttons a, .button label {
    display: block;
    padding: .5em;
    border: .1rem solid #ccc;
    background: #f8f8f8;
    border-radius: .5rem;
    margin-block: .2rem;
}

.buttons .seen a, .button .seen label {
    border: .1rem solid #ccc;
    background: #be1e20;
    color: #fff;
}


#map {
  height: 30rem; 
  width: auto;
}

@media screen and (max-width: 600px) {
    .columns-2, .columns-3 {
      display: block !important;
    }

    body:has(.focus) .focus-show-more {
        display: block;
    }

    body:has(.focus):has(.focus-show-more input:not(:checked)) .nofocus,
    body:has(.focus):has(.focus-show-more input:not(:checked)) section:not(.focus) {
        display: none;
    }

    body:has(.focus):has(.focus-show-more input:not(:checked)) #map {
        height: 15rem;
    }

    footer {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
    }

    footer label {
        display: block;
        height: 1.8rem;
        line-height: 1.8rem;
        text-align: center;
        background: #eee;
    }
}

@media print {
    header {
        position: relative;
        background: none;
        color: #231f20;
        box-shadow: none;
    }

    .noprint, .agenda-next-event {
        display: none;
    }
}