/* BU journal: scoped card layouts and readable article typography. */
:is(.index-page, .blog-page, .article-page) :is(.bu-h-blog, .bu-blog-source, .bu-journal-heading, .bu-editorial-article) {
  --bu-journal-ink: #282421;
  --bu-journal-muted: #706862;
  --bu-journal-accent: #795353;
}

/* The three article-card implementations share the same visible rhythm. */
.index-page .bu-h-blog > .bu-h-container,
:is(.index-page, .blog-page) .bu-blog-source,
.blog-page [data-settings-id="shopline-section-main-blog"] > .page-section > .page-width {
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 0;
}
:is(.index-page, .blog-page) .bu-blog-source {
  padding-block: 24px 52px;
  color: var(--bu-journal-ink, #282421);
  font: 400 17px/1.65 Cabin, Arial, sans-serif;
}
.index-page .bu-h-blog-grid,
:is(.index-page, .blog-page) .bu-blog-source-grid,
.blog-page .blog__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 40px 32px;
  padding: 0;
  margin: 0;
}
.index-page .bu-h-blog-grid > article,
:is(.index-page, .blog-page) .bu-blog-card,
.blog-page .blog__list > li,
.blog-page .blog__list .article-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
}
.blog-page .blog__list .article-card {
  gap: 0;
}
.index-page .bu-h-blog-grid article > a:first-child,
:is(.index-page, .blog-page) .bu-blog-cover {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
:is(.index-page, .blog-page) .bu-blog-cover {
  margin: 0 0 18px;
}
.index-page .bu-h-blog-grid article > a:first-child > img,
:is(.index-page, .blog-page) .bu-blog-cover > img,
:is(.index-page, .blog-page) .bu-blog-cover-placeholder,
.blog-page .blog__list .article-card__image .media {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}
.blog-page .blog__list .article-card__image-wrapper,
.blog-page .blog__list .article-card__image {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.blog-page .blog__list .article-card__image .media > :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
:is(.index-page, .blog-page) .bu-blog-cover-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f0e9;
  color: #795353;
  font: 500 20px/1.4 Figtree, Arial, sans-serif;
  text-align: center;
}
.blog-page .blog__list .article-card__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 18px 0 0;
  text-align: left;
}
.index-page .bu-h-blog-grid h3,
:is(.index-page, .blog-page) .bu-blog-card h2,
.blog-page .blog__list .article-card__title,
.blog-page .blog__list .article-card__title > a {
  display: block;
  overflow: visible;
  max-height: none;
  min-width: 0;
  margin: 0 0 10px;
  color: #282421;
  font: 500 24px/1.28 Figtree, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
  line-clamp: unset;
  -webkit-line-clamp: unset;
  text-decoration: none;
}
.index-page .bu-h-blog-grid h3 {
  margin-top: 18px;
}
.blog-page .blog__list .article-card__title > a {
  margin: 0;
}
.index-page .bu-h-blog-grid time,
:is(.index-page, .blog-page) .bu-blog-card .bu-blog-date,
.blog-page .blog__list .article-card__date-author {
  display: block;
  margin: 0 0 12px;
  color: #706862;
  font: 400 13px/1.5 Cabin, Arial, sans-serif;
  letter-spacing: 0;
}
.blog-page .blog__list .article-card__date-author strong {
  font-weight: inherit;
}
.index-page .bu-h-blog-grid article > p,
:is(.index-page, .blog-page) .bu-blog-excerpt,
.blog-page .blog__list .article-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  margin: 0 0 16px;
  color: #514a45;
  font: 400 16px/1.65 Cabin, Arial, sans-serif;
}
.index-page .bu-h-blog-grid .bu-h-read-more,
:is(.index-page, .blog-page) .bu-blog-read,
.blog-page .blog__list .article-card__button {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 2px;
}
.index-page .bu-h-blog-grid .bu-h-read-more,
:is(.index-page, .blog-page) .bu-blog-read,
.blog-page .blog__list .article-card__button > a {
  width: fit-content;
  border: 0;
  color: #795353;
  font: 500 15px/1.5 Cabin, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: #79535366;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
:is(.index-page, .blog-page) :is(.bu-blog-read, .bu-h-read-more):hover,
.blog-page .blog__list .article-card__button > a:hover {
  color: #583b3b;
  text-decoration-color: currentColor;
}
:is(.index-page, .blog-page) :is(.bu-blog-cover, .bu-blog-read, .bu-h-read-more):focus-visible,
.index-page .bu-h-blog-grid article > a:focus-visible,
.blog-page .blog__list a:focus-visible {
  outline: 2px solid #795353;
  outline-offset: 4px;
}

/* Blog heading is optional; no global banner or page-title rules. */
:is(.index-page, .blog-page) .bu-journal-heading {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  color: #282421;
  text-align: center;
}
:is(.index-page, .blog-page) .bu-journal-heading h1 {
  margin: 0;
  color: inherit;
  font: 500 36px/1.2 Figtree, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}
:is(.index-page, .blog-page) .bu-journal-description {
  max-width: 760px;
  margin: 16px auto 0;
  color: #706862;
  font: 400 17px/1.7 Cabin, Arial, sans-serif;
}

/* Native article: wide cover, a separate comfortable reading column. */
.article-page .bu-editorial-article {
  padding-block: 36px 56px;
}
.article-page [data-settings-id="shopline-section-main-article"] > .page-section > .page-width {
  box-sizing: border-box;
  width: calc(100% - 64px);
  max-width: 1100px;
  padding-inline: 0;
  margin-inline: auto;
}
.article-page .bu-editorial-article-inner {
  gap: 16px;
  min-width: 0;
}
.article-page [data-settings-id="shopline-section-main-article"] .article__title {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  color: #282421;
  font: 500 36px/1.2 Figtree, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.article-page [data-settings-id="shopline-section-main-article"] .article-card__date-author {
  margin: 0;
  color: #706862;
  font: 400 13px/1.5 Cabin, Arial, sans-serif;
}
.article-page [data-settings-id="shopline-section-main-article"] .article-card__date-author strong {
  font-weight: inherit;
}
.article-page [data-settings-id="shopline-section-main-article"] .article__cover-image {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  max-height: 500px;
  aspect-ratio: 2.2 / 1;
  margin: 12px 0 16px;
  border-radius: 0;
}
.article-page [data-settings-id="shopline-section-main-article"] .article__cover-image .media {
  width: 100%;
  height: 100%;
  aspect-ratio: 2.2 / 1;
}
.article-page [data-settings-id="shopline-section-main-article"] .article__cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.article-page [data-settings-id="shopline-section-main-article"] :is(.article__content, .article__share, .article__comment, .article__button-back),
.article-page .bu-journal-back {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin-inline: auto;
}
.article-page .bu-journal-back {
  display: block;
  margin-block: 0 8px;
  color: #795353;
  font: 500 14px/1.5 Cabin, Arial, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-page [data-settings-id="shopline-section-main-article"] .article__content {
  --bu-journal-body-size: 17px;
  --bu-journal-body-leading: 1.8;
  color: #4a453f;
  font: 400 var(--bu-journal-body-size)/var(--bu-journal-body-leading) Cabin, Arial, sans-serif;
  overflow-wrap: break-word;
}
.article-page .article__content :is(p, li, ul, ol, blockquote) {
  font-family: Cabin, Arial, sans-serif !important;
  font-size: var(--bu-journal-body-size, 17px) !important;
  line-height: var(--bu-journal-body-leading, 1.8) !important;
}
/* Preserve the journal eyebrow without shrinking ordinary opening paragraphs. */
.article-page .article__content > p:first-child[style*="letter-spacing:.2em"],
.article-page .article__content > p:first-child[style*="letter-spacing: .2em"],
.article-page .article__content .bu-article-body :is(p:first-child)[style*="letter-spacing:.2em"],
.article-page .article__content .bu-article-body :is(p:first-child)[style*="letter-spacing: .2em"] {
  font-size: 12px !important;
  line-height: 1.6 !important;
}
.article-page .article__content :is(p, ul, ol) {
  margin-block: 0 18px;
}
.article-page .article__content :is(h1, h2, h3, h4, h5, h6) {
  font-family: Figtree, Arial, sans-serif !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none;
  overflow-wrap: break-word;
}
.article-page .article__content h1 {
  font-size: 30px !important;
}
.article-page .article__content h2 {
  font-size: 26px !important;
  margin-block: 32px 14px;
}
.article-page .article__content h3 {
  font-size: 21px !important;
  margin-block: 24px 12px;
}
.article-page .article__content :is(h4, h5, h6) {
  font-size: 19px !important;
}
/* Keep bold, emphasis and the existing link decoration, but remove inline font sizing. */
.article-page .article__content :is(span, strong, b, em, i),
.article-page .article__content a:not(.button) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.article-page .article__content a:not(.button) {
  color: #795353 !important;
  font-weight: inherit;
  font-style: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-page .article__content > :is(div, section, figure, blockquote) {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.article-page .article__content :is(img, video) {
  height: auto !important;
  object-fit: contain;
}
.article-page .article__content img {
  max-width: 100%;
}
.article-page .article__content iframe {
  max-width: 100%;
}
.article-page .article__content :is(.bu-editorial-table-scroll, div:has(> table), section:has(> table)) {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.article-page .article__content table {
  table-layout: auto;
  border-collapse: collapse;
  font: 400 15px/1.6 Cabin, Arial, sans-serif !important;
}
.article-page .article__content table :is(th, td, p, li) {
  font-size: inherit !important;
  line-height: inherit !important;
}
.article-page .article__content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}
.article-page .article__content :is(h2, h3, h4)[id] {
  scroll-margin-top: 120px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .index-page .bu-h-blog-grid,
  :is(.index-page, .blog-page) .bu-blog-source-grid,
  .blog-page .blog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  /* The old homepage stylesheet hid card three on tablets. */
  .index-page .bu-h-blog-grid > article:nth-child(3) {
    display: flex;
  }
}

@media (max-width: 767px) {
  .index-page .bu-h-blog > .bu-h-container,
  :is(.index-page, .blog-page) .bu-blog-source,
  .blog-page [data-settings-id="shopline-section-main-blog"] > .page-section > .page-width,
  .article-page [data-settings-id="shopline-section-main-article"] > .page-section > .page-width {
    width: calc(100% - 40px);
  }
  :is(.index-page, .blog-page) .bu-blog-source {
    padding-block: 20px 36px;
  }
  .index-page .bu-h-blog-grid,
  :is(.index-page, .blog-page) .bu-blog-source-grid,
  .blog-page .blog__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .index-page .bu-h-blog-grid > article,
  .index-page .bu-h-blog-grid > article:first-child,
  .index-page .bu-h-blog-grid > article:last-child,
  :is(.index-page, .blog-page) .bu-blog-card,
  :is(.index-page, .blog-page) .bu-blog-card:first-child {
    padding: 0;
    border: 0;
  }
  .index-page .bu-h-blog-grid h3,
  :is(.index-page, .blog-page) .bu-blog-card h2,
  .blog-page .blog__list .article-card__title,
  .blog-page .blog__list .article-card__title > a {
    font-size: 21px;
    line-height: 1.3;
  }
  :is(.index-page, .blog-page) .bu-journal-heading h1 {
    font-size: 28px;
  }
  :is(.index-page, .blog-page) .bu-journal-description {
    margin-top: 12px;
    font-size: 16px;
  }
  .article-page .bu-editorial-article {
    padding-block: 24px 40px;
  }
  .article-page .bu-editorial-article-inner {
    gap: 14px;
  }
  .article-page [data-settings-id="shopline-section-main-article"] .article__title {
    font-size: 28px;
  }
  .article-page [data-settings-id="shopline-section-main-article"] .article__cover-image,
  .article-page [data-settings-id="shopline-section-main-article"] .article__cover-image .media {
    aspect-ratio: 16 / 10;
  }
  .article-page [data-settings-id="shopline-section-main-article"] .article__cover-image {
    margin-block: 8px 12px;
  }
  .article-page [data-settings-id="shopline-section-main-article"] .article__content {
    --bu-journal-body-size: 16px;
    --bu-journal-body-leading: 1.75;
  }
  .article-page .article__content h1 {
    font-size: 26px !important;
  }
  .article-page .article__content h2 {
    font-size: 23px !important;
  }
  .article-page .article__content h3 {
    font-size: 20px !important;
  }
  .article-page .article__content :is(h4, h5, h6) {
    font-size: 18px !important;
  }
  /* Only reduce the known boxed-panel side padding; FAQ dividers keep their spacing. */
  .article-page .article__content :is(div, section)[style*="padding:24px 26px"],
  .article-page .article__content :is(div, section)[style*="padding: 24px 26px"] {
    padding: 20px 16px !important;
  }
  .article-page .article__content blockquote {
    margin-inline: 0;
    padding-inline: 20px;
  }
  .article-page .article__content table {
    font-size: 14px !important;
  }
}
