:root {
    --dbr-red: #CC0033;
    --dark-brown: #6a4544;
    --green: #007b69;
    --greener: #44A083;
    --correct: var(--greener);
    --light-grey: hsl(0, 0%, 98%);
    --superlight-background: hsl(0, 0%, 99%);
    --light-background: var(--light-grey);
    --medium-light-background: rgba(0, 0, 0, 0.05);
    --medium-background: hsl(0, 0%, 85%);
    --light-green: rgba(102, 179, 155, 0.3);
    --dull-blue: #9f9f9f;
    --light-blue: #dcdcdc;
    --blue-gradient: linear-gradient(15deg, var(--dull-blue), var(--light-blue));
    --blue-gradient-180: linear-gradient(200deg, var(--dull-blue), var(--light-blue));
    --light-gradient: linear-gradient(15deg, var(--light-grey), #eee);
    --corner-60: polygon(17.5px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
    --corner-60-inverse: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 17.5px) 100%, 0 100%);
    --shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    --super-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    --hard-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    --soft-shadow: drop-shadow(var(--shadow));
    --screen-width: 1200px;
    --article-width: 900px;
    --soft-corner: 0.5rem;
    --small-padding: 0.5rem;
    --medium-padding: 1rem;
    --large-padding: 2rem;
    --thin-border: 2px solid var(--light-blue);
    --white-border: 0px solid white;
    --menu-font-size: 1rem;
    --menu-font-weight: 600;
    --body-width: 60rem;
    --thick-border: 10px solid var(--dbr-red);
    --red-border: 4px solid var(--dbr-red);
    --text-width: 80ch;
    --input-border: 2px solid #666;
    --focus-border: 2px solid #3779EB;
}

/* TYPOGRAPHY */
html,
input,
textarea,
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

body {
    background-image: url(../images/back-35.svg);
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top center;
    margin: 0;
    padding: 0;
}

body li,
body p {
    line-height: 1.6rem;
}

body.user-role-administrator {
    background-image: none;
}

select {
    border: 1px solid #666;
}

select,
option {
    font-size: 1rem;
    padding: 0.2rem;
    background-color: #fff;
}

option {
    -moz-appearance: none;
    appearance: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    /* font-family: Montserrat; */
    font-weight: bolder;
    margin: 0;
}

body.url-dbr25-ddev-site h1 a,
body.url-dbr25-ddev-site h1,
body.url-dbr25-ddev-site h2 a,
body.url-dbr25-ddev-site h2,
body.url-dbr25-ddev-site h3 a,
body.url-dbr25-ddev-site h3 {
    color: green;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: var(--large-padding);
    margin-bottom: var(--small-padding);
}

h3~p {
    margin-top: 0;
}

h3 strong {
    font-weight: bold;
}

h4 {
    font-size: 1.2rem;
    margin-top: var(--large-padding);
    margin-bottom: var(--small-padding);
}

h5 {
    font-size: 1.0rem;
}

h6 {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: black;
    /* border-bottom: 1px solid #fcfcfc; */
}

p a {
    border-bottom: 1px solid #ccc;
}

a:hover {
    text-decoration: underline;
}

/* Match exactly the root URL */
#mega-menu a[href="/"] {
    color: darkred;
}

h2 a:hover {
    text-decoration: none;
}

/* PAGE TOP */
nav#top-menu {
    background-color: var(--dbr-red);
    min-height: 70px;
    /*
    text-transform: uppercase;
    color: white;
    font-weight: var(--menu-font-weight);
    font-size: var(--menu-font-size);
    padding-top: 40px;
    padding-bottom: 10px;
    */
}

nav#top-menu span,
nav#top-menu a {
    color: white;
}

nav#top-menu span:hover {
    background-color: transparent;
    cursor: default;
}

#page-top {
    /* background-color: var(--light-grey);*/
    /* box-shadow: lightgrey 2px 4px 2px; */
    /* height: 5rem; */
}

#footer-wrapper,
#content-wrapper,
#page-top-wrapper {
    max-width: var(--screen-width);
    margin: 0 auto;
}

#logo {
    position: absolute;
    margin-top: 1rem;
}

#logo img {
    max-height: 80px;
    width: auto;
}

/* Footer */
#footer {
    padding: 1rem 0;
    background-color: var(--medium-light-background);
    margin-bottom: 4rem;
    clear: both;
    max-width: calc(var(--screen-width) - 2rem);
    margin: var(--large-padding) auto;
    padding: 1rem;
    border-bottom: var(--thick-border);
}


/* Service menu */
#block-dbr2024-randy-servicemenu2025 {
    float: right;
    margin-top: 16px;
    text-transform: uppercase;
    max-height: 2rem;
    z-index: 200;
    position: relative;
}

#block-dbr2024-randy-servicemenu2025 li a:hover,
#block-dbr2024-randy-servicemenu2025 li {
    background-color: transparent;
}

#block-dbr2024-randy-servicemenu2025 li li {
    text-transform: none;
}

#block-dbr2024-randy-servicemenu2025 a,
#block-dbr2024-randy-servicemenu2025 .style-default li,
#block-dbr2024-randy-servicemenu2025 li,
#block-dbr2024-randy-servicemenu2025 ul {
    background: var(--dbr-red) !important;
    background-color: var(--dbr-red) !important;
    border: 0;
    font-weight: normal;
}

#block-dbr2024-randy-servicemenu2025 ul {
    margin-top: -0.6rem;
}

#block-dbr2024-randy-servicemenu2025 .sf-sub-indicator {
    right: 1rem;
    color: white;
}

#block-dbr2024-randy-servicemenu2025 ul.sf-menu ul .sf-sub-indicator:after {
    content: '▸';
}

nav.service-menu {
    /* background-color: var(--dull-blue); */
    /* background: var(--blue-gradient-180); */
    text-align: right;
    margin: 0;
    height: 1.5rem;
    padding-top: 0.5rem;
    font-size: 90%;
    font-weight: var(--menu-font-weight);
}

nav.service-menu ul {
    padding: 0;
    margin: 0 auto;
    /* max-width: var(--screen-width); */
}

nav.service-menu ul li {
    display: inline;
    list-style: none;
    margin: 0 1rem;
    padding: 0;
    /* color: white; */
}

nav.service-menu ul li a {
    /* color: white; */
}

#block-dbr2024-randy-brugernavn {
    float: right;
    margin-top: -4rem;
    margin-right: .5rem;
}

/* MEGA MENU */
nav#mega-menu {
    /* width: var(--screen-width);*/
    /* margin: -5rem auto 2rem auto; */
    height: 100px;
    border-bottom: var(--thick-border);
    font-size: var(--menu-font-size);
    font-weight: var(--menu-font-weight);
    text-transform: uppercase;
}

ul.sf-menu.sf-horizontal.sf-shadow ul,
ul.sf-menu.sf-vertical.sf-shadow ul,
ul.sf-menu.sf-navbar.sf-shadow ul ul {
    box-shadow: none;
    border: var(--thin-border);
}

