/* Articles hub only: source-informed publishing layout on Astrel V3 tokens. */

.hs-page {
  overflow-x: hidden;
}

.hs-page.menu-open {
  overflow: hidden;
}

.hs-search-results-active #main-content > .hs-section:not(#all-resources) {
  display: none;
}

.hs-search-results-active #all-resources {
  padding-top: 28px;
}

.hs-container {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: 20px;
}

.hs-header {
  position: sticky;
  top: 0;
  z-index: 130;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hs-header__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.hs-header .hs-header__inner {
  max-width: 1360px;
}

.hs-header .brand-name {
  font-size: 28px;
}

.hs-header .brand::before {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.hs-header .brand {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.hs-header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
}

.hs-header-cta:hover {
  background: var(--teal-hover);
  color: var(--white);
}

.hs-header-cta--top {
  min-height: 42px;
  margin-left: 0;
  padding: 0 16px;
  font-size: 15px;
}

.hs-menu-button,
.hs-menu-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--teal);
  cursor: pointer;
}

.hs-menu-button {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.hs-menu-close {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.hs-menu-button .header-menu-icon {
  display: flex;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
}

.hs-menu-button .header-menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 20px;
  background: currentColor;
}

.hs-menu-close svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.hs-menu-button:hover,
.hs-menu-close:hover {
  background: var(--mint);
}

.hs-desktop-nav {
  display: none;
}

@media (min-width: 1000px) {
  .hs-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .hs-menu-button {
    display: none;
  }

  .hs-desktop-nav {
    display: flex;
    align-items: center;
    justify-self: center;
  }

  .hs-desktop-nav a {
    margin-inline: 2.5px;
    padding: 9px 13px 10px;
    border-radius: 10px;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
  }

  .hs-desktop-nav a:hover,
  .hs-desktop-nav a[aria-current="page"] {
    background: var(--grey);
    color: var(--teal-hover);
  }

  .hs-header-cta--top {
    min-height: 40px;
    padding-inline: 20px;
    font-size: 15px;
  }

  .hs-header .global-header-actions {
    margin-left: 0;
    justify-self: end;
  }
}

@media (min-width: 1440px) {
  .hs-header .hs-header__inner {
    width: 100%;
    max-width: none;
    padding-inline: clamp(48px, 3vw, 80px);
  }
}

.hs-mobile-drawer {
  position: fixed;
  inset: 70px 0 0;
  z-index: 125;
  background: rgba(0, 40, 50, .34);
}

.hs-mobile-drawer[hidden] {
  display: none;
}

.hs-mobile-drawer__inner {
  display: flex;
  width: min(88vw, 380px);
  height: 100%;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 22px 24px 30px;
  background: var(--white);
  box-shadow: 18px 0 40px rgba(0, 50, 60, .16);
}

.hs-menu-close {
  align-self: flex-end;
}

.hs-mobile-nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.hs-mobile-nav a {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.hs-mobile-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hs-mobile-drawer .hs-header-cta {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
}

.hs-mobile-note {
  margin: auto 0 0;
  padding-top: 36px;
  color: var(--slate);
  font-size: 14px;
}

.hs-title-band {
  display: grid;
  min-height: 230px;
  place-items: center;
  background: var(--green);
  text-align: center;
}

.hs-title-band h1 {
  margin: 0;
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 78px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1;
}

.hs-preview-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hs-preview-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  text-align: center;
}

.hs-preview-note::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.hs-section {
  padding: 48px 0;
}

#main-content > .hs-section:first-of-type {
  padding-top: 28px;
}

.hs-section--mint {
  background: var(--mint);
}

.hs-section--lemon {
  background: var(--lemon-tint);
}

.hs-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.hs-section-head h2,
.hs-browse-title {
  margin: 0;
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.4px;
  line-height: 1.08;
}

.hs-featured-grid {
  display: grid;
  gap: 18px;
}

.hs-featured-main,
.hs-featured-compact {
  position: relative;
}

.hs-featured-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hs-featured-main__copy {
  padding: 26px;
}

.hs-featured-main h3 {
  margin: 13px 0 9px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}

.hs-card-description {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.5;
}

.hs-featured-compact .hs-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hs-featured-main h3 a,
.hs-featured-compact h3 a,
.hs-rail-card h3 a,
.hs-catalog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hs-card-link::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

.hs-card-category {
  position: relative;
  z-index: 3;
  display: inline-block;
  padding: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
}

.hs-card-category:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.hs-card-author::before {
  margin-right: 8px;
  content: "•";
}

.hs-featured-list {
  display: grid;
  gap: 14px;
}

.hs-featured-compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.hs-featured-compact h3 {
  margin: 8px 0 6px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.hs-layered-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--grey);
}

.hs-featured-main .hs-layered-media {
  border-radius: 25px 25px 0 0;
}

.hs-featured-compact .hs-layered-media,
.hs-rail-card .hs-layered-media,
.hs-catalog-card .hs-layered-media {
  border-radius: 18px;
}

.hs-media-background,
.hs-media-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-media-background {
  inset: 0;
}

