/* Yusensoft blog article detail (content/blog-detail). Tokens, breadcrumb and buttons come from ys-blog.css. */
.ys-bd {
  --bd-max: 75rem;
  --bd-rail: 16rem;
  --bd-gap: clamp(2.5rem, 4vw, 4rem);
  --bd-orange-ink: #b4560f;
  --bd-radius: 1rem;
  --bd-shadow: 0 18px 40px -30px rgba(7, 20, 40, 0.35);
}

.ys-bd-wrap {
  width: min(calc(100% - (var(--bl-gutter) * 2)), var(--bd-max));
  margin-inline: auto;
}

/* hero, body and end section share one left edge; only the body adds the contents rail */
.ys-bd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* ===== hero ===== */
.ys-bd-hero {
  padding-block: clamp(1.5rem, 3vw, 2.4rem) clamp(1.9rem, 3.6vw, 2.9rem);
  background:
    linear-gradient(115deg, rgba(230, 122, 46, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 46%),
    var(--bl-navy);
  color: #fff;
}

.ys-bd-hero__copy {
  min-width: 0;
}

.ys-bd-hero .ys-blog-crumb ol {
  color: rgba(255, 255, 255, 0.62);
}

.ys-bd-hero .ys-blog-crumb li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.28);
}

.ys-bd-hero .ys-blog-crumb a {
  color: rgba(255, 255, 255, 0.8);
}

.ys-bd-hero .ys-blog-crumb a:hover {
  color: #fff;
}

.ys-bd-hero a:focus-visible {
  outline-color: #fff;
}

.ys-bd-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  margin-top: 1.15rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ys-bd-cat::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--bl-orange);
}

.ys-bd-cat:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ys-bd-hero__title {
  margin: 0.85rem 0 0;
  color: #fff;
  font-size: clamp(1.85rem, 1.35rem + 1.75vw, 2.85rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.ys-bd-hero__dek {
  max-width: 52rem;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.6;
}

.ys-bd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.ys-bd-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ys-bd-meta i {
  color: var(--bl-orange);
}

/* ===== body ===== */
.ys-bd-body {
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4rem);
}

.ys-bd-layout {
  row-gap: 0;
}

.ys-bd-main {
  min-width: 0;
}

.ys-bd-cover {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: var(--bd-radius);
  background: var(--bl-tint);
  aspect-ratio: 16 / 10;
}

.ys-bd-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== prose (CMS HTML as published) ===== */
.ys-bd-prose {
  color: var(--bl-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.ys-bd-prose > :first-child {
  margin-top: 0;
}

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

.ys-bd-prose > p:first-child {
  color: var(--bl-text);
  font-size: 1.15em;
  line-height: 1.7;
}

.ys-bd-prose p,
.ys-bd-prose ul,
.ys-bd-prose ol,
.ys-bd-prose dl {
  margin: 0 0 1.3em;
}

.ys-bd-prose h2,
.ys-bd-prose h3,
.ys-bd-prose h4 {
  color: var(--bl-navy);
  scroll-margin-top: var(--bl-top);
  text-wrap: balance;
}

.ys-bd-prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: clamp(1.45rem, 1.2rem + 0.85vw, 2.125rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ys-bd-prose h3 {
  margin: 1.9em 0 0.55em;
  font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.5rem);
  font-weight: 730;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ys-bd-prose h4 {
  margin: 1.7em 0 0.45em;
  font-size: 1.125rem;
  font-weight: 720;
  line-height: 1.4;
}

.ys-bd-prose h2 + h3,
.ys-bd-prose h3 + h4 {
  margin-top: 0.9em;
}

.ys-bd-prose strong,
.ys-bd-prose b {
  color: var(--bl-text);
  font-weight: 700;
}

.ys-bd-prose a {
  color: var(--bl-navy);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: rgba(230, 122, 46, 0.65);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease;
}

.ys-bd-prose a:hover {
  text-decoration-color: var(--bl-orange);
}

.ys-bd-prose ul {
  padding: 0;
  list-style: none;
}

.ys-bd-prose ul > li {
  position: relative;
  padding-inline-start: 1.5rem;
}

.ys-bd-prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.3rem;
  inset-block-start: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--bl-orange);
}

.ys-bd-prose ul ul > li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--bl-orange);
}

.ys-bd-prose ol {
  padding-inline-start: 1.6rem;
}

.ys-bd-prose ol > li {
  padding-inline-start: 0.35rem;
}

.ys-bd-prose ol > li::marker {
  color: var(--bl-navy);
  font-weight: 750;
}

