/* Standard ending for every blog post: Share this article -> Keep reading -> consultation button -> comments.
   The heading and list intentionally inherit the article's own h2 / list styles. */

/* Side padding mirrors the article's inner section (.elementor-element-98e726d in post-1421.css)
   plus its outer section's mobile padding, so "Keep reading" lines up with the article text. */
.post-ending {
  margin-top: 2.5rem;
}

.post-ending .elementor-widget-wrap {
  padding: 0 100px;
}

@media (max-width: 1024px) {
  .post-ending .elementor-widget-wrap {
    padding: 0 170px 0 170px; /* 110px inner section + 60px outer section at tablet widths */
  }
}

@media (max-width: 767px) {
  .post-ending .elementor-widget-wrap {
    padding: 0 20px;
  }
}

/* Elementor only gives .elementor-element children full width; ours isn't one. */
.post-ending .elementor-widget {
  width: 100%;
}

.post-ending__links {
  margin: 0.5rem 0 0;
}

.post-ending__links li {
  margin-bottom: 0.4rem;
}

.post-ending__cta {
  text-align: center;
  margin: 2rem auto 1rem;
}

.post-ending__cta .elementor-button {
  background-color: teal;
  color: #fff;
}

/* "Ask AI to summarize" (under the byline) and "Share this article" (above Keep reading).
   Markup is generated by tools/post_tools.py; Copy link / Share… are revealed by assets/post-tools.js. */
.post-tools {
  --post-tools-color: #008080;
  /* Always its own full-width line: the post header's widget-wrap is a wrapping flex row,
     so without this the row sits beside a narrow hero image. */
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
}

.post-tools--share {
  margin: 0 0 2rem;
}

/* Each button in its company's brand colour. Copy link / Share… keep the site teal. */
.post-tools .post-tools__btn--chatgpt { --post-tools-color: #000000; }
.post-tools .post-tools__btn--claude { --post-tools-color: #D97757; }
.post-tools .post-tools__btn--perplexity { --post-tools-color: #20808D; }
.post-tools .post-tools__btn--grok { --post-tools-color: #000000; }
.post-tools .post-tools__btn--linkedin { --post-tools-color: #0A66C2; }
.post-tools .post-tools__btn--facebook { --post-tools-color: #0866FF; }
.post-tools .post-tools__btn--x { --post-tools-color: #000000; }
.post-tools .post-tools__btn--whatsapp { --post-tools-color: #25D366; }
.post-tools .post-tools__btn--email { --post-tools-color: #4B5563; }

.post-tools .post-tools__btn--gemini {
  --post-tools-color: #4285F4;
  border-color: transparent;
  background-image: linear-gradient(135deg, #4285F4 0%, #9B72CB 55%, #D96570 100%);
}

.post-tools .post-tools__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #010101;
}

.post-tools .post-tools__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tools .post-tools__list li {
  margin: 0;
  padding: 0;
}

.post-tools .post-tools__js[hidden] {
  display: none;
}

.post-tools .post-tools__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--post-tools-color);
  background-color: var(--post-tools-color);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.post-tools .post-tools__btn:hover {
  filter: brightness(0.88);
  color: #fff;
}

.post-tools .post-tools__btn:focus:not(:focus-visible) {
  outline: none; /* the theme adds a focus ring to buttons on mouse click */
}

.post-tools .post-tools__btn:focus-visible {
  outline: 2px solid var(--post-tools-color);
  outline-offset: 2px;
}

.post-tools .post-tools__btn--text {
  width: auto;
  padding: 0 14px;
  border-radius: 18px;
  background-color: #fff;
  color: var(--post-tools-color);
  font-family: "Quicksand", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.post-tools .post-tools__btn--text:hover {
  filter: none;
  background-color: var(--post-tools-color);
  color: #fff;
}

@media (max-width: 767px) {
  .post-tools .post-tools__label {
    flex-basis: 100%;
  }
}
