/*!
 * Sinop Üniversitesi Erişilebilirlik – önyüz stilleri
 * Kapsam kuralı: sayfa üzerinde yapılan tüm değişiklikler
 * `body > *:not(#sinop-a11y):not(.sa-live)` altında uygulanır; böylece
 * erişilebilirlik menüsünün kendisi her zaman okunabilir kalır.
 */

/* ---------------------------------------------------------------
 * 1. Temel
 * ------------------------------------------------------------- */

#sinop-a11y,
#sinop-a11y * {
	box-sizing: border-box;
}

#sinop-a11y {
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--sa-panel-text, #1a1d21);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------
 * 1.1 Tema yalıtımı
 *
 * Kurumsal temalar (Elementor, tema özelleştirici, sayfa oluşturucu)
 * `button`, `h1`-`h6`, `p`, `a` gibi öğelere kendi renk, hizalama ve
 * dolgu kurallarını uygular. Bu kurallar `.sa-*` sınıflarımızdan daha
 * yüksek özgüllüğe sahip olabildiğinden panelin içine sızar; ekranda
 * turuncu başlıklar, ortalanmış profil kartları, taşan metinler ve yatay
 * kaydırma çubuğu olarak görünür.
 *
 * Aşağıdaki sıfırlama `#sinop-a11y :where(...)` biçimindedir; özgüllüğü
 * tam olarak (1,0,0)'dır. Böylece temanın sınıf tabanlı kurallarını
 * (0,x,y) geçer, ancak `#sinop-a11y .sa-*` biçimindeki kendi bileşen
 * kurallarımızın (1,1,0) altında kalır. Sayfa geneline dokunmaz.
 * ------------------------------------------------------------- */

#sinop-a11y :where(div, span, p, a, button, input, select, textarea, label,
	h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, form, fieldset, legend,
	table, tr, td, th, img, svg, strong, em, small, kbd,
	section, header, footer, nav, article, aside) {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
	min-width: 0;
	max-width: none;
	height: auto;
	min-height: 0;
	max-height: none;
	font: inherit;
	font-style: normal;
	font-variant: normal;
	color: inherit;
	text-align: inherit;
	text-indent: 0;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	letter-spacing: normal;
	word-spacing: normal;
	white-space: normal;
	vertical-align: baseline;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
	list-style: none;
	transform: none;
	filter: none;
	opacity: 1;
	-webkit-text-fill-color: currentColor;
}

#sinop-a11y :where(button, input, select, textarea) {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
}

#sinop-a11y :where(button) {
	cursor: pointer;
}

/*
 * Simgeler `fill="none" stroke="currentColor"` ile çizilir. CSS, SVG sunum
 * özniteliklerini her zaman geçtiği için burada `fill` ayarlanmaz; aksi
 * hâlde tüm simgeler içi dolu leke olarak görünür.
 */
#sinop-a11y :where(svg) {
	vertical-align: middle;
}

#sinop-a11y :where(img) {
	max-width: 100%;
	height: auto;
}

/* Tema kaynaklı süs karakterleri (ok, tırnak, madde imi) panelde görünmez. */
#sinop-a11y :where(*)::before,
#sinop-a11y :where(*)::after {
	content: none;
}

/* Sıfırlama `outline: 0` uyguladığı için odak göstergesi geri verilir. */
#sinop-a11y :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--sa-accent, #0b4f9e);
	outline-offset: 2px;
}

.sa-sr,
#sinop-a11y .sa-sr,
#sinop-a11y .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sa-live {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

#sinop-a11y .sa-ico {
	width: 1em;
	height: 1em;
	display: block;
	flex: none;
}

/* ---------------------------------------------------------------
 * 2. Açma butonu
 * ------------------------------------------------------------- */

#sinop-a11y .sa-trigger {
	position: fixed;
	z-index: var(--sa-z, 999995);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: var(--sa-btn-size, 56px);
	height: var(--sa-btn-size, 56px);
	padding: 0;
	margin: 0;
	font-size: calc(var(--sa-btn-size, 56px) * 0.52);
	color: var(--sa-btn-fg, #fff);
	background: var(--sa-btn-bg, #0b4f9e);
	border: 2px solid transparent;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease;
	appearance: none;
	-webkit-appearance: none;
}

#sinop-a11y.sa-shape-rounded .sa-trigger { border-radius: 16px; }
#sinop-a11y.sa-shape-square .sa-trigger { border-radius: 4px; }

#sinop-a11y .sa-trigger--has-text {
	width: auto;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	font-size: 16px;
}

#sinop-a11y .sa-trigger--has-text .sa-ico {
	width: 26px;
	height: 26px;
}

#sinop-a11y .sa-trigger__text {
	font-weight: 600;
	white-space: nowrap;
}

#sinop-a11y .sa-trigger__img {
	width: 60%;
	height: 60%;
	object-fit: contain;
}

#sinop-a11y .sa-trigger:hover,
#sinop-a11y .sa-trigger:focus-visible {
	transform: scale(1.07);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

#sinop-a11y .sa-trigger:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	border-color: #000;
}