.ys-bd-prose li + li {
  margin-top: 0.45em;
}

.ys-bd-prose li > ul,
.ys-bd-prose li > ol {
  margin: 0.45em 0 0;
}

.ys-bd-prose blockquote {
  margin: 2em 0;
  padding: 1.1rem 1.4rem;
  border-inline-start: 3px solid var(--bl-orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--bl-tint);
  color: var(--bl-navy);
  font-size: 1.08em;
  font-weight: 560;
  line-height: 1.6;
}

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

.ys-bd-prose :not(pre) > code {
  padding: 0.1em 0.38em;
  border-radius: 0.35rem;
  background: var(--bl-tint-2);
  color: var(--bl-navy);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.ys-bd-prose pre {
  margin: 1.75em 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--bl-line);
  border-radius: 0.85rem;
  background: #f6f8fb;
  color: #1d2b40;
  font-size: 0.875rem;
  line-height: 1.7;
  tab-size: 2;
}

.ys-bd-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.ys-bd-code {
  position: relative;
  margin: 1.75em 0;
}

.ys-bd-code > pre {
  margin: 0;
  padding-top: 2.9rem;
}

.ys-bd-code__copy {
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline-end: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--bl-line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--bl-navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ys-bd-code__copy:hover {
  border-color: var(--bl-navy);
}

.ys-bd-code__copy.is-done {
  border-color: #b7dfc6;
  color: #1c7a43;
}

/* tables: scroll inside their own box (JS wraps them; without JS the table itself scrolls) */
.ys-bd-prose > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.ys-bd-prose table {
  margin: 1.75em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ys-bd-table {
  max-width: 100%;
  margin: 1.75em 0;
  overflow-x: auto;
  border: 1px solid var(--bl-line);
  border-radius: 0.85rem;
}

.ys-bd-table table {
  width: 100%;
  margin: 0;
}

.ys-bd-prose th,
.ys-bd-prose td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--bl-line);
  text-align: start;
  vertical-align: top;
}

.ys-bd-prose th {
  background: var(--bl-tint);
  color: var(--bl-navy);
  font-size: 0.875rem;
  font-weight: 720;
  white-space: nowrap;
}

.ys-bd-table tr:last-child td {
  border-bottom: 0;
}

.ys-bd-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.ys-bd-prose figure {
  margin: 2em 0;
}

.ys-bd-prose figure img {
  display: block;
  width: 100%;
}

.ys-bd-prose figcaption {
  margin-top: 0.6rem;
  color: var(--bl-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ys-bd-prose iframe,
.ys-bd-prose video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.75rem;
}

.ys-bd-prose hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--bl-line);
}

/* ===== after the text ===== */
.ys-bd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 2.25rem 0 0;
}

