/* LOAD Självtest – allt är avgränsat under .lsj så att temat inte påverkas. */
.lsj {
  --lsj-teal: #396b7f;
  --lsj-teal-dark: #2b5566;
  --lsj-light: #51b6db;
  --lsj-ink: #1d2b33;
  --lsj-muted: #5b6b73;
  --lsj-line: #d6dfe1;
  --lsj-paper: #ffffff;
  --lsj-bg: #f2f6f7;
  --lsj-low: #2e7d5b;
  --lsj-medium: #b7791f;
  --lsj-high: #b23b3b;
  --lsj-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, "Courier New", monospace;
  color: var(--lsj-ink);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
  box-sizing: border-box;
}
.lsj *, .lsj *::before, .lsj *::after { box-sizing: inherit; }
.lsj p { padding: 0; margin: 0 0 1em; }
.lsj h2, .lsj h3 { color: var(--lsj-ink); padding: 0; line-height: 1.25; }
.lsj [data-lsj-focus]:focus { outline: none; }
.lsj-hidden { display: none !important; }

.lsj-card {
  background: var(--lsj-paper);
  border: 1px solid var(--lsj-line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
}
.lsj-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; margin: 0 0 .4em; }
.lsj-lead { font-size: 1.1rem; color: var(--lsj-ink); max-width: 60ch; }
.lsj-meta { color: var(--lsj-teal); font-weight: 600; }
.lsj-privacy { font-size: .9rem; color: var(--lsj-muted); margin-top: 1.2em !important; max-width: 60ch; }
.lsj-small { font-size: .9rem; color: var(--lsj-muted); }

