/* ========== Single Post — NON-AMP (with .sp-wrap) ========== */

/* Base layout */
.single-post {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

.sp-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* Section spacing */
.sp-head,
.sp-featured,
.sp-content,
.sp-actions {
  margin-bottom: 1.8em;
}
.sp-featured { margin-top: 1.2em; }

/* ---------- Post Header ---------- */
.sp-head .post-head {
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.75em;
}
.sp-head .post-title {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.3em;
  color: #111;
}
.sp-head .post-meta {
  font-size: 0.9rem;
  color: #777;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.sp-head .meta-sep { opacity: 0.5; }

/* ---------- Featured Image (same style as single-new) ---------- */

/* Add variables cleanly */
:root {
  --sp-img-mob: 320px;
  --sp-img-tab: 420px;
  --sp-img-desk: 620px;
  --sp-img-lg: 1000px;

  /* Use existing values instead of invalid ones */
  --sp-radius: 8px;
  --sp-soft: #666;
}

.sp-featured {
  margin: 1.2em auto 1.8em;
}

.sp-featured .featured {
  text-align: center;
  width: 100%;
  max-width: 100%;
}

/* IMAGE STYLE */
.sp-featured .featured-img {
  display: block;
  width: 100%;
  max-width: var(--sp-img-mob);
  height: auto;
  border-radius: var(--sp-radius);
  margin-inline: auto;
}

/* Tablet */
@media (min-width: 768px) {
  .sp-featured .featured-img {
    max-width: var(--sp-img-tab);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .sp-featured .featured-img {
    max-width: var(--sp-img-desk);
  }
}

/* Large Screens */
@media (min-width: 1440px) {
  .sp-featured .featured-img {
    max-width: var(--sp-img-lg);
  }
}

/* Caption */
.sp-featured .caption {
  font-size: 13px;
  color: var(--sp-soft);
  margin-top: 8px;
  text-align: center;
}


/* ---------- Content ---------- */
.sp-content .content {
  font-size: 1rem;
  color: #333;
}
.sp-content .content p {
  margin-bottom: 1.2em;
}
.sp-content .content h2,
.sp-content .content h3,
.sp-content .content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}
.sp-content .content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
}

/* ---------- Tags / Footer ---------- */
.sp-actions .post-actions {
  border-top: 1px solid #ddd;
  padding-top: 1em;
}
.sp-actions .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-actions .tags a {
  font-size: 0.85rem;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}
.sp-actions .tags a:hover {
  background: #e0e0e0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sp-wrap { padding: 20px 14px; }
  .sp-head .post-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .sp-head .post-title { font-size: 1.35rem; }
  .sp-content .content { font-size: 0.95rem; }
}
