/* Bolagsinfo — uppslagsverk för svenska företag */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
}
a { color: #0050aa; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Source Serif Pro", Georgia, "Times New Roman", serif; font-weight: 600; }

/* Header */
header.site {
  border-bottom: 1px solid #d8d8d8;
  background: #fff;
}
.site-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.site-logo {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}
.site-logo:hover { text-decoration: none; }
.site-logo span.dot { color: #0050aa; }
.site-tagline {
  font-size: 12px;
  color: #6a6a6a;
  font-style: italic;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.site-nav a { color: #444; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero / search */
.hero {
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 1px solid #ececec;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing: -0.5px;
}
.hero .lead {
  margin: 0 0 28px;
  color: #555;
  font-size: 16px;
}
.search {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  background: #fff;
}
.search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 16px;
  background: transparent;
  outline: none;
  font-family: inherit;
}
.search button {
  border: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 0 22px;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.search button:hover { background: #0050aa; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ececec;
  margin-top: 36px;
  border: 1px solid #ececec;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.stats > div {
  background: #fff;
  padding: 14px 12px;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 20px;
  color: #1a1a1a;
}
.stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6a6a6a;
}

/* Page heading */
.page-head {
  padding: 24px 0 12px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 24px;
}
.page-head .crumbs {
  font-size: 12px;
  color: #6a6a6a;
  margin-bottom: 4px;
}
.page-head h1 {
  margin: 0;
  font-size: 28px;
}
.page-head .sub {
  color: #555;
  font-size: 14px;
  margin-top: 4px;
}

/* Layout for company page */
.foretag-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin: 0 0 48px;
}
@media (max-width: 760px) {
  .foretag-grid { grid-template-columns: 1fr; }
}

/* Data table — uppslagsverkstyp */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #ececec;
  vertical-align: top;
}
table.data th {
  width: 38%;
  font-weight: 500;
  color: #555;
  background: #fafafa;
}
table.data td.empty { color: #aaa; font-style: italic; }

/* Section heading — mjukare, med liten accent i stället för hård svart linje */
h2.section {
  font-size: 19px;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f2;
  color: #0f172a;
  letter-spacing: -0.2px;
}
h2.section::before {
  content: "";
  display: inline-block;
  width: 16px; height: 3px;
  border-radius: 2px;
  background: #0050aa;
  vertical-align: middle;
  margin-right: 9px;
  transform: translateY(-3px);
}

/* Sidebar */
aside.side {
  font-size: 13px;
  color: #444;
}
aside.side h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6a6a6a;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ececec;
  font-family: inherit;
}
aside.side ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
aside.side li {
  padding: 6px 0;
  border-bottom: 1px solid #f4f4f4;
}
aside.side li small {
  display: block;
  color: #888;
  font-size: 11px;
}

/* Warnings */
.warning {
  background: #fdf3e0;
  border-left: 3px solid #c87800;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 13px;
}
.warning strong { color: #6b3400; }
.warning ul { margin: 4px 0 0 16px; padding: 0; }

/* Status pill */
.status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 1px solid;
}
.status.ok { color: #1a6f1a; border-color: #b9d8b9; background: #f0f8f0; }
.status.bad { color: #993300; border-color: #e8c0a0; background: #fdf3e8; }
.status.neutral { color: #555; border-color: #ddd; background: #fafafa; }

/* Search results / lists */
ul.lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.lista li {
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}
ul.lista li .titel {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 17px;
  margin-bottom: 2px;
}
ul.lista li .meta {
  font-size: 13px;
  color: #555;
}
ul.lista li .meta span + span:before {
  content: " · ";
  color: #aaa;
}

/* Footer */
footer.site {
  border-top: 1px solid #ececec;
  margin-top: 60px;
  padding: 24px 0 40px;
  font-size: 12px;
  color: #6a6a6a;
}
footer.site .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
footer.site a { color: #555; }

/* Loading / empty */
.loader, .empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-style: italic;
}

/* Misc */
.muted { color: #6a6a6a; }
.small { font-size: 12px; }
.right { text-align: right; }

/* ============================================================
   WOW-PASS — modernt dashboard-lager (kort, djup, graf, rörelse)
   ============================================================ */

/* Mjuka kort */
.card {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(16,24,40,.05);
  padding: 20px 22px;
  margin: 16px 0;
}

/* Hjälte-topp för bolaget */
.hero-co {
  position: relative;
  border: 1px solid #e7ecf3;
  border-radius: 20px;
  background:
    radial-gradient(1200px 200px at 85% -40%, rgba(0,80,170,.10), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 70%);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.06);
  padding: 26px 28px;
  margin: 18px 0 8px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-co .hero-main { flex: 1; min-width: 260px; }
.hero-co .crumbs { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.hero-co h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.hero-co .sub { color: #475569; font-size: 14px; margin: 0 0 12px; }
.hero-co .lead {
  font-size: 16px; line-height: 1.55; color: #1f2937; margin: 0;
  max-width: 60ch;
}
.hero-co .hero-gauge { flex: none; text-align: center; }

/* Statuschip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: .2px;
  border: 1px solid transparent;
}
.chip.ok  { color: #15803d; background: #ecfdf3; border-color: #abefc6; }
.chip.bad { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.chip::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }

/* Highlight-rutor */
.hl-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: 12px; margin: 8px 0 4px; }
.hl-card {
  background: #fff; border: 1px solid #eef0f2; border-radius: 14px;
  border-top: 3px solid var(--acc, #0050aa);
  padding: 15px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hl-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 10px 22px rgba(16,24,40,.09); }
.hl-card .ic { font-size: 22px; line-height: 1; }
.hl-card .val { font-size: 22px; font-weight: 800; color: #0f172a; margin: 8px 0 2px; letter-spacing: -0.4px; }
.hl-card .lbl { font-size: 12px; color: #64748b; }
.hl-card .spark { margin-top: 8px; }

/* Nyckeltals-chips */
.kpi-wrap { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 14px; }
.kpi {
  border: 1px solid #eef0f2; border-radius: 12px; padding: 9px 13px;
  min-width: 120px; max-width: 240px; background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.kpi .k { font-size: 11px; color: #64748b; }
.kpi .v { font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -0.3px; }

/* AI-prosa-kort */
.prose-card { background: #f8fafc; border: 1px solid #eef0f2; border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.prose-card .tag { font-weight: 700; font-size: 11px; letter-spacing: .06em; color: #64748b; margin-bottom: 6px; }
.prose-card p { font-size: 15px; line-height: 1.65; margin: 0; color: #1f2937; }

/* Tabeller – mjukare i wow-läget */
table.data { font-size: 14px; }
table.data th { background: #f8fafc; font-weight: 600; color: #475569; }
table.data th, table.data td { border-bottom: 1px solid #f1f3f5; padding: 9px 12px; }
.pos { color: #16a34a; font-weight: 600; }
.neg { color: #dc2626; font-weight: 600; }

/* Rörelse */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { html.js .reveal, html.js .reveal.in { opacity: 1; animation: none; } }

/* Trendgraf */
.chart-card { padding: 18px 20px 12px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.chart-draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 1.3s ease forwards .15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