ul.sf-menu .sf-sub-indicator:after {
    content: '▾';
    display: none;
}

ul.sf-menu .sf-sub-indicator {
    right: -0.75rem;
    color: var(--dull-blue);
}

#mega-menu ul {
    /* background-color: var(--light-background); */
    background-color: white;
    float: right;
    /* margin: 0 auto; */
    /* max-width: var(--screen-width); */
    /* margin-right: -2rem; */
}

span.nolink {
    display: block;
    /* width: 10rem; */
}

#mega-menu ul li a,
#mega-menu ul li {
    margin: 0;
    padding-right: 0.25rem;
    padding-left: 0.5rem;
}

#mega-menu,
#mega-menu ul,
#mega-menu ul li {
    position: static !important;
}

#mega-menu ul li ul {
    display: none;
    background: var(--light-background) !important;
    border: 1px solid var(--light-blue);
    width: var(--screen-width) !important;
    /* width: 100% !important; */
    position: absolute !important;
    float: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
    top: 120px;
    min-height: 200px;
    box-shadow: var(--hard-shadow)
}

#mega-menu .sf-last ul li ol li {
    float: none !important;
    width: calc(var(--screen-width) - 5rem) !important;
    text-align: right;
}

#mega-menu .sf-last ul li ol {
    width: var(--screen-width) !important;
}

body.toolbar-horizontal #mega-menu ul li ul {
    top: 230px;
}

#mega-menu ol {
    width: auto !important;
}

#mega-menu ol li {
    width: 400px !important;
}

#mega-menu ul.sf-menu ul a {
    padding: 0.25rem;
}

#mega-menu .sf-depth-3 {
    margin-left: 1rem;
}

#mega-menu .sf-multicolumn-wrapper {
    width: auto !important;
}

#mega-menu .sf-multicolumn-wrapper ol {
    max-width: var(--screen-width);
    margin: 0 auto;
}

#mega-menu .sf-multicolumn-wrapper>ol>li {
    float: left !important;
    /* display: block !important; */
    /* position: relative !important; */
    /* border-left: 2px solid var(--light-blue); */
    padding: 0.5rem;
    margin: 0.5rem;
    width: fit-content !important;
    min-width: 250px;
    margin-right: 1rem;
    /* height: 300px; */
    transition: all ease-in-out 0.5s;
    /* font-weight: normal; */
}

#mega-menu .sf-depth-3 {
    font-weight: normal;
    text-transform: none;
    max-width: 12rem;
    line-height: 1rem;
    margin: 0.25rem;
    /* overflow: hidden; */
    transition: all ease-in-out 0.5s;
    padding-left: 1rem !important;
}

#mega-menu .sf-multicolumn-column {
    width: 12rem !important;
}

#mega-menu li:has(span.nolink),
#mega-menu li:has(a.sf-depth-1) {
    /* padding: 0 0.5rem 0 0; */
    margin: 0;
    display: inline-block;
    /* shrink-wrap to text */
    white-space: normal;
    /* allow wrapping */
    word-wrap: break-word;
    /* legacy support */
    overflow-wrap: break-word;
    /* modern */
    width: 10.5rem;
    outline: 0px solid green;
}

ul.sf-menu a,
ul.sf-menu span.nolink,
span.nolink {
    margin: 0;
    padding: 1rem;
}

ul.sf-menu span.nolink,
span.nolink {
    cursor: default;
}

.sf-sub-indicator {
    display: none;
}

span.nolink:hover,
#mega-menu li:has(a.sf-depth-1):hover {
    background-color: var(--light-background);
}

#mega-menu .sf-depth-3:hover {
    background-color: #ddd;
}

#mega-menu .sf-multicolumn-wrapper>ol>li:hover {
    background-color: var(--medium-light-background);
}

/* MAIN MENU 2.GEN. */
#xmega-menu nav.main-menu ul {
    /* max-width: 44.7rem; */
    float: right;
    margin-top: 0.5rem;
}

xnav.main-menu ul li {
    display: inline;
    list-style: none;
    margin-right: 1rem;
    break-inside: avoid;
}

xnav.main-menu ul li a {
    display: inline-block;
    break-inside: avoid;
}

/* Page layout */
#page {
    margin: 0 auto;
}

.views-element-container.front_page_events>div,
#content-top {
    clear: both;
    margin: var(--large-padding) auto;
    /* border-bottom: var(--thin-border); */
    padding-bottom: 1rem;
}

/* FRONT PAGE */

.is-front-page #content-top {
    display: flex;
}

.feed-icon,
body.is-front-page h1,
body.is-front-page #block-dbr2024-smv-content--2 {
    display: none;
}

.views-element-container.top-story {
    width: 50%;
    float: left;
}

.front_page_events article h2 {
    height: 8rem;
}

#content-bottom h2 {
    margin-top: var(--large-padding);
}

.front_page_events article .body {
    height: 3rem;
    overflow: hidden;
}

.front_page_events>h2,
.views-element-container.top-story>h2 {
    font-size: 2rem;
    width: var(--screen-width);
    /* clear: both; */
    /* border-bottom: var(--thin-border); */
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.views-element-container.top-story>h2::after,
.front_page_events>h2:after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--light-blue);
    position: absolute;
    top: 80%;
    margin-left: 0.5rem;
}

.front_page_events .field_image {
    height: 200px;
    padding: 0.5rem;
    text-align: center;
    margin: 1rem auto;
    background-color: var(--light-background);
}

.views-element-container.top-story img {
    width: 100%;
    height: auto;
}

.views-element-container.secondary {
    margin-top: 3.5rem;
    width: 40%;
    float: right;
}

.views-element-container.secondary h2 {
    font-size: 1.2rem;
}

.views-element-container.secondary article {
    display: flex;
    margin-bottom: var(--large-padding);
}

.views-element-container.secondary img {
    max-width: 200px;
    height: auto;
    width: auto;
    float: left;
    margin-right: 1rem;
}

.front-page-events article,
.views-element-container.top-story article,
.views-element-container.secondary article {
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    padding-top: 4px;
    padding-bottom: 4px;
    transition: all ease-in-out 0.5s;
    position: relative;
}

.front-page-ctas article {
    width: 15%;
    float: left;
    padding: 1rem;
    border: var(--thin-border);
    text-align: center;
    height: 120px;
    margin: 0.5rem;
    transition: all ease-in-out 0.5s;
}

.front-page-ctas article h2 a {
    transition: all ease-in-out 0.5s;
}

.front-page-ctas article:hover h2 a {
    color: white;
}

.front-page-ctas article:hover {
    color: white;
    background-color: var(--dbr-red);
}

/* .front-page-events article:hover, */
/* .front-page-ctas article:hover, */
.views-element-container.top-story article:hover,
.views-element-container.secondary article:hover {
    border-top: 2px solid var(--dbr-red);
    border-bottom: 2px solid var(--dbr-red);
    /* background-color: var(--dbr-red); */
}

.front-page-events article>div::before,
.front-page-events article>div::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--dbr-red);
    transition: all ease-in-out 0.5s;
}

