/* Responsive shell and layout for the existing public pages. */
body { margin: 0; }
.site-frame {
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    color: #fff;
    background: #7e4d24;
    font-family: Helvetica, Arial, sans-serif;
    overflow-wrap: break-word;
}
.site-frame *, .site-frame *::before, .site-frame *::after { box-sizing: border-box; }
.site-frame img { max-width: 100%; height: auto; }
.site-frame h1, .site-frame h2, .site-frame h3 { overflow-wrap: anywhere; }
.site-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.site-brand > div:first-child { min-width: 0; }
.site-title { display: inline-block; color: #fff; font-size: 1.7rem; font-weight: 700; line-height: 1.15; text-decoration: none; text-transform: uppercase; }
.site-institute { margin-top: .3rem; font-size: .9rem; }
.site-logos { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.site-logos img { display: block; width: 3.5rem; }
.site-banner { display: block; width: 100%; }
.site-nav { background: #2e2117; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; padding: 0; list-style: none; }
.site-nav li { display: flex; flex: 1 1 6.7rem; min-width: 0; list-style: none; list-style-image: none; }
.site-nav a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: .45rem; color: #fff; background: #18120e; font-size: .87rem; line-height: 1.2; font-weight: 700; text-align: center; text-transform: uppercase; text-decoration: none; }
.site-nav .nav-peach { --nav-highlight: #ffb270; }
.site-nav .nav-olive { --nav-highlight: #b2be78; }
.site-nav .nav-mustard { --nav-highlight: #c2aa55; }
.site-nav .nav-green { --nav-highlight: #b1c741; }
.site-nav a:hover, .site-nav a[aria-current] { color: #22180e; background: var(--nav-highlight, #ffb270); }
.site-frame a:focus-visible { outline: 3px solid #225ea8; outline-offset: -3px; }
.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 4; padding: .6rem; background: #fff; transform: translateY(-300%); }
.skip-link:focus { transform: translateY(0); }
.site-content { min-width: 0; overflow-wrap: anywhere; overflow-x: auto; color: #16120e; }
.site-content table.table-header, .site-content table.table-page, .site-content table.table-home-page,
.site-footer table.table-header { width: 100%; min-width: 0; }
.site-content div.text, .site-content p { text-align: start; }
.site-content iframe { max-width: 100%; }
.home-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "about publications" "news publications"; gap: .8rem; padding: .9rem; align-items: start; }
.home-about { grid-area: about; }
.home-publications { grid-area: publications; }
.home-news { grid-area: news; }
.news-card { display: flex; gap: .8rem; margin-bottom: .7rem; padding: .8rem; background: #fff; }
.news-copy { flex: 1 1 65%; min-width: 0; }
.news-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.news-date { margin: 0 0 .4rem; }
.news-photo { flex: 0 1 35%; min-width: 0; margin: 0; }
.news-photo img { display: block; width: auto; max-height: 340px; object-fit: contain; }
.news-photo figcaption { margin-top: .25rem; }
@media (max-width: 540px) { .news-card { display: block; } .news-photo { margin-top: .7rem; } }
.site-footer { border-top: 1px solid #936a49; }
.site-footer .site-search { display: block; width: calc(100% - 1rem); height: 2.5rem; margin: .5rem auto; border: 0; }
.site-footer td { overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .site-title { font-size: 1.37rem; }
    .site-brand { padding: .7rem; }
    .site-logos img { width: 2.3rem; }
    .site-content > table.table-header > tbody > tr > td { padding: .55rem; }
    .home-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "about" "publications" "news"; padding: .65rem; }
    .site-footer > table > tbody > tr { display: block; }
    .site-footer > table > tbody > tr > td { display: block; padding: .55rem .8rem; text-align: start; }
}
@media (max-width: 540px) {
    .site-brand { flex-wrap: wrap; gap: .55rem; }
    .site-nav li { flex-basis: calc(33.333% - 1px); }
    .site-content div.text, .site-content div.text-about-us, .site-content p { font-size: .9375rem; }
    .site-content table.table-page td { padding: .4rem; }
    .site-content table.table-page img.img-projects { max-width: min(100%, 5rem); }
    .site-content[class*="_detail"] table.table-page tbody,
    .site-content[class*="_detail"] table.table-page tbody > tr,
    .site-content[class*="_detail"] table.table-page tbody > tr > td {
        display: block;
        width: 100%;
    }
    .site-content[class*="_detail"] table.table-page table { width: 100%; }
}
@media (max-width: 340px) {
    .site-nav li { flex-basis: calc(50% - 1px); }
}
