/* Luftvärmeguide – luftig, lättläst layout (2026-11-23) */
:root {
  --bg: #f7f4ee;
  --bg-card: #ffffff;
  --ink: #1d1f1c;
  --muted: #5d6159;
  --line: #e3ddd1;
  --pine: #1c4d3a;
  --pine-deep: #123528;
  --pine-soft: #e9f2ec;
  --warn: #7a4a12;
  --warn-bg: #fbf1df;
  --info-bg: #eaf0f5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 20, .04), 0 8px 24px rgba(20, 24, 20, .06);
  --max: 75rem;
  --text: 42rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: .8rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.brand-tag { font-size: .78rem; color: var(--muted); }
nav.primary { display: flex; gap: .25rem; flex-wrap: wrap; }
nav.primary a { text-decoration: none; color: var(--ink); font-size: .93rem; padding: .4rem .7rem; border-radius: 999px; white-space: nowrap; }
nav.primary a:hover { background: var(--pine-soft); }
nav.primary a[aria-current="page"] { background: var(--pine); color: #fff; }
.nav-scroll { position: relative; min-width: 0; }
@media (max-width: 760px) {
  .header-inner { padding: .6rem 0 .4rem; }
  .brand-tag { display: none; }
  .nav-scroll { width: 100%; }
  .nav-scroll::after {
    content: "›";
    position: absolute;
    top: 0; right: 0; bottom: .35rem;
    width: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 500;
    color: var(--pine);
    background: linear-gradient(to right, rgba(255,255,255,0), #fff 45%);
    pointer-events: none;
  }
  nav.primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: .45rem;
    padding-right: 1.8rem;
    scrollbar-width: thin;
    scrollbar-color: #c9c3b6 transparent;
  }
  nav.primary::-webkit-scrollbar { height: 4px; display: block; }
  nav.primary::-webkit-scrollbar-thumb { background: #c9c3b6; border-radius: 99px; }
}

/* Typography */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .2rem 0 1rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 3rem 0 .9rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.kicker { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pine); margin: 0 0 .3rem; }
.lede, .page-intro { font-size: 1.2rem; line-height: 1.6; color: #3c403a; max-width: 52ch; }
.hint { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.fine { font-size: .85rem; color: var(--muted); max-width: var(--text); }
cite { font-style: italic; }

/* Hero (start + undersidor) */
.hero, .page-hero {
  display: grid; gap: 2rem; align-items: center;
  padding: 3rem 0 2.5rem;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; padding: 4rem 0 3.5rem; }
  .page-hero { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}
.hero-img, .page-hero-img {
  width: 100%; border-radius: 20px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-img { aspect-ratio: 16 / 10; }
.page-hero .page-title { margin-top: .2rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine-soft); }
.trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--pine); font-weight: 700; margin-right: .4rem; }

/* Content column */
.prose, .sources, .summary, .calc, .callout, .table-wrap, .figure { max-width: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
section { margin-bottom: 1rem; }

/* Summary box */
.summary {
  background: var(--pine-soft); border-left: 4px solid var(--pine);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem 1.1rem; margin: 0 0 2.5rem;
}
.summary h2 { font-size: 1.15rem; margin: 0 0 .6rem; font-family: var(--sans); letter-spacing: 0; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li { margin: .4rem 0; }

/* Cards */
.grid-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin: 1rem 0 3rem; }
.card {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(20,24,20,.1); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card h2, .card h3 { font-size: 1.2rem; margin: .1rem 0 .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.section-title { margin-top: 1rem; }

/* Split block: bild + text */
.split { display: grid; gap: 1.75rem; align-items: center; margin: 3.5rem 0; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { margin-top: 0; }

.two-col { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; max-width: 60rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .callout { margin: 0; }

/* Callouts */
.callout { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; font-size: .98rem; line-height: 1.6; }
.callout strong { display: block; margin-bottom: .3rem; font-size: 1.02rem; }
.callout.note { background: var(--info-bg); border-color: #d3dfe9; }
.callout.warn { background: var(--warn-bg); border-color: #efdcb8; }
.callout.good { background: var(--pine-soft); border-color: #cfe2d6; }
.callout.placeholder { background: transparent; border: 1.5px dashed #cfc6b5; color: var(--muted); margin: 3rem 0 2rem; }
.callout.placeholder .kicker { color: var(--muted); }
.callout.placeholder strong { color: var(--ink); }

/* Figures (scheman) */
.figure { margin: 1.75rem 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; width: 100%; }
.figure figcaption { font-size: .86rem; color: var(--muted); margin-top: .5rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; line-height: 1.5; }
caption { caption-side: bottom; text-align: left; font-size: .84rem; color: var(--muted); padding: .7rem 1rem .9rem; border-top: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; }
thead th { background: var(--pine-soft); color: var(--pine-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr + tr td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 600; }
@media (max-width: 600px) { th, td { padding: .65rem .75rem; } table { font-size: .93rem; } }

/* Calculators */
.calc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin: 2rem 0 2.5rem; }
.calc h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.calc-grid { display: grid; gap: 1.1rem; margin-bottom: 1.2rem; }
@media (min-width: 640px) { .calc-grid.cols-2 { grid-template-columns: 1fr 1fr; } .calc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: .3rem; }
input[type="number"] { width: 100%; font: inherit; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fcfbf8; }
input[type="number"]:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(28,77,58,.15); }
.calc .hint { margin-top: .3rem; }
.results { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: 1.2rem; }
.result { background: var(--pine-soft); border-radius: 12px; padding: .8rem 1rem; }
.result .label { font-size: .82rem; color: var(--muted); }
.result .value { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--pine-deep); }

/* Sources */
.sources { margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.sources h2 { font-size: 1.05rem; font-family: var(--sans); margin: 0 0 .6rem; letter-spacing: 0; color: var(--ink); }
.sources ol { padding-left: 1.2rem; margin: 0; }
.sources li { margin: .4rem 0; }

/* Models */
.models { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); margin: 1rem 0 2rem; }
.model { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.model-art { background: #fff; }
.model-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.model-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.model h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.model .source { font-size: .82rem; color: var(--muted); margin: 0 0 .8rem; }
.model .fit { font-size: .96rem; color: #3c403a; line-height: 1.55; margin: 0 0 .9rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 .9rem; }
.specs div { background: #f6f4ef; border-radius: 10px; padding: .5rem .6rem; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-weight: 650; font-size: .98rem; line-height: 1.3; }
.model details { font-size: .92rem; margin: 0 0 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.model summary { cursor: pointer; color: var(--pine); font-weight: 650; }
.model details dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .7rem; margin: .7rem 0 0; line-height: 1.5; }
.model details dt { color: var(--muted); font-weight: 650; }
.model details dd { margin: 0; }
.price { margin: auto 0 .9rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price strong { font-family: var(--serif); font-size: 1.6rem; color: var(--pine-deep); }
.price span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.model-link { display: block; text-align: center; background: var(--pine); color: #fff; text-decoration: none; padding: .7rem 1rem; border-radius: 999px; font-weight: 650; }
.model-link:hover { background: var(--pine-deep); color: #fff; }

/* Footer */
footer.site { margin-top: 4rem; background: #fff; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
footer.site .fine { margin: 0 0 .6rem; }
@media (min-width: 900px) { nav.grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { .page-hero-img, .hero-img { aspect-ratio: 16 / 10; } .page-hero, .hero { padding-top: 2rem; } }
@media (max-width: 600px) { .card img { aspect-ratio: 16 / 7; } .model-art img { aspect-ratio: 16 / 7; } }


/* ===== v3: riktig desktop-layout ===== */
.prose, .sources { max-width: 46rem; }
.summary, .calc, .callout, .table-wrap, .figure { max-width: none; }
.figure { max-width: 46rem; }
.hint, .fine { max-width: 46rem; }

/* Innersidor: sidopanel + huvudkolumn */
.layout { display: grid; gap: 2rem; }
.layout .main-col { min-width: 0; }
.layout .main-col > .grid-cards { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.side-nav { display: none; }
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  h1 { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }
  h2 { font-size: 2rem; }
  .lede, .page-intro { font-size: 1.3rem; max-width: 34rem; }
  .page-hero { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; padding: 3.5rem 0 3rem; }
  .page-hero-img { aspect-ratio: 16 / 10; }
  .layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; align-items: start; }
  .layout .sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; }
  .layout .main-col { grid-column: 1; grid-row: 1; }
  .layout .main-col > :first-child { margin-top: 0; }
  .sidebar .summary { margin: 0 0 1.5rem; }
  .side-nav { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
  .side-nav h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
  .side-nav ul { list-style: none; margin: 0; padding: 0; }
  .side-nav li + li { border-top: 1px solid var(--line); }
  .side-nav a { display: block; padding: .5rem 0; text-decoration: none; font-weight: 600; font-size: .98rem; }
  .side-nav a::after { content: " →"; color: var(--muted); }
  .calc { padding: 2rem; }
  .result .value { font-size: 1.7rem; }
  /* Modellsidan: sammanfattning som bred ruta i fyra kolumner */
  .models-summary ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 2.5rem; }
  .models { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .grid-cards { gap: 1.75rem; }
  .split { gap: 4rem; }
  .split .prose { max-width: none; }
}
@media (min-width: 1400px) {
  :root { --max: 78rem; }
}
footer.site .wrap { max-width: var(--max); }
footer.site .fine { max-width: 52rem; }
@media (min-width: 900px) { .layout .main-col > .grid-cards { grid-template-columns: repeat(2, 1fr); } }

/* Affiliate CTAs and disclosure */
.aff-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1rem 0 .55rem; }
.aff-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex-wrap: wrap; }
.annonsmark {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #123528;
  background: #e9f2ec;
  border: 1px solid #1c4d3a;
  border-radius: 999px;
  padding: .16rem .5rem;
  line-height: 1.2;
  vertical-align: middle;
}
.btn-primary .annonsmark { background: #0f2e22; color: #fff; border-color: #0f2e22; }
.callout.affiliate { background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 2rem 0; }
.callout.affiliate > p { margin: 0 0 .2rem; }
.callout.affiliate .aff-actions { margin-bottom: .35rem; }
.callout.affiliate .disclosure { margin: .35rem 0 0; }
.model-shops { flex-direction: column; gap: .45rem; margin: 0 0 .7rem; }
.model-shops .btn { width: 100%; text-align: center; padding: .55rem .85rem; font-size: .92rem; }
.model-source-link { display: inline-block; font-size: .85rem; color: var(--muted); }
.model-source-link:hover { color: var(--pine-deep); }
footer.site .disclosure { max-width: 52rem; }

.model { scroll-margin-top: 6rem; }

footer.site .fine a { font-weight: 650; }
