/* Hand Coded With Love by We Unfuck */
/* ============================================================
   Blog post layout
   ============================================================ */
.post-cols {
  background: #fff;
  padding: 80px 16px 96px;
}
.post-grid {
  max-width: 1104px; margin: 0 auto; padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 607px) 288px;
  column-gap: 177px;
  align-items: start;
  justify-content: center;
}
.post-head { grid-column: 1; }
.post-article { grid-column: 1; min-width: 0; }
.post-author-slot { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
/* TOC now lives inside the author sidebar, stacked tightly under the author card */
.post-toc-slot { margin-top: 34px; }
/* Desktop: stretch the sidebar to the full article height and let the TOC slot
   fill it, so the sticky TOC (uf.css) has room to travel as the reader scrolls. */
@media (min-width: 1025px) {
  .post-author-slot { align-self: stretch; display: flex; flex-direction: column; }
  .post-toc-slot { flex: 1 1 auto; }
}

/* post head (category / title / meta / tags) */
.post-cat {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700; line-height: 1.3em; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-steel);
}
.post-cat:hover { color: var(--c-primary); }
.post-title {
  font-family: var(--f-display);
  font-size: 46px; font-weight: 400; line-height: 1.2em; letter-spacing: -1.3px;
  text-transform: capitalize;
  color: var(--c-text);
  max-width: 640px;
  margin: 32px 0 34px;
}
.post-meta {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700; line-height: 23.8px; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin: 0 0 22px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 8px; margin: 0 0 132px; }
.post-tags a {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 600; line-height: 23.8px; letter-spacing: 0.4px;
  text-transform: capitalize; color: var(--c-secondary);
}
.post-tags a:hover { color: var(--c-primary); }
.post-tags a:not(:last-child)::after { content: ","; }

/* article typography */
.post-article p, .post-article li {
  font-size: 18px; font-weight: 400; line-height: 23.4px; letter-spacing: -0.2px;
  color: var(--c-text);
}
.post-article p { margin: 0 0 27px; }
.post-article ul, .post-article ol { margin: 0 0 27px; padding-left: 40px; }
.post-article ul { list-style: disc; }
.post-article h2 {
  font-family: var(--f-display);
  font-size: 32px; font-weight: 400; line-height: 1.3em; letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 72px 0 24px;
}
.post-article h3 {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 600; line-height: 1.2em; letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 72px 0 20px;
}
.post-article h4 { font-family: var(--f-display); font-size: 20px; font-weight: 700; margin: 32px 0 16px; }
.post-article img { display: block; margin: 32px 0; height: auto; }
.post-article figure { margin: 32px 0; }
.post-article figure img { margin: 0; }
.post-article blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 32px 0; padding: 8px 0 8px 24px;
  font-style: italic;
}
.post-article a { color: var(--c-secondary); text-decoration: underline; }
.post-article a:hover { color: var(--c-primary); }
.post-article table { border-collapse: collapse; margin: 32px 0; width: 100%; }
.post-article th, .post-article td {
  border: 1px solid #d9dce1; padding: 10px 12px;
  font-size: 16px; line-height: 1.4;
}
.post-article th { font-weight: 700; background: var(--c-gray-150); }

/* inline mid-post CTA button */
.post-article .post-close { margin-top: 65px; }
.post-article .post-cta { margin: 16px 0 112px; }
.post-article .post-cta a { text-decoration: none; color: #fff; }
.post-article .post-cta a:hover { color: #fff; }

/* sidebar author card */
.post-author { margin-bottom: 32px; }
.post-author__label {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 500; line-height: 26px; letter-spacing: normal;
  color: var(--c-text);
  margin: 0 0 24px;
}
.post-author__head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.post-author__head img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.post-author__name {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 800; line-height: 1em; letter-spacing: normal; text-transform: none;
  color: var(--c-text); margin: 0;
}
.post-author__bio p {
  font-size: 15px; font-weight: 400; line-height: 19.5px; letter-spacing: 0;
  color: var(--c-text);
  margin: 0 0 16px;
}
.post-author__bio em { font-style: italic; }
.post-author__social { display: flex; gap: 10px; margin-top: 16px; }
.post-author__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-text); color: #fff;
  transition: background .3s;
}
.post-author__social a:hover { background: var(--c-primary); }

/* share + related */
.post-share {
  display: flex; align-items: center; gap: 24px;
  margin: 0 0 64px;
  border-top: 1px solid var(--c-gray-150);
  border-bottom: 1px solid var(--c-gray-150);
  padding: 26px 10px;
}
.post-share h4 { font-family: var(--f-display); font-size: 16px; font-weight: 500; line-height: 26px; letter-spacing: normal; margin: 0; }
.post-share__icons { display: flex; gap: 10px; }
.post-share__icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-text); color: #fff;
  transition: background .3s;
}
.post-share__icons a:hover { background: var(--c-primary); }
.post-related h4 {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 400; line-height: 1.2em; letter-spacing: -0.4px;
  margin: 0 0 31px;
}
.post-related article { margin-bottom: 31px; }
.post-related article:last-child { margin-bottom: 0; }
.post-related a {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 800; line-height: 19.2px; letter-spacing: normal;
  color: var(--c-text);
  text-decoration: none;
}
.post-related a:hover { color: var(--c-primary); }

/* post FAQ reuses svc-faq (service.css) */

@media (max-width: 1024px) {
  .post-grid { display: block; }
  .post-author-slot { margin-top: 48px; }
  .uf-toc.uf-toc--sticky { position: static; max-height: none; }
}
@media (max-width: 767px) {
  .post-cols { padding-top: 48px; }
  /* .post-cols already supplies the 16px side gutter; drop .post-grid's
     duplicate padding so the total is 1rem, not 2rem, on each side. */
  .post-grid { padding-left: 0; padding-right: 0; }
  .post-title { font-size: 33px; }
  .post-tags { margin-bottom: 64px; }
  .post-meta, .post-tags a, .post-cat { font-size: 14px; }
  .post-toc-slot { display: block; margin: 0 0 34px; }
}

/* inline post FAQ accordion */
.post-faq { margin: 0 0 48px; }
.post-faq details { border-bottom: 1px solid #e5e7eb; }
.post-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  list-style: none; cursor: pointer;
  font-family: var(--f-display);
  font-size: 18px; font-weight: 600; line-height: 23.4px; letter-spacing: -0.2px;
  color: var(--c-text);
  padding: 21.3px 0;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq .svc-faq__q { color: var(--c-secondary); }
.post-faq details[open] .svc-faq__q { color: var(--c-text); }
.post-faq .svc-faq__icon { flex: 0 0 auto; display: inline-flex; color: var(--c-text); }
.post-faq .svc-faq__icon svg { width: 13px; height: 15px; fill: currentColor; }
.post-faq .svc-faq__icon--minus { display: none; }
.post-faq details[open] .svc-faq__icon--minus { display: inline-flex; }
.post-faq details[open] .svc-faq__icon--plus { display: none; }
.post-faq .svc-faq__a { padding: 0 0 20px; }
.post-faq .svc-faq__a p { margin: 0 0 16px; }
