/* Guide page: a normal scrolling content page, unlike the single-viewport
   map app — override the app shell's no-scroll body rules. */
body.guide-body {
  height: auto;
  overflow: visible;
  display: block;
}

.guide-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* padomi.html only (id-scoped, not the shared .back-link class — every
   other content page's back-link points *up* to padomi.html itself, a
   different relationship than this one's "back to home"). Redundant with
   .mobile-bottom-nav's "Sākums" at the same width that nav appears
   (900px, style.css) — kept on desktop, where there's no bottom nav. */
@media (max-width: 900px) {
  #hub-back-link {
    display: none;
  }
}

.guide-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.guide-lead {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.guide-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .guide-cols {
    grid-template-columns: 1fr;
  }
}

.guide-do,
.guide-dont {
  border-radius: var(--radius-btn);
  padding: 14px 16px;
}

.guide-do {
  background: rgba(12, 163, 12, 0.08);
  border: 1px solid rgba(12, 163, 12, 0.25);
}

.guide-dont {
  background: rgba(208, 59, 59, 0.08);
  border: 1px solid rgba(208, 59, 59, 0.25);
}

.guide-do h3,
.guide-dont h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.guide-do h3 {
  color: #0ca30c;
}

.guide-dont h3 {
  color: var(--danger);
}

.guide-do ul,
.guide-dont ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.guide-do li,
.guide-dont li {
  margin-bottom: 6px;
}

.guide-report-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-report-list li {
  margin-bottom: 8px;
}

.guide-report-list a {
  color: var(--brand-accent);
}

.guide-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-lead-standalone {
  margin: 0 0 20px;
}

.guide-info {
  border-radius: var(--radius-btn);
  padding: 14px 16px;
  background: rgba(42, 120, 214, 0.08);
  border: 1px solid rgba(42, 120, 214, 0.25);
}

.guide-info h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--series-1);
}

.guide-info ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.guide-info li {
  margin-bottom: 6px;
}

/* Guide hub */

.hub-category {
  margin: 28px 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hub-category:first-of-type {
  margin-top: 8px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hub-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hub-card p {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hub-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-accent);
}

/* Only ~2.5 cards fit on a phone screen at the desktop padding/type scale
   above — tighten both so roughly 4 fit instead. Placed after the base
   .hub-card* rules on purpose: these have equal selector specificity, so
   whichever comes later in source order wins the tie, regardless of which
   one is wrapped in a media query. */
@media (max-width: 640px) {
  .hub-card {
    padding: 12px 14px;
  }

  .hub-card h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .hub-card p {
    margin-bottom: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

/* Stories */

.story-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.story-place {
  font-weight: 700;
  font-size: 0.95rem;
}

.story-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.story-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.story-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.story-source:hover {
  text-decoration: underline;
}
