/*
 * Accessibility Toolkit — gaya yang diterapkan ke halaman.
 * Semua mode diaktifkan lewat kelas pada <html> (acctk-*).
 * Widget sendiri berada di Shadow DOM (#acctk-host) sehingga tidak terpengaruh.
 */

/* ---------- Tautan lewati ke konten ---------- */
.acctk-skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 2147483647;
	padding: 12px 18px;
	background: #000;
	color: #fff !important;
	font: 600 16px/1.2 system-ui, sans-serif;
	text-decoration: underline;
	border-radius: 0 0 6px 6px;
}
button.acctk-skip-link {
	border: 0;
	cursor: pointer;
	text-align: left;
}
.acctk-skip-link:focus {
	top: 0;
	outline: 3px solid #ffbf00;
	outline-offset: 0;
}

/* ---------- Kontras ---------- */
html.acctk-contrast-dark body,
html.acctk-contrast-dark body *:not(#acctk-host):not(img):not(video):not(picture):not(svg):not(svg *):not(iframe):not(canvas) {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.acctk-contrast-dark body a,
html.acctk-contrast-dark body a * {
	color: #ffeb3b !important;
}
html.acctk-contrast-dark body button,
html.acctk-contrast-dark body input,
html.acctk-contrast-dark body select,
html.acctk-contrast-dark body textarea {
	border: 2px solid #fff !important;
}
html.acctk-contrast-dark body svg:not(#acctk-host *) {
	fill: currentColor;
}

html.acctk-contrast-light body,
html.acctk-contrast-light body *:not(#acctk-host):not(img):not(video):not(picture):not(svg):not(svg *):not(iframe):not(canvas) {
	background-color: #fff !important;
	color: #000 !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.acctk-contrast-light body a,
html.acctk-contrast-light body a * {
	color: #0000c8 !important;
}
html.acctk-contrast-light body button,
html.acctk-contrast-light body input,
html.acctk-contrast-light body select,
html.acctk-contrast-light body textarea {
	border: 2px solid #000 !important;
}

/* Mode balik warna: kembalikan gambar & video ke warna asli. */
html.acctk-invert img,
html.acctk-invert picture,
html.acctk-invert video,
html.acctk-invert iframe,
html.acctk-invert canvas {
	filter: invert(1) hue-rotate(180deg) !important;
}
html.acctk-invert picture img {
	filter: none !important;
}

/* ---------- Sorot tautan ---------- */
html.acctk-links body a[href],
html.acctk-links body [role="link"] {
	outline: 3px solid #ff8c00 !important;
	outline-offset: 2px !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
	text-decoration-thickness: 2px !important;
	font-weight: 700 !important;
}
html.acctk-links body a[href]:hover,
html.acctk-links body a[href]:focus {
	background-color: #ffeb3b !important;
	color: #000 !important;
}

/* ---------- Spasi teks (WCAG 1.4.12) ---------- */
html.acctk-spacing-1 body *:not(#acctk-host) {
	letter-spacing: 0.06em !important;
	word-spacing: 0.12em !important;
}
html.acctk-spacing-2 body *:not(#acctk-host) {
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}
html.acctk-spacing-3 body *:not(#acctk-host) {
	letter-spacing: 0.2em !important;
	word-spacing: 0.3em !important;
}

/* ---------- Tinggi baris ---------- */
html.acctk-lh-1 body *:not(#acctk-host) { line-height: 1.5 !important; }
html.acctk-lh-2 body *:not(#acctk-host) { line-height: 1.8 !important; }
html.acctk-lh-3 body *:not(#acctk-host) { line-height: 2.2 !important; }

/* ---------- Perataan teks ---------- */
html.acctk-align-left body *:not(#acctk-host) { text-align: left !important; }
html.acctk-align-center body *:not(#acctk-host) { text-align: center !important; }
html.acctk-align-right body *:not(#acctk-host) { text-align: right !important; }

/* ---------- Ramah disleksia ---------- */
html.acctk-dyslexia body *:not(#acctk-host):not(i):not([class*="icon"]):not([class*="fa-"]):not([class*="dashicons"]) {
	font-family: "OpenDyslexic", "Comic Sans MS", "Lexend", Verdana, Tahoma, sans-serif !important;
	font-style: normal !important;
}
html.acctk-dyslexia body p,
html.acctk-dyslexia body li {
	word-spacing: 0.16em;
	max-width: 75ch;
}

/* ---------- Jeda animasi (WCAG 2.2.2 & 2.3.3) ---------- */
html.acctk-pause *:not(#acctk-host),
html.acctk-pause *::before,
html.acctk-pause *::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;
}
.acctk-frozen-gif {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* ---------- Sembunyikan gambar ---------- */
html.acctk-hide-img body img,
html.acctk-hide-img body picture,
html.acctk-hide-img body video,
html.acctk-hide-img body svg image,
html.acctk-hide-img body .acctk-frozen-gif {
	visibility: hidden !important;
}
html.acctk-hide-img body *:not(#acctk-host) {
	background-image: none !important;
}
.acctk-alt-text {
	display: inline-block;
	margin: 4px 0;
	padding: 4px 8px;
	border: 2px dashed currentColor;
	border-radius: 4px;
	font-size: 0.9em;
	font-style: italic;
	line-height: 1.4;
}

/* ---------- Kursor besar ---------- */
html.acctk-cursor,
html.acctk-cursor body,
html.acctk-cursor body * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4v34l9-8 6 14 7-3-6-13h12z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important;
}
html.acctk-cursor body a[href],
html.acctk-cursor body a[href] *,
html.acctk-cursor body button,
html.acctk-cursor body button *,
html.acctk-cursor body [role="button"],
html.acctk-cursor body label,
html.acctk-cursor body select,
html.acctk-cursor body summary {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4v34l9-8 6 14 7-3-6-13h12z' fill='%230b57d0' stroke='%23ffeb3b' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, pointer !important;
}
html.acctk-cursor body input[type="text"],
html.acctk-cursor body input[type="search"],
html.acctk-cursor body input[type="email"],
html.acctk-cursor body textarea {
	cursor: text !important;
}

/* ---------- Sorot fokus (WCAG 2.4.7) ---------- */
html.acctk-focus body *:focus,
html.acctk-focus body *:focus-visible {
	outline: 4px solid #ff8c00 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 7px #000 !important;
}

/* ---------- Elemen yang sedang dibacakan (mode suara) ---------- */
.acctk-reading {
	outline: 4px solid #ff8c00 !important;
	outline-offset: 4px !important;
	background-color: rgba(255, 235, 59, 0.35) !important;
	scroll-margin: 120px;
}
