/* NTV Kannada — Weather & AQI page (loaded only on that page).
   Uses the design tokens from main.css. */

.wx-page { padding-bottom: var(--section-gap); }
.wx-dicon { flex: none; width: 18px; height: 18px; }
.wx-icon { display: block; flex: none; }

/* Heading + search ------------------------------------------------------ */
.wx-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: end; padding: 8px 0 14px; }
@media (min-width: 900px) { .wx-head { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); } }
.wx-head__title { margin: 0; color: var(--c-ink); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.35; overflow-wrap: break-word; }
@media (min-width: 1024px) { .wx-head__title { font-size: 2.125rem; } }
.wx-head__sub { margin: 4px 0 0; color: var(--c-text-2); font-size: var(--fs-md); }

.wx-search { position: relative; }
.wx-search__box {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 50px;
	padding: 0 6px 0 16px;
	border: 1.5px solid var(--c-line-strong);
	border-radius: 999px;
	background: var(--c-bg);
}
.wx-search__box:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-tint); }
.wx-search__box .icon { width: 20px; height: 20px; color: var(--c-muted); }
.wx-search__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: 16px; outline: none; }
.wx-search__input::-webkit-search-cancel-button { cursor: pointer; }
.wx-search__btn { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--c-brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wx-search__btn:hover { background: var(--c-brand-dark); }
.wx-results {
	position: absolute;
	z-index: 20;
	top: 56px;
	left: 0;
	right: 0;
	max-height: 340px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--c-line);
	border-radius: 14px;
	background: var(--c-bg);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.wx-results__item { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.wx-results__item strong { color: var(--c-ink); font-size: 16px; }
.wx-results__item span { color: var(--c-muted); font-size: 13px; }
.wx-results__item:hover,
.wx-results__item[aria-selected="true"] { background: var(--c-surface); }
.wx-search__status { min-height: 20px; margin: 6px 6px 0; color: var(--c-muted); font-size: 13px; }

.wx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.wx-quick__label { color: var(--c-muted); font-size: 14px; font-weight: 600; }
.wx-quick__btn { height: 34px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wx-quick__btn:hover { border-color: var(--c-brand); color: var(--c-brand-ink); }

/* Weather / AQI switch -------------------------------------------------- */
.wx-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	max-width: 640px;
	margin: 0 0 22px;
	padding: 6px;
	border: 1px solid var(--c-line);
	border-radius: 18px;
	background: var(--c-surface);
}
.wx-switch__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 62px;
	padding: 8px 12px;
	border: 0;
	border-radius: 13px;
	background: transparent;
	color: var(--c-text-2);
	font: inherit;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wx-switch__btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.wx-switch__btn small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.wx-switch__btn .wx-dicon { width: 28px; height: 28px; }
.wx-switch__btn:hover:not([aria-selected="true"]) { background: rgba(0, 0, 0, 0.04); color: var(--c-ink); }
.wx-switch__btn[aria-selected="true"] { background: linear-gradient(135deg, #B3121B, #E03131); color: #fff; box-shadow: 0 8px 18px -8px rgba(179, 18, 27, 0.7); }
@media (max-width: 479.98px) {
	.wx-switch__btn { gap: 8px; font-size: 16px; }
	.wx-switch__btn .wx-dicon { width: 22px; height: 22px; }
}

/* Place line ------------------------------------------------------------- */
.wx-stage { position: relative; transition: opacity 0.2s ease; }
.wx-stage.is-loading { opacity: 0.45; pointer-events: none; }
.wx-place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.wx-place__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--c-ink); font-size: var(--fs-xl); }
.wx-place__name .wx-dicon { width: 22px; height: 22px; color: var(--c-brand-ink); }
.wx-place__name span { color: var(--c-text-2); font-size: var(--fs-md); font-weight: 500; }
.wx-place__meta { margin: 2px 0 0 28px; color: var(--c-muted); font-size: var(--fs-sm); }
.wx-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid var(--c-brand); border-radius: 999px; background: var(--c-brand-tint); color: var(--c-brand-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wx-reset .icon { width: 16px; height: 16px; }

/* Weather hero: sky card tinted by temperature + summary, tips, details --- */
.wx-hero { display: grid; gap: 16px; }
@media (min-width: 760px) { .wx-hero { grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.5fr); } }
.wx-sky {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-height: 260px;
	padding: 24px 26px;
	overflow: hidden;
	border-radius: 22px;
	background: linear-gradient(140deg, var(--wx-a), var(--wx-b));
	color: #fff;
	box-shadow: 0 14px 30px -14px var(--wx-a);
}
.wx-sky.is-night { background-image: linear-gradient(rgba(14, 18, 44, 0.4), rgba(14, 18, 44, 0.4)), linear-gradient(140deg, var(--wx-a), var(--wx-b)); }
.wx-sky::before { content: ""; position: absolute; top: -70px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 68%); }
.wx-sky::after { content: ""; position: absolute; bottom: -90px; left: -50px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.wx-sky > * { position: relative; z-index: 1; }
.wx-sky__label { margin: 0; font-size: 19px; font-weight: 800; opacity: 0.95; }
.wx-sky__now { display: flex; align-items: center; gap: 12px; }
.wx-sky__icon { width: 104px; height: 104px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2)); }
.wx-sky__temp { margin: 0; font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.wx-sky__temp span { margin-left: 2px; font-size: 0.38em; font-weight: 700; vertical-align: super; opacity: 0.9; }
.wx-sky__cond { margin: 0; font-size: 1.375rem; font-weight: 800; }
.wx-sky__range { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.wx-sky__range span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 19px; font-weight: 800; }
.wx-hero__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-bg); }
.wx-hero__summary { margin: 0; color: var(--c-text); font-size: var(--fs-md); line-height: 1.7; }
.wx-tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wx-tips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--c-tint-amber); color: var(--c-tint-amber-ink); font-size: 14px; font-weight: 700; }
.wx-tips .wx-dicon { width: 16px; height: 16px; }
.wx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 520px) { .wx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx-stat { padding: 10px 12px; border-radius: 14px; background: var(--c-surface); }
.wx-stat dt { display: flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 12.5px; font-weight: 700; }
.wx-stat dt .wx-dicon { width: 16px; height: 16px; color: var(--c-brand-ink); }
.wx-stat dd { margin: 3px 0 0; color: var(--c-ink); font-size: var(--fs-md); font-weight: 800; }

/* Layout: report + sidebar, ads and latest news below ------------------- */
.wx-layout { padding-top: 0; }
.wx-main { min-width: 0; }
.wx-main > .ad { margin-top: 30px; }
.wx-more { margin-top: 30px; }
.wx-side__stack { display: flex; flex-direction: column; gap: var(--sp-6); }

/* Sections --------------------------------------------------------------- */
.wx-block { margin-top: 30px; }
.wx-block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 12px; }
.wx-block__title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--c-ink); font-size: var(--fs-lg); font-weight: 800; }
.wx-block__title .wx-dicon { box-sizing: content-box; width: 20px; height: 20px; padding: 6px; border-radius: 10px; background: var(--c-brand-tint); color: var(--c-brand-ink); }
.wx-block__sub { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* Hourly strip + charts (one scroll container; points align with cards) -- */
.wx-scroll { position: relative; /* keeps screen-reader labels inside the scroller */ padding: 8px 0 6px; overflow-x: auto; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-bg); scrollbar-width: thin; }
.wx-scroll:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.wx-scroll__inner { width: max-content; }
.wx-chart { display: block; }
.wx-chart__base { stroke: var(--c-line); stroke-width: 1; }
.wx-chart__area { fill: #E8590C; fill-opacity: 0.1; }
.wx-chart__line { fill: none; stroke: #E8590C; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wx-chart__past { fill: var(--c-card); fill-opacity: 0.55; }
.wx-chart__now { fill: #E8590C; stroke: var(--c-card); stroke-width: 2; }
.wx-chart__label { fill: var(--c-text-2); font-size: 13px; font-weight: 700; }
.wx-chart__tick { fill: var(--c-muted); font-size: 12px; }
.wx-chart__tick.is-now { fill: var(--c-ink); font-weight: 700; }
.wx-chart--aqi .wx-bar.is-past { opacity: 0.5; }
.wx-chart--aqi .wx-bar:hover { opacity: 1; filter: brightness(0.92); }
.wx-hours { display: flex; margin: 0; padding: 0; list-style: none; }
.wx-hour { display: flex; flex: none; flex-direction: column; align-items: center; gap: 4px; width: var(--cell); padding: 8px 0; border-radius: 12px; }
.wx-hour__time { color: var(--c-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.wx-hour__icon { width: 34px; height: 34px; }
.wx-hour__temp { color: var(--c-ink); font-size: var(--fs-md); font-weight: 800; }
.wx-hour__band { display: block; width: 24px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--wx-a), var(--wx-b)); }
.wx-hour__pop { display: flex; align-items: center; gap: 2px; color: var(--c-muted); font-size: 12px; }
.wx-hour__pop .wx-dicon { width: 12px; height: 12px; }
.wx-hour__pop.is-wet { color: var(--c-rain); font-weight: 700; }
.wx-hour.is-past { opacity: 0.5; }
.wx-hour.is-now { background: var(--c-brand-tint); }
.wx-hour.is-now .wx-hour__time { color: var(--c-brand-ink); font-weight: 800; }

/* Day cards (weather + AQI) ---------------------------------------------- */
.wx-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.wx-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 10px;
	border: 1px solid var(--c-line);
	border-radius: 16px;
	background: var(--c-bg);
	text-align: center;
}
.wx-day.is-past { background: var(--c-surface); }
.wx-day.is-today { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); background: var(--c-tint-red); }
.wx-day__rel { margin: 0; color: var(--c-ink); font-size: var(--fs-md); font-weight: 800; }
.wx-day__tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--c-line); color: var(--c-text-2); font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.wx-day__date { margin: 0; color: var(--c-muted); font-size: 13px; }
.wx-day__icon { width: 48px; height: 48px; margin: 4px 0; }
.wx-day__cond { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); font-weight: 600; }
.wx-day__temps { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.wx-day__max { color: var(--wx-ink, var(--c-ink)); font-weight: 800; }
.wx-day__min { color: var(--c-muted); font-weight: 700; }
.wx-range { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--c-line); }
.wx-range > span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: #E8590C; }
.wx-day__rain { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; color: var(--c-muted); font-size: 12.5px; }
.wx-day__rain .wx-dicon { width: 14px; height: 14px; }
.wx-day__aqi { display: grid; place-items: center; width: 58px; height: 58px; margin: 6px 0; border-radius: 50%; background: var(--aqi); color: var(--aqi-ink); font-size: 20px; font-weight: 800; }
@media (max-width: 899.98px) {
	.wx-days { grid-template-columns: minmax(0, 1fr); }
	.wx-day {
		display: grid;
		grid-template-columns: minmax(92px, auto) 52px minmax(0, 1fr);
		grid-template-areas: "rel icon cond" "date icon temps" ". icon rain";
		align-items: center;
		gap: 2px 12px;
		padding: 12px 14px;
		text-align: left;
	}
	.wx-day__rel { grid-area: rel; }
	.wx-day__date { grid-area: date; }
	.wx-day__icon,
	.wx-day__aqi { grid-area: icon; justify-self: center; }
	.wx-day__icon { width: 44px; height: 44px; }
	.wx-day__aqi { width: 46px; height: 46px; font-size: 17px; }
	.wx-day__cond { grid-area: cond; }
	.wx-day__temps { grid-area: temps; margin: 0; }
	.wx-day__rain { grid-area: rain; margin: 0; }
	.wx-days--aqi .wx-day { grid-template-areas: "rel icon cond" "date icon rain"; }
}

