/* Gutenberg: aynı kurallar ön yüzde ve yalnızca editör içeriğinde kullanılır. */
.umas-page-content,
.editor-styles-wrapper {
	--umas-content: var(--wp--style--global--content-size, 760px);
	--umas-wide: var(--wp--style--global--wide-size, 1240px);
	--umas-gutter: var(--wp--custom--layout--gutter, clamp(20px, 5vw, 40px));
	overflow-wrap: anywhere;
}

.umas-page-content.entry-content > * {
	width: calc(100% - 2 * var(--umas-gutter));
	max-width: var(--umas-content);
	margin-inline: auto;
}

.umas-page-content.entry-content > .alignwide {
	max-width: var(--umas-wide);
}

.umas-page-content.entry-content > .alignfull {
	width: 100%;
	max-width: none;
}

/* Editörde medya seçimi bekleyen native görsel bloğu ön yüzde ikon göstermez. */
.umas-page-content .wp-block-image img:not([src]),
.umas-page-content .wp-block-image img[src=""] {
	display: none;
}

:is(.umas-page-content, .editor-styles-wrapper) :is(h2, h3, h4, h5, h6) {
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

:is(.umas-page-content, .editor-styles-wrapper) h2 {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-block: 2.5rem 1rem;
}

:is(.umas-page-content, .editor-styles-wrapper) h3 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block: 2rem 0.85rem;
}

:is(.umas-page-content, .editor-styles-wrapper) h4 {
	font-size: var(--wp--preset--font-size--large);
	margin-block: 1.75rem 0.75rem;
}

:is(.umas-page-content, .editor-styles-wrapper) :is(p, ul, ol, blockquote) {
	margin-block: 0 1.25rem;
}

:is(.umas-page-content, .editor-styles-wrapper) :is(ul, ol) {
	padding-inline-start: 1.35rem;
}

:is(.umas-page-content, .editor-styles-wrapper) li + li {
	margin-top: 0.4rem;
}

:is(.umas-page-content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-group, .wp-block-table, .wp-block-file, .wp-block-buttons) {
	margin-block-end: 1.5rem;
	min-width: 0;
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-column {
	min-width: 0;
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--md, 12px);
}

:is(.umas-page-content, .editor-styles-wrapper) figcaption {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

:is(.umas-page-content, .editor-styles-wrapper) blockquote {
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--large);
}

:is(.umas-page-content, .editor-styles-wrapper) blockquote cite {
	font-size: var(--wp--preset--font-size--small);
}

:is(.umas-page-content, .editor-styles-wrapper) :is(.wp-block-button__link, .wp-block-file__button) {
	max-width: 100%;
	padding: 0.85rem 1.65rem;
	border-radius: var(--wp--custom--radius--sm, 6px);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-file__button {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-file {
	font-size: var(--wp--preset--font-size--medium);
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-table {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

:is(.umas-page-content, .editor-styles-wrapper) table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

:is(.umas-page-content, .editor-styles-wrapper) :is(th, td) {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--wp--custom--border--color, #e3e8ed);
	text-align: start;
}

:is(.umas-page-content, .editor-styles-wrapper) th {
	background: var(--wp--preset--color--light);
}

:is(.umas-page-content, .editor-styles-wrapper) .wp-block-separator {
	margin-block: 2.5rem;
	color: var(--wp--custom--border--color, #e3e8ed);
}

:is(.umas-page-content, .editor-styles-wrapper) .umas-card {
	height: 100%;
	padding: 1.5rem;
	border: 1px solid var(--wp--custom--border--color, #e3e8ed);
	border-radius: var(--wp--custom--radius--md, 12px);
	background: var(--wp--preset--color--white);
}

:is(.umas-page-content, .editor-styles-wrapper) .umas-card > :first-child {
	margin-top: 0;
}

:is(.umas-page-content, .editor-styles-wrapper) .umas-card > :last-child {
	margin-bottom: 0;
}

:is(.umas-page-content, .editor-styles-wrapper) .umas-pattern-cta {
	padding: clamp(1.5rem, 5vw, 4rem);
	border-radius: var(--wp--custom--radius--lg, 20px);
}

:is(.umas-page-content, .editor-styles-wrapper) .umas-pattern-cta h2 {
	margin-top: 0;
}

/* Core'un kolon kırılımı ile aynı: kullanıcı kapatmadıkça kolonlar alt alta. */
@media (max-width: 781px) {
	:is(.umas-page-content, .editor-styles-wrapper) .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}
	:is(.umas-page-content, .editor-styles-wrapper) .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

:is(.umas-page-content, .editor-styles-wrapper) a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}
