/* CloudReport — statiska innehållssidor.
   Handskriven CSS, ingen byggkedja. Speglar palettten i ClientApp/src/App.css. */

:root {
  --bg: #edf2f8;
  --surface: #ffffff;
  --blue: #0066ff;
  --blue-dark: #0047b3;
  --amber: #f5a500;
  --text: #111827;
  --text2: #4b5563;
  --text3: #9ca3af;
  --border: #e5e7eb;
  --ok: #16a34a;
  --no: #dc2626;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span { color: var(--blue); }

.site-header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-header nav a {
  color: var(--text2);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--blue); }

.site-header .spacer { flex: 1; }

.lang-switch {
  font-size: 14px;
  color: var(--text3);
}

.lang-switch a { color: var(--text2); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

main.wide { max-width: 1000px; }

.breadcrumb {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Typografi ──────────────────────────────────────────────────────────── */

h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
  font-weight: 700;
  scroll-margin-top: 24px;
}

h3 {
  font-size: 1.12rem;
  margin: 32px 0 10px;
  font-weight: 700;
}

p { margin: 0 0 18px; }

.lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 28px;
}

.meta {
  font-size: 14px;
  color: var(--text3);
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

ul, ol { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 9px; }

strong { font-weight: 650; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Komponenter ────────────────────────────────────────────────────────── */

.answer {
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 32px;
}

.answer p:last-child { margin-bottom: 0; }

.note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 16px;
}

.note p:last-child { margin-bottom: 0; }

.note strong { color: #92400e; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.01em;
}

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

td.yes { color: var(--ok); font-weight: 600; }
td.no  { color: var(--no); }

.table-scroll { overflow-x: auto; }

.faq h3 {
  font-size: 1.08rem;
  margin: 30px 0 8px;
}

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 48px 0 0;
}

.cta h2 { margin-top: 0; font-size: 1.25rem; }
.cta p:last-of-type { margin-bottom: 20px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 8px;
}

.btn:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 8px;
}

.btn-ghost:hover { background: #f8fafc; color: var(--text); }

.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related h2 { font-size: 1.1rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 10px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  font-size: 14px;
  color: var(--text3);
}

.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .spacer { flex: 1; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.28rem; }
  main { padding: 28px 20px 56px; }
}