/* AQI hero ---------------------------------------------------------------- */
.wx-aqi-hero {
	display: grid;
	gap: 18px 28px;
	padding: 22px;
	border: 1px solid var(--c-line);
	border-left: 6px solid var(--aqi);
	border-radius: 18px;
	background: var(--c-surface);
	background: color-mix(in srgb, var(--aqi) 12%, var(--c-card));
}
.wx-aqi-hero__dial {
	display: grid;
	place-items: center;
	align-content: center;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--aqi);
	color: var(--aqi-ink);
	box-shadow: 0 0 0 8px var(--c-bg), 0 0 0 9px var(--c-line);
}
.wx-aqi-hero__value { font-size: 2.75rem; font-weight: 800; line-height: 1; }
.wx-aqi-hero__unit { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.wx-aqi-hero__cat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-xl); font-weight: 800; }
.wx-aqi-hero__en { color: var(--c-text-2); font-size: var(--fs-md); font-weight: 600; }
.wx-aqi-hero__advice { margin: 8px 0 4px; color: var(--c-text); font-size: var(--fs-md); line-height: 1.7; }
.wx-aqi-hero__main { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
@media (min-width: 700px) {
	.wx-aqi-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dial text" "scale scale"; align-items: center; padding: 28px 32px; }
	.wx-aqi-hero__dial { grid-area: dial; }
	.wx-aqi-hero__text { grid-area: text; }
	.aqi-scale { grid-area: scale; }
}
.aqi-chip { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--aqi); color: var(--aqi-ink); font-weight: 800; white-space: nowrap; }
.aqi-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.aqi-scale__bar { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; height: 10px; }
.aqi-scale__bar > span:first-child { border-radius: 5px 0 0 5px; }
.aqi-scale__bar > span:nth-child(6) { border-radius: 0 5px 5px 0; }
.aqi-scale__marker { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--c-ink); box-shadow: 0 0 0 2px var(--c-bg); }
.aqi-scale__ticks { display: flex; justify-content: space-between; margin-top: 6px; color: var(--c-muted); font-size: 12px; }

