/* Articles and pages: a generous reading column with wider editorial media. */
.polykum-article {
	--wp--style--global--content-size: 1180px;
	--article-ink: #19201d;
	--article-muted: #636964;
	--article-rule: #d8dad4;
	--article-paper: #fffefa;
	box-sizing: border-box;
	color: var(--article-ink);
	margin: 0;
	padding: clamp(48px, 7vw, 92px) var(--wp--style--root--padding-left, 30px) clamp(72px, 10vw, 140px);
}

.polykum-article a { color: inherit; }
.polykum-article a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.polykum-article__header {
	--wp--style--global--content-size: 1180px;
	margin-block: 0 clamp(34px, 5vw, 58px);
}
/* Pages have no metadata line, so a rule under the title closes the header instead. */
.polykum-page .polykum-article__header {
	border-bottom: 1px solid var(--article-ink);
	padding-bottom: clamp(24px, 3.5vw, 36px);
}

.polykum-article .polykum-article__title {
	font-family: var(--polykum-headline-font);
	font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.04;
	margin: 0;
	max-width: 1000px;
	margin-left: 0 !important; /* Flush with the metadata rule; the constrained layout would centre the 1000px cap. */
}

.polykum-article__meta {
	border-top: 1px solid var(--article-ink);
	display: flex;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .72rem;
	font-weight: 600;
	justify-content: space-between;
	letter-spacing: .075em;
	line-height: 1.5;
	margin-top: clamp(28px, 4vw, 42px);
	padding-top: 14px;
	text-transform: uppercase;
}

.polykum-article__publication { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.polykum-article__publication time { color: var(--article-muted); }
.polykum-article__issues { margin-left: 32px; text-align: right; }
.polykum-article__issues > span:first-child { color: var(--article-muted); margin-right: .35em; }
.polykum-article__issues a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.polykum-article__hero {
	max-width: 1180px !important;
	margin: 0 auto clamp(44px, 7vw, 80px);
}
.polykum-article__hero img { display: block; height: auto; max-height: 70vh; object-fit: contain; width: 100%; }
.polykum-article__hero figcaption,
.polykum-article__body figcaption {
	color: var(--article-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: .76rem;
	line-height: 1.45;
	margin-top: 9px;
	text-align: left;
}

.polykum-article__body {
	--wp--style--global--content-size: min(760px, 65ch);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.72;
}
.polykum-article__body > :first-child { margin-top: 0; }
.polykum-article__body > :last-child { margin-bottom: 0; }
/* Legacy Soledad pages (Join Us) wrap their content in .penci-tpadding-1; its children get the same styles. */
.polykum-article__body > p,
.polykum-article__body > ul,
.polykum-article__body > ol,
.polykum-article__body > .penci-tpadding-1 > p,
.polykum-article__body > .penci-tpadding-1 > ul,
.polykum-article__body > .penci-tpadding-1 > ol { margin-block: 0 1.45em; }
.polykum-article__body > h2,
.polykum-article__body > h3,
.polykum-article__body > h4,
.polykum-article__body > .penci-tpadding-1 > h2,
.polykum-article__body > .penci-tpadding-1 > h3,
.polykum-article__body > .penci-tpadding-1 > h4 {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.12;
	margin-block: 2.1em .7em;
}
.polykum-article__body > h2,
.polykum-article__body > .penci-tpadding-1 > h2 { font-size: clamp(1.9rem, 3vw, 2.55rem) !important; }
.polykum-article__body > h3,
.polykum-article__body > .penci-tpadding-1 > h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem) !important; }
.polykum-article__body > h4,
.polykum-article__body > .penci-tpadding-1 > h4 { font-size: clamp(1.2rem, 1.9vw, 1.5rem) !important; }
.polykum-article__body > blockquote {
	border-left: 3px solid var(--article-ink);
	font-size: 1.22em;
	font-style: italic;
	line-height: 1.5;
	margin-block: 2em;
	padding-left: clamp(20px, 3vw, 34px);
}
.polykum-article__body > figure { margin-block: clamp(38px, 6vw, 64px); }
.polykum-article__body img { height: auto; max-width: 100%; }
/* Classic-editor captions carry inline pixel widths; keep their images inside the reading column. */
.polykum-article__body .wp-caption { box-sizing: border-box; max-width: 100%; }

.polykum-article__footer {
	--wp--style--global--content-size: 760px;
	margin-top: clamp(64px, 9vw, 112px);
}
.polykum-article__tags { font-family: Arial, Helvetica, sans-serif; font-size: .75rem; }
/* Previous/next links use Arial like the other interface labels, not the parent theme's Manrope. */
.polykum-article .wp-block-post-navigation-link { font-family: Arial, Helvetica, sans-serif; }
.polykum-article__footer > .polykum-related { max-width: 1180px; }

.polykum-related {
	border-top: 1px solid var(--article-ink);
	margin-top: clamp(54px, 8vw, 88px);
	padding-top: 16px;
}
.polykum-related > h2 {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: .76rem !important;
	font-weight: 700;
	letter-spacing: .13em;
	margin: 0 0 28px;
	text-transform: uppercase;
}
.polykum-related__grid { display: grid; gap: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.polykum-related__item { margin: 0; }
.polykum-related__image { display: block; margin-bottom: 14px; overflow: hidden; }
.polykum-related__image img { aspect-ratio: 4 / 3; display: block; height: auto; object-fit: cover; width: 100%; }
.polykum-related__item time {
	color: var(--article-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.polykum-related__item h3 {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-size: 1.25rem !important;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 8px 0 0;
}
.polykum-related__item h3 a { text-decoration: none; }
.polykum-related__item h3 a:hover { text-decoration: underline; text-underline-offset: .12em; }

@media (max-width: 700px) {
	/* Side floats leave too little room for text on phones. */
	.polykum-article__body .wp-caption {
		float: none;
		margin-inline: auto !important;
	}
	.polykum-article { padding-top: 38px; }
	.polykum-article .polykum-article__title { font-size: clamp(2.2rem, 10vw, 2.75rem) !important; }
	.polykum-article__meta { align-items: flex-start; flex-direction: column; gap: 14px; }
	.polykum-article__issues { margin-left: 0; text-align: left; }
	.polykum-related__grid { grid-template-columns: 1fr; }
	.polykum-related__item { border-bottom: 1px solid var(--article-rule); padding-bottom: 24px; }
}
