:root {
  color-scheme: light;
  --ink: #1b2230;
  --muted: #5c6675;
  --line: #d6dbe5;
  --surface: #ffffff;
  --bg: #e9edf5;
  --header: #2f3f59;
  --accent: #f0c94b;
  --accent-dark: #c9a431;
  --positive: #2f855a;
  --warning: #c0841d;
  --negative: #b03535;
  --shadow: 0 12px 24px rgba(20, 28, 42, 0.16);
  --shadow-soft: 0 6px 12px rgba(20, 28, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #1d2f46;
  z-index: 100;
  box-shadow: 0 10px 20px rgba(24, 34, 51, 0.2);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #1c2a44;
  outline-offset: 3px;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.site-header {
  background: linear-gradient(90deg, #273550, #334968);
  color: #eaf0fb;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 10px 22px rgba(16, 22, 32, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 240, 251, 0.7);
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link {
  color: rgba(234, 240, 251, 0.82);
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
  color: #ffffff;
  opacity: 0.95;
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

.nav-icon {
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  width: fit-content;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(20, 28, 42, 0.22);
}

.btn-primary {
  background: var(--accent);
  color: #1a1f2b;
  box-shadow: 0 6px 12px rgba(26, 31, 43, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-compact {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.text-link {
  color: #2f4a6f;
  font-weight: 600;
}

.text-link[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.hero {
  position: relative;
  color: #eef3fb;
  padding-bottom: 12px;
}

.hero-media {
  height: 260px;
  background: linear-gradient(120deg, rgba(34, 52, 80, 0.75), rgba(45, 67, 100, 0.35)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("/journal/hero.png") center/cover no-repeat;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}

.lead {
  font-size: 1rem;
  max-width: 560px;
  color: rgba(235, 241, 250, 0.92);
}

.section {
  padding: 24px 0 32px;
}

#marknadsanalys,
#kopguider,
#experttester,
#signals {
  scroll-margin-top: 92px;
}

.grid-main {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 14px;
  margin-top: -18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 12px;
}

.panel,
.deal-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 219, 229, 0.8);
}

.panel {
  padding: 8px;
}

.panel-hero {
  padding: 10px;
}

.panel-header {
  margin-bottom: 6px;
}

.panel-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.panel-controls > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #f4f6fb;
  border: 1px solid rgba(214, 219, 229, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.panel-controls label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.panel-controls select {
  appearance: none;
  border: 1px solid rgba(214, 219, 229, 0.8);
  border-radius: 10px;
  padding: 8px 32px 8px 10px;
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2336527a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 10px center/14px 14px no-repeat;
  font-size: 0.9rem;
  color: #20324a;
}

.panel-controls input[type="search"] {
  border: 1px solid rgba(214, 219, 229, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  font-size: 0.9rem;
  color: #20324a;
  min-width: 180px;
}

.panel-controls input[type="search"]::placeholder {
  color: #73829a;
}

.icon-pill {
  background: #f0f3f8;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.75rem;
}

.deal-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dfe6f2;
  box-shadow: 0 18px 32px rgba(20, 30, 45, 0.12);
}

.deal-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.deal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #18283f;
}

.deal-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.64rem;
  color: var(--muted);
}

.deal-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.deal-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  margin-right: 6px;
}

.deal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2a3a;
}

.deal-meter {
  height: 8px;
  background: #e6edf6;
  border-radius: 999px;
  margin: 10px 0 6px;
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #4c9a6a, #86c9a3);
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.deal-specs {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.deal-specs li::before {
  content: "•";
  margin-right: 6px;
  color: #7b879a;
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.status.positive {
  background: #e3f2ea;
  color: var(--positive);
}

.deal-foot {
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  background: #eef1f6;
  padding: 5px 8px;
  border-radius: 999px;
}

.deal-image {
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(180deg, #f6f8fb, #eef2f7);
  border: 1px solid #e1e7f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(20, 30, 45, 0.16);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(20, 30, 45, 0.12);
}

.deal-cta {
  display: block;
  padding: 10px 14px;
  text-align: right;
  color: #2f4a6f;
  font-weight: 600;
  border-top: 1px solid #e3e9f3;
  margin-top: 2px;
  background: #f7f9fd;
}

.panel-list {
  display: grid;
  gap: 6px;
}

.panel-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #dfe6f1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel-link {
  cursor: pointer;
}

.panel-item:hover,
.guide-card:hover,
.comment-card:hover,
.signal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

#marknadsanalys [data-article-card]:first-of-type {
  grid-template-columns: minmax(220px, 42%) 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f3f6fb);
  border: 1px solid #c8d2e1;
  box-shadow: 0 16px 34px rgba(22, 32, 48, 0.12);
}

#marknadsanalys [data-article-card]:first-of-type .panel-thumb {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 8px;
}

#marknadsanalys [data-article-card]:first-of-type h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  line-height: 1.08;
  margin-top: 4px;
}

#marknadsanalys [data-article-card]:first-of-type p {
  font-size: 1rem;
  color: #344255;
  margin-top: 8px;
}

.panel-thumb {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(120deg, #bfc9d8, #eef2f6);
  overflow: hidden;
}

.panel-item h3 {
  font-size: 0.96rem;
}

.topic-line {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b778d;
  margin-top: 2px;
}

.panel-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.editorial-scorecard {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score-pill,
.score-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid #d3dbe8;
  background: #f8fafd;
  color: #32465f;
}

.score-pill {
  font-weight: 700;
  background: #eef3fb;
  color: #1f3553;
}

.score-item--manual {
  background: #f1f4f8;
  color: #2e425d;
}

.score-note {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #52627b;
  line-height: 1.4;
}

.meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.article-empty {
  margin: 10px 4px 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 219, 229, 0.8);
  background: #f5f8fd;
  color: #3d4d64;
  font-size: 0.9rem;
}

.expert-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #f5f7fb;
}

.expert-thumb {
  background: linear-gradient(120deg, #c7d2e1, #eef2f8);
  border-radius: 10px;
  overflow: hidden;
}

.expert-info h3 {
  font-size: 1rem;
}

.expert-price {
  font-weight: 700;
  margin: 4px 0 8px;
}

.expert-tags {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e9eef7;
}

.tag.positive {
  background: #e3f2ea;
  color: var(--positive);
}

.tag.warning {
  background: #f8edd8;
  color: var(--warning);
}

.tag.neutral {
  background: #e6ebf2;
  color: #53607a;
}

.expert-verdict {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.verdict-badge {
  background: #d66b6b;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.verdict-text {
  color: var(--muted);
  font-size: 0.86rem;
}

.sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sidebar .panel {
  align-self: start;
}

.guide-grid {
  display: grid;
  gap: 8px;
}

.guide-card {
  background: #f6f8fb;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #d9e2f2;
  display: grid;
  gap: 4px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.guide-thumb {
  width: 100%;
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(120deg, #b9c8df, #eef2f8);
  overflow: hidden;
}

.guide-card .guide-title {
  font-weight: 700;
  color: #15243a;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.guide-card .guide-text {
  font-size: 0.84rem;
  line-height: 1.3;
}

.guide-text,
.mini-text {
  color: var(--muted);
  font-size: 0.86rem;
}

.signal-grid {
  display: grid;
  gap: 12px;
}

.signal-card {
  position: relative;
  background: linear-gradient(140deg, #f9fbff, #ffffff);
  border-radius: 12px;
  padding: 14px 14px 14px 26px;
  display: grid;
  gap: 10px;
  border: 1px solid #dfe6f2;
  box-shadow: 0 10px 24px rgba(20, 30, 45, 0.12), 0 2px 6px rgba(20, 30, 45, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.signal-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 3px;
  border-radius: 999px;
  background: #c7ceda;
}

.signal-card[data-category="Pris"]::before,
.signal-card[data-category="price"]::before {
  background: #2f6df6;
}

.signal-card[data-category="Risk"]::before,
.signal-card[data-category="risk"]::before {
  background: #d83a3a;
}

.signal-card[data-category="Efterfrågan"]::before,
.signal-card[data-category="demand"]::before {
  background: #1f9d6a;
}

.signal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 30, 45, 0.16), 0 6px 14px rgba(20, 30, 45, 0.12);
}

.signal-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.signal-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
}

.signal-tag.is-risk {
  background: #fbe9e9;
  color: #a24a4a;
}

.signal-tag.is-demand {
  background: #eef4ff;
  color: #3e5a8b;
}

.signal-tag.is-price {
  background: #f5f0e2;
  color: #8b6a1a;
}

.signal-text {
  font-size: 0.95rem;
  color: #2a3648;
  line-height: 1.5;
}

.signal-meta {
  font-size: 0.74rem;
  color: #5b6a80;
  text-align: right;
  justify-self: end;
  background: #eef3fb;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 219, 229, 0.7);
}

.signal-actions {
  display: flex;
  gap: 8px;
}

.signal-microcopy {
  font-size: 0.78rem;
  text-align: right;
  max-width: 220px;
}

.btn-ghost {
  background: #eef3fb;
  border: 1px solid #d2dcee;
  color: #1f3a5f;
}

.btn-ghost:hover {
  background: #e3ebf8;
}

.site-header .btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fbff;
}

.site-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-compact {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.signal-meta-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(140deg, #eef3fb, #f7f9fd);
  border: 1px solid #d3ddee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.signal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.filter-pill {
  border: 1px solid #d5deed;
  background: #f7f9fd;
  color: #3d4656;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill.is-active {
  background: #1f2a3a;
  color: #ffffff;
  border-color: #1f2a3a;
}

.filter-pill:hover {
  background: #eef3fb;
  border-color: #cfd9ec;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1f2a3a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(20, 30, 45, 0.3);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #1f2a3a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(20, 30, 45, 0.28);
  z-index: 55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:active {
  background: #2b3b52;
}

.signal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-disclaimer {
  font-size: 0.75rem;
}

.signal-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #e7ecf3;
}

.signal-user {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2a3a;
  margin-right: 2px;
}

.signal-attribution .trust-score,
.signal-attribution .impact-badge {
  margin-left: auto;
}

.signal-attribution .trust-score {
  order: 3;
}

.signal-attribution .impact-badge {
  order: 4;
}

.rep-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef2f8;
  color: #46546a;
  padding: 3px 8px;
  border-radius: 999px;
}

.signal-level {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef2f8;
  color: #46546a;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal-level::before {
  content: "★";
  font-size: 0.7rem;
  color: #5a6b84;
}

.rep-badge.is-active {
  background: #e8f0ff;
  color: #35507a;
}

.rep-badge.is-analyst {
  background: #eef7f1;
  color: #2f6a4f;
}

.impact-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e6f7ef;
  color: #2f7a57;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cfe8dc;
}

.editorial-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef3fb;
  color: #2f4a8a;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d6deed;
}

.discussion-count {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f5f0e2;
  color: #8b6a1a;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #eadfc4;
}

.trust-score {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
}

.trust-score.trust-high {
  background: #e6f7ef;
  color: #2f7a57;
}

.trust-score.trust-medium {
  background: #fff3d6;
  color: #8b6a1a;
}

.trust-score.trust-low {
  background: #eef2f8;
  color: #46546a;
}

#top-signals .signal-actions,
#top-signals .signal-disclaimer {
  display: none;
}