.front-page-events article>div::before {
    top: -4px;
}

.front-page-events article>div::after {
    bottom: -4px;
}

.front-page-events article:hover>div::after,
.front-page-events article:hover>div::before {
    width: 106%;
}

.front-page-events article {
    margin-right: 2rem;
}

#block-dbr2024-smv-front-page-ctas {
    clear: both;
    height: 200px;
}

/* FRONT PAGE FULL WIDTH NEWS */
/* .page-news-full-width,*/
.frontpage-news-full-width {
    border-top: var(--thick-border);
    padding-top: var(--large-padding);
}

.page-news-full-width .views-row,
.frontpage-news-full-width .views-row {
    margin: var(--large-padding) 0;
    padding: var(--large-padding) 0 0 0;
    border-bottom: var(--thick-border);
    clear: both;
}

.page-news-full-width article {
    overflow: hidden;
}

.frontpage-news-full-width .views-row::after {
    content: '';
    display: block;
    clear: both;
}

.frontpage-news-full-width h2,
.frontpage-news-full-width .views-row h3 {
    text-transform: uppercase;
    font-size: 1.25rem;
}

.staff h3 {
    background-color: var(--dbr-red);
    color: white;
    font-size: 1.5rem;
    padding: 0 0.5rem;
    margin: 1rem 0;
}

.article-width,
.frontpage-news-full-width {
    width: var(--article-width);
    margin: 0 auto;
}

.frontpage-news-full-width h2 {
    text-align: center;
}

.frontpage-news-full-width .views-row .views-field-body {
    /* font-size: 1.3rem; */
    margin: 1rem 0;
}

.frontpage-news-full-width .views-row .views-field-body p {
    margin: 0;
    padding: 0;
}

/* .field--field_image.node-type--event, */
.page-news-full-width .views-row .field_image,
.frontpage-news-full-width .views-row .views-field-field-image {
    float: right;
    text-align: center;
    /* width: 500px; */
    /* background-color: #000; */
    /* padding: 1rem; */
    margin-left: 2rem;
}

.page-news-full-width .views-row .field--field_image img {
    max-width: 400px;
    height: auto;
}

.page-news-full-width .views-row .type-text_with_summary::after {
    content: '';
    clear: both;
    display: block;
}

#block-block-news-grid {
    width: var(--text-width);
    margin: 0 auto;
}

/* FORMS */

.field-label-text {
    font-weight: bold;
}

button,
input.button,
input[type=submit],
a.button {
    background-color: var(--superlight-background);
    border: 1px solid #ccc;
    border-radius: var(--soft-corner);
    padding: 0.3rem 1rem;
    margin: 0.5rem;
    text-decoration: none;
    /* clip-path: var(--corner-60-inverse); padding-right: 1.5rem; */
    transition: all ease-in-out 0.5s;
}

#edit-field-confirmation-mail-0-format,
#edit-body-0-format,
.full_path-node-add-simplenews_issue #block-dbr2024-randy-help {
    display: none;
}

body.user-role-administrator #edit-field-confirmation-mail-0-format,
body.user-role-administrator #edit-body-0-format,
body.user-role-administrator .full_path-node-add-simplenews_issue #block-dbr2024-randy-help {
    display: block;
}



.button--danger,
.content-link,
.button.right {
    float: right;
}

.content-link {
    margin-top: -2rem;
}

.form-required::after {
    content: ' *';
    color: red;
}

details.error,
input.error,
.required.error {
    border: 2px solid red;
}

.node--type-workshop details,
body.admin-page details {
    background-color: var(--medium-light-background);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.node--type-workshop details summary {
    font-weight: bold;
    margin: 0.5rem 0;
}

.node--type-workshop details div {
    margin-bottom: 0.5rem;
}

.field--field_image.node-type--workshop {
    float: right;
    text-align: center;
    margin-left: 1rem;
    margin-right: -5rem;
}

.label-display-inline div:has(label) {
    float: left;
    margin-top: 0;
    width: 4rem;
    font-weight: bold;
}

input {
    padding: 0.2rem;
}

form details,
.form-item {
    margin-top: var(--large-padding);
    /* background-color: var(--superlight-background); */
    padding: 0.5rem;
    margin-bottom: var(--large-padding);
}

form details {
    background-color: transparent !important;
}

table .form-item {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
}

.form-item .form-item {
    margin-top: 0;
}

button:hover,
input.button:hover,
input[type=submit]:hover,
a.button:hover {
    box-shadow: var(--hard-shadow);
    /* outline: 2px solid #999; */
}

textarea {
    width: 100%;
    padding: 0.5rem;
    field-sizing: content;
    min-height: 5rem;
}

.dropbutton li {
    background-color: var(--light-background);
    padding-top: 0. 5rem;
}

.dropbutton li li {
    padding-top: 0;
}

.dropbutton-widget {
    background-color: var(--light-background) !important;
    padding: 0.5rem;
    box-shadow: 2px 2px 2px;
}

form label {
    min-width: 240px;
    display: inline-block;
}

fieldset.roles-checkboxes {
    margin-bottom: var(--large-padding);
}

fieldset.roles-checkboxes legend {
    font-weight: bold;
}

#edit-roles.form-checkboxes,
.roles-checkboxes .form-checkboxes {
    column-count: 3;
}

form.dbr-users-form #edit-roles.form-checkboxes {
    /* columns: 1; */
}



#block-dbr2024-smv-tilmeldingtilnyhedsbrev,
#block-dbr2024-smv-formular {
    background-color: var(--light-blue);
    padding: 1rem;
    margin: 0 auto var(--large-padding) auto;
    width: 30%;
}

#block-dbr2024-smv-formular input {
    width: 95%;
}

.sign-something-webform label,
.webform-submission label {
    font-weight: bold;
}

.webform-submission-form textarea {
    max-width: 80%;
}

.webform-submission-form #canvas {
    margin-top: var(--large-padding);
}

.sign-something-webform legend,
.webform-submission-form legend {
    font-weight: bold;
    border-radius: var(--soft-corner);
    /* margin-left: -0.5rem; */
    background-color: var(--light-background);
}

.sign-something-webform fieldset legend,
.webform-submission-form fieldset legend {
    padding: 0 0.5rem;
}

.sign-something-webform>fieldset>legend,
.webform-submission-form>fieldset legend {
    padding: 0.5rem;
    /* margin-left: 0.2rem; */

}

.sign-something-webform fieldset,
.webform-submission-form fieldset {
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem;
}

.webform-submission-form .webform-note {
    margin-top: -1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #999;
}

.webform-submission-form .checkboxes--wrapper {
    margin-top: 0;
}

.webform-submission-form #edit-membertype-selected .js-form-type-checkbox:nth-child(2),
.webform-submission-form #edit-membertype-selected .js-form-type-checkbox:nth-child(3),
.webform-submission-form #edit-membertype-selected .js-form-type-checkbox:nth-child(4),
.webform-submission-form #edit-membertype-selected .js-form-type-checkbox:nth-child(5) {
    /* margin-left: 1rem; */
}

