/* Shared disclosure and select icons. Load after page styles. */
details > summary {
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
details > summary::marker { content: ""; color: currentColor; }
details > summary::-webkit-details-marker { display: none; }

/* Keep actual details/summary elements, including native keyboard behavior. */
:where(details:not(.services-dropdown):not(.faq-item)) > summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 2px 1px;
  border: solid #111;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
:where(details:not(.services-dropdown):not(.faq-item)[open]) > summary::before {
  transform: translateY(-2px) rotate(45deg);
}

/* These families already have their own icon; never add a second one. */
.faq details > summary::before,
.guide-toc details > summary::before { content: none; display: none; }
.faq-item > summary::after,
.faq-item[open] > summary::after,
.faq > details > summary::after,
.faq > details[open] > summary::after,
.guide-toc details > summary::after,
.guide-toc details[open] > summary::after { color: #111; }

/* Preserve the existing estimator chevrons and the white Services caret.
   No global SVG/arrow color rule is used, so blue-button icons stay white. */

/* The blog ID rule resets background and padding, so match its specificity. */
/* Native single-select behavior remains available behind one black icon. */
select:not([multiple]):not([size]),
select:not([multiple])[size="1"],
select#blog-sort:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
