/**
 * Scoped editorial (T14.6). Frontend: .po-editorial. Canvas: .editor-styles-wrapper.
 * Do not target .woocommerce / product loops. No overflow:hidden. JS 0.
 */

:is(.po-editorial, .editor-styles-wrapper) {
	min-width: 0;
	max-width: 40rem;
	overflow-wrap: anywhere;
	color: var(--po-color-text, #f7f8fc);
}

.po-page--default.po-main,
main.po-page--default {
	padding-block-start: var(--po-space-inset, 2.5rem);
	padding-block-end: 4rem;
	min-width: 0;
}

.po-page--default .po-page__intro {
	display: grid;
	gap: 1rem;
	margin-block-end: 2rem;
	max-width: 40rem;
}

.po-page--default .po-page__title {
	margin: 0;
	max-width: 100%;
	font-family: var(--po-font-display, inherit);
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: var(--po-font-weight-display, 700);
	letter-spacing: -0.04em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.po-page--default .po-page__featured {
	margin: 0;
	max-width: 40rem;
}

.po-page--default .po-page__featured-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--po-color-border, rgba(255, 255, 255, 0.36));
}

.po-page--default .po-page__empty {
	max-width: 40rem;
	color: var(--po-color-muted, #9da3b5);
}

:is(.po-editorial, .editor-styles-wrapper) > * + * {
	margin-block-start: 1.15rem;
}

:is(.po-editorial, .editor-styles-wrapper) :is(h2, h3, h4, h5, h6) {
	margin: 2rem 0 0;
	color: var(--po-color-text, #f7f8fc);
	font-family: var(--po-font-display, inherit);
	letter-spacing: -0.03em;
	line-height: 1.25;
}

:is(.po-editorial, .editor-styles-wrapper) h2 { font-size: 1.35rem; }
:is(.po-editorial, .editor-styles-wrapper) h3 { font-size: 1.15rem; }
:is(.po-editorial, .editor-styles-wrapper) h4 { font-size: 1rem; }

:is(.po-editorial, .editor-styles-wrapper) :is(p, li) {
	line-height: 1.7;
}

:is(.po-editorial, .editor-styles-wrapper) :is(ul, ol) {
	padding-inline-start: 1.35rem;
}

:is(.po-editorial, .editor-styles-wrapper) :is(ul, ol) :is(ul, ol) {
	margin-block: 0.4rem;
}

:is(.po-editorial, .editor-styles-wrapper) :is(blockquote, .wp-block-quote, .wp-block-pullquote) {
	margin: 0;
	padding: 1rem 1.15rem;
	border-inline-start: 3px solid var(--po-color-cyan, #29d8ff);
	background: var(--po-color-surface, #101219);
}

:is(.po-editorial, .editor-styles-wrapper) :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-cover, .wp-block-media-text, .wp-block-embed, .wp-block-video, .wp-block-table, .wp-block-file, .wp-block-buttons, table) {
	max-width: 100%;
}

:is(.po-editorial, .editor-styles-wrapper) :is(.wp-block-table, table) {
	display: block;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

:is(.po-editorial, .editor-styles-wrapper) :is(img, video) {
	display: block;
	max-width: 100%;
	height: auto;
}

:is(.po-editorial, .editor-styles-wrapper) iframe {
	max-width: 100%;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-embed__wrapper,
:is(.po-editorial, .editor-styles-wrapper) .wp-block-video video {
	position: relative;
	width: 100%;
}

:is(.po-editorial, .editor-styles-wrapper) figcaption,
:is(.po-editorial, .editor-styles-wrapper) .wp-element-caption {
	margin-top: 0.5rem;
	color: var(--po-color-muted, #9da3b5);
	font-size: 0.875rem;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.75rem;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-cover {
	min-height: 12rem;
	min-width: 0;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-media-text {
	min-width: 0;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-group,
:is(.po-editorial, .editor-styles-wrapper) .wp-block-columns {
	gap: 1.25rem;
	min-width: 0;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-column {
	min-width: 0;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-group.has-background {
	padding: 1rem;
	border: 1px solid var(--po-color-border, rgba(255, 255, 255, 0.36));
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-separator {
	border: 0;
	border-block-start: 1px solid var(--po-color-border, rgba(255, 255, 255, 0.36));
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-table,
:is(.po-editorial, .editor-styles-wrapper) figure.wp-block-table {
	overflow-x: auto;
}

:is(.po-editorial, .editor-styles-wrapper) table {
	width: 100%;
	border-collapse: collapse;
}

:is(.po-editorial, .editor-styles-wrapper) :is(th, td) {
	padding: 0.65rem 0.45rem;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid var(--po-color-border, rgba(255, 255, 255, 0.36));
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-details {
	padding: 0.85rem 1rem;
	border: 1px solid var(--po-color-border, rgba(255, 255, 255, 0.36));
	background: var(--po-color-surface, #101219);
}

:is(.po-editorial, .editor-styles-wrapper) .wp-block-details summary {
	min-height: 2.75rem;
	cursor: pointer;
	font-weight: 700;
}

:is(.po-editorial, .editor-styles-wrapper) :is(.alignwide, .alignfull) {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.po-editorial .post-password-form {
	display: grid;
	gap: 0.75rem;
	max-width: 24rem;
}

.po-editorial .post-password-form input {
	max-width: 100%;
	min-height: 2.75rem;
	font-size: 1rem;
}

.po-editorial__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 2rem;
}

.po-editorial :is(a, button, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 3px solid var(--po-color-cyan, #29d8ff);
	outline-offset: 3px;
}

@media (min-width: 721px) {
	:is(.po-editorial, .editor-styles-wrapper) .wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media print {
	.po-editorial a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		overflow-wrap: anywhere;
	}
}
