/* Mempool chart styles - mobile-first */
* { box-sizing: border-box; }
body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 8px;
    color: #222;
    -webkit-text-size-adjust: 100%;
}
a {
    text-decoration: none;
    color: #008;
}
p {
    max-width: 65em;
    margin: 1.5ex auto;
}
.header {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 6px;
}
.chart-container {
    width: 100%;
    height: 60vh;
    min-height: 320px;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin: 8px 0;
    font-size: 12px;
}
.lnk, .legenditem {
    cursor: pointer;
    color: #0050a0;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 6px;          /* generous touch targets for mobile */
    border-radius: 4px;
    display: inline-block;
}
.lnk:hover, .legenditem:hover { background: #eef2f7; }
.lnk.selected {
    background: #0050a0;
    color: #fff;
    font-weight: bold;
}
.legenditem .swatch {
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 4px;
    vertical-align: -1px;
    border: 1px solid rgba(0,0,0,0.2);
}
.legenditem.hide { opacity: 0.4; text-decoration: line-through; }

/* ----- donation box (shared with the explanatory text above it) ----- */
.centered { text-align: center; }
#donbox { min-height: 236px; }
.donation {
    display: inline-block;
    position: relative;
    margin: 1ex 1em;
    font-size: 13px;
}
.sidebyside { display: inline-block; }
.hidden { display: none; }
.qrcontainer {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    margin: 1ex 3em;
}
.qrcode { display: inline-block; }
.qrlogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pixelated {
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}
.cover {
    background-size: cover;
    background-repeat: no-repeat;
}
.lnbutton { vertical-align: middle; }
.bolt { margin-bottom: 2ex; }

@media (max-width: 600px) {
    .header { font-size: 14px; }
    .chart-container { height: 55vh; }
}
