:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #fafaf8;
  --accent: #2f5d3a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.site-header {
  padding: 24px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-title-el {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0 0;
}

.site-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 6px 0 0;
}
.site-tagline:last-of-type {
  margin-bottom: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-info {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a.nav-contacts-link,
.nav-secondary-group button.nav-share-btn {
  text-decoration: none;
}

.site-nav a.nav-contacts-link {
  color: #7a1f2b;
}

.nav-share-btn {
  color: #7a1f2b;
}

.nav-secondary-group {
  display: contents;
}

.nav-secondary-group > :first-child {
  margin-left: auto;
}

@media (max-width: 600px) {
  .nav-secondary-group {
    display: flex;
    gap: 14px;
    flex-basis: 100%;
    margin-top: 8px;
  }
  .nav-secondary-group > :first-child {
    margin-left: 0;
  }
}

.site-tagline-el {
  font-style: italic;
  opacity: 0.85;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

@media (min-width: 900px) {
  main {
    max-width: 720px;
  }
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-card, .single-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-category {
  color: var(--accent);
  padding: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.meta-sep {
  color: var(--line);
}

.post-image, .post-image-full {
  width: 100%;
  display: block;
  margin-top: 10px;
}

.post-video {
  position: relative;
  padding-top: 56.25%;
  margin-top: 10px;
}
.post-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-refid-caption {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  margin: 12px 14px 0;
}
.post-refid-caption a { color: var(--ink); text-decoration: none; }

.post-body {
  padding: 8px 14px 0;
  color: var(--ink);
}

.post-location {
  padding: 4px 14px 14px;
}
.post-location a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-weight: 600;
}
.pagination a { color: var(--accent); text-decoration: none; }

.category-heading {
  text-transform: capitalize;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 20px;
}

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

.share-widget {
  padding: 0;
}
.share-native-btn {
  width: auto;
  display: inline-block;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  background: none;
  color: var(--muted);
  border: none;
  text-decoration: underline;
  margin-top: 0;
  cursor: pointer;
}
.share-fallback {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.share-fallback.visible { display: flex; }
.share-fallback .share-link {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  margin-top: 0;
  cursor: pointer;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 12px;
}
.back-to-top-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.resolved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid #3B6D11;
  color: #27500A;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  margin-left: auto;
}

.post-municipality {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.post-municipality:hover {
  text-decoration: underline;
}
.post-municipality.active {
  background: var(--accent);
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
}
