/* Shared forecast card and full-width weather page. No changes to staff screens. */
.pw-muted, .pw-source { color: #71869a; font-size: 12px; }
.pw-home-card { grid-column: 1 / -1; overflow: hidden; border-color: #dcebf7 !important; }
.pw-badge { margin-left: auto; background: #edf6fd; color: #2583bc; border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 500; }
.pw-home-card .card-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.pw-home-summary { display: flex; gap: 15px; align-items: flex-start; }
.pw-weather-icon { color: #178cc6; background: #eaf7fe; border-radius: 16px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 25px; flex-shrink: 0; }
.pw-home-summary strong { color: #148ac1; font-size: 23px; display: block; line-height: 1.6; }
.pw-home-summary p { font-size: 13px; margin: 3px 0 8px; color: #506d86; }
.pw-detail-link { font-weight: 600; font-size: 13px; color: #146eaf; grid-column: 1; margin-left: 63px; }
.pw-detail-link i { margin-left: 6px; }
.pw-mini-chart { grid-column: 2; grid-row: 1 / 4; min-width: 0; align-self: center; }
.pw-source { margin-top: 10px; grid-column: 1; }
.pw-chart { display: flex; align-items: end; gap: 4px; height: 104px; padding: 14px 0 22px; position: relative; }
.pw-chart > span, .pw-chart > button { flex: 1; min-width: 0; height: var(--bar-height); border: 0; border-radius: 5px 5px 0 0; background: #3293c8; position: relative; padding: 0; }
.pw-chart .pw-no-rain { background: #dfeaf2; }
.pw-chart .pw-missing { background: repeating-linear-gradient(45deg, #dfeaf2 0 3px, #fff 3px 6px); }
.pw-chart small { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); color: #8498ac; font-size: 10px; white-space: nowrap; }
.pw-chart-caption { font-size: 11px; color: #8092a2; text-align: right; }
.pw-retry { background: #eaf4fd; color: #166d9e; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 12px; width: fit-content; }
.pw-page [hidden], [data-weather-card] [hidden] { display: none !important; }
body.flood-weather { background: #f4f8fb; color: #18354b; }
.pw-page { min-height: 100dvh; display: flex; flex-direction: column; }
.pw-page a { text-decoration: none; }
.pw-page button:focus-visible, .pw-page a:focus-visible, .pw-page input:focus-visible, .pw-page select:focus-visible, .pw-home-card button:focus-visible { outline: 3px solid #f6a261; outline-offset: 3px; }
.pw-header { display: flex; align-items: center; gap: 17px; background: white; padding: 18px 32px; border-bottom: 1px solid #e4edf3; }
.pw-back { width: 42px; height: 42px; border-radius: 13px; background: #eef5f9; color: #264a62; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.pw-kicker { font-size: 11px; font-weight: 600; color: #7392a9; }
.pw-header h1 { font-size: 22px; font-weight: 700; margin: 3px 0 0; }
.pw-header h1 span { color: #1788bb; }
.pw-change { margin-left: auto; color: #56768e; font-size: 13px; }
.pw-day-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 32px 10px; }
.pw-day { position: relative; min-width: 0; border: 1px solid #dbe9f2; border-radius: 17px; background: white; padding: 16px 20px; box-shadow: 0 4px 14px #14354b03; }
.pw-day:first-child { border-color: #a4d4ea; background: linear-gradient(115deg, #f1fbff, white); }
.pw-day-label { font-size: 12px; color: #6a8498; margin-bottom: 4px; }
.pw-day strong { display: block; color: #1689bd; font-size: 20px; margin-bottom: 5px; }
.pw-day .pw-condition-icon { position: absolute; right: 22px; top: 22px; color: #3398cb; font-size: 33px; }
.pw-day-metrics { display: flex; flex-wrap: wrap; gap: 7px 18px; font-size: 13px; color: #496c85; }
.pw-day-wind { font-size: 11px; color: #7e93a4; margin-top: 6px; }
.pw-data-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7890a4; font-size: 11px; padding: 0 32px 14px; }
.pw-data-note > a { margin-left: auto; color: #62839c; }
.pw-skeleton { height: 8px; width: 60%; background: #edf3f7; border-radius: 8px; margin: 14px 0 10px; animation: pw-pulse 1.6s ease-in-out infinite; }
.pw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px 32px; background: white; border-block: 1px solid #e3edf4; }
.pw-tabs button { min-height: 46px; border: 0; color: #52728b; background: transparent; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.pw-tabs button[aria-selected="true"] { background: #136dad; color: white; box-shadow: 0 3px 10px #136dad1a; }
.pw-tabs i { margin-right: 7px; }
.pw-radar-panel { flex: 1; display: flex; flex-direction: column; }
.pw-map-wrap { position: relative; flex: 1; min-height: 360px; }
.pw-map { width: 100%; height: max(360px, calc(100dvh - 440px)); background: #dbeaf0; z-index: 0; }
.pw-map-caption { position: absolute; top: 16px; left: 60px; z-index: 400; background: #ffffffec; backdrop-filter: blur(8px); padding: 9px 13px; border-radius: 10px; box-shadow: 0 3px 13px #19374618; font-size: 12px; display: flex; align-items: center; gap: 7px; pointer-events: none; }
.pw-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #238bc2; }
.pw-map-tag { color: #7a91a3; border-left: 1px solid #d6e2ea; padding-left: 8px; font-size: 10px; }
.pw-map-center { position: absolute; right: 16px; top: 16px; z-index: 400; background: white; border: 1px solid #d8e5ee; border-radius: 10px; color: #225979; width: 42px; height: 42px; font-size: 21px; box-shadow: 0 3px 13px #19374618; }
.pw-map-message { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 400; background: #fffbebf5; color: #75571a; border: 1px solid #efe1b8; border-radius: 10px; padding: 10px 16px; font-size: 12px; max-width: calc(100% - 32px); width: max-content; }
.pw-radar-legend { position: absolute; bottom: 28px; left: 16px; background: #ffffffed; color: #476981; z-index: 400; padding: 9px 12px; border-radius: 10px; font-size: 11px; pointer-events: none; }
.pw-radar-legend span::before { content: ''; display: inline-block; width: 40px; height: 7px; border-radius: 5px; background: linear-gradient(90deg, #c5e8ec, #60bed0, #1584ba, #274eb0); margin-right: 8px; }
.pw-radar-legend small { display: block; font-size: 10px; color: #7a8e9c; margin-top: 3px; }
.pw-timeline { display: flex; gap: 18px; align-items: center; background: white; padding: 16px 32px 10px; }
.pw-play { border: 0; background: #146dab; color: white; height: 44px; width: 44px; border-radius: 50%; font-size: 22px; flex-shrink: 0; }
.pw-play:disabled { background: #b7c8d6; }
.pw-track { flex: 1; min-width: 0; }
.pw-track input { width: 100%; accent-color: #1b84bf; cursor: pointer; }
.pw-track-labels { display: flex; justify-content: space-between; color: #8ba0b1; font-size: 10px; }
.pw-selected-time { text-align: right; min-width: 105px; }
.pw-selected-time strong { display: block; font-size: 18px; color: #23678f; }
.pw-selected-time small { font-size: 10px; color: #7a91a3; }
.pw-icon-button { color: #50758c; border: 1px solid #dbe8ef; background: white; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.pw-radar-note { font-size: 10px; background: white; color: #7f95a5; padding: 0 32px 12px 94px; }
.pw-forecast-panel { padding: 28px 32px; flex: 1; }
.pw-forecast-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pw-forecast-heading h2 { font-size: 24px; font-weight: 700; margin: 5px 0; }
.pw-forecast-heading p { font-size: 12px; color: #7c90a1; }
.pw-forecast-heading label { font-size: 12px; color: #54718a; }
.pw-forecast-heading select { display: block; border: 1px solid #cbdfea; background: white; color: #28526e; padding: 9px 32px 9px 12px; border-radius: 9px; margin-top: 5px; }
.pw-hourly-chart { background: white; padding: 18px 24px; border-radius: 16px; border: 1px solid #e2edf4; margin: 12px 0 20px; }
.pw-hourly-chart .pw-chart { height: 145px; gap: 8px; }
.pw-hourly-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pw-hour { background: white; border: 1px solid #dfebf3; border-radius: 13px; padding: 15px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; min-width: 0; }
.pw-hour time { font-weight: 700; color: #3c6581; border-bottom: 1px solid #edf3f6; padding-bottom: 8px; }
.pw-hour strong { font-size: 17px; color: #2089b9; }
.pw-hour strong small { font-size: 11px; font-weight: 400; }
.pw-hour .pw-wind { color: #7c92a2; font-size: 11px; }
.pw-wind i { display: inline-block; color: #3b7b9d; }
.pw-footer { padding: 14px 32px; text-align: center; font-size: 10px; color: #8a9ba8; }
.pw-footer a { color: #66899e; }
@keyframes pw-pulse { 50% { opacity: .4; } }
@media (min-width: 1800px) { .pw-map { height: max(400px, calc(100dvh - 410px)); } }
@media (max-width: 1000px) { .pw-hourly-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
    .pw-home-card .card-body { display: block; }
    .pw-home-summary { gap: 10px; }
    .pw-weather-icon { width: 37px; height: 37px; font-size: 21px; border-radius: 11px; }
    .pw-home-summary strong { font-size: 20px; }
    .pw-detail-link { margin-left: 47px; display: block; font-size: 12px; }
    .pw-mini-chart { margin-top: 14px; }
    .pw-badge { font-size: 9px; padding: 3px 7px; }
    .pw-home-card .card-header { font-size: 13px; gap: 6px; }
    .pw-header { padding: 14px; gap: 10px; }
    .pw-back { width: 36px; height: 36px; }
    .pw-header h1 { font-size: 17px; }
    .pw-kicker { font-size: 9px; }
    .pw-change { font-size: 0; }
    .pw-change i { font-size: 20px; }
    .pw-day-cards { padding: 12px 12px 8px; gap: 7px; }
    .pw-day { padding: 11px 9px; border-radius: 12px; }
    .pw-day strong { font-size: 14px; }
    .pw-day-label { font-size: 11px; }
    .pw-day .pw-condition-icon { position: static; font-size: 24px; display: block; margin-bottom: 5px; }
    .pw-day-metrics { font-size: 11px; gap: 2px; flex-direction: column; }
    .pw-day-wind { font-size: 9px; }
    .pw-data-note { padding: 0 12px 10px; font-size: 9px; }
    .pw-tabs { padding: 6px 10px; gap: 5px; }
    .pw-tabs button { font-size: 11px; min-height: 44px; padding: 5px; }
    .pw-tabs i { margin-right: 3px; }
    .pw-map { height: max(380px, calc(100dvh - 400px)); }
    .pw-map-caption { top: 12px; left: 52px; font-size: 10px; padding: 8px; }
    .pw-map-tag { display: none; }
    .pw-map-center { right: 12px; top: 12px; width: 36px; height: 36px; }
    .pw-map-message { font-size: 11px; }
    .pw-radar-legend { bottom: 32px; left: 10px; right: 10px; padding: 7px 9px; font-size: 10px; }
    .pw-radar-legend small { font-size: 9px; }
    .pw-timeline { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .pw-play { width: 38px; height: 38px; }
    .pw-selected-time { min-width: 73px; }
    .pw-selected-time strong { font-size: 15px; }
    .pw-selected-time small { font-size: 9px; }
    .pw-track-labels { font-size: 9px; }
    .pw-track-labels span:nth-child(2) { display: none; }
    .pw-icon-button { width: 30px; height: 30px; }
    .pw-radar-note { padding: 0 12px 12px; font-size: 9px; }
    .pw-forecast-panel { padding: 20px 12px; }
    .pw-forecast-heading { align-items: flex-start; }
    .pw-forecast-heading h2 { font-size: 20px; }
    .pw-forecast-heading p { font-size: 10px; }
    .pw-forecast-heading select { padding: 7px; font-size: 11px; max-width: 135px; }
    .pw-hourly-chart { padding: 10px 12px; }
    .pw-hourly-chart .pw-chart { gap: 3px; height: 112px; }
    .pw-hourly-list { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .pw-hour { padding: 11px 8px; font-size: 11px; }
    .pw-hour strong { font-size: 14px; }
    .pw-hour .pw-wind { font-size: 9px; }
    .pw-footer { padding: 12px; font-size: 9px; }
}
@media (max-width: 350px) { .pw-hourly-list { grid-template-columns: repeat(2, 1fr); } .pw-day strong { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .pw-skeleton { animation: none; } .pw-tabs button { transition: none; } }