.ys-bd-tags__label {
  margin-inline-end: 0.3rem;
  color: var(--bl-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ys-bd-tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  color: var(--bl-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.ys-bd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bl-line);
}

.ys-bd-back,
.ys-bd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--bl-navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.ys-bd-back i,
.ys-bd-link i {
  color: var(--bl-orange);
  transition: transform 0.25s var(--bl-ease);
}

.ys-bd-back:hover i {
  transform: translateX(-4px);
}

.ys-bd-link:hover i {
  transform: translateX(4px);
}

.ys-bd-back:hover,
.ys-bd-link:hover {
  color: var(--bl-navy);
  text-decoration: underline;
  text-decoration-color: var(--bl-orange);
  text-underline-offset: 0.25em;
}

.ys-bd-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ys-bd-share__label {
  margin-inline-end: 0.25rem;
  color: var(--bl-muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ys-bd-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #d3dae4;
  border-radius: 50%;
  background: #fff;
  color: var(--bl-navy);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ys-bd-share__btn:hover {
  border-color: var(--bl-navy);
  background: var(--bl-navy);
  color: #fff;
}

.ys-bd-adj {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.ys-bd-adj__link {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--bl-line);
  border-radius: 0.9rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ys-bd-adj__link:hover {
  border-color: #c5cfdb;
  box-shadow: var(--bd-shadow);
}

.ys-bd-adj__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bl-muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ys-bd-adj__dir i {
  color: var(--bl-orange);
}

.ys-bd-adj__title {
  color: var(--bl-navy);
  font-weight: 700;
  line-height: 1.35;
}

.ys-bd-main .blog-comments {
  margin-top: 2.5rem;
}

/* ===== contents + optional WISECP sidebar ===== */
.ys-bd-toc__box {
  border: 1px solid var(--bl-line);
  border-radius: 0.9rem;
  background: #fff;
}

.ys-bd-toc__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  color: var(--bl-navy);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.ys-bd-toc__title::-webkit-details-marker {
  display: none;
}

.ys-bd-toc__title i {
  color: var(--bl-orange);
  font-size: 1rem;
}

.ys-bd-toc__title::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-start: auto;
  border-inline-end: 2px solid var(--bl-navy);
  border-block-end: 2px solid var(--bl-navy);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.ys-bd-toc__box[open] > .ys-bd-toc__title::after {
  transform: rotate(-135deg) translateY(-2px);
}

.ys-bd-toc__list {
  display: grid;
  margin: 0;
  padding: 0 1.1rem 0.9rem;
  list-style: none;
}

.ys-bd-toc__i a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-inline-start: 2px solid var(--bl-line);
  color: var(--bl-body);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ys-bd-toc__i--h3 a,
.ys-bd-toc__i--h4 a {
  padding-inline-start: 1.7rem;
  color: var(--bl-muted);
  font-size: 0.87rem;
}

.ys-bd-toc__i a:hover {
  color: var(--bl-navy);
}

.ys-bd-toc__i a[aria-current] {
  border-inline-start-color: var(--bl-orange);
  color: var(--bl-navy);
  font-weight: 700;
}

.ys-bd-side__block + .ys-bd-side__block,
.ys-bd-toc + .ys-bd-side {
  margin-top: 1.75rem;
}

.ys-bd-side__title {
  margin: 0 0 0.6rem;
  color: var(--bl-navy);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ys-bd-side__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bl-line);
}

.ys-bd-side__list li {
  border-bottom: 1px solid var(--bl-line);
}

.ys-bd-side__list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  color: var(--bl-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.ys-bd-side__list a:hover,
.ys-bd-side__list a[aria-current] {
  color: var(--bl-navy);
}

.ys-bd-side__list a span {
  color: var(--bl-muted);
}

.ys-bd-side__list--posts li {
  padding-bottom: 0.65rem;
}

.ys-bd-side__list--posts a {
  padding-bottom: 0.15rem;
}

.ys-bd-side__list--posts time {
  color: var(--bl-muted);
  font-size: 0.8rem;
}

/* below the rail breakpoint the contents box sits above the text and the sidebar below it */
@media (max-width: 1199.98px) {
  .ys-bd-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ys-bd-rail,
  .ys-bd-rail__in {
    display: contents;
  }

  .ys-bd-cover {
    order: 0;
  }

  .ys-bd-toc {
    order: 1;
    margin-bottom: 1.75rem;
  }

  .ys-bd-main {
    order: 2;
  }

  .ys-bd-side {
    order: 3;
    margin-top: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .ys-bd--rail .ys-bd-layout {
    grid-template-columns: minmax(0, 1fr) var(--bd-rail);
    column-gap: var(--bd-gap);
  }

  .ys-bd-cover,
  .ys-bd-main {
    grid-column: 1;
  }

  .ys-bd-rail {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .ys-bd-rail__in {
    position: sticky;
    top: var(--bl-top);
  }

  .ys-bd-toc__box {
    border: 0;
    background: none;
  }

  .ys-bd-toc__title {
    min-height: 0;
    padding: 0 0 0.75rem;
    color: var(--bl-muted);
    font-size: 0.74rem;
    cursor: default;
    pointer-events: none;
  }

  .ys-bd-toc__title::after {
    display: none;
  }

  .ys-bd-toc__list {
    padding: 0;
  }

  .ys-bd-toc__i a {
    min-height: 0;
    font-size: 0.875rem;
  }

  .ys-bd-toc__i--h3 a,
  .ys-bd-toc__i--h4 a {
    font-size: 0.84rem;
  }
}

/* ===== end of article: related posts + one service/contact band ===== */
.ys-bd-end {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--bl-line);
  background: var(--bl-tint);
}

.ys-bd-end__col {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  min-width: 0;
}

.ys-bd-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.85rem;
}

.ys-bd-related__title {
  margin: 0;
  color: var(--bl-navy);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.ys-bd-rel {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-bd-post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--bl-line);
  border-radius: var(--bd-radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--bl-ease);
}

.ys-bd-post--media {
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
}

.ys-bd-post:hover,
.ys-bd-post:focus-within {
  border-color: #c5cfdb;
  box-shadow: var(--bd-shadow);
  transform: translateY(-2px);
}

.ys-bd-post__img {
  width: 7.5rem;
  height: 5rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.ys-bd-post__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.ys-bd-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  margin: 0;
  color: var(--bl-muted);
  font-size: 0.8rem;
}

.ys-bd-post__meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.6rem;
  border-radius: 50%;
  background: #9aa6b6;
  vertical-align: middle;
  transform: translateY(-1px);
}

.ys-bd-post__cat {
  color: var(--bd-orange-ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ys-bd-post__title {
  margin: 0;
  color: var(--bl-navy);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.ys-bd-post__link {
  color: inherit;
  text-decoration: none;
}

.ys-bd-post__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ys-bd-post__link:focus-visible {
  outline: none;
}

.ys-bd-post:has(.ys-bd-post__link:focus-visible) {
  outline: 3px solid var(--bl-orange-2);
  outline-offset: 3px;
}

.ys-bd-post__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--bl-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ys-bd-post__go {
  color: var(--bl-orange);
  font-size: 1.1rem;
  transition: transform 0.25s var(--bl-ease);
}

.ys-bd-post:hover .ys-bd-post__go {
  transform: translateX(4px);
}

.ys-bd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--bl-line);
  border-inline-start: 3px solid var(--bl-orange);
  border-radius: var(--bd-radius);
  background: #fff;
}

.ys-bd-cta__copy {
  flex: 1 1 20rem;
  min-width: 0;
}

.ys-bd-cta__kicker {
  margin: 0;
  color: var(--bd-orange-ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ys-bd-cta__title {
  margin: 0.3rem 0 0;
  color: var(--bl-navy);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.ys-bd-cta__text {
  margin: 0.35rem 0 0;
  color: var(--bl-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ys-bd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== motion ===== */
@media (prefers-reduced-motion: no-preference) {
  html:has(.ys-bd) {
    scroll-behavior: smooth;
  }

  .ys-bd-hero__copy > * {
    animation: ys-bd-rise 0.5s var(--bl-ease) both;
  }

  .ys-bd-hero__copy > :nth-child(n + 3) {
    animation-delay: 0.05s;
  }

  .ys-bd-hero__copy > :nth-child(n + 4) {
    animation-delay: 0.1s;
  }
}

@keyframes ys-bd-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-bd *,
  .ys-bd *::before,
  .ys-bd *::after {
    animation: none !important;
    transition: none !important;
  }

  .ys-bd-post:hover,
  .ys-bd-post:focus-within {
    transform: none;
  }
}

/* ===== responsive ===== */
@media (min-width: 768px) {
  .ys-bd-prose {
    font-size: 1.125rem;
  }

  .ys-bd-cover {
    aspect-ratio: 2 / 1;
  }

  .ys-bd-adj {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-bd-adj__link--next {
    grid-column: 2;
    text-align: end;
  }

  .ys-bd-adj__dir {
    justify-content: flex-start;
  }

  .ys-bd-adj__link--next .ys-bd-adj__dir {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .ys-bd-cover {
    aspect-ratio: 12 / 5;
  }

  /* auto-fit: a single related post spans the row, two or three share it */
  .ys-bd-rel {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
  }

  .ys-bd-rel > li {
    display: flex;
  }

  .ys-bd-rel .ys-bd-post {
    flex: 1;
  }
}

@media (min-width: 1200px) {
  .ys-bd-prose {
    font-size: 1.1875rem;
    line-height: 1.85;
  }

  .ys-bd-prose > p:first-child {
    font-size: 1.12em;
  }
}

@media (max-width: 991.98px) {
  .ys-bd-hero .ys-blog-crumb a,
  .ys-bd-cat {
    min-height: 2.75rem;
  }

  .ys-bd-hero .ys-blog-crumb a {
    display: inline-flex;
    align-items: center;
  }

  .ys-bd-code > pre {
    padding-top: 3.6rem;
  }

  .ys-bd-code__copy {
    min-height: 2.75rem;
  }
}

@media (max-width: 575.98px) {
  .ys-bd-hero .ys-blog-crumb li[aria-current] {
    display: none;
  }

  .ys-bd-hero .ys-blog-crumb li:nth-last-child(2)::after {
    display: none;
  }

  .ys-bd-cat {
    margin-top: 0.6rem;
  }

  .ys-bd-prose > p:first-child {
    font-size: 1.1em;
  }

  .ys-bd-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ys-bd-post {
    padding: 1rem 1.1rem;
  }

  .ys-bd-post--media {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .ys-bd-post__img {
    width: 5.5rem;
    height: 4rem;
  }

  .ys-bd-post__go {
    display: none;
  }

  .ys-bd-cta__actions,
  .ys-bd-cta__actions .ys-bl-btn {
    width: 100%;
  }
}
