﻿/* Notes
    * jQuery overrides are handled in 'override.css'. The idea is to eventually get rid of all the jQuery refs, then get
      rid of the override.
    * selectors prefixed with 'mdgov_' are from the old DoIT template; a lot of content that still references this stuff.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #4a4a4b;
    padding: 0;
    margin: 0;
    width: 100%;
    z-index: 0;
    position: relative;
    font-family: "Noto Sans", sans-serif;
    font-variation-settings: 'wdth' 090;
    font-weight: 350;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: normal;
    text-wrap: pretty;
    text-rendering: optimizeLegibility;
    color: #000;
}

*[hidden] {
    display: none !important;
}

:focus {
    /*outline: none;
    box-shadow: 0 0 0 2px rgba(64, 149, 221, 0.85);*/
    outline: 2px solid rgba(64, 149, 221, 0.85);
    outline-offset: 1px;
    border-radius: 3px;
}

a.skip:focus {
    outline-offset: -1px; /* This only shows up when it has focus */
}

/*-- End Baseline --*/

a {
    text-decoration: underline;
}

    a:link, a:visited {
        color: #003a6c;
    }

    a:link, a:visited,
    input, button, select, textarea, summary {
        transition-property: color, background, outline-color, border-color, opacity, box-shadow, text-shadow;
        transition-duration: 0.3s;
    }

    a:hover, a:focus {
        color: #006fcc;
    }

    a:hover, a:focus,
    input:hover, button:hover, select:hover, textarea:hover, summary:hover,
    input:focus, button:focus, select:focus, textarea:focus, summary:focus {
        transition-property: color, background, outline-color, border-color, opacity;
        transition-duration: 0.05s;
    }

    a[href^="http" i]:not([href*="elections.maryland.gov" i]) /*non-relative, but not our domain*/,
    a[target="_blank" i]:not([href*="elections.maryland.gov" i])::before,
    a[rel="external"],
    a[href^="mailto:" i],
    a[href$=".csv" i],
    a[href$=".doc" i], a[href$=".docx" i],
    a[href$=".pdf" i],
    a[href$=".xls" i], a[href$=".xlsx" i], a[href$=".xlsm" i], 
    a.facebook, a.twitter, a.instagram {
        position: relative;
    }

        a[href^="mailto:" i]::before,
        a[href$=".csv" i]::before,
        a[href$=".doc" i]::before, a[href$=".docx" i]::before,
        a[href$=".pdf" i]::before,
        a[href$=".xls" i]::before, a[href$=".xlsx" i]::before, a[href$=".xlsm" i]::before, 
        a.facebook::before,
        a.twitter::before,
        a.instagram::before,
        .rumor::before, .fact::before {
            /* Non-inline-block solution: usual non-block caveats but we get superior wrapping behavior. 
           Also have to bake the rounded corners into the images, since border-radius won't work. */
            content: '';
            position: relative;
            background-size: 1rem;
            background-position: left center;
            background-repeat: no-repeat;
            left: 0;
            top: 0;
            padding-right: 1.25rem;
            /*margin-left: -.25rem;*/
        }

    #bodyContent a[href^="http" i]:not([href*="elections.maryland.gov" i])::after,
    #bodyContent a[target="_blank" i]:not([href*="elections.maryland.gov" i])::after,
    #bodyContent a[rel="external"]::after, a[href][download]::after {
        content: '';
        position: relative;
        background-size: 0.85rem;
        background-position: left center;
        background-repeat: no-repeat;
        left: 0;
        top: 0;
        padding-left: 1rem;
        left: 0.2rem;
    }

a[href^="http" i]:not([href*="elections.maryland.gov" i])::after,
a[rel="external"]::after {
    background-image: url('../img/icon-link.png');
}

a[href][download]::after {
    background-image: url('../img/icon-download.png');
}

/*href shim for specificity*/
a[href][target="_blank" i]::after {
    background-image: url('../img/icon-link-newtab.png');
}

a[href^="mailto:" i]::before {
    background-image: url('../img/icon-email.png');
    top: 1px;
}

    a[href$=".csv" i]::before {
        background-image: url('../img/icon-file-csv-64.png');
    }

a[href$=".doc" i]::before,
a[href$=".docx" i]::before {
    background-image: url('../img/icon-file-word-64.png');
}

a[href$=".pdf" i]::before {
    background-image: url('../img/icon-file-pdf-64.png');
}

    a[href$=".xls" i]::before,
    a[href$=".xlsx" i]::before,
    a[href$=".xlsm" i]::before {
        background-image: url('../img/icon-file-excel-64.png');
    }

a.facebook::before {
    background-image: url('../img/icon-social-facebook-64.png');
}

a.instagram::before {
    background-image: url('../img/icon-social-instagram-64.png');
}

a.twitter::before {
    background-image: url('../img/icon-social-x-64.png');
}


    /* ::afters *should* only include link types (download, _blank, etc.) */

    a:link::before, a:visited::before {
        opacity: 0.85;
    }
    a:link::after, a:visited::after {
        opacity: 0.7;
    }

    a:hover::before, a:focus::before {
        opacity: 1.0;
    }
    a:hover::after, a:focus::after {
        opacity: 0.85;
    }


/* Get rid of any pseudo-element icons */
a.button::before {
    display: none;
}

.rumor, .fact {
    font-weight: 500;
    color: rgb(61, 74, 88);
    text-wrap: nowrap;
}

.rumor {
    color: rgb(120, 31, 31);
}

.fact {
    color: rgb(29, 99, 48);
}

    .rumor::before, .fact::before {
        font-family: "Material Icons Outlined";
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        content: '\e0bf';
        font-size: 1.2em;
        padding: 0;
        margin: 0 0.2em 0 0;
        /*width: 1.25em;
        height: 1.25em;*/
        /*background-size: 1.25em;*/
        /*margin-right: 0.25em;*/
    }

.rumor::before {
    content: '\e87f';
    top: 0.25em;
    /*background-image: url('../img/icon-rumor.png');*/
    /*color: rgb(139, 42, 42);*/
}

.fact::before {
    content: '\ef76';
    top: 0.2em;
    /*background-image: url('../img/icon-fact.png');*/
    /*color: rgb(29, 138, 58);*/
}

.subtitle {
    font-style: italic;
    font-weight: 400;
    color: #333;
}

p {
    display: block;
    margin: 0 0 1rem 0;
    padding: 0;
}

ul, menu {
    list-style-type: square; /*default for safari*/
}

ul, ol, menu {
    margin-top: 0;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

li {
    margin-left: 1rem;
    padding-left: 0.5rem;
}

    li > ul, li > ol, li menu {
        margin-left: 0;
        margin-bottom: 0;
    }

@counter-style paren-lower-alpha {
    system: extends lower-alpha;
    prefix: "(";
    suffix: ")";
}

@counter-style paren-decimal {
    system: extends decimal;
    prefix: "(";
    suffix: ")";
}

@counter-style paren-lower-roman {
    system: extends lower-roman;
    prefix: "(";
    suffix: ")";
}

ol[type="(1)"] {
    list-style-type: paren-decimal;
}

ol[type="a"] {
    list-style-type: lower-alpha;
}

ol[type="(a)"] {
    list-style-type: paren-lower-alpha;
}

ol[type="a"].uppercase {
    list-style-type: upper-alpha;
}

ol[type="i"] {
    list-style-type: lower-roman;
}

ol[type="(i)"] {
    list-style-type: paren-lower-roman;
}

ol[type="i"].uppercase {
    list-style-type: upper-roman;
}

ol > li {
    padding-left: 0.25rem;
}

ul > li::marker, menu > li::marker {
    content: '\25AA';
    color: rgba(128,128,128,0.8);
}
/*li > ul > li::marker {
    content: '\25AB';
}*/

#mainNav ul > li::marker,
#mainNav menu > li::marker,
ul.noBullets > li::marker,
menu.noBullets > li::marker,
ul.inputList > li::marker,
menu.inputList > li::marker {
    content: "";
    background-image: none;
}

ul.noIndent, menu.noIndent {
    padding-left: 0;
}

#mainNav ul, #mainNav menu,
ul.noBullets, menu.noBullets,
ul.inputList, menu.inputList {
    list-style: none;
}

    #mainNav ul > li, #mainNav menu > li,
    ul.noBullets > li, menu.noBullets > li,
    ul.inputList > li, menu.inputList > li {
        /*list-style-type: none;*/
        /*list-style-image: none;*/
        padding-left: 0;
        margin-left: 0;
    }

/* mdgov_OverflowTable is vestigial & deprecated; only AEMS is expected to be using it */
.tableWrapper, .mdgov_OverflowTable {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    overflow-x: auto;
    /*white-space: nowrap;*/
}

    .tableWrapper.fitContent table {
        width: fit-content;
    }

table {
    border-collapse: collapse;
    border: none;
    display: table;
    font-size: 0.9em;
    color: #333;
}

#bodyMain table {
    margin: 0.5rem;
}

