/* Blog post page additions kept out of theme.css (another chat edits that file). Loaded by single.php (2026-10-22). */

/* Dots in .post-steps (and bars in .post-chart) take --post-accent; theme.css falls back to the UI/UX green. Ours are
   ink, like the pills and tiles in the post visuals (Daniel, 2026-10-22). */
.blog-post .post-content {
  --post-accent: #111111;
}

/* The CTA card after a post's FAQ. From 1280px the same card is pinned in the right column, so this one shows only
   below it, at the FAQ's distance (72px, 56px on phones). The card itself is .post-cta (theme.css). */
.post-cta--end {
  margin-top: 72px;
}

@media (min-width: 1280px) {
  .post-cta--end {
    display: none;
  }
}

@media (max-width: 781px) {
  .post-cta--end {
    margin-top: 56px;
  }
}

/* The card's button at the site's small size on every screen, as on phones: the 20px one was too big beside the card's
   text (Daniel, 2026-11-22, from his Figma). !important: theme.css sizes every .button with !important at 782-1279px. */
.post-cta .button {
  font-size: 16px !important;
  line-height: 21px !important;
  letter-spacing: -0.6px;
}

/* No one-word last line in the card's text (the after-FAQ card is 720px wide below 1280px). */
.post-cta__text {
  text-wrap: pretty;
}

/* "Summarize this post with" (Daniel, 2026-11-22, his Figma "AI summary row"): at the top of the text column from
   1113px, under the byline below it. Pills in the topic tag's grey, with its hover step. */
.post-ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.post-ai__label {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #6E6E73;
}

.post-ai__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-ai__list li {
  margin: 0;
  padding: 0;
}

.post-ai__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  background: #F8F8F8;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s ease-out;
}

.post-ai__link svg {
  flex: none;
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .post-ai__link:hover {
    background: #DEDEDE;
    color: #000;
  }
}

.post-ai__link:active {
  background: #D4D4D4;
}

.post-ai__link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.post-ai--article {
  margin-bottom: 40px;
}

.post-ai--hero {
  display: none;
  margin-top: 24px;
}

@media (max-width: 1112px) {
  .post-ai--hero {
    display: flex;
  }

  .post-ai--article {
    display: none;
  }
}

/* Phones: the label over the pills. */
@media (max-width: 781px) {
  .post-ai {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* The PDF download card (2026-11-27, Daniel: "make the block that downloads the pdf with the button that would fit our
   styling"). It is the card beside the article in its Download version (Figma, Post card, Card=Download: 164166:22 and
   164166:49): the calculator card's icon tile with Remix's file-pdf-2-line, the title, a line and the small button.
   The post's HTML is <div class="post-cta post-download"> with a title, a text and an a.button with download. It
   replaced the takeaways-style box with a text link of 2026-11-26. */
.blog-post .post-content .post-download {
  margin: 40px 0;
}

.blog-post .post-content .post-download::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 25.6C0 16.6392 0 12.1587 1.7439 8.73615C3.27787 5.72556 5.72556 3.27787 8.73615 1.7439C12.1587 0 16.6392 0 25.6 0H38.4C47.3608 0 51.8413 0 55.2638 1.7439C58.2744 3.27787 60.7221 5.72556 62.2561 8.73615C64 12.1587 64 16.6392 64 25.6V38.4C64 47.3608 64 51.8413 62.2561 55.2638C60.7221 58.2744 58.2744 60.7221 55.2638 62.2561C51.8413 64 47.3608 64 38.4 64H25.6C16.6392 64 12.1587 64 8.73615 62.2561C5.72556 60.7221 3.27787 58.2744 1.7439 55.2638C0 51.8413 0 47.3608 0 38.4V25.6Z' fill='%23F1F1F1'/%3E%3Cpath d='M22.6667 21.3327H36V26.666H41.3333V42.666H22.6667V21.3327ZM21.3313 18.666C20.5967 18.666 20 19.2581 20 19.9884V44.0103C20 44.7256 20.593 45.3327 21.3245 45.3327H42.6755C43.4068 45.3327 44 44.7312 44 43.9893L43.9996 25.3327L37.3333 18.666H21.3313ZM29.9999 25.9993C29.9999 28.1027 29.3923 30.5824 28.3666 32.8705C27.3372 35.1669 25.9486 37.1329 24.5003 38.2915L26.0729 40.4421C29.9761 37.8399 34.2977 36.0555 38.478 36.6527L39.0883 34.0677C35.5247 32.8799 32.6665 29.3193 32.6665 25.9993H29.9999ZM30.7999 33.9615C31.1564 33.1663 31.4723 32.3411 31.7383 31.504C32.3671 32.4701 33.1404 33.3569 34.0135 34.1264C32.7044 34.3608 31.422 34.7455 30.1803 35.2361C30.3999 34.8184 30.6068 34.3924 30.7999 33.9615Z' fill='%23111111'/%3E%3C/svg%3E") no-repeat center / 64px 64px;
}

.blog-post .post-content .post-download .post-cta__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 36px;
  color: #000;
}

.blog-post .post-content .post-download .post-cta__text {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 28px;
  color: #6E6E73;
}

/* The article's link colour and underline stay off the button; it keeps the site's hover step. .button drops every
   outline with !important, so keyboard focus gets the AI pills' ring back the same way. */
.blog-post .post-content .post-download .button {
  color: #fff;
  text-decoration: none;
}

.blog-post .post-content .post-download .button:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px;
}

/* Tool rows (2026-11-27, Daniel: "change the logo links"): in the tables that list tools with their logos, the logo and
   the name are one link (a.post-tool), so there is one stop for the keyboard and a screen reader reads the name once
   (the logo's alt is empty). The name keeps the row heading's black; the article's underline shows on hover. */
.blog-post .post-content .post-tool {
  display: inline-block;
  color: #000;
  text-decoration: none;
  border-radius: 12px;
}

@media (hover: hover) {
  .blog-post .post-content .post-tool:hover {
    color: #000;
  }

  .blog-post .post-content .post-tool:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

.blog-post .post-content .post-tool:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
