/* Post pages — The Store Lab */

.post-page {
  background: #ffffff;
  color: #000;
}

.post-page .nav-links a[aria-current="page"],
.post-page .mobile-link[aria-current="page"],
.post-page .footer-bottom-links a[aria-current="page"] {
  color: var(--ref-accent);
}

.post-shell {
  background: #ffffff;
}

/* Wrap */
.post-wrap {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.post-hero {
  background: #fff;
  padding: 114px 0 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #888;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-breadcrumbs a { color: #888; }

.post-breadcrumbs a:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-color: var(--ref-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-breadcrumbs span { opacity: 0.4; }

.post-eyebrow {
  margin: 0 0 16px;
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.post-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  color: #000;
}

.post-lead {
  max-width: 680px;
  margin-top: 18px;
  color: #4a4a4a;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.72;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-top: 22px;
  color: #888;
  font-size: 0.88rem;
  font-weight: 600;
}

.post-meta span:first-child {
  color: #333;
  font-weight: 700;
}

/* Post body */
.post-body {
  padding: 44px 0 72px;
}

/* TOC */
.post-toc {
  margin-bottom: 44px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.post-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  background: #fff;
  transition: background 0.15s;
}

.post-toc__header:hover { background: #fafafa; }

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

.post-toc__header span {
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.post-toc__header svg {
  flex-shrink: 0;
  color: #888;
  transition: transform 0.22s ease;
}

.post-toc[open] .post-toc__header svg { transform: rotate(180deg); }

.post-toc__nav { padding: 4px 22px 18px; }

.post-toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 18px;
  counter-reset: toc;
}

.post-toc__list li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.post-toc__list a {
  display: block;
  padding: 7px 10px 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #333;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s, padding-left 0.15s;
}

.post-toc__list a:hover {
  border-left-color: var(--ref-accent);
  background: rgba(99, 244, 76, 0.07);
  color: #000;
  padding-left: 16px;
}

/* Post content */
.post-content {
  min-width: 0;
}

.article-section {
  padding: 0 0 32px;
  scroll-margin-top: 90px;
}

.article-section + .article-section { padding-top: 8px; }

.article-section h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
  color: #000;
}

.article-section h2:first-child { margin-top: 0; }

.article-section p {
  color: #3d3d3d;
  font-size: 1.03rem;
  line-height: 1.82;
}

.article-section p + p { margin-top: 18px; }

.article-section ul,
.article-section ol {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-left: 22px;
  color: #3d3d3d;
  font-size: 1.03rem;
  line-height: 1.75;
}

/* Inline CTA */
.post-inline-cta,
.article-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid #000;
  border-radius: 999px;
  background: var(--ref-accent);
  color: #000;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.post-inline-cta:hover,
.article-inline-cta:hover {
  background: #000;
  color: #fff;
  box-shadow: 5px 5px 0 var(--ref-accent);
  transform: translateY(-2px);
}

/* Primary CTA (end of article) */
.post-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 40px;
  padding: 0 28px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.post-primary-cta:hover {
  background: var(--ref-accent);
  color: #000;
  box-shadow: 5px 5px 0 #000;
  transform: translateY(-2px);
}

/* Related posts */
.post-related {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-related__label {
  margin: 0 0 16px;
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.post-related__links {
  display: grid;
  gap: 10px;
}

.post-related__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 1.02rem;
  font-weight: 700;
  transition: color 0.15s;
}

.post-related__link::before {
  content: '→';
  color: var(--ref-accent);
  transition: transform 0.18s;
}

.post-related__link:hover { color: #1a7d12; }
.post-related__link:hover::before { transform: translateX(3px); }

/* Footer CTA */
.post-footer-cta { padding: 0 0 72px; }

.post-footer-cta .cta-shell {
  border-radius: 20px;
  background: #000;
  padding: clamp(32px, 5vw, 54px);
}

.post-footer-cta .cta-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.post-footer-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}

.post-footer-cta p {
  margin-top: 16px;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.post-footer-cta .cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.post-footer-cta .cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.post-footer-cta .cta-links a:hover {
  background: var(--ref-accent);
  border-color: var(--ref-accent);
  color: #000;
}

/* Responsive */
@media (max-width: 680px) {
  .post-hero { padding: 96px 0 40px; }
  .post-hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .post-body { padding: 32px 0 56px; }
  .post-footer-cta { padding-bottom: 56px; }
  .post-footer-cta .cta-links { flex-direction: column; }
  .post-footer-cta .cta-links a { width: 100%; }
}

@media (max-width: 440px) {
  .post-wrap { padding: 0 16px; }
  .post-hero { padding: 84px 0 36px; }
  .post-primary-cta { width: 100%; }
  .post-inline-cta,
  .article-inline-cta { width: 100%; }
}
