/* Weekly strip redesign (15.11, mockup). Equal-width days; per day part a column whose height is the breaking height
   (one scale for the strip), a rating-colour cap and a faint body; the wind arrow under each column.
   Wide: the speed under the arrow and the unit word in its own column at the far left. Mini strip (.bl-mini) untouched. */
.weekly-forecast .wk-strip.wk-v2{display:grid;grid-template-columns:minmax(0,1fr);align-items:end}
.wk-v2 .wk-unit{display:none}
.wk-v2 button.wk-day{min-height:0!important;padding:3px 1px 2px!important}
.wk-v2 .wk-day .wk-h{margin-top:1px!important;line-height:16px;height:16px}
.wk-v2 .wk-day .wk-bars{display:flex!important;align-items:stretch!important;gap:2px!important;height:56px!important;margin-top:1px!important;padding:0 1px!important;box-sizing:border-box}
.wk-v2 .wk-day .wk-bars>i{display:flex;flex-direction:column;flex:1 1 0!important;max-width:none!important;width:auto!important;height:auto!important;min-height:0!important;background:none!important;border-radius:0!important;outline:0!important;box-shadow:none!important}
.wk-v2 .wk-area{position:relative;flex:1 1 auto;min-height:0}
.wk-v2 .wk-body{position:absolute;inset-inline:0;bottom:0;height:max(5px,calc(var(--f) * (100% - 10px)));background:linear-gradient(to top,color-mix(in srgb,var(--t) 18%,transparent),color-mix(in srgb,var(--t) 40%,transparent));border-radius:3px 3px 0 0}
/* column body (Asaf 18.11, option B): less transparent, a light gradient stronger toward the top, light and dark */
.wk-v2 .wk-cap{position:absolute;top:0;inset-inline:0;height:6px;border-radius:3px;background:var(--t)}
.wk-v2 .wk-empty .wk-body{background:none}.wk-v2 .wk-empty .wk-cap{display:none}
.wk-v2 .wk-war{flex:none;height:15px;display:flex;align-items:center;justify-content:center;direction:ltr}
.wk-v2 .wk-war .ar-svg{width:12px;height:12px}
.wk-v2 .wk-dash{color:var(--muted);width:auto}
.wk-v2 .wk-kn3{display:none;font-style:normal}
/* best part of the week (Asaf 19.11, option א, replaces the turquoise star of 15.11): the whole part column, from the
   column to the bottom of the wind band, gets a faint fill in the text colour, closed by a 4px tab in the text colour under
   the wind band. Neutral, so it is never read as a rating colour (turquoise is "טוב"–"חלומי"). No extra height. */
html body .wk-v2 .wk-day .wk-bars>i.wk-best{position:relative;background:color-mix(in srgb,var(--text) 15%,transparent)!important;border-radius:5px!important}
/* tab under the fill, 2px apart (Asaf 19.11): drawn in the existing bottom margin */
html body .wk-v2 .wk-day .wk-bars>i.wk-best::after{content:"";position:absolute;inset-inline:2px;bottom:-5px;height:3px;border-radius:2px;background:var(--text)}
/* the best part's wind cell is rounded on all four corners, so the fill does not show square inner corners */
html body .wk-v2 .wk-day .wk-bars>i.wk-best .wk-war{border-radius:4px!important;margin-inline:0!important}
/* the preferred time in the line above the strip: bold in the text colour (was turquoise) */
#forecast .weekly-forecast #bestWeek .bw-text b{color:var(--text)}
/* parts in reading order (19.11): in Hebrew morning is on the right, as in the line above the strip and the day table */
html body.light .wk-v2 .wk-day .wk-bars>i.wk-best{background:color-mix(in srgb,var(--text) 11%,transparent)!important}
html:not([dir=ltr]) .wk-v2 .wk-day .wk-bars{direction:rtl}
@media(min-width:901px){
 .weekly-forecast .wk-strip.wk-v2{grid-template-columns:minmax(0,1fr) auto}
 .wk-v2 .wk-unit{display:block;align-self:end;padding:0 6px 4px 2px;font-size:13px;color:var(--muted);line-height:16px}
 .wk-v2 .wk-day .wk-bars{height:92px!important;gap:3px!important}
 .wk-v2 .wk-war{height:17px}
 .wk-v2 .wk-war .ar-svg{width:14px;height:14px}
 .wk-v2 .wk-kn3{display:block;height:16px;line-height:16px;font-size:13px;font-weight:600;text-align:center;color:var(--text)}
}
/* the strip is its own tile, separate from the day table: the shared card around both is removed,
   each gets the tile surface and border, with the page background between them (spec 15.11) */
