html * {
    font-family: "Lucida Console", "Courier New", monospace;
    align-items: center;
}

h2 {
    text-align: center;
}

a {
    color: #de6600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#authors,
#institutions {
    text-align: center;
}

#authors {
    max-width: 640px;
    margin: 0 auto;
}

nav {
  display: flex;                 /* Use flexbox for alignment */
  justify-content: space-between;  /* Pushes children to opposite ends */
  align-items: center;           /* Vertically aligns items in the middle */
  width: 100%;                   /* Ensures it spans the full width */
  padding: 5px 0;                /* Adds a little vertical space */
  border-bottom: 2px solid #8ab184;
  margin-bottom: 1.5rem;
}

nav a {
    color: #003f5a;
}

nav a:hover {
    color: #de6600;
}

body {
	max-width: 960px;
	padding: 0 24px;
	margin: 20px auto;
	justify-content: center;
	text-align: justify;
	background: #fff;
	color: #003f5a;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* --- ablation spectrograms --- */

.spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 6px;
    margin: 8px 0 24px;
}

.spec-item {
    margin: 0;
    text-align: center;
    min-width: 0;
}

.spec-item img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid #ddd;
}

.spec-item audio {
    display: block;
    width: 100%;
    height: 32px;
    margin-top: 4px;
}

.spec-item figcaption {
    font-size: 0.75em;
    color: #777;
    margin-top: 4px;
}

/* --- model comparison table --- */

.section-note {
    font-size: 0.85em;
    color: #666;
    text-align: left;
}

.table-scroll {
    overflow-x: auto;
    margin: 16px 0;
}

.comparison-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8em;
}

.comparison-table thead th {
    background: #f3f3f3;
    border-bottom: 2px solid #003f5a;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
}

.comparison-table .instruction-row th {
    text-align: left;
    font-weight: bold;
    padding: 18px 10px 6px;
    border-top: 1px solid #ddd;
    white-space: normal;
}

.instruction-index {
    color: #777;
    margin-right: 6px;
}

.comparison-table .audio-row td {
    padding: 4px 6px 12px;
    text-align: center;
    vertical-align: middle;
}

.comparison-table audio {
    width: 190px;
    max-width: 100%;
    height: 34px;
    display: block;
    margin: 0 auto;
}

.comparison-table tbody tr:nth-of-type(4n+1),
.comparison-table tbody tr:nth-of-type(4n+2) {
    background: #f3f3f3;
}

.comparison-table th.ours,
.comparison-table td.ours {
    background: #fdf0e6;
}

.comparison-table th.ours {
    background: #f8dcc0;
}

@media (max-width: 900px) {
    .comparison-table audio {
        width: 150px;
    }
}