#sinop-a11y.sa-pos-bottom-right .sa-trigger { right: var(--sa-off-x); bottom: var(--sa-off-y); }
#sinop-a11y.sa-pos-bottom-left  .sa-trigger { left: var(--sa-off-x);  bottom: var(--sa-off-y); }
#sinop-a11y.sa-pos-top-right    .sa-trigger { right: var(--sa-off-x); top: var(--sa-off-y); }
#sinop-a11y.sa-pos-top-left     .sa-trigger { left: var(--sa-off-x);  top: var(--sa-off-y); }
#sinop-a11y.sa-pos-middle-right .sa-trigger { right: var(--sa-off-x); top: 50%; transform: translateY(-50%); }
#sinop-a11y.sa-pos-middle-left  .sa-trigger { left: var(--sa-off-x);  top: 50%; transform: translateY(-50%); }

#sinop-a11y.sa-pos-middle-right .sa-trigger:hover,
#sinop-a11y.sa-pos-middle-left .sa-trigger:hover { transform: translateY(-50%) scale(1.07); }

#sinop-a11y .sa-trigger--pulse::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: inherit;
	border: 2px solid var(--sa-btn-bg, #0b4f9e);
	animation: sa-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

@keyframes sa-pulse {
	0%   { transform: scale(0.9); opacity: 0.85; }
	70%  { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

#sinop-a11y .sa-trigger--autohide.is-hidden {
	opacity: 0;
	pointer-events: none;
}

#sinop-a11y .sa-trigger[data-tooltip]:hover::before,
#sinop-a11y .sa-trigger[data-tooltip]:focus-visible::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	color: #fff;
	background: #111;
	border-radius: 6px;
	pointer-events: none;
}

#sinop-a11y.sa-pos-top-right .sa-trigger[data-tooltip]:hover::before,
#sinop-a11y.sa-pos-top-left .sa-trigger[data-tooltip]:hover::before {
	bottom: auto;
	top: calc(100% + 10px);
}

#sinop-a11y.sa-pos-bottom-left .sa-trigger[data-tooltip]:hover::before,
#sinop-a11y.sa-pos-middle-left .sa-trigger[data-tooltip]:hover::before {
	right: auto;
	left: 0;
}

/* Kısa kod / menü tetikleyicisi (sayfa içeriğinde durur, tema sızıntısına açıktır) */
.sa-inline-trigger.sa-inline-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: var(--sa-btn-fg, #fff);
	background: var(--sa-btn-bg, #0b4f9e);
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
}

.sa-inline-trigger.sa-inline-trigger > span {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.sa-inline-trigger .sa-ico { width: 20px; height: 20px; }

.sa-inline-trigger--link.sa-inline-trigger--link {
	padding: 0;
	color: var(--sa-btn-bg, #0b4f9e);
	background: none;
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * 3. Overlay ve panel
 * ------------------------------------------------------------- */

#sinop-a11y .sa-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--sa-z, 999995) - 2);
	background: rgba(10, 14, 20, 0.55);
	backdrop-filter: blur(2px);
	animation: sa-fade 0.2s ease;
}

@keyframes sa-fade { from { opacity: 0; } to { opacity: 1; } }

#sinop-a11y .sa-panel {
	position: fixed;
	top: 16px;
	bottom: 16px;
	z-index: calc(var(--sa-z, 999995) + 1);
	display: flex;
	flex-direction: column;
	width: var(--sa-panel-w, 400px);
	max-width: calc(100vw - 24px);
	background: var(--sa-panel-bg, #fff);
	color: var(--sa-panel-text, #1a1d21);
	border-radius: var(--sa-radius, 14px);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	font-size: calc(1em * var(--sa-ui-scale, 1));
}

#sinop-a11y.sa-side-right .sa-panel { right: 16px; animation: sa-slide-right 0.24s ease; }
#sinop-a11y.sa-side-left .sa-panel { left: 16px;  animation: sa-slide-left 0.24s ease; }

@keyframes sa-slide-right { from { transform: translateX(40px); opacity: 0; } }
@keyframes sa-slide-left  { from { transform: translateX(-40px); opacity: 0; } }

#sinop-a11y .sa-panel[hidden] { display: none; }

#sinop-a11y .sa-panel__head {
	display: flex;
	flex: none;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 14px;
	background: var(--sa-accent, #0b4f9e);
	color: var(--sa-accent-contrast, #fff);
}

#sinop-a11y .sa-panel__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

#sinop-a11y .sa-panel__brandico .sa-ico {
	width: 34px;
	height: 34px;
	opacity: 0.95;
}

#sinop-a11y .sa-panel__title {
	margin: 0;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

#sinop-a11y .sa-panel__subtitle {
	margin: 3px 0 0;
	font-size: 0.82em;
	opacity: 0.88;
	line-height: 1.35;
}

#sinop-a11y .sa-panel__actions {
	display: flex;
	gap: 6px;
	flex: none;
}

#sinop-a11y .sa-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: inherit;
	background: rgba(255, 255, 255, 0.16);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

#sinop-a11y .sa-iconbtn:hover { background: rgba(255, 255, 255, 0.3); }
#sinop-a11y .sa-iconbtn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
#sinop-a11y .sa-iconbtn .sa-ico { width: 20px; height: 20px; }

/*
 * Arama alanı `flex: none` ile sabitlenir; ayrıca `display: flex` ve
 * simgenin `top: 0; bottom: 0` ile hizalanması sayesinde kapsayıcı boyu
 * ne olursa olsun input taşamaz, simge de yukarı kayamaz. Böylece
 * "Özellik ara" kutusunun alttaki grup başlığının üzerine binmesi
 * yapısal olarak imkânsız hâle gelir.
 */
#sinop-a11y .sa-panel__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: none;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#sinop-a11y .sa-search__ico {
	position: absolute;
	left: 30px;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	transform: none;
	opacity: 0.5;
	pointer-events: none;
}

#sinop-a11y .sa-search__ico .sa-ico { width: 18px; height: 18px; }

#sinop-a11y .sa-search__input {
	width: 100%;
	padding: 10px 12px 10px 40px;
	font: inherit;
	font-size: 0.92em;
	color: inherit;
	background: rgba(0, 0, 0, 0.04);
	border: 2px solid transparent;
	border-radius: 10px;
}

