/* Text reflow and native keyboard entry points; no player or widget selectors. */
.container > .content h1,
.container > .content .main-container-user {
  min-width: 0;
  overflow-wrap: anywhere;
}
:is(.video-info, .album-info) .block-details .info .item a {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
:is(.video-info, .album-info) .info-buttons {
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px;
}
:is(.video-info, .album-info) .info-buttons .rating-container {
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  margin-right: 0 !important;
  flex-wrap: wrap;
  gap: 4px;
}
:is(.video-info, .album-info) .rating-container > :is(.rate-like, .rate-dislike) {
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 44px !important;
  min-height: 44px !important;
}
:is(.video-info, .album-info) .info-buttons .tabs-menu {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 640px) {
  :is(.video-info, .album-info) .tour-spec-table table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }
  :is(.video-info, .album-info) .tour-spec-table :is(th, td) {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.mr-skip-link {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147482800;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #1267c5;
  border-radius: 8px;
  background: #fff !important;
  color: #1267c5 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.mr-skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.mr-skip-link:focus {
  outline: 3px solid #082f5b;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
.mr-skip-link:hover {
  color: #0f58a8 !important;
}
body.mr-menu-open > .mr-skip-link,
body:has(> .container[inert]) > .mr-skip-link,
body:has(.fancybox-opened[data-mr-ui-form-modal]) > .mr-skip-link {
  visibility: hidden !important;
}
.mr-main-start {
  display: block;
  height: 1px;
  scroll-margin-top: 88px;
}
/* At 200-400% equivalent magnification, keep the contact bar in normal flow. */
@media (max-height: 480px) {
  :root, body {
    --mr-ui-safe-bottom: 24px;
  }
  html {
    scroll-padding-top: 88px;
    scroll-padding-bottom: 24px;
  }
  body > .mr-cta-bar {
    box-sizing: border-box;
    position: static !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    margin: 24px auto 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media (forced-colors: active) {
  .mr-skip-link:focus {
    outline-color: Highlight;
    box-shadow: none;
  }
}

/* Public member cards keep their native link and gain a visible keyboard focus. */
.container > .content .list-members .item > a[href]:focus-visible {
  outline: 3px solid var(--mr-color-focus, #082f5b) !important;
  outline-offset: 3px !important;
  scroll-margin-top: var(--mr-ui-safe-top, 80px);
  scroll-margin-bottom: var(--mr-ui-safe-bottom, 140px);
}
@media (forced-colors: active) {
  .container > .content .list-members .item > a[href]:focus-visible {
    outline-color: Highlight !important;
  }
}

/* Remove the legacy page width floor at narrow zoomed viewports. */
@media (max-width: 360px) {
  body:has(> .container > .content) { min-width: 0; }
}