#top-signals .signal-card.is-featured {
  border-color: #cdd8ea;
  background: linear-gradient(140deg, #f8fafc, #ffffff);
  box-shadow: 0 10px 24px rgba(20, 30, 45, 0.08);
}

.signal-highlight {
  border-radius: 12px;
  border: 1px dashed #d8e1ef;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: linear-gradient(140deg, #f7f9fc, #ffffff);
}

.highlight-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #64718a;
}

.highlight-text {
  font-size: 0.9rem;
  color: #3a4252;
}

.signal-intro {
  font-size: 0.88rem;
  margin-top: 6px;
}

.leaderboard {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e3e8f1;
}

.leaderboard-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.leaderboard-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: #3d4656;
}

.leaderboard-list li {
  display: grid;
  gap: 6px;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.leaderboard-name {
  font-weight: 600;
  color: #1f2a3a;
}

.leaderboard-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.signal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.signal-info {
  margin-top: 6px;
  justify-self: start;
}

.signal-cta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

#signals {
  position: relative;
  overflow: hidden;
}

#signals::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(31, 42, 58, 0.35), transparent 70%);
  pointer-events: none;
}

.signal-note {
  margin-top: 8px;
  font-size: 0.82rem;
}

.discussion-modal .modal-body {
  display: grid;
  gap: 14px;
}

