/* A mountain town's snow report (views/snowReportTown.hbs), on top of style.css and region.css. */
.town-resorts td:first-child small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

/* The town's six days, side by side; they scroll sideways on a phone. */
.town-weather {
    display: grid;
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}
.town-weather li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    text-align: center;
    font-size: 14px;
}
.town-weather li + li { border-left: 1px solid var(--line); }
.town-weather li.is-today b { color: var(--blue); }
.town-weather b { font-size: 14px; white-space: nowrap; }
.town-weather img { width: 36px; height: 36px; }
.town-weather__temp > span { font-size: 18px; font-weight: 700; }
.town-weather__temp small { font-size: 14px; color: var(--muted); }
.town-weather__precip { font-size: 13px; color: var(--muted); }
.town-weather__snow { font-weight: 700; color: var(--blue); }

.town-stations td:first-child small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

.town-webcams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.town-webcams a { display: flex; flex-direction: column; gap: 4px; color: inherit; }
.town-webcams a:hover .town-webcams__name { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.town-webcams__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}
.town-webcams__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.town-webcams__name { font-weight: 600; line-height: 1.3; }
.town-webcams small { font-size: 12px; color: var(--muted); }

.town-more-title { margin: 26px 0 12px; font-size: 18px; }
.region-chips a small { margin-left: 4px; font-size: 12px; color: var(--muted); }

@media(max-width:760px) {
    .town-stations tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .town-stations td:first-child { grid-column: 1 / -1; }
}
@media(max-width:640px) {
    .town-weather { grid-template-columns: repeat(6, minmax(84px, 1fr)); }
    .town-webcams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
