/**
 * Article (single field note, Figma "Article"): A1 opening, A2 reading column with the block
 * content (subheads, paragraphs, captioned images, packing tables, pull quote, small notes)
 * and the actions. Templates: single.php, template-parts/article*.php.
 */

/* ------------------------------------------------------------------ */
/* A1 Opening                                                         */
/* ------------------------------------------------------------------ */

.sl-article {
	--sl-article-gap: 20px;
	--sl-article-head-gap: 60px;
	--sl-article-figure-gap: 36px;
}

.sl-article__head {
	padding: 48px 0;
}

.sl .sl-article__back,
.sl .sl-article__text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--sl-heading);
	font-size: var(--sl-fs-small);
	line-height: var(--sl-lh-small);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sl .sl-article__back:hover,
.sl .sl-article__text-link:hover {
	text-decoration-thickness: 2px;
}

.sl-article__label {
	margin-top: var(--sl-article-gap);
}

.sl .sl-note-label__topic {
	color: inherit;
	text-decoration: none;
}

.sl .sl-note-label__topic:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sl-article__title {
	max-width: 900px;
	margin-top: var(--sl-article-gap);
	overflow-wrap: break-word;
}

.sl-article__lead {
	max-width: 900px;
	margin-top: var(--sl-article-gap);
}

.sl-article__byline {
	margin-top: var(--sl-article-gap);
	color: var(--sl-muted);
	font-size: var(--sl-fs-small);
	line-height: var(--sl-lh-small);
}

.sl-article__hero {
	margin-top: var(--sl-article-figure-gap);
}

.sl-article__hero-photo {
	aspect-ratio: 2 / 1;
}

.sl-article__caption {
	margin-top: 8px;
	color: var(--sl-muted);
}

/* ------------------------------------------------------------------ */
/* A2 Reading column                                                  */
/* ------------------------------------------------------------------ */

.sl-article__body {
	padding-bottom: 96px;
}

.sl-article__column {
	max-width: 792px;
	margin-inline: auto;
}

.sl-article__content {
	padding-top: 40px;
	color: var(--sl-muted);
	font-size: var(--sl-fs-lg);
	line-height: var(--sl-lh-lg);
}

.sl-article .sl-article__content > * {
	margin-block: 0;
}

.sl-article .sl-article__content > * + * {
	margin-top: var(--sl-article-gap);
}

/* The column opens with a subhead; anything else starts flush. */
.sl-article .sl-article__content > :first-child:not(h2, h3, h4) {
	margin-top: -20px;
}

/* Subheads */
.sl-article .sl-article__content :where(h2, h3, h4) {
	color: var(--sl-heading);
	font-family: var(--sl-font-body);
	font-size: var(--sl-fs-h3);
	line-height: var(--sl-lh-h3);
	font-weight: 600;
}

.sl-article .sl-article__content > * + :is(h2, h3, h4) {
	margin-top: var(--sl-article-head-gap);
}

.sl-article .sl-article__content > .wp-block-pullquote + :is(h2, h3, h4) {
	margin-top: var(--sl-article-gap);
}

.sl-article .sl-article__content a {
	color: var(--sl-heading);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sl-article .sl-article__content strong {
	color: var(--sl-heading);
	font-weight: 600;
}

/* Lists (the global reset removes their markers) */
.sl-article .sl-article__content :where(ul, ol) {
	padding-left: 1.4em;
}

.sl-article .sl-article__content ul {
	list-style: disc;
}

.sl-article .sl-article__content ol {
	list-style: decimal;
}

.sl-article .sl-article__content li + li {
	margin-top: 8px;
}

/* Images with captions */
.sl-article .sl-article__content > :is(.wp-block-image, figure.wp-block-embed, .wp-block-video, .wp-block-gallery) {
	margin-top: var(--sl-article-figure-gap);
}

.sl-article .sl-article__content .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.sl-article .sl-article__content :is(.wp-block-image, .wp-block-table, .wp-block-embed, .wp-block-video, .wp-block-gallery) figcaption,
.sl-article .sl-article__content .wp-element-caption {
	margin: 8px 0 0;
	color: var(--sl-muted);
	font-size: var(--sl-fs-caption);
	line-height: var(--sl-lh-caption);
	text-align: left;
}

/* Packing lists (core/table): item and weight per row, bold total in the footer */
.sl-article .sl-article__content .wp-block-table {
	overflow-x: auto;
}

.sl-article .sl-article__content .wp-block-table table {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	font-size: var(--sl-fs-body);
	line-height: var(--sl-lh-body);
}

.sl-article .sl-article__content .wp-block-table :is(thead, tbody, tfoot, tr) {
	border: 0;
}

.sl-article .sl-article__content .wp-block-table :is(td, th) {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--sl-c-line-dark);
	text-align: left;
	vertical-align: top;
}

