/* PDF category content and FAQ use the shared blue accent. */
.directory-page--pdf {
  --pdf-editorial-accent: var(--color-info);
}

.directory-page--pdf .faq-section--category {
  --cat-hsl-override: var(--color-info);
  --faq-gradient: linear-gradient(135deg, var(--color-info), var(--color-info));
  --color-primary: var(--color-info);
}

.directory-page--pdf .faq-section__heading-accent {
  color: var(--cat-hsl-override);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.directory-page--pdf .faq-contact-btn:hover {
  color: var(--cat-hsl-override);
  border-color: color-mix(in srgb, var(--cat-hsl-override) 30%, var(--color-border));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cat-hsl-override) 13%, transparent);
}

.directory-page--pdf .faq-contact-btn:active {
  box-shadow: 0 2px 7px color-mix(in srgb, var(--cat-hsl-override) 10%, transparent);
}

[data-theme="dark"] .directory-page--pdf .faq-section--category {
  --cat-hsl-override: #93c5fd;
}

.directory-page--pdf .cat-pdf-content {
  display: grid;
  width: 100%;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-8);
}

.directory-page--pdf .cat-pdf-content > .tool-editorial {
  --editorial-surface: #fff;
  --editorial-subtle: var(--color-bg-secondary);
  --editorial-accent: var(--pdf-editorial-accent);
  --editorial-link-bg: color-mix(in srgb, var(--editorial-accent) 7%, var(--editorial-surface));
  --editorial-link-border: color-mix(in srgb, var(--editorial-accent) 20%, var(--color-border));
  min-width: 0;
  margin: 0;
  padding: clamp(1.1rem, 2.2vw, 1.65rem);
  overflow: visible;
  color: var(--color-text);
  background: var(--editorial-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 18px -2px rgb(15 23 42 / .05);
  scroll-margin-top: 90px;
}

.directory-page--pdf .cat-pdf-content .tool-editorial > h2 {
  display: block;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  font-size: clamp(1.18rem, 2vw, 1.36rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.directory-page--pdf .cat-pdf-content .tool-editorial > p,
.directory-page--pdf .cat-pdf-content .tool-editorial .tool-editorial__item p {
  margin: 0;
  color: var(--editorial-copy, var(--color-text-secondary));
  font-size: var(--text-base);
  line-height: 1.65;
}

.directory-page--pdf .cat-pdf-content .tool-editorial > p + p {
  margin-top: var(--space-3);
}

.directory-page--pdf .cat-pdf-content .tool-editorial__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
}

.directory-page--pdf .cat-pdf-content .tool-editorial__item {
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
}

.directory-page--pdf .cat-pdf-content .tool-editorial__item h3 {
  margin: 0 0 .4rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.directory-page--pdf .cat-pdf-content .tool-editorial a[href] {
  display: inline-block;
  max-width: 100%;
  margin: .15rem .1rem;
  padding: .3rem .65rem;
  border: 1px solid var(--editorial-link-border);
  border-radius: .5rem;
  background: var(--editorial-link-bg);
  color: var(--editorial-accent);
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.directory-page--pdf .cat-pdf-content .tool-editorial .tool-editorial__link-tail {
  display: inline-block;
  white-space: nowrap;
}

.directory-page--pdf .cat-pdf-content .tool-editorial a[href]:has(> .tool-editorial__link-tail)::after {
  content: none;
  display: none;
}

.directory-page--pdf .cat-pdf-content .tool-editorial a[href]::after,
.directory-page--pdf .cat-pdf-content .tool-editorial .tool-editorial__link-tail::after {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-inline-start: .3rem;
  background: currentColor;
  vertical-align: -.1em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s ease;
}

.directory-page--pdf .cat-pdf-content .tool-editorial a[href]:hover {
  border-color: var(--editorial-accent);
  background: color-mix(in srgb, var(--editorial-accent) 15%, var(--editorial-surface));
  transform: translateY(-1px);
}

.directory-page--pdf .cat-pdf-content .tool-editorial a[href]:is(:hover, :focus-visible)::after,
.directory-page--pdf .cat-pdf-content .tool-editorial a[href]:is(:hover, :focus-visible) > .tool-editorial__link-tail::after {
  transform: translate(2px, -2px);
}

.directory-page--pdf .cat-pdf-content .tool-editorial--trust {
  border-color: color-mix(in srgb, var(--editorial-accent) 28%, var(--color-border));
  border-left: 3px solid var(--editorial-accent);
  background: color-mix(in srgb, var(--editorial-accent) 8%, var(--editorial-surface));
  box-shadow: none;
}

.directory-page--pdf .cat-pdf-content .tool-editorial--trust > h2 {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.directory-page--pdf .cat-pdf-content .tool-editorial--trust > h2::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  margin-top: .1em;
  background: var(--editorial-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.directory-page--pdf .cat-pdf-content :is(a, button):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pdf-editorial-accent) 30%, transparent);
  outline-offset: 2px;
}

[data-theme="dark"] .directory-page--pdf .cat-pdf-content > .tool-editorial {
  --editorial-copy: #cbd5e1;
  --editorial-surface: var(--color-bg-elevated);
  --editorial-subtle: var(--color-bg-tertiary);
  background: var(--color-bg-elevated);
  box-shadow: none;
}

[data-theme="dark"] .directory-page--pdf .cat-pdf-content .tool-editorial__item {
  background: var(--color-bg-tertiary);
}

[data-theme="dark"] .directory-page--pdf .cat-pdf-content > .tool-editorial--trust {
  background: color-mix(in srgb, var(--editorial-accent) 8%, var(--editorial-surface));
}

[data-theme="dark"] .directory-page--pdf .cat-pdf-content .tool-editorial a[href] {
  border-color: #38517e;
  background: #1e3155;
  color: #a8c7ff;
}

@media (prefers-reduced-motion: reduce) {
  .directory-page--pdf .cat-pdf-content .tool-editorial a[href],
  .directory-page--pdf .cat-pdf-content .tool-editorial a[href]::after,
  .directory-page--pdf .cat-pdf-content .tool-editorial .tool-editorial__link-tail::after {
    transition: none;
  }
}

@media (max-width: 720px) {
  .directory-page--pdf .cat-pdf-content {
    margin-top: var(--space-5);
  }

  .directory-page--pdf .cat-pdf-content > .tool-editorial {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .directory-page--pdf .cat-pdf-content .tool-editorial__grid {
    grid-template-columns: 1fr;
  }

  .directory-page--pdf .cat-pdf-content .tool-editorial > h2 {
    font-size: 1.13rem;
  }

  .directory-page--pdf .cat-pdf-content .tool-editorial > p,
  .directory-page--pdf .cat-pdf-content .tool-editorial .tool-editorial__item p {
    font-size: .94rem;
  }
}
