/* Ca11y — Creatiea/Impreza temasının değişkenlerine ve seçicilerine bağlıdır */

/* Metin boyutu: tema rem/em tabanlı, kök tipografi kuralı ölçeklenir */
html.ca11y-fs,
html.ca11y-fs .l-header .widget,
html.ca11y-fs .menu-item-object-us_page_block {
	font-size: calc(var(--font-size, 16px) * var(--ca11y-fs, 1));
	line-height: calc(var(--line-height, 28px) * var(--ca11y-fs, 1));
}

/* Filtreler kök elemanda: position:fixed (sticky header, panel) bozulmaz */
html.ca11y-c-gray {
	filter: grayscale(100%);
}
html.ca11y-c-neg {
	background: #fff;
	filter: invert(100%) hue-rotate(180deg);
}
html.ca11y-c-neg img,
html.ca11y-c-neg video,
html.ca11y-c-neg iframe {
	filter: invert(100%) hue-rotate(180deg);
}

/* Yüksek kontrast / beyaz zemin */
html.ca11y-c-hc {
	--ca11y-bg: #000;
	--ca11y-fg: #fff;
	--ca11y-link: #ff0;
}
html.ca11y-c-light {
	--ca11y-bg: #fff;
	--ca11y-fg: #000;
	--ca11y-link: #00c;
}
html.ca11y-c-hc,
html.ca11y-c-light,
html.ca11y-c-hc body,
html.ca11y-c-light body,
html.ca11y-c-hc body :where(*:not(img):not(video):not(iframe):not(svg):not(svg *)),
html.ca11y-c-light body :where(*:not(img):not(video):not(iframe):not(svg):not(svg *)) {
	background-color: var(--ca11y-bg) !important;
	background-image: none !important;
	color: var(--ca11y-fg) !important;
	border-color: var(--ca11y-fg) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
html.ca11y-c-hc body a,
html.ca11y-c-light body a,
html.ca11y-c-hc body a *,
html.ca11y-c-light body a *,
html.ca11y-c-hc body button,
html.ca11y-c-light body button,
html.ca11y-c-hc body .w-btn,
html.ca11y-c-light body .w-btn,
html.ca11y-c-hc body .w-btn * ,
html.ca11y-c-light body .w-btn * {
	color: var(--ca11y-link) !important;
}
html.ca11y-c-hc body *::before,
html.ca11y-c-light body *::before,
html.ca11y-c-hc body *::after,
html.ca11y-c-light body *::after {
	background-image: none !important;
	box-shadow: none !important;
}

html.ca11y-u a {
	text-decoration: underline !important;
}

/* İkon fontları (<i>, material-icons) hariç */
html.ca11y-r body,
html.ca11y-r body *:not(i):not(.material-icons) {
	font-family: Arial, Helvetica, sans-serif !important;
}

html.ca11y-m *,
html.ca11y-m *::before,
html.ca11y-m *::after {
	animation-duration: 0.001ms !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}

/* Panel */
.ca11y-panel {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
	inset-inline-end: 1rem;
	z-index: 10010;
	box-sizing: border-box;
	width: 20rem;
	max-width: calc(100vw - 2rem);
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 2rem);
	overflow-y: auto;
	padding: 1rem;
	border: 1px solid var(--color-content-border, #ddd);
	border-radius: var(--site-border-radius, 0.3rem);
	background: var(--color-content-bg, #fff);
	color: var(--color-content-text, #333);
	box-shadow: 0 0.3rem 1.5rem rgba(0, 0, 0, 0.2);
	font-size: 0.9rem;
	line-height: 1.4;
	text-align: start;
}
.ca11y-panel[hidden] {
	display: none;
}
.ca11y-panel__head,
.ca11y-panel__size,
.ca11y-panel__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.ca11y-panel__title {
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}
.ca11y-panel__close {
	flex-shrink: 0;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border-radius: var(--site-border-radius, 0.3rem);
	background: none;
	font-size: 1.6rem;
	line-height: 1;
}
.ca11y-panel__size,
.ca11y-panel__group,
.ca11y-panel__foot {
	margin-top: 0.75rem;
}
.ca11y-panel__group {
	display: grid;
	gap: 0.4rem;
}
.ca11y-panel__btn {
	position: relative;
	min-height: 2.4rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid transparent;
	border-radius: var(--site-border-radius, 0.3rem);
	background: var(--color-content-bg-alt, #f2f4f7);
	color: inherit;
	text-align: start;
}
.ca11y-panel__btn[disabled] {
	opacity: 0.5;
	cursor: default;
}
/* Seçili durum yalnız renkle verilmez: kenarlık + işaret */
.ca11y-panel__btn[aria-pressed="true"] {
	padding-inline-end: 2.2rem;
	border-color: currentColor !important;
	font-weight: 700;
}
.ca11y-panel__btn[aria-pressed="true"]::after {
	content: "\2713";
	position: absolute;
	inset-inline-end: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
}
.ca11y-panel__level {
	min-width: 3.5em;
	text-align: center;
	font-weight: 700;
}
.ca11y-panel__link {
	text-decoration: underline;
}
.ca11y-panel button:focus-visible,
.ca11y-panel a:focus-visible {
	outline: var(--focus-outline-width, 2px) solid currentColor;
	outline-offset: 2px;
}