table caption {
    padding: 0.5rem;
    text-align: left;
    color: #333;
    font-size: 0.9rem;
    font-style: italic;
}

th {
    font-weight: 500;
}

thead th {
    font-variation-settings: "wdth" 90;
    column-width:auto;
}

th, td {
    border: solid 1px #DDD;
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

    td p {
        margin: 0;
        padding: 0;
    }

#bodyContent td ul {
    padding: 0;
    margin-left: 0.5rem;
    margin-bottom: 0;
    /*padding-left: .5rem;*/
}

#bodyContent td > ul li {
    margin: 0;
    padding-left: 0.5rem;
}

p, li {
    text-wrap-style: pretty;
}

b, strong, .bold {
    font-weight: 500;
}

i, em {
    font-style: italic;
}

u {
    text-decoration: none;
    background-color: rgba(128,128,128,0.15);
}

    i.underline, em.underline, u.underline {
        text-decoration: underline;
    }

sup, sub {
    position: relative;
    line-height: 0;
    font-size: 0.75em;
    vertical-align: baseline;
}

/* slightly more accurate fluid value */
@supports (font-size: calc(1em + 1px)) {
    sup, sub {
        font-size: calc(0.5em + 4px);
    }
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

abbr {
    text-decoration: underline dotted #AAA;
    text-underline-offset: 2px;
}

article {
    padding: 1em;
}

    article > h1, article > h2, article > h3 {
        padding: 0;
        margin: 0 0 .5em 0;
    }

aside {
    padding: 1rem;
    margin: 1rem;
}

figure {
}

figcaption {
    color: #333;
    font-size: 0.85rem;
    font-style: italic;
}

address {
    font-style: normal;
}

audio, video {
    display: block;
    border-radius: 5px;
    margin: 2px;
}

audio {
    background: #F5F5F5;
    border: 1px solid #CCC;
    padding: 1rem;
}

/*-- Forms -------------------------------------------------------------------*/

form {
    font-size: 0.9rem;
    position: relative;
    padding: 0.25rem;
}

.formButtonShelf {
    background-color: #F8F8F8;
    /*border-bottom: 4px solid #CCC;*/
    box-shadow: inset 0 -4px 0 0 rgba(0,0,0,0.1);
    margin-top: 0.5em;
    padding: 1em;
}

form > p {
    font-size: 1rem;
}

form.bordered, form.outlined {
    padding: 0.5rem;
}

    form.bordered > p, form.outlined > p {
    }

    form.bordered .formButtonShelf:last-child, form.outlined .formButtonShelf:last-child {
        /*border-radius: 0 0 5px 5px;*/
        margin-right: -0.5rem;
        margin-bottom: -0.5rem;
        margin-left: -0.5rem;
    }

/*form.grid, fieldset.grid, form.grid fieldset {
    display: grid;
    grid-template-columns: repeat(4, minmax(min-content, max-content));
    grid-auto-columns: minmax(10ch, auto);
    gap: 0.5rem;
}
fieldset.grid * { display:block; }*/

form.flex, fieldset.flex, form.flex fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}


fieldset {
    padding: 0.25rem 1rem 0.5rem 1rem;
    border-radius: 5px;
    margin: 0.5rem 2px;
    position: relative;
    vertical-align: top;
}

legend {
    font-weight: 500;
    color: rgb(65, 77, 90);
    padding: 0 0.25em;
    margin: 0;
}

fieldset fieldset {
    display: inline-block;
    padding: 0 0.5em;
    margin-top: 0;
    border: none;
}

    fieldset fieldset legend {
        color: #333;
    }

label, .label {
    display: inline-block;
    position: relative;
    font-weight: 500;
    color: #333;
    vertical-align: baseline;
    margin: 0.1em;
    width: fit-content;
    transition: 0.35s;
}

input, textarea, select, option, input:-webkit-autofill::first-line, button {
    font-family: "Noto Sans", sans-serif;
    font-weight: normal;
}

    input:not([type="checkbox"],[type="radio"]), textarea, select, option, input:-webkit-autofill::first-line, button {
        border: 1px solid #666;
        border-radius: 3px;
    }

    input:not([type="checkbox"],[type="radio"],[type="submit"],[type="button"],[type="range"]), textarea, select {
        background-color: #FFF;
    }

    input:not([type="checkbox"],[type="radio"]), textarea {
        position: relative;
        padding: 0.25rem;
        margin: 2px;
    }

textarea {
    min-height: 4em;
}

select {
    margin: 2px;
    padding: 0.2rem;
}

input[type="checkbox"], input[type="radio"] {
    position: relative;
    margin: 0.2em;
    width: 1em;
    height: 1em;
    top: .1em;
}

input[type="number"] {
    min-width: 1rem;
    width: fit-content;
}

label:has(input[type="checkbox"]), label:has(input[type="radio"]) {
    display: flex;
    align-items: baseline;
}

label input[type="range"] {
    vertical-align: bottom;
}

button, input[type="submit"], input[type="button"], input[type="reset"],
a.button, button.button, input[type="submit"].button, input[type="button"].button, input[type="reset"].button {
    display: inline-block;
    border-radius: 3px;
    margin: 4px;
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 450;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

button, input[type="submit"], input[type="button"], input[type="reset"] {
    background-color: #DDD;
    color: #222;
    cursor: pointer;
}

    button:hover, input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
        background-color: #E5E5E5;
        color: #000;
    }

    a.button, button.button, input[type="submit"].button, input[type="button"].button, input[type="reset"].button {
        color: #E8E8E8;
        background-color: rgb(19, 43, 77);
        text-decoration: none;
    }

        a.button:hover, a.button:focus,
        button.button:hover, button.button:focus,
        input[type="submit"].button:hover, input[type="submit"].button:focus,
        input[type="button"].button:hover, input[type="button"].button:focus,
        input[type="reset"].button:hover, input[type="reset"].button:focus {
            background-color: rgb(40, 69, 111);
            cursor: pointer;
            color: #FFF;
        }

    input:not([disabled]):hover, button:not([disabled]):hover, .button:not([disabled]):hover,
    select:not([disabled]):hover, textarea:not([disabled]):hover {
        border-color: rgba(0,0,0,0.75);
    }


/*label.required {
    color: rgb(190, 92, 0);
}*/

input:invalid, textarea:invalid, select:invalid {
    box-shadow: inset 5px 0px 0px 0px rgba(190, 92, 0, 0.5);
    padding-inline-start: 0.5rem;
}

input.error, textarea.error, select.error, .error input {
    border-color: rgb(139, 42, 42);
    background-color: rgb(252, 235, 235);
    color: revert;
}

ul.inputList {
    margin-left: 0;
    padding-left: 0;
}

    ul.inputList li {
        margin-left: 0;
        padding-left: 0;
    }

.iframeWrapper, .videoWrapper, .formWrapper {
    display: block;
    position: relative;
    margin-bottom: 1rem;
}

.iframeWrapper, .videoWrapper {
    background: #EEE url('../img/bkgd-loading_dots-anim-48.gif') center center no-repeat;
}

