:root {
  /* Ljust, varmt och vänligt */
  --bg: #fffdf9;            /* bakgrund */
  --panel: #ffffff;         /* kort/paneler */
  --panel-alt: #f8fafc;     /* alt-bakgrund */
  --fg: #2b2b2b;            /* primär text */
  --muted: #5f6b7a;         /* sekundär text */
  --brand: #ff8a5b;         /* persika */
  --brand-2: #ff6f3a;       /* mörkare persika */
  --accent: #59b3ff;        /* himmelsblå */
  --accent-2: #2e9af0;
  --border: #e6e8ee;
  --shadow: 0 8px 20px rgba(34, 41, 47, 0.08);

  color-scheme: light;
}

/* Bas */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  color: --fg;
  color: var(--fg);
  background:
    radial-gradient(900px 400px at 10% -10%, #ffe6d8, transparent 60%),
    radial-gradient(800px 500px at 90% 0%, #e6f3ff, transparent 60%),
    var(--bg);
}

/* Hjälpare */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.flex {
  display: flex;
  gap: 16px;
}
.center {
  align-items: center;
}
.between {
  justify-content: space-between;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.nav {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav a:hover,
.nav a:focus {
  background: #fff3ec;
  border-color: #ffd8c7;
  outline: none;
}

/* Hero */
.hero {
  padding: 56px 0 26px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin: 6px 0 10px;
  letter-spacing: 0.2px;
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 65ch;
}

/* Snabbsök */
.quick-search {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.quick-search input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--fg);
  background: #ffffff;
  outline: none;
}
.quick-search input:focus {
  border-color: #ffd0bd;
  box-shadow: 0 0 0 3px #ffe7de;
}
.quick-search button {
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--brand), #ffa884);
  color: #4a2b25;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
.quick-search button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
.help {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0 4px;
}

/* Ankarchips */
.anchors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6fbff;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid #d7ebff;
  transition: border-color 120ms ease, transform 120ms ease,
    box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 4px 12px rgba(33, 125, 188, 0.08);
}
.chip:hover {
  border-color: #bfe0ff;
  background: #eef7ff;
  transform: translateY(-1px);
}

/* Sektioner */
.section {
  padding: 32px 0;
}
.section.alt {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: 0.2px;
}
.section p {
  color: var(--muted);
}

/* Tabellcontainer */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Tabeller */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
table.data caption {
  caption-side: top;
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
}
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff6f1;
  color: #5a3b2f;
  font-weight: 800;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th:first-child,
table.data td:first-child {
  border-left: 0;
}
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
  white-space: nowrap;
}
table.data tbody tr:nth-child(odd) {
  background: #fffefe;
}
table.data tbody tr:hover {
  background: #fff3ec;
}

/* Tips/Details */
.note {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.note summary {
  cursor: pointer;
  padding: 10px 12px;
  list-style: none;
  font-weight: 700;
}
.note summary::-webkit-details-marker {
  display: none;
}
.note ul {
  margin: 0;
  padding: 0 16px 12px 28px;
  color: var(--muted);
}

/* Mätlista */
.measure-list {
  padding-left: 22px;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
}
.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Delningschip */
.share {
  margin-top: 10px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.site-footer nav a {
  margin-right: 12px;
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--fg);
}

/* Utskrift */
@media print {
  .site-header,
  .hero .anchors,
  .quick-search,
  .site-footer {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .section {
    padding: 0;
  }
}

/* Liten extra läsbarhet för större textlägen */
@media (min-width: 900px) {
  body {
    font-size: 17px;
  }
}