/* Collectron — single blog post styles (centralized from blog-post.html). Consumed by the static single AND the WP Theme Builder single template. */

/* =============================================================
   POST HERO
   ============================================================= */
.post-hero {
  background-color: var(--c-indigo);
  background-image: url('images/stock/corporate-contract-agreement.webp');
  background-size: cover;
  background-position: center 40%;
  padding: 0 var(--pad-h);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 66, 0.88);
  z-index: 0;
}
.post-hero__content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(clamp(40px, 5vw, 64px) + 66px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.post-hero__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-navy);
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 11px;
  border-radius: 100px;
  display: inline-block;
  line-height: 1.4;
  margin-bottom: 28px;
}
.post-hero__h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--tracking);
  color: #F2F2F3;
  margin-bottom: 24px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #F2F2F3;
  flex-shrink: 0;
}
.post-hero__author-name {
  font-size: 14px;
  font-weight: 600;
  color: #F2F2F3;
  text-decoration: none;
  transition: color 140ms var(--ease);
}
.post-hero__author-name:hover {
  color: var(--c-soft-blue);
}
.post-hero__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}
.post-hero__date,
.post-hero__read-time {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-dim-dark);
}
.post-hero__dot {
  font-size: 14px;
  color: var(--c-dim-dark);
}


/* =============================================================
   ARTICLE LAYOUT
   ============================================================= */
.article-section {
  background: var(--c-surface);
  padding: clamp(48px, 6vw, 72px) var(--pad-h) var(--pad-v);
}
.article-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
    gap: 64px;
  }
}


/* =============================================================
   ARTICLE BODY (rich text)
   ============================================================= */
.article-body {
  max-width: 720px;
  min-width: 0;
}
.article-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.article-body p:last-child {
  margin-bottom: 0;
}
.article-body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-top: 48px;
  margin-bottom: 20px;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-body h2 + h3 {
  margin-top: 24px;
}
.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.article-body li:last-child {
  margin-bottom: 0;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--c-surface-alt);
  border-radius: 8px;
  position: relative;
}
.article-body blockquote p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-navy);
  margin-bottom: 0;
  font-style: italic;
}
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: var(--c-text-muted);
}
.article-body hr {
  border: none;
  height: 1px;
  background: var(--c-border);
  margin: 40px 0;
}
.article-body a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 140ms var(--ease);
}
.article-body a:hover {
  color: var(--c-blue-hover);
}
.article-body strong {
  font-weight: 600;
  color: var(--c-navy);
}
.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 32px 0;
}
.article-body figure {
  margin: 32px 0;
}
.article-body figcaption {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 10px;
  text-align: center;
}


/* =============================================================
   SIDEBAR
   ============================================================= */
.article-sidebar {
  display: none;
}
@media (min-width: 960px) {
  .article-sidebar {
    display: block;
  }
}
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Resource CTA card */
.sidebar-cta {
  background: var(--c-navy);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(102, 149, 255, 0.12) 0%, transparent 60%);
}
.sidebar-cta__content {
  position: relative;
  z-index: 1;
}
.sidebar-cta__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-soft-blue);
  margin-bottom: 12px;
}
.sidebar-cta__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking);
  color: #F2F2F3;
  margin-bottom: 12px;
}
.sidebar-cta__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-dim-dark);
  margin-bottom: 20px;
}
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Table of contents */
.sidebar-toc {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 24px;
}
.sidebar-toc__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-bottom: 16px;
}
.sidebar-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-toc__link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-text-muted);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(4, 30, 66, 0.05);
  transition: color 140ms var(--ease);
}
.sidebar-toc__link:last-child {
  border-bottom: none;
}
.sidebar-toc__link:hover {
  color: var(--c-blue);
}
.sidebar-toc__link.is-active {
  color: var(--c-blue);
  font-weight: 600;
}
.sidebar-toc__link--sub {
  padding-left: 16px;
  font-size: 12px;
}


/* =============================================================
   ARTICLE FOOTER
   ============================================================= */
.article-footer {
  background: var(--c-surface);
  padding: 0 var(--pad-h);
}
.article-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Tags + share row */
.article-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.article-footer__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-footer__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-surface-alt);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.article-footer__tag:hover {
  color: var(--c-blue);
  background: rgba(0, 25, 255, 0.06);
}
.article-footer__share {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-footer__share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
}
.article-footer__share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--c-text-muted);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.article-footer__share-link:hover {
  color: var(--c-blue);
  background: rgba(0, 25, 255, 0.06);
}
.article-footer__share-link svg {
  width: 18px;
  height: 18px;
}

/* Author bio */
.article-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 0;
}
.article-author__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  flex-shrink: 0;
}
.article-author__info {
  display: flex;
  flex-direction: column;
}
.article-author__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
  text-decoration: none;
  transition: color 140ms var(--ease);
}
.article-author__name:hover {
  color: var(--c-blue);
}
.article-author__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.article-author__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted);
  max-width: 52ch;
}


/* =============================================================
   RELATED POSTS
   ============================================================= */
.related-posts {
  background: var(--c-surface-alt);
  padding: var(--pad-v) var(--pad-h);
}
.related-posts__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-posts__header {
  margin-bottom: 40px;
}
.related-posts__h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) {
  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reuse post-card styles from archive */
.post-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(4, 30, 66, 0.04);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(4, 30, 66, 0.08);
  transform: translateY(-3px);
}
.post-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.post-card__img-wrap::before {
  content: '';
  display: block;
  padding-top: 66.667%;
}
.post-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}
.post-card__img-wrap:hover img {
  transform: scale(1.03);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(0, 25, 255, 0.06);
  padding: 4px 10px;
  border-radius: 100px;
}
.post-card__read-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-muted);
}
.post-card__title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-bottom: 14px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.post-card__title:hover {
  color: var(--c-blue);
}
.post-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  flex: 1;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.post-card__date {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-muted);
}
.post-card__read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.post-card__read-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--c-blue);
  transition: width 220ms var(--ease);
}
.post-card__read-link:hover::after {
  width: 100%;
}
.post-card__read-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