iframe {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.iframeWrapper iframe, details > iframe {
    width: 100%;
    border-radius: 5px;
}

/* 16x9 aspect ratio */
.videoWrapper {
    /* padding hack method */
    /*padding-top: 56.25%;*/
}

    .videoWrapper video, .videoWrapper iframe {
        /* padding hack method */
        /*position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        margin: 0;*/
        /* new aspect-ratio method */
        aspect-ratio: 16/9 auto;
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

.formWrapper {
    overflow-x: auto;
}

    .formWrapper form {
    }

h1, h2, h3, #siteTitleWrapper, #bodyContent summary {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 90;
    font-style: normal;
}

h2, h3, h4, h5, h6 {
    margin: 0.5em 0 0.25em 0;
}

h1 {
    margin: 0 0 0.5em 0;
    color: rgb(170, 126, 43);
    font-size: 1.85rem;
    font-weight: 400;
}

h2 {
    color: #6f393b;
    font-size: 1.7rem;
    font-weight: 400;
}

h3 {
    color: rgb(65, 77, 90);
    font-size: 1.6rem;
    font-weight: 400;
}

h4 {
    /*color:#333;*/
    color: rgb(124, 99, 52);
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    color: #643d3e;
    font-size: 1.35rem;
    font-weight: 500;
}

h6 {
    color: rgb(65, 77, 90);
    font-size: 1.35rem;
    font-weight: 500;
}

dl {
    margin-bottom: 1rem;
}

dt {
    /*display: flex;
    align-items: center;*/
    padding: 0;
    font-weight: 550;
    color: rgb(61, 74, 88);
    margin-bottom: 0.25em;
}

/*dl.grid {
    display: grid;
}*/

dl.notes dt::before {
    font-family: "Material Icons Outlined";
    content: '\f1fc';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    flex: 0 1 auto;
    margin-right: 0.25rem;
    color: rgba(0,0,0,0.45);
}

/*nested */
dd dt {
    color: rgb(24, 30, 36);
}

/*dd dl { font-size:0.9em; }*/

dd + dt {
    margin-top: 1em;
}

dd > *:last-child {
    margin-bottom: 0;
}

dd > img, details > img, figure > img {
    max-width: 100%;
}

dl.shaded {
    background-color: transparent;
}

    dl.shaded dt {
        background: rgb(0,0,0,0.03);
        box-shadow: inset 0 0 0 -4px rgba(0,0,0,0.4);
    }

    .shaded dl.shaded dd {
        background-color: rgba(255,255,255, 0.9);
    }

ul.bordered, dl.bordered, dd.bordered {
    /*border: 1px solid rgba(61, 74, 88, 0.25);*/
    border-radius: 3px;
}

    dl.bordered dt {
        padding: 0.5rem;
        box-shadow: none;
    }

    ul.bordered, dl.bordered dd, dd.bordered {
        padding: 0.5rem;
    }
/*dl.columns {
    margin: 0;
    gap: 0.5rem 1rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: first baseline;
}

    dl.columns dt {
        margin: 0;
    }*/

dl.columns {
    display: grid;
    grid-template: auto / auto auto;
    width: fit-content;
    /*column-gap: 1em;*/
    align-items: first baseline;
    padding:0.25rem;
}

    dl.columns dt, dl.columns dd {
        font-size: inherit;
        padding: 0.1em 0.5em;
        margin: 0;
    }

    dl.columns dt {
        grid-column-start: 1;
    }

    dl.columns dd {
        grid-column-start: 2;
    }

    dl.columns.shaded {
        align-items: stretch;
        padding: 2px;
    }

        dl.columns.shaded dt, dl.columns.shaded dd {
            border-bottom: 1px solid #CCC;
        }

        /*dl.columns.shaded dd {
            border-left: solid 1px #CCC;
        }*/

        dl.columns.shaded > dt:last-of-type,
        dl.columns.shaded > dd:last-of-type {
            border-bottom: none;
        }

            dl.columns.shaded > dt:last-of-type:has(+ dd + dd) {
                border-bottom: 1px solid #CCC;
            }



.overflow-x {
    overflow-x: auto;
}

.overflow-y {
    overflow-y: auto;
}

.overflow {
    overflow: auto;
}

details {
    margin-bottom: 1em;
    border: 1px solid #C5C5C5;
    border-radius: 3px;
}

    /* followed directly by another details element */
    details:has(+ details) {
        margin-bottom: 2px;
    }

summary {
    display: flex;
    align-items: start;
    cursor: pointer;
    border-radius: 3px;
    text-indent: 0px;
    padding: 0.5rem 1rem;
    border: none;
    line-height: 1.25em;
    background-color: #EFEFEF;
    color: #333;
    font-weight: 400;
    transition-property: color, background, outline-color, border-color, opacity, box-shadow;
    transition-duration: 0.35s;
    font-size: 1.2rem;
}
    /*  Normalize all headings in summaries to look like the basic summary. */
    summary > h2, summary > h3, summary > h4, summary > h5, summary > h6 {
        font-weight: 400;
        font-size: 1.2rem;
        color: #333;
        /*display: inline-block;*/
        margin: 0;
    }

    summary::marker {
        content: "";
    }

    summary::before {
        position: relative;
        font-family: "Material Icons Outlined";
        content: '\e5c5';
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        flex: 0 1 auto;
        margin-right: 0.5rem;
        transform: rotate(-90deg);
        transition: transform 0.2s ease;
        color: rgba(0,0,0,0.5);
    }

    summary > * {
        display: inline-block;
    }

    summary:hover {
        cursor: pointer;
    }

    summary:hover, summary:focus {
        background-color: #E8E8E8;
        box-shadow: none;
        transition-property: color, background, border-color, opacity, box-shadow;
        transition-duration: 0.05s;
    }

    summary:focus {
        outline-offset: -2px !important;
        outline-color: rgba(0,0,0,0.2);
    }

#settings summary:hover, #settings summary:focus {
    outline-color: rgba(64, 149, 221, 0.85);
}

details[open] {
    padding: 1rem;
}

#bodyMain details {
    outline: 1px solid rgba(255,255,255,0.8);
    outline-offset: -2px;
}

#bodyContent details[open] summary::before {
    transform: rotate(0deg);
}

#bodyContent details[open] summary {
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 3px 3px 0 0;
}

#bodyContent details[open] > :last-child {
    margin-bottom: 0;
}


hr {
    border: 2px solid #EEE;
    margin: 2em 0;
}

/* Util */

