/* Dean Izod Insights: editorial layer over the deanizod-reel theme.
   Reuses the theme's own tokens. Adds nothing to the palette. */

/* --- Article measure and serif reading ------------------------------- */
.di-article .di-articlehead,
.di-article .di-prose,
.di-article .di-aftermatter {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
}

.di-article .di-prose {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: var(--wp--preset--font-size--body-l);
	line-height: 1.62;
	color: var(--wp--preset--color--text-body);
}

.di-article .di-prose p {
	margin: 0 0 1.15em;
}

.di-article .di-prose h2 {
	font-family: var(--wp--preset--font-family--anton);
	font-size: var(--wp--preset--font-size--h-3);
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 2.2em 0 0.5em;
}

.di-article .di-prose a {
	color: var(--wp--preset--color--accent-text);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.di-article .di-prose ul,
.di-article .di-prose ol {
	margin: 0 0 1.15em;
	padding-left: 1.25em;
}

.di-article .di-prose li {
	margin-bottom: 0.4em;
}

/* Pull quote: breaks the measure to the left, Anton, on the ink colour. */
.di-article .di-prose blockquote {
	margin: 1.8em 0;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--anton);
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

.di-article .di-prose blockquote p {
	margin: 0;
}

@media (min-width: 1100px) {
	.di-article .di-prose blockquote {
		margin-left: -8vw;
	}
}

/* --- Byline ---------------------------------------------------------- */
.di-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	align-items: baseline;
}

.di-byline > * {
	margin: 0;
}

.di-byline .di-sep {
	opacity: 0.5;
}

/* Reading time is stored as a bare integer in post meta. */
.di-readtime::after {
	content: " min read";
}

/* --- Share row and author block -------------------------------------- */
.di-share {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--48, 48px);
}

.di-author {
	margin-top: var(--wp--preset--spacing--48, 48px);
	padding-top: var(--wp--preset--spacing--32, 32px);
	border-top: 1px solid var(--wp--preset--color--line);
}

.di-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* --- Accessibility: focus states the theme is missing ---------------- */
.di-plate a:focus-visible,
.di-chips a:focus-visible,
.di-share a:focus-visible,
.di-author a:focus-visible,
.di-prose a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-text);
	outline-offset: 2px;
	border-radius: 2px;
}

/* --- Corrections after first render ---------------------------------- */

/* The theme centres and shrinks blockquotes. Articles want the pull quote
   large, left aligned and breaking the measure. */
.di-article .di-prose blockquote.wp-block-quote {
	text-align: left;
	max-width: none;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 1.02;
}

.di-article .di-prose blockquote.wp-block-quote p,
.di-article .di-prose blockquote.wp-block-quote cite {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	font-style: normal;
}

/* Breathing room between the title and the byline. */
.di-article .di-articlehead .wp-block-post-title {
	margin-block-end: var(--wp--preset--spacing--24, 24px);
}

.di-article .di-byline {
	margin-block-start: var(--wp--preset--spacing--16, 16px);
}

.di-article .di-crumb {
	margin-block-end: var(--wp--preset--spacing--16, 16px);
}

/* The author name should not compete with the article title. */
.di-author h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-3);
	margin: 0.2em 0 0.6em;
}

.di-author p {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
}

.di-author .di-label {
	font-family: var(--wp--preset--font-family--roboto-mono);
}

/* --- Insights index --------------------------------------------------- */
.di-insights-index .di-search {
	margin-block-start: var(--wp--preset--spacing--24, 24px);
	max-width: 420px;
}

.di-insights-index .di-featured .di-plate__caption h2,
.di-insights-index .di-featured .di-plate__caption h3 {
	font-size: var(--wp--preset--font-size--h-2);
}

.di-insights-index .di-empty {
	color: var(--wp--preset--color--text-muted);
	font-family: var(--wp--preset--font-family--inter);
}
