/* Weerstation Kaulille - daily and monthly overview pages (dagoverzicht.html, maandoverzicht.html): period bar in the header,
   min/max tiles and the wide sun tile. The tile, bar, wind rose and rain gauge styles come from actueel.css. */

.daybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 0 18px;
}

.daystep {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}

.daystep:hover:not(:disabled) {
    background: rgba(255, 255, 255, .3);
}

.daystep:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.daystep:disabled {
    opacity: .35;
    cursor: default;
}

.daylabel {
    min-width: 12ch;
    font-size: 1.15rem;
    font-weight: 650;
}

.daylabel::first-letter {
    text-transform: uppercase;
}

.daypick {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: .9rem;
    opacity: .95;
}

.daypick select,
.daypick input {
    font: inherit;
    font-size: .9rem;
    color: var(--ink);
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 5px 8px;
}

.notice {
    margin: 0 0 16px;
    padding: 14px 18px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    color: var(--muted);
}

.notice[hidden] {
    display: none;
}

.cap {
    margin-bottom: 4px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* sun tile: one column wide, the hours of sun above the two radiation blocks */
.sunrow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 640px) {
    .daypick {
        margin-left: 0;
    }
}

/* tiles where minimum and maximum weigh as much as the average */
/* the bar sits in a column here, not in the flex row of the current weather tiles */
.tile > .bar {
    flex: none;
    align-self: stretch;
}

.extremes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ex {
    padding: 10px 12px;
}

.ex .v {
    margin-top: 4px;
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
}

.ex.lo .v {
    color: var(--cold);
}

.ex.hi .v {
    color: var(--warm);
}

.ex .v small {
    margin-left: 2px;
    font-size: .8rem;
}

.ex .t {
    margin-top: 3px;
    font-size: .8rem;
    color: var(--muted);
}

.periodnote {
    padding: 0 0 16px;
    font-size: .9rem;
    opacity: .9;
}

.periodnote:empty {
    display: none;
}

/* weather of the day: icon on a blue block (the icons are drawn for a dark background) */
.dayweather {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wxchip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 8px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #16458f, #2160c4 60%, #2a6fdb);
}

.wxchip svg.main {
    display: block;
    width: 72px;
    height: 72px;
}

.wxchip svg.wind {
    width: 24px;
    height: 24px;
}

.wxlabel {
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.25;
}

.wxremark {
    margin: 0 0 8px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--accent, #1d6fd8);
}

.wxfacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: var(--muted);
}

.wxfacts b {
    color: var(--ink);
    font-weight: 600;
}

/* monthly temperature: average daily minimum, average and average daily maximum with equal weight */

.stat3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.stat3 .l {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    white-space: nowrap;
}

.stat3 .v {
    margin-top: 4px;
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -.5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stat3 .v small {
    margin-left: 1px;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.stat3 .stat:nth-child(2) {
    text-align: center;
}

.stat3 .stat:nth-child(3) {
    text-align: right;
}

.stat3 .lo .v {
    color: var(--cold);
}

.stat3 .hi .v {
    color: var(--warm);
}

.stat3note {
    margin-top: -6px;
    font-size: .75rem;
}

/* graph of the monthly page */

.mchart {
    width: 100%;
    height: 340px;
}

.mgnote {
    margin-top: 6px;
    font-size: .78rem;
}

/* special weather elements: counts on the monthly page */

.elcount li {
    display: flex;
    justify-content: space-between;
}
