:root {
    --bg-main: hsl(222, 12%, 83%);
    --bg-alt: hsl(212 22% 30% / 0.9);
    --accent-primary: #4c737c;
    --accent-primary-dark: hsl(191 26% 34% / 1);
    --bs-navbar-active-color: white !important;
    --bs-btn-bg: var(--accent-primary-dark);
    --grey-tint: hsl(100, 0%, 83%);
    --grey-shade: hsl(100, 0%, 38%);
    --offwhite: hsl(100, 0%, 95%);
    --offblack: hsl(100, 0%, 15%);
    --bs-nav-link-font-size: 1rem;
    font-size: 1.1875em;
}

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tab outline */
html.user-using-keyboard *:focus-visible {
    outline: 0;
/*    box-shadow: 0 0 0 .25rem hsl(215.75deg 94.79% 10.26% / 68%);*/
    box-shadow: 0 0 0 .35rem hsl(187.75deg 95.61% 64.1% / 90%);
}

/* Typography */
p, a, .btn {
    font-size: 0.85rem;
    font-family: 'Roboto Regular', Museo sans, sans-serif;
}

@media (min-width: 768px) {
    p, a { font-size: 1em; }
}

p.lede, p.intro {
    line-height: 1.5;
    letter-spacing: 0.8px;
    color: var(--accent-primary-dark);
    border-bottom: 1px solid #e3e3e3;
    padding: 0.85rem 0;
}

.metaline {
    font-size: 0.85rem;
    margin: 0.3rem 0;
    font-style: italic;
    color: #232323;
    font-weight: 100;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
    font-weight: 400;
    font-family: 'Roboto', Helvetica;
}

h1 {
    font-size: 1.235rem;
    font-weight: 500;
/*    font-family: 'Raleway', Helvetica;*/
    margin: 0;
}

@media (min-width: 768px) {
    h1 {
        font-size: 1.75rem;
        font-weight: 400;
    }
}

header {
top: -68px!important;
}


/* Site title */
a.site-name {
    flex: 25% 1 1;
    color: white;
/*    font-size: 1.2em;*/
    max-width: 480px;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-family: Raleway, 'Helvetica';
    text-align: center;
    text-decoration:none;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;

    &:is(.contact-card h2) {
    margin: 0;
    font-weight: 500;
    }
}



@media (min-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }
}

/* h3 followed by p.info */
/* note: :has() support varies by browser; keep rule as-is for environments that support it */
h3:has(+ p.info) {
    margin-bottom: 0 !important;
}

/* Links */
a {
    text-underline-offset: 4px;
    color: var(--accent-primary);
}

a.read-more-button, a.back-button {
    padding: 0.45em 0.85em;
    border: 1px solid var(--offblack);
    border-radius: 6px;
    text-decoration: none;
    color: var(--offblack);
    background-color: white;
    font-size: 0.85rem;
    display: block;
    text-align: center;
}

@media (min-width: 768px) {
    a.read-more-button, a.back-button { display: inline-block; }
}

a.read-more-button:hover { background-color: var(--offwhite); }

a.nav-link { font-size: 1rem; }

    a.nav-link:focus, a.nav-link:hover {
        color: white;
    }

    html.user-using-keyboard a.nav-link:focus-visible {
        outline: 0;
/*        box-shadow: 0 0 0 .25rem hsl(215.75deg 94.79% 10.26% / 68%);*/
        box-shadow: 0 0 0 .35rem hsl(187.75deg 95.61% 64.1% / 90%);
    }


    /* Blockquote */
    blockquote {
        text-align: justify;
        font-weight: 100;
        color: var(--accent-primary);
        font-style: italic;
        font-size: 1.2em;
        border-width: 1px 0;
        border-style: solid;
        margin: 2rem auto;
        padding: 1rem;
        max-width: 50%;
        position: relative;
        box-shadow: 0 3px 12px -10px;
    }

blockquote::before {
    content: "🙶";
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-150%);
    line-height: 30%;
    font-size: 4.6em;
    font-style: italic;
    color: lightgrey;
}

/* Navigation */
nav.navbar {
    background-color: var(--accent-primary);
    min-height: 70px;
}

nav.navbar .dropdown-menu {
    position: absolute;
    bottom: -140%;
    display: block;
    z-index: 9999;
    background-color: inherit;
}

nav.navbar li a {
    color: white;
    transition: opacity 200ms ease-in;
    text-align: center;
}

@media (min-width: 767px) {
    nav.navbar li a { text-align: left; }
}

nav.navbar li.active a {
    text-decoration: underline;
    text-underline-offset: 12px;
}

/* Navbar toggler */
.navbar-toggler {
    padding: 0;
    color: #fefefe;
    position: relative;
    height: 50px;
    width: 50px;
    border: 0;
}

