/* 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. Don't put anything long-term in there.
    * selectors prefixed with 'mdgov_' are from the old DoIT template; a lot of content still references it. Once we chase
      it all down and replace it, we can remove them too.
*/

:root {
    /*-- Main palette --*/
    /* pri */
    --color-pri: oklch(0.56 0.1 82);
    --color-pri-dark: oklch(from var(--color-pri) calc(l - 0.08) c h);
    --color-pri-darker: oklch(from var(--color-pri) calc(l - 0.35) calc(c - 0.06) h);
    --color-pri-light: oklch(from var(--color-pri) calc(l + 0.1) calc(c + .01) h);
    --color-pri-bright: oklch(from var(--color-pri) calc(l + 0.3) calc(c + 0.035) h);
    --color-pri-mute: oklch(from var(--color-pri) calc(l + 0.3) calc(c - 0.04) h);
    --color-pri-highlight: oklch(from var(--color-pri-mute) l c h / 0.3);
    --color-pri-shade: oklch(from var(--color-pri-mute) calc(l + 0.13) calc(c - 0.05) h);
    /* sec */
    --color-sec: oklch(0.415 0.1 258);
    --color-sec-dark: oklch(0.353 0.08 258);
    --color-sec-darker: oklch(from var(--color-sec-dark) calc(l - 0.07) calc(c - 0.02) h);
    --color-sec-light: oklch(0.515 0.12 258);
    --color-sec-bright: oklch(from var(--color-sec) calc(l + 0.1) calc(c + 0.07) h);
    --color-sec-mute: oklch(0.87 0.04 258);
    --color-sec-highlight: oklch(from var(--color-sec-mute) l c h / 0.3);
    --color-sec-shade: oklch(from var(--color-sec-mute) calc(l + 0.12) calc(c - 0.032) h);
    /* ter */
    --color-ter: oklch(0.415 0.1 20);
    --color-ter-dark: oklch(0.35 0.075 20);
    --color-ter-darker: oklch(from var(--color-ter-dark) calc(l - 0.1) calc(c - 0.02) h);
    --color-ter-light: oklch(0.515 0.12 20);
    --color-ter-mute: oklch(0.87 0.04 20);
    --color-ter-shade: oklch(from var(--color-ter-mute) calc(l + 0.12) calc(c - 0.03) h);
    /* general */
    --color-gen-gray: oklch(0.5 0.0136 248.27);
    --color-gen-gray-dark: oklch(0 0 0 / 0.75);
    --color-gen-gray-darker: oklch(0 0 0 / 0.9);
    --color-gen-gray-light: oklch(0.75 0 0 / 0.75);
    --color-gen-gray-lighter: oklch(0.75 0 0 / 0.25);
    --color-gen-gray-shade: oklch(0 0 0 / 0.028);
    --color-gen-highlight: oklch(0.97 0.1114 80 / 0.4);
    --color-gen-success: oklch(0.35 0.08 168);
    /*-- General --*/
    /* shorthands */
    --short-border-gray: 1px solid var(--color-gen-gray);
    --short-border-gray-dark: 1px solid var(--color-gen-gray-dark);
    --short-border-gray-light: 1px solid var(--color-gen-gray-light);
    /* single values */
    --value-border-radius: 4px;
    --value-border-radius-tight: 3px;
    --value-border-radius-wide: 5px;
    --value-border-radius-wider: 7px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: oklch(0.35 0.005 258);
    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: var(--value-border-radius-tight);
}

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: var(--color-sec-dark);
    }

a:link, a:visited,
a:link img, a:visited img,
a:link::before, a:visited::before, a:link::after, a:visited::after,
input, button, select, textarea, summary {
    transition-timing-function: ease;
    transition-property: color, background, background-color, border-color, outline, opacity, box-shadow, text-shadow;
    transition-duration: .3s;
}

a:hover, a:focus {
    color: var(--color-sec-bright);
}


:hover, :focus,
:hover img, :focus img,
:hover::before, :focus::before, :hover::after, :focus::after {
    transition-timing-function: ease;
    transition-property: color, background, background-color, border-color, outline, opacity, box-shadow, text-shadow;
    transition-duration: 0.05s;
}

:is(a, button, input, textarea, summary):focus-visible {
    outline: 2px solid oklch(from var(--color-sec-bright) l c h / 0.75);
    outline-offset: 1px;
}

