/* ════════════════════════════════════════════════════════════════════════
   vädret.org — главная таблица стилей
   ════════════════════════════════════════════════════════════════════════
   Палитра / типографика — основа из дизайна frontend/index.html.
   Mobile-first: добавлены @media для ≤850px (tablet) и ≤480px (phone).
*/

/* Self-hosted webfonts (Fontsource, latin subset) — CLS=0, no network round-trip */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/hanken-grotesk-300.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/hanken-grotesk-400.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/hanken-grotesk-500.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/hanken-grotesk-600.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/hanken-grotesk-700.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/hanken-grotesk-800.woff2') format('woff2');}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/instrument-serif-400.woff2') format('woff2');}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/instrument-serif-400-italic.woff2') format('woff2');}
@font-face{font-family:'DM Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/dm-mono-400.woff2') format('woff2');}
@font-face{font-family:'DM Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/dm-mono-500.woff2') format('woff2');}

:root{
  --blue:#0057B8;--blue-dk:#003D82;--blue-lt:#EBF3FF;--blue-mid:#1A6FCC;
  --yellow:#FECC00;--red:#C0000A;--green:#15803D;--orange:#C25800;--cold:#2870A0;
  --ink:#0F0F0F;--sub:#3A3A3A;--muted:#6A6A6A;--faint:#AAAAAA;
  --rule:#E5E5E5;--bg:#F4F4F2;--white:#FFFFFF;
  --serif:'Instrument Serif',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,sans-serif;
  --mono:'DM Mono',monospace;
  --W:1320px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{overflow-x:clip;}  /* hindra horisontell sidoscroll på mobil (sticky-säkert, till skillnad mot overflow:hidden) */
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:20px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip;}
a{color:var(--blue);text-decoration:none;cursor:pointer;}
a:hover{text-decoration:underline;}
img{max-width:100%;height:auto;}