.navbar-toggler:focus { box-shadow: none; }

    .navbar-toggler .menu-close,
    .navbar-toggler .menu-open {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

.navbar-toggler .menu-close { visibility: visible; opacity: 1; }
.navbar-toggler.collapsed .menu-close { visibility: hidden; opacity: 0; }
.navbar-toggler:not(.collapsed) .menu-open { visibility: hidden; opacity: 0; }

.menu-text {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.2rem;
}

/* Search in nav */
div.nav-search-container { margin-left: auto; }

/*form#search .form-group {*/
div.nav-search-container {
    display: flex;
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s ease;
}

form#search .form-group input#q {
    flex: auto 0 1;
    opacity: 0;
    border: 2px solid var(--accent-primary-dark);
    transition: all 0.3s ease;
    padding: 0.6rem;
    &:focus:not(html.user-using-keyboard &)
{
    /*                box-shadow: none!important;*/
    box-shadow: inset 0px 0px 12px -9px;
/*    border: 0;*/
}
}

form#search .form-group button[type=submit] {
    width Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes. Widely available across major browsers (Baseline since January 2018) Learn more Don't show : 50px;
    height: 100%;
    background-color: var(--accent-primary);
    border: none;
}

div.nav-search-container button.search-toggle-button {
    background-color: var(--accent-primary);
    border: 1px solid #ffffff;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* When search form has .toggle-on class (toggle behavior defined in JS) */
    form#search.toggle-on {
        .form-group {
            width: 100%;
            overflow: visible;
        }

        input#q {
            opacity: 1;
        }

        .search-toggle-button {
            display: none;
        }
    }


/* Pagination tweaks */
.page-link { font-size: 0.8rem; color: var(--bg-alt); }
.page-link.active, .active > .page-link {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--accent-primary-dark);
    border-color: var(--accent-primary-dark);
}

/* Generic sections */
section { padding: 0.65rem 0; }
@media (min-width: 768px) { section { padding: 1.6rem 0; } }

section.alt { background-color: var(--bg-alt); }
section .container { background-color: #fff; }

/* Feature article */
#feat-article #content h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}
@media (min-width: 768px) { #feat-article #content h1 { font-size: 1.35rem; } }

#feat-article p {
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

#feat-article p:not(:first-of-type) { display: none; }
@media (min-width: 768px) { #feat-article p:not(:first-of-type) { display: block; } }

#feat-article img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    aspect-ratio: 2 / 1;
    border-radius: 0;
    box-shadow: 0 2px 9px -4px;
}

#feat-article img.img--portrait { aspect-ratio: 3.6 / 2; object-position: 50% 28%; }
@media (min-width: 768px) {
    #feat-article img {
        width: 425px;
        max-width: 85%;
        object-fit: cover;
        aspect-ratio: 7 / 5;
        border-radius: 8px;
        box-shadow: 0 2px 9px -4px;
    }
    #feat-article img.img--portrait { aspect-ratio: 3 / 3.8; }
}

/* Welcome section */
/*
section#welcome { background-color: white; padding: 0.75rem 1rem; top: 70px; }
@media (min-width: 768px) { section#welcome { padding: 1.2rem; } }
section#welcome .container { background-color: transparent; }
*/

/* Page wrapper and aside */
#page-wrapper { background-color: var(--bg-main); flex: auto; }
    #page-wrapper aside {
        position: sticky;
        top: 110px;
        border-bottom: 1px solid gray;
        box-shadow: 0 3px 12px -9px;
    }
