/* Everything that unfolds looks the same across Lookout: a round chevron button in front of
   the row, which turns down when open; the whole row highlights on hover; a clear focus ring. */
details > summary { list-style: none; cursor: pointer; position: relative; padding-left: 38px !important; border-radius: 8px; transition: background-color .15s; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
details > summary::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  border: 1.5px solid var(--accent); background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6.5 L15 12 L9.5 17.5' fill='none' stroke='%2340803c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px 18px; background-position: center; background-repeat: no-repeat;
  transition: transform .2s ease, background-color .15s;
}
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { background-color: var(--accent-soft); }
details > summary:hover::before, details[open] > summary::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6.5 L15 12 L9.5 17.5' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details > summary { padding-top: 6px; padding-bottom: 6px; }
details[open] > summary { margin-bottom: 6px; }
/* a plain "show more" link-style disclosure */
details.more > summary { display: inline-block; color: var(--accent); font-size: 0.9rem; padding-right: 10px; }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }
