/* Oversiktssider — kjente-vers + lesetekster (foreløpig). Token-broen. */

.overview-main { padding: 48px 0; }
.overview-intro { color: var(--ink-2); margin-bottom: 24px; max-width: 640px; }
.overview-section { margin-bottom: 40px; }
.overview-section h2 { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* kjente vers */
.famous-verse-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.famous-verse-card {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.famous-verse-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.famous-verse-ref {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.famous-verse-text { font-family: var(--font-serif); color: var(--ink); margin: 0; line-height: 1.5; }

/* lesetekster */
.reading-text-list { display: flex; flex-direction: column; gap: 8px; }
.reading-text-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}
.reading-text-card:hover { border-color: var(--gold); }
.reading-text-name { color: var(--ink); font-weight: 500; }
.reading-text-series {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.reading-text-date { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* --- profetier --- */
.prophecy-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.prophecy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prophecy-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.prophecy-summary::-webkit-details-marker { display: none; }
.prophecy-summary:hover { background: var(--paper-2); }
.prophecy-title { font-family: var(--font-serif); font-size: 17px; color: var(--ink); }
.prophecy-cat { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.prophecy-body { padding: 0 18px 18px; }
.prophecy-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.prophecy-ref-label { font-size: 13px; color: var(--muted); }
.prophecy-arrow { color: var(--gold); }
.prophecy-explanation { color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }
.prophecy-verses > summary {
  cursor: pointer;
  color: var(--gold-text);
  font-size: 14px;
  padding: 6px 0;
}
.prophecy-verse-section { margin-top: 12px; }
.prophecy-verse-section h4 { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* --- paralleller --- */
.parallel-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.parallel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.parallel-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.parallel-summary::-webkit-details-marker { display: none; }
.parallel-summary:hover { background: var(--paper-2); }
.parallel-title { font-family: var(--font-serif); font-size: 17px; color: var(--ink); }
.parallel-section { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.parallel-body { padding: 0 18px 18px; }
.parallel-notes { color: var(--ink-2); margin-bottom: 12px; }
.parallel-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.parallel-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border-top: 3px solid var(--border);
}
.parallel-matthew { border-top-color: #2b5bb7; }
.parallel-mark { border-top-color: #2f7d43; }
.parallel-luke { border-top-color: #b5730f; }
.parallel-john { border-top-color: #6b21a8; }
.parallel-gospel { font-weight: 600; font-size: 14px; color: var(--ink); }
.parallel-passage-ref { font-family: var(--font-mono); font-size: 13px; color: var(--gold-text); }
.parallel-no-passage { font-size: 13px; color: var(--muted); font-style: italic; }
.parallel-verses { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.parallel-verse {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.parallel-verse-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  vertical-align: super;
  margin-right: 2px;
}
@media (max-width: 768px) {
  .parallel-columns { grid-template-columns: 1fr 1fr; }
}

/* --- tidslinje --- */
.timeline-period { margin-bottom: 36px; }
.timeline-period-name {
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  margin-bottom: 8px;
}
.timeline-period-desc { color: var(--muted); margin-bottom: 16px; }
.timeline-events { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline-event {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline-event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.timeline-event-title { font-family: var(--font-serif); font-size: 16px; color: var(--ink); }
.timeline-event-year { font-family: var(--font-mono); font-size: 12px; color: var(--gold-text); white-space: nowrap; }
.timeline-event-desc { color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.timeline-event-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* --- lesetekst-detalj --- */
.reading-text-detail-meta { display: flex; gap: 12px; align-items: baseline; margin: 8px 0 24px; }
.reading-text-slot { margin-bottom: 28px; }
.reading-text-alt { border-left: 3px solid var(--gold); padding-left: 16px; margin-bottom: 16px; }
.reading-text-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.reading-text-or span {
  padding: 4px 12px;
  background: var(--gold);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reading-text-or::before, .reading-text-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.reading-text-part { margin-bottom: 20px; }
.reading-text-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 4px;
}
.reading-text-part h2 { margin: 0 0 2px; }
.reading-text-ref-line { color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin-bottom: 12px; }
.reading-text-verses { font-family: var(--font-serif); line-height: 1.8; font-size: 17px; color: var(--ink); }
.reading-text-vnum { color: var(--verse-num); margin-right: 4px; font-size: 12px; font-family: var(--font-ui); }
.reading-text-missing { color: var(--muted); font-style: italic; }
.reading-text-back { display: inline-block; margin-top: 16px; color: var(--gold-text); font-size: 14px; }

/* --- statistikk --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.stat-card {
  text-align: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-value { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.stat-comparison-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-comparison-card h3 { margin-bottom: 10px; }
.stat-comparison-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); border-bottom: 1px solid var(--border); }
.stat-comparison-row:last-child { border-bottom: none; }
@media (max-width: 640px) { .stat-comparison { grid-template-columns: 1fr; } }

.stat-table-wrap { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th, .stat-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.stat-table th { background: var(--paper-2); color: var(--ink); font-weight: 600; position: sticky; top: 0; }
.stat-table td.num, .stat-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-table a { color: var(--gold-text); }

.stat-word-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.stat-word-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
}
.stat-word-tab.active { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.stat-word-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 20px;
  list-style: decimal inside;
  padding: 0;
}
.stat-word-item { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--border); }
.stat-word { color: var(--ink); }
.stat-word-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.stat-word-loading { color: var(--muted); font-style: italic; }

/* Tidslinje-periodefilter (GitHub #6) */
.timeline-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.timeline-filter-btn {
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.timeline-filter-btn:hover { color: var(--ink); border-color: var(--gold); }
.timeline-filter-btn.is-active {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