@media (min-width: 768px) { #page-wrapper aside { border-bottom: 0; box-shadow: none; } }
#page-wrapper .article-images img { width: 100%; max-width: 250px; height: auto; border-radius: 6px; }

@media (min-width: 1400px) { .container-2xl { max-width: 1320px; } }

/* News item page */
article {background-color:white;}

/* News list */
#news-list-full { background-color:white;}
#news-list-container { padding: 0.85rem 0; border-bottom: 1px solid lightgrey; }
@media (min-width: 768px) { #news-list-container { padding: 2em 0; } }
#news-list-container h1 { margin-bottom: 0; }

#news-list-container li:has(a:hover) { background-color: var(--offwhite); outline: 1px solid var(--bg-main); }

ul.news-list { list-style: none; flex-wrap: wrap; }

li.news-list-item {
    transition: all 260ms ease;
    flex: 100% 1 1;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid lightgray;
    position: relative;
    padding: 0 0.5rem;

    @media(min-width: 768px) {
        padding: 0;
    }
}

section.alt *:focus-visible 
/*.form-group *:focus-within */
{
    box-shadow: 0 0 0 .35rem hsl(187.75deg 95.61% 64.1% / 90%);
}

/* Updated: scope the focus-visible inside section.alt to keyboard modality */
html.user-using-keyboard section.alt *:focus-visible
/*.form-group *:focus-within */
{
    box-shadow: 0 0 0 .35rem hsl(187.75deg 95.61% 64.1% / 90%);
}

/* Variant list layouts */
.twocol li.news-list-item { flex: 40% 1 1; }
.threecol li.news-list-item { flex: 350px 1 1; }

li.news-list-item h3 { font-size: 1em; font-family: 'Roboto', Helvetica, sans-serif; font-weight: 600; }
@media (min-width: 768px) { li.news-list-item h3 { font-size: 1.1em; font-weight: 400; } }

li.news-list-item p {
    font-size: 0.85rem;
    line-height: 1.25;
    flex: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

li.news-list-item img { width: 90px; height: 90px; aspect-ratio: 1; object-fit: cover; }
li.news-list-item a { text-decoration: none; color: var(--accent-primary-dark); height: 100%; }
li.news-list-item a:hover img { box-shadow: 0 3px 9px -4px black; }

/*
.news-area li.blog:after {
    content: "Column";
    font-size: 0.75rem;
    margin-left: .35rem;
    padding: 0.3rem 0.5rem;
    background-color: #454545;
    color: white;
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    right: 0;
}
*/

.item-desc-container { display: flex; gap: 0.4rem; justify-content: flex-start; color: var(--offblack); }
.item-desc-container > p:not(:first-child) { display: none; }

.dateline { color: var(--accent-primary); font-size: 0.85rem; font-weight: 500; }

.contact-card {
    flex: 30% 1 1;
    max-width: 100%;
    padding: 1rem;
    border: 1px solid grey;
    border-radius: 6px;
}
@media (min-width: 768px) { .contact-card { flex: 30% 0 1; max-width: 385px; } }

.contact-card p.info.text-black-50 {
color: var(--accent-primary-dark)!important;
}

.byline {
font-style: italic;
font-size: 0.85rem;
}

/* Asides and utility blocks */
aside { font-family: 'Roboto', Helvetica, sans-serif; background-color: white; }
    aside h2 {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
        display: inline-block;
        line-height: normal;
        font-family: Roboto;

        @media(min-width: 768px) {
            font-size: 1.4rem;
            font-weight: 500;
        }

        &.filter-toggle-text {
            cursor: pointer;
            margin-bottom: 0;

            @media(min-width: 768px) {
                cursor: default;
                margin-bottom: 0.85rem;
            }

            )
        }
    }
aside h3 { font-size: 1rem; font-weight: 400; }
aside p.info { font-size: 0.8rem; font-weight: 400; color: var(--grey-shade); }
aside a { word-wrap: break-word; }

ul.about-article {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 2.4rem;
}
ul.about-article span { font-weight: 700; }

aside input, aside select { margin-bottom: 0.8rem; width: 100%; }

.image-grid {
        margin: 4px -6px;
        display: flex;
        flex-wrap: wrap;
    }

.image-grid a {
        flex: 50% 1 0;
        padding: 6px;
    }

.image-grid a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
/* Tags */
.tag-container { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; margin-bottom: 1rem; }
.tag-container a.article-tag {
    text-decoration: none;
    padding: 0.25rem 0.4rem;
    color: white;
    font-size: 0.85rem;
    background-color: var(--accent-primary-dark);
    border-radius: 3px;
    transition: all 250ms;
}
.tag-container a.article-tag:hover { background-color: var(--accent-primary); }

/* Block list content */
.umb-block-list p img { width: 80%; max-width: 520px; height: auto; left: 50%; position: relative; transform: translateX(-50%); margin: 3em auto; }

.umb-block-list:has(.contact-card) {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.umb-block-list:has(.contact-card) > p { flex: 100%; }

/* Tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.tiles .card-title { font-size: 1.2rem; font-weight:500; margin: 1rem auto; }

/* Utilities */
.no-bg { background-color: transparent !important; }
.light-text-container h1, .light-text-container h2, .light-text-container h3, .light-text-container h4, .light-text-container p { color: #fff; }


/* Breadcrumbs */

.breadcrumb {
margin: 0;
padding: 0.45rem 0;
font-family: Roboto, sans-serif;
}

/* Filter form */

form#filter-form {
overflow: hidden;
transition: 200ms ease-in;
height: max-content;
}

form#filter-form.hidden {
height: 0;
@media(min-width: 768px) {
height: inherit;
}

}

    form#filter-form input, form#filter-form select {
        border-radius: 4px;
        padding: 0.35rem 0.55rem;
    }

.expand-button {
    display: inline-block;

    &:after {
        content: "◀";
    }

    &.open:after {
        content: "▼";
    }

    @media(min-width: 768px) {
        display: none;
    }
}

#search-bar {
    width: 100%;
    min-height: 92px;
    text-align: left;
    padding: 0;
    background-color: white;
    display: none;
    position: absolute;
    z-index: 4;

    &:has(form.toggle-on) {
        display: block;
        box-shadow: 0 3px 12px -6px;
    }
    /*& * {
height: 100%;
}*/
}

input#q {
    text-align: left;
    padding: 0.3rem;
    font-size: 1em;
    border: 2px solid var(--accent-primary-dark);
}

button[type="submit"] {
flex: 48px 1 1;
display: flex;

    i {
        display: flex;
        align-items: center;
    }
}

.form-control {
border-radius: 0px;
}

.sr-only-focusable:active, .sr-only-focusable:focus {
    display: inline-block;
    margin: 0.45em;
}