/* NAV */
.nav{background:var(--blue-dk);height:58px;display:flex;align-items:center;padding:0 52px;position:sticky;top:0;z-index:100;}
.logo{font-family:var(--serif);font-size:24px;font-style:italic;color:#fff;margin-right:36px;flex-shrink:0;}
.logo b{font-style:normal;color:var(--yellow);}
.logo:hover{text-decoration:none;}
.nav-links{display:flex;gap:0;flex:1;overflow-x:auto;scrollbar-width:none;}
.nav-links::-webkit-scrollbar{display:none;}
.nl{height:58px;display:flex;align-items:center;padding:0 18px;font-size:16px;font-weight:600;color:rgba(255,255,255,.7);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;letter-spacing:.2px;transition:.1s;}
.nl:hover{color:#fff;text-decoration:none;}
.nl.on{color:#fff;border-bottom-color:var(--yellow);}
.nav-end{margin-left:auto;display:flex;align-items:center;gap:10px;}
.loc{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:500;color:rgba(255,255,255,.6);}
.loc:hover{text-decoration:none;color:#fff;}
.loc-dot{width:6px;height:6px;border-radius:50%;background:var(--yellow);display:inline-block;}
.srch-form{display:flex;gap:6px;align-items:center;}
.srch{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:7px;padding:6px 13px;font:15px var(--sans);color:#fff;width:190px;}
.srch::placeholder{color:rgba(255,255,255,.3);}
.srch:focus{outline:none;background:rgba(255,255,255,.16);}
.srch-btn{background:var(--yellow);color:var(--blue-dk);border:none;border-radius:7px;padding:6px 18px;font:700 14px var(--sans);cursor:pointer;}
.lang-switch{display:flex;gap:4px;margin-left:8px;}
.lang-switch a{font-size:12px;font-weight:700;color:rgba(255,255,255,.4);padding:3px 6px;border-radius:4px;}
.lang-switch a:hover{color:#fff;text-decoration:none;}
.lang-switch a.on{color:var(--blue-dk);background:var(--yellow);}

/* TICKER */
.ticker{background:var(--blue-dk);border-top:2px solid var(--yellow);overflow:hidden;padding:6px 0;position:relative;}
.tt{position:absolute;left:0;top:0;bottom:0;z-index:2;background:var(--blue-dk);color:var(--yellow);font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;padding:0 18px;display:flex;align-items:center;box-shadow:10px 0 14px -4px var(--blue-dk);}
.ts{display:inline-block;white-space:nowrap;animation:run 32s linear infinite;color:rgba(255,255,255,.75);font-size:14px;padding-left:140px;}
@keyframes run{from{transform:translateX(55%)}to{transform:translateX(-100%)}}

/* WARN */
.warn{background:#FEF3C7;border-bottom:1px solid #FDE68A;padding:9px 52px;display:flex;gap:10px;align-items:center;font-size:15px;}
.wb{background:#B45309;color:#fff;font-size:12px;font-weight:700;padding:3px 9px;border-radius:3px;flex-shrink:0;letter-spacing:.5px;}
.wt b{color:#92400E;}

/* CURRENT */
.current{background:var(--white);border-bottom:1px solid var(--rule);}
.cur-in{max-width:var(--W);margin:0 auto;padding:38px 52px 34px;display:grid;grid-template-columns:420px 1fr auto;gap:0;align-items:center;}
.cur-loc{font-size:13px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--muted);margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.cur-loc::before{content:'';width:16px;height:1px;background:var(--blue);}
.cur-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px;}
.cur-ico{font-size:69px;line-height:1;margin-top:12px;}
.cur-num{font-family:var(--serif);font-size:153px;font-weight:400;line-height:.82;color:var(--ink);letter-spacing:-5px;}
.cur-deg{font-family:var(--serif);font-size:61px;font-weight:400;color:var(--faint);vertical-align:super;letter-spacing:0;}
.cur-cond{font-family:var(--serif);font-size:27px;font-style:italic;color:var(--sub);margin-top:10px;}
.cur-feel{font-size:17px;color:var(--muted);margin-top:4px;}
.cur-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;}
.ctag{background:var(--blue-lt);border:1px solid rgba(0,87,184,.15);border-radius:5px;padding:5px 14px;font-size:15px;font-weight:500;color:var(--blue);}

.cur-m{padding:0 52px;border-left:1px solid var(--rule);border-right:1px solid var(--rule);margin:0 44px;}
.mm-row{display:flex;gap:14px;margin-bottom:20px;}
.mm{flex:1;text-align:center;padding:14px;background:var(--bg);border-radius:8px;}
.mm-l{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--faint);margin-bottom:5px;}
.mm-v{font-family:var(--serif);font-size:37px;color:var(--ink);}
.sun-g{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;}
.sg{display:flex;flex-direction:column;padding:4px 0;}
.sg-l{font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--faint);margin-bottom:2px;}
.sg-v{font-size:18px;font-weight:600;color:var(--ink);}

.cur-r{}
.stat{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--rule);gap:22px;}
.stat:first-child{border-top:1px solid var(--rule);}
.stat:last-child{border-bottom:none;}
.sl{font-size:15px;font-weight:500;color:var(--muted);}
.sv{font-family:var(--mono);font-size:18px;color:var(--ink);}

/* HOURLY */
.hourly{background:var(--white);border-bottom:1px solid var(--rule);}
.h-in{max-width:var(--W);margin:0 auto;padding:0 52px;}
.h-scroll{display:flex;overflow-x:auto;scrollbar-width:thin;}
.h-scroll::-webkit-scrollbar{height:8px;}
.h-scroll::-webkit-scrollbar-thumb{background:var(--rule);border-radius:4px;}
.h-scroll::-webkit-scrollbar-track{background:transparent;}
.h-scroll::-webkit-scrollbar{display:none;}
.hc{flex:0 0 84px;padding:16px 6px;text-align:center;border-right:1px solid var(--rule);cursor:pointer;transition:.1s;text-decoration:none;color:inherit;}
.hc:last-child{border-right:none;}
.hc:hover{background:var(--bg);text-decoration:none;}
.hc.now{background:var(--blue-lt);}
.hc.now .ht{color:var(--blue);font-weight:700;}
.ht{font-size:13px;font-weight:500;color:var(--faint);margin-bottom:7px;letter-spacing:.3px;}
.hi{font-size:27px;margin-bottom:7px;}
.hv{font-family:var(--mono);font-size:18px;color:var(--ink);font-weight:600;}
.hr{font-size:13px;color:var(--cold);margin-top:3px;font-weight:600;}
.hw{font-size:13px;color:var(--muted);margin-top:2px;font-weight:500;font-family:var(--mono);}

/* PAGE */
.page{max-width:var(--W);margin:0 auto;padding:38px 52px;}
.two{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px;}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:22px;}
.four{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px;}
.six{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:22px;}
.risk-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:16px;margin-bottom:22px;}

/* CARD */
.card{background:var(--white);border-radius:12px;border:1px solid var(--rule);overflow:hidden;}
.ch{padding:17px 22px 15px;border-bottom:1px solid var(--rule);display:flex;justify-content:space-between;align-items:center;}
.ch h2{font-family:var(--serif);font-size:25px;font-weight:400;}
.ch a{font-size:14px;color:var(--blue);}
.ch small{font-size:13px;color:var(--muted);}
.cb{padding:20px 22px;}

/* SECTION LABEL */
.slbl{font-size:13px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--faint);margin-bottom:18px;display:flex;align-items:center;gap:12px;}
.slbl::after{content:'';flex:1;height:1px;background:var(--rule);}

/* FORECAST */
.frow{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--rule);cursor:pointer;transition:.1s;color:inherit;text-decoration:none;}
.frow:last-child{border-bottom:none;}
.frow:hover{background:rgba(0,0,0,.02);margin:0 -22px;padding:14px 22px;text-decoration:none;}
.fd{width:180px;font-size:19px;font-weight:600;white-space:nowrap;}
.fi{font-size:23px;flex-shrink:0;width:30px;text-align:center;}
.fc{flex:1;font-size:17px;color:var(--muted);font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fb{display:flex;align-items:baseline;gap:14px;margin-left:auto;}
.fhi{font-family:var(--serif);font-size:29px;font-weight:400;color:var(--red);min-width:62px;text-align:right;display:inline-block;}
.flo{font-family:var(--serif);font-size:23px;font-weight:400;color:var(--cold);min-width:50px;text-align:right;display:inline-block;}
.frain{font-family:var(--serif);font-size:21px;color:var(--cold);font-weight:400;min-width:78px;text-align:right;display:inline-block;}

/* INDEX */
.irow{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--rule);transition:.1s;}
.irow:last-child{border-bottom:none;}
.iem{font-size:25px;flex-shrink:0;}
.itx{flex:1;}
.ilbl{font-size:13px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--faint);margin-bottom:3px;}
.ival{font-size:23px;font-weight:700;}
.isub{font-size:16px;color:var(--muted);}
.g{color:var(--green);}.o{color:var(--orange);}.r{color:var(--red);}.b{color:var(--cold);}