.discussion-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.discussion-card {
  border-radius: 12px;
  border: 1px solid #e1e7f2;
  padding: 12px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}

.discussion-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.discussion-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef3fb;
  color: #2f4a8a;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.discussion-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.discussion-text {
  font-size: 0.9rem;
  color: #3d4656;
}

.discussion-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-top: 1px solid #e7ecf3;
  padding-top: 6px;
}

.discussion-votes {
  font-size: 0.78rem;
  color: #4a5a73;
  background: #eef2f8;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.discussion-vote-note {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.discussion-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.discussion-footnote {
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #dee6f2;
}

.signal-discussion-meta {
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4d5c73;
  background: #eef2f8;
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 18, 26, 0.45);
  z-index: 40;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(540px, 92vw);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(21, 34, 54, 0.28);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.signal-detail-modal {
  width: min(720px, 94vw);
  max-height: 88vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.modal-close {
  border: none;
  background: #f1f4f8;
  color: #243041;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.signal-detail-modal .modal-body {
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.signal-detail {
  border: 1px solid rgba(214, 219, 229, 0.7);
  border-radius: 14px;
  padding: 14px;
  background: #f7f9fc;
  display: grid;
  gap: 10px;
}

.signal-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.signal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.signal-detail-value {
  font-weight: 600;
  color: #1f2b3c;
  margin-top: 4px;
}

.discussion-section {
  display: grid;
  gap: 12px;
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal-help {
  font-size: 0.8rem;
}

.modal-status {
  background: #e9f6ef;
  color: #2f6a4f;
  border: 1px solid #cfe8dc;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #3d4656;
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid #d7deea;
  padding: 10px 12px;
  font: inherit;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.is-modal-open {
  overflow: hidden;
}

.comment-card {
  padding: 8px;
  border-radius: 12px;
  background: #f6f8fb;
}

.insights .insight-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.insight-list li {
  display: grid;
  grid-template-columns: 90px 1fr 88px;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f7fd, #eef3fb);
  border: 1px solid #d9e2f2;
}

.insight-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e9f0ff;
  color: #2f4a8a;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
}

.insight-tag.is-price {
  background: #f6efe1;
  color: #8b6a1a;
}

.insight-tag.is-risk {
  background: #fbe9e9;
  color: #a24a4a;
}

.insight-tag.is-demand {
  background: #e8f2ff;
  color: #3e5a8b;
}

.insight-tag.is-tempo {
  background: #e8f6ef;
  color: #2f7a57;
}

.insight-tag.is-generic {
  background: #eef2f8;
  color: #465670;
}

.insight-date {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.cta {
  background: linear-gradient(135deg, #e7effc, #f7f2e6);
  border: 1px solid #cfd9ec;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(25, 36, 52, 0.14);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: #18283f;
}

.cta p {
  font-size: 0.88rem;
  max-width: 260px;
}

.cta .btn {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.cta::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.2), transparent 70%);
}

.cta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta-pills span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d3557;
  background: rgba(47, 109, 246, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  padding: 28px 0 40px;
  background: #e8edf5;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-links {
  display: grid;
  gap: 6px;
  align-content: start;
}

.footer-account-link {
  display: none;
}

.footer-cta {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 219, 229, 0.6);
}

.article-page {
  position: relative;
  width: min(900px, 92vw);
  margin: 24px auto 40px;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-progress {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 4px;
  background: rgba(210, 218, 231, 0.45);
}

.article-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2f4a6f, #4f6f9e);
  transition: width 0.12s linear;
}

.policy-page {
  width: min(920px, 92vw);
  margin: 24px auto 40px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dfe6f2;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.policy-hero {
  border-bottom: 1px solid rgba(214, 219, 229, 0.7);
  padding-bottom: 14px;
}

.policy-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.policy-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  margin: 8px 0 6px;
  line-height: 1.2;
}

.policy-lead {
  color: #314057;
  max-width: 720px;
}

.policy-section {
  display: grid;
  gap: 8px;
}

.policy-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: #17283f;
}

.policy-section p {
  color: #2c384b;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #2c384b;
}

.policy-links {
  padding-top: 10px;
  border-top: 1px solid rgba(214, 219, 229, 0.7);
}

.article-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 45, 69, 0.75), rgba(31, 45, 69, 0.1)),
    url(\"/journal/images/article-background.png\") center/cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.article-header,
.article-body,
.related {
  position: relative;
  z-index: 1;
}

.article-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-updated {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #5d6a7f;
}

.article-subtitle {
  font-size: 0.95rem;
  color: #1e2b3a;
  margin-top: 6px;
}

.article-excerpt {
  margin-top: 10px;
  color: var(--muted);
}

.article-byline {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #44536a;
}

.article-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.article-actions .btn-ghost {
  background: #eef3fb;
  color: #243956;
  border: 1px solid #cfd9ea;
  box-shadow: none;
}

.article-hero {
  margin: 16px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(214, 219, 229, 0.6);
  background: #0f1a24;
  box-shadow: 0 18px 40px rgba(12, 18, 28, 0.22);
  isolation: isolate;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.08) 0%, rgba(6, 10, 18, 0.2) 100%);
  pointer-events: none;
}

