/* ==========================================================================
   GDIPS UI - Base
   Reset, typography, focus states, accessibility primitives.
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg-0);
	color: var(--tx-1);
	font-family: var(--font-body);
	font-size: var(--fs-md);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	line-height: var(--lh-tight);
	letter-spacing: 0.01em;
	margin: 0 0 var(--sp-3);
	font-weight: 600;
	color: var(--tx-1);
}

h1 {
	font-size: var(--fs-2xl);
}

h2 {
	font-size: var(--fs-xl);
}

h3 {
	font-size: var(--fs-lg);
}

p {
	margin: 0 0 var(--sp-3);
}

a {
	color: var(--c-link);
	text-decoration: none;
}

a:hover {
	color: var(--tx-1);
	text-decoration: underline;
}

hr {
	border: 0;
	border-top: 1px solid var(--ink-line);
	margin: var(--sp-4) 0;
}

code,
pre {
	font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--bg-3);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-sm);
}

code {
	padding: 1px 6px;
}

pre {
	padding: var(--sp-3);
	overflow-x: auto;
}

::selection {
	background: var(--merah-deep);
	color: #fff;
}

/* ---- Focus: always visible, never removed ---- */
:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--merah-strong);
	outline-offset: 2px;
	border-radius: var(--r-sm);
}

.gd-topbar :focus-visible,
.gd-sidebar :focus-visible {
	outline-offset: -2px;
}

.gd-nav-link-check {
	margin-right: var(--sp-2);
}

/* ---- Skip link ---- */
.gd-skip {
	position: absolute;
	left: var(--sp-3);
	top: -48px;
	z-index: 300;
	background: var(--merah);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--r-md);
	font-weight: 600;
	transition: top var(--tr-fast);
}

.gd-skip:focus-visible {
	top: var(--sp-3);
	color: #fff;
	text-decoration: none;
}

/* ---- Screen-reader only ---- */
.gd-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Scrollbars (webkit, subtle) ---- */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--bg-4);
	border-radius: var(--r-full);
	border: 2px solid var(--bg-0);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--ink-line-strong);
}

/* ---- Display type helpers ---- */
.gd-display {
	font-family: var(--font-display);
	letter-spacing: 0.01em;
}

.gd-eyebrow {
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tx-3);
	margin: 0 0 var(--sp-2);
}

/* ---- Reduced motion: honor the OS setting everywhere ---- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
/* Full-viewport shell reset */
html,
body {
width: 100% !important;
min-width: 100% !important;
height: 100% !important;
min-height: 100% !important;
margin: 0 !important;
padding: 0 !important;
}

.gd-holder {
width: 100% !important;
min-width: 100% !important;
min-height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
}
