/* Typsnitt som ligger på sajten. Licens: SIL Open Font License. */
@font-face {font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/work-sans-cea7c2e8.woff2) format('woff2')}
@font-face {font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/work-sans-cea7c2e8.woff2) format('woff2')}
@font-face {font-family: 'Work Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/work-sans-cea7c2e8.woff2) format('woff2')}

* { box-sizing: border-box; }
body { margin: 0; }
.site {
  --ink: #14213D;
  --muted: #566074;
  --rule: #D5DAE3;
  --navy: #14213D;
  --tint: #F1F4F9;
  --sun: #FFE9A3;
  --paper: #FFFFFF;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.site a { color: inherit; text-underline-offset: 3px; }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible, .site select:focus-visible, .site summary:focus-visible, .site [tabindex]:focus-visible { outline: 3px solid #2F6FDB; outline-offset: 2px; }
.inner { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.site h1, .site h2, .site h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.site p { margin: 0 0 1rem; max-width: 60ch; }

.top { border-bottom: 1px solid var(--rule); }
.top .inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 2rem; padding-top: 1rem; padding-bottom: 0.9rem; }
.name { font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.015em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav .tel { font-weight: 700; }

.intro { padding-top: 2.5rem; padding-bottom: 2rem; }
.intro h1 { font-size: clamp(1.9rem, 5vw, 2.625rem); max-width: 20ch; margin-bottom: 0.9rem; }
.intro p { margin-bottom: 0; }
.control { padding-bottom: 1.75rem; }
.site h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.site section { padding-bottom: 2.75rem; }

/* Uträkningen */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
#q { display: grid; gap: 1rem; align-content: start; }
.f { display: grid; gap: 0.3rem; min-width: 0; }
.f label { font-weight: 500; }
.f input[type="number"], .f input[type="text"], .f input[type="tel"], .f select {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #7C879A;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.narrow { max-width: 12rem; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; align-items: center; gap: 0.75rem; }
.range input { width: 100%; height: 2rem; accent-color: var(--navy); }
.range output { font-weight: 700; font-size: 1.1875rem; text-align: right; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--navy); }
.check small { display: block; color: var(--muted); font-size: 0.9375rem; }
.follow {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem -1rem 0;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: #fff;
}
.follow b { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.follow a { color: #fff; font-size: 0.9375rem; white-space: nowrap; }

.result { background: var(--tint); border-radius: 4px; align-self: start; scroll-margin-top: 1rem; }
.result .sum { padding: 1rem 1rem 0.6rem; }
.result .sum p { margin: 0; color: var(--muted); font-size: 1rem; }
.result .sum .big { font-weight: 700; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 0.45rem 1rem; border-top: 1px solid #D3D9E5; vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tr.total td { font-weight: 700; background: var(--sun); border-top-color: var(--sun); }
.how { margin: 0; padding: 0.7rem 1rem 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.act { border-top: 1px solid #D3D9E5; padding: 1rem; }
.act .two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: 0.9rem; }
.btn { font: inherit; font-weight: 700; background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: 0.7rem 1.2rem; cursor: pointer; }
.btn:hover { background: #22345C; }
.err { color: #9B1C1C; font-weight: 700; margin: 0 0 0.75rem; }
.done p { margin: 0 0 0.4rem; }

.plain { margin: 0; padding-left: 1.3rem; max-width: 58ch; }
.plain li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
details { border-top: 1px solid var(--rule); max-width: 42rem; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 500; padding: 0.75rem 0; }
details p { color: var(--muted); }
.bottom { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-size: 1rem; color: var(--muted); }
.bottom p { margin: 0 0 0.2rem; }

@media (min-width: 34rem) {
  .act .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 50rem) {
  .intro { padding-top: 3.25rem; }
  .calc { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; }
  .result { position: sticky; top: 1rem; }
  .follow { display: none; }
}
.site .f.f-gap { margin-bottom: 0.9rem; }