.article-hero img {
  width: 100%;
  height: clamp(220px, 36vw, 360px);
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.article-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: rgba(18, 26, 38, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-toc {
  margin: 14px 0 2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 219, 229, 0.7);
  background: #f7f9fd;
  box-shadow: 0 8px 18px rgba(24, 34, 51, 0.06);
}

.article-toc h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2e405b;
}

.article-toc ul {
  margin: 8px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.article-toc li {
  color: #30435f;
}

.article-toc li.article-toc-sub {
  margin-left: 8px;
  list-style-type: circle;
}

.article-toc a {
  color: inherit;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-method,
.article-author {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 219, 229, 0.7);
  background: #f7f9fc;
  box-shadow: 0 8px 16px rgba(24, 34, 51, 0.06);
}

.article-version {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 219, 229, 0.7);
  background: #f8f8fb;
  box-shadow: 0 8px 16px rgba(24, 34, 51, 0.05);
}

.article-version h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2e405b;
  margin-bottom: 8px;
}

.article-version h3 {
  margin-top: 10px;
  color: #2f425f;
}

.article-version ul {
  margin: 0;
  padding-left: 18px;
  color: #2b3850;
  display: grid;
  gap: 6px;
}

.article-cta {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 219, 229, 0.72);
  background: #f4f8fd;
  box-shadow: 0 8px 16px rgba(24, 34, 51, 0.06);
}

