/* Blog post + blog listing styles. Loaded after assets/styles/global.css on blog pages only; */
/* shared nav/footer/card components (.tool-page, .layer-guide, .why-matters, .related-tools) */
/* already come from styles.css and global.css, so this file only styles article prose */
/* and the blog-specific post-list/post-card/related-posts components. */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #E62777;
  z-index: 999;
}
.post-meta {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--muted);
}
.post-hero-image {
  max-width: 100%;
  margin-bottom: 40px;
  margin-top: 1.5rem;
  color: var(--text);
}
.post-hero-image svg {
  display: block;
  width: 100%;
  height: auto;
}
.content-illustration {
  max-width: 100%;
  margin: 32px 0;
  color: var(--text);
}
.content-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}
.illustration-caption {
  margin: 10px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
.key-takeaways {
  max-width: 720px;
  margin: 0 0 2rem;
  padding: 20px 24px;
  border-left: 4px solid #E62777;
  background: rgba(230, 39, 119, 0.05);
  border-radius: 12px;
}
.key-takeaways__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E62777;
}
.key-takeaways__list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
  color: var(--text);
}
.key-takeaways__list li {
  line-height: 1.5;
}
.pull-quote {
  border-left: 3px solid #E62777;
  padding: 16px 24px;
  margin: 32px 0;
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  max-width: 720px;
}
.tip-box,
.warning-box {
  max-width: 720px;
  margin: 32px 0;
  padding: 16px 24px;
  border-radius: 8px;
}
.tip-box {
  border-left: 4px solid rgba(23, 201, 100, 0.8);
  background: rgba(23, 201, 100, 0.05);
}
.tip-box__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #17c964;
}
.tip-box p:last-child,
.warning-box p:last-child {
  margin: 0;
  color: var(--text);
}
.warning-box {
  border-left: 4px solid rgba(217, 119, 6, 0.8);
  background: rgba(217, 119, 6, 0.08);
}
.warning-box__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d97706;
}
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 10px;
  vertical-align: middle;
}
.comparison-card {
  max-width: 720px;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.comparison-card__category {
  margin: 0;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.comparison-card__col {
  padding: 18px 20px;
}
.comparison-card__col:first-child {
  border-right: 1px solid var(--border);
}
.comparison-card__col--winner {
  background: rgba(230, 39, 119, 0.05);
}
.comparison-card__tool {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.comparison-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.winner-badge {
  display: inline-block;
  background: #E62777;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.comparison-card__cols--three {
  grid-template-columns: 1fr 1fr 1fr;
}
.comparison-card__cols--three .comparison-card__col:not(:last-child) {
  border-right: 1px solid var(--border);
}
@media (max-width: 600px) {
  .comparison-card__cols,
  .comparison-card__cols--three {
    grid-template-columns: 1fr;
  }
  .comparison-card__cols .comparison-card__col,
  .comparison-card__cols--three .comparison-card__col {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
}
.step-list {
  max-width: 720px;
  margin: 1.5rem 0;
}
.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 24px;
  position: relative;
  padding-bottom: 36px;
}
.step-card:last-child {
  padding-bottom: 0;
}
.step-card__number-col {
  position: relative;
}
.step-card__number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: var(--muted);
  line-height: 1;
}
.step-card:not(:last-child) .step-card__number-col::after {
  content: "";
  position: absolute;
  top: 54px;
  bottom: -36px;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.step-card__body {
  padding-top: 4px;
}
.step-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.step-card__content {
  display: grid;
  gap: 1rem;
}
.step-card__content p,
.step-card__content ul,
.step-card__content li {
  margin: 0;
}
.before-after {
  max-width: 720px;
  margin: 32px 0;
  display: grid;
  gap: 4px;
}
.before-after__box {
  padding: 16px 20px;
  border-radius: 8px;
}
.before-after__box--bad {
  border-left: 4px solid rgba(220, 50, 50, 0.6);
  background: rgba(220, 50, 50, 0.06);
}
.before-after__box--good {
  border-left: 4px solid rgba(23, 201, 100, 0.7);
  background: rgba(23, 201, 100, 0.06);
}
.before-after__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.before-after__box--bad .before-after__label {
  color: #d32f2f;
}
.before-after__box--good .before-after__label {
  color: #17c964;
}
.before-after__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.before-after__arrow {
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  margin: 2px 0;
}
.post-toc {
  max-width: 720px;
  margin: 0 0 2rem;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
}
.post-toc__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.post-toc__list {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
}
.post-toc__list li {
  font-size: 14px;
}
.post-toc__list a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.post-toc__list a:hover {
  color: #E62777;
}
@media (max-width: 480px) {
  .step-card {
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
  }
  .step-card__number {
    font-size: 34px;
  }
  .step-card:not(:last-child) .step-card__number-col::after {
    top: 40px;
  }
}
.post-body {
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
  margin-top: 1rem;
}
.post-body h2 {
  margin: 1.5rem 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.post-body h3 {
  margin: 0.5rem 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.post-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.post-body p.post-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.post-body li strong {
  color: var(--text);
}
.post-body strong {
  font-weight: 600;
}
.post-body a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-underline-offset: 2px;
}
.post-body a:not(.button):hover {
  text-decoration-color: var(--accent);
}
.post-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* Breadcrumb, above the eyebrow/title */
.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Blog listing page: category filter pill bar */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}
.blog-filter__pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-filter__pill:hover {
  text-decoration: none;
  border-color: var(--muted);
}
.blog-filter__pill.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.post-card.is-hidden {
  display: none;
}

/* Blog listing page: search bar */
.blog-search {
  max-width: 560px;
  margin: 1.5rem auto 0;
}
.blog-search__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.blog-search__icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.blog-search__input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s;
}
.blog-search__input:focus {
  border-color: #E62777;
}
.blog-search__input::placeholder {
  color: var(--text-muted);
}
.blog-search__clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.15s;
}
.blog-search__clear:hover {
  color: var(--text);
}
.blog-search__hint {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 2px 0;
}
.blog-search__results-count {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}
.blog-search__no-results {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.blog-search__no-results.visible {
  display: block;
}
.blog-search__no-results-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.blog-search__no-results-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Single standalone example callout (a quoted prompt on its own) */
.post-example {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 0.35rem;
  max-width: 720px;
}
.post-example__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.post-example__text {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Inline callout linking to a related free tool */
.post-tool-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  display: grid;
  gap: 0.6rem;
  max-width: 720px;
}
.post-tool-callout__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.post-tool-callout__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.post-tool-callout .button {
  width: fit-content;
}

/* Inline weak/strong comparison pair, lighter than the full .why-matters showcase */
.post-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 720px;
}
@media (max-width: 640px) {
  .post-compare {
    grid-template-columns: 1fr;
  }
}

/* Related posts (placeholder cards for upcoming content) */
.related-posts {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
}
.related-posts h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.related-posts__card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  opacity: 0.85;
}
.related-posts__card-badge {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.related-posts__card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.related-posts__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.related-posts__card--live {
  border-style: solid;
  opacity: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-posts__card--live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.related-posts__card-tag {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}
.related-posts__card-link {
  margin-top: 0.2rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.related-posts__card-link:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .related-posts__grid {
    grid-template-columns: 1fr;
  }
}

/* Blog listing page: published post cards */
.post-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.post-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.post-card__tag {
  justify-self: start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.post-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.post-card__teaser {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.post-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.post-card__link {
  margin-top: 0.4rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.post-card__link:hover {
  text-decoration: underline;
}

.share-section {
  max-width: 720px;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.share-section__label {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.share-btn:hover {
  border-color: #E62777;
  color: #E62777;
}
.share-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