/* Buttons */
.lsj .lsj-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 8px; border: 2px solid transparent;
  padding: .8em 1.4em; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.lsj .lsj-btn-primary { background: var(--lsj-teal); color: #fff; }
.lsj .lsj-btn-primary:hover { background: var(--lsj-teal-dark); color: #fff; }
.lsj .lsj-btn-secondary { background: #fff; color: var(--lsj-teal); border-color: var(--lsj-teal); }
.lsj .lsj-btn-secondary:hover { background: var(--lsj-bg); }
.lsj .lsj-btn-ghost { background: none; color: var(--lsj-muted); padding-left: 0; padding-right: 0; }
.lsj .lsj-btn-ghost:hover { color: var(--lsj-teal); }
.lsj .lsj-btn:focus-visible, .lsj .lsj-option:focus-visible { outline: 3px solid var(--lsj-light); outline-offset: 2px; }

/* Questions */
.lsj-progress { height: 6px; background: var(--lsj-bg); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.lsj-progress-bar { display: block; height: 100%; background: var(--lsj-light); border-radius: 99px; transition: width .3s ease; }
.lsj-step { font-size: .9rem; color: var(--lsj-muted); margin-bottom: .6em !important; }
.lsj-qtext { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; margin: 0 0 .4em; }
.lsj-help { color: var(--lsj-muted); }
.lsj-options { display: grid; gap: 10px; margin: 1.2em 0 .8em; }
.lsj .lsj-option {
  -webkit-appearance: none; appearance: none;
  display: flex; justify-content: flex-start; font: inherit; font-size: 1.02rem; font-weight: 400; text-align: left; line-height: 1.35;
  width: 100%; padding: .95em 1.1em .95em 3em; position: relative;
  background: #fff; color: var(--lsj-ink);
  border: 1.5px solid var(--lsj-line); border-radius: 10px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.lsj .lsj-option::before {
  content: ""; position: absolute; left: 1.05em; top: 50%; width: 1.1em; height: 1.1em;
  margin-top: -.55em; border-radius: 50%; border: 2px solid var(--lsj-line); background: #fff;
}
.lsj .lsj-option:hover { border-color: var(--lsj-light); }
.lsj .lsj-option.is-selected { border-color: var(--lsj-teal); background: #eaf5f9; }
.lsj .lsj-option.is-selected::before { border-color: var(--lsj-teal); background: radial-gradient(circle, var(--lsj-teal) 45%, #fff 50%); }
.lsj-nav { margin-top: .6em; }

/* Result */
.lsj-result-head { margin-bottom: 1.2em; }
.lsj-receipt {
  font-family: var(--lsj-mono);
  background: var(--lsj-paper);
  border: 1px solid var(--lsj-line);
  border-radius: 4px 4px 0 0;
  padding: 28px clamp(18px, 4vw, 36px) 32px;
  margin: 0 auto 14px;
  max-width: 560px;
  box-shadow: 0 10px 30px rgba(29, 43, 51, .08);
  position: relative;
}
.lsj-receipt::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, var(--lsj-paper) 0) 0 0 / 12px 10px repeat-x,
              linear-gradient(45deg, transparent 6px, var(--lsj-paper) 0) 0 0 / 12px 10px repeat-x;
}
.lsj-r-heading { text-align: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.lsj-r-sub { text-align: center; font-size: .82rem; color: var(--lsj-muted); margin-top: 2px; }
.lsj-r-rule { border-top: 1.5px dashed #b9c6ca; margin: 16px 0; }
.lsj-r-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: .95rem; }
.lsj-r-label { white-space: nowrap; }
.lsj-r-dots { flex: 1; border-bottom: 2px dotted #b9c6ca; transform: translateY(-4px); min-width: 12px; }
.lsj-r-value { font-weight: 700; text-align: right; white-space: nowrap; }
.lsj-r-row.lsj-lvl-low .lsj-r-value { color: var(--lsj-low); }
.lsj-r-row.lsj-lvl-medium .lsj-r-value { color: var(--lsj-medium); }
.lsj-r-row.lsj-lvl-high .lsj-r-value { color: var(--lsj-high); }
.lsj-r-row.has-sek .lsj-r-value, .lsj-r-row.is-unknown .lsj-r-value { color: var(--lsj-ink); }
.lsj-r-sum { font-size: 1.1rem; font-weight: 700; }
.lsj-r-sum .lsj-r-value { color: var(--lsj-teal); font-size: 1.4rem; }
@media (max-width: 520px) {
  .lsj-r-row { flex-wrap: wrap; }
  .lsj-r-dots { display: none; }
  .lsj-r-value { width: 100%; text-align: left; }
}
.lsj-receipt.is-printing .lsj-r-row,
.lsj-receipt.is-printing .lsj-r-rule:not(:first-of-type) {
  opacity: 0;
  animation: lsj-print .45s ease forwards;
}
@keyframes lsj-print { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.lsj-section { margin-top: 2em; }
.lsj-h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .7em; }
.lsj-dims { display: grid; gap: 12px; }
.lsj-dim { display: grid; grid-template-columns: minmax(130px, 1.1fr) 2fr minmax(110px, auto); gap: 12px; align-items: center; }
.lsj-dim-track { height: 10px; background: var(--lsj-bg); border-radius: 99px; overflow: hidden; }
.lsj-dim-fill { display: block; height: 100%; border-radius: 99px; }
.lsj-dim.lsj-lvl-low .lsj-dim-fill { background: var(--lsj-low); }
.lsj-dim.lsj-lvl-medium .lsj-dim-fill { background: var(--lsj-medium); }
.lsj-dim.lsj-lvl-high .lsj-dim-fill { background: var(--lsj-high); }
.lsj-dim-level { font-weight: 600; font-size: .92rem; text-align: right; }
@media (max-width: 520px) {
  .lsj-dim { grid-template-columns: 1fr auto; }
  .lsj-dim-track { grid-column: 1 / -1; grid-row: 2; }
}
.lsj-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lsj-notes li { padding: .2em 0 .2em 14px; border-left: 3px solid var(--lsj-light); margin: 0; }
.lsj-method { margin-top: 2em; border-top: 1px solid var(--lsj-line); padding-top: 1em; }
.lsj-method summary { cursor: pointer; font-weight: 600; color: var(--lsj-teal); }
.lsj-method p { font-size: .92rem; color: var(--lsj-muted); margin-top: .8em; }

.lsj-cta {
  margin-top: 2.2em; background: var(--lsj-bg); border-radius: 14px;
  padding: clamp(20px, 4vw, 34px);
}
.lsj-form-slot { margin: 1em 0; }
.lsj-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1em; }

@media (prefers-reduced-motion: reduce) {
  .lsj * { animation: none !important; transition: none !important; }
  .lsj-receipt .lsj-r-row, .lsj-receipt .lsj-r-rule { opacity: 1 !important; }
}

/* Spara som PDF: skriv bara ut resultatet. */
@media print {
  body * { visibility: hidden !important; }
  .lsj-result, .lsj-result * { visibility: visible !important; }
  .lsj-result { position: absolute; left: 0; top: 0; width: 100%; }
  .lsj-cta, .lsj-actions { display: none !important; }
  .lsj-receipt { box-shadow: none; }
  .lsj-receipt .lsj-r-row, .lsj-receipt .lsj-r-rule { opacity: 1 !important; animation: none !important; }
}