.article-cta h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d4362;
}

.article-cta-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.article-cta-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(192, 206, 226, 0.75);
  background: #ffffff;
  color: #253b57;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.article-cta-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 34, 51, 0.1);
}

.article-cta-item strong {
  font-size: 0.92rem;
}

.article-cta-item span {
  font-size: 0.84rem;
  color: #536582;
}

.article-method h2,
.article-author h2 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2e405b;
  margin-bottom: 8px;
}

.article-method ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #2a3648;
}

.article-method p {
  margin-top: 10px;
  color: #495a74;
  font-size: 0.88rem;
}

.article-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: #f3f7f7;
  border-color: rgba(164, 184, 188, 0.65);
}

.author-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1e3a40;
  background: linear-gradient(135deg, #d9ecf0, #c6dde3);
  border: 1px solid rgba(120, 152, 162, 0.6);
}

.author-copy p {
  margin-top: 4px;
  color: #314863;
}

.kap-premium-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: rgba(25, 36, 52, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}



.kap-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.kap-grid.kap-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kap-block {
  background: #f7f9fc;
  border: 1px solid rgba(214, 219, 229, 0.6);
  border-radius: 14px;
  padding: 14px;
}

.kap-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.kap-stat {
  display: grid;
  gap: 4px;
  background: #ffffff;
  border: 1px solid rgba(214, 219, 229, 0.6);
  border-radius: 12px;
  padding: 10px;
}

.kap-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kap-meter {
  height: 8px;
  background: #e6edf8;
  border-radius: 999px;
  overflow: hidden;
}

.kap-meter-fill {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #1f9d6a, #2f6df6);
}

.kap-note {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.kap-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.kap-risk {
  display: grid;
  gap: 8px;
}

.kap-risk-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
  background: rgba(31, 150, 95, 0.12);
  color: #1f965f;
}

.kap-risk-label.medium {
  background: rgba(38, 79, 140, 0.15);
  color: #264f8c;
}

.kap-risk-label.high {
  background: rgba(202, 66, 66, 0.15);
  color: #ca4242;
}

.article-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-top: 22px;
  color: #162332;
}

.article-body h3 {
  font-size: 1.02rem;
  margin-top: 14px;
  color: #1f2e42;
  letter-spacing: 0.01em;
}

.article-body p {
  margin-top: 10px;
  color: #2a3648;
  line-height: 1.65;
}

.article-body .article-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #2a3648;
  display: grid;
  gap: 6px;
}

.article-body .article-ordered-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #2a3648;
  display: grid;
  gap: 6px;
}

