/* =====================================================
   subpage.css – Gemensam stil för alla undersidor
   ===================================================== */

body {
  background: #0c0c0c;
  color: #e0e0e0;
}

.sp-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 4rem;
}

.sp-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 2rem;
}

.sp-breadcrumb a {
  color: #a8561b;
  text-decoration: none;
}

.sp-breadcrumb a:hover { text-decoration: underline; }

/* Headings */
.sp-wrap h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.sp-wrap h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4752a;
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(168, 86, 27, 0.2);
}

.sp-wrap h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e0c9b0;
  margin: 1.5rem 0 0.5rem;
}

/* Body text */
.sp-wrap p {
  font-size: 15px;
  line-height: 1.75;
  color: #ccc;
  margin: 0 0 1rem;
}

.sp-wrap strong { color: #eee; }

.sp-wrap ul, .sp-wrap ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.sp-wrap ul li, .sp-wrap ol li {
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.sp-wrap a {
  color: #d4752a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-wrap a:hover { color: #e8924a; }

/* Tables */
.sp-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 14px;
}

.sp-wrap th {
  background: rgba(168, 86, 27, 0.25);
  color: #e8924a;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
}

.sp-wrap td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #ccc;
}

.sp-wrap tr:last-child td { border-bottom: none; }

/* Code block */
.sp-wrap pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 13px;
  color: #bbb;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

/* Footer link row */
.sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sp-footer-links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.sp-footer-links a:hover { color: #d4752a; }
