/* Sheridan Media - Road & Travel report player. Self-contained so [sheridan_road_report]
   works on any page, with or without the full weather page styles. */
.smw-rr {
	--rr-navy: #262d66; --rr-gold: #ffca41; --rr-ink: #1d2233; --rr-muted: #636a80; --rr-line: #e3e6ef; --rr-bg: #f4f6fb;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rr-ink); line-height: 1.4; font-variant-numeric: tabular-nums;
}
.smw-rr *, .smw-rr *::before, .smw-rr *::after { box-sizing: border-box; }
.smw-rr [hidden] { display: none !important; }
.smw-rr-solo { max-width: 760px; margin: 0 auto 24px; }
.smw-rr-solo .smw-rr { background: #fff; border: 1px solid var(--rr-line); border-radius: 14px; padding: 16px 18px; }
.smw-rr-solo .smw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.smw-rr-solo .smw-card-head h3 { margin: 0; padding: 0; font-size: 1.1rem; font-weight: 800; color: var(--rr-navy); text-transform: none; letter-spacing: 0; }
.smw-rr-solo .smw-sub { font-size: .8rem; color: var(--rr-muted); }

/* ---------- player ---------- */
.smw-rr-player {
	display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; color: #fff;
	background: linear-gradient(135deg, #262d66 0%, #1a1f4a 60%, #11163a 100%);
	box-shadow: 0 8px 22px rgba(26, 31, 74, .25);
}
.smw-rr-play {
	flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
	background: var(--rr-gold); color: #1a1f4a; box-shadow: 0 4px 14px rgba(255, 202, 65, .45); transition: transform .15s, opacity .15s;
}
.smw-rr-play:hover:not(:disabled) { transform: scale(1.06); }
.smw-rr-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.smw-rr-play:disabled { opacity: .45; cursor: default; box-shadow: none; }
.smw-rr-play svg { width: 28px; height: 28px; fill: currentColor; }
.smw-rr-i-pause, .smw-rr.is-playing .smw-rr-i-play { display: none; }
.smw-rr.is-playing .smw-rr-i-pause { display: block; }
.smw-rr.is-loading .smw-rr-play { animation: smw-rr-breathe 1s ease-in-out infinite; }
@keyframes smw-rr-breathe { 50% { transform: scale(.94); opacity: .8; } }
.smw-rr-main { flex: 1; min-width: 0; }
.smw-rr-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.smw-rr-meta { font-size: .85rem; opacity: .8; margin-top: 2px; }
.smw-rr-meta b { color: var(--rr-gold); font-weight: 700; }
.smw-rr-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.smw-rr-bar input[type=range] {
	-webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 6px; margin: 0; cursor: pointer;
	background: linear-gradient(to right, var(--rr-gold) var(--p, 0%), rgba(255, 255, 255, .22) var(--p, 0%));
}
.smw-rr-bar input[type=range]:disabled { cursor: default; }
.smw-rr-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.smw-rr-bar input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.smw-rr-time { font-size: .82rem; opacity: .85; min-width: 76px; text-align: right; }

/* ---------- area alerts ---------- */
.smw-rr-alerts { display: grid; gap: 8px; margin-top: 12px; }
.smw-rr-alert { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #8c1118; font-weight: 700; font-size: .92rem; }
.smw-rr-alert::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #e0352b; flex: none; }

/* ---------- live road board ---------- */
.smw-rr-board { display: grid; gap: 6px; margin-top: 12px; }
.smw-rr-row {
	display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px;
	padding: 8px 12px; border-radius: 10px; background: var(--rr-bg); border-left: 5px solid #24a148;
}
.smw-rr-skel { height: 48px; border-left-color: var(--rr-line); background: linear-gradient(90deg, var(--rr-bg), #e9ecf4, var(--rr-bg)); background-size: 200% 100%; animation: smw-rr-sh 1.2s linear infinite; }
@keyframes smw-rr-sh { to { background-position: -200% 0; } }
.smw-rr-shield { text-align: center; font-weight: 900; font-size: .82rem; padding: 4px 0; border-radius: 6px; white-space: nowrap; }
.smw-rr-shield.i { color: #fff; background: linear-gradient(#c0392b 0 30%, #1f4fa8 30%); border-radius: 6px 6px 12px 12px; }
.smw-rr-shield.us { color: #111; background: #fff; border: 2px solid #111; }
.smw-rr-shield.wy { color: #fff; background: #1e6b3a; }
.smw-rr-where { min-width: 0; }
.smw-rr-span { font-weight: 700; font-size: .93rem; }
.smw-rr-detail { font-size: .8rem; color: var(--rr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smw-rr-pill { font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; color: #fff; background: #24a148; white-space: nowrap; }
.smw-rr-row.wet     { border-left-color: #2b8fd6; } .wet .smw-rr-pill     { background: #2b8fd6; }
.smw-rr-row.caution { border-left-color: #e8b10c; } .caution .smw-rr-pill { background: #f2c230; color: #2a2100; }
.smw-rr-row.warn    { border-left-color: #e2602f; } .warn .smw-rr-pill    { background: #e2602f; }
.smw-rr-row.severe  { border-left-color: #c62828; background: #fdecea; } .severe .smw-rr-pill { background: #c62828; }
.smw-rr-row.closed  { border-left-color: #8c1118; background: #fdecea; } .closed .smw-rr-pill { background: #8c1118; }

/* ---------- transcript + footer ---------- */
.smw-rr-text { margin-top: 12px; border-top: 1px solid var(--rr-line); padding-top: 10px; }
.smw-rr-text summary { cursor: pointer; font-weight: 700; color: var(--rr-navy); font-size: .92rem; }
.smw-rr-text p { margin: 8px 0 0; font-size: .95rem; line-height: 1.55; }
.smw-rr-foot { margin: 12px 0 0; font-size: .8rem; color: var(--rr-muted); }
.smw-rr-foot a { color: var(--rr-navy); }

@media (max-width: 600px) {
	.smw-rr-player { gap: 12px; padding: 12px; }
	.smw-rr-play { width: 52px; height: 52px; }
	.smw-rr-title { font-size: .98rem; }
	.smw-rr-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
	.smw-rr-detail { white-space: normal; }
	.smw-rr-time { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .smw-rr-skel, .smw-rr.is-loading .smw-rr-play { animation: none; } }