:is(a, button, input, textarea, summary):focus:not(:focus-visible) {
    outline: none;
}

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:where(.facebook,.twitter,.instagram,.print,.csv,.doc,.pdf,.xls) {
    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:where(.facebook,.twitter,.instagram,.print,.csv,.doc,.pdf,.xls)::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-y: center;
        background-position-x: left;
        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: 1em;
    background-position-y:66%;
    background-position-x:left;
    background-repeat: no-repeat;
    top: 0;
    padding-left: 1rem;
    padding-right: 0.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');
    
}

    a[href$=".csv" i]::before, a.csv::before {
        background-image: url('../img/icon-file-csv-64.png');
    }

a[href$=".doc" i]::before,
a[href$=".docx" i]::before, a.doc::before {
    background-image: url('../img/icon-file-word-64.png');
}

a[href$=".pdf" i]::before, a.pdf::before {
    background-image: url('../img/icon-file-pdf-64.png');
}

a.print::before {
    background-image: url('../img/icon-print.png');
    background-size: 1.25rem;
    background-position: center left -2px;
    /* TODO: Print icon transition is ugly; working correctly but rounding errors on aliasing make it choppy. 
             Probably happening on other icons too but they're mostly solid colors. */
}

a[href$=".xls" i]::before,
a[href$=".xlsx" i]::before,
a[href$=".xlsm" i]::before,
a.xls::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: var(--color-sec-mute);
    text-wrap: nowrap;
}

.rumor {
    color: var(--color-ter);
}

.fact {
    color: var(--color-gen-success);
}

    .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;
}

blockquote {
    display: block;
    margin: 0 0 1rem 0;
    padding: 1rem;
}

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;
    table-layout: auto;
    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: var(--short-border-gray-light);
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
    width: fit-content;
}

th.collapse, td.collapse {
    width: 1%;
    text-wrap: nowrap; /*Need to use nbsp for these*/
}

    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:not(.underline) {
    text-decoration: none;
    padding:0.1em 0.2em;
    background-color: oklch(0.5 0 0 / 0.1);
    border-radius: var(--value-border-radius-tight);
}

    i.underline, em.underline, u.underline {
        text-decoration: underline;
        text-decoration-color: var(--color-gen-gray);
    }

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: var(--value-border-radius-wide);
    margin: 2px;
}

audio {
    background: #F5F5F5;
    border: var(--short-border-gray-light);
    padding: 1rem;
}

meter {
    width:stretch;
    min-height:1.25rem;
}


/*-- 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 .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: var(--value-border-radius-wide);
    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: var(--short-border-gray);
        border-radius: var(--value-border-radius-tight);
    }

    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 {
    align-self: stretch;
    min-height: calc(3lh + 0.5rem); /*add 0.25rem vert padding*/
    max-height: calc(10lh + 0.5rem);
    /* 2026-01: 
        field-sizing not supported by Firefox
        resize:vertical not supported by Safari on iOS
        no real workaround to wrangle sizing within a flex layout, so not bothering with an @supports stack */
    field-sizing: content;
    resize: vertical;
    overflow-y: auto;
}

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: var(--value-border-radius-tight);
    margin: 4px;
    padding: 0.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 450;
    border: var(--short-border-gray);
    box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.25);
}

button, input[type="submit"], input[type="button"], input[type="reset"] {
    background-color: var(--color-gen-gray-lighter);
    color: var(--color-gen-gray-darker);
    cursor: pointer;
}

    button:hover, input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
        background-color: oklch(from var(--color-gen-gray-lighter) calc(l + 0.1) c h);
        box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.5);
        color: #000;
    }

    button:active, input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active {
        background-color:var(--color-gen-gray-light);
    }

    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;
        }

        a.button:active,
        button.button:active,
        input[type="submit"].button:active,
        input[type="button"].button:active,
        input[type="reset"].button:active {
            background-color: rgb(32, 55, 88);
            color: rgb(255,255,255,0.75);
        }

    input:hover, button:hover, .button:hover,
    select:hover, textarea:hover {
        border-color: oklch(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;
}

input[disabled], 
button[disabled], 
fieldset[disabled], 
optgroup[disabled], 
option[disabled], 
select[disabled], 
textarea[disabled] {
    background-color: var(--color-gen-gray-lighter) !important;
    box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.25) !important;
    border: var(--short-border-gray) !important;
    color: var(--color-gen-gray-darker) !important;
    opacity: 0.65 !important;
    cursor: unset !important;
} 

