/* Kit „Bulma“: what Bulma has no class for – sections of fluid, columns of the element „Layout“ and a few details.
   Everything uses the variables of Bulma; Bulma itself stays unchanged (bulma.min.css). */

/* Link colour from the style editor; text colours stay readable in light and dark */
:root { --bulma-link-l: var(--bk-link-l, 45%); --bulma-link-invert-l: 100%; --bulma-body-overflow-y: auto; }
@media (prefers-color-scheme: light) { :root:not(.theme-dark) { --bulma-link-on-scheme-l: var(--bk-link-l, 45%); --bulma-primary-on-scheme-l: min(var(--bulma-primary-l), 24%); } }
:root.theme-light { --bulma-link-on-scheme-l: var(--bk-link-l, 45%); --bulma-primary-on-scheme-l: min(var(--bulma-primary-l), 24%); }
@media (prefers-color-scheme: dark) { :root:not(.theme-light) { --bulma-link-on-scheme-l: 74%; --bulma-primary-on-scheme-l: 66%; } }
:root.theme-dark { --bulma-link-on-scheme-l: 74%; --bulma-primary-on-scheme-l: 66%; }

.title { font-family: var(--bulma-family-secondary); --bulma-title-weight: var(--bk-heading-weight, 700); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.content { --bulma-content-heading-weight: var(--bk-heading-weight, 700); }
.content :is(h1, h2, h3, h4) { font-family: var(--bulma-family-secondary); }
.content a:not(.button), .help a { text-decoration: underline; text-underline-offset: .15em; }
.title em.hl, .title em { font-style: normal; color: hsl(var(--bulma-primary-h) var(--bulma-primary-s) var(--bulma-primary-on-scheme-l)); }
:focus-visible { outline: 3px solid var(--bulma-link-text); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; }
.bk-skip:focus { top: 1rem; }
main:focus { outline: 0; }

/* Sections: like .section of Bulma, backgrounds and spacing from the section settings */
.sec { padding: 3rem 1.5rem; }
.sec.pt-none { padding-top: 0; } .sec.pt-small { padding-top: 1.5rem; } .sec.pt-large { padding-top: 6rem; }
.sec.pb-none { padding-bottom: 0; } .sec.pb-small { padding-bottom: 1.5rem; } .sec.pb-large { padding-bottom: 6rem; }
.sec--hero { padding: 0; }
.sec--hero .hero-body { padding-inline: 1.5rem; }
.bg-muted { background: var(--bulma-scheme-main-bis); }
.bg-tint { background: hsl(var(--bulma-primary-h) var(--bulma-primary-s) var(--bulma-soft-l)); }
.bg-tint { --bulma-text: var(--bulma-text-strong); color: var(--bulma-text-strong); }
.bg-accent { background: var(--bulma-primary); --bk-on: var(--bulma-primary-invert); }
.bg-dark { background: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) 12%); --bk-on: hsl(var(--bulma-scheme-h) 10% 94%); }
:is(.bg-accent, .bg-dark) { color: var(--bk-on); --bulma-text: var(--bk-on); --bulma-text-strong: var(--bk-on); --bulma-strong-color: var(--bk-on); --bulma-link-text: var(--bk-on); }
:is(.bg-accent, .bg-dark) :is(.title, .title em, .subtitle, .content a:not(.button)) { color: inherit; }
/* surfaces within them keep their own colours */
:is(.bg-accent, .bg-dark) :is(.card, .box, .notification, .input, .textarea, .bk-select select, .button) {
  --bulma-text: hsl(var(--bulma-text-h) var(--bulma-text-s) var(--bulma-text-l)); --bulma-text-strong: hsl(var(--bulma-text-h) var(--bulma-text-s) var(--bulma-text-strong-l)); --bulma-strong-color: var(--bulma-text-strong);
  --bulma-link-text: hsl(var(--bulma-link-h) var(--bulma-link-s) var(--bulma-link-on-scheme-l));
}
:is(.bg-accent, .bg-dark) :is(.card, .box) .title { color: var(--bulma-text-strong); }

.bk-head, .bk-text { max-width: 48rem; }
.title + .subtitle { margin-top: .75rem; }

.image img { object-fit: cover; }
.image.bk-round img { border-radius: var(--bulma-radius-large); }
.bk-empty { min-height: 8rem; border-radius: var(--bulma-radius-large); background: var(--bulma-background); }