/* Pollutants ------------------------------------------------------------- */
.wx-polls { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.wx-poll { padding: 14px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-bg); }
.wx-poll.is-main { border-color: var(--c-text-2); box-shadow: inset 0 0 0 1px var(--c-text-2); }
.wx-poll__name { margin: 0; }
.wx-poll__name strong { color: var(--c-ink); font-size: var(--fs-md); }
.wx-poll__name span { display: block; color: var(--c-muted); font-size: 12.5px; }
.wx-poll__value { margin: 8px 0 4px; color: var(--c-ink); font-size: var(--fs-xl); font-weight: 800; }
.wx-poll__value span { color: var(--c-muted); font-size: 12px; font-weight: 600; }
.wx-poll__sub { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--c-text-2); font-size: 13px; font-weight: 700; }
.wx-poll__meter { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--c-line); }
.wx-poll__meter > span { display: block; height: 100%; border-radius: 3px; }

.aqi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--c-text-2); font-size: 13px; }
.aqi-legend li { display: flex; align-items: center; gap: 6px; }
.aqi-legend span:not(.aqi-dot) { color: var(--c-muted); }

.aqi-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.aqi-table th,
.aqi-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.aqi-table th { color: var(--c-muted); font-size: 13px; font-weight: 700; }
.aqi-table td:first-child { font-weight: 700; white-space: nowrap; }
.aqi-table tr.is-current td { background: var(--c-surface); }
.aqi-table .aqi-chip { font-size: 13px; }

