/* Internship list: a plain two-column table of firms. */

.intern-count{
    color: #7a7a7a;
    font-size: 0.9em;
}

table.intern-table{
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0 3em 0;
}
table.intern-table th{
    text-align: left;
    padding: 8px 12px;
    background: #f0eef1;
    color: #52739e;
    border-bottom: 2px solid #dcd8dd;
    font-size: 0.95em;
}
table.intern-table td{
    padding: 7px 12px;
    border-bottom: 1px solid #ebe8ec;
    vertical-align: top;
}
table.intern-table tr:hover td{
    background: #faf7f8;
}
table.intern-table td.c-type{
    color: #7a7a7a;
    font-size: 0.9em;
}

/* Five columns do not fit a narrow window: drop the type, and let the
   degree and location wrap. */
@media only screen and (max-width: 820px){
    table.intern-table .c-type{
        display: none;
    }
    table.intern-table .c-deg,
    table.intern-table .c-loc{
        white-space: normal;
    }
    table.intern-table td,
    table.intern-table th{
        padding: 7px 8px;
    }
    /* long role titles must be allowed to break, or the table pushes the
       page wider than the window */
    table.intern-table{
        table-layout: fixed;
        width: 100%;
    }
    table.intern-table td.c-role{
        width: auto;
    }
    table.intern-table td,
    table.intern-table th{
        overflow-wrap: anywhere;
    }
}

/* Below the site's own fixed width the page scrolls anyway; keep the table
   from adding to it. */
@media only screen and (max-width: 620px){
    table.intern-table .c-deg{
        display: none;
    }
}

/* Summer 2027 column: one role per table row, so each lines up with its
   own degree and location. Rows after the first in a firm's block lose the
   divider, keeping the firm's roles visually together. */
table.intern-table th.c-role{
    white-space: nowrap;
}
table.intern-table td.c-role{
    width: 38%;
}
table.intern-table .c-deg{
    white-space: nowrap;
    font-size: 0.9em;
    color: #6a6a6a;
}
/* Several roles list four or five cities. Let that column wrap instead of
   holding the table open at its widest line. */
table.intern-table .c-loc{
    white-space: normal;
    font-size: 0.9em;
    color: #6a6a6a;
    width: 16%;
}
table.intern-table tr.intern-cont td{
    border-top: none;
}
table.intern-table tr:not(.intern-cont) td{
    border-top: 1px solid #ebe8ec;
}
.intern-open{
    color: #2e7d32;
    font-weight: 600;
    line-height: 1.35;
}
.intern-closed{
    color: #a09a92;
}

.intern-disclaimer{
    color: #8a8a8a;
    font-size: 0.85em;
    line-height: 1.5;
    margin-top: -1.5em;
}

/* Firm-type filter. Hidden until the script reveals it, so that without
   JavaScript the full table is shown rather than a control that does nothing. */
.intern-filter{
    margin: 0 0 1em 0;
    color: #6a6a6a;
    font-size: 0.9em;
}
.intern-filter[hidden]{
    display: none;
}
.intern-filter label{
    margin-right: 6px;
}
.intern-filter select{
    font-family: inherit;
    font-size: 1em;
    color: #52739e;
    padding: 3px 6px;
    border: 1px solid #dcd8dd;
    border-radius: 3px;
    background: #fff;
}
.intern-filter-count{
    margin-left: 10px;
}