#sinop-a11y .sa-search__input:focus {
	outline: none;
	border-color: var(--sa-accent, #0b4f9e);
	background: transparent;
}

/*
 * Panel bir flex sütunudur. Gövde dışındaki bölümler `flex: none` ile
 * sabitlenmezse, içerik panel boyunu aştığında başlık ve arama alanı
 * ezilir; arama kutusu kendi kapsayıcısından taşarak alttaki grup
 * başlığının üzerine biner. `min-height: 0` ise gövdenin kaydırma
 * yüksekliğini doğru hesaplamasını sağlar.
 */
#sinop-a11y .sa-panel__body {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 18px 18px;
	-webkit-overflow-scrolling: touch;
}

#sinop-a11y .sa-panel__body:focus { outline: none; }

#sinop-a11y .sa-group { padding: 14px 0 4px; }
#sinop-a11y .sa-group[hidden] { display: none; }

#sinop-a11y .sa-group__title {
	margin: 0 0 4px;
	font-size: 0.78em;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.6;
}

#sinop-a11y .sa-group__desc {
	margin: 0 0 12px;
	font-size: 0.82em;
	opacity: 0.7;
}

#sinop-a11y .sa-empty {
	padding: 24px 0;
	text-align: center;
	opacity: 0.6;
	font-size: 0.9em;
}

/* ---------------------------------------------------------------
 * 4. Profiller
 * ------------------------------------------------------------- */

#sinop-a11y .sa-profiles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#sinop-a11y .sa-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	text-align: left;
	font: inherit;
	color: inherit;
	background: rgba(0, 0, 0, 0.035);
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

#sinop-a11y .sa-profile[hidden] { display: none; }
#sinop-a11y .sa-profile:hover { background: rgba(0, 0, 0, 0.06); }
#sinop-a11y .sa-profile:focus-visible { outline: 3px solid var(--sa-accent, #0b4f9e); outline-offset: 2px; }

#sinop-a11y .sa-profile[aria-pressed="true"] {
	background: color-mix(in srgb, var(--sa-accent, #0b4f9e) 12%, transparent);
	border-color: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-profile__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	color: var(--sa-accent, #0b4f9e);
	background: rgba(0, 0, 0, 0.05);
	border-radius: 10px;
}

#sinop-a11y .sa-profile[aria-pressed="true"] .sa-profile__ico {
	color: var(--sa-accent-contrast, #fff);
	background: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-profile__ico .sa-ico { width: 22px; height: 22px; }

#sinop-a11y .sa-profile__body { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }

#sinop-a11y .sa-profile__name {
	display: block;
	font-weight: 700;
	font-size: 0.94em;
}

#sinop-a11y .sa-profile__desc {
	display: block;
	margin-top: 2px;
	font-size: 0.78em;
	opacity: 0.72;
	line-height: 1.35;
}

#sinop-a11y .sa-switch {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	transition: background 0.18s ease;
}

#sinop-a11y .sa-switch__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	transition: transform 0.18s ease;
}

#sinop-a11y .sa-profile[aria-pressed="true"] .sa-switch { background: var(--sa-accent, #0b4f9e); }
#sinop-a11y .sa-profile[aria-pressed="true"] .sa-switch__knob { transform: translateX(18px); }

/* ---------------------------------------------------------------
 * 5. Modül kutucukları
 * ------------------------------------------------------------- */

#sinop-a11y .sa-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

#sinop-a11y .sa-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	min-height: 104px;
	padding: 14px 10px 12px;
	text-align: center;
	font: inherit;
	color: inherit;
	background: rgba(0, 0, 0, 0.035);
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

#sinop-a11y .sa-tile[hidden] { display: none; }
#sinop-a11y .sa-tile:hover { background: rgba(0, 0, 0, 0.065); }
#sinop-a11y .sa-tile:focus-visible { outline: 3px solid var(--sa-accent, #0b4f9e); outline-offset: 2px; }

#sinop-a11y .sa-tile[aria-pressed="true"],
#sinop-a11y .sa-tile.is-active {
	background: color-mix(in srgb, var(--sa-accent, #0b4f9e) 12%, transparent);
	border-color: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-tile__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-tile__ico .sa-ico { width: 26px; height: 26px; }

#sinop-a11y .sa-tile__label {
	max-width: 100%;
	font-size: 0.82em;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: break-word;
}

#sinop-a11y .sa-tile__desc {
	max-width: 100%;
	font-size: 0.7em;
	opacity: 0.68;
	line-height: 1.3;
	overflow-wrap: break-word;
}