.webform-submission-form #edit-membership-fee .field-prefix::before {
    content: "";
    display: block;
}

form.sign-something-webform .webform-element-type-hidden {
    display: none;
}

form.sign-something-webform label {
    min-width: 300px;
}

#admin-actions {
    margin-bottom: var(--large-padding);
}

/* TABS */
#block-dbr2024-smv-primary-local-tasks ul li,
#block-dbr2024-light-account-menu ul li,
#block-dbr2024-light-primary-local-tasks ul li {
    display: inline;
    border: 1px solid black;
    border-radius: 0.2rem 0.2rem 0 0;
    border-bottom: 0;
    padding: 0.3rem 0.5rem 0 0.5rem;
    margin: 0 1rem 0 0;
}

#block-dbr2024-smv-primary-local-tasks ul li a.is-active,
#block-dbr2024-light-primary-local-tasks ul li a.is-active {
    font-weight: bold;
}

li.is-active>a,
a.is-active {
    font-weight: bold;
    /* background-color: var(--dbr-red); */
    /* color: white !important; */
    /* color: var(--dbr-red); */
}

#block-dbr2024-randy-hovedmenu2gen a.is-active {
    background-color: transparent;
    color: black !important;
}

#block-dbr2024-smv-primary-local-tasks ul,
#block-dbr2024-light-account-menu ul,
#block-dbr2024-light-primary-local-tasks ul {
    border-bottom: 1px solid black;
}

/*
article h2::before {
  content: '· ';
  color: red;
}
*/

/* MESSAGGES */
div[data-drupal-messages] {
    background-color: var(--light-background);
    border: 2px solid #999;
    padding: var(--small-padding);
    z-index: 100;
    position: relative;
    margin-bottom: 4rem;
}

/*
div[data-drupal-messages]:has(div[role="alert"]) {
  background-color: pink;
  border-color: red;
}
*/

div[data-drupal-messages]>div {
    padding: var(--small-padding);
    margin-bottom: var(--small-padding);
}

.messages.warning,
div[data-drupal-messages].warning,
div[data-drupal-messages] .warning {
    background-color: #ffc08c;
}

.messages.warning {
    clear: both;
    border: 1px solid black;
    padding: var(--small-padding);
}

.roles_warning {
    display: none;
}

div[data-drupal-messages] .status {
    background-color: lightgreen;
}

div[data-drupal-messages] .error {
    background-color: pink;
}

div[data-drupal-messages] a {
    text-decoration: underline;
}

div[data-drupal-messages] strong {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Articles, events, news */

.button-menu,
.text-width,
#block-dbr2024-randy-content--2:not(:has(*)),
#block-dbr2024-randy-page-title--2,
article {
    max-width: var(--text-width);
    width: var(--text-width);
}

article img {
    max-width: var(--text-width);
    height: auto;
}

#block-dbr2024-randy-page-title--2,
#block-dbr2024-randy-content--2 {
    width: var(--text-width);
    /* margin: 0 auto 1rem 10rem; */
    margin: 0 auto;
}

#block-dbr2024-randy-page-title--2.has-navigation,
#block-dbr2024-randy-content--2.has-navigation {
    margin: 0 auto 1rem 29rem;
}

#block-dbr2024-randy-content--2:has(#sent-mails-wrapper),
#block-dbr2024-randy-content--2:has(.board-links),
#block-dbr2024-randy-content--2:has(form.registration-settings-form),
#block-dbr2024-randy-content--2:has(form.taxonomy-term-form),
#block-dbr2024-randy-content--2:has(form.node-form) {
    width: auto
}

#sent-mails-wrapper table tr td {
    width: 12rem;
}

#sent-mails-wrapper table tr td:first-child {
    width: auto;
}

#block-dbr2024-randy-page-title--2 {
    margin-bottom: 2rem;
}

body.node-book #block-dbr2024-randy-content--2 {
    /* margin-left: 26rem; */
}

body.node-book #block-dbr2024-randy-page-title--2 {
    /* margin-left: 28rem; */
}

article.node--type-book {
    /* margin-right: 2rem; */
    width: var(--article-width);
}

.block-news-grid .views-view-grid.cols-3 .views-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.block-news-grid .views-view-grid.cols-3 .views-row img {
    max-width: 95%;
    height: auto;
}

.node--type-article.view-mode-small-teaser .field--field_image {
    max-height: 113px;
    overflow: hidden;
}

.block-news-grid .views-view-grid.cols-3 .views-row h4 {
    font-size: 1rem;
}

.xblock-news-grid .views-view-grid.cols-3 .views-row>* {
    min-width: 0;
    /* important if children contain long text/images */
}

.block-news-grid .views-view-grid.cols-3 .views-row .views-col {
    width: auto !important;
    margin: 0;
    background-color: var(--medium-light-background);
    border-radius: var(--soft-corner);
}

.block-news-grid article {
    width: auto;
    max-width: none;
    margin: 0 auto;
}

.block-news-grid .views-col {
    margin-right: 1rem;
    width: 30% !important;
    margin-bottom: 2rem;
}

.block-news-grid .field--field_image {
    text-align: center;
    height: 190px;
    /* background-color: var(--medium-light-background); */
    margin: 0.5rem 0.5rem 1rem 0.5rem;

    overflow: hidden;
}

.block-news-grid h4 {
    margin: 0.5rem;
}

body.full_path-kalender #block-dbr2024-randy-page-title--2,
body.admin-page #block-dbr2024-randy-page-title--2 {
    max-width: none;
    width: auto;
}

#block-dbr2024-randy-content--2:has(.view-id-calendar),
body.admin-page #block-dbr2024-randy-content--2 {
    width: auto;
}

article ul {
    margin: 1rem 0 var(--large-padding) 0;
}

#block-dbr2024-randy-bognavigation ul li,
article ol li,
article ul li {
    margin: 0.5rem 0;
}

article.node--type-event.view-mode-full .field_image,
article.node--type-article.view-mode-full .field_image {
    /* float: right; */
    margin: 0 auto;
    text-align: center;
}

.article-images,
.node-article h1,
.node--type-article.view-mode-full {
    /* width: var(--body-width); */
    /* margin: 1rem auto; */
}

.node--type-article.view-mode-teaser img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.page-news-full-width .field--created,
.frontpage-news-full-width .views-field-created,
.frontpage-news-full-width .field--created {
    color: var(--dull-blue);
}

.frontpage-news-full-width .views-field-created {
    display: none;
}

.node--type-article.view-mode-teaser .field--body {
    margin-bottom: 1rem;
}

.article-images {
    text-align: center;
}

.node--type-article.view-mode-full h3 {
    margin-top: var(--large-padding);
}

article.node--type-page.view-mode-full {
    max-width: var(--article-width);
}

.page-news-full-width .field--field_image,
article.node--type-page.view-mode-full .field--field_image {
    float: right;
    margin: 0 0 1rem 1rem;
}