ul.inputList, menu.inputList {
    margin-left: 0;
    padding-left: 0;
}

    ul.inputList li, menu.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;
}

#bodyMain details, .iframeWrapper, .tableWrapper, .videoWrapper {
    content-visibility: auto;
}

iframe {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.iframeWrapper iframe, details > iframe {
    width: 100%;
    border-radius: var(--value-border-radius-wide);
}

    .videoWrapper video, .videoWrapper iframe {
        aspect-ratio: 16/9 auto;
        width: 100%;
        height: auto;
        border-radius: var(--value-border-radius-wide);
    }

.formWrapper {
    overflow-x: auto;
}

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: 1em 0 0.25em 0;
}
    h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6 {
        margin-top: 0.5em;
    }

h1 {
    margin: 0 0 0.5em 0;
    color: var(--color-pri);
    font-size: 1.85rem;
    font-weight: 400;
}

h2 {
    color: var(--color-ter);
    font-size: 1.7rem;
    font-weight: 400;
}

h3 {
    color: var(--color-sec-dark);
    font-size: 1.6rem;
    font-weight: 400;
}

h4 {
    color: var(--color-pri-dark);
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    color: var(--color-ter-dark);
    font-size: 1.35rem;
    font-weight: 500;
}

h6 {
    color: var(--color-sec-darker);
    font-size: 1.35rem;
    font-weight: 500;
}

dl {
    margin-bottom: 1rem;
}

dt {
    /*display: flex;
    align-items: center;*/
    padding: 0;
    font-weight: 550;
    color: var(--color-gen-gray-dark);
    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: var(--color-gen-gray-light);
}

/*nested */
dd dt {
    color: var(--color-gen-gray-darker);
}

/*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-color: var(--color-gen-gray-shade);
        box-shadow: inset 0 0 0 -4px var(--color-gen-gray-light);
    }

    .shaded dl.shaded dd {
        background-color: rgba(255,255,255, 0.9);
    }

ul.bordered, menu.bordered, dl.bordered, dd.bordered, blockquote.bordered,
ul.shaded, menu.shaded {
    /*border: 1px solid rgba(61, 74, 88, 0.25);*/
    border-radius: var(--value-border-radius-tight);
}

    dl.bordered dt {
        padding: 0.5rem;
        box-shadow: none;
    }

    ul.bordered, menu.bordered, dl.bordered dd, dd.bordered, blockquote.bordered, 
    ul.shaded, menu.shaded {
        padding: 1rem;
    }
/*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;*/
    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: var(--short-border-gray-light);
        }

        /*dl.columns.shaded dd {
            border-left: solid 1px #CCC;
        }*/

            dl.columns.shaded > dt:last-of-type,
            dl.columns.shaded dt:has(+ dt),
            dl.columns.shaded > dd:last-of-type {
                border-bottom: none;
            }

            dl.columns.shaded > dt:last-of-type:has(+ dd + dd) {
                border-bottom: var(--short-border-gray-light);                
            }


.overflow-x {
    overflow-x: auto;
}

.overflow-y {
    overflow-y: auto;
}

.overflow {
    overflow: auto;
}

details {
    margin-bottom: 1em;
    border: var(--short-border-gray-light);
    border-radius: var(--value-border-radius);
}

    /* followed directly by another details element */
    details:has(+ details) {
        margin-bottom: 2px;
    }

summary {
    align-items: start;
    cursor: pointer;
    border-radius: var(--value-border-radius-tight);
    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;
    }

details details summary,
details details summary h2, 
details details summary h3, 
details details summary h4, 
details details summary h5, 
details details summary h6 {
    font-size: 1em;
}

    summary::marker {
        content: '';
    }

summary::before {
    position: relative;
    display:inline-block;
    margin-left: -0.25rem;
    font-family: "Material Icons Outlined";
    content: '\e5c5';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    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: var(--value-border-radius-tight) var(--value-border-radius-tight) 0 0;
}

#bodyContent details[open] > :last-child {
    margin-bottom: 0;
}


hr {
    border: 2px solid var(--color-gen-gray-lighter);
    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: var(--value-border-radius);
        width: auto;
        height: auto;
        text-align: center;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
    }

    a.skip:hover {
        background-color: #222;
        color: #FFF;
    }


#topLink {
    display: none;
}

.inlineBlock {
    display: inline-block;
}

