/* EloPriser */

.eov-widget-wrap {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 1.5rem auto;
}

/* ---- Kort ---- */
.eov-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ---- Header / navigation ---- */
.eov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.eov-nav {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: #374151;
  line-height: 1;
  transition: background 0.15s;
}
.eov-nav:hover:not(:disabled) { background: #f3f4f6; }
.eov-nav:disabled { opacity: 0.35; cursor: default; }

.eov-title-wrap {
  text-align: center;
}
.eov-dato {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  text-transform: capitalize;
}
.eov-area {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ---- Highlights ---- */
.eov-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .eov-highlights { grid-template-columns: 1fr; }
}

.eov-stat {
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
}
.eov-billigst { border-left: 3px solid #22c55e; }
.eov-dyreste  { border-left: 3px solid #dc2626; }

.eov-stat-label {
  font-size: 0.72rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.eov-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}
.eov-billigst .eov-stat-val { color: #15803d; }
.eov-dyreste  .eov-stat-val { color: #dc2626; }
.eov-stat-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

/* ---- Chart ---- */
.eov-chart-wrap {
  position: relative;
  height: 240px;
  margin-bottom: 0.75rem;
}
.eov-chart-hist {
  height: 300px;
}

/* ---- Footer / legend ---- */
.eov-footer {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.5rem;
}
.eov-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}
.eov-dot-groen { background: #4ade80; }
.eov-dot-gul   { background: #ca8a04; }
.eov-dot-roed  { background: #dc2626; }

/* ---- Historik header ---- */
.eov-hist-header {
  margin-bottom: 0.75rem;
}
.eov-hist-titel {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.eov-hist-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

/* ---- States ---- */
.eov-loading,
.eov-fejl {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
}
.eov-fejl { color: #dc2626; }

/* ---- Mørkt tema (data-tema="mørk") ---- */
.eov-widget-wrap[data-tema="mørk"] .eov-card {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
.eov-widget-wrap[data-tema="mørk"] .eov-dato  { color: #f9fafb; }
.eov-widget-wrap[data-tema="mørk"] .eov-stat  { background: #111827; }
.eov-widget-wrap[data-tema="mørk"] .eov-nav   { border-color: #4b5563; color: #d1d5db; }
.eov-widget-wrap[data-tema="mørk"] .eov-nav:hover:not(:disabled) { background: #374151; }

/* ---- [morgenpris] ---- */
.ep-morgenpris { font-weight: 600; }
.ep-morgenpris--afventer { font-weight: 400; font-style: italic; }

/* ---- [forfatterboks] – samme design som anmeldelserne (EloReview .elr-author) ---- */
.elr-divider {
  border: none;
  border-top: 1px solid var(--eo-rule, rgba(15,20,25,0.09));
  margin: 40px 0;
}
.elr-author {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.elr-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.elr-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.elr-author__name {
  font-family: var(--eo-serif, "Source Serif 4", Georgia, serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--eo-ink, #0f1419);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.elr-author__role {
  font-family: var(--eo-sans, "Geist", "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--eo-accent, #16a34a);
  margin-bottom: 10px;
}
.elr-author__bio {
  font-family: var(--eo-serif, "Source Serif 4", Georgia, serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--eo-muted, #6b7280);
  margin-bottom: 10px;
}
.elr-author__link {
  font-family: var(--eo-sans, "Geist", "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--eo-ink, #0f1419);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.elr-author__link svg  { width: 12px; height: 12px; display: block; }
.elr-author__link:hover { color: var(--eo-accent, #16a34a); }
@media (max-width: 768px) {
  .elr-author { grid-template-columns: 48px 1fr; }
  .elr-author__avatar { width: 48px; height: 48px; }
}
