.box {
    margin: 2em;
    background-color: #eee;
    border: solid gray 1px;
    padding: 1em;
}
.innerbox {
    margin-top: 0em;
    margin-bottom: 0em;
    padding: 0em;

}

div.mediumcolumn {
    width: 10em;
    float: left;
}
div.widecolumn {
    width: 20em;
    float: left;
}
div.column {
    width: 5em;
    float: left;
}
div.clear {
    clear: both;
}
div.lastcolumn {
    margin-left: 20em;
}

span.navigation {
    margin-left: 1em;
    margin-right: 1em;
    display: inline-block;
}

.navigation {
    border-bottom: 3px solid rgba(0,0,0,0);
}

.navigation > a {
    text-decoration: none;
    color: #000;
    padding: .5rem 1rem;
    display: block;
    height: 100%;
}

.active {
    border-color: #1d7491;
}

.navigation:hover {
    border-color: #1d7491;
}

.navigation.active{
    border-bottom-color: #1d7491;
    font-weight: bold;
}

span.browse_list {
    padding-left: .5em;
    padding-right: .5em;
    margin: 0px;
    border-left: 1px black solid;
    margin-left: 0px;
    margin-right: 0px;
}

span.options { padding-left: .5em; }
span.first { border-left: 0px;  padding-left: 0px;}

div.top {
    margin-bottom: .5em;
}


form.inline { display: inline; }

.indent {

    margin: 1em;
    margin-left: 2em;
}

span.update {
    background-color: #aaa;
    border: solid 1px #777;
    padding: .25em;
}

div.navigation {
    text-align: center;
    margin-bottom: 1em;
}

div.result {
    margin-top: 1em;
    margin-bottom: 1em;
}

.hidden {
    display: none;
}

span.location {
    margin-left: 1.5em;
    margin-right: 1.5em;
}

div.left {
    vertical-align: top;
    margin-top: 0px;
    /*border: solid black 1px;  */
    float: left;
    width: 50%;
    margin-left: 0px;
    margin-right:0px;
}

span.right {
    text-align: left;
}
span.left {
    text-align: right;
}

div.tags {
    text-indent: -34px;
    padding-left: 34px;
}

div.right {
    margin-top: 0px;
    vertical-align: top;
    /*border: solid black 1px;  */
    margin-left:  50%;
    margin-right:0px;
    width:50%;
}

span.results-navigation {
   width:33%;
}
.name {
    font-size: 1.25em;
    font-weight: bold;
}

span.title {
    font-weight: bold;
}

.summary {
    margin-right: 1em;
    font-style: italic;
}

img.mtag {
    margin-bottom: -20px;
    position: relative;
    vertical-align: text-top;
}

div.image {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: -20;
    margin-bottom: 0px;
    float: right;
}

ul.issn {
    list-style-type: none;
    display: inline;
    padding: 0px !important;
}
ul.issn li {
    margin-left: 0px !important;
    padding: 0px !important;
    display: inline;
}

ul.link {
    list-style-type: none;
}
li.free {
    list-style-image: url(images/world2.gif);
}
li.auth {
    list-style-image: url(images/mpwd2.gif);
}

.push {
    border: none;
}
.push:hover {
    border: none;
    background-color: #eee;
    text-decoration: none;
    color: black;
}

table.assignments {
  border: solid black 1px;
}
table.assignments td, table.assignments th {
    font-size: 1rem;
    padding-left: .5em;
    padding-right: .5em;
    padding-top: .5em;
    padding-bottom: .5em;
    margin-left: .5em;
    margin-right: .5em;
    width: 7em;
}
table.assignments td.light,table.assignments th.light {
    background-color: #ddd;
}
table.assignments td.dark,table.assignments th.dark {
    background-color: #bbb;
}

table.assignments td.wide, table.assignments th.wide {
    width: 15em;
    background-color: #ddd;
}

td > a {
    color: #106684;
}

.marginBottomHalf {
    margin-bottom: .5rem;
}

.marginLeftHalf {
    margin-left: .5rem;
}

/* Ensure touch targets in search results meet WCAG 2.2 AA minimum of 24px */
table.assignments td a {
    display: inline-block;
    padding: 0.5em 0.75em;
    /* Negative margins extend the clickable area to cell edges while maintaining visual spacing */
    margin: -0.5em -0.75em;
    min-height: 24px;
    line-height: 1.5;
}

/* Footer styles */
.site-footer {
    background-color: #00274c;
    color: #ffffff;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.footer-section a {
    color: #a6cee3;
    text-decoration: underline;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive improvements for select elements and other form controls */
select {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fix overflow issues with column-based layouts on smaller viewports */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
    }
    
    div.column,
    div.mediumcolumn,
    div.widecolumn {
        float: none;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    div.lastcolumn {
        margin-left: 0;
        width: 100%;
    }
    
    div.left,
    div.right {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    
    select {
        width: 100%;
    }
    
    textarea {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Enable horizontal scrolling for wide tables on mobile */
    .box {
        overflow-x: auto;
    }
    
    table.assignments td,
    table.assignments th {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Additional responsive fixes for zoomed in views */
@media (max-width: 480px) {
    .box {
        margin: 1em 0.5em;
        padding: 0.75em;
    }
    
    input[type="text"],
    input[type="submit"],
    input[type="reset"] {
        max-width: 100%;
        box-sizing: border-box;
    }
}