a.skip {
    position: absolute;
    left: -1000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    a.skip:focus {
        position: static;
        display: block;
        background-color: #222;
        /*border: 1px solid #666;*/
        color: #CCC;
        padding: 0.35em;
        margin: 0.25rem;
        border-radius: 4px;
        width: auto;
        height: auto;
        text-align: center;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
    }

    a.skip:hover {
        background-color: #222;
        color: #FFF;
    }

.inlineBlock {
    display: inline-block;
}

.invis {
    visibility: collapse;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.collapse {
    visibility: collapse;
}

.displayNone {
    display: none;
}

/*ul.chevronBullets > li {    
    content: '\e5cc';
    color: #888;
    margin-left: 2rem;
}

    ul.chevronBullets > li > li {
        color: #CCC;*/
/*list-style-image: url("../img/bullet-arrow-16-light.png");*/
/*}*/

/* General purpose checkmark for tables and such */
img[src$="check.png"] {
    width: 1em;
    height: 1em;
}

.monospace {
    font-family: monospace;
    font-weight: normal;
}

/* For corner cases; usually tables are expected to be the only child of a div.tableWrapper */
table.table-expand {
    width: 100%;
}

table.alignCenter th, table.alignCenter td, 
tr.alignCenter th, tr.alignCenter td, 
th.alignCenter, td.alignCenter {
    text-align: center;
}

table.alignRight th, table.alignRight td, 
tr.alignRight th, tr.alignRight td, 
th.alignRight, td.alignRight {
    text-align: right;
}

tr.noWrap th, tr.noWrap td, td.noWrap, th.noWrap {
    text-wrap-mode: nowrap;
}

tr.uppercase th, tr.uppercase td, th.uppercase, td.uppercase {
    text-transform: uppercase;
}

tbody.table-banded tr:not(.dark):nth-child(odd) th,
tbody.table-banded tr:not(.dark):nth-child(odd) td,
.table-banded tbody tr:not(.dark):nth-child(odd) th,
.table-banded tbody tr:not(.dark):nth-child(odd) td {
    background-color: rgba(0,0,0,0.05);
}

thead, tr.dark th, tr.dark td, th.dark, td.dark {
    background-color: rgb(43, 49, 55, 0.8);
    color: #FFF;
    text-shadow: 0px 0px 2px rgba(0,0,0, 1);
}

    thead.unshaded {
        background-color: unset;
        color: #222;
    }

table.shaded, tr.shaded, th.shaded, td.shaded {
    background-color: rgba(0,0,0,0.05);
}

tfoot {
    box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.25);
    color: #000;
}

tr.highlight td, tr.highlight th, th.highlight, td.highlight {
    background-color: rgb(251, 246, 231);
}

:not(tr, th, td, dt, dd, li).bordered,
:not(tr, th, td, dt, dd, li).shaded,
.videoWrapper, .iframeWrapper, .formWrapper, .menuWrapper, .tableWrapper {
    border-radius: 4px;
    margin-top:2px;
    margin-bottom: 2px;
}

.outlined {
    outline: 1px solid #CCC;
    outline-offset: 2px;
}

.bordered {
    border: 1px solid #CCC;
}

p.bordered {
    padding: 1rem;
}

.noBorders,
/*first-level child added as shim for AEMS team using tables for layout*/
.noBorders > table, .noBorders > thead, .noBorders > tfoot, .noBorders > th, .noBorders > td, 
/*normal use case*/
table.noBorders thead, table.noBorders tfoot,
table.noBorders th, table.noBorders td {
    border: none;
    background-color: transparent;
    color: #333;
}

.indent {
    margin-left: 1em;
}
.indent2 {
    margin-left: 2em;
}
.indent4 {
    margin-left: 4em;
}

.callout {
    margin: 1em;
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 5px;
}

.alert, .error, .info, .note, .success, .tip {
    position: relative;
    /*padding: 0.5em;*/
    /*margin: 3px;*/
}

    .alert.bordered, .error.bordered, .info.bordered, .note.bordered, .success.bordered, .tip.bordered {
        padding: 1em;
    }

.shaded {
    padding: 0.5em;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(128, 128, 128, 0.35);
    /*border-radius: 3px;*/
}

.shaded > :first-child, .bordered > :first-child {
    margin-top:0;
}

/*:not(tr, th, td, dt, dd, li).bordered,
:not(tr, th, td, dt, dd, li).shaded {
    margin: 4px 4px 4px 0;
}*/


.alert {
    color: rgb(39, 34, 27);
}

    .alert.bordered, .alert.shaded {
        border: solid 1px rgba(170, 154, 124, 0.75);
    }

    .alert.shaded {
        /*background: #fff6e3;*/
        /*background-image: linear-gradient(135deg, rgb(238, 232, 220, 0.80) 25%, rgba(238, 232, 220,0.6) 25%, rgba(238, 232, 220,0.6) 50%, rgba(238, 232, 220,0.8) 50%, rgba(238, 232, 220,0.8) 75%, rgba(238, 232, 220,0.6) 75%, rgba(238, 232, 220,0.6) 100%);*/
        /* stripe tape effect */
        background-color: rgba(238, 232, 220,0.3);
        /*background-size: 32px 32px;*/
        /*border: solid 1px #dcd0b2;*/
    }

span.error, p.error {
    color: rgb(59, 7, 9);
}

.error.bordered, .error.shaded {
    border: 1px solid rgba(100, 13, 15, 0.5);
}

.error.shaded {
    background-color: rgba(252, 235, 235, 0.5);
}

.info {
    color: rgb(47, 57, 66);
}

    .info.bordered, .info.shaded {
        border: 1px solid rgba(83, 116, 146, 0.50);
    }

    .info.shaded {
        background-color: rgba(170, 200, 226, 0.1);
    }

.note {
    color: #222;
}


.success {
    color: rgb(32, 42, 39);
}

    .success.bordered, .success.shaded {
        border: 1px solid rgba(83, 116, 146, 0.50);
    }

    .success.shaded {
        background-color: rgba(170, 226, 209, 0.1);
    }

.tip {
    color: rgb(32, 42, 39);
}

    .tip.bordered, .tip.shaded {
        border: 1px solid rgba(191, 173, 99, 0.50);
    }

    .tip.shaded {
        background-color: rgba(245, 233, 185, 0.10);
    }

.new /* legacy */ {
    font-weight: 500;
    color: rgb(170, 126, 43);
}

.alert::before, .error::before, .info::before, .note::before, .success::before, .tip::before, .star::before {
    font-family: "Material Icons Outlined";
    /*font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;*/
    /*flex: 0 1 auto;*/
    position: relative;
    vertical-align: text-top;
    margin-right: 0.25rem;
    display: inline-block;
    font-size: 1.25rem;
    top: 1px;
    width: 1.25rem;
    height: 1.25rem;
    font-style:normal;
    /*align-self: flex-start;*/
}

.alert > :last-child, error > :last-child, .info > :last-child, .note > :last-child, .success > :last-child, .tip > :last-child, .star > :last-child {
    margin-bottom:0;
}

.alert > :first-child:not(ul, ol, dl),
error > :first-child:not(ul, ol, dl),
.info > :first-child:not(ul, ol, dl),
.note > :first-child:not(ul, ol, dl),
.success > :first-child:not(ul, ol, dl),
.tip > :first-child:not(ul, ol, dl),
.star > :first-child:not(ul, ol, dl) {
    margin: 0;
    display: inline;
    position: relative;
}

.alert::before {
    content: '\e153';
    /*color: rgb(157, 110, 75, 0.75);*/
    color: rgb(148, 126, 86);
}

.error::before {
    content: '\e001';
    color: rgba(100, 13, 15, 0.75);
}

.info::before {
    content: '\e88e';
    color: rgba(83, 116, 146, 0.75);
}

.note::before {
    content: '\f1fc';
    color: #AAA;
}

.success::before {
    content: '\e92d';
    color: rgba(83, 116, 146, 0.75);
}

.tip::before {
    content: '\e0f0';
    color: rgba(191, 173, 99, 0.75);
}

.star::before {
    /*content: '\e838';*/
    content: '\f06f';
    /*color: #deb74e;*/
    color: rgb(200, 161, 87);
}

input.alert, input.error, input.info, input.note, input.success, input.tip {
    color: revert;
}

    input.alert::before, input.error::before, input.info::before, input.note::before, input.success::before, input.tip::before, input.star::before {
        content: '';
        display: none;
    }


.imageCard {
    padding: 0.65rem;
    display: block;
}

    .imageCard h1:first-of-type,
    .imageCard h2:first-of-type,
    .imageCard h3:first-of-type,
    .imageCard h4:first-of-type,
    .imageCard h5:first-of-type,
    .imageCard h6:first-of-type {
        margin-top: 0;
    }

    .imageCard > *:last-child {
        margin-bottom: 0;
    }

    .imageCard > img, .imageCard > figure img {
        border-radius: 3px;
        width: auto;
        height: auto;
    }

    .imageCard > img,
    .imageCard > figure {
        display: block;
        float: none;
        text-align: center;
        height: auto;
        margin-bottom: 0.5rem;
    }

        .imageCard > figure img {
            /*width: 100%;*/ /* looks pretty bad with low res images */
        }

.backgroundFlag {
    background: linear-gradient(90deg, rgb(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 1) 100%), url('../img/md_flag-artf-bkgd-1024.jpg');
}


ul.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1em;
    margin-left: 0;
    /*grid-auto-columns: min-content;*/
}

    ul.grid.tight {
        grid-template-columns: repeat(3, minmax(min-content, max-content));
    }

    ul.grid > li {
        margin-left: 0;
    }

