/* Single post — chrome + .br-prose typography. Reuses blog component styles. */

/* Single post surface is white (overrides the inherited blog page bg). */
body.post-single-template {
  background: #fff;
}
main.post-single {
  --post-w: 758px;
  background: #fff;
}
main.post-single *,
main.post-single *::before,
main.post-single *::after {
  box-sizing: border-box;
}

/* Section rhythm: 30px mobile, 60px desktop, only between rendered siblings. */
main.post-single > * + * {
  margin-top: 30px;
}

/* --- Article header --- */
.post-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: var(--post-w);
  margin-inline: auto;
  padding-top: calc(var(--tl-header-h) + 40px);
  padding-inline: 15px;
}
.post-hero__eyebrow {
  margin: 0;
  font-size: 8px;
  letter-spacing: 1.84px;
  line-height: 1.3;
  text-transform: uppercase;
}
.post-hero__cat {
  font-weight: 700;
  color: var(--blog-accent);
  text-decoration: none;
}
.post-hero__read {
  color: #566580;
}
.post-hero__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.post-hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 41px;
  line-height: 1.05;
  color: var(--blog-ink);
}
.post-hero__sub {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--blog-ink);
}
/* --- Featured image (full content width, wider than the text column) --- */
.post-media {
  max-width: var(--blog-content);
  margin-inline: auto;
  padding-inline: 5px;
}
.post-media__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #0a1424;
  aspect-ratio: 380 / 280;
}
.post-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header byline keeps the larger size on mobile too (per design). */
.post-hero .blog-byline__avatar {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.post-hero .blog-byline__name,
.post-hero .blog-byline__date {
  font-size: 16px;
}
.post-hero .blog-byline__date {
  margin-left: 24px;
}

/* --- Article body (.br-prose) --- */
.post-single__content {
  max-width: var(--post-w);
  margin-inline: auto;
  padding-inline: 15px;
}
.br-prose {
  color: var(--blog-ink);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}
.br-prose > * {
  margin: 0;
}
.br-prose > * + * {
  margin-top: 22px;
}
.br-prose h2 {
  margin-top: 40px;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
  color: var(--blog-ink);
}
.br-prose h3 {
  margin-top: 32px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--blog-ink);
}
.br-prose h4 {
  margin-top: 26px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--blog-ink);
}
.br-prose strong {
  font-weight: 700;
  color: var(--blog-strong, #0b1020);
}
.br-prose a {
  color: var(--blog-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.br-prose ul,
.br-prose ol {
  padding-left: 1.4em;
}
.br-prose ul li {
  list-style: disc;
}
.br-prose ol li {
  list-style: decimal;
}
.br-prose li::marker {
  color: var(--blog-muted);
}
.br-prose li + li {
  margin-top: 8px;
}
.br-prose li > ul,
.br-prose li > ol {
  margin-top: 8px;
}
.br-prose img,
.br-prose figure img,
.br-prose .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.br-prose figure {
  margin-inline: 0;
}
.br-prose figcaption,
.br-prose .wp-element-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--blog-muted);
  text-align: center;
}
.br-prose blockquote {
  margin-top: 34px;
  padding: 0;
  border: 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.35;
  color: var(--blog-ink);
}
.br-prose blockquote p {
  margin: 0;
}
.br-prose blockquote p + p {
  margin-top: 12px;
}
.br-prose blockquote cite,
.br-prose blockquote .wp-block-quote__citation {
  display: block;
  margin-top: 14px;
  font-weight: 500;
  font-size: 14px;
  font-style: normal;
  color: var(--blog-muted);
}
.br-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.br-prose th,
.br-prose td {
  padding: 12px 14px;
  border: 1px solid var(--blog-divider);
  text-align: left;
}
.br-prose thead th {
  background: #f1f5fb;
  font-weight: 700;
}
.br-prose tbody tr:nth-child(even) {
  background: #f8fafc;
}
.br-prose .wp-block-table {
  overflow-x: auto;
}
.br-prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0a1424;
  color: #e2e9f4;
  font-size: 14px;
  line-height: 1.6;
}
.br-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.br-prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3fa;
  color: var(--blog-strong, #0b1020);
}
.br-prose hr {
  margin-top: 40px;
  border: 0;
  border-top: 1px solid var(--blog-divider);
}
.br-prose iframe,
.br-prose video,
.br-prose .wp-block-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
}
.br-prose > :first-child {
  margin-top: 0;
}