#sinop-a11y .sa-tile__state {
	margin-top: auto;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.02em;
	opacity: 0.6;
}

#sinop-a11y .sa-tile[aria-pressed="true"] .sa-tile__state,
#sinop-a11y .sa-tile.is-active .sa-tile__state {
	color: var(--sa-accent, #0b4f9e);
	opacity: 1;
}

#sinop-a11y .sa-dots {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 3px;
}

#sinop-a11y .sa-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.22;
}

#sinop-a11y .sa-dot.is-on { opacity: 1; color: var(--sa-accent, #0b4f9e); }

/* Adımlı kutucuk */
#sinop-a11y .sa-tile--step {
	cursor: default;
	justify-content: space-between;
}

#sinop-a11y .sa-tile--step:hover { background: rgba(0, 0, 0, 0.035); }

#sinop-a11y .sa-stepper {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	margin-top: auto;
}

#sinop-a11y .sa-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	padding: 0;
	color: var(--sa-accent, #0b4f9e);
	background: rgba(0, 0, 0, 0.06);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

#sinop-a11y .sa-stepper__btn:hover { background: var(--sa-accent, #0b4f9e); color: var(--sa-accent-contrast, #fff); }
#sinop-a11y .sa-stepper__btn:focus-visible { outline: 3px solid var(--sa-accent, #0b4f9e); outline-offset: 2px; }
#sinop-a11y .sa-stepper__btn .sa-ico { width: 16px; height: 16px; }

#sinop-a11y .sa-stepper__val {
	flex: 1 1 auto;
	font-size: 0.78em;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

/* Renk seçiciler */
#sinop-a11y .sa-colors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

#sinop-a11y .sa-colors[hidden] { display: none; }

#sinop-a11y .sa-color {
	padding: 10px;
	background: rgba(0, 0, 0, 0.035);
	border-radius: 10px;
}

#sinop-a11y .sa-color__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.76em;
	font-weight: 700;
}

#sinop-a11y .sa-color__row { display: flex; gap: 6px; align-items: center; }

#sinop-a11y .sa-color__input {
	flex: 1 1 auto;
	width: 100%;
	height: 34px;
	padding: 2px;
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	cursor: pointer;
}

#sinop-a11y .sa-color__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	padding: 0;
	color: inherit;
	background: rgba(0, 0, 0, 0.07);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.7;
}

#sinop-a11y .sa-color__clear:hover { opacity: 1; }
#sinop-a11y .sa-color__clear .sa-ico { width: 14px; height: 14px; }

/* Seçim kutuları */
#sinop-a11y .sa-select {
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 0.86em;
	color: inherit;
	background: rgba(0, 0, 0, 0.04);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	cursor: pointer;
}

#sinop-a11y .sa-select:focus { outline: none; border-color: var(--sa-accent, #0b4f9e); }

#sinop-a11y .sa-useful { margin-top: 10px; }
#sinop-a11y .sa-useful[hidden] { display: none; }

#sinop-a11y .sa-useful__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.78em;
	font-weight: 700;
	opacity: 0.8;
}

/* Sesli okuma kontrolleri */
#sinop-a11y .sa-tts {
	margin-top: 10px;
	padding: 12px;
	background: rgba(0, 0, 0, 0.035);
	border-radius: 12px;
}

#sinop-a11y .sa-tts[hidden] { display: none; }

#sinop-a11y .sa-tts__controls {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

#sinop-a11y .sa-tts__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.8em;
}

#sinop-a11y .sa-tts__row label { flex: none; font-weight: 700; min-width: 76px; }
#sinop-a11y .sa-tts__row input[type="range"] { flex: 1 1 auto; accent-color: var(--sa-accent, #0b4f9e); }
#sinop-a11y .sa-tts__row output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 40px; text-align: right; }
#sinop-a11y .sa-tts__row .sa-select { flex: 1 1 auto; }

#sinop-a11y .sa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	font: inherit;
	font-size: 0.82em;
	font-weight: 700;
	color: inherit;
	background: rgba(0, 0, 0, 0.06);
	border: 2px solid transparent;
	border-radius: 9px;
	cursor: pointer;
}

#sinop-a11y .sa-btn:hover { background: rgba(0, 0, 0, 0.12); }
#sinop-a11y .sa-btn:focus-visible { outline: 3px solid var(--sa-accent, #0b4f9e); outline-offset: 2px; }
#sinop-a11y .sa-btn .sa-ico { width: 16px; height: 16px; }

#sinop-a11y .sa-btn--primary {
	color: var(--sa-accent-contrast, #fff);
	background: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-btn--primary:hover { filter: brightness(1.12); background: var(--sa-accent, #0b4f9e); }
#sinop-a11y .sa-btn--ghost { background: transparent; border-color: rgba(0, 0, 0, 0.18); }

/* ---------------------------------------------------------------
 * 6. Panel alt bilgi
 * ------------------------------------------------------------- */

#sinop-a11y .sa-panel__foot {
	flex: none;
	padding: 12px 18px 14px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.02);
}

#sinop-a11y .sa-panel__foot .sa-btn { width: 100%; }

#sinop-a11y .sa-foot__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
}

#sinop-a11y .sa-foot__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.76em;
	font-weight: 600;
	color: var(--sa-accent, #0b4f9e);
	text-decoration: underline;
}