.type-image.field_image>div {
    float: left;
    margin: 1rem;
}

.type-image.field_image>div:first-child {
    float: none;
    margin: 0;
}

.type-image.field_image {
    width: var(--body-width);
}

.type-image.field_image::after {
    content: '';
    display: block;
    clear: both;
}

/* CTA's */
.member-cta {
    background-color: var(--light-background);
    width: 70%;
    padding: 1rem;
    margin: var(--large-padding) auto;
}

.member-cta a {
    display: block;
    float: right;
    background-color: var(--green);
    padding: 0.5rem;
    color: white;
    font-weight: bold;
    margin: -2rem 1rem 1rem 1rem;
}

/* TABLES  */
table {
    width: 100%;
    border-collapse: collapse;
    border: var(--red-border);
    border-left-color: white;
    border-right-color: white;
    margin-top: 1rem;
}

table tr:hover td {
    background-color: var(--medium-background) !important;
}

form table tr:hover td {
    background-color: transparent;
}

table tr th,
table tr td {
    vertical-align: top;
    border-top: 1px solid #ccc;
    padding: 0.5rem;
    background-color: white;
}

table.low-table tr th,
table.low-table tr td {
    border: 0;
    border-bottom: 1px solid #ccc;
    padding: 0 0.2rem;
}

table tr th {
    font-weight: bold;
}

table.queue-table tr td:nth-child(5) {
    width: 11rem;
}

td.links-category {
    background-color: var(--superlight-background);
    font-weight: bold;
}

.newsletter-table table tr td:first-child {
    width: 10rem;
}

.node--type-simplenews-issue.view-mode-full a:has(img) {
    display: block;
}

table tr td p,
table tr td ul {
    margin: 0 0 0 1rem;
    padding: 0;
}

table tr td ul {
    margin-top: -0.23rem;
}

table tr th {
    text-align: left;
}

table.tariffs,
.node--type-tariffs.view-mode-full table {
    margin: var(--large-padding) auto;
    max-width: var(--body-width);
    table-layout: fixed;
}

table.events {
    table-layout: auto;
    width: var(--screen-width);
    margin-left: -15rem;
}

table.events tr td:first-child {
    width: 45rem;
}

table.events tr:has(.past) td {
    background-color: var(--light-background);
}

table.events tr:has(.future) td {
    background-color: var(--light-green);
}

table caption {
    font-weight: bold;
    text-align: left;
    font-size: 1.2rem;
    padding: 1rem 0 0 0.5rem;
}

.node--type-tariffs.view-mode-full table th:first-child,
.node--type-tariffs.view-mode-full table td:first-child {
    width: 20rem;
    background-color: var(--light-background);
}

.node--type-tariffs fieldset {
    background-color: transparent !important;
}

.tariffs-table th,
.tariffs-table tr td:first-child,
.node--type-tariffs.view-mode-full table tr:first-child th {
    font-weight: bold;
    background-color: var(--light-background);
}

.tariffs-table tr td:first-child {
    font-weight: normal;
}

button#dbr_tariffs_button {
    z-index: 8;
    height: 25px;
    width: 25px;
    background: no-repeat center / 60% url("../images/document-tariffs.svg");
    background-size: 25px 25px;
    color: transparent;
    text-shadow: none;
    overflow: hidden;
    border: 0;
    outline: 0;
    display: none;
}

button#dbr_tariffs_button:hover {
    box-shadow: none;
}

/*
.node--type-tariffs.view-mode-full table tr th,
.node--type-tariffs.view-mode-full table tr td {
    transition: all ease-in-out 0.5s;
}
*/

/*
.node--type-tariffs.view-mode-full table tr:hover th,
.node--type-tariffs.view-mode-full table tr:hover td {
    background-color: var(--superlight-background);
}
*/

.label-display-above label,
.js-form-type-tablefield label {
    font-weight: bold;
}

#block-dbr2024-randy-secondary-local-tasks ul,
#block-dbr2024-randy-primary-local-tasks ul,
#admin-actions ul,
ul.action-links ul {
    border-bottom: 1px solid black;
    padding: 0 0 0.5rem 0;
    margin-top: var(--large-padding);
}

#block-dbr2024-randy-secondary-local-tasks li,
#block-dbr2024-randy-primary-local-tasks li,
#admin-actions li,
ul.action-links li {
    display: inline;
    margin: 0;
    list-style: none;
}

#block-dbr2024-randy-secondary-local-tasks li a,
#block-dbr2024-randy-primary-local-tasks li a,
#admin-actions li a,
ul.action-links li a {
    padding: 0.5rem 1rem;
    border: 1px solid black;
    border-bottom: 0;
}

#admin-actions li a {
    border: 1px solid #ccc;
}

/* PAGERS */

nav.pager {
    margin: 0 auto;
}

ul.pager__items {
    margin: 1rem auto;
    padding: 0;
    text-align: center;
}

nav.pager ul li {
    display: inline;
    list-style: none;
    margin: 0 0.1rem;
}

.front-page-news footer a,
nav.pager ul li a {
    background-color: var(--dbr-red);
    color: white;
    padding: var(--small-padding) 0.5rem;
}

ul.js-pager__items.pager li {
    list-style: none;
}

ul.js-pager__items.pager li a {
    background-color: var(--dbr-red);
    color: white;
    border: 0;
}

ul.js-pager__items li.is-active a {
    background-color: white;
    color: var(--dbr-red);
    outline: 2px solid var(--dbr-red);
}

footer a.more,
ul.js-pager__items.pager li a.button {
    margin: 0 auto;
    display: block;
    width: fit-content;
    text-align: center;
    border-radius: var(--soft-corner);
}

.front-page-video img,
.front-page-video video {
    width: var(--screen-width);
    height: auto;
}

.front-page-video h3 {
    position: absolute;
    color: white;
    font-size: 200%;
    text-transform: uppercase;
    text-align: center;
    margin-top: 400px;
    width: var(--screen-width);
}

/* FRONT PAGE ICONS */

.front-page-icons {
    clear: both;
    margin-bottom: 5rem;
}

.hex-icons article {
    height: 10rem;
}

.hex-icons article .hex-icon-text {
    margin-top: 4rem;
}

.hex-icons,
.hex-icons article>div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* text-align: center; */
}

.hex-icons h2 {
    /* margin-top: var(--large-padding); */
}

/*
.hex-icons .hex-icon-text {
    text-align: left;
}
*/

.hex-icons article img {
    width: 150px;
    height: auto;
    float: left;
    margin-top: -2rem;
    margin-right: 1rem;
}

.hex-icons article .field_icon img,
.hex-icons article .field_hex_icon img {
    height: 200px;
    width: auto;
    margin: 0;
}

.hex-icons {
    width: calc(var(--article-width));
    margin: 4rem auto 0 auto;
}

.hex-icons article {
    width: auto;
}

#block-dbr2024-randy-brodkrummer ol {
    margin: 1rem 0;
    padding: 0;
}

#block-dbr2024-randy-brodkrummer ol li {
    display: inline;
    /* padding-right: 1rem; */
}