/* DATA TILES */
.dtile{background:var(--white);border:1px solid var(--rule);border-radius:12px;padding:22px 24px;}
.dtl{font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--faint);margin-bottom:10px;}
.dtv{font-family:var(--mono);font-size:37px;color:var(--ink);letter-spacing:-1px;line-height:1;}
.dtu{font-size:17px;color:var(--faint);letter-spacing:0;}
.dts{font-size:16px;color:var(--muted);margin-top:7px;}
.dtbar{height:3px;background:var(--rule);margin-top:12px;border-radius:2px;}
.dtbar div{height:100%;background:var(--blue);border-radius:2px;}

/* POLLEN */
.prow{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--rule);font-size:18px;}
.prow:last-child{border-bottom:none;}
.pn{flex:1;color:var(--sub);}
.pbar{width:72px;height:5px;background:var(--rule);border-radius:3px;}
.pbar div{height:100%;border-radius:3px;}
.p0{background:var(--faint);}.p1{background:#22C55E;}.p2{background:#F59E0B;}.p3{background:#EF4444;}.p4{background:#7C3AED;}
.plvl{width:50px;text-align:right;font-size:14px;font-weight:700;}

/* SWIM */
.srow{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--rule);font-size:18px;}
.srow:last-child{border-bottom:none;}
.sp{flex:1;}
.stemp{font-family:var(--mono);font-size:22px;}

/* REGIONS */
.reg-card{background:var(--white);border:1px solid var(--rule);border-radius:12px;padding:22px 24px;cursor:pointer;transition:.12s;display:block;color:inherit;text-decoration:none;}
.reg-card:hover{border-color:var(--blue);transform:translateY(-2px);text-decoration:none;}
.reg-nm{font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:7px;}
.reg-tmp{font-family:var(--serif);font-size:65px;color:var(--ink);line-height:1;margin-bottom:5px;}
.reg-tmp small{font-size:29px;color:var(--faint);}
.reg-cond{font-family:var(--serif);font-style:italic;font-size:19px;color:var(--sub);margin-bottom:10px;}
.reg-meta{font-size:15px;color:var(--muted);}

/* CITIES */
.city-card{background:var(--white);border:1px solid var(--rule);border-radius:10px;padding:15px 16px;cursor:pointer;transition:.1s;display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;}
.city-card:hover{border-color:var(--blue);background:var(--blue-lt);text-decoration:none;}
.cico{font-size:23px;flex-shrink:0;}
.cinf{flex:1;min-width:0;}
.cnm{font-size:18px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ccd{font-size:15px;color:var(--muted);}
.ctmp{font-family:var(--serif);font-size:31px;}

/* FJÄLL */
.fj-card{background:var(--white);border:1px solid var(--rule);border-radius:12px;padding:18px 20px;cursor:pointer;transition:.12s;display:block;color:inherit;text-decoration:none;}
.fj-card:hover{border-color:var(--cold);text-decoration:none;}
.fj-nm{font-size:18px;font-weight:700;margin-bottom:3px;}
.fj-reg{font-size:14px;color:var(--muted);margin-bottom:12px;}
.fj-row{display:flex;justify-content:space-between;align-items:center;}
.fj-tmp{font-family:var(--serif);font-size:41px;}
.fj-ico{font-size:29px;}
.fj-snow{font-size:14px;color:var(--cold);font-weight:700;margin-top:6px;}

/* SUN / ROAD */
.sun-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--rule);font-size:18px;}
.sun-row:last-child{border-bottom:none;}
.sun-l{color:var(--muted);}
.sun-v{font-weight:600;}

