/* Shared premium article presentation for the SO Entry blog detail template. */
body[class~="cms-blog.info"] {
  background: #fbf8f5;
}

body[class~="cms-blog.info"] .breadcrumbs {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(80, 55, 43, 0.08);
  padding: 15px 0;
}

body[class~="cms-blog.info"] .breadcrumbs .current-name {
  display: none;
}

body[class~="cms-blog.info"] .breadcrumbs .container {
  display: flex;
  justify-content: center;
}

body[class~="cms-blog.info"] .breadcrumbs ul.breadcrumb {
  margin: 0;
  padding: 0;
}

#cms-blog {
  padding-top: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

#cms-blog .nomara-article {
  --journal-ink: #27201d;
  --journal-muted: #716761;
  --journal-accent: #b53b50;
  --journal-soft: #f3e7e2;
  --journal-line: rgba(75, 53, 43, 0.12);
  color: var(--journal-ink);
  margin: 0 auto;
  max-width: 1140px;
}

#cms-blog .article-header {
  margin: 0 auto clamp(24px, 3vw, 34px);
  max-width: 1040px;
  text-align: center;
}

#cms-blog .article-kicker {
  align-items: center;
  color: var(--journal-accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 9px;
  letter-spacing: 0.17em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#cms-blog .article-kicker span {
  background: var(--journal-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(181, 59, 80, 0.1);
  height: 7px;
  width: 7px;
}

#cms-blog .article-detail .article-title {
  color: var(--journal-ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 auto 18px;
  max-width: 1000px;
  text-wrap: balance;
}

#cms-blog .article-detail .article-info {
  align-items: center;
  color: var(--journal-muted);
  column-gap: 22px;
  display: flex;
  font-size: 14px;
  justify-content: center;
  margin: 0;
  row-gap: 12px;
}

#cms-blog .article-detail .article-info > span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  white-space: nowrap;
}

#cms-blog .article-detail .article-info > span + span::before {
  background: rgba(80, 55, 43, 0.22);
  border-radius: 50%;
  content: "";
  height: 3px;
  margin-right: 12px;
  width: 3px;
}

#cms-blog .article-detail .article-info svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 17px;
}

#cms-blog .article-detail .article-info span > span {
  color: inherit;
  margin: 0;
}

#cms-blog .article-detail .article-info a {
  color: var(--journal-ink);
  font-weight: 650;
  text-decoration: none;
}

#cms-blog .article-detail .article-info a:hover {
  color: var(--journal-accent);
}

#cms-blog .article-detail .article-image {
  background: var(--journal-soft);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(61, 42, 35, 0.16);
  margin: 0 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
  position: relative;
}

#cms-blog .article-detail .article-image::after {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  content: "";
  inset: 10px;
  pointer-events: none;
  position: absolute;
}

#cms-blog .article-detail .article-image img {
  display: block;
  height: auto;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 100%;
}

@media (hover: hover) {
  #cms-blog .article-detail .article-image:hover img {
    transform: scale(1.015);
  }
}

#cms-blog .article-body-shell {
  align-items: start;
  display: grid;
  gap: clamp(38px, 5vw, 70px);
  grid-template-columns: 190px minmax(0, 760px);
  justify-content: center;
}

#cms-blog .article-reading-note {
  border-top: 2px solid var(--journal-accent);
  color: var(--journal-muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.6;
  padding-top: 20px;
  position: sticky;
  top: 110px;
}

#cms-blog .article-reading-note .reading-note-label {
  color: var(--journal-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

#cms-blog .article-reading-note strong {
  color: var(--journal-ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

#cms-blog .article-body {
  min-width: 0;
}

#cms-blog .article-detail .article-description {
  color: #403936;
  font-size: 18px;
  line-height: 1.86;
}

#cms-blog .article-description > p:first-child {
  color: #342d29;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.68;
  margin-bottom: 36px;
}

#cms-blog .article-description > p:first-child::first-letter {
  color: var(--journal-accent);
  float: left;
  font-size: 3.4em;
  font-weight: 650;
  line-height: 0.84;
  margin: 10px 10px 0 0;
}

#cms-blog .article-description p {
  margin: 0 0 25px;
}

#cms-blog .article-description h2 {
  color: var(--journal-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 54px 0 20px;
  padding-left: 20px;
  position: relative;
}

#cms-blog .article-description h2::before {
  background: linear-gradient(180deg, var(--journal-accent), #d98a75);
  border-radius: 999px;
  content: "";
  inset: 5px auto 5px 0;
  position: absolute;
  width: 4px;
}

#cms-blog .article-description h3 {
  color: var(--journal-ink);
  font-size: 23px;
  font-weight: 620;
  margin: 38px 0 16px;
}

#cms-blog .article-description a {
  color: var(--journal-accent);
  text-decoration: underline;
  text-decoration-color: rgba(181, 59, 80, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#cms-blog .article-description ul,
#cms-blog .article-description ol {
  margin: 0 0 28px;
  padding-left: 1.35em;
}

#cms-blog .article-description li {
  margin-bottom: 10px;
  padding-left: 5px;
}

#cms-blog .article-description blockquote {
  background: linear-gradient(135deg, #f6e8e3, #f9f3ee);
  border: 0;
  border-radius: 20px;
  color: var(--journal-ink);
  font-size: 21px;
  line-height: 1.65;
  margin: 40px 0;
  padding: 30px 34px;
}

#cms-blog .article-description img,
#cms-blog .article-description video,
#cms-blog .article-description iframe {
  border-radius: 18px;
  height: auto;
  max-width: 100%;
}

