/* SensorPulse F1 help – screen + PDF print */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 32px 48px;
  font-family: "Segoe UI", "Segoe UI Historic", "Segoe UI Symbol", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1a2332;
  background: #f4f6fa;
}

html[lang="pl"] body {
  font-family: "Segoe UI", "Segoe UI Historic", Arial, sans-serif;
}

nav {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

nav a {
  color: #2563eb;
  text-decoration: none;
  display: block;
  margin: 4px 0;
}

section {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

h1 { font-size: 22px; margin-top: 0; }
h2 {
  font-size: 18px;
  margin-top: 0;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}
h3 { font-size: 14px; margin-top: 18px; color: #334155; }

ul, ol { margin: 8px 0 8px 22px; }
li { margin: 4px 0; }

code, kbd {
  background: #eef2f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 12px;
}

.note {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 10px 14px;
  margin: 12px 0;
}

.tip {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 10px 14px;
  margin: 12px 0;
}

.warn {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  padding: 10px 14px;
  margin: 12px 0;
}

p.lead { font-size: 15px; color: #334155; }
strong.effect { color: #0f766e; }

details.help-example {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  margin: 12px 0;
  background: #f8fafc;
}

details.help-example > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 14px;
  color: #1e3a5f;
  list-style-position: outside;
}

details.help-example > summary:hover {
  background: #eef2f7;
}

.help-example-body {
  padding: 0 14px 12px 14px;
  border-top: 1px solid #e2e8f0;
}

.help-example-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}

.help-example-body th,
.help-example-body td {
  border: 1px solid #d8dee8;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

.help-example-body th {
  background: #eef2f7;
  font-weight: 600;
}

@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
    padding: 0;
  }

  nav, section {
    background: #fff;
    border-color: #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  section {
    break-before: page;
    page-break-before: always;
  }

  section:first-of-type {
    break-before: auto;
    page-break-before: auto;
  }

  nav {
    break-after: page;
    page-break-after: always;
  }

  nav a { color: #111; }
  .note, .tip, .warn {
    border: 1px solid #ccc;
    background: #f8f8f8;
  }
}
