html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

#top-bar {
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
}

#map {
    width: 100%;
    flex: 1 1 auto;
    /* consumes remaining height */
}

#date-ticks {
    position: relative;
    height: 20px;
    margin-top: 2px;
    font-size: 10px;
    color: #333;
}

.date-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
}

.date-tick-line {
    width: 1px;
    height: 6px;
    background: #555;
    margin: 0 auto;
}

.date-tick-label {
    margin-top: 2px;
}

.cartodb-overlay .leaflet-tile {
    mix-blend-mode: multiply;
}

select,
input[type="file"] {
    font-size: 14px;
}

#status {
    margin-left: auto;
    font-size: 12px;
    color: #555;
}

#sources-link {
    margin-left: 12px;
    font-size: 0.9em;
    text-decoration: underline;
}


/* ---- Sources page layout ---- */

.top-bar--simple {
    align-items: center;
}

.top-bar-title {
    font-size: 14px;
}

.top-bar-link {
    margin-left: auto;
    font-size: 13px;
    text-decoration: underline;
}

.page {
    padding: 16px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.sources {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.source-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
}

.source-card h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.tag {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    margin-right: 8px;
}

.muted {
    color: #555;
    margin: 6px 0 10px 0;
}

.links {
    margin: 0;
    padding-left: 18px;
}

.links li {
    margin: 4px 0;
}

.page-footer {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