.tiles {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.2em;
    flex-wrap: wrap;
}

    .tiles.stretch {
        justify-content: center;
        align-items: stretch;
    }

/*.tiles-4col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em;
}
    .tiles-4col > .tile,
    ul.tiles-4col li.tile {
        flex:1 1 22%;
    }*/

ul.tiles li.tile {
    content: none;
    background-image: none;
    display: inline-flex;
    /*padding: 0;*/
    margin: 0;
}

.tiles > *,
.tiles .tile {
    /*flex: 1 1 auto;*/
    padding: 0.2em;
    display: block;
}

.tiles .stretch > *,
.tiles.stretch .tile {
    flex: 1 1 content;
}

/*.tile.alignCenter {
    display:flex;
    justify-content:center;
}*/

.tile > *:first-child {
    margin-top: 0;
}

.tile > *:last-child {
    margin-bottom: 0;
}


.gridTiny, .gridSmall, .gridMedium, .gridLarge {
    display: grid;
    gap: 0.25rem;
}

    .gridTiny > *, .gridSmall > *, .gridMedium > *, .gridLarge > * {
        margin: 0 !important;
    }

.gridTiny {
    grid-template-columns: repeat(auto-fit, minmax(2.5rem, 1fr));
}

.gridSmall {
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
}

.gridMedium {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.gridLarge {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

ul.gridTiny, ul.gridSmall, ul.gridMedium, ul.gridLarge {
    margin-left: 0;
}

ul.gridTiny > li, ul.gridSmall > li, ul.gridMedium > li, ul.gridLarge > li {
    content: none;
    background-image: none;
}
    ul.gridTiny > li::marker, ul.gridSmall > li::marker, ul.gridMedium > li::marker, ul.gridLarge > li::marker {
        content:none;
    }

.fontSmaller {
    font-size: 0.85rem;
}

.fontMedium {
    font-size: 1rem;
}

.alignCenter {
    text-align: center;
}

.highlight {
    background-color: rgba(255, 194, 76, 0.20);
}

.underlight {
    text-decoration: underline;
    text-decoration-color: rgba(255, 194, 76, 0.90);
}

/* sledgehammer non-hyphenated text wrapping for things like long urls; use sparingly elsewhere */
/*#bodyMain a[href^="http" i]:not([href*="elections.maryland.gov" i]), */
.forceWrap {
    line-break: anywhere;
    /*overflow-wrap: anywhere;*/
    overflow-wrap: break-word;
    text-wrap: balance !important;
}

/*-- Structural --------------------------------------------------------------*/

#wrapper {
    /*flex: 1 1 auto;*/
    margin: 0;
    border-radius: 0;
}

#topStrip {
    background-color: rgba(0,0,0,0.9);
    display: flex;
    padding: 2px 4px;
    color: #CCC;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: center;
    /*column-gap:0.5rem;
    row-gap: 0.25rem;*/
    gap: 0.5rem;
}

    #topStrip .button, #topStrip input[type="text"], #topStrip button, #topStrip summary {
        margin: 0 !important;
    }

    #topStrip a:link, #topStrip a:visited {
        text-decoration: none;
    }

        #topStrip a:link::before, #topStrip a:visited::before {
            display: none;
        }

    #topStrip a:link, #topStrip a:visited,
    footer a:link, footer a:visited {
        color: #deb84e;
    }

    #topStrip a:hover, #topStrip a:focus,
    footer a:hover, footer a:focus {
        color: #ffd04c;
    }

#sitesContainer {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}




#topStrip a.button, #topStrip button {
    display: inline-block;
    background-color: transparent;
    padding: 0;
    border: none;
    font-size: 0; /* These have no text, but it affects height anyway */
}

    #topStrip a.button img {
        background-color: #444;
        border: 1px solid #888;
        border-radius: 5px;
        width: 2rem;
        height: 2rem;
        /*padding: 0.25rem;*/
        padding: 1px;
        mix-blend-mode: luminosity;
        opacity: 0.85;
        transition: 0.35s;
    }

#topStrip a#translateLink img {
    padding:0.25rem;
}

#topStrip button {
    background-size: 24px;
    background-color: #444;
    border: 1px solid #888;
    border-radius: 5px;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    transition: 0.35s;
    box-shadow: none;
}

    #topStrip a.button:hover img, #topStrip a.button:focus img, #topStrip button:hover, #topStrip button:focus {
        mix-blend-mode: normal;
        opacity: 1;
        transition: 0.1s;
    }

#topStrip a#mdGovLink:hover img, #topStrip a#mdGovLink:focus img {
    /*mix-blend-mode: normal;*/
}


#topStrip button#contrastToggle[aria-pressed="false"] {
    background-image: url('../img/icon-contrast-off-48.png');
}

#topStrip button#contrastToggle[aria-pressed="true"] {
    background-image: url('../img/icon-contrast-on-48.png');
    background-color: #294433;
    border-color: #3ac36a;
}

#searchForm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 0.5rem;
    border-right: 2px solid #222;
}

input#searchQuery {
    width: 100%;
    position: relative;
    height: 2rem;
    font-size: 90%;
    padding: 0 2rem 0 0.25rem;
    margin-right: 0;
    text-align: right;
    color: #CCC;
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.5) inset;
    background: #444 url('../img/icon-search-48.png') right 4px center no-repeat;
    background-size: 1.5rem;
    background-blend-mode: screen;
    border: 1px solid #666;
    border-radius: 5px;
}

    input#searchQuery::placeholder {
        color: #CCC;
    }

    input#searchQuery:focus {
        background-color: #EEE;
        color: #111;
        background-blend-mode: multiply;
    }

        input#searchQuery:focus::placeholder {
            color: #888;
        }

#utilContainer {
    flex: 0 1 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: max-content;
}

#translateLink {
    /*background: #333 url('../img/icon-translate-48.png') center center no-repeat;
    background-size: 24px;*/
}

#settings {
    position: relative;
    padding: 0;
    margin: 0;
    align-self: center;
    border: none;
}

    #settings summary {
        position: relative;
        padding: 0;
        margin: 0;
        color: transparent;
        border: 1px solid #888;
        border-radius: 5px;
        width: 2rem;
        height: 2rem;
        padding: 0;
        background: #444 url('../img/icon-accessibility_settings-48.png') center center no-repeat;
        background-size: 1.5rem;
        opacity: 0.85;
    }

        #settings summary::before {
            content: none;
        }

        #settings summary:hover, #settings summary:focus {
            box-shadow: none;
            opacity: 1;
        }

    #settings[open] #settingsList {
        position: absolute;
        top: 34px;
        right: 0;
        background-color: #FFF;
        padding: 0.5rem;
        display: flex;
        flex-direction: row;
        justify-content: right;
        align-items: first baseline;
        width: max-content;
        border-radius: 5px;
    }

header {
    background-color: rgb(32, 32, 32);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

#siteTitleWrapper {
    background: linear-gradient(to right, rgb(57, 78, 98, 0.35) 0%, transparent 100%), url("../img/bkgd-ballot_box-880x220.jpg") no-repeat center center;
    background-size: cover;
    padding: 0.5rem 1rem;
}

#siteTitle {
    display: flex;
    align-items: center;
    justify-content: left;
    width: fit-content;
}

#siteLogo {
    width: 5rem;
    height: auto;
    margin: 0 auto;
    flex: 0 1 auto;
}

#siteTitle, #siteTitle abbr {
    text-decoration: none;
    text-shadow: 0px 0px 5px rgba(0,0,0,1);
}

    /*Default mobile shows abbr instead of h1 */
    #siteTitle span {
        display: none;
    }

    #siteTitle span, #siteTitle abbr {
        font-weight: 400;
        font-size: 2.4rem;
        flex: 1 1 auto;
        color: rgba(255,255,255,1);
        border: 0;
        transition: 0.5s;
    }

    #siteTitle:hover span, #siteTitle:hover abbr {
        color: rgba(255,255,255,0.9);
        text-shadow: 0px 0px 5px rgba(255,255,255,0.2);
        transition: 0.2s;
    }

