/*
 * projectOne debate blocks.
 *
 * Text colour and fonts come from the theme. The plugin only adds coloured side lines,
 * and deliberately does not follow the device's dark mode: the theme decides
 * whether the page is light or dark, so text and boxes always match.
 * Colours are set on every part, so each block also works on its own.
 */
.p1-debate,
.p1-block {
	--p1-red: #b8322a;
	--p1-blue: #1d5aa6;
	--p1-narrator: #6a4fa3;
	--p1-muted: color-mix(in srgb, currentColor 62%, transparent);
	--p1-rule: color-mix(in srgb, currentColor 14%, transparent);
	box-sizing: border-box;
	color: inherit;
}

.p1-debate { max-width: 1100px; margin: 0 auto; }

/* Topic */
.p1-topic-block { max-width: 46rem; }
.p1-debate .p1-topic-block { margin-bottom: 2rem; }
.p1-date,
.p1-trending { color: var(--p1-muted); font-size: 0.875rem; margin: 0; letter-spacing: 0.01em; }
.p1-topic { margin: 0.35rem 0 0.75rem; line-height: 1.2; }
.p1-summary { margin: 0 0 0.75rem; font-size: 1.0625rem; line-height: 1.65; }

/* Red / Blue */
.p1-sides {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 800px) {
	.p1-sides { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.p1-side,
.p1-narrator {
	border-left: 4px solid;
	padding: 0.25rem 0 0.25rem 1.5rem;
	min-width: 0;
	line-height: 1.7;
}
.p1-red { border-color: var(--p1-red); }
.p1-blue { border-color: var(--p1-blue); }
.p1-narrator { border-color: var(--p1-narrator); }
.p1-debate .p1-narrator { margin-top: 2rem; }

.p1-side h3,
.p1-narrator h3 {
	margin: 0 0 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	line-height: 1.2;
}
.p1-name { font-size: 1.5rem; }
.p1-red .p1-name { color: var(--p1-red); }
.p1-blue .p1-name { color: var(--p1-blue); }
.p1-narrator .p1-name { color: var(--p1-narrator); }
.p1-emotion { font-size: 0.875rem; font-weight: normal; color: var(--p1-muted); }

/* Report header: which side, then the fictional reporter's byline. */
.p1-block .p1-lean {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.p1-red .p1-lean { color: var(--p1-red); }
.p1-blue .p1-lean { color: var(--p1-blue); }
.p1-emotion { font-style: italic; }
/* Bottom-right label on every content block. */
.p1-block .p1-ai-tag {
	margin: 1rem 0 0;
	text-align: right;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--p1-muted);
}

.p1-block p { margin: 0 0 0.9em; }
.p1-block p:last-child { margin-bottom: 0; }

/* The reporter's dispatch is the main read; sources sit below it. */
.p1-side h4 {
	margin: 1.5rem 0 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--p1-rule);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--p1-muted);
}
.p1-perspective { font-size: 1.0625rem; }
.p1-block .p1-byline { margin: 0 0 1rem; font-size: 0.9375rem; font-style: italic; }
.p1-fictional {
	margin-left: 0.35rem;
	font-style: normal;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--p1-muted);
}

.p1-articles { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.p1-articles li { margin: 0 0 0.75rem; line-height: 1.45; overflow-wrap: anywhere; }
.p1-articles a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.p1-outlet { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--p1-muted); }

/* Narrator */
.p1-narrator { text-align: center; padding: 1rem 1.5rem; }
.p1-narrator h3 { justify-content: center; }
.p1-haiku {
	font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
	font-style: italic;
	line-height: 1.6;
	margin: 0.5rem auto 1.5rem;
}
.p1-narrator .p1-response:not(.p1-haiku) { text-align: left; max-width: 40rem; margin: 0 auto 1.5rem; }
.p1-core {
	max-width: 36rem;
	margin: 0 auto;
	padding-top: 1rem;
	border-top: 1px solid var(--p1-rule);
	font-size: 0.9375rem;
	color: var(--p1-muted);
}
.p1-core strong { color: var(--p1-narrator); font-weight: 600; }

/* Note and empty state */
.p1-note { font-size: 0.8125rem; color: var(--p1-muted); max-width: 46rem; }
.p1-debate .p1-note { margin-top: 1.5rem; }
.p1-empty { color: var(--p1-muted); }

/* Archive */
.p1-archive ul { list-style: none; padding: 0; margin: 0; }
.p1-archive li { border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding: 0.75rem 0; }
.p1-archive a { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; text-decoration: none; }
.p1-archive .p1-date { min-width: 9rem; }
.p1-pager { display: flex; justify-content: space-between; margin-top: 1rem; }
