/* Press Host — Design Editorial: listagens (home, categoria, tag, autor, data, busca).
   Usa os mesmos tokens de assets/editorial.css. */

.phd-wrap--archive {
	padding-bottom: 5rem;
}

.phd-archive {
	max-width: var(--phd-wide);
	margin: 0 auto;
}

/* ---------- Cabeçalho da listagem ---------- */

.phd-archive-header {
	padding-bottom: 1.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 2px solid var(--phd-ink);
}

.phd-archive-eyebrow {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--phd-accent);
	margin-bottom: 0.5rem;
}

.phd-archive-title {
	font-family: var(--phd-serif);
	font-weight: 700;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--phd-ink);
	text-wrap: balance;
}

.phd-archive-desc {
	max-width: var(--phd-measure);
	margin-top: 0.75rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--phd-ink-soft);
}

.phd-archive-desc p {
	margin: 0;
}

.phd-archive-count {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--phd-ink-faint);
}

/* ---------- Grade de cards ---------- */

.phd-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 46rem) {
	.phd-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 2rem;
	}
}

.phd-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Destaque: ocupa a linha inteira e vira duas colunas no desktop */
.phd-card--lead {
	grid-column: 1 / -1;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--phd-line);
}

@media (min-width: 46rem) {
	.phd-card--lead {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		align-items: center;
		gap: 2rem;
	}
}

/* ---------- Mídia ---------- */

.phd-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: var(--phd-bg-soft);
	aspect-ratio: 16 / 10;
	margin-bottom: 1rem;
}

.phd-card--lead .phd-card-media {
	aspect-ratio: 16 / 9;
	margin-bottom: 0;
}

.phd-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.phd-card:hover .phd-card-media img {
	transform: scale(1.03);
}

.phd-card-credito {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	max-width: calc(100% - 1rem);
	padding: 0.2rem 0.45rem;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 0.625rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Sem imagem destacada: bloco com a inicial do título */
.phd-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--phd-serif);
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--phd-line);
	background:
		linear-gradient(135deg, var(--phd-bg-soft), var(--phd-bg));
}

/* ---------- Texto do card ---------- */

.phd-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.phd-card-kicker a {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--phd-accent);
	text-decoration: none;
}

.phd-card-kicker a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.phd-card-title {
	font-family: var(--phd-serif);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0.4rem 0 0;
	text-wrap: pretty;
}

.phd-card--lead .phd-card-title {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
	line-height: 1.15;
}

.phd-card-title a {
	color: var(--phd-ink);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s ease;
}

.phd-card-title a:hover {
	background-size: 100% 1px;
}

.phd-card-sub {
	margin: 0.6rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--phd-ink-soft);
	text-wrap: pretty;
}

.phd-card--lead .phd-card-sub {
	font-family: var(--phd-serif);
	font-size: 1.0625rem;
}

.phd-card-meta {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--phd-ink-faint);
}

.phd-card-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.75rem 0 0;
	padding: 0;
}

.phd-card-tags a {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--phd-line);
	border-radius: 999px;
	font-size: 0.6875rem;
	color: var(--phd-ink-faint);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.phd-card-tags a:hover {
	background: var(--phd-accent-soft);
	border-color: var(--phd-accent);
	color: var(--phd-accent);
}

/* ---------- Paginação ---------- */

.phd-pagination {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--phd-line);
}

.phd-pagination ul,
.phd-pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
}

.phd-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.phd-pagination a,
.phd-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.7rem;
	border: 1px solid var(--phd-line);
	border-radius: 4px;
	font-size: 0.875rem;
	color: var(--phd-ink-soft);
	text-decoration: none;
}

.phd-pagination a:hover {
	border-color: var(--phd-accent);
	color: var(--phd-accent);
}

.phd-pagination .current {
	background: var(--phd-accent);
	border-color: var(--phd-accent);
	color: #fff;
	font-weight: 600;
}

.phd-pagination .dots {
	border-color: transparent;
}

/* ---------- Estado vazio ---------- */

.phd-empty {
	max-width: var(--phd-measure);
	padding: 3rem 0;
	color: var(--phd-ink-soft);
}

.phd-empty-title {
	font-family: var(--phd-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--phd-ink);
	margin: 0 0 0.5rem;
}

.phd-empty .search-form,
.phd-empty form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.phd-empty input[type="search"] {
	flex: 1 1 14rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--phd-line);
	border-radius: 4px;
	background: var(--phd-bg);
	color: var(--phd-ink);
	font: inherit;
}

.phd-empty input[type="submit"],
.phd-empty button {
	background: var(--phd-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.6rem 1.3rem;
	font-weight: 600;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.phd-card-media img,
	.phd-card-title a {
		transition: none;
	}
}
