/* Editorial article — single reading column (no sidebar grid) */

.hl-article-wrap--editorial {
  --hl-editorial-measure: var(--hl-article-max, 720px);
  --hl-editorial-meta: #8a8a8a;
  max-width: var(--hl-editorial-measure);
  margin: 0 auto;
  padding: 1.875rem 1.25rem 3rem;
}

html[data-theme="dark"] .hl-article-wrap--editorial {
  --hl-editorial-meta: #8b939f;
}

.hl-article-wrap--editorial .breadcrumb {
  display: none;
}

/* —— Header —— */
.hl-article-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin: 1.375rem 0 2.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hl-editorial-meta);
}

.hl-article-wrap--editorial .page-title {
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
  color: var(--hl-text);
}

.hl-article-eyebrow__category,
.hl-article-eyebrow__dot,
.hl-article-eyebrow__time {
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.hl-article-eyebrow__dot {
  opacity: 0.65;
}

/* —— Lead: hero + reviewer —— */
.hl-article-lead {
  margin: 0;
}

.hl-article-lead .hl-article-hero {
  margin: 0 0 2rem;
}

.hl-article-lead .hl-article-hero img {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  border-radius: var(--hl-radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hl-article-lead .hl-article-reviewer {
  margin: 0;
}

.hl-article-intro {
  margin: 3.5rem 0 0;
}

.hl-article-intro p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--hl-text);
}

.hl-article-intro p strong {
  font-weight: 600;
}

/* —— App promo (above TOC) —— */
.hl-article-promo {
  margin: 3.5rem 0 4.5rem;
}

.hl-editorial-app-card {
  --hl-promo-lilac: #453a62;
  --hl-promo-lilac-hover: #3a3254;
  position: relative;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hl-serenity, #d4f1ff);
  border: none;
  box-shadow: none;
}

.hl-editorial-app-card__brushes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hl-article-wrap--editorial .page-body .hl-editorial-app-card img.hl-editorial-app-card__brush-art {
  position: absolute;
  left: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: auto !important;
  height: 168% !important;
  max-width: none !important;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
}

.hl-editorial-app-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.hl-editorial-app-card__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.hl-article-wrap--editorial .hl-editorial-app-card img {
  max-width: none !important;
}

.hl-article-wrap--editorial .page-body .hl-editorial-app-card img.hl-editorial-app-card__avatar {
  display: block;
  width: 5.5rem !important;
  height: 5.5rem !important;
  min-width: 5.5rem !important;
  max-width: 5.5rem !important;
  flex: 0 0 5.5rem;
  border: none;
  border-radius: 12px;
  object-fit: contain !important;
  object-position: center;
}

.hl-editorial-app-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

/* library.css adds 0.9em margins to all .page-body p — reset here */
.hl-article-wrap--editorial .page-body .hl-editorial-app-card p {
  margin: 0 !important;
}

.hl-editorial-app-card__brand {
  font-family: var(--hl-font-head);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: lowercase;
  color: #232323;
}

.hl-editorial-app-card__lead {
  font-size: 0.9375rem;
  line-height: 1.15;
  color: #232323;
  opacity: 0.8;
}

.hl-editorial-app-card__stores {
  margin-top: 0.25rem;
}

.hl-editorial-app-card__stores .hl-cta__stores {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hl-article-wrap--editorial .page-body .hl-editorial-app-card a.hl-store-badge {
  color: inherit;
  text-decoration: none;
}

.hl-editorial-app-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  min-height: 2.875rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--hl-promo-lilac);
  font-family: var(--hl-font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 10px rgba(35, 35, 35, 0.1);
  transition: box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

/* library.css paints all .page-body links blue — override for promo CTA */
.hl-article-wrap--editorial .page-body .hl-editorial-app-card a.hl-editorial-app-card__btn {
  color: var(--hl-promo-lilac);
}

.hl-article-wrap--editorial .page-body .hl-editorial-app-card a.hl-editorial-app-card__btn:hover {
  color: var(--hl-promo-lilac-hover);
}

.hl-editorial-app-card__btn:hover {
  background: #fff;
  color: var(--hl-promo-lilac-hover);
  box-shadow: 0 4px 14px rgba(35, 35, 35, 0.14);
  transform: translateY(-1px);
}

html[data-theme="dark"] .hl-editorial-app-card {
  background: #1e2f40;
}

html[data-theme="dark"] .hl-editorial-app-card__brushes {
  opacity: 0.42;
}

html[data-theme="dark"] .hl-editorial-app-card__brand,
html[data-theme="dark"] .hl-editorial-app-card__lead {
  color: #fff;
}

html[data-theme="dark"] .hl-editorial-app-card__lead {
  opacity: 0.82;
}

html[data-theme="dark"] .hl-editorial-app-card__btn {
  background: #eceff4;
  color: var(--hl-promo-lilac);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .hl-article-wrap--editorial .page-body .hl-editorial-app-card a.hl-editorial-app-card__btn {
  color: var(--hl-promo-lilac);
}

html[data-theme="dark"] .hl-article-wrap--editorial .page-body .hl-editorial-app-card a.hl-editorial-app-card__btn:hover {
  color: var(--hl-promo-lilac-hover);
}

html[data-theme="dark"] .hl-editorial-app-card__btn:hover {
  background: #fff;
  color: var(--hl-promo-lilac-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

/* —— TOC: open list, no dividers —— */
.hl-article-aside {
  margin: 0 0 5rem;
  padding: 0;
  border: none;
}

.hl-article-aside__title {
  margin: 0 0 0.85rem;
  padding: 0;
  font-family: var(--hl-font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hl-editorial-meta);
}

.hl-article-wrap--editorial nav.table_of_contents {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.hl-article-wrap--editorial .table_of_contents-item {
  display: block;
  margin: 0 !important;
  padding: 0;
}

.hl-article-wrap--editorial .table_of_contents-indent-1,
.hl-article-wrap--editorial .table_of_contents-indent-2,
.hl-article-wrap--editorial .table_of_contents-indent-3 {
  margin-left: 0 !important;
}

.hl-article-wrap--editorial .page-body a.table_of_contents-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--hl-text-secondary) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: color 0.15s ease;
}

.hl-article-wrap--editorial .page-body a.table_of_contents-link:hover {
  color: var(--hl-text) !important;
}

.hl-article-wrap--editorial .table_of_contents-link strong {
  font-weight: inherit;
}

/* —— Body —— */
.hl-article-reviewer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.hl-article-reviewer__avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  grid-row: 1;
  grid-column: 1;
}

.hl-article-reviewer__text {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--hl-editorial-meta);
  grid-row: 1;
  grid-column: 2;
  transform: translateY(2px);
}

.hl-article-reviewer__text strong {
  font-weight: 600;
  color: var(--hl-text-secondary);
}

.hl-article-wrap--editorial .hl-article-main {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hl-article-wrap--editorial .hl-article-main p {
  margin-top: 0.95em;
  margin-bottom: 0.95em;
  color: var(--hl-text);
  font-size: inherit;
}

.hl-article-wrap--editorial .page-body > div:first-child p {
  color: var(--hl-text);
  font-size: inherit;
}

.hl-article-wrap--editorial .hl-article-main h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-top: 5.5rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.025em;
}

.hl-article-wrap--editorial .hl-article-main h2.hl-qt-title,
.hl-article-wrap--editorial .faq-section h2,
.hl-article-wrap--editorial nav.related-articles--editorial h2 {
  margin-top: 0;
}

.hl-article-wrap--editorial .hl-article-main h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.45rem;
}

.hl-article-wrap--editorial .hl-article-main h2 + p,
.hl-article-wrap--editorial .hl-article-main h3 + p {
  margin-top: 0.6em;
}

.hl-article-wrap--editorial figure.image {
  margin: 0 0 1.75rem;
}

.hl-article-wrap--editorial figure.image img {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  border-radius: var(--hl-radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* —— Quick takeaways (butter) —— */
.hl-article-wrap--editorial .hl-qt-callout {
  display: block !important;
  background: var(--hl-butter-soft) !important;
  border: none;
  border-radius: var(--hl-radius-lg);
  padding: 1.5rem 1.4rem;
  margin: 0 0 4rem;
  white-space: normal;
}

.hl-article-wrap--editorial .hl-qt-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.hl-article-wrap--editorial .hl-qt-head .icon {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
}

.hl-article-wrap--editorial .hl-qt-title {
  margin: 0 !important;
  padding: 0;
  font-family: var(--hl-font-head);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hl-text);
}

.hl-article-wrap--editorial .hl-qt-list {
  margin: 0;
  padding: 0 0 0 1.2em;
  list-style: disc;
}

.hl-article-wrap--editorial .hl-qt-list li {
  margin: 0.5em 0;
  padding-left: 0.2em;
  line-height: 1.6;
  color: var(--hl-text);
}

.hl-article-wrap--editorial .hl-qt-list li:first-child {
  margin-top: 0;
}

.hl-article-wrap--editorial .hl-qt-list li:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .hl-article-wrap--editorial .hl-qt-callout {
  background: color-mix(in srgb, var(--hl-butter-soft) 28%, #171a21) !important;
}

.hl-article-wrap--editorial .hl-article-main figure.callout:not(.quick-takeaways-callout):not(.hl-disclaimer-callout) {
  background: var(--hl-surface-muted);
  border: none;
  border-radius: var(--hl-radius);
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
}

/* —— Footer blocks (FAQ → disclaimer → related: even gaps) —— */
.hl-article-wrap--editorial .faq-section {
  margin-top: 4rem;
}

.hl-article-wrap--editorial nav.related-articles--editorial {
  margin: 3.5rem 0 2rem;
  padding: 0;
  border: none;
}

.hl-article-wrap--editorial .faq-section h2,
.hl-article-wrap--editorial nav.related-articles--editorial h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.hl-article-wrap--editorial .related-articles__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.hl-article-wrap--editorial .related-articles__snippet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  background: var(--hl-surface-muted);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--hl-text) !important;
  transition: border-color 0.15s ease;
}

.hl-article-wrap--editorial .related-articles__snippet:hover {
  border-color: var(--hl-muted);
  color: var(--hl-text) !important;
}

.hl-article-wrap--editorial .related-articles__snippet-media {
  aspect-ratio: 16 / 10;
  background: var(--hl-surface);
  overflow: hidden;
}

.hl-article-wrap--editorial .related-articles__snippet-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hl-article-wrap--editorial .related-articles__snippet-title {
  display: block;
  padding: 0.45rem 0.5rem 0.5rem;
  font-family: var(--hl-font-head);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hl-article-wrap--editorial .related-articles__more {
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
}

.hl-article-wrap--editorial .related-articles__more a {
  color: var(--hl-text-secondary) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.hl-article-wrap--editorial .related-articles__more a:hover {
  color: var(--hl-text) !important;
  text-decoration: none !important;
}

/* —— Disclaimer —— */
.hl-article-wrap--editorial .hl-disclaimer-callout {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  background: var(--hl-surface-muted) !important;
  border: none;
  border-radius: var(--hl-radius-lg);
  padding: 1.5rem 1.4rem !important;
  margin: 3.5rem 0 0;
  white-space: normal;
}

.hl-article-wrap--editorial .hl-disclaimer-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.hl-article-wrap--editorial .hl-disclaimer-head .icon {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
}

.hl-article-wrap--editorial .hl-disclaimer-title {
  margin: 0 !important;
  padding: 0;
  font-family: var(--hl-font-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hl-text);
}

.hl-article-wrap--editorial .hl-disclaimer-title strong {
  font-weight: inherit;
  color: inherit;
}

.hl-article-wrap--editorial .hl-disclaimer-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hl-text-secondary);
}

.hl-article-wrap--editorial .bulleted-list {
  margin: 0.5em 0 1.1em;
  padding-left: 1.35em;
}

.hl-article-wrap--editorial .bulleted-list li {
  margin: 0.4em 0;
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .hl-article-wrap--editorial {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hl-article-wrap--editorial .page-title {
    font-size: 1.45rem;
  }

  .hl-article-eyebrow {
    font-size: 0.8125rem;
    margin: 1.125rem 0 1.875rem;
  }

  .hl-article-wrap--editorial .page-title {
    margin-bottom: 2rem;
  }

  .hl-article-intro {
    margin-top: 2.75rem;
  }

  .hl-article-promo {
    margin: 2.75rem 0 3.5rem;
  }

  .hl-article-aside {
    margin-bottom: 3.5rem;
  }

  .hl-article-intro p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hl-article-lead .hl-article-reviewer__text {
    font-size: 0.75rem;
  }

  .hl-article-wrap--editorial .hl-article-main h2 {
    font-size: 1.2rem;
    margin-top: 2.25rem;
  }

  .hl-article-wrap--editorial .hl-article-main h2.hl-qt-title,
  .hl-article-wrap--editorial .faq-section h2,
  .hl-article-wrap--editorial nav.related-articles--editorial h2 {
    margin-top: 0;
  }

  .hl-article-wrap--editorial .related-articles__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hl-editorial-app-card {
    padding: 0.85rem 0.9rem;
  }

  .hl-editorial-app-card__content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hl-editorial-app-card__main {
    flex: 1 1 100%;
  }

  .hl-article-wrap--editorial .page-body .hl-editorial-app-card img.hl-editorial-app-card__avatar {
    width: 5rem !important;
    height: 5rem !important;
    min-width: 5rem !important;
    max-width: 5rem !important;
    flex-basis: 5rem;
  }

  .hl-editorial-app-card__btn {
    margin-left: auto;
  }

  .hl-article-wrap--editorial .hl-disclaimer-callout {
    margin-top: 3rem;
  }

  .hl-article-wrap--editorial nav.related-articles--editorial {
    margin-top: 3rem;
  }

}