.hs-media-cover {
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease;
}

.hs-featured-main:hover .hs-media-cover,
.hs-featured-compact:hover .hs-media-cover,
.hs-rail-card:hover .hs-media-cover,
.hs-catalog-card:hover .hs-media-cover {
  transform: scale(1.018);
}

.hs-rail-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.hs-rail-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.hs-rail-button:hover {
  background: var(--teal);
  color: var(--white);
}

.hs-rail-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hs-rail-viewport {
  overflow-x: auto;
  margin-inline: -20px;
  padding: 2px 20px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.hs-rail-viewport::-webkit-scrollbar {
  display: none;
}

.hs-rail-track {
  display: grid;
  grid-auto-columns: minmax(245px, 78vw);
  grid-auto-flow: column;
  gap: 16px;
}

.hs-rail-card {
  position: relative;
  scroll-snap-align: start;
}

.hs-rail-card h3 {
  margin: 11px 0 6px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.hs-browse-header {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.hs-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hs-topic-picker {
  position: relative;
  z-index: 12;
}

.hs-topic-picker summary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.hs-topic-picker summary::-webkit-details-marker {
  display: none;
}

.hs-topic-picker summary::after {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.hs-topic-picker[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.hs-topic-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(760px, calc(100vw - 40px));
  max-height: min(540px, calc(100vh - 150px));
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hs-topic-panel__label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hs-topic-grid {
  display: grid;
  gap: 7px;
}

.hs-topic-option {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.hs-topic-option:hover,
.hs-topic-option[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--mint);
}

.hs-results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.hs-results-line p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.hs-clear-filter {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-catalog-grid {
  display: grid;
  gap: 34px 18px;
}

.hs-catalog-card {
  position: relative;
  min-width: 0;
}

.hs-catalog-card h3 {
  margin: 11px 0 7px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.hs-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 9px;
}

.hs-empty-state {
  padding: 42px 24px;
  border: 1px dashed var(--field-border);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}

.hs-empty-state h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
}

.hs-empty-state p {
  margin: 0;
}

.hs-load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.hs-load-more {
  min-width: 190px;
  min-height: 54px;
  padding: 10px 28px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font-weight: 500;
}

.hs-load-more:hover {
  background: var(--teal);
  color: var(--white);
}

.hs-cta-section {
  padding: 70px 0;
  background: var(--white);
}

.hs-cta-card {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: var(--green);
}

.hs-cta-art {
  display: flex;
  min-height: 300px;
  align-items: flex-end;
  background: var(--blue-tint);
}

.hs-cta-art img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

.hs-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 26px 42px;
}

.hs-cta-copy h2 {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(37px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.04;
}

.hs-cta-copy p {
  max-width: 540px;
  margin: 0 0 24px;
}

.hs-footer {
  padding: 56px 0 24px;
  background: var(--teal);
  color: var(--white);
}

.hs-footer-grid {
  display: grid;
  gap: 32px;
}

.hs-footer .brand {
  color: var(--white);
}

.hs-footer .brand::before {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  background-image: url("/assets/brand-mark-light.svg");
}

.hs-footer .brand-name {
  font-size: 38px;
}

.hs-footer-intro {
  max-width: 330px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}

.hs-footer-label {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hs-footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-footer-link,
.hs-footer address {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-style: normal;
  text-decoration: none;
}

.hs-footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.hs-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.hs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hs-header .hs-header__inner {
    gap: 6px;
    padding-inline: 12px;
  }

  .hs-header-cta--top {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0;
  }

  .hs-header-cta--top::after {
    content: "Free 45-min";
    font-size: 14px;
  }
}

@media (min-width: 480px) {
  .hs-topic-grid,
  .hs-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-rail-track {
    grid-auto-columns: minmax(250px, calc((100vw - 58px) / 2));
  }

  .hs-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hs-section {
    padding: 56px 0;
  }

  #main-content > .hs-section:first-of-type {
    padding-top: 32px;
  }

  .hs-featured-compact {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 14px;
  }

  .hs-rail-track {
    grid-auto-columns: minmax(255px, calc((100vw - 76px) / 3));
  }

  .hs-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-browse-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hs-filter-row {
    justify-content: flex-end;
  }

  .hs-cta-card {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .hs-cta-copy {
    padding: 54px 48px;
  }

  .hs-footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hs-container {
    padding-inline: 40px;
  }

  .hs-title-band {
    min-height: 270px;
  }

  .hs-section {
    padding: 64px 0;
  }

  #main-content > .hs-section:first-of-type {
    padding-top: 36px;
  }

  .hs-featured-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .hs-featured-main {
    min-height: 100%;
  }

  .hs-featured-main .hs-layered-media {
    aspect-ratio: 1.35;
  }

  .hs-featured-main__copy {
    padding: 32px;
  }

  .hs-featured-list {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .hs-featured-compact {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .hs-rail-viewport {
    margin-inline: 0;
    padding-inline: 0;
  }

  .hs-rail-track {
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
  }

  .hs-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 22px;
  }

  .hs-footer-grid {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-media-cover {
    transition: none;
  }
}