.wx-empty { padding: 32px; border: 1px dashed var(--c-line-strong); border-radius: 16px; color: var(--c-text-2); text-align: center; }
.wx-source { margin: 30px 0 0; color: var(--c-muted); font-size: 13px; line-height: 1.7; }
.wx-content { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
	.wx-stage,
	.wx-switch__btn { transition: none; }
}

/* Top cities (one-tap tiles with today's weather) ------------------------ */
.wx-cities { margin: 0 0 22px; }
.wx-cities__title { margin: 0 0 10px; color: var(--c-ink); font-size: var(--fs-md); font-weight: 800; }
.wx-cities__list { position: relative; display: flex; gap: 10px; margin: 0; padding: 2px 2px 8px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.wx-cities__list > li { flex: 0 0 auto; }
.wx-city {
	position: relative; /* keeps screen-reader text inside the scrolling row */
	display: grid;
	justify-items: center;
	gap: 2px;
	min-width: 112px;
	padding: 12px 10px 10px;
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--wx-a);
	border-radius: 14px;
	background: var(--c-card);
	color: var(--c-text);
	font: inherit;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wx-city:hover { box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.45); transform: translateY(-2px); }
.wx-city[aria-pressed="true"] { border-color: var(--wx-a); background: var(--wx-tint); box-shadow: inset 0 0 0 1px var(--wx-a); }
.wx-city__name { color: var(--c-ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.wx-city__icon { width: 38px; height: 38px; margin: 2px 0; }
.wx-city__temp { color: var(--wx-ink); font-size: 20px; font-weight: 800; line-height: 1.1; }
.wx-city__range { color: var(--c-muted); font-size: 12.5px; font-weight: 600; }

/* Sun arc ------------------------------------------------------------------ */
.wx-sun { padding: 14px 16px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--c-tint-amber), var(--c-surface)); }
.wx-sun__arc { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; overflow: visible; }
.wx-sun__track { fill: none; stroke: var(--c-line-strong); stroke-width: 2; stroke-dasharray: 2 3; }
.wx-sun__done { fill: none; stroke: #f59f00; stroke-width: 3; stroke-linecap: round; }
.wx-sun__horizon { stroke: var(--c-line-strong); stroke-width: 1; }
.wx-sun__dot { fill: #fab005; stroke: var(--c-card); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(250, 176, 5, 0.8)); }
.wx-sun__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; }
.wx-sun__end { display: grid; justify-items: start; color: var(--c-muted); font-size: 12.5px; font-weight: 600; }
.wx-sun__end--set { justify-items: end; text-align: right; }
.wx-sun__end strong { color: var(--c-ink); font-size: var(--fs-md); }
.wx-sun__end .wx-dicon { width: 18px; height: 18px; color: #e8590c; }
.wx-sun__len { color: var(--c-tint-amber-ink); font-size: 13px; font-weight: 800; text-align: center; }

/* Current conditions tiles ----------------------------------------------- */
.wx-cond--blue   { --cond-bg: #e8f3ff; --cond-acc: #1c7ed6; }
.wx-cond--pink   { --cond-bg: #fdecef; --cond-acc: #d6336c; }
.wx-cond--amber  { --cond-bg: #fff4de; --cond-acc: #e8590c; }
.wx-cond--violet { --cond-bg: #f1edff; --cond-acc: #6741d9; }
.wx-cond--teal   { --cond-bg: #e3f7f4; --cond-acc: #0c8599; }
.wx-cond--orange { --cond-bg: #ffede0; --cond-acc: #d9480f; }
html[data-theme="dark"] .wx-cond--blue   { --cond-bg: #142538; --cond-acc: #74c0fc; }
html[data-theme="dark"] .wx-cond--pink   { --cond-bg: #33171e; --cond-acc: #faa2c1; }
html[data-theme="dark"] .wx-cond--amber  { --cond-bg: #2f2412; --cond-acc: #ffc078; }
html[data-theme="dark"] .wx-cond--violet { --cond-bg: #221d3d; --cond-acc: #b197fc; }
html[data-theme="dark"] .wx-cond--teal   { --cond-bg: #11302b; --cond-acc: #66d9e8; }
html[data-theme="dark"] .wx-cond--orange { --cond-bg: #33200f; --cond-acc: #ffa94d; }
.wx-conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .wx-conds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx-cond { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 16px; overflow: hidden; border-radius: 18px; background: var(--cond-bg); }
.wx-cond__label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--c-text-2); font-size: 13.5px; font-weight: 700; }
.wx-cond__label .wx-dicon { width: 18px; height: 18px; color: var(--cond-acc); }
.wx-cond__value { margin: 6px 0 0; color: var(--c-ink); font-size: 2.25rem; font-weight: 800; line-height: 1.1; }
.wx-cond__value small { margin-left: 4px; color: var(--c-text-2); font-size: 14px; font-weight: 700; }
.wx-cond__note { margin: 0; color: var(--c-text-2); font-size: 13.5px; font-weight: 600; }
.wx-compass { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--cond-acc); border-radius: 50%; color: var(--cond-acc); }
.wx-compass__n { position: absolute; top: -9px; padding: 0 3px; border-radius: 4px; background: var(--cond-bg); font-size: 11px; font-weight: 800; }
.wx-compass__arrow { display: grid; place-items: center; }
.wx-compass__arrow .wx-dicon { width: 26px; height: 26px; }
.wx-meter { display: block; height: 8px; margin-top: auto; overflow: hidden; border-radius: 4px; background: rgba(127, 127, 127, 0.22); }
.wx-meter > span { display: block; height: 100%; border-radius: 4px; background: var(--cond-acc); }
.wx-uvscale { position: relative; display: block; height: 8px; margin-top: auto; border-radius: 4px; background: linear-gradient(90deg, #40c057 0%, #fab005 30%, #fd7e14 55%, #e03131 75%, #9c36b5 100%); }
.wx-uvscale i { position: absolute; top: -4px; width: 6px; height: 16px; margin-left: -3px; border-radius: 3px; background: var(--c-ink); box-shadow: 0 0 0 2px var(--cond-bg); }
.wx-gauge { position: absolute; top: 14px; right: 14px; width: 72px; height: auto; overflow: visible; }
.wx-gauge__track { fill: none; stroke: var(--cond-acc); stroke-width: 6; stroke-linecap: round; opacity: 0.35; }
.wx-gauge__dot { fill: var(--cond-acc); stroke: var(--cond-bg); stroke-width: 3; }
@media (max-width: 420px) {
	.wx-cond { min-height: 140px; padding: 14px; }
	.wx-cond__value { font-size: 1.75rem; }
	.wx-compass { width: 40px; height: 40px; }
	.wx-compass__arrow .wx-dicon { width: 20px; height: 20px; }
	.wx-gauge { width: 54px; }
}

/* Today's summary + FAQ -------------------------------------------------- */
.wx-today__card { padding: 20px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-card); }
.wx-today__text { margin: 0; color: var(--c-text); font-size: var(--fs-md); line-height: 1.8; }
.wx-today__days { display: grid; gap: 6px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--c-line); list-style: none; color: var(--c-text-2); font-size: var(--fs-sm); }
.wx-today__days strong { color: var(--c-ink); }
.wx-faq__list { display: grid; gap: 10px; }
.wx-faq__item { border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-card); }
.wx-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--c-ink); font-weight: 700; cursor: pointer; list-style: none; }
.wx-faq__item summary::-webkit-details-marker { display: none; }
.wx-faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-surface); color: var(--c-brand-ink); font-size: 18px; font-weight: 800; }
.wx-faq__item[open] summary::after { content: "−"; }
.wx-faq__item p { margin: 0; padding: 0 16px 16px; color: var(--c-text-2); line-height: 1.75; }
.wx-faq__item summary:focus-visible { outline: 2px solid var(--c-brand-ink); outline-offset: 2px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .wx-city { transition: none; } }
/* Narrow tiles (two per row on phones): compass and gauge sit at the
   bottom of the tile instead of the corner, so they never cover text. */
@media (max-width: 599.98px) {
	.wx-compass,
	.wx-gauge { position: static; margin-top: auto; align-self: flex-start; }
	.wx-compass { width: 40px; height: 40px; margin-top: 10px; }
	.wx-compass__arrow .wx-dicon { width: 20px; height: 20px; }
	.wx-gauge { width: 60px; }
}
