/* Scoped to article recommendations; these remain in the reading flow. */
.page-post .post-body .post-tool,
.page-post .post-body .post-tool-link {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem auto;
  overflow-wrap: anywhere;
}

.page-post .post-body .post-tool {
  padding: 1rem;
  border: 1px solid var(--paper-edge, #d8d3cc);
  border-inline-start: .2rem solid var(--primary-orange, #e66c2c);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .55);
  color: inherit;
}

.page-post .post-tool p { margin: 0 0 .65rem; }
.page-post .post-tool .post-tool__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-post .post-tool .post-tool__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.page-post .post-tool .post-tool__description { line-height: 1.6; }

.page-post .post-body .post-tool__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .8rem 1rem;
  border: 1px solid #252323;
  border-radius: .4rem;
  background: #252323;
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.page-post .post-body .post-tool__action:hover { background: #403a36; color: #fff; }
.page-post .post-body .post-tool-link__action { color: inherit; font-weight: 600; }
.page-post .post-body :is(.post-tool__action, .post-tool-link__action):focus-visible {
  outline: .18rem solid var(--primary-orange, #e66c2c);
  outline-offset: .2rem;
}

@media (min-width: 769px) {
  .page-post .post-body .post-tool { padding: 1.25rem; }
  .page-post .post-body .post-tool__action { width: auto; }
}

@media (prefers-color-scheme: dark) {
  .page-post .post-body .post-tool {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .18);
    border-inline-start-color: var(--primary-orange, #e66c2c);
    color: var(--dm-text, #f3f0eb);
  }
  .page-post .post-body .post-tool__action {
    background: #f3f0eb;
    border-color: #f3f0eb;
    color: #252323;
  }
  .page-post .post-body .post-tool__action:hover { background: #ded8ce; color: #252323; }
}