#cms-blog .article-description table {
  border-collapse: collapse;
  display: block;
  margin: 32px 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

#cms-blog .article-description th,
#cms-blog .article-description td {
  border-bottom: 1px solid var(--journal-line);
  padding: 14px 16px;
  text-align: left;
}

#cms-blog .article-footer {
  border-top: 1px solid var(--journal-line);
  margin-top: 54px;
  padding-top: 28px;
}

#cms-blog .article-tags > span {
  color: var(--journal-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 13px;
  text-transform: uppercase;
}

#cms-blog .article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#cms-blog .article-tag-list a {
  background: #fff;
  border: 1px solid var(--journal-line);
  border-radius: 999px;
  color: #554b46;
  font-size: 13px;
  padding: 8px 13px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#cms-blog .article-tag-list a:hover {
  border-color: rgba(181, 59, 80, 0.45);
  color: var(--journal-accent);
  transform: translateY(-1px);
}

#cms-blog .article-back {
  align-items: center;
  background: var(--journal-ink);
  border-radius: 16px;
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 650;
  justify-content: space-between;
  margin-top: 30px;
  padding: 18px 20px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

#cms-blog .article-back svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

#cms-blog .article-back:hover {
  background: var(--journal-accent);
  color: #fff;
  transform: translateY(-2px);
}

#cms-blog #comment-container {
  margin: 70px auto 0;
  max-width: 760px;
}

#cms-blog #comment-container > .text-center:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#cms-blog #comment-container .btn.btn-secondary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--journal-line);
  border-radius: 12px;
  color: var(--journal-ink);
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#cms-blog #comment-container .btn.btn-secondary .fa {
  color: var(--journal-accent);
  margin: 0;
}

#cms-blog #comment-container .btn.btn-secondary:hover,
#cms-blog #comment-container .btn.btn-secondary:active {
  background: var(--journal-accent);
  border-color: var(--journal-accent);
  color: #fff;
  transform: translateY(-1px);
}

#cms-blog #comment-container .btn.btn-secondary:hover .fa,
#cms-blog #comment-container .btn.btn-secondary:active .fa {
  color: #fff;
}

#cms-blog #comment-container .btn.btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(181, 59, 80, 0.2);
  outline: none;
}

#cms-blog #comment-container .btn.btn-secondary:disabled,
#cms-blog #comment-container .btn.btn-secondary.disabled {
  background: #f0ece9;
  border-color: transparent;
  color: #8a817c;
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  #cms-blog .article-body-shell {
    gap: 30px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 760px;
  }

  #cms-blog .article-reading-note {
    align-items: baseline;
    display: grid;
    gap: 4px 14px;
    grid-template-columns: auto 1fr;
    position: static;
  }

  #cms-blog .article-reading-note .reading-note-label {
    grid-column: 1 / -1;
  }

  #cms-blog .article-reading-note strong {
    margin: 0;
  }
}

@media (max-width: 767px) {
  body[class~="cms-blog.info"] .breadcrumbs {
    padding: 12px 0;
  }

  body[class~="cms-blog.info"] .breadcrumbs .container {
    justify-content: flex-start;
    overflow: hidden;
  }

  body[class~="cms-blog.info"] .breadcrumbs ul.breadcrumb {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  body[class~="cms-blog.info"] .breadcrumbs ul.breadcrumb li:last-child {
    display: none;
  }

  #cms-blog {
    padding-top: 22px;
    padding-bottom: 60px;
  }

  #cms-blog .article-header {
    margin-bottom: 22px;
    text-align: left;
  }

  #cms-blog .article-kicker {
    font-size: 11px;
    margin-bottom: 9px;
  }

  #cms-blog .article-detail .article-title {
    font-size: clamp(31px, 9vw, 40px);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 17px;
  }

  #cms-blog .article-detail .article-info {
    column-gap: 12px;
    font-size: 13px;
    justify-content: flex-start;
  }

  #cms-blog .article-detail .article-info > span + span::before {
    display: none;
  }

  #cms-blog .article-detail .article-info > span {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--journal-line);
    border-radius: 999px;
    padding: 7px 10px;
  }

  #cms-blog .article-detail .article-info svg {
    height: 15px;
    width: 15px;
  }

  #cms-blog .article-detail .article-image {
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(61, 42, 35, 0.14);
    margin-bottom: 34px;
  }

  #cms-blog .article-detail .article-image::after {
    border-radius: 15px;
    inset: 7px;
  }

  #cms-blog .article-reading-note {
    background: rgba(255, 255, 255, 0.65);
    border: 0;
    border-left: 3px solid var(--journal-accent);
    border-radius: 0 14px 14px 0;
    padding: 14px 16px;
  }

  #cms-blog .article-reading-note > span:last-child {
    grid-column: 1 / -1;
  }

  #cms-blog .article-detail .article-description {
    font-size: 17px;
    line-height: 1.78;
  }

  #cms-blog .article-description > p:first-child {
    font-size: 19px;
    line-height: 1.68;
    margin-bottom: 30px;
  }

  #cms-blog .article-description h2 {
    font-size: 26px;
    margin-top: 44px;
    padding-left: 16px;
  }

  #cms-blog .article-description blockquote {
    font-size: 19px;
    padding: 24px 22px;
  }

  #cms-blog .article-footer {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cms-blog .article-detail .article-image img,
  #cms-blog .article-tag-list a,
  #cms-blog .article-back {
    transition: none;
  }
}