#sinop-a11y .sa-foot__link .sa-ico { width: 14px; height: 14px; }

#sinop-a11y .sa-foot__note {
	margin: 10px 0 0;
	font-size: 0.7em;
	line-height: 1.4;
	opacity: 0.6;
}

/* ---------------------------------------------------------------
 * 7. Yardımcı katmanlar (maske, çizgi, büyüteç, diyaloglar)
 * ------------------------------------------------------------- */

.sa-mask {
	position: fixed;
	left: 0;
	right: 0;
	z-index: calc(var(--sa-z, 999995) - 4);
	background: rgba(0, 0, 0, 0.75);
	pointer-events: none;
}

.sa-mask--top { top: 0; }
.sa-mask--bottom { bottom: 0; }

.sa-guide {
	position: fixed;
	left: 0;
	right: 0;
	height: 4px;
	z-index: calc(var(--sa-z, 999995) - 4);
	background: #d90429;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
	pointer-events: none;
}

.sa-magnifier {
	position: fixed;
	z-index: calc(var(--sa-z, 999995) - 3);
	max-width: min(680px, 92vw);
	padding: 14px 18px;
	font: 700 26px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #14181d;
	border: 2px solid #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.sa-hoverbox {
	position: fixed;
	z-index: calc(var(--sa-z, 999995) - 5);
	border: 3px solid #d90429;
	border-radius: 3px;
	background: rgba(217, 4, 41, 0.06);
	pointer-events: none;
	transition: all 0.06s linear;
}

#sinop-a11y .sa-dialog {
	position: fixed;
	z-index: calc(var(--sa-z, 999995) + 3);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	width: min(560px, calc(100vw - 32px));
	max-height: min(76vh, 720px);
	background: #fff;
	color: #14181d;
	border-radius: 14px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
}

#sinop-a11y .sa-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--sa-accent, #0b4f9e);
	color: var(--sa-accent-contrast, #fff);
}

#sinop-a11y .sa-dialog__title { margin: 0; font-size: 1.02em; font-weight: 700; color: inherit; }
#sinop-a11y .sa-dialog__body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; }
#sinop-a11y .sa-dialog__foot { flex: none; padding: 10px 16px 14px; border-top: 1px solid rgba(0, 0, 0, 0.1); font-size: 0.8em; opacity: 0.75; }

#sinop-a11y .sa-tabs {
	display: flex;
	gap: 4px;
	padding: 10px 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	flex-wrap: wrap;
}

#sinop-a11y .sa-tabs__btn {
	padding: 8px 12px;
	font: inherit;
	font-size: 0.84em;
	font-weight: 700;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	opacity: 0.6;
}

#sinop-a11y .sa-tabs__btn[aria-selected="true"] {
	opacity: 1;
	color: var(--sa-accent, #0b4f9e);
	border-bottom-color: var(--sa-accent, #0b4f9e);
}

#sinop-a11y .sa-list { margin: 0; padding: 0; list-style: none; }

#sinop-a11y .sa-list__item {
	display: block;
	width: 100%;
	padding: 9px 10px;
	text-align: left;
	font: inherit;
	font-size: 0.9em;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 6px;
	cursor: pointer;
}

#sinop-a11y .sa-list__item:hover { background: rgba(0, 0, 0, 0.05); }
#sinop-a11y .sa-list__item:focus-visible { outline: 3px solid var(--sa-accent, #0b4f9e); outline-offset: -2px; }

#sinop-a11y .sa-list__tag {
	display: inline-block;
	min-width: 30px;
	margin-right: 8px;
	padding: 1px 6px;
	font-size: 0.72em;
	font-weight: 800;
	text-align: center;
	color: var(--sa-accent-contrast, #fff);
	background: var(--sa-accent, #0b4f9e);
	border-radius: 4px;
	vertical-align: 1px;
}

#sinop-a11y .sa-list__empty { padding: 20px 4px; font-size: 0.9em; opacity: 0.7; }

#sinop-a11y .sa-list__item[data-level="2"] { padding-left: 22px; }
#sinop-a11y .sa-list__item[data-level="3"] { padding-left: 34px; }
#sinop-a11y .sa-list__item[data-level="4"] { padding-left: 46px; }
#sinop-a11y .sa-list__item[data-level="5"] { padding-left: 58px; }
#sinop-a11y .sa-list__item[data-level="6"] { padding-left: 70px; }

/* Sözlük balonu */
.sa-dict {
	position: absolute;
	z-index: calc(var(--sa-z, 999995) + 4);
	width: min(360px, calc(100vw - 24px));
	padding: 14px 16px;
	font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #14181d;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Sözlük kutusu <body> altında durur; tema sızıntısına karşı yalıtılır. */
.sa-dict.sa-dict :where(p, ul, li, em, button, span) {
	margin: 0;
	padding: 0;
	font: inherit;
	font-style: normal;
	color: inherit;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	letter-spacing: normal;
	background: none;
	border: 0;
	list-style: none;
}

.sa-dict .sa-dict__word { margin: 0 0 6px; font-size: 1.05em; font-weight: 800; }
.sa-dict .sa-dict__list { margin: 0; padding-left: 18px; list-style: disc; }
.sa-dict .sa-dict__list li { margin-bottom: 6px; list-style: disc; }
.sa-dict .sa-dict__type { font-style: italic; opacity: 0.7; margin-right: 4px; }
.sa-dict .sa-dict__src { margin: 8px 0 0; font-size: 0.78em; opacity: 0.6; }
.sa-dict .sa-dict__close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; color: inherit; }

.sa-dict-btn {
	position: absolute;
	z-index: calc(var(--sa-z, 999995) + 4);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	font: 700 13px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #14181d;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Sanal klavye */
#sinop-a11y .sa-vk {
	position: fixed;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: calc(var(--sa-z, 999995) + 2);
	width: min(760px, calc(100vw - 16px));
	padding: 10px;
	background: #1c2128;
	border-radius: 12px;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
	user-select: none;
}

#sinop-a11y .sa-vk__row { display: flex; gap: 5px; margin-bottom: 5px; justify-content: center; }

#sinop-a11y .sa-vk__key {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 4px;
	font: 600 15px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #2c333c;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
}

