/**/
span.code {
    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}

div.img-line > img {
    max-width: 85%;
    height: auto;
}
.row.img-line div {
    text-align: center;
}
h3 {
    font-size: 1.5rem;
}

/* = my-3 py-3 */
.region-highlighted > div[data-drupal-messages] {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/*

*/
/*
div[data-drupal-messages-fallback]:empty,
div[data-drupal-messages-fallback]:not(:has(.messages)) {
    display: none !important;
    height: 0;
    padding: 0;
    margin: 0;
}
*/

/*
Bootstrap conflicts with Drupal core "placeholder" class https://www.drupal.org/project/bootstrap_barrio/issues/3228330
Fix placeholder conflict with BS5 and Drupal placeholder class issue #3228330
*/
[data-drupal-messages] .placeholder,
[data-drupal-messages-fallback] .placeholder {
    display: initial;
    min-height: initial;
    vertical-align: initial;
    cursor: initial;
    background-color: initial;
    opacity: initial;
}


/* tuning */
#status_messages ul {
    margin-bottom: unset;
}

#block-bs5wbk-primary-local-tasks li {
    display: unset;
}

/* Sticky + Shrinkable Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background-color: white;
    color: black;
    box-shadow: rgb(66, 68, 90) 8px 8px 24px 0px;
}
.site-header.shrink {
    padding: 0.2rem 0;
    color: #696969;
}

/* Blog Typography */
.blog-title { font-size: 2.5rem; font-weight: 700; }
.blog-date { font-size: 0.9rem; color: #6c757d; }
.blog-subheading { font-size: 1.5rem; font-weight: 500; margin-bottom: 1.5rem; color: #555; }

/* Footer sticky on desktop */
@media (min-width: 992px) {
    body { display: flex; flex-direction: column; min-height: 100vh; }
    main { flex: 1 0 auto; }
    footer { flex-shrink: 0; }
}

/* Image Lines */
.img-line { margin-bottom: 1.5rem; }
/*
.img-line img { width: 100%; height: auto; display: block; }
*/

/* Lightbox caption tweaks (white on dark overlay) */
.imagelightbox__caption,
.ilb2-caption {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
}

/* action tabs */
/* Base container for actions tabs */
#block-bs5wbk-primary-local-tasks ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual tab items */
#block-bs5wbk-primary-local-tasks ul li {
    display: inline-flex;
}

/* Link style based on Bootstrap .nav-pills */
#block-bs5wbk-primary-local-tasks ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bs-body-color);
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-pill);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

/* Hover effect */
#block-bs5wbk-primary-local-tasks ul li a:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    text-decoration: none;
}

/* Active tab style */
#block-bs5wbk-primary-local-tasks ul li.is-active a,
#block-bs5wbk-primary-local-tasks ul li.active a {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* Focus visible (for keyboard navigation) */
#block-bs5wbk-primary-local-tasks ul li a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Optional: make tabs smaller in compact UIs */
@media (max-width: 576px) {
    #block-bs5wbk-primary-local-tasks ul {
        gap: 0.125rem;
    }
    #block-bs5wbk-primary-local-tasks ul li a {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}


