/* Keep pin buttons above stretched card links, with a full touch target. */
.news-card,
.mobile-article-card,
.post-entry,
.blog-details .article {
  position: relative;
}

.article-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #626975;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.article-pin svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.article-pin[hidden],
.personal-pins[hidden] {
  display: none;
}

.article-pin[aria-pressed="true"] {
  color: #d92d55;
  background: #fff0f3;
}

.article-pin[aria-pressed="true"] svg {
  fill: currentColor;
}

.article-pin:hover {
  color: #d92d55;
  background: #fff0f3;
}

.article-pin:focus-visible,
.personal-pins ul:focus-visible {
  outline: 2px solid var(--accent-color, #d92d55);
  outline-offset: 3px;
}



.post-entry>div {
  padding-right: 56px;
}

.personal-pins {
  padding-top: 24px;
  padding-bottom: 16px;
}

.personal-pins h2 {
  font-size: 24px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--heading-color, #222);
}

.personal-pins ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.personal-pins li {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 88px;
  padding: 16px 64px 16px 16px;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  background: var(--surface-color, #fff);
}

.personal-pins li a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.personal-pins li .article-pin {
  box-shadow: none;
  border-color: transparent;
}

.pin-notice:empty {
  display: none;
}

.pin-notice {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #222;
  color: #fff;
  z-index: 100000;
}

@media (max-width: 991px) {
  .article-pin {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
    padding: 7px;
    box-sizing: border-box;
    top: 55px;
  }

  .article-pin svg {
    width: 15px;
    height: 15px;
  }

  .personal-pins {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .personal-pins h2 {
    display: none;
  }

  .personal-pins ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9a0ad transparent;
  }

  .personal-pins li {
    flex: 0 0 56px;
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
    padding: 6px 56px 6px 12px;
    border-radius: 10px;
  }

  .personal-pins li a {
    font-size: 13px;
    line-height: 1.35;
  }

  .personal-pins li .article-pin {
    top: 10px;
    right: 8px;
  }
}