/* RiskNet seminarieskärm (2026-11-19). Utformad för 16:9 (1920 × 1080), skalar med fönstret. Hög kontrast för projektor. */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF; }
:root { --bg: #071521; --panel: rgba(16, 34, 48, .82); --linje: #23405a; --ink: #f2f6f9; --muted: #9fb3c4; --guld: #e2c97e; --cyan: #5fd3ff;
  --s5: #ff4d3d; --s4: #ffa024; --s3: #ecdb4c; --s2: #3ddc84; --s1: #9aa8b5; font-size: calc(100vw / 120); }
@media (min-aspect-ratio: 16/9) { :root { font-size: calc(100vh / 67.5); } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
body.dold-mus, body.dold-mus * { cursor: none !important; }
.ram { position: relative; width: 100vw; height: 100vh; display: grid; grid-template-columns: 27rem 1fr 25rem; grid-template-rows: 5rem 1fr 3.2rem;
  grid-template-areas: "topp topp topp" "flode glob hoger" "ticker ticker ticker";
  background: radial-gradient(ellipse at 50% 55%, #10304a 0%, #08192a 45%, #050f19 100%); }
.topp { grid-area: topp; display: flex; align-items: center; gap: 1.6rem; padding: 0 1.6rem; border-bottom: 1px solid var(--linje); background: linear-gradient(180deg, rgba(10, 28, 42, .95), rgba(7, 21, 33, .6)); }
.logo { height: 2.4rem; width: auto; }
.titel { display: flex; flex-direction: column; border-left: 1px solid var(--linje); padding-left: 1.6rem; }
.titel strong { font-size: 1.7rem; letter-spacing: .01em; }
.titel span { font-size: .95rem; color: var(--muted); }
.live { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.live .prick { width: .8rem; height: .8rem; border-radius: 50%; background: var(--s2); box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: puls 1.8s infinite; }
.live .prick.gammal { background: #ffa024; animation: none; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); } 70% { box-shadow: 0 0 0 .9rem rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.klocka { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.klocka #tid { font-size: 1.9rem; font-weight: 700; }
.klocka #datum { font-size: .9rem; color: var(--muted); }
h2 { margin: 0 0 .7rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--guld); }

/* Händelseflödet */
.flode { grid-area: flode; padding: 1.2rem 1rem 0 1.4rem; overflow: hidden; display: flex; flex-direction: column; }
.lista { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.kort { position: relative; margin-bottom: .7rem; padding: .75rem .9rem .75rem 1.1rem; border-radius: .7rem; background: var(--panel); border: 1px solid var(--linje); overflow: hidden;
  animation: in .7s cubic-bezier(.2, .9, .3, 1.2) both; transition: background 2s, border-color 2s, box-shadow 2s; }
.kort::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .35rem; background: var(--f); }
.kort.ny { background: color-mix(in srgb, var(--f) 22%, rgba(16, 34, 48, .95)); border-color: var(--f); box-shadow: 0 0 1.6rem color-mix(in srgb, var(--f) 55%, transparent); }
.kort.ny::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); animation: svep 1.4s ease-out 1; }
@keyframes in { from { opacity: 0; transform: translateY(-1.5rem) scale(.96); max-height: 0; } to { opacity: 1; transform: none; max-height: 12rem; } }
@keyframes svep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.kort .rad1 { display: flex; align-items: center; gap: .55rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { font-weight: 800; font-size: .72rem; padding: .12rem .45rem; border-radius: .35rem; background: var(--f); color: #08131d; letter-spacing: .03em; }
.badge { font-size: .66rem; font-weight: 800; padding: .1rem .4rem; border-radius: .3rem; border: 1px solid var(--guld); color: var(--guld); letter-spacing: .06em; }
.badge.nytt { background: var(--guld); color: #08131d; }
.kort .rub { margin-top: .35rem; font-size: 1.02rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kort .plats { margin-top: .3rem; font-size: .8rem; color: var(--cyan); }

/* Jordgloben */
.glob { grid-area: glob; position: relative; overflow: hidden; }
#glob { position: absolute; inset: 0; width: 100%; height: 100%; }
.etikett { position: absolute; transform: translate(-50%, calc(-100% - 1.4rem)); max-width: 24rem; padding: .55rem .8rem; border-radius: .55rem; background: rgba(7, 21, 33, .92);
  border: 1px solid var(--f); box-shadow: 0 0 1.4rem color-mix(in srgb, var(--f) 50%, transparent); font-size: .95rem; font-weight: 600; line-height: 1.3; pointer-events: none; animation: etin .5s ease-out both; }
.etikett small { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; margin-bottom: .15rem; }
@keyframes etin { from { opacity: 0; transform: translate(-50%, calc(-100% - .4rem)); } }
.fokus { position: absolute; left: 50%; bottom: 3.2rem; transform: translateX(-50%); width: min(46rem, 90%); padding: 1.2rem 1.5rem; border-radius: 1rem; background: rgba(7, 21, 33, .94);
  border: 2px solid var(--f); box-shadow: 0 0 3rem color-mix(in srgb, var(--f) 45%, transparent); animation: fokin .8s cubic-bezier(.2, .9, .3, 1.1) both; }
.fokus.ut { animation: fokut .6s ease-in both; }
@keyframes fokin { from { opacity: 0; transform: translate(-50%, 2rem) scale(.95); } }
@keyframes fokut { to { opacity: 0; transform: translate(-50%, 1rem); } }
.fokus .rad1 { display: flex; gap: .7rem; align-items: center; font-size: .9rem; color: var(--muted); }
.fokus .chip { font-size: .9rem; padding: .2rem .6rem; }
.fokus h3 { margin: .5rem 0 .4rem; font-size: 1.65rem; line-height: 1.25; }
.fokus p { margin: 0; font-size: 1rem; color: #d3dee7; line-height: 1.45; }
.teckenforklaring { position: absolute; left: 1.2rem; bottom: .9rem; display: flex; gap: 1.1rem; font-size: .78rem; color: var(--muted); }
.teckenforklaring span { display: inline-flex; align-items: center; gap: .4rem; }
.teckenforklaring i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.teckenforklaring i.s5 { background: var(--s5); } .teckenforklaring i.s4 { background: var(--s4); } .teckenforklaring i.s3 { background: var(--s3); } .teckenforklaring i.s2 { background: var(--s2); }
.teckenforklaring i.linje { width: 1.4rem; height: .2rem; border-radius: .1rem; background: var(--guld); }

/* Höger */
.hoger { grid-area: hoger; padding: 1.2rem 1.4rem 0 1rem; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; }
.tal { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.talruta { padding: .8rem .9rem; border-radius: .7rem; background: var(--panel); border: 1px solid var(--linje); }
.talruta .v { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.talruta .et { display: block; margin-top: .25rem; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.talruta.bred { grid-column: span 2; }
.talruta.blink .v { animation: blink 1s ease-out; }
@keyframes blink { 0% { color: var(--guld); text-shadow: 0 0 1.2rem var(--guld); } 100% { color: var(--ink); text-shadow: none; } }
.panel { padding: .9rem 1rem; border-radius: .7rem; background: var(--panel); border: 1px solid var(--linje); }
.index .rad { display: grid; grid-template-columns: 9.5rem 1fr 2.6rem; gap: .6rem; align-items: center; margin: .45rem 0; font-size: .85rem; }
.index .mat { height: .55rem; border-radius: .3rem; background: #1a3349; overflow: hidden; }
.index .mat span { display: block; height: 100%; border-radius: .3rem; width: 0; transition: width 1.6s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 0 .8rem currentColor; }
.index .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.roterande { flex: 1; min-height: 0; overflow: hidden; }
#rot { animation: tona .8s ease-out both; }
@keyframes tona { from { opacity: 0; transform: translateY(.6rem); } }
.staplar { display: flex; align-items: flex-end; gap: 2px; height: 9rem; }
.staplar span { flex: 1; background: #2a4a66; border-radius: 2px 2px 0 0; transition: background .4s, box-shadow .4s; min-height: 2px; }
.staplar span.nu { background: var(--guld); box-shadow: 0 0 .8rem var(--guld); }
.staplar span.spelad { background: #4f7ea3; }
.axel { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.hlista .rad { display: grid; grid-template-columns: 8rem 1fr 2.2rem; gap: .6rem; align-items: center; margin: .4rem 0; font-size: .85rem; }
.hlista .mat { height: .55rem; border-radius: .3rem; background: #1a3349; overflow: hidden; }
.hlista .mat span { display: block; height: 100%; width: 0; border-radius: .3rem; background: var(--s4); transition: width 1.4s cubic-bezier(.2, .9, .3, 1); }
.hlista .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.liten { font-size: .75rem; color: var(--muted); }

/* Löptext */
.ticker { grid-area: ticker; display: flex; align-items: center; border-top: 1px solid var(--linje); background: rgba(5, 15, 25, .92); overflow: hidden; }
.tickeretikett { flex: none; height: 100%; display: flex; align-items: center; padding: 0 1.2rem; background: var(--guld); color: #08131d; font-weight: 800; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.tickerspar { flex: 1; overflow: hidden; white-space: nowrap; }
.tickerinre { display: inline-block; padding-left: 100%; animation: rulla linear infinite; animation-duration: var(--d, 120s); font-size: 1.05rem; }
.tickerinre span { margin-right: 3.5rem; }
.tickerinre b { color: var(--guld); margin-right: .5rem; font-weight: 700; }
@keyframes rulla { to { transform: translateX(-100%); } }

/* 2026-11-20: Hotindex ovanför nyckeltalen, klickbara händelser */
.hotix .hirad { display: flex; align-items: baseline; gap: .6rem; }
.hotix .hiv { font-size: 2.8rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hotix .hipill { margin-left: auto; padding: .2rem .6rem; border-radius: .4rem; color: #08131d; font-weight: 800; font-size: .8rem; }
.hiskala { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: .6rem; margin: .7rem 0 .5rem; }
.hiskala span { border-radius: 2px; }
.hiskala i { position: absolute; top: -.3rem; width: .25rem; height: 1.2rem; margin-left: -.12rem; background: #fff; border-radius: 2px; box-shadow: 0 0 .6rem #fff; }
.kort, .etikett, .fokus { cursor: pointer; }
.etikett { pointer-events: auto; }
.kort:hover { border-color: var(--guld); }

/* ---------- Mobil (2026-11-20, Camilla): samma adress, egen layout i stående och liggande läge ---------- */
/* Stående mobil och smal surfplatta: rubrik, Hotindex, jordglob, senaste händelsen, nyckeltal, löptext */
@media (max-width: 900px) and (orientation: portrait) {
  :root { font-size: calc(100vw / 30); }
  html, body { height: 100dvh; }
  .ram { height: 100dvh; grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto auto 2.6rem;
    grid-template-areas: "topp" "hotix" "glob" "flode" "tal" "ticker"; }
  .hoger { display: contents; }
  .hoger > .panel:not(.hotix) { display: none; }
  .topp { padding: .6rem 1rem; gap: .8rem; }
  .logo { height: 1.6rem; }
  .titel { padding-left: .8rem; } .titel strong { font-size: 1.2rem; }
  .live { font-size: .65rem; gap: .35rem; } .live .prick { width: .55rem; height: .55rem; }
  #livetext { display: none; }
  .klocka #tid { font-size: 1.15rem; } .klocka #datum { display: none; }
  .hotix { grid-area: hotix; margin: .6rem 1rem 0; padding: .6rem .8rem; }
  .hotix h2 { display: none; }
  .hotix .hiv { font-size: 1.9rem; }
  .hotix .hiskala { margin: .45rem 0 .3rem; }
  .flode { grid-area: flode; padding: 0 1rem; }
  .flode h2 { display: none; }
  .lista { -webkit-mask-image: none; mask-image: none; flex: none; }
  .lista .kort:not(:first-child) { display: none; }
  .kort { margin-bottom: .5rem; }
  .kort .rub { font-size: 1rem; }
  .tal { grid-area: tal; padding: 0 1rem .6rem; gap: .5rem; }
  .tal .talruta:nth-child(n+5) { display: none; }
  .talruta { padding: .5rem .7rem; } .talruta .v { font-size: 1.5rem; } .talruta .et { font-size: .68rem; }
  .teckenforklaring { display: none; }
  .etikett { display: none !important; }
  .fokus { bottom: .6rem; width: 94%; padding: .7rem .9rem; }
  .fokus h3 { font-size: 1.05rem; } .fokus p { font-size: .8rem; } .fokus .rad1 { font-size: .7rem; flex-wrap: wrap; gap: .4rem; }
  .tickeretikett { padding: 0 .7rem; font-size: .7rem; } .tickerinre { font-size: .85rem; }
}
/* Liggande mobil: jordglob till vänster, Hotindex, senaste händelsen och nyckeltal till höger */
@media (max-height: 560px) and (orientation: landscape) {
  :root { font-size: calc(100vh / 30); }
  html, body { height: 100dvh; }
  .ram { height: 100dvh; grid-template-columns: minmax(0, 1fr) 46%; grid-template-rows: auto auto auto minmax(0, 1fr) 2.4rem;
    grid-template-areas: "topp topp" "glob hotix" "glob flode" "glob tal" "ticker ticker"; }
  .hoger { display: contents; }
  .hoger > .panel:not(.hotix) { display: none; }
  .topp { padding: .4rem 1rem; gap: .8rem; }
  .logo { height: 1.5rem; } .titel { padding-left: .8rem; } .titel strong { font-size: 1.15rem; }
  #livetext { display: none; } .klocka #tid { font-size: 1.1rem; } .klocka #datum { display: none; }
  .hotix { grid-area: hotix; margin: .5rem .8rem 0 0; padding: .45rem .7rem; }
  .hotix h2 { display: none; } .hotix .hiv { font-size: 1.6rem; } .hotix .hiskala { margin: .35rem 0 .25rem; }
  .flode { grid-area: flode; padding: .5rem .8rem 0 0; overflow: visible; }
  .lista { overflow: visible; }
  .flode h2 { display: none; }
  .lista { -webkit-mask-image: none; mask-image: none; flex: none; }
  .lista .kort:not(:first-child) { display: none; }
  .kort { margin-bottom: 0; padding: .5rem .7rem .5rem .9rem; } .kort .rub { font-size: .95rem; }
  .tal { grid-area: tal; padding: .5rem .8rem .5rem 0; gap: .4rem; grid-template-columns: repeat(4, 1fr); align-content: start; }
  .tal .talruta:nth-child(n+5) { display: none; }
  .talruta { padding: .4rem .5rem; } .talruta .v { font-size: 1.3rem; } .talruta .et { font-size: .6rem; }
  .teckenforklaring { display: none; }
  .etikett { display: none !important; }
  .fokus { bottom: .4rem; width: 92%; padding: .5rem .8rem; } .fokus h3 { font-size: .95rem; margin: .3rem 0; } .fokus p { display: none; }
  .tickeretikett { padding: 0 .7rem; font-size: .7rem; } .tickerinre { font-size: .85rem; }
}

/* Phones: fixed card height so the globe never resizes between events */
@media (max-width: 900px) and (orientation: portrait), (max-height: 560px) and (orientation: landscape) {
  .fokus { display: none !important; }
  .lista { height: 5.4rem; overflow: hidden; }
  .lista .kort { height: 5.4rem; box-sizing: border-box; animation: tona .5s ease-out both; }
  .kort .rub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .flode { overflow: hidden; }
}

/* 2026-11-22: Hotindex som på Start, mindre nyckeltal som räknas upp, påverkade sektorer per S-nivå */
.hirub { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.hirub h2 { margin: 0; }
.hotix .hiv { color: var(--ink); }
.hiskala span { opacity: .45; transition: opacity .4s; }
.hiskala span.aktiv { opacity: 1; box-shadow: 0 0 0 2px #0b1d2b, 0 0 0 3.5px currentColor; }
.hitick { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); margin: -.15rem 0 .35rem; font-variant-numeric: tabular-nums; }
.hidelta { font-size: .8rem; font-weight: 700; margin-bottom: .55rem; }
.hisev { display: flex; height: .55rem; border-radius: .3rem; overflow: hidden; gap: 1px; }
.hileg { display: flex; justify-content: space-between; gap: .3rem; margin-top: .35rem; font-size: .68rem; color: var(--muted); }
.hileg i { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .25rem; vertical-align: middle; }
.hileg b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tal { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }
.tal .talruta { grid-column: span 2; min-width: 0; }
.tal .talruta:nth-child(-n+2) { grid-column: span 3; }
.talruta { padding: .45rem .5rem; border-radius: .55rem; }
.talruta .v { font-size: 1.3rem; }
.talruta .et { font-size: .64rem; margin-top: .1rem; }
.sektorer .rad { display: grid; grid-template-columns: 8.6rem 1fr 2rem; gap: .5rem; align-items: center; margin: .38rem 0; font-size: .78rem; }
.sektorer .namn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sektorer .mat { display: flex; height: .6rem; gap: 1px; border-radius: .3rem; overflow: hidden; background: #1a3349; }
.sektorer .mat span { display: block; height: 100%; transition: width 1.2s cubic-bezier(.2, .9, .3, 1); }
.sektorer .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.sektorer .rad.blink .n { animation: blink 1s ease-out; }
@media (max-width: 900px) and (orientation: portrait), (max-height: 560px) and (orientation: landscape) {
  .tal { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: .3rem !important; }
  .tal .talruta, .tal .talruta:nth-child(-n+2) { grid-column: auto; }
  .tal .talruta:nth-child(n+5) { display: block !important; }
  .talruta { padding: .35rem .35rem !important; } .talruta .v { font-size: .95rem !important; } .talruta .et { font-size: .55rem !important; }
  .hotix .hirub, .hotix .hitick, .hotix .hileg { display: none; }
  .hidelta { margin-bottom: .3rem; font-size: .7rem; }
}
.roterande { display: flex; flex-direction: column; }
#rot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#rot .staplar { flex: 1; height: auto; min-height: 3rem; }
/* Lägre upplösning på dator och projektor (Camilla 2026-11-22): större text, layouten oförändrad */
@media (min-width: 901px) and (max-width: 1700px) and (min-height: 561px) {
  h2 { font-size: .98rem; }
  .kort .rad1 { font-size: .9rem; } .kort .rub { font-size: 1.15rem; } .kort .plats { font-size: .92rem; }
  .liten { font-size: .88rem; }
  .teckenforklaring { font-size: .9rem; }
  .etikett { font-size: 1.08rem; }
  .talruta .v { font-size: 1.5rem; } .talruta .et { font-size: .76rem; }
  .hileg { font-size: .8rem; } .hitick { font-size: .76rem; } .hidelta { font-size: .9rem; } .hotix .hipill { font-size: .9rem; }
  .sektorer .rad { font-size: .9rem; grid-template-columns: 9.5rem 1fr 2.2rem; }
  .index .rad { font-size: .95rem; } .hlista .rad { font-size: .95rem; } .axel { font-size: .82rem; }
  .tickerinre { font-size: 1.2rem; } .tickeretikett { font-size: 1rem; }
  .fokus .rad1 { font-size: 1rem; } .fokus p { font-size: 1.12rem; }
}

/* Kopplingar från händelsekorten till kartan (2026-11-22) */
.kopplingar { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 4; overflow: visible; }
.kopplingar .kurva { fill: none; stroke-width: 1.6; stroke-dasharray: 5 6; animation: koppflod 1.6s linear infinite; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6)); }
.kopplingar .kurva.forsta { stroke-width: 2.2; }
@keyframes koppflod { to { stroke-dashoffset: -22; } }

/* Företagsuppgifter i sidhuvudet (Camilla 2026-11-24) */
.foretag { display: flex; flex-direction: column; gap: .15rem; border-left: 1px solid var(--linje); padding-left: 1.6rem; font-size: .9rem; color: var(--muted); }
.foretag a { color: inherit; text-decoration: none; }
.foretag > a { color: var(--ink, #e8f0f5); font-weight: 600; font-size: 1rem; }
.foretag a:hover { text-decoration: underline; }
@media (max-width: 900px), (max-height: 500px) { .foretag { padding-left: .8rem; font-size: .7rem; } .foretag > a { font-size: .75rem; } .foretag span { display: none; } }
.logolank { display: flex; align-items: center; line-height: 0; }

/* 2026-11-25: läsbar text även i mindre fönster (inte helskärm) – grundstorleken går inte under 12 px på dator */
@media (min-width: 901px) and (min-height: 561px) {
  :root { font-size: max(calc(100vw / 120), 12px); }
}
@media (min-width: 901px) and (min-height: 561px) and (min-aspect-ratio: 16/9) {
  :root { font-size: max(calc(100vh / 67.5), 12px); }
}
@media (min-width: 901px) and (max-width: 1500px) and (min-height: 561px) {
  .ram { grid-template-columns: minmax(20rem, 26%) minmax(0, 1fr) minmax(19rem, 24%); }
}
/* Mobil: inget får bli bredare än skärmen */
@media (max-width: 900px) and (orientation: portrait), (max-height: 560px) and (orientation: landscape) {
  html, body, .ram { max-width: 100vw; overflow-x: hidden; }
  .ram { grid-template-columns: minmax(0, 1fr); }
  .topp { min-width: 0; overflow: hidden; }
  .titel { min-width: 0; } .titel strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .foretag { display: none; }
  .hotix, .flode, .tal, .glob, .kort, .lista { min-width: 0; max-width: 100%; box-sizing: border-box; }
}
@media (max-height: 560px) and (orientation: landscape) { .ram { grid-template-columns: minmax(0, 1fr) 46%; } }
@media (max-width: 900px) and (orientation: portrait) { .topp { gap: .6rem; } .titel { padding-left: .6rem; } .titel strong { font-size: .95rem; } }
