/* Status card + one metrics tile (Asaf 24.11, mockup "Duck Dive · הדמיית כרטיס תנאי גלישה"). Surf mode only (#dashTiles.has-mt).
   Fixed zones: the card never re-divides itself by its content. Colors only from the existing tokens (both themes). */
#dashTiles .mt-src{display:none!important}
/* ---------- status card additions ---------- */
:root{--st3-bh:64px} /* height of the "בהמשך השבוע" tile (25.11: it left the card; the card and the metrics tile give that height back on wide screens) */
#dashTiles .st3-wear{display:flex;align-items:center;gap:8px;min-width:0;width:100%;border:0;background:none;margin:0;padding:0;font:inherit;color:var(--text);text-align:start;cursor:pointer;min-height:0}
#dashTiles .st3-wi{display:flex;flex:none;color:var(--accent-text,var(--accent))}
#dashTiles .st3-wt{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashTiles .st3-wt b{font-weight:600}
#dashTiles .st3-wear:focus-visible,#dashTiles .mt-i:focus-visible,#dashTiles .mt-map:focus-visible,#forecast .st3-band #bestWeek:focus-visible{outline:2px solid var(--accent-text,var(--accent));outline-offset:2px}
/* "בהמשך השבוע" band: the existing #bestWeek element lives here; fixed height, wraps, hidden (but keeps its place) when there is no recommendation */
#forecast .st3-band{--st3-band:#0E6E74;--st3-band-t:#fff;flex:none;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:2px;background:var(--st3-band);color:var(--st3-band-t);overflow:hidden;min-width:0}
#forecast .st3-band.empty{background:transparent;color:transparent}
#forecast .st3-band.empty .st3-band-k,#forecast .st3-band.empty .st3-band-slot{visibility:hidden}
#forecast .st3-band-k{font-weight:600;font-size:13px;line-height:17px;opacity:.92}
#forecast .st3-band-slot{min-width:0}
html body #forecast .st3-band #bestWeek{display:flex!important;align-items:center;gap:12px;position:static!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font:inherit!important;text-align:start!important;cursor:pointer;overflow:visible!important;transform:none!important;opacity:1!important}
html body #forecast .st3-band #bestWeek[hidden]{display:none!important}
html body #forecast .st3-band #bestWeek>.bw-text{flex:1 1 auto;min-width:0}
html body #forecast .st3-band #bestWeek>.bw-go{flex:none;display:flex!important;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%!important;background:rgba(255,255,255,.2)!important;font-size:20px;line-height:1}
html body #forecast .st3-band #bestWeek *{color:inherit!important;background:none!important;border-color:transparent!important;text-shadow:none!important;white-space:normal!important}
html body #forecast .st3-band #bestWeek svg{display:none!important}
/* 24.11: no rotating text in the band; the full sentence (today + outlook + best) is shown at once and wraps */
html body #forecast .st3-band #bestWeek .bw-ol2,html body #forecast .st3-band #bestWeek .bw-dots{display:none!important}
html body #forecast .st3-band #bestWeek .bw-a{display:inline!important;position:static!important;opacity:1!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
html body #forecast .st3-band #bestWeek :is(.bw-best,.bw-ol,.bw-today,.bw-dot){display:inline!important}
html body #forecast .st3-band #bestWeek :is(.t-long,.bw-facts){display:inline!important}
html body #forecast .st3-band #bestWeek .t-short{display:none!important}
html body #forecast .st3-band #bestWeek :is(.bw-text,.bw-body){display:block!important;margin:0!important;padding:0!important;line-height:1.3!important;-webkit-line-clamp:3;display:-webkit-box!important;-webkit-box-orient:vertical;overflow:hidden}
html body #forecast .st3-band #bestWeek b,html body #forecast .st3-band #bestWeek strong{font-weight:700!important}
/* ---------- metrics tile ---------- */
#dashTiles .mt2{display:flex;flex-direction:column;padding:0;gap:0;min-height:0;box-sizing:border-box;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:16px;min-width:0;cursor:default}
#dashTiles .mt-i{border-radius:0!important;box-shadow:none!important;font:inherit;color:var(--text);background:none;border:0;margin:0;cursor:pointer;min-height:44px;min-width:0;text-align:start}
#dashTiles .mt-i:disabled{cursor:default;opacity:1;color:var(--text)}
#dashTiles .mt-l{display:flex;align-items:center;gap:6px;color:var(--muted);font-weight:500;white-space:nowrap}
#dashTiles .mt-ic{display:flex;flex:none;align-items:center;font-style:normal}
#dashTiles .mt-ic svg{width:18px;height:18px;display:block}
#dashTiles .mt-v{display:flex;align-items:baseline;gap:3px}
#dashTiles .mt-v b{font-weight:700;line-height:1.15;color:var(--text)}
#dashTiles .mt-v small{color:var(--text-2);font-size:13px}
#dashTiles .mt-s{color:var(--text-2);font-size:13px;line-height:16px}
#dashTiles .mt-empty{display:block}
#dashTiles .mt-map{border:0;background:none;padding:0;margin:0;font:inherit;cursor:pointer;display:none}
#dashTiles .mt-pill{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1.5px solid var(--accent-text,var(--accent));border-radius:14px;color:var(--accent-text,var(--accent));font:600 13px/1 inherit;white-space:nowrap}
#dashTiles .mt2 .t-short{display:none}
/* ---------- wide screens: status 3 : metrics 1, metrics as horizontal rows ---------- */
@media(min-width:901px){
 html.wl.wl.wl.wl.wl.wl.wl:not(.dd-calm) #mapView[data-mode] #dashTiles.has-mt{grid-template-columns:minmax(0,3fr) minmax(0,1fr)!important;grid-template-rows:auto!important;column-gap:8px!important;row-gap:0!important;min-height:0!important}
 html.wl.wl.wl.wl.wl.wl.wl:not(.dd-calm) #mapView[data-mode] #dashTiles.has-mt .fl-status.st3{grid-column:1!important;grid-row:1!important;height:calc(var(--st3-h,469px) - var(--st3-bh,64px))!important}
 html.wl.wl.wl.wl.wl.wl.wl:not(.dd-calm) #mapView[data-mode] #dashTiles.has-mt .mt2{grid-column:2!important;grid-row:1!important;height:calc(var(--st3-h,469px) - var(--st3-bh,64px))!important}
 #dashTiles.has-mt .st3-in{grid-template-rows:20px 1px minmax(0,1fr) 1px 22px 1px 20px 1px 50px 1px 30px;--st3-gy:11px}
 #dashTiles.has-mt .st3-wear{font-size:15px;line-height:20px}
 #forecast .st3-band.st3-b2{height:64px;padding:0 18px}
 #forecast .st3-band.st3-b2-slot{font-size:17px}
 #dashTiles.has-mt .st3-word{font-size:58px;line-height:62px}
 #dashTiles.has-mt .st3-r .fl-ducks .bath-slot{width:40px!important;height:40px!important}
 #dashTiles.has-mt .st3-r{padding-inline:12px}
 #dashTiles.has-mt .st3-l{padding-inline:12px;gap:2px}
 #dashTiles.has-mt .st3-l .st3-say{font-size:21px;line-height:26px;height:auto;font-weight:500;color:var(--text);margin-top:4px}
 #dashTiles.has-mt .st3-lbl{font-size:15px}
 #dashTiles.has-mt .st3-hgt{font-size:50px;line-height:56px;font-weight:700}
 #dashTiles.has-mt .st3-in{--st3-lw:50%}
 #dashTiles.has-mt .st3-src .st3-n{font-weight:600;color:var(--text)!important}
 /* 25.11: the map card is a separate card now (10px gap), so the tile needs no extra padding on the map side */
 #dashTiles .mt2 .mt-i{flex:1 1 0;display:flex;align-items:center;gap:6px;padding:6px 12px;border-bottom:1px solid var(--line)}
 #dashTiles .mt2 .mt-i:nth-last-child(2){border-bottom:0}
 #dashTiles .mt2 .mt-l{flex:none;width:92px;font-size:13px;padding-inline-end:6px;border-inline-end:1px solid transparent}
 #dashTiles .mt2 .mt-r{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;min-width:0}
 #dashTiles .mt2 .mt-v b{font-size:20px}
 #dashTiles .mt2 .mt-empty{flex:1 1 0;border-bottom:0}
}
/* ---------- phone ---------- */
@media(max-width:900px){
 html:not(.dd-calm) #mapView #dashTiles.has-mt{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;row-gap:8px!important}
 html:not(.dd-calm) #mapView #dashTiles.has-mt>.fl-status.st3,html:not(.dd-calm) #mapView #dashTiles.has-mt>.mt2{grid-column:1/-1!important}
 #dashTiles.has-mt .st3-in{grid-template-rows:17px 1px 84px 1px 17px 1px 17px 1px 38px}
 #dashTiles.has-mt .st3-wear{font-size:14px;line-height:18px}
 #dashTiles.has-mt .st3-wt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
 #dashTiles.has-mt .st3-b{grid-template-columns:118px 1px minmax(0,1fr)!important}
 #dashTiles.has-mt .st3-word{font-size:34px;line-height:38px}
 #dashTiles.has-mt .st3-r .fl-ducks{margin:0!important}
 #dashTiles.has-mt .st3-r .fl-ducks .bath-slot{width:20px!important;height:20px!important}
 #dashTiles.has-mt .st3-l{gap:1px}
 #dashTiles.has-mt .st3-l .st3-say{font-size:14px;line-height:17px;height:auto;font-weight:500;color:var(--text);margin-top:2px;-webkit-line-clamp:2}
 #dashTiles.has-mt .st3-lbl{font-size:12px;line-height:14px}
 #dashTiles.has-mt .st3-hgt{font-size:26px;line-height:30px;font-weight:700}
 #dashTiles.has-mt .st3-src .st3-n{font-weight:600;color:var(--text)!important}
 #forecast .st3-band.st3-b2{height:52px;padding:0 14px;gap:0}
 #forecast .st3-band.st3-b2-k{font-size:12px;line-height:14px}
 #forecast .st3-band.st3-b2-slot{font-size:14px;line-height:17px}
 html body #forecast .st3-band.st3-b2 #bestWeek :is(.bw-text,.bw-body){-webkit-line-clamp:2;line-height:17px!important}
 html body #forecast .st3-band.st3-b2 #bestWeek>.bw-go{width:24px;height:24px;font-size:17px}
 #dashTiles .mt2{display:grid;grid-template-columns:1fr 1.25fr 1fr 1fr 1fr;padding:0 2px 6px!important;height:auto}
 #dashTiles .mt2 .mt-i{grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding:6px 2px 4px;margin:4px 0;text-align:center}
 #dashTiles .mt2 .mt-i+.mt-i,#dashTiles .mt2 .mt-i+.mt-empty,#dashTiles .mt2 .mt-empty{border-inline-start:1px solid var(--line)}
 #dashTiles .mt2 .mt-l{gap:4px;height:20px;font-size:13px}
 #dashTiles .mt2 .mt-r{display:flex;flex-direction:column;align-items:center;gap:3px}
 #dashTiles .mt2 .mt-v{justify-content:center;height:24px}
 #dashTiles .mt2 .mt-v b{font-size:18px;line-height:24px}
 #dashTiles .mt2 .mt-s{display:block;min-height:32px}
 #dashTiles .mt2 .t-long{display:none}
 #dashTiles .mt2 .t-short{display:inline}
 /* 25.11: the map button sits under wind and swell in the same row (no second row), as a plain accent link without outline.
    Wind and swell keep a 36px strip at the bottom for it; the tile is shorter by the old second row. */
 #dashTiles .mt2 .mt-i[data-m=wind]{grid-column:1}
 #dashTiles .mt2 .mt-i[data-m=swell]{grid-column:2}
 /* the wind|swell divider stops above the map button (36px + its 4px margin) */
 #dashTiles .mt2 .mt-i[data-m=swell]{position:relative;border-inline-start:0!important}
 #dashTiles .mt2 .mt-i[data-m=swell]::before{content:'';position:absolute;inset-inline-start:0;top:0;bottom:36px;width:1px;background:var(--line)}
 #dashTiles .mt2 .mt-i[data-m=water]{grid-column:3}
 #dashTiles .mt2 .mt-i[data-m=air]{grid-column:4}
 #dashTiles .mt2 .mt-i[data-m=uv]{grid-column:5}
 #dashTiles .mt2 .mt-i:is([data-m=wind],[data-m=swell]){padding-bottom:36px!important}
 #dashTiles .mt2 .mt-i:is([data-m=wind],[data-m=swell]) .mt-s{min-height:16px!important}
 html body #mapView #dashTiles .mt2 .mt-map{display:flex;align-items:center;justify-content:center;grid-column:1/span 2!important;grid-row:1;align-self:end;justify-self:stretch!important;min-height:36px!important;height:36px;margin:0 0 4px!important;padding:0 2px;z-index:1}
 html body #mapView #dashTiles .mt2 .mt-pill{border:0!important;height:auto!important;padding:0!important;border-radius:0;gap:4px;font-size:13px}
}

.pm-mapdlg h2 .pm-beach{display:block;margin-top:2px;font-size:13px;font-weight:400;color:var(--muted)}
