/* Biotherm Heat · produktsidan Ackumulatortankar (produkter/ackumulatortankar.html), ovanpå bas.css och sajt.css.
   Signatur: varmt över kallt, vertikalt – volymskalan i hjälten, storlekarna i skala med tumregeln, ritningen.
   Bärnsten = det varma vattnet överst och tilloppet från pannan; blått = det kalla nederst. Prefix at-. */

.at-tex { background: #1f74b8 url(../bild/produktsidor/ackumulatortankar-tex.webp) 50% 50% / cover no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.at-skala-topp .at-tex { background-position: 50% 0; }
.at-skala-botten .at-tex { background-position: 50% 100%; }

/* ---------- hjälte ---------- */
.at-hjalte { position: relative; overflow: hidden; padding: 116px 0 clamp(48px, 5vw, 88px); }
.at-hjalte::before { content: ""; position: absolute; right: 0; top: 0; width: 46%; height: 100%; pointer-events: none;
  background: radial-gradient(40% 46% at 70% 50%, rgba(31, 116, 184, .16), rgba(4, 10, 24, 0) 70%), radial-gradient(30% 20% at 72% 20%, rgba(242, 154, 60, .07), rgba(4, 10, 24, 0) 70%); }
.at-hjalte-in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 1.9fr) minmax(0, 3.1fr); column-gap: var(--spalt); grid-template-areas: "smulor smulor smulor" "text skala bild"; }
.at-hjalte .smulor { grid-area: smulor; margin-bottom: clamp(28px, 3vw, 48px); }
.at-hjalte-text { grid-area: text; align-self: center; }
.at-hjalte-text .t-etikett { margin-bottom: clamp(18px, 1.6vw, 26px); }
.at-h1 { font-size: clamp(2.75rem, .9rem + 4.4vw, 7rem); line-height: .98; font-weight: 240; font-variation-settings: "opsz" 96; letter-spacing: -.04em; -webkit-hyphens: manual; hyphens: manual; }
.at-ingress { margin-top: clamp(22px, 2vw, 32px); max-width: 30ch; }
.at-knappar { margin-top: clamp(28px, 2.6vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.at-hjalte-data { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); max-width: 720px; }
.at-hjalte-data div { border-top: 1px solid var(--linje); padding-top: 14px; }
.at-hjalte-data dt { margin-bottom: 8px; }
.at-hjalte-data dd { margin: 0; color: var(--is); font-size: 1rem; line-height: 1.45; }

/* volymskalan: 300 nederst (kallt), 20 000 överst (varmt) */
.at-skala { grid-area: skala; display: flex; flex-direction: column; align-items: flex-end; padding: 6px 0 10px; }
.at-skala-topp, .at-skala-botten { display: flex; align-items: baseline; gap: 8px; font-size: clamp(1.75rem, 1rem + 1.5vw, 2.75rem); line-height: 1; font-weight: 260; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-skala-topp small, .at-skala-botten small { font-size: .8125rem; font-weight: 600; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--is-3); }
.at-skala-linje { position: relative; flex: 1; width: 2px; margin: 18px 0; background: rgba(170, 196, 228, .12); }
.at-skala-fyll { position: absolute; inset: 0; background: linear-gradient(0deg, #1d3a78, #1f74b8 22%, #9fb4c4 48%, #f29a3c 76%, #ffd7a0); transform-origin: 50% 100%; }
.js .at-skala-fyll.rita { transform: scaleY(0); }
.js .at-skala-fyll.rita.syns { transform: none; }
.at-skala-linje i { position: absolute; right: 0; bottom: calc(var(--v) * 1%); width: 12px; height: 1px; background: rgba(214, 226, 243, .6); }
.at-skala-linje i.std { width: 26px; background: var(--is); }
.at-skala-linje i { font-style: normal; }
.at-skala-linje i.std b { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font-size: .8125rem; font-weight: 500; color: var(--is); white-space: nowrap; }
.at-skala-linje i.komp { width: 18px; }
.at-hjalte-bild { grid-area: bild; margin: 0; display: flex; align-items: flex-end; justify-content: center; }
.at-hjalte-bild img { height: min(calc(var(--vh) * 100 - 190px), 820px); min-height: 480px; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; }

/* ---------- 01 pannan går jämnt ---------- */
.at-jamn-rutnat { align-items: center; row-gap: 48px; }
.at-jamn-text { grid-column: 1 / span 6; }
.at-jamn-text .t-etikett { margin-bottom: 30px; }
.at-jamn-text .t-ingress { margin-top: 30px; max-width: 32ch; }
.at-jamn-brod { margin-top: 22px; max-width: 46ch; }
.t-varm-rad { background: linear-gradient(90deg, #c9d3dc, #f2a24a 50%, #ffd7a0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.at-svarta { grid-column: 8 / -1; margin: 0 calc(-1 * var(--marg)) 0 0; }
.at-svarta img { width: 100%; max-width: 620px; margin-left: auto; }

/* ---------- 02 skikten ---------- */
.at-snitt { position: relative; margin: 0 auto; width: min(100%, 1040px); }
.at-snitt img { width: 40%; }
.at-utrop { position: absolute; inset: 0; }
.at-utrop li { position: absolute; left: 0; right: 0; top: var(--y); height: 0; }
.at-utrop-l { position: absolute; top: 0; left: calc(var(--x) * .4); width: calc(53% - var(--x) * .4); height: 1px; background: rgba(214, 226, 243, .55); }
.at-utrop-l::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #080f22; box-shadow: inset 0 0 0 1.5px var(--is); }
.at-utrop li.varm .at-utrop-l { background: linear-gradient(90deg, #f29a3c, rgba(242, 154, 60, .5)); }
.at-utrop li.kall .at-utrop-l { background: linear-gradient(90deg, #1f74b8, rgba(111, 156, 200, .55)); }
.at-utrop-nr { position: absolute; left: 53%; top: 0; transform: translate(0, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #080f22; box-shadow: inset 0 0 0 1px var(--is); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.at-utrop li.varm .at-utrop-nr { box-shadow: inset 0 0 0 1px var(--varm); color: var(--glod); }
.at-utrop li.kall .at-utrop-nr { box-shadow: inset 0 0 0 1px #4f86c0; }
.at-utrop li > div { position: absolute; left: calc(53% + 46px); top: 0; transform: translateY(-15px); max-width: 300px; }
.at-utrop h3 { font-size: 1.1875rem; font-weight: 420; line-height: 1.25; }
.at-utrop p { margin-top: 4px; color: var(--is-2); font-size: 1rem; line-height: 1.45; }
.at-skikt-tre { margin-top: clamp(48px, 4.6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); }
.at-skikt-tre > div { border-top: 1px solid var(--linje-2); padding-top: 16px; }
.at-skikt-tre > div.varm { border-top-color: rgba(242, 154, 60, .55); }
.at-skikt-tre > div.kall { border-top-color: rgba(31, 116, 184, .8); }
.at-skikt-tre dd { margin: 10px 0 0; color: var(--is); font-size: 1.125rem; line-height: 1.45; }

/* ---------- 03 storlekarna: räknaren, bandet, tabellen ---------- */
.at-raknare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 96px); padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--linje-2); border-bottom: 1px solid var(--linje); }
.at-r-in label { display: block; }
.at-r-kw { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-size: clamp(3.5rem, 2rem + 3.6vw, 6.5rem); line-height: .9; font-weight: 220; letter-spacing: -.045em; }
.at-r-kw small { font-size: 1.5rem; letter-spacing: 0; color: var(--is-3); font-weight: 340; }
.at-r-reglage { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin-top: 18px; background: transparent; cursor: pointer; }
.at-r-reglage::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--bla) var(--p, 16.7%), rgba(170, 196, 228, .2) var(--p, 16.7%)); }
.at-r-reglage::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(170, 196, 228, .2); }
.at-r-reglage::-moz-range-progress { height: 2px; background: var(--bla); }
.at-r-reglage::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border-radius: 50%; background: var(--is); box-shadow: 0 0 0 7px rgba(0, 152, 212, .18); transition: box-shadow .3s ease; }
.at-r-reglage::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--is); box-shadow: 0 0 0 7px rgba(0, 152, 212, .18); }
.at-r-reglage:focus-visible { outline: none; }
.at-r-reglage:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--natt), 0 0 0 6px var(--bla); }
.at-r-reglage:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--natt), 0 0 0 6px var(--bla); }
.at-r-gr { display: flex; justify-content: space-between; font-size: .875rem; color: var(--is-3); }
.at-r-ut { border-left: 1px solid var(--linje); padding-left: clamp(32px, 5vw, 96px); }
.at-r-l { margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-size: clamp(3rem, 1.6rem + 3.2vw, 5.75rem); line-height: .95; font-weight: 230; letter-spacing: -.04em; }
.at-r-l small { font-size: 1.5rem; letter-spacing: 0; color: var(--is-3); font-weight: 340; }
.at-r-txt { margin-top: 18px; color: var(--is-2); font-size: 1.0625rem; line-height: 1.55; max-width: 44ch; }
.at-r-txt b { font-weight: 450; color: var(--is); }