.grid.bk-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.bk-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.bk-card .card-content { flex: 1; }
.bk-card .title { margin-bottom: .5rem; }
.bk-cover-link { color: inherit; }
.bk-cover-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--bulma-card-radius); }
.bk-card:has(.bk-cover-link:hover) { box-shadow: 0 .75em 1.5em -.25em hsl(var(--bulma-shadow-h) var(--bulma-shadow-s) var(--bulma-shadow-l) / .18); }
.bk-zoom { display: block; cursor: zoom-in; }
.bk-quote { max-width: 52rem; margin-inline: auto; }
.bk-details + .bk-details { margin-top: .75rem; }
.bk-details summary { list-style: none; cursor: pointer; }
.bk-details summary::-webkit-details-marker { display: none; }
.bk-details summary::after { content: ""; flex: none; align-self: center; width: .6em; height: .6em; margin-inline: 1rem 1.25rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -20%; }
.bk-details[open] summary::after { rotate: 225deg; translate: 0 20%; }

/* Bulma inherits box-sizing; within <details> the inheritance stops at the browser's own boxes */
details > * { box-sizing: border-box; }

/* Navigation: dropdowns with <details> instead of hover */
.navbar-item.bk-active, .navbar-item[aria-current] { font-weight: 600; }
.bk-dropdown > summary { list-style: none; cursor: pointer; }
.bk-dropdown > summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) {
  .navbar-item.bk-dropdown { position: relative; padding: 0; }
  .bk-dropdown > summary { display: flex; align-items: center; height: var(--bulma-navbar-height); }
  .bk-dropdown[open] > .navbar-dropdown { display: block; inset-inline: auto 0; }
}
@media (max-width: 1023px) { .bk-dropdown:not([open]) > .navbar-dropdown { display: none; } }

/* Code */
.bk-code { overflow: hidden; }
.bk-code + .bk-code { margin-top: 1rem; }
.bk-code pre { border-radius: 0; }
.bk-code pre:focus-visible { outline-offset: -3px; }

/* Form: YForm has no wrapper around select, so .bk-select gets the look of .input */
.bk-select { width: 100%; height: var(--bulma-control-height); padding: 0 .75em; border: 1px solid var(--bulma-border); border-radius: var(--bulma-radius); background: var(--bulma-scheme-main); color: var(--bulma-text-strong); font-size: 1rem; }
textarea.input { height: auto; min-height: 8em; padding: .75em; }
.bk-check { margin-bottom: .35rem; }
.bk-form .field { margin-bottom: 1rem; }
/* spam trap of the form */
.dff-hp { position: absolute; left: -999rem; }

.bk-lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: none; overflow: visible; }
.bk-lightbox::backdrop { background: rgb(0 0 0 / .85); }
.bk-lightbox img { display: block; max-width: 96vw; max-height: 86vh; border-radius: var(--bulma-radius-large); }
.bk-lightbox figcaption { padding-top: .5rem; color: #fff; text-align: center; }
.bk-lightbox form { position: absolute; right: .5rem; top: .5rem; z-index: 1; }

/* Element „Layout“: columns next to each other while there is room (markup by fluid) */
.lay-grid { --lay-g: 3rem; display: flex; flex-wrap: wrap; gap: var(--lay-g); align-items: flex-start; max-width: 960px; margin-inline: auto; }
@media (min-width: 1216px) { .lay-grid { max-width: 1152px; } }
@media (min-width: 1408px) { .lay-grid { max-width: 1344px; } }
.lay-gap-small { --lay-g: 1.5rem; } .lay-gap-large { --lay-g: 6rem; }
.lay-v-center { align-items: center; } .lay-v-bottom { align-items: flex-end; } .lay-v-stretch { align-items: stretch; }
.lay-rev { flex-wrap: wrap-reverse; }
.lay-col { flex: var(--lay-w, 1) 1 calc((700px - 100%) * 999); min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.lay-stack-tablet > .lay-col { flex-basis: calc((940px - 100%) * 999); }
.lay-col--w2 { --lay-w: 2; } .lay-col--w3 { --lay-w: 3; } .lay-col--w4 { --lay-w: 4; } .lay-col--w5 { --lay-w: 5; } .lay-col--w6 { --lay-w: 6; }
.lay-col--w7 { --lay-w: 7; } .lay-col--w8 { --lay-w: 8; } .lay-col--w9 { --lay-w: 9; } .lay-col--w10 { --lay-w: 10; }
.lay-v-stretch > .lay-col > .lay-item:last-child { flex-grow: 1; }
.lay-item { min-width: 0; padding: 0; }
.lay-item > .container { max-width: none; width: 100%; }
.lay-item--card { border-radius: var(--bulma-radius-large); }
.lay-item--card > .container { padding: 2rem; }
