.article-navigation__link {
  display: block;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.article-navigation__link {
  color: rgba(var(--color-gray), 1);
}

.article-navigation__link--disabled {
  color: rgba(var(--color-gray-light), 1);
  cursor: default;
}

.article-navigation__link--share {
  color: rgba(var(--color-gray), 1);
}

.article-navigation__link:hover:not(.article-navigation__link--disabled) {
  opacity: 0.7;
}

.article-navigation__share-wrapper {
  position: relative;
}

.article-navigation__share-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-sm);
  background-color: rgba(var(--color-shade), 1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: none;
  flex-direction: row;
  gap: var(--space-xl);
  align-items: center;
  box-shadow: 0 2px 8px rgba(var(--color-black), 0.08);
  z-index: 10;
  min-width: 200px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .article-navigation__share-popup {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - var(--space-lg) * 2);
    width: max-content;
    margin-left: 0;
  }
}

.article-navigation__share-popup::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: var(--space-lg);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(var(--color-white), 1);
  filter: drop-shadow(0 -2px 2px rgba(var(--color-black), 0.05));
}

@media (max-width: 767px) {
  .article-navigation__share-popup::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .article-navigation__share-popup {
    left: 0;
    transform: none;
  }

  .article-navigation__share-popup::before {
    left: var(--space-lg);
    transform: none;
  }
}

.article-navigation__share-popup.active {
  display: flex;
}

.article-navigation__share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: rgba(var(--color-black), 1);
  text-decoration: none;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.article-navigation__share-icon:hover {
  opacity: 0.7;
}

.article-navigation__share-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb__link {
  text-decoration: none;
  transition: opacity 0.2s;
  color: rgba(var(--color-black), 1);
}

.breadcrumb__link:hover {
  color: rgba(var(--color-gray-light), 1);
}

.breadcrumb__separator {
  user-select: none;
}

.section-article-template .article-content{
  font-size: var(--font-p3-size-mobile);
  line-height: var(--font-p3-line-height-mobile);
}

.section-article-template .article-content{
  h1, h1 > *, h2, h2 > *, h3, h3 > *, h4, h4 > *, h5, h5 > *, h6, h6 > *{
    font-size: var(--font-h3-size-mobile);
    line-height: var(--font-h3-line-height-mobile);
    letter-spacing: var(--font-h3-letter-spacing-mobile);
    font-weight: 600 !important;
  }
  p,li{
    font-size: var(--font-p3-size-mobile);
    line-height: var(--font-p3-line-height-mobile);
  }
}

@media (min-width: 768px) {
  .section-article-template .article-content{
    font-size: var(--font-p3-size-tablet);
    line-height: var(--font-p3-line-height-tablet);
  }

  .section-article-template .article-content{
    h1, h1 > *, h2, h2 > *, h3, h3 > *, h4, h4 > *, h5, h5 > *, h6, h6 > *{
      font-size: var(--font-h3-size-tablet);
      line-height: var(--font-h3-line-height-tablet);
      letter-spacing: var(--font-h3-letter-spacing-tablet);
    }
    p,li{
      font-size: var(--font-p3-size-tablet);
      line-height: var(--font-p3-line-height-tablet);
    }
  }
}

@media (min-width: 1280px) {
  .section-article-template .article-content{
    font-size: var(--font-p3-size-desktop);
    line-height: var(--font-p3-line-height-desktop);
  }

  .section-article-template .article-content{
    h1, h1 > *, h2, h2 > *, h3, h3 > *, h4, h4 > *, h5, h5 > *, h6, h6 > *{
      font-size: var(--font-h3-size-desktop);
      line-height: var(--font-h3-line-height-desktop);
      letter-spacing: var(--font-h3-letter-spacing-desktop);
    }
    p,li{
      font-size: var(--font-p3-size-desktop);
      line-height: var(--font-p3-line-height-desktop);
    }

  }
}

/* Headings get their ids from article-widgets.js (TOC anchors) */
.section-article-template .article-content :is(h2, h3, h4)[id] {
  scroll-margin-top: 120px;
}

/*
 * Embedded comparison tables are designed for ~900px (fixed column widths and a
 * min-width of 480-620px) but the article column is ~550px, so they got cropped.
 * Make the columns share the available width instead. Below 768px the tables keep
 * their own horizontal scroll.
 */
@media (min-width: 768px) {
  .section-article-template .article-content :is(.kc-ing, .kc-nut, .kc-cmp, .kc-add, .kc-swaps, .kc-wh, .kc-st, .kc-fl) {
    [class$="__outer"] {
      padding: 16px;
    }
    [class$="__inner"] {
      min-width: 0;
    }
    [class$="__head"],
    [class$="__row"] {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
    }
    [class*="__cell"] {
      padding: 12px 10px;
      font-size: 12.5px;
      overflow-wrap: anywhere;
    }
    [class*="__head-cell"] {
      padding: 0 10px;
    }
  }
}

/* Prep lists in the "real fruit" post: the circles are tickable (article-widgets.js) */
.krf__step {
  cursor: pointer;
}
.krf__step .krf__bullet {
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.krf__step.krf-checked .krf__bullet {
  background: #d4a5a5;
  border-color: #d4a5a5;
}
.krf__path--kencko .krf__step.krf-checked .krf__bullet {
  background: #1b3a1b;
  border-color: #1b3a1b;
}
.krf__step.krf-checked .krf__bullet::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.krf__step.krf-checked .krf__step-text {
  opacity: 0.5;
  text-decoration: line-through;
}

.more-articles .grid > div {
  display: flex;
  flex-direction: column;
}

.more-articles .blog-articles__article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.more-articles .article-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.more-articles .article-card .card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