#siteSubtitle, #appSubtitle {
    display: none;
}


/*---- Main Nav --------------------------------------------------------------*/

#mainNav {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    vertical-align: bottom;
}

    #mainNav ul, #mainNav menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #mainNav li {
        margin: 0;
        padding: 0;
    }

#mainNavList1, #mainNavList2 {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
}

#mainNav details {
    flex: 1;
    margin: 0;
    padding: 0;
    border: none;
    /*min-width: 18ch;*/
    /* min-width: dependent on the actual text content of the summary element, as well as the breakpoint. 
       Having a baseline prevents the menu names getting too crushed or stretched relative to their neighbors, and also 
       prevents flip-flopping of the mainNavList1/mainNavList2 stacking as the dimensions decrease. Basically, having a 
       reasonable minimum value just smooths out the nav behavior. */
}

    #mainNav details:not([open]) .menuWrapper {
        opacity: 0;
    }

    #mainNav details[open] .menuWrapper {
        position: absolute;
        width: 100%;
        left: 0;
        border: solid 1px #AAA;
        border-top: none;
        border-radius: 0 0 4px 4px;
        z-index: 2;
        opacity: 1;
        box-shadow: 0 3px 8px 0 rgba(0,0,0,0.25);
        text-align: left;
        max-height: 20rem;
        overflow-y: auto;
        padding: 0 10% /*4rem*/;
    }

    #mainNav details[open] ul > li,
    #mainNav details[open] menu > li {
        display: flex;
        flex-direction: column;
    }

    #mainNav details a {
        padding: 0.7rem 1rem;
        text-decoration: none;
        font-weight: 500;
        font-variation-settings: 'wdth' 100;
        /*transition: background-color 0.5s;*/
        /*font-size: larger;*/
    }

        #mainNav details a:focus {
            outline-offset: -1px;
        }

    #mainNav details dt {
        display: block;
        color: #888;
        font-weight: 500;
        font-size: larger;
        margin: 1rem 1rem 0 1rem;
    }

    #mainNav details dl {
        margin-bottom: 0;
        border-bottom: 1px solid #DDD;
    }

    #mainNav details p {
        margin: 0 1rem;
        color: #333;
        font-size: 0.85rem;
        font-weight: normal;
    }


#mainNav summary {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    padding: .75em 1em;
    transition: 0.35s;
    min-height: 3.5rem; /*magic number, based on expected wrapping*/
    height: 100%;
}

#mainNav details summary::before {
    content: none;
}

#mainNavList1 summary {
    background-color: rgba(170, 126, 43,0.9);
    /*background-color: #976F26;*/ /* 4.54:1 - wcag normal text AA */
    box-shadow: inset 0 -5px 0 0 rgba(0,0,0,0.15);
    text-shadow: 0px 0px 2px #000;
    color: rgb(255,255,255);
}

    #mainNavList1 summary:hover, #mainNavList1 details:has(:focus) summary {
        background-color: rgb(199, 148, 52);
    }

#mainNavList1 details:has(:focus) summary {
    box-shadow: inset 0 -5px 0 0 rgb(255, 216, 108);
}

#mainNavList1 details[open] .menuWrapper {
    background-color: rgb(251, 249, 246);
}

#mainNavList1 details a:hover {
    background-color: rgb(248, 239, 226);
}

/*#mainNavList1 button:focus {*/
/* might want to handle this separately */
/*}*/


#mainNavList2 summary {
    background-color: rgba(14, 31, 56);
    /*background-color: rgba(4, 9, 14, 0.90);*/ /* Perceptual black for Jared */
    box-shadow: inset 0 -5px 0 0 rgba(255, 255, 255, 0.2);
    color: rgba(255,255,255,0.8);
    text-shadow: 0px 0px 1px rgba(0, 0, 0, 1);
}

    #mainNavList2 summary:hover, #mainNavList2 details:has(:focus) summary {
        background-color: rgb(30, 56, 91);
        /*background-color: rgba(20, 30, 40, 0.90);*/ /* Jared */
        /*box-shadow: inset 0 -4px 0 0 rgba(255, 255, 255, 0.2);*/
    }

#mainNavList2 details:has(:focus) summary {
    box-shadow: inset 0 -5px 0 0 rgb(69, 134, 234);
}

#mainNav summary:hover {
    box-shadow: inset 0 -5px 0 0 rgba(255,255,255,0.3);
    transition: 0.1s;
}

#mainNav summary:hover, #mainNav details:has(:focus) summary {
    outline: none;
    color: rgba(255,255,255,1);
}

#mainNavList2 details[open] .menuWrapper {
    background-color: rgb(250, 252, 255);
}

#mainNavList2 details a:hover, #mainNavList2 details a:focus {
    background-color: rgb(237, 244, 255);
}

/*-- Simplified Nav for Voter Services --*/

#mainNav > ul, #mainNav > menu {
    position: relative;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap:wrap;
}

    #mainNav > ul > li,
    #mainNav > menu > li {
        flex: 1 1 auto;
        text-align: center;
        margin: 0;
        padding: 0;
    }

        #mainNav > ul > li > a,
        #mainNav > menu > li > a {
            display: block;
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            padding: 1rem;
            /*min-height: 3.5rem; magic number, based on expected wrapping*/
            text-shadow: 0px 0px 1px rgba(0, 0, 0, 1);
            text-decoration: none;
        }

            #mainNav > ul > li > a:link, #mainNav > ul > li > a:visited,
            #mainNav > menu > li > a:link, #mainNav > menu > li > a:visited {
                background-color: rgb(16, 29, 48);
                box-shadow: inset 0 -5px 0 0 rgba(255, 255, 255, 0.2);
                color: rgba(255,255,255,0.85);
                transition: 0.35s;
            }

            #mainNav > ul > li > a:hover, #mainNav > ul > li > a:focus,
            #mainNav > menu > li > a:hover, #mainNav > menu > li > a:focus {
                box-shadow: inset 0 -5px 0 0 rgba(255,255,255,0.3);
                background-color: rgb(30, 56, 91);
                color: #FFF;
                transition: 0.1s;
            }

            #mainNav > ul > li > a:focus,
            #mainNav > menu > li > a:focus {
                outline-offset: -2px;
                transition-property: background-color, color, box-shadow;
            }



/*-- End Main Nav -----------------------------------------------------------*/

#bodyContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    background: #FFF;
    padding: 1rem;
    overflow: auto; /* prevent margin collapse */
    font-size: 1.25rem;
}

/* for vestigial skip links. these are usually not even implemented correctly (like <a href="?top"> or <a name="top">)
   regardless, I handle it at the template level. */
a#content, a#top {
    display: none;
}

#alert {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5em 0;
    font-size: 100%;
    max-height: 8rem;
    overflow-y: scroll;
}

    #alert:empty {
        display: none;
    }

    #alert > :last-child {
        margin-bottom: 0;
    }

    /* MDGov alert text tends to be very verbose, with absurdly long h2's. */
    #alert h1, #alert h2, #alert h3, #alert h4, #alert h5, #alert h6 {
        font-family: "Noto Sans", sans-serif;
        font-variation-settings: 'wdth' 090;
        font-weight: 450;
        font-optical-sizing: auto;
        color: #111;
        margin: 0;
        display: inline;
        position: relative;
        font-size: 100%;
    }

    #alert > * {
        margin: 0;
    }

    #bodyMain > h1:first-child, #bodyMain > h2:first-child, #bodyMain > h3:first-child {
        margin-top: 0;
    }

#cookiesPanel {
    background: #EEE;
    border: 2px solid #DDD;
    border-radius: 4px;
    padding: 1em;
    margin: 4px;
}

    #cookiesPanel p {
        margin: 0 0 1rem 0;
        padding: 0;
        text-align: center;
    }

    #cookiesPanel span {
        display: flex;
    }

    #cookiesPanel button.button {
        flex: 1 1 auto;
    }