#sinop-a11y .sa-vk__key:hover { background: #3c4551; }
#sinop-a11y .sa-vk__key:active { background: var(--sa-accent, #0b4f9e); }
#sinop-a11y .sa-vk__key--wide { flex: 2 1 auto; font-size: 12px; }
#sinop-a11y .sa-vk__key--space { flex: 8 1 auto; }
#sinop-a11y .sa-vk__key.is-on { background: var(--sa-accent, #0b4f9e); }

#sinop-a11y .sa-vk__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #cbd3dd; font: 600 12px/1 sans-serif; padding: 0 4px; }
#sinop-a11y .sa-vk__close { background: none; border: 0; color: #cbd3dd; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; }

/* Sesli komut göstergesi */
.sa-voice-hud {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: calc(var(--sa-z, 999995) + 2);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	font: 600 14px/1.3 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #14181d;
	border-radius: 999px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
	max-width: calc(100vw - 32px);
}

.sa-voice-hud__dot {
	width: 10px;
	height: 10px;
	flex: none;
	border-radius: 50%;
	background: #ff3b30;
	animation: sa-blink 1.1s ease-in-out infinite;
}

@keyframes sa-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Klavye gezinme ipucu */
#sinop-a11y .sa-kbhint {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: calc(var(--sa-z, 999995) - 1);
	max-width: 320px;
	padding: 12px 14px;
	font: 13px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #14181d;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#sinop-a11y .sa-kbhint strong { display: block; margin-bottom: 4px; }

.sa-kb-target {
	outline: 4px solid #d90429 !important;
	outline-offset: 3px !important;
	scroll-margin-top: 120px;
}

/* ---------------------------------------------------------------
 * 8. Sayfaya uygulanan değişiklikler
 * ------------------------------------------------------------- */

/* 8.1 Görsel filtreler (tek geçişte uygulanır) */
html.sa-has-filter body > *:not(#sinop-a11y):not(.sa-live):not(.sa-skiplink)  {
	filter: var(--sa-filter, none) !important;
}