#block-dbr2024-randy-brodkrummer ol li::after {
    content: '>';
    /* padding-left: 1rem; */
    color: var(--dbr-red);
}

#block-dbr2024-randy-brodkrummer ol li:last-child::after {
    content: '';
}

/* CKEditor */

.ck4-media-element.file-small {
    width: 25%;
}

.ck-content .drupal-media-style-align-center {
    max-width: none;
}

figcaption {
    font-style: italic;
}

.align-center {
    text-align: center;
}

.ck.ck-editor__main {
    width: calc(var(--text-width) + 9px);
}

.ck-source-editing-button {
    display: none !important;
}

body.user-role-administrator .ck-source-editing-button {
    display: block !important;
}

/* Media */
#views-form-media-library-page .views-view-grid span {
    display: block;
}

#views-form-media-library-page .views-col {
    overflow: hidden;
    width: 30% !important;
    margin-right: 1rem;
    outline: 1px solid #ccc;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

#views-form-media-library-page .views-view-grid .form-item {
    margin: 0;
}

.js-media-library-views-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.js-media-library-views-form .form-item {
    padding: 0;
    margin: 0;
}

#media-library-messages {
    grid-column: 1 / -1;
}

.js-media-library-views-form .views-row {
    width: 250px;
    background-color: var(--light-background);
    overflow: hidden;
    text-align: center;

}

.form-checkboxes,
#edit-field-local-group {
    columns: 4;
}

.views-radio-box.form-checkboxes {
    columns: 1;
}

.views-field-field-job-description .field-content {
    display: none;
    clear: both;
    margin-top: 10rem;
}

.form-checkboxes label,
#edit-field-local-group label {
    display: inline;
}

.form-checkboxes .form-item,
#edit-field-local-group .form-item {
    margin: 0
}

blockquote::before {
    content: '"';
    font-size: 2rem;
    display: inline;
}

blockquote p {
    display: inline;
}

tr.unpublished td,
.unpublished {
    background-color: #fce4e7;
}

tr.unpublished.parent-unpublished td,
.unpublished.parent-unpublished {
    background-color: #eeeeee;
}

.token-tree {
    font-size: 1rem;
}

.token-browser-dialog {
    z-index: 1000 !important;
    font-size: 1.2rem;
}

a.flush-and-fill {
    display: inline-block;
}

#edit-field-image-ajax-wrapper .image-widget .messages--warning {
    display: none;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/*
.page-news-full-width .views-row {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
}
*/

.collapsible-expand-block .more-link {
    display: block;
    float: right;
    margin: -2rem 0 2rem 2rem;
    color: var(--dbr-red);
    cursor: pointer;
}

.collapse_expand_heading {
    margin-left: 2rem;
}

.collapse_expand_heading::before {
    margin: 0 0.5rem 0 -2rem;
    width: 1.3rem;
    display: inline-block;
    text-align: center;
    color: white;
    font-weight: bold;
    float: none;
    background-color: var(--dbr-red);
}

.collapsible-expand-block .collapse-all,
.collapsible-expand-block .collapsible-expander {
    display: none;
}

.views-label-field-job-description,
.collapsible-expand .plus-collapsible {
    width: 20px;
    text-align: center;
    background-color: #c60c30;
    color: #fff;
    display: inline-block;
    cursor: pointer;
}

.views-label-field-job-description {
    margin-top: 0.5rem;
}

.staff .views-field-user-picture {
    float: left;
    margin-right: 1rem;
}

h3.collapsible-expand {
    cursor: pointer;
}

.collapse-expand-link {
    color: var(--dbr-red);
}

.xexpand-collapse-section-wrapper,
.collapsible_block .views-row {
    border-bottom: var(--thin-border);
    margin-bottom: var(--large-padding);
    padding-bottom: 1rem;
}

#dbr-users-form fieldset#edit-role-section,
#dbr-users-form fieldset#edit-local-group-section {
    float: left;
    width: fit-content;
    margin-bottom: var(--large-padding);
    margin-right: 2rem;
}

.board-links {
    width: var(--screen-width);
}

.board-links ul,
ul.board-links {
    text-align: center;

}

.board-links ul li,
ul.board-links li {
    list-style: none;
    display: inline-block;
    margin: 0.5rem;
}

.member-block .button,
.board-links ul li a,
ul.board-links li a {
    background-color: var(--dbr-red);
    color: white;
    padding: var(--small-padding);
    margin: 1rem;
    border-radius: var(--soft-corner);
}

.member-block .button {
    border: 0;
    float: right;
    margin: 0 0 -1.5rem 0;
}

.member-block table,
.member-block table tr td {
    transition: all ease-in-out 0.5s;
    overflow: hidden;
}

.member-block table.hovered tr td {
    background-color: var(--medium-light-background);
}

.member-block table.hovered {
    border: var(--red-border);
    border-color: var(--green);
}

body.node-local_group .views-element-container {
    margin-top: 2rem;
}

#edit-group-mail-type {
    height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
}

#dbr-users-form #edit-local-groups {
    columns: 2;
}

#dbr-users-form #edit-other-section {
    clear: both;
    margin-top: var(--large-padding);
}

table.dbr-list th.dbr-role div {
    transform: rotate(90deg);
    transform-origin: center top;
    margin: 22px 0 0 0;
    padding: 0;
    white-space: nowrap;
    width: 40px;
}

.dbr-list th {
    height: 500px;
    padding: 0;
    margin: 0;
    vertical-align: bottom;
    border-right: 1px solid #cccccc;
    border-top: 1px solid #cccccc;
    padding: 2px;
}

.dbr-list th.dbr-role {
    max-width: 20px;
    vertical-align: top;
    padding: 0;
    margin: 0;
}

/* WEBSHOP */
.webshop-grid {
    width: var(--article-width);
}

.webshop-grid .views-view-grid {
    text-align: center;
}

.webshop-grid .views-view-grid .views-field-field-image {
    height: 220px;
}

.webshop-grid .views-view-grid .views-col {
    /* background-color: var(--light-background); */
    height: 400px;
    width: 29% !important;
    margin: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--dbr-red);
}

.webshop-grid .views-view-grid h2 a,
.webshop-grid .views-view-grid h3 a {
    color: var(--dbr-red);
    margin-bottom: 1rem;
    display: block;
}

.webshop-grid .views-view-grid h2 a {
    height: 7rem;
}

.js-media-library-views-form article,
.webshop-grid article {
    max-width: none;
    width: auto;
}

/* 403 page */
.access-denied {
    width: var(--article-width) !important;
    max-width: var(--text-width) !important;
    height: auto;
    min-height: 160px;
    margin: var(--large-padding) auto 1rem auto;
    border: 1px solid var(--dbr-red);
    padding: var(--small-padding);
}

body.user-role-authenticated .no-access-login {
    display: none;
}

/* CALENDAR */

.view-id-calendar .calendar-view-table caption,
.view-id-calendar .calendar-view-pager__reset {
    display: none;
}

