﻿@charset "UTF-8";
/* ===== Minimal TOR/Skattenytt skeleton ===== */
:root {
  --brand: #13407d; /* dark blue */
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --bg: #f8fafc; /* slate-50 */
  --surface: #ffffff; /* white */
  --border: #e2e8f0; /* slate-200 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb; /* slate-200 */
    --muted: #9ca3af; /* slate-400 */
    --bg: #0b1220;
    --surface: #0f172a;
    --border: #1f2937;
  }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#main-content:focus {
  outline: none;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(to bottom, #ffffff 0%, var(--bg) 100%);
  min-height: 100vh; /* fallback */
  min-height: 100svh; /* bättre på mobiler */
}

.app-wrap {
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

.main {
  flex: 1 0 auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

.site-header {
  text-align: center; /* centrerar innehållet i headern */
  background: var(--surface);
}

.site-header .container {
  padding: 1.25rem 0;
}

.brand {
  display: block;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  color: var(--brand);
  text-decoration: none;
  display: inline-block; /* gör det lättare att centrera visuellt */
  margin-inline: auto; /* säkerställa centrerad placering */
}

.main-nav {
  display: flex;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  justify-content: center; /* centrera länkarna horisontellt */
  text-align: center;
}

.main-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--text);
}

.main-nav a.active,
.main-nav a:hover {
  background: #eff6ff; /* soft brand-tint */
  color: var(--brand);
  text-decoration: none;
}

.main {
  padding: 2rem 0;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: clamp(1rem, 0.6rem + 0.8vw, 1.5rem);
}

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

.site-footer .container {
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ===== Notices ===== */
.notices {
  /* lite extra luft kring rubriken */
}
.notices h1 {
  margin-bottom: 1rem;
}

/* Ingen punktlista, nollställ marginaler */
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Varje notis får vertikal padding och en diskret avskiljare */
.notice-list > li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

/* Första raden saknar avskiljare */
.notice-list > li:first-child {
  border-top: 0;
  padding-top: 0.25rem; /* lite mindre toppmarginal på första */
}

/* Mer luft mellan stycken inom en notis */
.notice-list p {
  margin: 0.5rem 0;
}

.notice-list p + p {
  margin-top: 0.5rem;
}

/* Länkar: följ sajtens brandfärg och håll underline bara på hover */
.notice-list a {
  color: var(--brand);
  text-decoration: none;
}

.notice-list a:hover {
  text-decoration: underline;
}

/* Bilder i äldre notiser: gör dem trevliga och responsiva */
.notice-list img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
}

/* Lite mer luft på större skärmar */
@media (min-width: 768px) {
  .notice-list > li {
    padding: 1.25rem 0;
  }
}
/* ===== Blazor error UI =================================================== */
/* Visas av Blazor vid fel. Döljs som standard och visas med inline style
   (display:block) eller om du själv sätter .show-klassen. */
#blazor-error-ui {
  display: none; /* Blazor sätter display:block vid fel */
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10000;
  /* Tema */
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand); /* markeringsfärg */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  /* Layout & typografi */
  padding: 0.75rem 2.75rem 0.75rem 1rem; /* extra höger för X-knappen */
  max-width: min(92vw, 48rem);
  line-height: 1.4;
  font-size: 0.95rem;
  /* Valfritt: liten fade/slide-in första gången den visas */
}
@media (prefers-reduced-motion: no-preference) {
  #blazor-error-ui {
    animation: errorui-in 0.18s ease-out;
  }
}
