:root {
    --season-bg: #fbf7ef;
    --season-card: #fffaf1;
    --season-ink: #1b1b1b;
    --season-muted: rgba(0, 0, 0, .55);
    --season-stroke: rgba(0, 0, 0, .12);

    --season-high: #2f7d32;
    --season-low: #b04b2a;
    --season-shoulder: #9a8f2b;
    --season-unknown: #d7d0c4;
}

.season-page {
    background: var(--season-bg);
}

.season-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 18px 40px;
}

.season-stage {
    display: block;
}

.season-card {
    position: relative; /* the map tooltip is positioned against the card */
    background: var(--season-card);
    border: 1px solid var(--season-stroke);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.season-top {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.season-title {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 30px;
    letter-spacing: .2px;
}

.season-subtitle {
    margin: 6px 0 0;
    color: var(--season-muted);
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 13px;
}

.season-controls {
    display: flex;
    flex-wrap: wrap; /* on a phone the label sits above the slider instead of pushing it off screen */
    align-items: center;
    gap: 10px;
    flex: 0 1 600px;
    min-width: 0;
}

.season-label {
    color: var(--season-muted);
    font-size: 13px;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.season-legend {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 10px;
    border: 1px solid var(--season-stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, .4);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--season-muted);
    font-size: 12px;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.legend-spacer {
    flex: 1;
    min-width: 10px;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid var(--season-stroke);
    display: inline-block;
}

.swatch-high {
    background: var(--season-high);
}

.swatch-low {
    background: var(--season-low);
}

.swatch-shoulder {
    background: var(--season-shoulder);
}

.swatch-unknown {
    background: var(--season-unknown);
}

.season-reset {
    border: 1px solid var(--season-stroke);
    background: rgba(255, 255, 255, .6);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--season-ink);
    cursor: pointer;
}

.season-viz {
    margin-top: 12px;
    width: 100%;
    height: min(70vh, 640px);
    border-radius: 16px;
    border: 1px solid var(--season-stroke);
    background: rgba(255, 255, 255, .35);
    position: relative;
    overflow: hidden;
}

.season-tip {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 250, 241, .97);
    border: 1px solid var(--season-stroke);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    min-width: 240px;
    max-width: 360px;
    z-index: 50;
}

.season-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.tip-name {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--season-stroke);
    background: rgba(255, 255, 255, .4);
}

.tip-row {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 12px;
    color: var(--season-muted);
    line-height: 1.35;
    margin: 3px 0;
}

.season-foot {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.season-note {
    color: var(--season-muted);
    font-size: 12px;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.season-note code {
    color: rgba(0, 0, 0, .7);
}

.country {
    stroke: rgba(0, 0, 0, .14);
    stroke-width: .55;
    vector-effect: non-scaling-stroke;
}

.country:hover {
    stroke: rgba(0, 0, 0, .35);
    stroke-width: 1;
}

.monthbar {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid var(--season-stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, .45);
}

.monthbar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.monthbar-name {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 14px;
    color: rgba(0, 0, 0, .75);
}

.monthbar-mini {
    font-size: 12px;
    color: var(--season-muted);
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.monthbar-range {
    width: 100%;
    margin: 0;
    background: transparent;
}

/* WebKit */
.monthbar-range::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .10);
    border: 1px solid rgba(0, 0, 0, .10);
}

.monthbar-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    border: 2px solid rgba(255, 255, 255, .8);
    margin-top: -5px;
    cursor: pointer;
}

/* Firefox */
.monthbar-range::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .10);
    border: 1px solid rgba(0, 0, 0, .10);
}

.monthbar-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    border: 2px solid rgba(255, 255, 255, .8);
    cursor: pointer;
}

.monthbar-ticks {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    color: rgba(0, 0, 0, .45);
    font-size: 11px;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.monthbar-ticks span {
    text-align: center;
    user-select: none;
}
.season-note a {
    color: inherit;
}

.viz-error {
    padding: 12px;
    color: rgba(0, 0, 0, .55);
}

/* Find a country / site by name (keyboard and screen reader access to the map) */
.map-find {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.map-find-input {
    flex: 1 1 220px;
    max-width: 360px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font: 14px "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: rgba(0, 0, 0, .85);
}

path.country.is-picked {
    stroke: #1d1d1d;
    stroke-width: 1.6px;
    vector-effect: non-scaling-stroke;
}

circle.site.is-picked {
    stroke: #1d1d1d;
    stroke-width: 2px;
    fill-opacity: 1;
}

/* Imprint / Privacy */
.legal {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal h2 {
    margin: 28px 0 8px;
    font-family: "Fraunces", serif;
    font-size: 20px;
}

.legal a {
    color: inherit;
}

.legal-links {
    margin-top: 32px;
}