.sl-article .sl-article__content .wp-block-table tbody td:first-child {
	color: var(--sl-muted);
}

.sl-article .sl-article__content .wp-block-table :is(td, th):last-child:not(:first-child) {
	padding-left: 16px;
	color: var(--sl-heading);
	text-align: right;
	white-space: nowrap;
}

.sl-article .sl-article__content .wp-block-table tfoot td {
	border-top-color: var(--sl-line-strong);
	color: var(--sl-heading);
	font-size: var(--sl-fs-h4);
	line-height: var(--sl-lh-h4);
	font-weight: 600;
}

/* Column names are for screen readers; the rows speak for themselves on screen. */
.sl-article .sl-article__content .wp-block-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Pull quote (core/pullquote): Italiana between two rules */
.sl-article .sl-article__content > .wp-block-pullquote {
	margin-top: var(--sl-article-head-gap);
}

.sl-article .sl-article__content .wp-block-pullquote {
	padding: 28px 0;
	border: 0;
	border-top: 1px solid var(--sl-line);
	border-bottom: 1px solid var(--sl-line);
	color: var(--sl-heading);
	text-align: left;
}

.sl-article .sl-article__content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.sl-article .sl-article__content .wp-block-pullquote p {
	margin: 0;
	font-family: var(--sl-font-display);
	font-size: 64px;
	line-height: 72px;
	font-weight: 400;
}

.sl-article .sl-article__content .wp-block-pullquote cite {
	display: block;
	margin-top: 16px;
	color: var(--sl-muted);
	font-family: var(--sl-font-body);
	font-size: var(--sl-fs-small);
	line-height: var(--sl-lh-small);
	font-style: normal;
	text-transform: none;
}

/* Small note ("Sources: …"), paragraph style "Small note" */
.sl-article .sl-article__content > .is-style-savanna-note {
	margin-top: 56px;
}

.sl-article .sl-article__content .is-style-savanna-note {
	font-size: var(--sl-fs-caption);
	line-height: var(--sl-lh-caption);
}

.sl-article__pages {
	margin-top: 32px;
	font-size: var(--sl-fs-small);
}

/* Actions */
.sl-article__actions {
	gap: 16px;
	margin-top: var(--sl-article-figure-gap);
}

.sl-article .sl-comments {
	margin-top: 56px;
}

/* ------------------------------------------------------------------ */
/* Tablet                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.sl-article__body {
		padding-bottom: 72px;
	}

	.sl-article .sl-article__content .wp-block-pullquote p {
		font-size: 48px;
		line-height: 56px;
	}
}

/* ------------------------------------------------------------------ */
/* Phone                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.sl-article {
		--sl-article-gap: 16px;
		--sl-article-head-gap: 44px;
		--sl-article-figure-gap: 24px;
	}

	.sl-article__head {
		padding: 24px 0 32px;
	}

	.sl-article .sl-article__lead {
		font-size: 17px;
		line-height: 28px;
	}

	.sl-article__hero-photo {
		aspect-ratio: 4 / 3;
	}

	.sl-article__body {
		padding-bottom: 56px;
	}

	.sl-article__content {
		padding-top: 28px;
	}

	.sl-article .sl-article__content > :first-child:not(h2, h3, h4) {
		margin-top: -12px;
	}

	.sl-article .sl-article__content .wp-block-pullquote {
		padding: 20px 0;
	}

	.sl-article .sl-article__content .wp-block-pullquote p {
		font-size: 34px;
		line-height: 42px;
	}

	.sl-article .sl-article__content > .is-style-savanna-note {
		margin-top: 48px;
	}

	.sl-article__actions {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 32px;
	}

	.sl .sl-article__apply {
		width: 100%;
	}
}
