/* MM0ZIF Propagation. Colours inherit from the theme; only the rating colours are fixed. */
.mm0zif-prop,
.tp-tile {
	--tp-poor: #6b7a8a;
	--tp-fair: #c98a00;
	--tp-good: #1f9d63;
	--tp-excellent: #3b6fe0;
	--tp-line: rgba(128, 128, 128, 0.3);
}

.tp-r-poor { --tp-c: var(--tp-poor); }
.tp-r-fair { --tp-c: var(--tp-fair); }
.tp-r-good { --tp-c: var(--tp-good); }
.tp-r-excellent { --tp-c: var(--tp-excellent); }

.tp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Full page */
.tp-wrap { max-width: 56rem; margin-inline: auto; }
.tp-panel { border: 1px solid var(--tp-line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.75rem); }
.tp-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.tp-eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.tp-title { margin: .25rem 0; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.2; }
.tp-sub { margin: 0; font-size: .85rem; opacity: .7; }
.tp-rating { display: flex; flex-direction: column; align-items: center; min-width: 6.5rem; padding: .6rem 1rem; border: 2px solid var(--tp-c, var(--tp-poor)); border-radius: 12px; }
.tp-score { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--tp-c, inherit); }
.tp-label { font-size: .85rem; font-weight: 600; margin-top: .2rem; }

.tp-why { margin: 1.1rem 0; padding-left: 1.2rem; }
.tp-why li { margin: .35rem 0; }
.tp-note { font-size: .88rem; opacity: .8; margin: .5rem 0; }

.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; margin: 1.1rem 0; }
.tp-stats > div { border: 1px solid var(--tp-line); border-radius: 10px; padding: .6rem .75rem; }
.tp-stats dt { font-size: .75rem; opacity: .7; margin: 0 0 .2rem; }
.tp-stats dd { margin: 0; font-weight: 600; }
.tp-stats small { display: block; font-weight: 400; opacity: .65; font-size: .72rem; }

.tp-forecast h3, .tp-profile h3, .tp-es h3 { margin: 1.6rem 0 .5rem; font-size: 1.05rem; }
.tp-day { margin: 1rem 0; }
.tp-day-name { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .4rem; font-size: .9rem; font-weight: 600; }
.tp-day-max { font-weight: 400; opacity: .7; }
.tp-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.tp-bar { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.tp-bar-track { display: flex; align-items: flex-end; width: 100%; height: 64px; border: 1px solid var(--tp-line); border-radius: 6px; overflow: hidden; }
.tp-bar-track i { display: block; width: 100%; height: calc(var(--s, 0) * 1%); min-height: 2px; background: var(--tp-c, var(--tp-poor)); }
.tp-bar-score { font-size: .78rem; font-weight: 600; margin-top: 2px; }
.tp-bar-time { font-size: .68rem; opacity: .65; }
.tp-empty { visibility: hidden; }
.tp-legend { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1rem 0 0; font-size: .78rem; }
.tp-chip { padding: .1rem .55rem; border-radius: 999px; color: #fff; background: var(--tp-c, var(--tp-poor)); }
.tp-legend-note { opacity: .7; margin-left: .3rem; }

.tp-profile-fig { max-width: 24rem; }
.tp-profile-svg { width: 100%; height: auto; display: block; }

.tp-es-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .3rem 0; }
.tp-es-meter { display: inline-flex; gap: 3px; }
.tp-es-meter i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--tp-line); }
.tp-es-meter i.on { background: var(--tp-fair); border-color: var(--tp-fair); }

.tp-howto { margin-top: 1.6rem; font-size: .9rem; }
.tp-howto summary { cursor: pointer; font-weight: 600; }

@media (max-width: 520px) {
	.tp-bar-time { font-size: .6rem; }
	.tp-bar-track { height: 48px; }
}

/* Tile. Inside the station quick-strip the theme's .quick-card styling applies;
   these rules only add the rating accent and a fallback when used on its own. */
.tp-tile .value { color: var(--tp-c, inherit); }
.tp-tile { border-left: 3px solid var(--tp-c, var(--tp-poor)); }
.tp-standalone { max-width: 22rem; }
.tp-standalone .tp-tile { display: block; border: 1px solid var(--tp-line); border-left: 3px solid var(--tp-c, var(--tp-poor)); border-radius: 12px; padding: .9rem 1rem; color: inherit; text-decoration: none; }
.tp-standalone .tp-tile .q-top { display: flex; justify-content: space-between; align-items: center; }
.tp-standalone .tp-tile h3 { margin: 0; font-size: .9rem; }
.tp-standalone .tp-tile .value { margin: .3rem 0 0; font-size: 1.4rem; font-weight: 700; }
.tp-standalone .tp-tile .sub { margin: .15rem 0 .5rem; font-size: .82rem; }
.tp-standalone .tp-tile .q-link { font-size: .8rem; }