#mapView[data-mode=dashboard] #forecast{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
#forecast .weekly-forecast{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow,none);padding:0 8px;box-sizing:border-box}
#forecast .weekly-forecast .wk-strip.wk-v2{background:none!important;border:0!important}
#forecast #weeklyHours .wk-table{margin-top:8px!important;border:1px solid var(--line);box-shadow:var(--shadow,none)}
@media(min-width:901px){#forecast .weekly-forecast{padding:10px 8px 6px}}
/* sticky, compressing strip (Asaf 15.11): scrolling down, the strip sticks under the header and folds to half height
   while the page moves on underneath at the same pace (--p 0..1 from weekly-forecast.js; margin-bottom keeps the layout). */
#forecast #weeklyHours{display:flow-root}
#forecast .weekly-forecast.wk-sticky{position:sticky;z-index:30;--p:0;margin-bottom:calc(var(--p) * var(--dh,0px))}
#forecast .weekly-forecast.wk-sticky.wk-stuck::before{content:"";position:absolute;inset:-8px;border:8px solid var(--bg);border-radius:24px;pointer-events:none;z-index:-1}
#forecast .weekly-forecast.wk-sticky>#bestWeek{min-height:0!important;height:calc((1 - var(--p)) * var(--hb,44px))!important;overflow:hidden;opacity:calc(1 - var(--p) * 1.6);margin-bottom:calc((1 - var(--p)) * 4px)!important}
.wk-sticky .wk-wdots{height:calc((1 - var(--p)) * var(--hd,0px));overflow:hidden;opacity:calc(1 - var(--p) * 1.6)}
.wk-sticky .wk-v2 .wk-day .wk-bars{height:calc(56px - var(--p) * 26px)!important}
.wk-sticky .wk-v2 .wk-war{height:calc((1 - var(--p)) * 15px);overflow:hidden;opacity:calc(1 - var(--p) * 1.6)}
@media(min-width:901px){
 .wk-sticky .wk-v2 .wk-day .wk-bars{height:calc(92px - var(--p) * 52px)!important}
 .wk-sticky .wk-v2 .wk-war{height:calc((1 - var(--p)) * 17px)}
 .wk-sticky .wk-v2 .wk-kn3{height:calc((1 - var(--p)) * 16px);overflow:hidden;opacity:calc(1 - var(--p) * 1.6)}
 .wk-sticky .wk-v2 .wk-unit{opacity:calc(1 - var(--p) * 1.6)}
}
/* the day table's heading row locks under the compressed strip once the real one reaches that spot (Asaf 15.11):
   page background in the gap, then the table's top edge with its heading row, as before scrolling */
.wk-float{position:fixed;z-index:29;box-sizing:border-box;background:var(--bg);padding-top:8px}
.wk-float[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.wk-float .wk-fhead{position:relative;background:var(--panel);border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;overflow:hidden;pointer-events:none}
.wk-float .wk-fhead:empty{display:none}
.wk-float .wk-fhead .wk-scroll{position:relative;overflow:hidden!important}
.wk-float .wk-fhead .wk-th>span:first-child{background:var(--panel)}
/* phone: long height words wrap to two smaller lines; when the strip has one, every day's word row is two lines high so
   the columns stay level (Asaf 18.11, option א). Since the head multiples (18.11 night: "1.5X ראש", "2X ראש", "3X ראש")
   only the 7-day week view ("שבוע") is too narrow for them; the 3-day view keeps one line. Wide screen unchanged. */
@media(max-width:900px){
 .wk-htall .wk-weekmode .wk-v2 .wk-day .wk-h{height:24px;line-height:12px!important;display:flex!important;align-items:center;justify-content:center}
 .wk-htall .wk-weekmode .wk-v2 .wk-day .wk-h.wk-h2{white-space:normal!important;font-size:11px!important;text-align:center}
}
/* height range instead of "+" (Asaf 18.11): "ברך–מותן" in 11px on one line, phone and wide screen. A range that starts
   at a long word ("מעל הראש–2X ראש ומעלה") breaks after the dash; then every day's word row is two lines high. */
.wk-v2 .wk-day .wk-h .wk-rng{font-size:11px;white-space:nowrap}
.wk-rngtall .wk-v2 .wk-day .wk-h{height:24px;line-height:12px!important;display:flex!important;align-items:center;justify-content:center;text-align:center}
/* phone (Asaf 18.11): one row of all wave days, about 3.4 on screen, scrolling sideways and stopping at each day */
@media(max-width:900px){
 .weekly-forecast .wk-pages{scroll-padding-inline:4px}
 .weekly-forecast .wk-page{flex:0 0 calc((100% - 8px) * var(--wk-days,7) / var(--wk-vis,3.4) + 8px);scroll-snap-align:none;scroll-snap-stop:normal}
 .weekly-forecast .wk-page .wk-strip{overflow:clip!important}
 .weekly-forecast .wk-v2 button.wk-day{scroll-snap-align:start}
}
/* phone: button "שבוע" / "3 ימים" in the look-ahead line, beside the arrow; the week view shows 7 days with the short
   word and "+" (Asaf 18.11). Folds away with the line when the strip compresses. Wide screen: no button. */
.wk-short{display:none}
.wk-tog{display:none}
@media(max-width:900px){
 .weekly-forecast.wk-weekmode .wk-rng{display:none}
 .weekly-forecast.wk-weekmode .wk-short{display:inline}
 .weekly-forecast>.wk-tog{display:flex;align-items:center;gap:4px;position:absolute;z-index:3;top:calc((var(--hb,27px) - 22px) / 2);inset-inline-end:34px;height:22px!important;min-height:0!important;padding:0 8px!important;box-sizing:border-box;border:1px solid var(--line)!important;border-radius:11px!important;background:var(--panel)!important;color:var(--accent)!important;font-weight:600!important;font-size:12px!important;line-height:1!important;white-space:nowrap;cursor:pointer;opacity:calc(1 - var(--p,0) * 1.6)}
 .weekly-forecast.wk-stuck>.wk-tog{pointer-events:none;visibility:hidden}
 .weekly-forecast:has(>#bestWeek[hidden])>.wk-tog,.weekly-forecast:not(:has(>#bestWeek))>.wk-tog{display:none}
 #forecast .weekly-forecast>#bestWeek .bw-go{margin-inline-start:78px}
}
/* wind heat band (Asaf 18.11): the arrow row of each day is one band, each part coloured by wind strength (white to dark purple);
   the arrow keeps its shape, black or white by contrast. Inner gaps filled so the day reads as one band. No legend. */
.wk-v2 .wk-war[style*="--wh"]{background:var(--wh);margin-inline:-1px}
.wk-v2 .wk-war[style*="--wh"] .ar-wind{fill:var(--wi)}
.wk-v2 .wk-bars>i:first-child .wk-war{margin-right:0;border-radius:0 4px 4px 0}
.wk-v2 .wk-bars>i:last-child .wk-war{margin-left:0;border-radius:4px 0 0 4px}
html[dir=ltr] .wk-v2 .wk-bars>i:first-child .wk-war{margin-right:-1px;margin-left:0;border-radius:4px 0 0 4px}
html[dir=ltr] .wk-v2 .wk-bars>i:last-child .wk-war{margin-left:-1px;margin-right:0;border-radius:0 4px 4px 0}
/* the same scale in Help and symbols, Arrows card (Asaf 18.11); stops match windHeat() in weekly-forecast.js */
.help-wind-heat{display:flex;flex-direction:column;gap:4px}
.help-wind-heat>i{display:block;height:12px;border-radius:4px;border:1px solid var(--line);background:linear-gradient(to left,#fff 0%,rgb(206,203,246) 30.8%,rgb(127,119,221) 53.8%,rgb(83,74,183) 76.9%,rgb(38,33,92) 100%)}
html[dir=ltr] .help-wind-heat>i{background:linear-gradient(to right,#fff 0%,rgb(206,203,246) 30.8%,rgb(127,119,221) 53.8%,rgb(83,74,183) 76.9%,rgb(38,33,92) 100%)}
.help-wind-heat>span{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
/* wide (Asaf 18.11): the speed inside the heat band, 2px under the arrow, black or white like the arrow; height word up to 17px, smaller when the day column is narrow.
   Compressed on scroll: the band stays with the arrow only, the speed folds away. Phone unchanged. */
@media(min-width:901px){
 .wk-v2 .wk-war{height:33px;flex-direction:column;gap:2px}
 .wk-v2 .wk-kn3{height:13px;line-height:13px;color:var(--wi,var(--text))}
 .wk-v2 button.wk-day{container-type:inline-size}
 .wk-v2 .wk-day .wk-h,.wk-v2 .wk-day .wk-h .wk-rng{font-size:clamp(11px,18cqi,17px)!important}
 .wk-v2 .wk-war .wk-dash{height:14px;line-height:14px}
 .wk-v2 .wk-day .wk-h{height:22px;line-height:22px}
 .wk-rngtall .wk-v2 .wk-day .wk-h{height:40px;line-height:20px!important}
 .wk-sticky .wk-v2 .wk-war{height:calc(33px - var(--p) * 16px);gap:calc((1 - var(--p)) * 2px);opacity:1}
 .wk-sticky .wk-v2 .wk-kn3{height:calc((1 - var(--p)) * 13px)}
}
/* phone (Asaf 18.11): the speed under the arrow inside the heat band too, 2px gap; the whole band folds away when the
   strip compresses, as before. Column cap 4px to 6px on phone and wide. */
@media(max-width:900px){
 .wk-v2 .wk-war{height:28px;flex-direction:column;gap:2px}
 .wk-v2 .wk-kn3{display:block;height:12px;line-height:12px;font-size:12px;font-weight:600;text-align:center;color:var(--wi,var(--text))}
 .wk-v2 .wk-war .wk-dash{height:12px;line-height:12px}
 .wk-sticky .wk-v2 .wk-war{height:calc((1 - var(--p)) * 28px)}
 /* fix (Asaf 18.11, phone screenshot): the taller band ate the columns; the column row grows by the same 13px
    (36 to 49, over status-card-3), compressed it stays 22 as before */
 html body #forecast .wk-v2 .wk-day .wk-bars{height:49px!important}
 html body #forecast .wk-sticky .wk-v2 .wk-day .wk-bars{height:calc(49px - var(--p,0) * 27px)!important}
}
/* phone, 3-day view (Asaf 18.11): the date beside the weekday on one line ("ה' 19/11"), weather icon after it;
   the week view keeps two lines */
@media(max-width:900px){
 #forecast .weekly-forecast:not(.wk-weekmode) .wk-v2 .wk-day .wk-top{grid-template-columns:auto auto auto!important;grid-template-areas:"name date wx"!important;column-gap:4px!important}
 #forecast .weekly-forecast:not(.wk-weekmode) .wk-v2 .wk-day .wk-nd small{font-size:12px!important;line-height:1.2!important}
 /* the line saved goes to the columns (Asaf 18.11): 49 to 63; compressed still 22 */
 html body #forecast .weekly-forecast:not(.wk-weekmode) .wk-v2 .wk-day .wk-bars{height:63px!important}
 html body #forecast .weekly-forecast.wk-sticky:not(.wk-weekmode) .wk-v2 .wk-day .wk-bars{height:calc(63px - var(--p,0) * 41px)!important}
}
/* beaches-tab strip (Asaf 19.11): the same strip as the beach conditions page; the #forecast-only rules above, repeated for it */
.weekly-forecast.wk-mini{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow,none);padding:4px 8px 6px;box-sizing:border-box;margin-top:6px}
.weekly-forecast.wk-mini .wk-strip.wk-v2{background:none!important;border:0!important}
.weekly-forecast.wk-mini .wk-day{cursor:inherit}
@media(min-width:901px){.weekly-forecast.wk-mini{padding:10px 8px 6px}}
@media(max-width:900px){
 html body .weekly-forecast.wk-mini .wk-v2 .wk-day .wk-bars{height:49px!important}
 .weekly-forecast.wk-mini:not(.wk-weekmode) .wk-v2 .wk-day .wk-top{grid-template-columns:auto auto auto!important;grid-template-areas:"name date wx"!important;column-gap:4px!important}
 .weekly-forecast.wk-mini:not(.wk-weekmode) .wk-v2 .wk-day .wk-nd small{font-size:12px!important;line-height:1.2!important}
 html body .weekly-forecast.wk-mini:not(.wk-weekmode) .wk-v2 .wk-day .wk-bars{height:63px!important}
}
