/**
 * Topic hubs, tag, author, search and other archives (UI §B2, §B6, §B7).
 * Loaded only on those pages.
 */
.tip-archive > * + * {
	margin-block-start: var(--wp--preset--spacing--7);
}

.tip-archive__header > * {
	margin-block: 0;
}

.tip-archive__header > * + * {
	margin-block-start: var(--wp--preset--spacing--3);
}

.tip-archive__intro {
	max-width: 720px;
	color: var(--wp--preset--color--text-muted);
}

/* Sections with no stories (featured, essential guides, popular) are hidden. */
.tip-archive .tip-home-section:not(:has(.wp-block-post)) {
	display: none;
}

.tip-home-section > * + * {
	margin-block-start: var(--wp--preset--spacing--5);
}

/* List + sidebar from 1024px (UI §A2 L2); the sidebar follows the list below that. */
.tip-archive__columns {
	display: grid;
	gap: var(--wp--preset--spacing--7);
}

@media (min-width: 1024px) {

	.tip-archive__columns {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--6);
		align-items: start;
	}
}

.tip-archive__sidebar > * + * {
	margin-block-start: var(--wp--preset--spacing--6);
}

.tip-archive__sidebar:not(:has(.wp-block-post)) .tip-sidebar-title:last-of-type {
	display: none;
}

.tip-archive__latest > * + * {
	margin-block-start: var(--wp--preset--spacing--5);
}

/* Archive lists show the excerpt and a larger thumbnail from 600px (C3-large). */
@media (min-width: 600px) {

	/* Matches the specificity of the list rule that hides excerpts (global.css §7). */
	.tip-archive-list .is-style-tip-list > li .tip-card__excerpt {
		display: -webkit-box;
	}

	.tip-archive-list .is-style-tip-list .tip-card .wp-block-post-featured-image {
		flex-basis: clamp(120px, 32%, 240px);
	}

	.tip-archive-list .is-style-tip-list .wp-block-post-title {
		font-size: var(--wp--preset--font-size--card-title);
	}
}

/* Pagination: numbered; on mobile only the current page between Newer/Older. */
.tip-archive-list .wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--6);
	padding-block-start: var(--wp--preset--spacing--4);
	border-block-start: 1px solid var(--wp--preset--color--border);
}

@media (max-width: 599.98px) {

	.tip-archive-list .wp-block-query-pagination-numbers .page-numbers:not(.current) {
		display: none;
	}
}

.wp-block-query-pagination .page-numbers.current {
	font-weight: 700;
}

.tip-term-chips__label {
	margin: 0 0 var(--wp--preset--spacing--2);
	font-weight: 700;
}

/* Search (B6). */
.tip-result-count {
	margin-block-start: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--text-muted);
}

.tip-archive__search {
	max-width: 720px;
}

.tip-topic-list {
	padding-inline-start: 0;
	list-style: none;
}

.tip-topic-list li + li {
	margin-block-start: var(--wp--preset--spacing--2);
}

/* Author page (B7). */
.tip-author-profile--header {
	gap: var(--wp--preset--spacing--5);
	flex-wrap: wrap;
}

.tip-author-profile--header .tip-author-photo {
	width: 96px;
	height: 96px;
}

@media (min-width: 600px) {

	.tip-author-profile--header .tip-author-photo {
		width: 160px;
		height: 160px;
	}
}

.tip-author-profile__intro > * {
	margin: 0;
}

.tip-author-profile__intro > * + * {
	margin-block-start: var(--wp--preset--spacing--2);
}

.tip-author-profile__title {
	color: var(--wp--preset--color--text-muted);
}

.tip-author-profile__social {
	gap: var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--body-sm);
}

.tip-archive__about {
	max-width: 720px;
}

.tip-archive__about h2 {
	font-size: var(--wp--preset--font-size--card-title);
}
