/* Optional leftover space only: never resize the TOC or the ad to fit tags. */
.mlog-ads-theme .mlog-sidebar-tags { display: none; }
.mlog-ads-theme .mlog-sidebar-tags[hidden],
.mlog-ads-theme .mlog-sidebar-tags a[hidden] { display: none !important; }

@media (min-width: 1024px) and (min-height: 640px) {
  .mlog-ads-theme .mlog-sidebar-tags {
    --mlog-tag-gap: 24px;
    --mlog-tag-bottom-gap: 20px;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin: var(--mlog-tag-gap) 0 0;
    padding: 0;
    color: var(--primary-foreground-color, #4a4a4a);
    font-size: 14px;
    line-height: 22px;
    text-align: left;
  }
  .mlog-ads-theme .mlog-sidebar-tags__list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .mlog-ads-theme .mlog-sidebar-tags a {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .mlog-ads-theme .mlog-sidebar-tags a:hover,
  .mlog-ads-theme .mlog-sidebar-tags a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .mlog-ads-theme .mlog-sidebar-tags a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
  /* Measure out of normal flow so the tag list cannot move the sticky dock. */
  .mlog-ads-theme .mlog-sidebar-tags[data-measuring] {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media print {
  .mlog-ads-theme .mlog-sidebar-tags { display: none !important; }
}
