@media only screen and (max-width: 400px) {
  #leftbar,
  #rightbar {
    display: none;
  }
}

h1 {
    font-variant: small-caps;
    border-bottom: solid 1px #e6ab02;
}
h1,h2,h3,h4,h5,h6 {
    color: #d95f02;
}

img {
    max-width : 90%
}

div#topbar a {
    color: #7570b3;
}

div#topbar {
    padding-top: 2px;
    padding-bottom: 0px;
    margin: 0px;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: solid 4px #e6ab02;
    margin-bottom: 3em;
}

div#topbar a {
    font-weight: bold;
    padding: 2em;
}

nav {
    padding-top: 1em;
}

nav ul {
    list-style: none;
    border-left: solid 2px #ccc;
    line-height: 1.25;
    margin: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 4px;
    padding-right: 0px;
    margin-bottom: 2em;
    margin-left: 8px;
}

nav li {
    list-style: none;
    line-height: 1.25;
    margin: 0px;
    padding: 0px;
}

nav li a {
    color: #444;
    font-size: 0.75em;
}

nav h6 {
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}

#uniform-params {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

#uniform-params.show {
    max-height: 100px;
    opacity: 1;
}

.hmm-matrix-cell {
    position: relative;
    padding: 0;
    min-width: 4.25rem;
    vertical-align: middle;
    border-radius: 0.35rem;
    overflow: hidden;
}

.hmm-matrix-cell-empty {
    background-color: rgba(0, 0, 0, 0.03);
}

.hmm-matrix-bar {
    position: absolute;
    inset: 0;
    border-radius: 0.35rem;
    opacity: 0.85;
}

.hmm-matrix-value {
    position: relative;
    display: block;
    padding: 0.35rem 0.5rem;
    font-variant-numeric: tabular-nums;
    font-family: "Fira Sans Mono", "SFMono-Regular", Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    z-index: 1;
}

.hmm-legend {
    max-width: 360px;
}

.hmm-legend-gradient {
    position: relative;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, hsl(205, 75%, 78%), hsl(25, 85%, 62%));
}

.hmm-legend-zero {
    position: absolute;
    top: -0.15rem;
    bottom: -0.15rem;
    width: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.hmm-legend-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hmm-legend-toggle {
    white-space: nowrap;
}

.hmm-color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.hmm-color-legend.is-hidden {
    display: none;
}

.hmm-color-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hmm-color-legend-swatch {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hmm-color-legend-label {
    margin: 0;
    line-height: 1.2;
}

.hmm-inline-logo {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.hmm-logo-stack,
.hmm-inline-logo-stack {
    position: relative;
    width: 2.75rem;
    height: var(--stack-height, 140px);
    border-radius: 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 240, 243, 0.9));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.hmm-logo-letter {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    padding-bottom: 0.15rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hmm-inline-logo-summary {
    max-width: 20rem;
}

.hmm-logo-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
}

.translation-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.translation-entry {
    margin: 0;
}

.translation-entry-title {
    color: #444;
    margin-bottom: 0.5rem;
}

.translation-sequence {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: "Fira Sans Mono", "SFMono-Regular", Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

@media (max-width: 576px) {
    .translation-sequence {
        font-size: 0.9rem;
    }
}

.hmm-logo-strip {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.75rem 0.5rem 0.75rem 0.25rem;
    border-radius: 0.9rem;
    background: rgba(245, 248, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hmm-logo-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 3.25rem;
}

.hmm-logo-column .hmm-logo-stack {
    width: 3rem;
    height: var(--stack-height, 160px);
}

.hmm-logo-consensus {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    line-height: 1;
}

.hmm-logo-position {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1;
    letter-spacing: 0.02em;
}

.hmm-logo-column:hover .hmm-logo-stack {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 12px rgba(0, 0, 0, 0.14);
}

@media (max-width: 576px) {
    .hmm-inline-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hmm-inline-logo-stack {
        width: 3rem;
    }

    .hmm-inline-logo-summary {
        max-width: 100%;
    }
}