/* 8.2 Satır/harf/kelime aralığı */
html.sa-lh body > *:not(#sinop-a11y):not(.sa-live),
html.sa-lh body > *:not(#sinop-a11y):not(.sa-live) * {
	line-height: var(--sa-lh) !important;
}

html.sa-ls body > *:not(#sinop-a11y):not(.sa-live),
html.sa-ls body > *:not(#sinop-a11y):not(.sa-live) * {
	letter-spacing: var(--sa-ls) !important;
}

html.sa-ws body > *:not(#sinop-a11y):not(.sa-live),
html.sa-ws body > *:not(#sinop-a11y):not(.sa-live) * {
	word-spacing: var(--sa-ws) !important;
}

/* 8.3 Yazı tipleri */
html.sa-font-readable body > *:not(#sinop-a11y):not(.sa-live),
html.sa-font-readable body > *:not(#sinop-a11y):not(.sa-live) *:not(i):not(.fa):not([class*="icon"]):not([class*="dashicons"])  {
	font-family: var(--sa-font-readable) !important;
}

html.sa-font-dyslexic body > *:not(#sinop-a11y):not(.sa-live),
html.sa-font-dyslexic body > *:not(#sinop-a11y):not(.sa-live) *:not(i):not(.fa):not([class*="icon"]):not([class*="dashicons"])  {
	font-family: var(--sa-font-dyslexic) !important;
	letter-spacing: 0.03em;
}

/* 8.4 Metin hizalama */
html.sa-align-left body > *:not(#sinop-a11y):not(.sa-live) :is(p, li, h1, h2, h3, h4, h5, h6, td, dd, blockquote, figcaption)  { text-align: left !important; }
html.sa-align-center body > *:not(#sinop-a11y):not(.sa-live) :is(p, li, h1, h2, h3, h4, h5, h6, td, dd, blockquote, figcaption)  { text-align: center !important; }
html.sa-align-right body > *:not(#sinop-a11y):not(.sa-live) :is(p, li, h1, h2, h3, h4, h5, h6, td, dd, blockquote, figcaption)  { text-align: right !important; }
html.sa-align-justify body > *:not(#sinop-a11y):not(.sa-live) :is(p, li, td, dd, blockquote)  { text-align: justify !important; }

/* 8.5 Bağlantı ve başlık vurgusu */
html.sa-hl-links body > *:not(#sinop-a11y):not(.sa-live) a[href] {
	color: #000 !important;
	background-color: #ffe500 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	outline: 2px solid #000 !important;
	outline-offset: 1px;
	box-shadow: none !important;
}

html.sa-hl-links body > *:not(#sinop-a11y):not(.sa-live) a[href] * {
	color: #000 !important;
	background-color: transparent !important;
}

html.sa-hl-titles body > *:not(#sinop-a11y):not(.sa-live) :is(h1, h2, h3, h4, h5, h6)  {
	outline: 2px dashed #d90429 !important;
	outline-offset: 3px;
	background-color: rgba(217, 4, 41, 0.06) !important;
}

/* 8.6 Görselleri gizle */
html.sa-hide-images body > *:not(#sinop-a11y):not(.sa-live) :is(img, picture, video, svg:not(.sa-ico), canvas, figure > a > img)  {
	visibility: hidden !important;
}

html.sa-hide-images body > *:not(#sinop-a11y):not(.sa-live),
html.sa-hide-images body > *:not(#sinop-a11y):not(.sa-live) * {
	background-image: none !important;
}

/* 8.6b Emojileri gizle */
html.sa-hide-emoji .sa-emoji {
	display: none !important;
}

html.sa-hide-emoji body :is(img.emoji, img.wp-smiley)  {
	display: none !important;
}

/* 8.6c Bilişsel okuma (biyonik okuma) */
html.sa-cognitive .sa-cog {
	font-weight: 700;
	color: inherit;
}

/* 8.7 Animasyonları durdur */
html.sa-stop-anim body > *:not(#sinop-a11y):not(.sa-live),
html.sa-stop-anim body > *:not(#sinop-a11y):not(.sa-live) *,
html.sa-stop-anim body > *:not(#sinop-a11y):not(.sa-live) *::before,
html.sa-stop-anim body > *:not(#sinop-a11y):not(.sa-live) *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

html.sa-stop-anim { scroll-behavior: auto !important; }

/* 8.8 Odak vurgusu */
html.sa-hl-focus body :is(a, button, input, select, textarea, summary, [tabindex]):focus,
html.sa-hl-focus body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 4px solid #d90429 !important;
	outline-offset: 3px !important;
	background-color: #fffbdd !important;
	color: #000 !important;
}

/* 8.9 Büyük imleç */
html.sa-cursor-1 body > *:not(#sinop-a11y):not(.sa-live),
html.sa-cursor-1 body > *:not(#sinop-a11y):not(.sa-live) * {
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M5.5 3.2 19 10.4l-6 1.6-2.6 6z' fill='white' stroke='black' stroke-width='1.3'/></svg>") 4 4, auto !important;
}

html.sa-cursor-2 body > *:not(#sinop-a11y):not(.sa-live),
html.sa-cursor-2 body > *:not(#sinop-a11y):not(.sa-live) * {
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'><path d='M5.5 3.2 19 10.4l-6 1.6-2.6 6z' fill='white' stroke='black' stroke-width='1.3'/></svg>") 6 6, auto !important;
}

html.sa-cursor-3 body > *:not(#sinop-a11y):not(.sa-live),
html.sa-cursor-3 body > *:not(#sinop-a11y):not(.sa-live) * {
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'><path d='M5.5 3.2 19 10.4l-6 1.6-2.6 6z' fill='black' stroke='white' stroke-width='1.3'/></svg>") 6 6, auto !important;
}

/* 8.10 Kontrast modları */
html.sa-contrast-dark body > *:not(#sinop-a11y):not(.sa-live),
html.sa-contrast-dark body > *:not(#sinop-a11y):not(.sa-live) *:not(img):not(video):not(svg):not(canvas):not(path)  {
	background-color: #05070a !important;
	color: #f2f5f8 !important;
	border-color: #6b7784 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

html.sa-contrast-dark body > *:not(#sinop-a11y):not(.sa-live) a[href],
html.sa-contrast-dark body > *:not(#sinop-a11y):not(.sa-live) a[href] * {
	color: #ffd83d !important;
	text-decoration: underline !important;
}

html.sa-contrast-dark body > *:not(#sinop-a11y):not(.sa-live) :is(input, select, textarea)  {
	background-color: #12161c !important;
	color: #fff !important;
	border: 1px solid #8c98a5 !important;
}

html.sa-contrast-light body > *:not(#sinop-a11y):not(.sa-live),
html.sa-contrast-light body > *:not(#sinop-a11y):not(.sa-live) *:not(img):not(video):not(svg):not(canvas):not(path)  {
	background-color: #ffffff !important;
	color: #101418 !important;
	border-color: #5b646e !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

html.sa-contrast-light body > *:not(#sinop-a11y):not(.sa-live) a[href],
html.sa-contrast-light body > *:not(#sinop-a11y):not(.sa-live) a[href] * {
	color: #0033a0 !important;
	text-decoration: underline !important;
}

html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live),
html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live) *:not(img):not(video):not(svg):not(canvas):not(path)  {
	background-color: #000000 !important;
	color: #ffff00 !important;
	border-color: #ffff00 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live) a[href],
html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live) a[href] * {
	color: #00ffff !important;
	text-decoration: underline !important;
}

html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live) :is(h1, h2, h3, h4, h5, h6),
html.sa-contrast-high body > *:not(#sinop-a11y):not(.sa-live) :is(h1, h2, h3, h4, h5, h6) * {
	color: #ffffff !important;
}

/* 8.11 Kullanıcı renk seçimleri */
html.sa-color-bg body > *:not(#sinop-a11y):not(.sa-live),
html.sa-color-bg body > *:not(#sinop-a11y):not(.sa-live) *:not(img):not(video):not(svg):not(canvas):not(path)  {
	background-color: var(--sa-c-bg) !important;
}

html.sa-color-text body > *:not(#sinop-a11y):not(.sa-live),
html.sa-color-text body > *:not(#sinop-a11y):not(.sa-live) *:not(img):not(video):not(svg):not(canvas):not(path)  {
	color: var(--sa-c-text) !important;
}

html.sa-color-title body > *:not(#sinop-a11y):not(.sa-live) :is(h1, h2, h3, h4, h5, h6),
html.sa-color-title body > *:not(#sinop-a11y):not(.sa-live) :is(h1, h2, h3, h4, h5, h6) * {
	color: var(--sa-c-title) !important;
}

html.sa-color-link body > *:not(#sinop-a11y):not(.sa-live) a[href],
html.sa-color-link body > *:not(#sinop-a11y):not(.sa-live) a[href] * {
	color: var(--sa-c-link) !important;
}

/* 8.12 Açıklama balonları */
.sa-tip {
	position: fixed;
	z-index: calc(var(--sa-z, 999995) + 5);
	max-width: 320px;
	padding: 8px 12px;
	font: 600 14px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: #14181d;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

/* 8.13 Sesli okuma vurgusu */
#sinop-a11y .sa-tts-active {
	background-color: #ffe500 !important;
	color: #000 !important;
	box-shadow: 0 0 0 3px #ffe500 !important;
}

.sa-tts-word {
	background-color: #ff6b00 !important;
	color: #fff !important;
	border-radius: 2px;
}

html.sa-tts-on body > *:not(#sinop-a11y):not(.sa-live) :is(p, li, h1, h2, h3, h4, h5, h6, td, blockquote, figcaption, dd, label, span):hover {
	outline: 2px dashed var(--sa-accent, #0b4f9e) !important;
	outline-offset: 2px;
	cursor: pointer !important;
}

/* ---------------------------------------------------------------
 * 9. Duyarlılık ve tercihler
 * ------------------------------------------------------------- */

@media (max-width: 782px)  {
	/*
	 * Mobilde buton, masaüstündekinden daha yukarıda durur. Telefon
	 * tarayıcılarının alt adres çubuğu, temaların sabit alt menüsü ve
	 * "yukarı çık" butonu sayfanın en altını kaplar; 24px boşlukla buton
	 * bunların altında kalıyordu. Değişken kökte yeniden tanımlanır; böylece
	 * `bottom` kuralını yinelemeye gerek kalmaz. Yalnızca alt konumlar
	 * etkilenir — üst konumlarda aynı değer butonu aşağı iterdi.
	 */
	#sinop-a11y.sa-pos-bottom-right,
	#sinop-a11y.sa-pos-bottom-left {
		--sa-off-y: var(--sa-off-y-m, 84px);
	}

	#sinop-a11y .sa-trigger {
		width: var(--sa-btn-size-m, 48px);
		height: var(--sa-btn-size-m, 48px);
		font-size: calc(var(--sa-btn-size-m, 48px) * 0.52);
	}

	#sinop-a11y .sa-trigger--has-text { width: auto; }

	#sinop-a11y .sa-panel {
		top: auto;
		bottom: 0;
		left: 0 !important;
		right: 0 !important;
		width: 100%;
		max-width: 100%;
		max-height: 88vh;
		border-radius: var(--sa-radius, 14px) var(--sa-radius, 14px) 0 0;
		animation: sa-slide-up 0.24s ease;
	}

	#sinop-a11y .sa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sinop-a11y .sa-vk { width: 100%; left: 0; transform: none; bottom: 0; border-radius: 12px 12px 0 0; }
}

@keyframes sa-slide-up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 400px)  {
	#sinop-a11y .sa-tiles { grid-template-columns: 1fr; }
	#sinop-a11y .sa-colors { grid-template-columns: 1fr; }
	#sinop-a11y .sa-tile { min-height: 84px; flex-direction: row; text-align: left; justify-content: flex-start; gap: 10px; }
	#sinop-a11y .sa-tile--step { flex-direction: column; }
	#sinop-a11y .sa-tile__state { margin-top: 0; margin-left: auto; }
}

#sinop-a11y.sa-desktop-only { display: none; }
#sinop-a11y.sa-mobile-only { display: none; }

@media (min-width: 783px)  { #sinop-a11y.sa-desktop-only { display: block; } }
@media (max-width: 782px)  { #sinop-a11y.sa-mobile-only { display: block; } }

@media (prefers-reduced-motion: reduce)  {
	#sinop-a11y .sa-trigger--pulse::after { animation: none; }
	#sinop-a11y .sa-panel,
#sinop-a11y .sa-overlay { animation: none !important; }
	#sinop-a11y * { transition-duration: 0.01ms !important; }
}

@media print {
	#sinop-a11y,
.sa-mask,
.sa-guide,
.sa-magnifier,
#sinop-a11y .sa-vk,
.sa-voice-hud,
#sinop-a11y .sa-kbhint { display: none !important; }
}