/* --- Author + share --- */
.post-author__inner {
  max-width: var(--post-w);
  margin-inline: auto;
  padding-top: 40px;
  padding-inline: 15px;
  border-top: 1px solid #0b1020;
}
.post-author__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
/* No bio — center the name against the avatar. */
.post-author__row--center {
  align-items: center;
}
.post-author__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  font-size: 31px;
}
.post-author__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.post-author__avatar--photo {
  border-radius: 50%;
  object-fit: cover;
}
.post-author__name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: var(--blog-strong, #0b1020);
  text-decoration: none;
}
.post-author__role {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--blog-accent, #0078db);
}
.post-author__creds {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-author__cred {
  position: relative;
  padding-left: 14px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #717b90;
}
.post-author__cred::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--blog-accent, #0078db);
}
.post-author__more {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--blog-accent, #0078db);
  text-decoration: none;
}

@media (hover: hover) {
  .post-author__name:hover,
  .post-author__more:hover {
    text-decoration: underline;
  }
}
.post-author__bio {
  margin: 0;
  max-width: 411px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #717b90;
}
.post-share {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
}
.post-share__label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #566580;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--blog-divider);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.post-share__btn svg {
  display: block;
}
.post-share__btn--x {
  color: #0b1020;
}
.post-share__btn--li {
  color: #0a66c2;
}
.post-share__btn--copy {
  color: #566580;
}
.post-share__copy {
  position: relative;
}
.post-share__copy::after {
  content: attr(data-copied);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: #0b1020;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.post-share__copy.is-copied::after {
  opacity: 1;
}

/* --- Newsletter: reuse the blog band, narrowed to the 758 text column --- */
.post-single .blog-news {
  max-width: var(--post-w);
}

/* --- Keep reading (full content width; cards reuse .blog-card) --- */
.post-related__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: var(--blog-content);
  margin-inline: auto;
  padding-inline: 5px;
}
.post-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--blog-ink);
}
.post-related__title {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: var(--blog-ink);
}
.post-related__all {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: var(--blog-accent);
  text-decoration: none;
  white-space: nowrap;
}
.post-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

@media (min-width: 1024px) {
  main.post-single > * + * {
    margin-top: 60px;
  }

  .post-hero__inner {
    gap: 22px;
    padding-top: calc(var(--tl-header-h) + 56px);
    padding-inline: 0;
  }
  .post-hero__eyebrow {
    font-size: 11px;
  }
  .post-hero__head {
    gap: 22px;
  }
  .post-hero__title {
    font-size: 64px;
  }
  .post-hero__sub {
    font-size: 20px;
  }

  .post-media__figure {
    aspect-ratio: 1130 / 403;
  }

  .post-single__content {
    padding-inline: 10px;
  }
  .br-prose > * + * {
    margin-top: 26px;
  }
  .br-prose h2 {
    margin-top: 60px;
    font-size: 34px;
  }
  .br-prose h3 {
    margin-top: 40px;
    font-size: 26px;
  }
  .br-prose h4 {
    font-size: 20px;
  }
  .br-prose blockquote {
    margin-top: 40px;
    font-size: 32px;
  }

  .post-author__inner {
    padding-top: 60px;
    padding-inline: 10px;
  }

  .post-single .blog-news__grid {
    gap: 20px;
  }
  .post-single .blog-news__title {
    width: 187px;
    max-width: 187px;
  }
  .post-single .blog-news__body {
    flex: 1 1 auto;
    width: auto;
  }
  .post-single .blog-news__form {
    width: 100%;
  }
  .post-single .blog-news__input {
    width: 326px;
  }

  .post-related__head {
    padding-bottom: 16px;
  }
  .post-related__title {
    font-size: 24px;
  }
  .post-related__all {
    font-size: 16px;
  }
  .post-related__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (hover: hover) {
  .post-share__btn {
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .post-share__btn:hover {
    border-color: #cfdaec;
    transform: translateY(-1px);
  }
}