.calendar-view-pager li.pager__item {
    list-style: none;
}

.calendar-view-pager__reset a,
.calendar-view-pager .pager__item>* {
    padding: 0;
}

.calendar-view-pager {
    margin: 0;
    padding: 0;
}

.calendar-view-table .calendar-view-day__number,
.calendar-view-table thead th {
    background-color: var(--dbr-red);
}

.calendar-view-table .next-month .calendar-view-day__number,
.calendar-view-table .previous-month .calendar-view-day__number {
    background-color: var(--dull-blue);
}

.calendar-view-day__row {
    overflow: hidden;
}

.calendar-view-pager__reset a,
.calendar-view-pager .pager__item>* {
    font-size: 1rem;
    text-transform: none;
}

.calendar-view-pager .pager__current .form-item {
    background-color: var(--dbr-red);
    color: white;
    font-size: 1.5rem;
    /* text-transform: capitalize; */
}

.calendar-view-pager .pager__item a,
.calendar-view-pager .form-item {
    text-transform: capitalize;
}

.calendar-news-block .views-field-field-image {
    height: 130px;
    background-color: var(--light-background);
    text-align: center;
    padding: var(--small-padding);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.calendar-news-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.calendar-news-block h3 a {
    color: var(--dbr-red);
}

.calendar-news-block .views-label {
    font-weight: bold;
}

.calendar-news-block .views-exposed-form {
    grid-column: 1 / -1;
    /* spans from the first grid line to the last */
}

/* BOOKS */

#block-dbr2024-randy-custombooknavigation,
#block-dbr2024-randy-bognavigation {
    padding: var(--small-padding);
    float: left;
    margin: 0 2rem 1rem 0;
    border: 1px solid var(--dbr-red);
    width: 400px;
    /* display: flow-root; */
    background-color: white;
    display: none;
    /* margin-left: -8rem; */
    overflow: hidden;
}

/*
#block-dbr2024-randy-custombooknavigation::after,
#block-dbr2024-randy-bognavigation::after {
    content: '';
    display: block;
    clear: both;
}
*/

#block-dbr2024-randy-content--2 {
    /* float: right; */
}

#block-dbr2024-randy-custombooknavigation a {
    display: inline-block;
    padding: 0 4px;
    transition: all ease-in-out 0.5s;
    vertical-align: top;
    width: 90%;
}

#block-dbr2024-randy-custombooknavigation a:hover {
    background-color: var(--medium-light-background);
    color: black;
}

/* DOCUMENTS */
.field--field_private_documents {
    padding: var(--large-padding) var(--medium-padding);
    margin: 1rem 0;
    border: 1px solid var(--dbr-red);
    /* width: fit-content; */
    /* float: right; */
    width: var(--text-width);
}

.node--type-simplenews-issue.view-mode-full .field--field_private_documents {
    width: auto;
}

.field--field_private_documents label {
    font-weight: bold;
}

.field--field_private_documents div:has(> span.file) {
    display: list-item;
    margin: var(--medium-padding) 0 0 1.5rem;
}

.field--field_private_documents div:has(> span.file)::marker {
    content: '📄 ';
    font-size: 80%;
}

.field--field_private_documents span {
    width: 50ch;
    display: inline-block;
    vertical-align: top;
    border: 0px solid green;
    overflow: hidden;
}

.toolbar-menu-administration>ul.toolbar-menu:first-child>li.menu-item>a:is([href="/admin/dbr"],
    [href="/admin/config/development/backup_migrate"], [href="/admin/dbr/dbr_find"]) {
    background-image: url('../images/backup.png');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 26px;
}

.toolbar-menu-administration>ul.toolbar-menu:first-child>li.menu-item>a:is([href="/admin/dbr"]) {
    background-image: url('../images/dbr.png');
}

.toolbar-menu-administration>ul.toolbar-menu:first-child>li.menu-item>a:is([href="/admin/dbr/dbr_find"]) {
    background-image: url('../images/loupe.svg');
}

.toolbar-menu-administration>ul.toolbar-menu:first-child>li.menu-item>a:is([href="/form/membership-form"]) {
    background-image: url('../images/form.png');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 26px;

}

.toolbar-menu-administration ul li ul li ul li a,
.toolbar-menu-administration ul li ul li a {
    background-image: none;
}

.highlighted {
    background-color: #ffff66;
    color: #003300;
}

-system-breadcrumb ol li,
-system-breadcrumb ul li {
    display: inline;
    list-style: none;
}

.address-button.address-button-push {
    display: none;
}

.address-button.address-button-pull {
    background-color: var(--superlight-background) !important;
    color: black !important;
    border: 1px solid #ccc;
    border-radius: var(--soft-corner);
    padding: 0.3rem 1rem !important;
    margin: 0.5rem;
    text-decoration: none;
    transition: all ease-in-out 0.5s;
}

#edit-field-address-0-address-address-line2 {
    margin-left: 15.25em;
    margin-top: -2.5rem;
    /* width: 10rem; */
    display: block;
}

.staff {
    width: var(--text-width);
    margin: 0 auto;
}

.staff .views-col {
    width: 45% !important;
    margin-right: 1rem;
    border-right: var(--thin-border);
    padding: 0.5rem;
}

.book-unpublished,
.book-collapse-expand {
    position: absolute;
    background-color: var(--dbr-red);
    color: white;
    /* width: 2rem; */
    /* height: 2rem; */
    text-align: center;
    /* font-size: 1.5rem; */
    cursor: pointer;
    margin-top: -3rem;
    padding: 0.5rem;
    border-radius: var(--soft-corner);
}

.book-unpublished {
    margin-left: 14rem;
    background-color: #fce4e7;
    color: #666;
}

#book-show-unpublished {
    display: none;
}

/* Remove default bullets */
#block-dbr2024-randy-custombooknavigation>ul {
    list-style-type: none;
    padding-left: 0;
}

/* Top-level list items */
#block-dbr2024-randy-custombooknavigation>ul>li {
    position: relative;
    margin: 4px 0;
    padding-left: 1.2em;
    /* space for the + / - icon */
}

/* The + / - icon replaces the bullet */
#hide_all,
#show_all,
#block-dbr2024-randy-custombooknavigation .toggle-icon {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    width: 1em;
    text-align: center;
    font-weight: bold;
    user-select: none;
    line-height: 1.2em;
    background-color: var(--dbr-red);
    color: white;
}

#block-dbr2024-randy-custombooknavigation .toggle-icon {
    border-radius: 4px;
}

#hide_all,
#show_all {
    position: relative;
    padding: var(--small-padding);
    border-radius: var(--soft-corner);
    /* margin: -2rem 2rem 0 0; */
    float: left;
    margin-top: -3rem;
    margin-left: 24rem;
}

#hide_all {
    display: none;
}

/* Optional: slightly indent nested lists */
#block-dbr2024-randy-custombooknavigation ul ul {
    margin-left: 1.5em;
}

#book-expand {
    display: none;
}

