/* ===================================
   SINGLE POST — Article detail
   =================================== */

/* ---------- Hero ---------- */
.sp-hero {
  position: relative;
  margin: -105px 20px 0;
  height: 487px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  border-radius: 20px;
}
.sp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sp-hero__breadcrumb-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 20px 0;
}
.sp-hero .archive-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.sp-hero .archive-hero__breadcrumb-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sp-hero .archive-hero__breadcrumb-sep {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  color: #fff;
}
.sp-hero .archive-hero__breadcrumb-link {
  padding: 8px;
  font-family: var(--font-sporting);
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-radius: 5px;
  transition: all 0.2s;
  text-decoration: none;
}
.sp-hero .archive-hero__breadcrumb-link:hover {
  text-decoration: underline;
}
.sp-hero .archive-hero__breadcrumb-link--current {
  pointer-events: none;
}
.sp-hero__back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-sporting);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.sp-hero__back:hover {
  opacity: 0.7;
}
.sp-hero__back svg {
  flex-shrink: 0;
}
.sp-hero__title {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  text-align: center;
  max-width: 1000px;
  line-height: 1.3;
}
.sp-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 11px;
}
.sp-hero__tag {
  padding: 6px 18px;
  border: 1px solid #fff;
  border-radius: var(--radius-sm);
  font-size: 11px;
  text-transform: uppercase;
}
.sp-hero__date,
.sp-hero__author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-hero__date svg,
.sp-hero__author svg {
  flex-shrink: 0;
}
.sp-hero__sep {
  width: 1px;
  height: 14px;
  background: #fff;
}

/* ---------- Layout (content + sidebar) ---------- */
.sp-layout {
  max-width: var(--max-w);
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

/* ---------- Article content ---------- */
.sp-content {
  min-width: 0;
}
.sp-content__body {
  font-family: var(--font-sporting);
  font-size: 16px;
  line-height: 25px;
  color: var(--black);
}
.sp-content__body > *:first-child {
  margin-top: 0;
}

/* Lead paragraph */
.sp-content__body > p:first-of-type {
  font-weight: 700;
  font-size: 18px;
  line-height: 25px;
}

/* Headings */
.sp-content__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  line-height: 1.2;
  margin: 50px 0 18px;
  color: var(--black);
}
.sp-content__body h3 {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 30px;
  line-height: 35px;
  margin: 40px 0 14px;
  color: var(--black);
}
.sp-content__body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 30px 0 12px;
  color: var(--black);
}

/* Paragraphs */
.sp-content__body p {
  margin: 0 0 20px;
}

/* Images */
.sp-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin: 24px 0;
  display: block;
}
.sp-content__body figure {
  margin: 24px 0;
}
.sp-content__body figure img {
  margin: 0;
}
.sp-content__body figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  text-align: center;
}

/* Links */
.sp-content__body a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sp-content__body a:hover {
  color: var(--green);
}

/* Lists */
.sp-content__body ul,
.sp-content__body ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.sp-content__body li {
  margin-bottom: 8px;
}

/* Blockquote */
.sp-content__body blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--green);
  background: #f9f9f9;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.sp-content__body blockquote p:last-child {
  margin-bottom: 0;
}

/* Video / iframes */
.sp-content__body iframe,
.sp-content__body video {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9;
  margin: 24px 0;
}

/* WP Galleries / columns */
.sp-content__body .wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}
.sp-content__body .wp-block-column {
  flex: 1;
}

/* ---------- Share bar ---------- */
.sp-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border: 1px solid var(--black);
  border-radius: var(--radius-sm);
  margin-top: 50px;
}
.sp-share__label {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}
.sp-share__icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-share__icons a,
.sp-share__icons button {
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.sp-share__icons a:hover,
.sp-share__icons button:hover {
  color: var(--green);
}

/* ---------- TOC Sidebar ---------- */
.sp-toc {
  position: sticky;
  top: 120px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 200px;
}
.sp-toc__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sporting);
  font-weight: 400;
  font-size: 15px;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}
.sp-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-toc__link {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 14px;
  line-height: 23px;
  color: #999;
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color .2s, border-color .2s;
}
.sp-toc__link:hover {
  color: var(--black);
}
.sp-toc__link--active {
  color: var(--black);
  border-left-color: var(--green);
}
.sp-toc__link--sub {
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
  padding-left: 30px;
}

/* ---------- Related articles ---------- */
.sp-related {
  max-width: var(--max-w);
  margin: 0 auto 80px;
  padding: 0 var(--side-pad);
  text-align: center;
}
.sp-related__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  color: var(--black);
  margin-bottom: 40px;
  text-transform: lowercase;
}
.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.sp-related__btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s;
}
.sp-related__btn:hover {
  background: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .sp-layout {
    padding: 0 60px;
    gap: 40px;
  }
}
@media (max-width: 960px) {
  .sp-layout {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }
  .sp-toc {
    display: none;
  }
  .sp-hero {
    height: 380px;
    border-radius: 16px;
    margin: -105px 15px 0;
  }
  .sp-hero__overlay {
    border-radius: 16px;
  }
  .sp-hero__inner {
    padding: 30px;
  }
  .sp-hero__title {
    font-size: 24px;
  }
  .sp-related__grid {
    grid-template-columns: 1fr 1fr;
  }
  .sp-related {
    padding: 0 30px;
  }
}
@media (max-width: 600px) {
  .sp-hero {
    height: 300px;
    border-radius: 12px;
    margin: -105px 10px 0;
  }
  .sp-hero__overlay {
    border-radius: 12px;
  }
  .sp-hero__inner {
    padding: 20px;
  }
  .sp-hero__title {
    font-size: 20px;
  }
  .sp-hero__meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 10px;
  }
  .sp-layout {
    padding: 0 15px;
    margin-bottom: 40px;
  }
  .sp-content__body h2 {
    font-size: 26px;
  }
  .sp-content__body h3 {
    font-size: 22px;
  }
  .sp-share {
    flex-direction: column;
    gap: 14px;
  }
  .sp-related {
    padding: 0 15px;
  }
  .sp-related__grid {
    grid-template-columns: 1fr;
  }
  .sp-related__title {
    font-size: 26px;
  }
}
