/* Loaded only by the seven public sections. */
:root { --site-red: #510000; --site-focus: #005a83; }
body { color: #d0caca; }
main { overflow-wrap: anywhere; }
.row3 { color: #4f4949; }
.row3 a { color: #674a32; }
#footer, #footer a, #copyright, #copyright a { color: #d0caca; }
#copyright .fl_left { color: inherit; }
#header, #container, #footer, #copyright, #hpage_featured {
    width: min(960px, calc(100% - 32px));
    box-sizing: border-box;
}
#homepage, #content1, #topnav { width: 100%; box-sizing: border-box; }
#content1 { float: none; }
#topnav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
#topnav ul li { margin: 0; }
#topnav a { display: block; padding: 6px 8px; }
#topnav a:hover, #topnav li.active a, #topnav a:focus-visible {
    color: #ffe1d5;
    text-decoration: underline;
    text-underline-offset: .28em;
}
.site-menu-toggle {
    display: none;
    background: var(--site-red);
    color: #fff;
    min-height: 44px;
    border: 1px solid #e1d6cb;
    border-radius: 4px;
    padding: 6px 12px;
    font: inherit;
    cursor: pointer;
}
a:focus-visible, button:focus-visible, input:focus-visible,
#featured_slide .featured-control:focus-visible {
    outline: 3px solid var(--site-focus);
    outline-offset: 2px;
}
#topnav :focus-visible, #footer :focus-visible, #copyright :focus-visible {
    outline-color: #ffdb86;
    outline-offset: -2px;
}
.site-skip {
    position: absolute;
    z-index: 20;
    top: 4px;
    left: 4px;
    padding: 10px;
    background: #fff;
    color: var(--site-red);
    transform: translateY(-150%);
}
.site-skip:focus { transform: none; }
main img { max-width: 100%; height: auto; }
#content1 > img, #column > img {
    display: block;
    margin: 16px auto;
    max-width: 100%;
    height: auto;
}
#gallery ul > li {
    float: none;
    width: auto;
    height: auto;
    overflow: visible;
    margin: 0 0 24px;
}
#gallery li img {
    display: block;
    width: min(800px, 100%);
    margin: 0 auto;
    height: auto;
}
#container .pub-container h2 { font-size: 26px; padding-left: 12px; }
.pub-container .pub-search-box { box-sizing: border-box; max-width: 100%; border-color: #777; }
.pub-search-box::placeholder { color: #595959; opacity: 1; }
.pub-pagination button { min-height: 36px; }
.pub-pagination button.active, #container .sop-download { background: #466365; color: #fff; }
#container .sop-download { font-size: 14px; min-height: 24px; }
#container .sop-download:hover { background: #27484a; }
.pub-container .no-results, .facility-container .device-location { color: #475d5f; }
.pub-container .pub-number, .pub-container .pub-title a:hover { color: #176784; }
.devices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.device-img img, .team-member-photo img { margin: 0; }
.device-img img { object-fit: contain; }
.team-member-info { min-width: 0; }
#container .team-member-grid a { font-size: 14px; }
#top_featured { display: block; width: 100%; }
#container #homepage #content #top_featured > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
}
#container #homepage #content #top_featured li, #container #homepage #content #top_featured li.last {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}
#container #homepage #content #top_featured li img {
    display: block;
    box-sizing: border-box;
    width: min(266px, 100%) !important;
    height: 170px !important;
    margin: 12px auto;
    padding: 4px;
    background: #fafafa;
    object-fit: contain;
    border: 1px solid #e3e3e3;
}
#container #column .position-details { font-size: 16px; line-height: 1.65; }
#featured_slide.featured-carousel {
    width: 470px !important;
    height: auto !important;
    overflow: visible !important;
}
#featured_slide .featured-viewport, #featured_slide .featured-track, #featured_slide .featured-item { height: auto; }
#featured_slide .featured-image-link { height: clamp(155px, 48vw, 458px); }
#featured_slide .featured-image-link img { margin: 0; }
#featured_slide .featured-caption { min-height: 0; padding: 7px 0 0; }
#featured_slide .featured-journal, #featured_slide .featured-counter { color: #494343; }
#featured_slide .featured-caption a { color: #730c0c; text-decoration: underline; }
#featured_slide .featured-status {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    white-space: normal;
    margin-top: 8px;
}
#featured_slide .featured-control, #featured_slide .featured-pause {
    position: static;
    width: auto;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 8px;
    color: #fff;
    background: #510000;
    border: 0;
    border-radius: 4px;
    font: inherit;
    line-height: normal;
    opacity: 1;
    cursor: pointer;
}
#featured_slide .featured-control { font-size: 23px; }
#featured_slide .featured-dot {
    width: 25px;
    height: 34px;
    margin: 0;
    background: transparent;
    border: 0;
}
#featured_slide .featured-dot::before {
    display: block;
    width: 9px;
    height: 9px;
    margin: auto;
    content: "";
    border: 1px solid #514747;
    border-radius: 50%;
}
#featured_slide .featured-dot.active::before { background: #6e0000; }
#featured_slide .featured-counter { margin-left: 2px; }
@media (max-width: 980px) {
    #header, #container, #footer, #copyright, #hpage_featured { width: calc(100% - 32px) !important; }
    #featured_slide.featured-carousel { width: 100% !important; }
    #header .fl_left, #header .fl_right { float: none; }
    #topnav { padding: 8px !important; }
    #topnav .site-menu-toggle:not([hidden]) { display: inline-block; }
    #topnav ul { flex-direction: column; text-align: left !important; margin-top: 6px; }
    #topnav ul[hidden] { display: none; }
    #topnav a { padding: 10px 12px !important; }
    #content, #column { float: none; width: 100%; clear: both; }
    #column .holder, #column #featured { width: auto; }
    #home #content, #home #column { width: 100% !important; }
    #footer { background-image: none; }
}
@media (max-width: 768px) {
    main .wrapper { text-align: start; }
    #container { line-height: 1.6; font-size: 16px; }
    #header h1 { font-size: 23px; }
    #footer .footbox, #footer .fl_right { float: none; width: auto; margin: 0 0 20px !important; }
    #footer #newsletter { display: block; }
    #footer a, #copyright { overflow-wrap: anywhere; }
    #footer li > a, #footer address > a, #copyright a {
        display: inline-block;
        min-height: 24px;
        line-height: 24px;
    }
    #container #homepage #content #top_featured > ul { grid-template-columns: minmax(0, 1fr); }
    #container #homepage #content #top_featured li img { width: 100% !important; height: auto !important; }
    .team-section { padding: 14px; }
    .team-member-item { flex-direction: column; }
    .team-member-photo { max-width: 100%; }
    .team-member-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); }
    .devices-grid { grid-template-columns: minmax(0,1fr); }
    .pub-container { padding: 8px; }
    .pub-container .pub-authors, .pub-container .pub-title { font-size: 1em; }
    .pub-item:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
