/* Single post · Article — template-parts/gf-post-body.php */

.gf-post-body {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(4rem, 7vw, 6rem);
  background: #050507;
  color: #fff;
}

.gf-post-body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffcc00 0%, rgba(255, 204, 0, 0.16) 42%, transparent 74%);
}

.gf-post-body__layout {
  display: grid;
  grid-template-columns: minmax(15.5rem, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.gf-post-rail {
  position: sticky;
  top: 6.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gf-post-share {
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101118;
}

.gf-post-share__label {
  margin: 0 0 0.7rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}

.gf-post-share__list {
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gf-post-share__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gf-post-share__list a:hover {
  border-color: #ffcc00;
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.08);
}

.gf-post-toc {
  margin: 0;
}

.gf-post-toc__box {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101118;
}

.gf-post-toc__summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  list-style: none;
}

.gf-post-toc__summary::-webkit-details-marker {
  display: none;
}

.gf-post-toc__kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}

.gf-post-toc__title {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #fff;
}

.gf-post-toc__list {
  counter-reset: gf-toc;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.gf-post-toc__item {
  margin: 0;
}

.gf-post-toc__item a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.42rem 0;
  color: rgba(255, 255, 255, 0.68) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gf-post-toc__item--h2 a::before {
  counter-increment: gf-toc;
  content: counter(gf-toc, decimal-leading-zero);
  flex: 0 0 auto;
  color: #ffcc00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 0.18rem;
}

.gf-post-toc__item--h3 a {
  padding-left: 1.85rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

.gf-post-toc__item a:hover,
.gf-post-toc__item a.is-active {
  color: #ffcc00 !important;
}

.gf-post-article {
  min-width: 0;
}

.gf-post-prose {
  max-width: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.75;
}

.gf-post-prose > *:first-child {
  margin-top: 0;
}

.gf-post-prose h1,
.gf-post-prose h2,
.gf-post-prose h3,
.gf-post-prose h4,
.gf-post-prose h5,
.gf-page-single-post .gf-post-prose h2,
.gf-page-single-post .gf-post-prose h3 {
  margin: 2rem 0 0.75rem !important;
  scroll-margin-top: 6.25rem;
  font-family: var(--font-display), sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff !important;
}

.gf-post-prose h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem) !important;
}

.gf-post-prose h3,
.gf-post-prose h4 {
  font-size: 1.15rem !important;
}

.gf-post-prose p,
.gf-page-single-post .gf-post-prose p {
  margin: 0 0 1.15rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.74);
}

.gf-post-prose a {
  color: #ffcc00 !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gf-post-prose ul,
.gf-post-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.gf-post-prose li {
  margin: 0 0 0.4rem;
  line-height: 1.65 !important;
}

.gf-post-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid #ffcc00;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

.gf-post-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

.gf-post-prose figure {
  margin: 1.5rem 0;
}

.gf-post-prose .alignleft {
  float: left;
  margin: 0.35rem 1.25rem 1rem 0;
}

.gf-post-prose table {
  width: 100% !important;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.gf-post-prose table td,
.gf-post-prose table th {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  vertical-align: top;
}

.gf-post-prose tr:first-child,
.gf-post-prose tr:first-child td,
.gf-post-prose thead th {
  background: #ffcc00 !important;
  color: #08080a !important;
  font-weight: 700;
}

.gf-post-prose pre,
.gf-post-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gf-post-prose pre {
  overflow-x: auto;
  padding: 1rem;
  background: #101118;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gf-post-author {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin: 2.75rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gf-post-author__avatar img {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.gf-post-author__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}

.gf-post-author__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1.1rem;
  font-weight: 650;
  color: #fff;
}

.gf-post-author__bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  line-height: 1.55;
}

.gf-post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gf-post-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none !important;
  background: #101118;
}

.gf-post-pager__link--empty {
  border: 0;
  background: transparent;
  min-height: 0;
}

.gf-post-pager__link span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a227;
}

.gf-post-pager__link strong {
  font-family: var(--font-display), sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gf-post-pager__link--next {
  text-align: right;
}

.gf-post-pager__link:hover {
  border-color: #ffcc00;
}

.gf-post-pager__link:hover strong {
  color: #ffcc00;
}

@media (max-width: 991px) {
  .gf-post-body__layout {
    grid-template-columns: 1fr;
  }

  .gf-post-rail {
    position: static;
  }
}

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

  .gf-post-pager__link--next {
    text-align: left;
  }

  .gf-post-prose .alignleft {
    float: none;
    margin: 1rem 0;
  }
}
