/**
 * @file
 * HABD blog posts: the article layout for blog and member blog posts
 * (templates/includes/habd/blog/blog-article.html.twig). Library
 * beauty/habd.blog, after beauty/habd.library, whose article (hl-article)
 * gives the sticky "In this post" panel and the reading column.
 *
 * Values from docs/design_handoff_missing_on_live/designs/Blog Template.dc.html.
 */

/* --------------------------------------------------------------------------
   Hero: header image under a scrim, the category, headline and author row.
   -------------------------------------------------------------------------- */
.habd.hl-blog-hero {
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(152deg, #143A28 0%, var(--habd-forest) 54%, var(--habd-forest-deep) 100%);
}
.hl-blog-hero .hl-blog-hero__media { position: absolute; inset: 0; z-index: -2; }
.hl-blog-hero .hl-blog-hero__media > *,
.hl-blog-hero .hl-blog-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hl-blog-hero .hl-blog-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(6deg, rgba(7, 22, 15, 0.96) 4%, rgba(7, 22, 15, 0.9) 34%, rgba(7, 22, 15, 0.55) 70%, rgba(7, 22, 15, 0.3) 100%);
}
.hl-blog-hero:not(.hl-blog-hero--image) .hl-blog-hero__scrim { background: radial-gradient(60% 70% at 86% 18%, rgba(229, 200, 140, 0.16) 0%, rgba(10, 32, 22, 0) 66%); }
.hl-blog-hero .hl-blog-hero__inner { padding-top: 76px; padding-bottom: 56px; }
.hl-blog-hero .hl-blog-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1000px;
}
.hl-blog-hero .hl-blog-hero__category {
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--habd-gold);
}
.habd.hl-blog-hero .hl-blog-hero__title {
  margin: 0;
  font-family: var(--habd-serif);
  font-size: clamp(38px, calc(3vw + 22px), 66px);
  font-weight: 300;
  line-height: 1.03;
  color: var(--habd-ink-light);
  text-wrap: balance;
}
.hl-blog-hero .hl-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 224, 199, 0.22);
}
.hl-blog-hero .hl-blog-hero__avatar {
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(229, 200, 140, 0.6);
  border-radius: 50%;
}
.hl-blog-hero .hl-blog-hero__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.habd.hl-blog-hero .hl-blog-hero__author {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--habd-gold);
  font-size: 18px;
  color: var(--habd-ink-light);
}
.habd.hl-blog-hero .hl-blog-hero__author--plain { border-bottom: 0; }
.hl-blog-hero .hl-blog-hero__sep { width: 1px; height: 16px; background: rgba(233, 224, 199, 0.25); }
.hl-blog-hero :is(.hl-blog-hero__date, .hl-blog-hero__read) { font-size: 17px; font-weight: 300; color: var(--habd-ink-light-soft); }
.hl-blog-hero .hl-blog-hero__caption {
  position: absolute;
  right: var(--habd-gutter);
  bottom: 18px;
  max-width: 420px;
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  text-align: right;
  color: var(--habd-ink-light-quiet);
}
@media (max-width: 760px) {
  .habd.hl-blog-hero { min-height: 420px; }
  .hl-blog-hero .hl-blog-hero__inner { padding-top: 56px; padding-bottom: 40px; }
  .hl-blog-hero .hl-blog-hero__caption { position: static; padding: 0 var(--habd-gutter) 18px; text-align: left; }
  .habd.hl-blog-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   The article: a 272px panel beside the 880px column.
   -------------------------------------------------------------------------- */
.habd.hl-blog { padding-top: 56px; padding-bottom: 80px; }
.hl-blog.hl-article--aside .hl-article__inner { grid-template-columns: 272px minmax(0, 880px); }
.hl-blog .hl-article__column { gap: 40px; }
.habd.hl-blog .hl-blog__label,
.habd.hl-blog h2.hl-blog__label {
  margin: 0;
  font-family: var(--habd-sans) !important;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--habd-gold-display);
}

