/* Shared navigation and accessibility refinements. */
:where(a, button):focus-visible {
  outline: 2px solid var(--cds-interactive, var(--accent, #4589ff));
  outline-offset: 2px;
}

.posts-column {
  min-width: 0;
}

.post-content img,
.post-content iframe {
  display: block;
  max-width: 100%;
}

.post-content img {
  height: auto;
}

.post-content a {
  overflow-wrap: anywhere;
}

.post-content pre {
  max-width: 100%;
}

.post-content iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 820px) {
  .header-inner {
    padding-inline: 8px;
  }

  .header-actions > nav,
  .header-inner > div > nav {
    min-width: 0;
  }

  .nav-list,
  .header-nav {
    display: flex !important;
  }

  .brand,
  .header-name {
    flex: 0 0 24px;
    overflow: hidden;
    font-size: 0;
  }

  .brand::after,
  .header-name::after {
    content: "ML";
    font-size: 0.75rem;
  }

  .brand-prefix,
  .header-prefix {
    display: none;
  }

  .nav-list a,
  .header-nav a {
    padding-inline: clamp(4px, 1.5vw, 8px);
    font-size: 0.6875rem;
  }

  .theme-toggle {
    width: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