.rrow{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--rule);font-size:17px;align-items:flex-start;}
.rrow:last-child{border-bottom:none;}
.rico{font-size:17px;flex-shrink:0;margin-top:2px;}
.rt{color:var(--sub);line-height:1.5;}
.rt b{color:var(--ink);}

/* EDITORIAL */
.editorial{background:var(--blue-dk);border-radius:12px;padding:28px 32px;margin-bottom:22px;}
.ed-tag{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.35);margin-bottom:9px;}
.ed-title{font-family:var(--serif);font-size:27px;font-style:italic;color:#fff;line-height:1.4;margin-bottom:10px;}
.ed-body{font-size:17px;color:rgba(255,255,255,.55);line-height:1.75;}
.ed-foot{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center;}
.smhi-badge{font-family:var(--serif);font-size:20px;letter-spacing:3px;color:#fff;}
.smhi-upd{font-size:14px;color:var(--yellow);font-weight:600;}

/* P4 */
.p4-row{background:var(--white);border:1px solid var(--rule);border-radius:12px;padding:18px 22px;display:flex;align-items:center;gap:16px;margin-bottom:22px;}
.p4-ico{font-size:31px;}
.p4-name{font-family:var(--serif);font-size:21px;color:var(--ink);}
.p4-name em{color:var(--blue);font-style:normal;}
.p4-sub{font-size:15px;color:var(--muted);margin-top:3px;}
.p4-right{margin-left:auto;font-size:14px;color:var(--muted);text-align:right;line-height:1.6;}

/* CHART */
.chart-box{margin-bottom:22px;}
.chart-lbl{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--faint);padding:16px 22px 14px;border-bottom:1px solid var(--rule);}
.chart-body{padding:18px 22px 14px;}
.cleg{display:flex;gap:16px;font-size:14px;color:var(--muted);margin-top:10px;flex-wrap:wrap;}
.cleg span{display:flex;align-items:center;gap:6px;}
.cl{width:18px;height:2.5px;border-radius:1px;}

/* SMHI STRIP */
.smhi-strip{background:var(--ink);padding:18px 52px;display:flex;align-items:center;gap:24px;margin-top:8px;}
.smhi-logo{font-family:var(--serif);font-size:25px;letter-spacing:3px;color:#fff;flex-shrink:0;}
.strip-div{width:1px;height:30px;background:rgba(255,255,255,.1);}
.strip-txt{font-size:15px;color:rgba(255,255,255,.35);flex:1;}
.strip-upd{font-size:15px;color:var(--yellow);font-weight:600;white-space:nowrap;}

/* FOOTER */
.footer{background:var(--blue-dk);padding:28px 52px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;}
.ft-logo{font-family:var(--serif);font-size:21px;font-style:italic;color:#fff;}
.ft-logo b{font-style:normal;color:var(--yellow);}
.ft-logo:hover{text-decoration:none;}
.ft-links{display:flex;gap:20px;flex-wrap:wrap;}
.ft-links a{font-size:14px;color:rgba(255,255,255,.4);}
.ft-links a:hover{color:#fff;text-decoration:none;}
.ft-lang{display:flex;gap:4px;}
.ft-lang a{font-size:12px;font-weight:700;color:rgba(255,255,255,.4);padding:3px 6px;border-radius:4px;}
.ft-lang a.on{color:var(--blue-dk);background:var(--yellow);}
.ft-copy{font-size:13px;color:rgba(255,255,255,.2);width:100%;text-align:center;}

/* SWEDEN MAP */
/* Leaflet temperaturkarta — без content-visibility (ломает Leaflet measurements).
   Map-card simple position:relative. */
.map-card{position:relative;}
.map-wrap{padding:20px;display:flex;justify-content:center;align-items:flex-start;gap:32px;}
.sweden-map{flex-shrink:0;}
.map-legend{flex:1;display:flex;flex-direction:column;gap:12px;}
.map-city-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--rule);font-size:16px;color:inherit;text-decoration:none;}
.map-city-row:last-child{border-bottom:none;}
.map-city-row:hover{background:rgba(0,87,184,.04);text-decoration:none;}
.map-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.map-city-nm{flex:1;font-weight:600;}
.map-city-cond{font-size:14px;color:var(--muted);font-style:italic;}
.map-city-tmp{font-family:var(--serif);font-size:21px;font-weight:400;}

/* DAYLIGHT CHART */
.daylight-chart{width:100%;}
.dl-month-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:15px;}
.dl-month{width:50px;font-size:13px;font-weight:600;color:var(--muted);}
.dl-bar-wrap{flex:1;height:18px;background:var(--rule);border-radius:3px;overflow:hidden;position:relative;}
.dl-bar-inner{display:flex;height:100%;width:100%;}
.dl-dark-seg{background:#1A3A5A;}
.dl-twi-seg{background:#4A7AB8;}
.dl-sun-seg{background:#FECC00;}
.dl-hrs{font-family:var(--mono);font-size:14px;color:var(--muted);min-width:50px;text-align:right;}
.dl-today{border:2px solid var(--orange) !important;box-shadow:0 0 0 1px rgba(194,88,0,.2);}

/* BLIXT */
.blixt-wrap{background:linear-gradient(135deg,#1A1A2E,#2A2A4E);border-radius:8px;padding:16px;text-align:center;margin-bottom:14px;}
.blixt-title{font-size:14px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:8px;}
.blixt-count{font-family:var(--serif);font-size:49px;color:#FECC00;}
.blixt-sub{font-size:14px;color:rgba(255,255,255,.4);margin-top:4px;}

/* BRANDRISK */
.br-scale{display:flex;gap:4px;margin:10px 0;}
.br-seg{flex:1;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:rgba(255,255,255,.8);}
.br-active{box-shadow:0 0 0 2px var(--ink),0 0 0 4px rgba(0,0,0,.2);}


/* FEATURE CARDS ───────────────────────────────────────────────────────────
   Сетка 4×N карточек на главной для разделов (pollen, UV, bad, fjäll, ...).
   Цвет акцента приходит из inline --feat-accent / --feat-bg. */
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:30px;}
.feat-card{background:var(--white);border:1px solid var(--rule);border-radius:12px;padding:20px 18px 16px;display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none;transition:.12s;position:relative;overflow:hidden;}
.feat-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--feat-accent,var(--blue));}
.feat-card:hover{border-color:var(--feat-accent,var(--blue));transform:translateY(-2px);box-shadow:0 6px 18px -8px rgba(0,0,0,.12);text-decoration:none;}
.feat-ico{width:42px;height:42px;border-radius:10px;background:var(--feat-bg,var(--blue-lt));display:flex;align-items:center;justify-content:center;font-size:23px;}
.feat-body h3{font-family:var(--serif);font-size:20px;font-weight:400;color:var(--ink);margin-bottom:4px;line-height:1.2;}
.feat-body p{font-size:15px;color:var(--muted);line-height:1.45;}
.feat-cta{margin-top:auto;padding-top:8px;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--feat-accent,var(--blue));}


/* BAD-GRID — auto-fit для badtemperaturer (overflow-fix на широких экранах) */
.bad-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:22px;}
.bad-grid .city-card{min-width:0;}
.bad-grid .cinf{min-width:0;flex:1;}
.bad-grid .cnm{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bad-grid .ccd{font-size:12px;}


/* SVG WEATHER ICONS — sizing для контекстов */
.wx-svg{display:inline-block;vertical-align:middle;width:32px;height:32px;}
.cur-ico .wx-svg{width:72px;height:72px;}
.hi .wx-svg{width:42px;height:42px;}
.fi .wx-svg{width:34px;height:34px;}
.cico .wx-svg{width:30px;height:30px;}
.fj-ico .wx-svg{width:38px;height:38px;}
.feat-ico .wx-svg{width:34px;height:34px;}


/* ─── INLINE TINY ICONS (.ti) для ctags/stat — line-style, inherit color ─── */
.ti{display:inline-block;vertical-align:-3px;width:14px;height:14px;margin-right:5px;color:var(--blue);flex-shrink:0;}
.ctag{display:inline-flex;align-items:center;gap:0;}
.ctag .ti{margin-right:5px;}

/* ─── FEATURE-CARD large icons (.fi) — currentColor наследует --feat-accent ─ */
.feat-ico .fi{width:24px;height:24px;color:var(--feat-accent,var(--blue));}

/* ─── CITY-CARD overflow-safety (для .six auto-fit) ─────────────────────── */
.city-card{min-width:0;}
.city-card .cinf{min-width:0;flex:1;}
.city-card .cnm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.city-card .ctmp{flex-shrink:0;font-size:27px;}

/* ─── TEMP CHART — YR-style vertical columns (3h intervals) ────────────── */
#tempChart{padding:0;margin:0;}
.tc-wrap{display:flex;overflow-x:auto;scrollbar-width:thin;padding:4px 0 6px;border-radius:8px;background:var(--white);position:relative;}
.tc-wrap::-webkit-scrollbar{height:8px;}
.tc-wrap::-webkit-scrollbar-thumb{background:var(--rule);border-radius:4px;}
.tc-col{flex:0 0 92px;text-align:center;padding:12px 4px 12px;border-right:1px solid var(--rule);display:flex;flex-direction:column;align-items:center;gap:8px;}
.tc-col:last-child{border-right:none;}
.tc-col.tc-now{background:var(--blue-lt);}
.tc-col.tc-day-start{border-left:3px solid var(--blue);}
.tc-day-lbl{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--blue);min-height:14px;line-height:1.2;}
.tc-day-lbl.tc-empty{visibility:hidden;}
.tc-hr{font-family:var(--mono);font-size:14px;font-weight:600;color:var(--muted);letter-spacing:.5px;}
.tc-col.tc-now .tc-hr{color:var(--blue);font-weight:700;}
.tc-tmp{font-family:var(--serif);font-size:35px;line-height:1;color:var(--ink);font-weight:400;}
.tc-ico{display:flex;align-items:center;justify-content:center;height:44px;}
.tc-ico .wx-svg{width:42px;height:42px;}
.tc-wind{display:flex;align-items:center;justify-content:center;gap:4px;font-family:var(--mono);font-size:12px;color:var(--muted);font-weight:500;}
.tc-wind .wa{width:13px;height:13px;color:var(--cold);flex-shrink:0;}
.tc-rain{font-family:var(--mono);font-size:13px;font-weight:700;color:var(--cold);min-height:14px;}
.tc-rain.tc-rain-zero{color:var(--faint);font-weight:500;}

/* MOBILE (compact chart cols) */
@media (max-width:850px){
  .tc-col{flex:0 0 76px;padding:10px 3px;gap:6px;}
  .tc-tmp{font-family:var(--sans);font-weight:700;font-size:23px;}
  .tc-ico{height:32px;}
  .tc-ico .wx-svg{width:30px;height:30px;}
  .tc-hr{font-size:12px;}
  .tc-wind{font-size:11px;}
  .tc-rain{font-size:12px;}
  .tc-day-lbl{font-size:10px;letter-spacing:.5px;}
  .ti{width:12px;height:12px;vertical-align:-2px;margin-right:4px;}
  .feat-ico .fi{width:20px;height:20px;}
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — tablet ≤ 850px
   ════════════════════════════════════════════════════════════════════════*/
@media (max-width:850px){
  /* ─── NAV — sticky compact + scrollable ───────────────────────────── */
  .nav{padding:0 12px;height:54px;overflow-x:auto;}
  .logo{font-size:21px;margin-right:18px;}
  .nl{padding:0 12px;height:54px;font-size:14px;letter-spacing:0;}
  .nav-end{gap:6px;}
  .loc{font-size:13px;}
  .loc-dot{width:5px;height:5px;}
  .srch{width:120px;padding:5px 10px;font:14px var(--sans);}
  .srch-btn{padding:5px 12px;font:700 13px var(--sans);}
  .lang-switch{margin-left:4px;}
  .lang-switch a{font-size:11px;padding:2px 5px;}

  /* ─── TICKER/WARN ─────────────────────────────────────────────────── */
  .ticker{padding:5px 0;}
  .ts{font-size:12px;padding-left:80px;}
  .tt{font-size:10px;padding:0 10px;letter-spacing:1px;}
  .warn{padding:8px 12px;font-size:14px;}
  .wb{font-size:11px;padding:2px 7px;}

  /* ─── HERO COMPACT ────────────────────────────────────────────────── */
  .cur-in{display:flex;flex-direction:column;padding:18px 14px 16px;gap:12px;}
  .cur-l{order:1;}
  .cur-r{order:2;}
  .cur-m{order:3;}
  .cur-loc{font-size:11px;letter-spacing:1.5px;margin-bottom:6px;}
  .cur-row{align-items:center;gap:10px;margin-bottom:2px;}
  .cur-ico{font-size:39px;margin-top:0;}
  .cur-ico .wx-svg{width:54px;height:54px;}
  .cur-num{font-family:var(--sans);font-size:65px;font-weight:700;letter-spacing:-2px;line-height:1;}
  .cur-deg{font-family:var(--sans);font-size:27px;font-weight:400;vertical-align:super;}
  .cur-cond{font-family:var(--sans);font-size:17px;font-style:normal;font-weight:500;margin-top:4px;color:var(--ink);}
  .cur-feel{font-size:14px;margin-top:2px;}
  .cur-tags{gap:5px;margin-top:8px;}
  .ctag{padding:4px 9px;font-size:12px;}

  .cur-m{margin:0;padding:12px 0;border:none;border-top:1px solid var(--rule);}
  .mm-row{gap:6px;margin-bottom:10px;}
  .mm{padding:6px 3px;}
  .mm-l{font-size:10px;letter-spacing:1px;}
  .mm-v{font-family:var(--sans);font-weight:700;font-size:21px;}
  .sun-g{grid-template-columns:1fr 1fr 1fr 1fr;gap:2px 10px;}
  .sg-l{font-size:11px;}
  .sg-v{font-size:15px;}

  .cur-r{padding-top:10px;border-top:1px solid var(--rule);display:grid;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:0;}
  .stat{padding:6px 0;gap:6px;border-bottom:1px solid var(--rule);flex-direction:column;align-items:flex-start;}
  .stat:first-child,.stat:nth-child(2){border-top:none;}
  .sl{font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--faint);}
  .sv{font-size:16px;font-weight:700;font-family:var(--sans);}

  /* ─── HOURLY ─────────────────────────────────────────────────────── */
  .h-in{padding:0 12px;}
  .hc{flex:0 0 62px;padding:9px 4px;}
  .ht{font-size:11px;}
  .hi{font-size:19px;margin-bottom:4px;}
  .hi .wx-svg{width:30px;height:30px;}
  .hv{font-size:14px;font-weight:600;}
  .hr{font-size:11px;}
  .hw{font-size:10px;}

  /* ─── PAGE / GRIDS ───────────────────────────────────────────────── */
  .page{padding:18px 12px;}
  .two,.three{grid-template-columns:1fr;gap:14px;}
  .four{grid-template-columns:1fr 1fr;gap:10px;}
  .feat-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .six{grid-template-columns:1fr 1fr;}
  .risk-grid{grid-template-columns:1fr 1fr;}
  .bad-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .slbl{font-size:11px;letter-spacing:1.5px;margin-bottom:12px;}

  .ch{padding:11px 14px 9px;}
  .ch h2{font-family:var(--sans);font-size:17px;font-weight:700;}
  .cb{padding:14px 14px;}

  /* ─── DAY-ROWS COMPACT ───────────────────────────────────────────── */
  .frow{padding:11px 0;gap:10px;flex-wrap:wrap;}
  .fd{width:auto;font-size:14px;font-weight:700;flex:1 0 100%;white-space:normal;margin-bottom:-4px;}
  .fi{font-size:19px;width:26px;}
  .fi .wx-svg{width:28px;height:28px;}
  .fc{font-size:14px;}
  .fhi{font-family:var(--sans);font-size:19px;font-weight:700;}
  .flo{font-family:var(--sans);font-size:15px;font-weight:500;}
  .frain{font-size:12px;min-width:36px;}
  .frow:hover{margin:0;padding:11px 0;}

  /* ─── FEATURE CARDS ──────────────────────────────────────────────── */
  .feat-card{padding:13px 11px 11px;gap:6px;}
  .feat-ico{width:34px;height:34px;font-size:17px;}
  .feat-ico .wx-svg{width:26px;height:26px;}
  .feat-body h3{font-family:var(--sans);font-size:15px;font-weight:700;}
  .feat-body p{font-size:12px;}
  .feat-cta{font-size:11px;padding-top:4px;}

  /* ─── MAP ────────────────────────────────────────────────────────── */
  .map-card #homeMap{height:380px;}

  /* ─── CITY/REG/FJ CARDS ─────────────────────────────────────────── */
  .dtile{padding:14px 12px;}
  .dtl{font-size:11px;letter-spacing:1.5px;}
  .dtv{font-family:var(--sans);font-size:25px;}
  .reg-card{padding:14px 14px;}
  .reg-tmp{font-family:var(--sans);font-size:39px;font-weight:700;}
  .reg-cond{font-size:15px;font-style:normal;}
  .city-card{padding:11px 12px;gap:8px;}
  .cico{font-size:19px;}
  .cico .wx-svg{width:24px;height:24px;}
  .cnm{font-size:14px;}
  .ccd{font-size:12px;}
  .ctmp{font-family:var(--sans);font-size:21px;font-weight:700;}
  .fj-card{padding:13px 14px;}
  .fj-nm{font-size:15px;}
  .fj-tmp{font-family:var(--sans);font-size:29px;font-weight:700;}
  .fj-ico .wx-svg{width:30px;height:30px;}
  .p4-row{padding:11px 12px;}
  .p4-name{font-family:var(--sans);font-size:15px;font-weight:600;}

  /* ─── TEMP CHART ──────────────────────────────────────────────────── */
  #tempChart{min-height:220px;}

  /* ─── SMHI/FOOTER ─────────────────────────────────────────────────── */
  .smhi-strip{padding:14px;flex-wrap:wrap;}
  .smhi-strip .strip-div{display:none;}
  .strip-upd{margin-left:auto;}
  .footer{padding:18px 14px;}
  .ft-copy{order:3;}

  /* ─── HIDE TOLLERABLE: показываем ВСЕ, лишь Sweden map убираем ──── */
  /* (раньше .editorial и .chart-box были display:none — теперь видны) */
  .page > h1{font-size:33px !important;line-height:1.1;margin-bottom:6px;}
  .page > p{font-size:15px;margin-bottom:16px;}
}

@media (max-width:480px){
  .nav{padding:0 10px;}
  .logo{font-size:19px;margin-right:12px;}
  .nl{padding:0 10px;font-size:13px;}
  .loc{display:none;}                          /* dölj Stockholm-knappen på mobil — headern blev annars för bred och sidan scrollade i sidled */
  .nav-end{min-width:0;}
  .srch-form{min-width:0;}
  .srch{width:90px;min-width:0;flex-shrink:1;}
  .srch-btn{padding:5px 10px;font-size:12px;flex-shrink:0;}

  body{font-size:17px;}
  .cur-num{font-size:55px;letter-spacing:-1px;}
  .cur-deg{font-size:23px;}
  .cur-ico .wx-svg{width:44px;height:44px;}
  .cur-cond{font-size:15px;}

  .four,.feat-grid,.six,.bad-grid,.risk-grid{grid-template-columns:1fr;}
  .mm-row{gap:6px;}
  .mm-v{font-size:19px;}

  .h-in{padding:0 10px;}
  .hc{flex:0 0 56px;padding:8px 3px;}

  .page{padding:14px 10px;}
  .page > h1{font-size:27px !important;}
  .ch h2{font-size:16px;}
  .cb{padding:12px 12px;}

  .fd{font-size:13px;}
  .fhi{font-size:17px;}
  .flo{font-size:14px;}
  .fc{font-size:13px;}

  .feat-body h3{font-size:14px;}
  .feat-body p{font-size:11px;}

  .editorial{padding:18px 14px;}
  .ed-title{font-size:19px;}

  #tempChart{min-height:180px;}
}

/* ─── ROUND-2 UI: chart full-bleed (mobil), kompakt center-block, burger ─── */
.chart-wrap{max-width:var(--W);margin:24px auto;padding:0 52px;}
.nav-burger{display:none;}
.ctag-m{display:none;}  /* tagg som bara visas på mobil (t.ex. lufttryck) */

@media (max-width:850px){
  /* Graf-blocket i full skärmbredd på mobil (city + start) */
  .chart-wrap{padding:0;margin:16px 0;}
  .chart-wrap > .card{border-radius:0;border-left:0;border-right:0;padding:16px 8px;}

  /* Center-block (.cur-r) döljs helt på mobil; lufttryck visas som tagg ovan,
     resten (vind/fukt/sikt) finns redan i hero-taggarna. */
  .cur-r{display:none;}
  .ctag-m{display:inline-flex;}

  /* Burger-meny: kollapsa nav-länkar bakom en knapp */
  .nav{overflow:visible;position:relative;}
  .nav-burger{display:flex;flex-direction:column;justify-content:center;gap:4px;width:40px;height:40px;padding:0;margin-right:4px;background:transparent;border:0;cursor:pointer;flex-shrink:0;}
  .nav-burger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s;}
  .nav.menu-open .nav-burger span:nth-child(1){transform:translateY(6px) rotate(45deg);}
  .nav.menu-open .nav-burger span:nth-child(2){opacity:0;}
  .nav.menu-open .nav-burger span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
  .nav-links{display:none;}
  .nav.menu-open .nav-links{display:flex;flex-direction:column;position:absolute;top:54px;left:0;right:0;background:var(--blue-dk);padding:6px 0 10px;box-shadow:0 10px 24px rgba(0,0,0,.35);z-index:120;max-height:78vh;overflow-y:auto;}
  .nav.menu-open .nl{height:auto;padding:13px 18px;font-size:16px;letter-spacing:0;border-bottom:1px solid rgba(255,255,255,.08);}
  .nav.menu-open .nl.on{background:rgba(255,255,255,.06);}
}

/* Print friendly */
@media print{
  .nav, .ticker, .warn, .footer, .smhi-strip{display:none;}
  .page{padding:0;}
  bod