.info-card {
  margin: 14px 0 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(214, 219, 229, 0.7);
  background: #f5f8fd;
  box-shadow: 0 10px 26px rgba(24, 34, 51, 0.08);
}

.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1b2a3d;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: #2a3648;
  display: grid;
  gap: 6px;
}

.info-card--vadbetyder {
  background: #eef3fb;
  border-color: rgba(138, 159, 196, 0.5);
}

.info-card--ramverk {
  background: #f3f7f2;
  border-color: rgba(141, 165, 132, 0.55);
}

.info-card--beslutsmatris {
  background: #f4f6fa;
  border-color: rgba(130, 143, 165, 0.55);
}

.info-card--nastasteg {
  background: #f8f5ef;
  border-color: rgba(184, 163, 122, 0.55);
}

.info-card--tldr {
  background: #eef8f3;
  border-color: rgba(120, 170, 140, 0.5);
}

.info-card--faq {
  background: #f6f4fa;
  border-color: rgba(146, 132, 176, 0.5);
}

.tag.tag-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  background: #eef3fb;
  color: #1f3858;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.related {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.related ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.related-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef3fb;
  color: #1f3858;
}

.related-reason {
  margin-top: 3px;
  font-size: 0.78rem;
  color: #5b6a80;
}

.article-page--weekly-report {
  border: 1px solid #d8dde6;
  box-shadow: 0 10px 24px rgba(23, 29, 38, 0.12);
}

.article-page--weekly-report::before {
  background: linear-gradient(180deg, rgba(40, 50, 66, 0.08), rgba(40, 50, 66, 0.02));
  opacity: 1;
}

.article-page--weekly-report .article-hero {
  background: #11161f;
  border-color: #cfd6e1;
  box-shadow: 0 12px 24px rgba(23, 29, 38, 0.2);
}

.article-page--weekly-report .article-hero img {
  filter: grayscale(100%) contrast(1.05);
}

.article-page--weekly-report .article-tag,
.article-page--weekly-report .tag.tag-category,
.article-page--weekly-report .related-tag {
  background: #2b3442;
  color: #ffffff;
  border-color: #2b3442;
}

.article-page--weekly-report .article-body h2 {
  color: #131a24;
}

