/*
 * Blog detail editorial styles.
 *
 * Keep long-form reading rules isolated from the marketing-site typography.
 */

html.blog-detail-native-scroll {
  scroll-behavior: auto !important;
}

body[data-page="blog-detail"] {
  --article-copy: #292929;
  --article-muted: #5f6360;
  --article-rule: #dededb;
  --article-accent: var(--at-theme-primary);
  --article-link: #963600;
  --article-link-hover: #c64600;
}

.article-progress {
  position: fixed;
  z-index: 100000;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.article-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff5701, #ff8a50);
  box-shadow: 0 1px 8px rgba(255, 87, 1, 0.3);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.article-hero__title {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.article-byline {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  text-align: left;
}

.article-byline__avatar {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--at-neutral-900);
  color: #fff;
  font-family: var(--at-ff-body);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  place-items: center;
}

.article-byline__details {
  display: grid;
  gap: 3px;
}

.article-byline__name {
  color: var(--at-neutral-900);
  font-family: var(--at-ff-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.article-byline__meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--article-muted);
  font-family: var(--at-ff-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.article-byline__separator {
  color: #a3a3a0;
}

.article-hero__image {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  object-fit: cover;
}

.article-prose {
  width: min(100%, 720px);
  margin: 20px auto 64px;
  color: var(--article-copy);
  font-family: "Source Serif 4", Charter, "Bitstream Charter", "Sitka Text",
    Cambria, Georgia, serif;
  font-size: clamp(1.1875rem, 1.5vw, 1.25rem);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.article-prose ::selection {
  background: #ffd8c4;
  color: #171717;
}

.article-prose ::-moz-selection {
  background: #ffd8c4;
  color: #171717;
}

.article-prose p {
  margin: 0 0 1.25em;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  color: var(--at-neutral-900);
  font-family: var(--at-ff-heading);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.article-prose h2 {
  margin: 1.75em 0 0.6em;
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.2;
}

.article-prose h3 {
  margin: 1.6em 0 0.55em;
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  line-height: 1.25;
}

.article-prose h4 {
  margin: 1.5em 0 0.5em;
  font-size: 1.25rem;
  line-height: 1.3;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  scroll-margin-top: 24px;
}

.article-heading-anchor {
  display: inline-block;
  margin-left: 0.38em;
  color: var(--article-accent);
  font-family: var(--at-ff-body);
  font-size: 0.65em;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: 0.08em;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.article-prose h2:hover .article-heading-anchor,
.article-prose h3:hover .article-heading-anchor,
.article-prose h4:hover .article-heading-anchor,
.article-heading-anchor:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

.article-heading-anchor:hover {
  color: var(--article-link);
}

.article-heading-anchor:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--article-accent);
  outline-offset: 3px;
}

.article-prose > h2:first-child,
.article-prose > h3:first-child,
.article-prose > h4:first-child {
  margin-top: 0;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.5em;
  padding-inline-start: 1.45em;
}

.article-prose li {
  margin-bottom: 0.12em;
  padding-inline-start: 0.25em;
  color: inherit;
  line-height: 1.55;
}

.article-prose li:last-child {
  margin-bottom: 0;
}

.article-prose li::marker {
  color: var(--article-accent);
  font-family: var(--at-ff-body);
  font-weight: 700;
}

.article-prose blockquote {
  margin: 2em 0;
  padding: 0.15em 0 0.15em 1.35em;
  border-left: 3px solid var(--article-accent);
  color: #3f423f;
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.62;
}

.article-prose blockquote > :last-child {
  margin-bottom: 0;
}

.article-prose .article-testimonial {
  position: relative;
  margin: 2.4em 0;
  padding: 2.15em 2.25em 1.9em;
  overflow: hidden;
  border: 1px solid #e2e0da;
  border-left: 1px solid #e2e0da;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 87, 1, 0.1), transparent 42%),
    #f7f6f2;
  color: var(--article-copy);
  font-size: 1em;
  font-style: normal;
  line-height: inherit;
}

.article-testimonial__mark {
  display: block;
  height: 0.58em;
  color: var(--article-accent);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.article-prose .article-testimonial__quote {
  margin: 0;
  color: #252724;
  font-size: 1.08em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.62;
}

.article-testimonial__attribution {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(41, 41, 41, 0.12);
  color: var(--article-muted);
  font-family: var(--at-ff-body);
  font-size: 0.78em;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.article-testimonial__attribution::before {
  content: "— ";
  color: var(--article-accent);
}

.article-prose a:not(.article-heading-anchor) {
  border-radius: 2px;
  color: var(--article-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--article-accent) 58%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition:
    color 0.18s ease,
    text-decoration-color 0.18s ease,
    background-color 0.18s ease;
}

.article-prose a:not(.article-heading-anchor):visited {
  color: #70405f;
  text-decoration-color: rgba(112, 64, 95, 0.48);
}

.article-prose a:not(.article-heading-anchor):hover {
  background: rgba(255, 87, 1, 0.07);
  color: var(--article-link-hover);
  text-decoration-color: currentColor;
}

.article-prose a:not(.article-heading-anchor):focus-visible {
  background: rgba(255, 216, 196, 0.55);
  outline: 2px solid var(--article-accent);
  outline-offset: 3px;
  text-decoration: none;
}

.article-prose table,
.article-prose pre {
  margin: 2em 0;
}

.article-prose figure.image {
  display: block;
  width: min(840px, calc(100vw - 48px));
  max-width: none;
  margin: 2.35em 50%;
  transform: translateX(-50%);
}

.article-prose figure.image.image_resized {
  max-width: min(840px, calc(100vw - 48px));
}

.article-prose figure.image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
}

.article-prose figure.image > a {
  display: block;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.article-prose figure.image > a:focus-visible {
  outline: 3px solid var(--article-accent);
  outline-offset: 4px;
}

.article-prose figure.image figcaption {
  display: block;
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 12px;
  color: var(--article-muted);
  font-family: var(--at-ff-body);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-align: center;
}

.article-prose figure.media {
  width: 100%;
  margin: 2.35em 0;
}

.article-prose > img {
  display: block;
  width: min(840px, calc(100vw - 48px));
  max-width: none;
  height: auto;
  margin: 2.35em 50%;
  border-radius: 16px;
  transform: translateX(-50%);
}

.article-prose hr {
  width: 72px;
  margin: 2.5em auto;
  border: 0;
  border-top: 1px solid var(--article-rule);
  opacity: 1;
}

.article-prose > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .sec-1-blog-details {
    padding-top: 120px;
  }

  .article-hero__title {
    font-size: clamp(2.25rem, 11vw, 3rem);
    letter-spacing: -0.035em;
  }

  .article-hero__image {
    border-radius: 12px;
  }

  .article-prose {
    margin-top: 8px;
    margin-bottom: 48px;
    font-size: 1.1875rem;
    line-height: 1.68;
  }

  .article-prose .article-testimonial {
    padding: 1.7em 1.35em 1.5em;
    border-radius: 16px;
  }

  .article-testimonial__mark {
    font-size: 3.75rem;
  }

  .article-prose figure.image,
  .article-prose figure.image.image_resized,
  .article-prose > img {
    width: 100%;
    max-width: 100%;
    margin: 2em 0;
    transform: none;
  }

  .article-prose figure.image img,
  .article-prose figure.image > a,
  .article-prose > img {
    border-radius: 10px;
  }

  .article-prose figure.image figcaption {
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.75rem;
    text-align: left;
  }

}

@media (hover: none) {
  .article-heading-anchor {
    opacity: 0.55;
    transform: none;
  }
}