.floatLeft {
    float:left;
    vertical-align:text-bottom;
}
.floatRight {
    float: right;
    vertical-align: text-bottom;
}

.invis {
    visibility: collapse;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.visibilityCollapse {
    visibility: collapse;
}

.displayNone {
    display: none;
}

/* General purpose checkmark for tables and such */
img[src$="check.png"] {
    width: 1em;
    height: 1em;
    mix-blend-mode: multiply; /* 2025-12: almost no support for plus-darker */
}
th img[src$="check.png"] {
    mix-blend-mode: plus-lighter;
}

.monospace {
    font-family: monospace;
    font-weight: normal;
}

.expand { width:100%; }

/* For corner cases; usually tables are expected to be the only child of a div.tableWrapper */
table.table-expand {
    width: 99%;
}

.alignRight :is(th, td), :is(th, td).alignRight {
    text-align: right;
}

.alignCenter :is(th, td), :is(th, td).alignCenter {
    text-align: center;
}

.alignLeft :is(th, td), :is(th, td).alignLeft {
    text-align: left;
}

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: var(--color-gen-gray-shade);
}

thead, tr.dark th, tr.dark td, th.dark, td.dark {
    background-color: var(--color-gen-gray);
    color: #FFF;
    text-shadow: 0px 0px 2px rgba(0,0,0, 1);
}

    thead.unshaded {
        background-color: unset;
        color: var(--color-gen-gray-dark);
        text-shadow:none;
    }

table.shaded, tr.shaded, th.shaded, td.shaded {
    background-color: var(--color-gen-gray-shade);
}

tfoot {
    box-shadow: inset 0 4px 0 0 var(--color-gen-gray-lighter);
    color: #000;
}

:not(tr, th, td, dt, dd, li).bordered,
:not(tr, th, td, dt, dd, li).shaded,
.videoWrapper, .iframeWrapper, .formWrapper, .menuWrapper, .tableWrapper {
    border-radius: var(--value-border-radius);
    /* Resist the temptation to set tight margins. It makes a mess with <p>, <ul>, etc. 
       Consider somthing like a min-margin class instead. */
}

/* This is to ensure there's a gap on top, not to force a bottom margin (e.g.: <p>) */
.bordered + .bordered, .bordered + .outlined, .bordered + .shaded,
.outlined + .bordered, .outlined + .outlined, .outlined + .shaded,
.shaded + .bordered, .shaded + .outlined, .shaded + .shaded {
    margin-top: 0.25rem;
}

.outlined {
    outline: var(--short-border-gray-light);
    outline-offset: 2px;
}

.bordered {
    border: var(--short-border-gray-light);
}

p.bordered, .padded {
    padding: 1rem;
}

.bordered > p:last-child, .outlined > p:last-child,
.bordered > ul:last-child, .outlined > ul:last-child,
.bordered > ol:last-child, .outlined > ol:last-child {
    margin-bottom: 0;
}

.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: var(--short-border-gray-light);
    border-radius: var(--value-border-radius-wide);
}

.alert, .error, .info, .note, .success, .tip {
    position: relative;
    font-weight: 375;
}

    .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: var(--short-border-gray-light);
    /*border-radius: 3px;*/
}
:is(b, i, span, u).shaded { padding:0.1em 0.25em; }

.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: var(--color-pri-darker);
}

    .alert.bordered, .alert.shaded {
        border: solid 1px var(--color-pri-mute);
    }

    .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: var(--color-pri-shade);
        /*background-size: 32px 32px;*/
        /*border: solid 1px #dcd0b2;*/
    }

span.error, p.error {
    color: var(--color-ter-darker);
}

.error.bordered, .error.shaded {
    border: 1px solid var(--color-ter-mute);
}

.error.shaded {
    background-color: var(--color-ter-shade);
}

.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: var(--color-gen-success);
}

    .success.bordered, .success.shaded {
        border: 1px solid oklch(from var(--color-gen-success) calc(l + 0.4) calc(c - 0.05) h);
    }

    .success.shaded {
        background-color: oklch(from var(--color-gen-success) calc(l + 0.8) calc(c - 0.065) h);
    }

.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, 
a.topLink:not(.alignRight)::before, a.topLink.alignRight::after {
    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;*/
}

:is(.alert, .error, .info, .note, .star, .success, .tip) > :last-child {
    margin-bottom: 0;
}

