/*
 * Show-and-hide sections, the shared part from design/taste/TASTE.md
 * (rule no-disclosure-marker). includes/show-hide.php prints this file on
 * every page that runs wp_head, and templates with their own <head> print it
 * themselves, so no <summary> on those pages draws the browser's triangle.
 */
summary {
  list-style: none;
  cursor: pointer;
}

/* Safari and the iPhone app's WKWebView draw the triangle here, not as ::marker. */
summary::-webkit-details-marker {
  display: none;
}

/*
 * The section opens from a quiet pill that names it and says Hide while it is
 * open. Its look is the quiet button the visit receipt already uses.
 */
.ht-reveal > summary {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ht-reveal > summary:hover {
  background: #f7f7f7;
}

.ht-reveal[open] > summary .ht-reveal__show,
.ht-reveal:not([open]) > summary .ht-reveal__hide {
  display: none;
}
