/* Honor native hidden controls where their UI classes also declare a display value. */
.hub-page [hidden],
.my-videos-share-dialog [data-video-share-provider][hidden] {
	display: none !important;
}

.hub-article .article-content :is(h2, h3)[id] {
	scroll-margin-top: 88px;
}

/* Author photos belong to the public Blog rather than the preserved prototype. */
.hub-author-photo {
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
}

.hub-author-photo--profile {
	width: 112px;
	height: 112px;
}

.hub-page__masthead--author {
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
}

.hub-page__masthead--author .hub-page__intro {
	min-width: 0;
}

.hub-article__author--with-photo {
	flex-direction: column;
	align-items: flex-start;
}

.hub-author-photo--byline {
	width: 40px;
	height: 40px;
}

@media (max-width: 640px) {
	.hub-page__masthead--author {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.hub-author-photo--profile {
		width: 80px;
		height: 80px;
	}
}

/* Imported editorial covers are authored at 16:9; preserve all of their artwork. */
.hub-article__cover {
	aspect-ratio: 16 / 9;
}

/* Reserve the image space without drawing a loading or unavailable-image panel. */
.hub-page .hub-page__card-image:not(.hub-page__image-ready),
.hub-page .hub-article__cover:not(.hub-page__image-ready) {
	background: transparent;
	border-color: transparent;
	transition: none;
}

/* Keep descriptive alt attributes accessible without painting native fallback text.
   Native image loading still works when JavaScript is disabled. */
.hub-page [data-hub-image],
.hub-article .article-content img,
.hub-page .hub-author-photo {
	color: transparent;
	font-size: 0;
}

.hub-page .hub-blog-image-pending {
	opacity: 0;
}

/* Also suppress placeholders in pages restored from an older cached response. */
.hub-page [data-hub-image-placeholder] {
	display: none;
}

/* Keep inline editorial photos within a comfortable reading height without cropping. */
.hub-article .article-content > figure img {
	height: auto;
	max-height: 640px;
	object-fit: contain;
	margin-inline: auto;
}

/* An empty marker keeps native tag lists recognizable to assistive technology. */
.hub-page__tag-list,
.hub-page__tag-list > li {
	list-style-type: "";
}

.hub-article__footer > .hub-page__tag-list {
	margin: 0;
}

.hub-article__footer > .hub-page__tag-list > li,
.hub-article__footer > .hub-page__tag-list .hub-page__tag {
	max-width: 100%;
}

.hub-article__footer > .hub-page__tag-list .hub-page__tag {
	white-space: normal;
	overflow-wrap: anywhere;
}