:is(.alert, .error, .info, .note, .star, .success, .tip) > :first-child:not(ul, ol, dl) {
    margin: 0;
    display: inline-block;
    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: var(--color-gen-success);
}

.tip::before {
    content: '\e0f0';
    color: rgba(191, 173, 99, 0.75);
}

a.topLink:not(.alignRight)::before {
    content: '\eacf';
    color: rgb(128, 128, 128, 0.75);
}
a.topLink.alignRight::after {
    content: '\eacf';
    color: rgb(128, 128, 128, 0.75);
    margin-right: 0;
}

a.topLink.hr {
    display: block;
    border-bottom: 4px solid #EEE;
    margin: 2em 0;
}

.star::before {
    /*content: '\e838';*/
    content: '\f06f';
    /*color: #deb74e;*/
    color: rgb(200, 161, 87);
}

input:is(.alert, .error, .info, .note, .star, .success, .tip) {
    color: revert;
}
    input:is(.alert, .error, .info, .note, .star, .success, .tip)::before {
        content: '';
        display: none;
    }


.imageCard {
    padding: 0.65rem;
    display: block;
}

    .imageCard > *:last-child {
        margin-bottom: 0;
    }

    .imageCard > img, .imageCard > figure img {
        border-radius: var(--value-border-radius-tight);
        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 */
        }

:is(article, aside, figure, address) > :last-child {
    margin-bottom: 0;
}

.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');
}

.width-25p { max-width: 25%; }
.width-33p { max-width:33%; }
.width-50p { max-width:50%; }
.width-66p { max-width: 66%; }
.width-75p { max-width: 75%; }


.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;
}


/*-- Auto-filling grid with slots based on minimum values --*/

.grid-tiny > *, .grid-small > *, .grid-medium > *, .grid-large > * {
    margin: 0 !important;
}

.grid-tiny {
    grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
}

.grid-small {
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
}

.grid-medium {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.grid-large {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}


.flex {
    display:flex;
    flex-wrap:wrap;
    gap:1em;
}
.flex > li, .flex > * {
    flex:1;
}
.flex > a { flex:0 1 auto; }

/*-- Auto-filling grid system with explicit maximum column count --*/

ul.grid-3, menu.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

ul.grid-4, menu.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

ul.grid-5, menu.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

ul.grid-6, menu.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

ul.grid-7, menu.grid-7 {
    grid-template-columns: repeat(7, 1fr);
}

ul.grid-8, menu.grid-8 {
    grid-template-columns: repeat(8, 1fr);
}

ul.grid-9, menu.grid-9 {
    grid-template-columns: repeat(9, 1fr);
}

ul.grid-10, menu.grid-10 {
    grid-template-columns: repeat(10, 1fr);
}

.grid-tiny, .grid-small, .grid-medium, .grid-large,
.grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10 {
    display: grid;
    gap: 1rem;
}


:is(ul, menu):is(.grid-tiny, .grid-small, .grid-medium, .grid-large, .grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10) {
    margin-left: 0;
    /*justify-items: center;*/
}

:is(.grid-tiny, .grid-small, .grid-medium, .grid-large, 
.grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10) > li {
    margin-left: 0;
    padding-left: 0;
    content: "";
}

    :is(.grid-tiny, .grid-small, .grid-medium, .grid-large, 
    .grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10) > li::marker {
        content: none;
    }

:is(.grid-tiny, .grid-small, .grid-medium, .grid-large).collapse {
    grid-template-columns: repeat(auto-fill, minmax(2.5em, max-content)); /* TODO: Not working */
}

.fontSmaller {
    font-size: 0.85rem;
}

.fontMedium {
    font-size: 1rem;
}

.highlight {
    background-color: var(--color-gen-highlight);
}

span.highlight, i.highlight, u.highlight {
    padding-left: 0.25em;
    padding-right: 0.25em;
    border-radius: var(--value-border-radius-tight);
}

.underlight {
    text-decoration: underline;
    text-decoration-color: var(--color-gen-highlight);
}

/* 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;
}

.alignRight {
    text-align: right;
}

.alignCenter {
    text-align: center;
}

.alignLeft {
    text-align: left;
}

.justify {
    text-justify: auto;
}

#bodyMain nav {
    margin:2px;
    padding:1rem;
    max-width:100%;
    margin-bottom:1rem;
}

    #bodyMain nav > :last-child {
        margin-bottom:0;
    }

    /*-- Structural --------------------------------------------------------------*/
#wrapper {
    /*flex: 1 1 auto;*/
    margin: 0;
    border-radius: 0;
}

#skipContainer {
    background-color:#000;
}

#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: oklch(from var(--color-pri-bright) calc(l - 0.07) c h);
    }

    #topStrip a:hover, #topStrip a:focus,
    footer a:hover, footer a:focus {
        color: var(--color-pri-bright);
    }

    #topStrip button:focus, #topStrip .button:focus {
        outline-offset: -1px;
        border-radius: var(--value-border-radius-wide);
    }

#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;
    font-size: 0; /* These have no text, but it affects height anyway */
}

    #topStrip a.button {
        border:none;
    }

    #topStrip a.button img {
        background-color: #444;
        border: var(--short-border-gray);
        border-radius: var(--value-border-radius-wide);
        width: 2rem;
        height: 2rem;
        /*padding: 0.25rem;*/
        padding: 1px;
        mix-blend-mode: luminosity;
        opacity: 0.85;
    }

#topStrip a#translateLink img {
    padding:0.25rem;
}

#topStrip button {
    background-size: 24px;
    background-color: #444;
    border: var(--short-border-gray);
    border-radius: var(--value-border-radius-wide);
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.85;
    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;
    }

#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: var(--short-border-gray);
    border-radius: var(--value-border-radius-wide);
}

    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: var(--short-border-gray);
        border-radius: var(--value-border-radius-wide);
        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: var(--value-border-radius-wide);
    }*/

header {
    background-color: oklch(0.25 0 0);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

#siteTitleWrapper {
    background: linear-gradient(to right, oklch(0.4149 0.0426 247.66 / 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 oklch(0 0 0 / 0.9);
}

    /*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: oklch(1 0 0 / 0.85);
        border: none;
        transition: 0.35s;
    }

    #siteTitle:hover span, #siteTitle:hover abbr {
        color: oklch(1 0 0);
        text-shadow: 0px 0px 5px oklch(1 0 0 / 0.2);
        transition: 0.2s;
    }

#siteSubtitle, #appSubtitle {
    display: none;
}

#bodyTop {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    max-height: 6lh;
    overflow-y: auto;
}

#bodyTop > * {
    flex:1 1 33%;
    margin: 0;
}

    /* MDGov alert text tends to be very verbose, with absurdly long h2's. */
    #bodyTop :is(h1, h2, h3, h4, h5, 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%;
    }

/*---- Main Nav --------------------------------------------------------------*/

#mainNav {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    align-self:flex-end;
}

#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;
    anchor-scope: --mainNavList;
    anchor-name: --mainNavList;
}

#mainNav details {
    flex: 1;
    margin: 0;
    padding: 0;
    border: none;
    anchor-scope: --details;
    anchor-name: --details;
}
    

    /*#mainNav details .menuWrapper {
        position: fixed;
        width: 100%;
        left: 0;
        border: var(--short-border-gray);
        border-top: none;
        border-radius: 0 0 var(--value-border-radius) var(--value-border-radius);
        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%;
    }*/
    #mainNav details .menuWrapper {
        position: fixed;
        width: 100%;
        position-anchor: --details;
        top: anchor(--details bottom);
        left: anchor(--mainNavList left);
        right: anchor(--mainNavList right);
        border: var(--short-border-gray);
        border-radius: 0;
        border-top: none;
        z-index: 2;
        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 ul > li,
    #mainNav details 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: var(--color-gen-gray);
        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, #mainNav #homeLink {
    justify-content: center;
    text-align: center;
    align-content: center;
    min-height: 2lh; /*semi-magic number, based on expected wrapping*/
    height: 100%; /* align-items: stretch won't work here*/
    margin: 0;
    border: none;
    border-radius: 0;
    font-size: 1.125rem;
    font-weight: 500;
    padding: .75em 1em;
    transition: 0.35s;
    text-shadow: 0px 0px 2px oklch(0 0 0 / 0.85);
}

#mainNav details summary::before {
    content: none;
}

#mainNavList1 summary {
    background-color: var(--color-pri);
    color: rgb(255,255,255);
    
}

#mainNav #homeLink {
    background-color: var(--color-pri-dark);
}

    #mainNav #homeLink img {
        display: block;
        padding:0;
        margin:0;
        outline:none;
        border:none;
        position:relative;
        height: 1lh;
        width: auto;
    }

    #mainNavList1 summary:hover, #mainNavList1 details:has(:focus) summary {
        background-color: var(--color-pri-light);
        box-shadow: inset 0 -5px 0 0 oklch(from var(--color-pri-highlight) l c h / 0.5);
    }

    #mainNavList1 #homeLink:hover {
        background-color: var(--color-pri-light);
    }

