:root {
  --bg-deep: #042f2e;
  --bg-emerald: #064e3b;
  --accent-gold: #fbbf24;
  --accent-sky: #0284c7;
  --card-img-pad: 16px;
  --card-img-bg: radial-gradient(circle at center, #0f294a 0%, #050f1f 100%);
}

body.modern-gis-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

.hero-bg {
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 18% 80%, rgba(2, 132, 199, 0.22) 0%, transparent 45%),
    linear-gradient(135deg, #042f2e 0%, #064e3b 55%, #022c22 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gold-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.btn-sky-grad {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px -6px rgba(2, 132, 199, 0.55);
}

.btn-sky-grad:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.speed-post-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 380px;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.speed-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 132, 199, 0.55);
  box-shadow: 0 18px 36px -14px rgba(2, 132, 199, 0.26);
}

.post-media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--card-img-bg);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--card-img-pad);
}

.post-media-frame a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.post-media-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}

.post-media-frame.mode-cover {
  padding: 0;
}

.post-media-frame.mode-cover a,
.post-media-frame.mode-cover img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.speed-post-card:hover .post-media-frame img {
  transform: scale(1.03);
}

.post-article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #064e3b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid #0284c7;
  padding-left: 0.75rem;
}

.post-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.post-article-body p {
  margin-bottom: 0.75rem;
  color: #334155;
}

.post-article-body ul,
.post-article-body ol {
  margin-left: 1.35rem;
  margin-bottom: 0.75rem;
  list-style: disc;
  color: #334155;
}

.post-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.85rem;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.25);
  margin: 0.85rem auto;
  display: block;
}