.at-band { margin: clamp(48px, 4.6vw, 72px) 0 0; }
.at-band-rull { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.at-band-rull::-webkit-scrollbar { display: none; }
.at-band-svg { width: 100%; min-width: 860px; overflow: visible; }
.at-band-golv { fill: none; stroke: rgba(170, 196, 228, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-band-sep { fill: none; stroke: rgba(170, 196, 228, .22); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.at-t { cursor: pointer; outline: none; }
.at-t-ytan { fill: rgba(170, 196, 228, .04); stroke: rgba(170, 196, 228, .42); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .45s ease, stroke .45s ease; }
.at-t.passar .at-t-ytan { fill: url(#at-skikt); stroke: rgba(255, 215, 160, .5); }
.at-t:hover .at-t-ytan, .at-t:focus-visible .at-t-ytan, .at-t.vald .at-t-ytan { stroke: var(--bla); stroke-width: 2.5; }
.at-t-v { fill: var(--is-3); font-size: 300px; text-anchor: middle; font-variant-numeric: tabular-nums; transition: fill .45s ease; }
.at-t.passar .at-t-v, .at-t:hover .at-t-v, .at-t:focus-visible .at-t-v, .at-t.vald .at-t-v { fill: var(--is); }
.at-t-typ { fill: var(--is-3); font-size: 220px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; }
.at-t-typ.v { text-anchor: start; }
.at-band figcaption { margin-top: 22px; display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--spalt); font-size: 1rem; line-height: 1.5; color: var(--is-2); }

.at-tabell-rull { margin-top: clamp(48px, 4.6vw, 72px); overflow-x: auto; overscroll-behavior-x: contain; border-radius: 4px; }
.at-tabell-rull:focus-visible { outline-offset: 6px; }
.at-tabell { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
.at-tabell th, .at-tabell td { padding: 12px 14px; text-align: right; border-top: 1px solid var(--linje); white-space: nowrap; transition: color .35s ease, background-color .35s ease; }
.at-tabell thead th { border-top: 0; vertical-align: bottom; padding-bottom: 14px; font-size: .75rem; font-weight: 600; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--is-3); white-space: normal; line-height: 1.35; }
.at-tabell thead th small { display: block; font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: .8125rem; color: var(--is-4); }
.at-tabell th:first-child, .at-tabell td:first-child { text-align: left; padding-left: 0; }
.at-tabell tbody th { font-weight: 420; color: var(--is); }
.at-tabell tbody td { color: var(--is-2); }
.at-tabell tbody th em { font-style: normal; margin-left: 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--is-3); }
.at-tabell tbody tr.std th em { color: var(--bla); }
.at-tabell tbody tr:last-child th, .at-tabell tbody tr:last-child td { border-bottom: 1px solid var(--linje); }
.at-tabell tbody tr.passar th, .at-tabell tbody tr.passar td { background: rgba(242, 154, 60, .06); color: var(--is); }
.at-tabell tbody tr.passar th { box-shadow: inset 2px 0 0 var(--varm); padding-left: 12px; }
.at-tabell tbody tr.vald th, .at-tabell tbody tr.vald td { color: #fff; }
.at-kompakt { margin-top: clamp(40px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--spalt); align-items: start; }
.at-kompakt-v { margin-top: 10px; font-size: clamp(1.5rem, 1.2rem + .9vw, 2.25rem); font-weight: 300; letter-spacing: -.02em; }
.at-kompakt-tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); }
.at-kompakt-tre div { border-top: 1px solid var(--linje); padding-top: 14px; transition: border-color .35s ease; }
.at-kompakt-tre div.passar { border-top-color: var(--varm); }
.at-kompakt-tre dt { font-size: 1.125rem; color: var(--is); font-variant-numeric: tabular-nums; }
.at-kompakt-tre dd { margin: 6px 0 0; color: var(--is-2); font-size: 1rem; line-height: 1.5; }
.at-fotnot { margin-top: 32px; max-width: 980px; }

/* ---------- 04 ritningen ---------- */
.at-ritn-rutnat { align-items: center; row-gap: 48px; }
.at-ritning { grid-column: 1 / span 5; margin: 0; }
.at-ritning-svg { width: 100%; max-height: 880px; overflow: visible; }
.at-r-mantel { fill: #0a1630; stroke: rgba(214, 226, 243, .7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.at-r-inre { fill: none; stroke: rgba(238, 243, 250, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.at-r-fot { fill: none; stroke: rgba(214, 226, 243, .5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.at-r-golv { fill: none; stroke: rgba(170, 196, 228, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-r-matt path { fill: none; stroke: var(--is-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-r-matt text { fill: var(--is-2); font-size: 76px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.at-a circle { fill: #071026; stroke: rgba(238, 243, 250, .85); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: fill .35s ease, stroke .35s ease; }
.at-a text { fill: var(--is); font-size: 64px; font-weight: 600; dominant-baseline: central; transition: fill .35s ease; }
.at-a text.h { text-anchor: end; }
.at-a text.v { text-anchor: start; }
.at-ritning[data-aktiv] .at-a { opacity: .35; transition: opacity .35s ease; }
.at-ritning[data-aktiv] .at-a.aktiv { opacity: 1; }
.at-a.aktiv circle { fill: var(--bla); stroke: var(--bla); }
.at-a.aktiv[data-a="tillopp"] circle { fill: var(--varm); stroke: var(--glod); }
.at-ritn-txt { margin-top: 18px; font-size: 1rem; line-height: 1.5; color: var(--is-2); }
.at-ritn-txt .t-etikett { display: block; margin-bottom: 8px; }
.at-ritn-text { grid-column: 7 / -1; }
.at-ritn-text .t-etikett.med-linje { margin-bottom: 30px; }
.at-ansl { margin-top: clamp(32px, 3vw, 44px); }
.at-ansl li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; padding: 13px 0; border-top: 1px solid var(--linje); cursor: default; outline-offset: 2px; }
.at-ansl li:last-child { border-bottom: 1px solid var(--linje); }
.at-ansl-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--is-3); font-size: .75rem; font-weight: 600; color: var(--is-2); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.at-ansl li.varm .at-ansl-nr { box-shadow: inset 0 0 0 1px var(--varm); color: var(--glod); }
.at-ansl h3 { font-size: 1.125rem; font-weight: 420; line-height: 1.35; }
.at-ansl p { margin-top: 3px; color: var(--is-2); font-size: .9875rem; }
.at-ansl li.aktiv .at-ansl-nr { background: var(--bla); color: #fff; box-shadow: inset 0 0 0 1px var(--bla); }
.at-ansl li.varm.aktiv .at-ansl-nr { background: var(--varm); color: var(--natt); box-shadow: none; }
.at-fyra { margin-top: clamp(56px, 5.4vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--spalt); }
.at-fyra div { border-top: 1px solid var(--linje-2); padding-top: 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; }
.at-fyra dd { margin: 0; font-size: clamp(2.25rem, 1.4rem + 2.2vw, 4rem); line-height: 1; font-weight: 260; letter-spacing: -.03em; white-space: nowrap; }
.at-fyra dd small { font-size: .42em; letter-spacing: 0; color: var(--is-3); margin-left: .2em; font-weight: 400; }

/* ---------- 05 hela anläggningen ---------- */
.at-anl-rutnat { align-items: center; row-gap: 48px; }
.at-anl-text { grid-column: 1 / span 5; }
.at-anl-text .t-etikett { margin-bottom: 30px; }
.at-anl-text .t-ingress { margin-top: 30px; max-width: 30ch; }
.at-lankar { margin-top: clamp(36px, 3.4vw, 52px); }
.at-lankar a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--linje); }
.at-lankar li:last-child a { border-bottom: 1px solid var(--linje); }
.at-lankar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--flode); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); }
.at-lankar a:hover::after, .at-lankar a:focus-visible::after { transform: scaleX(1); }
.at-lankar b { display: block; font-size: 1.1875rem; font-weight: 380; }
.at-lankar small { display: block; margin-top: 2px; font-size: .9375rem; color: var(--is-3); font-variant-numeric: tabular-nums; }
.at-lankar .pil { color: var(--bla); transition: transform .6s var(--ease); }
.at-lankar a:hover .pil { transform: translateX(4px); }
.at-lankar a:hover .pil.ner { transform: rotate(90deg) translateX(4px); }
.at-cad { grid-column: 6 / -1; position: relative; margin: 0; }
.at-cad img { width: 100%; max-height: 860px; object-fit: contain; }
.at-cad-ram { position: absolute; left: 24.6%; top: 57.6%; width: 9%; height: 9%; border: 1.5px solid var(--varm); border-radius: 6px; box-shadow: 0 0 0 4px rgba(242, 154, 60, .12); }
.at-cad-linje { position: absolute; left: 29.1%; top: 22%; height: 35.6%; width: 1.5px; background: linear-gradient(0deg, var(--varm), rgba(242, 154, 60, .45)); }
.at-cad-etikett { position: absolute; left: 29.1%; top: 22%; transform: translateY(-100%); padding: 0 0 10px 14px; border-left: 1.5px solid rgba(242, 154, 60, .45); white-space: nowrap; font-size: 1.0625rem; font-weight: 500; line-height: 1; color: var(--glod); }
.at-kedja { position: relative; margin-top: clamp(64px, 6vw, 104px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--spalt); padding-top: 34px; }
.at-kedja::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, #1f74b8, #9fb4c4 30%, #f29a3c 50%, #ffd7a0 75%, #f29a3c); }
.at-kedja li { position: relative; }
.at-kedja li::before { content: ""; position: absolute; left: 0; top: -34px; width: 13px; height: 13px; border-radius: 50%; background: #080f22; box-shadow: inset 0 0 0 1.5px #9fb4c4; }
.at-kedja li.aktiv::before { background: var(--glod); box-shadow: 0 0 0 6px rgba(242, 154, 60, .22); }
.at-k-nr { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; color: var(--is-3); font-variant-numeric: tabular-nums; }
.at-kedja h3 { margin-top: 10px; font-size: 1.25rem; font-weight: 400; }
.at-kedja li.aktiv h3 { color: var(--glod); }
.at-kedja p { margin-top: 4px; color: var(--is-2); font-size: 1rem; }

/* ---------- mellanstora skärmar ---------- */
@media (max-width: 1100px) {
  .at-hjalte-in { grid-template-columns: minmax(0, 1fr) minmax(0, .3fr) minmax(0, .5fr); }
  .at-hjalte-data { grid-template-columns: 1fr; row-gap: 0; }
  .at-hjalte-data div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
  .at-hjalte-data div:last-child { border-bottom: 1px solid var(--linje); }
  .at-hjalte-data dd { text-align: right; }
  .at-jamn-text { grid-column: 1 / span 7; }
  .at-svarta { grid-column: 8 / -1; }
  .at-ritning { grid-column: 1 / span 6; }
  .at-ritn-text { grid-column: 7 / -1; }
  .at-fyra { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .at-anl-text, .at-cad { grid-column: 1 / -1; }
  .at-raknare { grid-template-columns: 1fr; row-gap: 32px; }
  .at-r-ut { border-left: 0; padding-left: 0; border-top: 1px solid var(--linje); padding-top: 28px; }
  .at-kompakt { grid-template-columns: 1fr; row-gap: 22px; }
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .at-hjalte { padding-top: 96px; }
  .at-hjalte-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "smulor smulor" "text text" "skala bild"; column-gap: 12px; }
  .at-hjalte .smulor { margin-bottom: 28px; }
  .at-h1 { font-size: clamp(2.5rem, 12.4vw, 3.5rem); }
  .at-knappar { flex-direction: column; align-items: stretch; }
  .at-knappar .knapp { width: 100%; }
  .at-hjalte-data { margin-top: 36px; }
  .at-skala { margin-top: 44px; padding-right: 6px; }
  .at-skala-topp, .at-skala-botten { font-size: 1.75rem; flex-direction: column; align-items: flex-end; gap: 2px; }
  .at-skala-linje i.std b { font-size: .75rem; }
  .at-hjalte-bild { margin-top: 44px; justify-content: flex-start; }
  .at-hjalte-bild img { height: 420px; min-height: 0; }

  .at-jamn-text, .at-svarta { grid-column: 1 / -1; }
  .at-svarta { margin: 0 calc(-1 * var(--marg)); }
  .at-svarta img { max-width: none; }

  .at-snitt img { width: 62%; margin: 0 auto; }
  .at-utrop { position: static; margin-top: 28px; }
  .at-utrop li { position: relative; top: auto; height: auto; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 13px 0; border-top: 1px solid var(--linje); }
  .at-utrop li:last-child { border-bottom: 1px solid var(--linje); }
  .at-utrop-l { display: none; }
  .at-utrop-nr { position: static; transform: none; }
  .at-utrop li > div { position: static; transform: none; max-width: none; }
  .at-skikt-tre { grid-template-columns: 1fr; row-gap: 24px; }

  .at-r-kw { font-size: 4rem; }
  .at-r-l { font-size: 3rem; }
  .at-band-rull { margin: 0 calc(-1 * var(--marg)); padding: 0 var(--marg); }
  .at-band figcaption { grid-template-columns: 1fr; row-gap: 8px; }
  .at-tabell-rull { margin-left: calc(-1 * var(--marg)); margin-right: calc(-1 * var(--marg)); padding: 0 var(--marg); }
  .at-tabell { font-size: .9375rem; }
  .at-tabell tbody th { position: sticky; left: 0; background: var(--natt); }
  .at-kompakt-tre { grid-template-columns: 1fr; row-gap: 18px; }

  .at-ritning, .at-ritn-text { grid-column: 1 / -1; }
  .at-ritning-svg { max-height: 560px; }
  .at-fyra { grid-template-columns: 1fr 1fr; }

  .at-cad { margin: 0 -8px; }
  .at-cad-etikett { font-size: .875rem; }
  .at-kedja { grid-template-columns: 1fr; row-gap: 22px; padding-top: 0; padding-left: 30px; }
  .at-kedja::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, #1f74b8, #9fb4c4 30%, #f29a3c 50%, #ffd7a0 75%, #f29a3c); }
  .at-kedja li::before { left: -30px; top: 5px; }
}

/* engelska sidan (2026-10-16): "The tank takes the peaks." får en spalt till, så att rubriken står på två rader */
@media (min-width: 761px) { html[lang="en"] .at-jamn-text { grid-column: 1 / span 7; } }