.article-page--weekly-report .article-body h3 {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #2b3442;
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.article-page--weekly-report .article-body p,
.article-page--weekly-report .article-body .article-list,
.article-page--weekly-report .article-body .article-ordered-list,
.article-page--weekly-report .article-meta,
.article-page--weekly-report .article-excerpt {
  color: #2a3340;
}

.article-page--weekly-report .info-card,
.article-page--weekly-report .info-card--vadbetyder {
  background: #f5f7fa;
  border-color: #d7dde7;
  box-shadow: none;
}

.article-page--weekly-report .info-card--tldr {
  background: #eef8f3;
  border-left: 4px solid #2f855a;
}

.article-page--weekly-report .article-body p strong:first-child {
  color: #131a24;
}

.article-page--weekly-report .article-method,
.article-page--weekly-report .article-author,
.article-page--weekly-report .article-version,
.article-page--weekly-report .article-cta {
  background: #f5f7fa;
  border-color: #d7dde7;
  box-shadow: none;
}

.article-page--weekly-report .related {
  border-top-color: #d7dde7;
}

@media print {
  body {
    background: #fff;
  }

  .article-progress,
  .article-actions,
  .article-toc,
  .related,
  .skip-link {
    display: none !important;
  }

  .article-page,
  .article-page--weekly-report {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .article-page::before,
  .article-page--weekly-report::before {
    display: none;
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(1180px, calc(100vw - 24px));
  }

  .grid-main {
    grid-template-columns: 1fr;
    margin-top: -10px;
  }

  .hero-content {
    position: static;
    padding: 22px 18px;
    background: linear-gradient(120deg, #2f4060, #3b537a);
    margin-top: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(18, 28, 42, 0.2);
  }

  .hero-media {
    height: 240px;
  }

  .signal-layout {
    grid-template-columns: 1fr;
  }

  .signal-cta {
    justify-items: start;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  #top-signals,
  #top-highlight,
  #top-observers {
    height: fit-content;
  }

  .kap-grid,
  .kap-grid.kap-grid-three {
    grid-template-columns: 1fr;
  }

  .article-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .back-to-top {
    display: inline-flex;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: static;
    top: auto;
    box-shadow: 0 6px 14px rgba(16, 22, 32, 0.22);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .header-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-link {
    white-space: normal;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 6px 8px;
    font-size: 0.78rem;
    justify-content: flex-start;
    transition: none;
  }

  .nav-link:hover {
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid transparent;
    color: rgba(234, 240, 251, 0.82);
  }

  .nav-link:active {
    background: transparent;
    border-radius: 0;
    border-bottom-color: rgba(255, 255, 255, 0.76);
  }

  .header-account {
    display: none;
  }

  .footer-account-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dde7f8;
    border: 1px solid #c7d5ef;
    color: #1f3f67;
    font-weight: 700;
    font-size: 0.82rem;
  }

  .btn.btn-compact {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .hero-content h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.8rem);
    line-height: 1.25;
  }

  .lead {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .section {
    padding: 18px 0 24px;
  }

  .panel,
  .panel-hero {
    padding: 10px;
    border-radius: 12px;
  }

  .panel-item {
    grid-template-columns: 105px 1fr;
    gap: 8px;
  }

  .panel-thumb {
    width: 105px;
    height: 74px;
  }

  .deal-body {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .deal-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .deal-title {
    font-size: 1.05rem;
  }

  .deal-price {
    font-size: 1.28rem;
  }

  .expert-card {
    grid-template-columns: 1fr;
  }

  .expert-thumb {
    height: 180px;
  }

  .signal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .signal-microcopy {
    text-align: left;
    max-width: none;
  }

  .signal-meta-row {
    padding: 10px;
    gap: 6px;
  }

  .signal-stats {
    flex-direction: column;
    gap: 6px;
  }

  .signal-card {
    padding: 12px 12px 12px 24px;
  }

  .signal-actions {
    flex-wrap: wrap;
  }

  .signal-attribution .trust-score,
  .signal-attribution .impact-badge {
    margin-left: 0;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-grid {
    gap: 10px;
  }

  .guide-card {
    padding: 10px;
  }

  .guide-thumb {
    height: 120px;
  }

  .footer-inner,
  .footer-meta {
    grid-template-columns: 1fr;
    display: grid;
    gap: 8px;
  }

  .footer-meta {
    margin-top: 10px;
    padding-top: 10px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-link:hover {
    color: rgba(234, 240, 251, 0.82);
    border-bottom-color: transparent;
    background: transparent;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100vw - 16px);
  }

  .header-inner {
    padding: 10px 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .header-nav {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .hero-media {
    height: 190px;
  }

  .hero-content {
    padding: 16px 14px 18px;
    gap: 6px;
    margin-top: 10px;
    border-radius: 12px;
  }

  .hero-content .btn-primary {
    width: 100%;
  }

  .panel-header h2 {
    font-size: 1rem;
  }

  .panel-controls {
    gap: 8px;
  }

  .panel-controls > div {
    width: 100%;
    justify-content: space-between;
  }

  .panel-controls select {
    width: 100%;
    min-width: 0;
  }

  .panel-item {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .panel-thumb {
    width: 100%;
    height: 150px;
  }

  .deal-meta {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .deal-meta .status {
    font-size: 0.74rem;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1;
  }

  .deal-meta .muted {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .signal-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .signal-meta {
    justify-self: start;
    text-align: left;
  }

  .signal-card::before {
    left: 8px;
  }

  .signal-controls {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .signal-controls::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    white-space: nowrap;
  }

  .toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    border-radius: 10px;
  }

  .modal {
    place-items: end center;
    padding: 0;
  }

  .modal-card {
    width: 100vw;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding: 14px;
    max-height: 92dvh;
  }

  .signal-detail-modal {
    width: 100vw;
    max-height: 92dvh;
  }

  .signal-detail-modal .modal-body {
    max-height: calc(92dvh - 110px);
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .discussion-list {
    max-height: 240px;
  }

  .signal-detail-grid {
    grid-template-columns: 1fr;
  }

  .article-page {
    width: calc(100vw - 14px);
    margin: 12px auto 22px;
    padding: 14px;
    border-radius: 12px;
  }

  .policy-page {
    width: calc(100vw - 14px);
    margin: 12px auto 22px;
    padding: 14px;
    border-radius: 12px;
    gap: 14px;
  }

  .policy-hero h1 {
    font-size: 1.5rem;
  }

  .policy-section h2 {
    font-size: 1.03rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .article-hero img {
    height: clamp(190px, 52vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