/* Key takeaways. */
.hl-blog .hl-blog__takeaways {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 36px 34px;
  border: 1px solid var(--habd-cream-line);
  border-radius: 18px;
  background: #F3EAD5;
}
.hl-blog .hl-blog__takeaway-list { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.hl-blog .hl-blog__takeaway { display: flex; align-items: flex-start; gap: 14px; font-size: 19px; font-weight: 300; line-height: 1.6; color: #3F3A31; }
.hl-blog .hl-blog__tick {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--habd-gold);
  font-size: 13px;
  color: var(--habd-forest);
}

/* The lead. */
.habd.hl-blog:not(#hl-reset) .hl-blog__lead { font-size: 23px; line-height: 1.66; color: var(--habd-ink); }
.habd.hl-blog:not(#hl-reset) .hl-blog__lead > * + * { margin-top: 18px; }

/* The post. */
.hl-blog .hl-blog__body { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.habd.hl-blog:not(#hl-reset) .hl-blog__text { font-size: 20px; line-height: 1.75; color: #3F3A31; }
.habd.hl-blog:not(#hl-reset) .hl-blog__text > * + * { margin-top: 26px; }
.habd.hl-blog:not(#hl-reset) .hl-blog__text > h2,
.habd.hl-blog .hl-blog__h2 {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  font-family: var(--habd-serif) !important;
  font-size: clamp(30px, calc(1.2vw + 22px), 42px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--habd-ink);
}
.habd.hl-blog:not(#hl-reset) .hl-blog__text > h3 { font-size: 28px; }
.habd.hl-blog:not(#hl-reset) .hl-blog__text ul > li::before { top: 0.78em; width: 7px; height: 7px; background: var(--habd-gold-deep); }
.habd.hl-blog:not(#hl-reset) .hl-blog__text blockquote {
  padding: 8px 0 8px 30px;
  border-left: 3px solid var(--habd-gold-deep);
  font-size: clamp(28px, calc(0.8vw + 22px), 38px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.16;
  color: var(--habd-forest);
}
.habd.hl-blog:not(#hl-reset) .hl-blog__text img { max-width: 100%; height: auto; border-radius: 18px; }
.habd.hl-blog:not(#hl-reset) .hl-blog__text figcaption { margin-top: 12px; font-size: 16px; font-style: italic; color: var(--habd-ink-meta); }

/* A section's box: a champagne panel. */
.habd.hl-blog:not(#hl-reset) .hl-blog__box {
  padding: 32px 36px;
  border: 1px solid var(--habd-cream-line);
  border-radius: 18px;
  background: #F3EAD5;
  font-size: 19px;
  line-height: 1.6;
  color: #3F3A31;
}
.habd.hl-blog:not(#hl-reset) .hl-blog__box > * + * { margin-top: 14px; }

/* Older paragraph types, kept as they are inside the column. */
.hl-blog .hl-blog__legacy { min-width: 0; }
.hl-blog .hl-blog__legacy :is(.container, .container-fluid) { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.hl-blog .hl-blog__legacy .row { margin-left: 0; margin-right: 0; }
.hl-blog .hl-blog__legacy img { max-width: 100%; height: auto; }

/* Author card. */
.hl-blog .hl-blog__author {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 32px 34px 34px;
  border: 1px solid #EBE3CF;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(90, 74, 32, 0.08);
}
.hl-blog .hl-blog__author-portrait {
  flex: none;
  width: 108px;
  height: 108px;
  overflow: hidden;
  border: 2px solid var(--habd-gold);
  border-radius: 50%;
  background: #F3EAD5;
}
.hl-blog .hl-blog__author-portrait img,
.hl-blog .hl-blog__author-portrait .habd-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-blog .hl-blog__author-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.habd.hl-blog .hl-blog__author-name { font-family: var(--habd-serif); font-size: 34px; line-height: 1.05; color: var(--habd-ink); }
.hl-blog .hl-blog__author-bio { margin: 0; font-size: 19px; font-weight: 300; line-height: 1.66; color: #3F3A31; }
.habd.hl-blog .hl-blog__text-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(154, 123, 46, 0.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--habd-gold-display);
}

/* More from the author. */
.hl-blog .hl-blog__more { display: flex; flex-direction: column; gap: 14px; }
.hl-blog .hl-blog__more-list { margin: 0; padding: 0; list-style: none; }
.habd.hl-blog .hl-blog__more-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #EBE3CF;
  color: var(--habd-ink);
}
.hl-blog .hl-blog__more-title { font-family: var(--habd-serif); font-size: 26px; line-height: 1.12; }
.hl-blog .hl-blog__more-date { flex: none; font-size: 15px; font-weight: 300; color: var(--habd-ink-meta); }
.habd.hl-blog .hl-blog__more-link:hover .hl-blog__more-title { text-decoration: underline; text-underline-offset: 4px; }

/* Foot: last reviewed. */
.hl-blog .hl-blog__foot { padding-top: 24px; border-top: 1px solid var(--habd-cream-line); }
.hl-blog .hl-blog__reviewed { font-size: 16px; font-style: italic; font-weight: 300; color: var(--habd-ink-meta); }

@media (max-width: 1100px) {
  .hl-blog.hl-article--aside .hl-article__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hl-blog .hl-blog__author { flex-direction: column; padding: 26px 24px; }
  .habd.hl-blog:not(#hl-reset) .hl-blog__text { font-size: 18px; }
  .habd.hl-blog:not(#hl-reset) .hl-blog__lead { font-size: 20px; }
  .hl-blog .hl-blog__takeaways,
  .habd.hl-blog:not(#hl-reset) .hl-blog__box { padding: 26px 22px; }
}

/* --------------------------------------------------------------------------
   More from the blog.
   -------------------------------------------------------------------------- */
.habd.hl-blog-related { --hl-pad: 80px; }
.hl-blog-related .hl-blog-related__inner { display: flex; flex-direction: column; gap: 30px; }
.hl-blog-related .hl-blog-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.hl-blog-related .hl-blog-related__intro { display: flex; flex-direction: column; gap: 12px; }
.habd.hl-blog-related .hl-blog-related__title { margin: 0; font-family: var(--habd-serif); font-size: clamp(34px, calc(1.4vw + 24px), 48px); font-weight: 300; line-height: 1.04; color: var(--habd-ink); }
.hl-blog-related .hl-blog-related__topics { margin: 0; font-size: 18px; font-weight: 300; color: #3F3A31; }
.habd.hl-blog-related .hl-blog-related__all { font-size: 18px; color: var(--habd-gold-ink); }
.hl-blog-related .hl-blog-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.habd.hl-blog-related .hl-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--habd-cream-line);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(90, 74, 32, 0.08);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.habd.hl-blog-related .hl-blog-card__link:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(31, 29, 26, 0.14); }
.hl-blog-related .hl-blog-card__media { display: block; height: 196px; background: #EFE8D8; }
.hl-blog-related .hl-blog-card__media > *,
.hl-blog-related .hl-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-blog-related .hl-blog-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 26px 28px; }
.hl-blog-related .hl-blog-card__kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--habd-gold-display); }
.hl-blog-related .hl-blog-card__title { font-family: var(--habd-serif); font-size: 28px; line-height: 1.08; color: var(--habd-forest); }
.hl-blog-related .hl-blog-card__meta { font-size: 16px; font-weight: 300; color: var(--habd-ink-meta); }
.hl-blog-related .hl-blog-card__more {
  margin-top: auto;
  padding-top: 6px;
  border-bottom: 1px solid rgba(154, 123, 46, 0.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--habd-gold-display);
}
@media (max-width: 1024px) {
  .hl-blog-related .hl-blog-related__list { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Call to action.
   -------------------------------------------------------------------------- */
.habd.hl-blog-cta { --hl-pad: 76px; overflow: hidden; isolation: isolate; }
.hl.hl-blog-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 60% at 82% 14%, rgba(229, 200, 140, 0.18) 0%, rgba(10, 32, 22, 0) 70%);
}
.hl-blog-cta .hl-blog-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 56px;
}
.hl-blog-cta .hl-blog-cta__text { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.habd.hl-blog-cta .hl-blog-cta__title { margin: 0; font-family: var(--habd-serif); font-size: clamp(32px, calc(1.2vw + 24px), 44px); font-weight: 300; line-height: 1.05; color: var(--habd-ink-light); }

/* --------------------------------------------------------------------------
   Older paragraph types in the article's styles.
   -------------------------------------------------------------------------- */
.habd.hl-blog .hl-blog__h3 { margin: 6px 0 0; font-family: var(--habd-serif); font-size: 30px; font-weight: 400; line-height: 1.1; color: var(--habd-ink); }
/* "The point": a forest panel. */
.hl-blog .hl-blog__points { display: flex; flex-direction: column; gap: 16px; }
.hl-blog .hl-blog__points--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.habd.hl-blog:not(#hl-reset) .hl-blog__point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 34px 38px 36px;
  border-radius: 18px;
  background: var(--habd-forest);
  font-size: 20px;
  line-height: 1.7;
  color: #EFEBDF;
  --habd-heading: var(--habd-ink-light);
  --habd-text: #EFEBDF;
  --habd-accent: var(--habd-gold);
  --habd-focus: var(--habd-gold);
}
.habd.hl-blog:not(#hl-reset) .hl-blog__point > * + * { margin-top: 12px; }
.habd.hl-blog:not(#hl-reset) .hl-blog__point strong { color: var(--habd-gold); }
.habd.hl-blog:not(#hl-reset) .hl-blog__point a:not(.habd-btn) { color: var(--habd-gold); }
/* A pull quote. */
.habd.hl-blog .hl-blog__quote {
  margin: 0;
  padding: 8px 0 8px 30px;
  border-left: 3px solid var(--habd-gold-deep);
  font-family: var(--habd-serif);
  font-size: clamp(28px, calc(0.8vw + 22px), 38px);
  font-style: normal;
  line-height: 1.16;
  color: var(--habd-forest);
  white-space: pre-line;
}
/* A figure and its caption. */
.hl-blog .hl-blog__figure { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hl-blog .hl-blog__figure-media { overflow: hidden; border-radius: 18px; box-shadow: 0 22px 50px rgba(31, 29, 26, 0.14); }
.hl-blog .hl-blog__figure-media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.hl-blog .hl-blog__figure-caption { font-size: 16px; font-style: italic; font-weight: 300; color: var(--habd-ink-meta); }
/* A gallery: three across. */
.hl-blog .hl-blog__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hl-blog .hl-blog__gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.hl-blog .hl-blog__gallery[data-count="2"],
.hl-blog .hl-blog__gallery[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-blog .hl-blog__gallery-item { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px; background: #EFE8D8; }
.hl-blog .hl-blog__gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-blog .hl-blog__link-line { margin: 0; }
@media (max-width: 640px) {
  .hl-blog .hl-blog__points--grid,
  .hl-blog .hl-blog__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-blog .hl-blog__points--grid { grid-template-columns: minmax(0, 1fr); }
  .habd.hl-blog:not(#hl-reset) .hl-blog__point { padding: 26px 24px; font-size: 18px; }
}