#mainNavList1 details:has(:focus) summary {
    box-shadow: inset 0 -5px 0 0 var(--color-pri-bright);
}

#mainNav #homeLink:focus {
    outline: none;
    background-color: var(--color-pri-light);
}

#mainNavList1 details .menuWrapper {
    background-color: var(--color-pri-shade);
}

#mainNavList1 details a:hover {
    background-color: var(--color-pri-highlight);
}


#mainNavList2 summary {
    background-color: var(--color-sec-darker);
    color: oklch(1 0 0 / 0.8);
    
}

    #mainNavList2 summary:hover, #mainNavList2 details:has(:focus) summary {
        background-color: var(--color-sec-dark);
        box-shadow: inset 0 -5px 0 0 oklch(from var(--color-sec-highlight) l c h / 0.35);
    }

#mainNavList2 details:has(:focus) summary {
    box-shadow: inset 0 -5px 0 0 oklch(from var(--color-sec-bright) calc(l + 0.05) calc(c + 0.01) h);
}

#mainNav summary:hover, #mainNav details:has(:focus) summary {
    outline: none;
    color: oklch(1 0 0);
}

#mainNavList2 details .menuWrapper {
    background-color: var(--color-sec-shade);
}

#mainNavList2 details a:hover, #mainNavList2 details a:focus {
    background-color: var(--color-sec-highlight);
}

/*-- 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: var(--color-sec-darker);
                box-shadow: inset 0 -5px 0 0 oklch(1 0 0 / 0.2);
                color: rgba(255,255,255,0.85);
            }

            #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 oklch(1 0 0 / 0.3);
                background-color: var(--color-sec-dark);
                color: #FFF;
            }

            #mainNav > ul > li > a:focus,
            #mainNav > menu > li > a:focus {
                outline-offset: -2px;
            }



/*-- 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[name='content'], a#top, a[name='top'] {
    display: none;
}


#bodyMain > :is(h1, h2, h3):first-child, /* h1 is expected to be the first-child, but still finding relics */
#bodyMain * :is(h1, h2, h3, h4, h5, h6):first-child, /* otherwise any parent that has a heading */
.imageCard > :is(img, figure) + :is(h1, h2, h3, h4, h5, h6) /* imageCard uses float */ {
    margin-top: 0;
}

footer {
    background-color: oklch(0.243 0 0);
    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: oklch(1 0 0 / 0.15);
            padding: 0 0.5em;
        }

ul.linkList li, menu.linkList li {
    line-height: 2rem;
}

#footerTop address {
    text-align: center;
}

footer #copyright {
    display: block;
    background-color: oklch(0 0 0 / 0.5);
    text-align: center;
    font-size: 0.85rem;
    color: #AAA;
    margin: 0;
    padding: 0.5em;
}


/*-- Section Nav -------------------------------------------------------------- */

#sectionNav {
    border: none; /* clear */
    border-bottom: 3px solid var(--color-gen-gray-light);
    border-radius: var(--value-border-radius-wide) var(--value-border-radius-wide) 0 0;
}

    #sectionNav[open] {
        max-height: 20ch;
        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] :is(h2, h3, h4, h5, h6, 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: var(--value-border-radius-wide) var(--value-border-radius-wide) 0 0;
        display: flex;
        gap:0 0.25rem;
        /*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: var(--value-border-radius-wide) 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;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
    color: rgba(0,0,0,0.5);
}

#sectionNav[open] summary::before {
    transform: rotate(0deg);
}

#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: rgba(0,0,0,0.03);*/
    background-color: var(--color-sec-highlight);
    color: #222;
    text-decoration: none;
    box-shadow: inset 4px 0 0 0 var(--color-sec-light);
}

.marginBottom {
    margin-bottom:1rem;
}

.marginBottom2 {
    margin-bottom: 2rem;
}

.fitContent {
    width: fit-content;
}

