// ============================================================
// Widgets — block and classic alike (the .widget wrapper)
// ============================================================

.widget {
  // A title with nothing under it (a Tag Cloud with no tags, say):
  // hide the whole widget rather than strand the title (core-css-traps: empty state)
  &:has(> .widget-title:only-child),
  &:has(> .wp-block-heading:only-child) { display: none; }

  ul, ol { list-style-position: outside; }
  li + li { margin-top: 4px; }

  // Core puts an inline font-size on every tag cloud link (PLAYBOOK §12)
  .tagcloud a,
  .wp-block-tag-cloud a {
    font-size: 13.5px !important;
  }

  .wp-block-latest-posts__post-date,
  .post-date {
    display: block;
    font-size: 13px;
    color: var(--ink-faint);
  }
}