footer {
    background-color: rgb(32,32,32);
    color: #CCC;
}

#footerTop {
    display: block;
    padding: 1.2em 2em 1em 2em;
}

footer nav {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

    footer nav ul, footer nav menu {
        display: flex;
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }

    footer nav li {
        flex: 0 1 auto;
        margin-left: 0;
        padding: 0;
    }

        footer nav li:not(:first-child):before {
            content: '|';
            color: #555;
            padding: 0 0.5em;
        }

ul.linkList li, menu.linkList li {
    line-height: 2rem;
}

#footerTop address {
    text-align: center;
}

footer #copyright {
    display: block;
    background: rgba(0,0,0,1);
    text-align: center;
    font-size: 0.85rem;
    color: #AAA;
    margin: 0;
    padding: 0.5em;
}


/*-- Section Nav -------------------------------------------------------------- */

#sectionNav {
    border: none;
    border-radius: 5px 5px 0 0;
    border-bottom: 4px solid #DDD;
}

    #sectionNav[open] {
        max-height: 20rem;
        overflow-y: auto;
        padding: 0;
    }

        #sectionNav[open] > :not(summary) {
            padding: 2px 7%;
        }

    #sectionNav ul, #sectionNav menu {
        margin: 0;
    }

    #sectionNav dl {
        margin: 0.5rem 0;
    }

    #sectionNav dd {
        padding: 0;
    }

    /*  Technically the spec allows h2+ headings in navs and such pre-h1. 
            I don't like it, but we'll support it anyway. */
    #sectionNav[open] h2,
    #sectionNav[open] h3,
    #sectionNav[open] h4,
    #sectionNav[open] h5,
    #sectionNav[open] h6,
    #sectionNav[open] dt {
        font-family: "Noto Sans", sans-serif;
        font-weight: 550;
    }

    #sectionNav[open] h2 {
        font-size: 1rem;
        color: rgb(61, 74, 88);
    }

    #sectionNav[open] h3 {
        font-size: 1rem;
        color: rgb(120, 120, 120);
    }

    #sectionNav summary {
        background-color: rgb(240, 240, 240);
        box-shadow: none;
        font-size: 1.4rem;
        font-weight: 500;
        color: rgb(102, 107, 114);
        margin: 0;
        padding: 0.4rem 0.6rem 0.4rem 0;
        border-radius: 5px 5px 0 0;
        display: flex;
        /*overflow: clip;*/
    }

#bodyContent #sectionNav[open] summary {
    background: linear-gradient(90deg, rgba(220, 220, 220, 1) 0%, rgba(220, 220, 220, 0.1) 100%);
    border-radius: 5px 0 0 0;
    padding-right: 1rem;
    margin: 0;
}

#sectionNav summary::before {
    font-family: "Material Icons Outlined";
    content: '\e7cd';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    flex: 0 1 auto;
    align-self: baseline;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
    color: rgba(0,0,0,0.5);
}

#sectionNav[open] summary::before {
    transform: rotate(0deg);
    margin-right: 0.5rem;
}

#bodyContent #sectionNav li {
    margin: 0 0 0 1rem;
    padding: 0;
    position: relative;
}

#sectionNav li > a {
    position: relative;
    display: block;
    margin: 0 0 0 -1rem;
    padding: 0.65rem 1rem 0.65rem 1.5rem;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

    #sectionNav li > a:hover, #sectionNav li > a:focus {
        background-color: rgba(0,0,0,0.03);
        box-shadow: inset 4px 0 0 0 #0f447133;
        outline-offset: -2px;
    }

#sectionNav a.currentSectionLink, #sectionNav a.currentSectionLink:hover {
    background-color: #FAFAFA;
    /*background-color: rgba(0,0,0,0.03);*/
    background-color: rgb(240, 244, 251);
    color: #222;
    text-decoration: none;
    box-shadow: inset 4px 0 0 0 #0f4471aa;
}

.marginBottom {
    margin-bottom:1rem;
}

.marginBottom2 {
    margin-bottom: 2rem;
}


/*-- Breakpoints ----------------------------------------------------------- */

/*@media screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-width: 500px) {
}*/

@media screen and (max-width: 50ch) {
    #topStrip {
        justify-content: space-between;
    }

        #topStrip a.button img, #topStrip button {
            width: 1.75rem;
            height: 1.75rem;
        }

    #searchForm {
        order: 3;
        flex: 1 1 100%;
        border-right: none;
        margin-right: 0;
        padding: 0 0 0.25rem 0;
    }

    #sitesContainer, #utilContainer {
        flex: 1;
    }

    #siteLogo {
        width: 30%;
        height: auto;
    }

    #bodyContent #sectionNav summary span {
        font-variation-settings: 'wdth' 80;
        font-size:80%;
    }
}