/*-- 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;
    }

    /*.alert, .error, .info, .note, .success, .tip {
        font-weight: 400;
    }*/

    #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 9px 9px;
        background-color: #FFF;
    }

    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 {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

        #mainNav details .menuWrapper {
            position: fixed;
            width: max-content;
            max-width: anchor-size(--mainNavList width);
            max-height: unset;
            justify-self: anchor-center;
            /*-*/
            display: flex;
            flex-direction: row;
            text-align: left;
            padding: 2px;
            border-radius: 0 0 var(--value-border-radius) var(--value-border-radius);
        }

    #mainNav details:first-child .menuWrapper {
        justify-self: start;
    }

    #mainNav details:last-child .menuWrapper {
        justify-self: end;
    }

    #mainNav details ul, #mainNav details menu {
        display: flex;
        flex-direction: column;
        width: 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-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 a {
        padding: 0.6em 1em;
        text-decoration: none;
    }

    #mainNav details .menuWrapper dl {
        border-bottom: none;
    }

    .menuWrapper > dl:not(:first-child) {
        border-left: 1px solid rgba(64,64,64,0.1);
    }

    #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;
        font-size: 100%;
        flex-flow:wrap;
        /*flex-wrap: wrap;*/
    }

    #alert {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5em 0;
        font-size: 100%;
        max-height: 9rem;
        overflow-y: auto;
    }

        #alert:empty {
            display: none;
        }

        #alert > :last-child {
            margin-bottom: 0;
        }

        /* MDGov alert text tends to be very verbose, with absurdly long h2's. */
        #alert :is(h1, h2, h3, h4, h5, 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;
        }

    #sectionNav {
        grid-area: sectionNav;
        height: min-content;
    }
    
    #sectionNav summary span {
            visibility: collapse;
            width: 0;
            height: 0;
        }

        #sectionNav[open] {
            border-bottom: 4px solid var(--color-gen-gray-lighter);
            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:not([open]) summary {
            gap: 0;
        }

        #sectionNav dl {
            padding: 2px;
        }

        #sectionNav[open] > :not(summary) {
            padding: 2px;
        }

        #sectionNav[open] :is(h2, h3, h4, h5, h6, 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;
        }

    #topLink {
        /*transition: all .25s ease-in-out;*/
        position: sticky;
        bottom: 0.25rem;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        /* left margin must be auto for position:sticky to align center or right */
        margin: 0 0.25rem 0.25rem auto;
        padding: 0;
        border-radius: var(--value-border-radius-wide);
        border: var(--short-border-gray-light);
        opacity: 0.8;
        background-color: rgb(235,235,235);
    }

        #topLink img {
            display:block;
            opacity: 0.35;
            width:2rem;
            height:2rem;
        }

        #topLink:hover, #topLink:focus {
            opacity: 1;
        }
        #topLink:hover img, #topLink:focus img {
            opacity: 0.5;
        }

            /*#topLink:hover img, #topLink:focus img {
                opacity: 0.5;
            }*/

    footer, #copyright {
        border-radius: 0 0 8px 8px;
    }

    #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;
    }
}

@media print {
    :root {
        print-color-adjust: economy;
    }

    body {
        background:none; 
        background-color:none;
    }

    #wrapper { margin:0; }
    #topStrip, #siteSubtitle, #mainNav, #sectionNav, footer {
        display: none;
    }

    header, #siteTitleWrapper {
        background: none;
        margin: 0;
    }
    #siteTitle abbr, #siteTitle span {
        color: #000;
        text-shadow:none;
    }

    h1 { color: var(--color-pri-dark); }

    thead, tr.dark th, tr.dark td, th.dark, td.dark {
        background-color: #DDD;
        color: #000;
        text-shadow: none;
    }

    th img[src$="check.png"] {
        mix-blend-mode:multiply;
    }
    /*a::before, a::after { display:none; }*/ /* for now let print ui handle this */
}

/*-- 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: oklch(from var(--color-pri) calc(l - 0.1) calc(c - 0.02) h);
    text-shadow: 0px 0px 2px #000;
    color: #FFF;
}

    .highContrast #mainNavList1 summary:hover,
    .highContrast #mainNavList1 summary:focus,
    .highContrast #mainNavList1 #homeLink:hover,
    .highContrast #mainNavList1 #homeLink:focus {
        background-color: oklch(from var(--color-pri) calc(l - 0.15) calc(c - 0.05) h);
        box-shadow: inset 0 0 0 4px var(--color-pri-bright);
        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 var(--color-sec-bright);
    text-shadow: none;
    color: rgb(255, 255, 255);
}

.highContrast h1 {
    color: var(--color-pri-dark);
}

.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);
}
