/* Scoped Technical Resources Directory V2 polish: body.resources-directory-v2 */
body.resources-directory-v2 #main {
  --ink: #171717;
  --muted: #2d2d2d;
  --rd-ink: #171717;
  --rd-muted: #2d2d2d;
  --rd-soft-blue: #edf4f8;
  --rd-soft-grey: #f0f0f0;
  --rd-blue: #0050a4;
  background: #ffffff;
  color: var(--rd-ink);
}

body.resources-directory-v2 .header-context-inner > [aria-current] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.resources-directory-v2 #main :is(.text-link, .related-link)::after {
  content: none !important;
  display: none !important;
}

body.resources-directory-v2 #main .page-heading h1,
body.resources-directory-v2 #main .guide-directory-heading h1,
body.resources-directory-v2 #main .guide-directory-heading h2 {
  font-weight: 400;
  color: var(--rd-ink);
  letter-spacing: -0.015em;
}

body.resources-directory-v2 #main .page-heading > p {
  color: var(--rd-muted);
  font-weight: 400;
}

body.resources-directory-v2 #main .guide-cards-section {
  padding-top: 40px;
}

body.resources-directory-v2 #main .guide-image-card,
body.resources-directory-v2 #main .guide-image-entry {
  border: 0;
  box-shadow: none !important; /* taste-skill-ignore: resets legacy directory card shadow */
}

body.resources-directory-v2 #main .guide-image-entry-media {
  border-radius: 6px;
  overflow: hidden;
  background: var(--rd-soft-blue);
}

body.resources-directory-v2 #main .guide-image-entry h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--rd-ink);
}

body.resources-directory-v2 #main .guide-image-entry p {
  color: var(--rd-muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 400;
}

body.resources-directory-v2 #main .guide-card-meta,
body.resources-directory-v2 #main .guide-card-type {
  font-weight: 400;
}

body.resources-directory-v2 #main .guide-card-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--rd-blue);
}

body.resources-directory-v2 #main .guide-text-entry {
  border: 0;
  border-radius: 8px;
  background: var(--rd-soft-blue);
  padding: 24px 22px 20px;
  box-shadow: none !important; /* taste-skill-ignore: flat borderless guide card */
  transition: transform 0.18s ease, background 0.18s ease;
}

body.resources-directory-v2 #main .guide-text-entry:hover,
body.resources-directory-v2 #main .guide-text-entry:focus-visible {
  background: #e3eef5;
  transform: translateY(-2px);
  box-shadow: none !important; /* taste-skill-ignore: flat hover state */
}

body.resources-directory-v2 #main .guide-text-entry > .guide-card-type {
  font-size: 13px;
  font-weight: 500;
  color: var(--rd-blue);
  margin-bottom: 10px;
}

body.resources-directory-v2 #main .guide-text-entry h2 {
  font-size: 20px;
  line-height: 1.32;
  font-weight: 500;
  color: var(--rd-ink);
  margin: 0 0 10px;
}

body.resources-directory-v2 #main .guide-text-entry p {
  font-size: 15px;
  line-height: 1.58;
  font-weight: 400;
  color: var(--rd-muted);
  margin: 0 0 14px;
}

body.resources-directory-v2 #main .guide-directory-support {
  padding-top: 24px;
  padding-bottom: 56px;
}

body.resources-directory-v2[data-page] #main .guide-all-section h2 {
  font-weight: 400;
  color: var(--rd-ink);
}

body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature {
  background: var(--rd-soft-blue);
  background-image: none;
  border: 0;
  border-radius: 10px;
  box-shadow: none !important; /* taste-skill-ignore: flattens featured guide panel shadow */
}

body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature h2 {
  max-width: none;
  color: var(--rd-ink);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: -0.015em;
}

body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature p,
body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature p:not(.section-label) {
  color: var(--rd-muted);
  max-width: 66ch;
  font-weight: 400;
  line-height: 1.6;
}

body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--rd-ink);
  color: #ffffff;
  font-weight: 500;
  box-shadow: none !important; /* taste-skill-ignore: flat primary CTA */
}

body.resources-directory-v2[data-page] #main .guide-directory-support .guide-feature .button:hover {
  background: #333333;
  color: #ffffff;
  border: 0;
  transform: none;
}

body.resources-directory-v2 #main .guide-faq h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.28;
  font-weight: 400;
  color: var(--rd-ink);
  margin: 0 0 18px;
}

body.resources-directory-v2 #main .guide-faq details {
  border: 0;
  border-radius: 6px;
  background: var(--rd-soft-blue);
  padding: 0 22px;
  margin-bottom: 10px;
  box-shadow: none !important; /* taste-skill-ignore: flat borderless FAQ */
}

body.resources-directory-v2 #main .guide-faq details:last-child {
  margin-bottom: 0;
}

body.resources-directory-v2 #main .guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rd-ink);
  cursor: pointer;
  list-style: none;
}

body.resources-directory-v2 #main .guide-faq summary::-webkit-details-marker {
  display: none;
}

body.resources-directory-v2 #main .guide-faq summary :is(svg, i[data-lucide]) {
  display: none !important;
}

body.resources-directory-v2 #main .guide-faq summary::after {
  content: '+';
  color: var(--rd-blue);
  font-size: 22px;
  font-weight: 400;
  flex: none;
}

body.resources-directory-v2 #main .guide-faq details[open] summary::after {
  content: '−';
}

body.resources-directory-v2 #main .guide-faq details p {
  margin: 0 0 10px;
  padding: 0;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  color: var(--rd-ink);
}

body.resources-directory-v2 #main .guide-faq details > .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--rd-blue);
}

body.resources-directory-v2 #main .guide-all-section .guide-pagination {
  border-top: 0;
  margin-top: 36px;
  padding-top: 8px;
  gap: 10px;
}

body.resources-directory-v2 #main .product-page-numbers {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.resources-directory-v2 #main .product-page-number,
body.resources-directory-v2 #main .product-page-arrow {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--rd-soft-grey);
  color: var(--rd-ink);
  font-weight: 500;
}

body.resources-directory-v2 #main .product-page-number:is(:hover, :focus-visible),
body.resources-directory-v2 #main .product-page-arrow:is(:hover, :focus-visible) {
  background: #e2e5ea;
  color: var(--rd-blue);
}

body.resources-directory-v2 #main .product-page-number.is-current {
  background: var(--rd-ink);
  color: #ffffff;
}

@media (max-width: 700px) {
  body.resources-directory-v2 #main .guide-cards-section {
    padding-top: 24px;
  }

  body.resources-directory-v2 #main .guide-text-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.resources-directory-v2 #main .guide-feature .button {
    width: 100%;
  }
}