#views-exposed-form-kort2-page-1,
.dropbutton-widget,
textarea,
form details,
#block-dbr2024-randy-primary-local-tasks li a,
.ck-editor__main,
a.button,
form table,
form fieldset,
form select,
form input[type=button],
form input[type=submit],
form input[type=checkbox],
form input[type=radio],
form input {
    border: var(--input-border);
    border-radius: var(--soft-corner);
    padding: 0.5rem;
    /*
    border-image: linear-gradient(to right, #3acfd5 0%, #3a4ed5 100%) 1;
    border-width: 4px;
    border-style: solid;
    */
}

.dropbutton-widget:focus,
textarea:focus,
form details:focus,
#block-dbr2024-randy-primary-local-tasks li a:focus,
.ck-editor__main:focus,
a.button:focus,
form table:focus,
form fieldset:focus,
form select:focus,
form input[type=button]:focus,
form input[type=submit]:focus,
form input[type=checkbox]:focus,
form input[type=radio]:focus,
form input:focus {
    background-color: var(--medium-light-background);
    /* border: var(--focus-border) !important; */
    outline: var(--focus-border) !important;
}

/* Style any fieldset/details that contains focus... */
form fieldset:focus-within,
form details:focus-within {
    background: var(--light-background);
    border: var(--focus-border);
}

/* ...but cancel it if it contains a NESTED fieldset/details that contains focus
   (leaves only the innermost container styled). */
form fieldset:has(fieldset:focus-within),
form fieldset:has(details:focus-within),
form details:has(fieldset:focus-within),
form details:has(details:focus-within) {
    background: revert;
    border: revert;
}

.dropbutton-widget {
    box-shadow: none;
    padding: 0.2rem;
    margin: 0.2rem;
}

.js .dropbutton li,
.js .dropbutton a {
    background-color: transparent;
}

.dropbutton-widget button:hover,
.js .dropbutton li:hover,
.js .dropbutton a:hover {
    box-shadow: none;
    border: 0;
    outline: 0;
}

form input[type=checkbox],
form input[type=radio] {
    appearance: none;
    /* Modern browsers */
    -webkit-appearance: none;
    /* Safari */
    -moz-appearance: none;
    /* Firefox */
    border: var(--input-border);
    border-radius: 0.2rem;
    padding: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

form input[type=radio] {
    border-radius: var(--soft-corner);
}

/*
input[type=radio]:checked::before,
input[type=checkbox]:checked::before {
    content: "✔";
    margin-top: -2rem;
    position: absolute;
    margin-left: -0.2rem;
    font-size: 1.5rem;
    color: var(--green)
}
*/

input[type="checkbox"],
input[type="radio"] {
    position: relative;
    /* needed for absolute positioning */
    width: 1.2rem;
    height: 1.2rem;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
    content: "";
    position: absolute;
    inset: 0;
    /* makes it fill the checkbox area */
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    content: "✔";
    position: absolute;
    top: -80%;
    font-size: 1.75rem;
    color: var(--green);
    pointer-events: none;
}

#block-dbr2024-randy-primary-local-tasks li a {
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem;
}

a.button,
form input[type=button],
form input[type=submit] {
    background-color: var(--light-grey);
}

form input.button--danger,
a.button--danger {
    background-color: pink;
}

body.node-type-97 article img.align-left {
    margin-right: 1rem;
    margin-top: 1.25rem;
}

#views-exposed-form-kort2-page-1 .js-form-item {
    display: inline-block;
    margin-bottom: 0.5rem;
}

#views-exposed-form-kort2-page-1 input[type=text] {
    width: 4em;
}

form#views-exposed-form-kort2-page-1 label {
    width: auto;
    min-width: 0;
}

#views-exposed-form-kort2-page-1 #edit-actions {
    float: right;
    margin-top: 1.5rem;
}

#edit-field-zip-number-value-wrapper {
    width: 300px;
}

#views-exposed-form-kort2-page-1 fieldset {
    border: 0;
    margin: 0;
}

#views-exposed-form-kort2-page-1 {
    margin: 0 auto 1rem auto;
    max-width: 530px;
}

#views-exposed-form-kort2-page-1 .fieldset-legend {
    font-weight: bold;
}

#edit-menu-menu-parent option[value="service-menu-2-gen:"] {
    background-color: var(--dbr-red);
    color: white;
}

#edit-menu-menu-parent option[value="hovedmenu-2-gen:"] {
    font-weight: bold;
}

.js-filter-wrapper {
    /* display: none; */
}

.large-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 auto 6rem auto;
    width: fit-content;
}

.large-buttons .views-row {
    padding: 0.5rem;
    border-bottom: var(--red-border);
    border-color: transparent;
    transition: all ease-in-out 0.5s;
}

.large-buttons .views-row:hover {
    border-bottom: var(--red-border);
}

.large-buttons article {
    width: auto;
    max-width: none;
    text-align: center;
    margin: 0 1rem;
}

.large-buttons article h4 {
    margin: 0;
}

.menu-buttons-page h3 {
    background-color: var(--dbr-red);
    color: white;
    padding: 0.5rem;
}

.dbr-control-panel {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.dbr-control-panel .dbr-control-panel-segement {
    background-color: var(--light-background);
    padding: 0 0.5rem;
}

#add-to-cart {
    float: right;
    margin-right: 10rem;
}

.node--type-simplenews-issue.view-mode-full,
.xmail-example {
    border: 1px solid #999999;
    width: 800px;
    /* margin: 0 auto 2rem auto; */
    padding: 20px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

#block-dbr2024-randy-dbrcontentoverview {
    float: left;
    max-width: var(--text-width);
    margin-right: var(--large-padding);
}

table.dbr-content {
    min-width: 20rem;
}

article.node--type-book h2:not(:first-of-type) {
    margin-top: 2rem;
}

.field--field_signup {
    background-color: var(--dbr-red);
    color: white;
    rotate: 5deg;
    display: inline-block;
    padding: var(--small-padding);
    margin-left: 15rem;
}

.field--field_signup a {
    color: white;
}

/* permission table */
#user-admin-permissions table thead tr th {
    outline: 1px solid black;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    /* makes text read bottom → top */
    white-space: nowrap;
    padding: 0.25rem;
    vertical-align: bottom;
}

#user-admin-permissions table thead tr th:first-child {
    transform: none;
    writing-mode: initial;
}

#user-admin-permissions table {
    margin-left: -20rem;
}

.member-block h2 {
    margin-top: var(--large-padding);
    margin-bottom: var(--small-padding);
}

table#dbr-document-table,
table#dbr-document-table caption,
table.dbr-member-table,
table.dbr-member-table caption {
    margin-top: 0;
    padding-top: 0;
}

.member-block table,
table.dbr-document-table {
    table-layout: fixed;
    margin-top: 0;
    margin-bottom: 1rem;
}

.member-block table caption {
    padding: 0 0 0 0.5rem;
}

/*
#front-page-video::before {
    content: "🎥 🎬 🎞️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10vw;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

#front-page-video>* {
    z-index: 1;
}
*/