@media screen and (min-width: 110ch) {
    body {
        font-variation-settings: 'wdth' 100;
        font-weight: 325;
    }

    h1, h2, h3, #siteTitleWrapper, #bodyContent summary, #sectionNav summary span {
        font-variation-settings: 'wdth' 100;
    }

    #wrapper {
        margin: 0 auto 1rem auto;
        max-width: 1280px;
        box-shadow: 0px 0px 6px 1px rgba(0,0,0,0.5);
        border: 1px solid #000;
        border-radius: 0 0 8px 8px;
        background-color: #000;
    }

    input#searchQuery {
        min-width: 10ch;
        max-width: 60ch;
    }

    #siteTitleWrapper {
        padding: 2rem;
        background: linear-gradient(to right, rgb(57, 78, 98, 0.5) 0%, transparent 66%), url("../img/bkgd-ballot_box-1280x320.jpg") no-repeat left bottom;
        background-size: cover;
    }

    #siteLogo {
        width: 6rem;
        height: 6rem;
    }

    /* span is full agency name */
    #siteTitle span, #siteTitle abbr {
        display: block;
        text-wrap: nowrap;
    }

    /* MSBE */
    #siteTitle abbr {
        display: none;
    }

    #siteSubtitle, #appSubtitle {
        display: block;
        margin: -0.75em 1em 1em 6rem;
        color: rgba(255,255,255,0.75);
        mix-blend-mode: color-dodge;
        font-size: 1.25rem;
    }

        /*#siteSubtitle span {
            display: inline-block;
            padding-right: 0.25em;
        }*/

        #siteSubtitle .glow {
            font-weight: 650;
        }

        #siteSubtitle .glow, #appSubtitle {
            color: rgb(255, 255, 255);
            padding: 0 0.05em 0 0.25em;
            text-shadow: 0px 0px 7px rgba(255,255,255,0.35);
        }

    #appSubtitle {
        font-weight: 400;
        font-size: 1.6rem;
    }

    #mainNav summary {
        /*min-width: 18ch;*/
    }

    #mainNav {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    /* each div has a collection of loose details elements */
    #mainNavList1, #mainNavList2 {
        flex: 1 1 auto;
        display: flex;
        justify-content: stretch;
    }

    /* nav / div#mainNavList$ / details */
    #mainNav details {
        flex: 1 1 auto;
        display: grid;
        grid-template-areas:
            "tab"
            "menu";
        justify-content: stretch;
    }

    #mainNav summary {
        grid-area: tab;
    }

    #mainNav details[open] {
        position: relative;
    }

        #mainNav details[open] .menuWrapper {
            position: absolute;
            grid-area: menu;
            display: flex;
            flex-direction: row;
            left: auto;
            right: auto;
            width: max-content;
            min-width: 100%;
            /*max-width: 30rem;*/
            max-height: 30em;
            text-align: left;
            padding: 2px;
        }


    /* Give the first and last menu in primary/secondary a little more room */
    #mainNav details:first-child, #mainNav details:last-child {
        max-width: 100vw;
    }

    #mainNav details:nth-child(n+3)[open] > .menuWrapper {
        text-align: right;
        right: 0;
    }

    #mainNav details ul, #mainNav details menu {
        display: flex;
        flex-direction: column;
        width: stretch;
    }

    #mainNav details a {
        padding: 0.6em 1em;
        text-decoration: none;
    }

    #mainNav details[open] .menuWrapper dl {
        border-bottom: none;
    }

    .menuWrapper > dl:not(:first-child) {
        border-left: 1px solid rgba(64,64,64,0.1);
    }

    #mainNavList2 summary {
        background-color: rgb(16, 29, 48);
        /*background-color: rgb(4, 9, 14, 0.40);*/ /* Jared */
    }

    #mainNavList1 > a {
        background-color: rgb(211, 165, 38);
    }

    #mainNavList2 > a {
        background-color: rgb(19, 43, 77);
    }

    #alert {
        padding: 0;
    }

    #bodyContent {
        display: grid;
        grid-template:
            "bodyTop bodyTop bodyTop"
            "sectionNav bodyMain null" 1fr / auto minmax(min-content, 80ch) 1fr; /* NOTE: sectionNav width must be auto in order to collapse horiz when toggled */
        gap: 0 2rem;
        width: 100%;
        /*justify-content: space-between;*/
        font-size: 1rem;
    }

    #bodyTop {
        grid-area: bodyTop;
        margin-bottom: 1rem;
    }

    #sectionNav {
        grid-area: sectionNav;
        height: min-content;
    }

        #sectionNav summary span {
            display: hidden;
            visibility: collapse;
            width: 0;
            height: 0;
        }

        #sectionNav summary::before {
            margin-right: 0;
        }

        #sectionNav[open] {
            border-bottom: 4px solid #DDD;
            max-height: unset;
            min-width: 32ch;
            /*max-width: 42ch;*/
            /* NOTE: min-width / max-width are required to control the size while open; 
               otherwise its size is 'auto' as per the grid-template. */
        }

            #sectionNav[open] summary span {
                display: block;
                visibility: unset;
                height: unset;
                text-wrap-style: balance;
            }

        #sectionNav dl {
            padding: 2px;
        }

        #sectionNav[open] > :not(summary) {
            padding: 2px;
        }

        #sectionNav[open] h2,
        #sectionNav[open] h3,
        #sectionNav[open] h4,
        #sectionNav[open] h5,
        #sectionNav[open] h6,
        #sectionNav[open] dt {
            margin: 0.5rem 0.5rem 0 0.5rem;
        }

        #sectionNav li > a {
            padding: 0.35rem 1rem 0.35rem 1.5rem;
        }

    #bodyMain {
        grid-area: bodyMain;
    }

    #cookiesPanel {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
    }

        #cookiesPanel p {
            margin: 0;
            padding: 0;
            flex: 1 1 auto;
            text-align: center;
        }

        #cookiesPanel span {
            flex: 1 1 auto;
            display: flex;
        }

    #footerTop {
        display: flex;
    }

        #footerTop address {
            flex: 1 1 auto;
            text-align: right;
        }

    footer nav {
        flex: 1 1 auto;
        padding: 0;
        margin: 0;
    }

        footer nav ul, footer nav menu {
            display: block;
            text-align: left;
            margin: 0;
        }

            footer nav ul li, footer nav menu li {
                line-height: 2rem;
            }

        footer nav li:before {
            content: none !important;
            padding: 0;
        }

    ul.linkList li {
        line-height: unset;
    }

    .imageCard {
        position: relative;
        display: flow-root;
        width: fit-content;
    }

        .imageCard > img,
        .imageCard > figure {
            width: fit-content;
            position: relative;
        }

            .imageCard > figure img {
                width: 100%;
            }

        .imageCard img.quarter,
        .imageCard figure.quarter {
            width: 25%;
        }

        .imageCard img.third,
        .imageCard figure.third {
            width: 34%;
        }

        .imageCard img.half,
        .imageCard figure.half {
            width: 45%;
        }

        .imageCard img.left,
        .imageCard figure.left {
            float: left;
            margin-right: 1em;
        }

            .imageCard figure.left figcaption {
                text-align: left;
            }

        .imageCard img.right,
        .imageCard figure.right {
            float: right;
            margin-left: 1em;
        }

            .imageCard figure.right figcaption {
                text-align: right;
            }

    .tiles > * {
        flex: 0 1 content;
    }
}
/*-- Accessibility Settings ------------------------------------------------ */

/*#settingsContainer {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 4px 0;
    padding: 0.35em;
    width: max-content;
    height: fit-content;
    border-radius: 3px;
    background-color: #FFF;
    box-shadow: 0 3px 8px 0 rgba(0,0,0,0.25);
}

    #settingsContainer ul.inputList {
        margin-bottom: 0;
    }

    #settingsContainer label {
        font-size: 1rem;
        padding: 0.5em;
    }*/

.highContrast p {
    font-weight: 400;
}

.highContrast strong {
    font-weight: 700;
}

.highContrast #bodyContent a:not([class]):link, .highContrast #bodyContent a:not([class]):visited {
    color: #00325e;
}

.highContrast #bodyContent a:not([class]):hover, .highContrast #bodyContent a:not([class]):focus {
    color: #0062b4;
}

.highContrast #mainNav a, .highContrast #bodyContent a, .highContrast footer a {
    font-weight: 500;
}

    /*this will include section nav*/
    .highContrast #mainNav a:hover, .highContrast #mainNav a:focus,
    .highContrast #bodyContent a:not(.button):hover, .highContrast #bodyContent a:not(.button):focus {
        background-color: rgb(255, 244, 216, 0.7);
        color: #00223e;
    }

.highContrast #bodyMain a:not(.button):not(.feature),
.highContrast footer a:not(.button) {
    padding: 2px;
}

.highContrast input#searchQuery {
    background-color: #CCC;
    color: #111;
    background-image: url('../img/icon-search-48-dark.png');
    background-blend-mode: normal;
}

    .highContrast input#searchQuery::placeholder {
        color: #111;
    }

    .highContrast input#searchQuery:focus::placeholder {
        color: #888;
    }

.highContrast #topStrip a:link, .highContrast #topStrip a:visited,
.highContrast footer a:link, .highContrast footer a:visited {
    color: #efc346;
}

.highContrast #topStrip a:hover, .highContrast #topStrip a:focus,
.highContrast footer a:hover, .highContrast footer a:focus {
    background-color: rgba(0,0,0,0.75);
    color: #ffd86c;
}

.highContrast footer {
    background-color: rgb(24,24,24);
    color: #EEE;
}

.highContrast #copyright {
    color: #DDD;
}

.highContrast #mainNavList1 summary {
    background-color: rgb(133, 105, 40);
    text-shadow: 0px 0px 2px #000;
    color: #FFF;
}

    .highContrast #mainNavList1 summary:hover,
    .highContrast #mainNavList1 summary:focus {
        background-color: rgb(77, 71, 58);
        box-shadow: inset 0 0 0 4px rgb(222, 184, 78);
        text-shadow: none;
        color: rgb(255, 255, 255);
    }

.highContrast #mainNavList2 summary:hover,
.highContrast #mainNavList2 summary:focus {
    background-color: rgb(24, 24, 24);
    box-shadow: inset 0 0 0 4px rgb(91, 156, 255);
    text-shadow: none;
    color: rgb(255, 255, 255);
}

.highContrast h1 {
    color: rgb(111, 79, 20);
}

.highContrast #sectionNav summary,
.highContrast #sectionNav dt {
    color: rgb(47, 51, 57);
}



.highContrast .alert.shaded,
.highContrast .error.shaded,
.highContrast .info.shaded,
.highContrast .note.shaded,
.highContrast .success.shaded,
.highContrast .tip.shaded,
.highContrast td {
    color: #111;
}

.highContrast .alert.shaded {
    background: #fff6e3;
}



.highContrast #mainNav details dt {
    color: #333;
}

.highContrast a.skip:focus {
    color: #FFF;
}

.highContrast #bodyContent summary:hover,
.highContrast #bodyContent summary:focus {
    background-color: rgb(220, 220, 220);
}

.highContrast summary:focus {
    outline-offset: -2px;
    outline-color: rgba(0,0,0,0.75);
}
