/*
Theme Name: BURUH
Theme URI: https://example.com/buruh
Author: BURUH Media
Author URI: https://example.com
Description: Portal berita digital Indonesia yang fokus pada isu buruh, ketenagakerjaan, ekonomi, industri, dan sosial. Desain modern, editorial, cepat, dan SEO-friendly. Dibangun murni dengan WordPress Native API tanpa page builder.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: buruh
Tags: news, blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* ==========================================================================
   ROOT VARIABLES / DESIGN TOKENS
   ========================================================================== */
:root {
	--color-primary: #d2232a;       /* Merah - accent utama */
	--color-primary-dark: #a91c22;
	--color-primary-light: #f9e6e7;
	--color-charcoal: #1a1a1a;      /* Headline / secondary */
	--color-text: #262626;
	--color-text-muted: #6b6b6b;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f5f5;        /* Light gray */
	--color-border: #e2e2e2;
	--color-white: #ffffff;

	--font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--container-max: 1200px;
	--header-height: 68px;
	--header-height-mobile: 56px;
	--radius-sm: 4px;
	--radius-md: 8px;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	position: relative;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--color-charcoal);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	word-break: break-word;
}

p { margin: 0 0 1em; overflow-wrap: break-word; word-break: break-word; }

figure { margin: 0; }

table { border-collapse: collapse; width: 100%; }

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-charcoal);
	color: #fff;
	padding: 12px 20px;
	z-index: 100000;
	border-radius: 0 0 6px 0;
}
.skip-link:focus {
	left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--space-4);
	box-sizing: border-box;
}

@media (min-width: 1440px) {
	.container { padding: 0 var(--space-6); }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

/* ==========================================================================
   EYEBROW / CATEGORY LABEL
   ========================================================================== */
.category-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-primary);
	background: var(--color-primary-light);
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.category-label.is-plain {
	background: none;
	padding: 0;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */
.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 3px solid var(--color-charcoal);
}

.section-title h2 {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	position: relative;
	padding-bottom: 12px;
	margin-bottom: -15px;
}

.section-title h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 48px;
	height: 3px;
	background: var(--color-primary);
}

.section-title .section-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary);
	white-space: nowrap;
}

section.site-section {
	padding: var(--space-7) 0;
}

@media (max-width: 767px) {
	section.site-section { padding: var(--space-6) 0; }
	.section-title h2 { font-size: 18px; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
	background: var(--color-primary);
	color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
	background: transparent;
	border-color: var(--color-charcoal);
	color: var(--color-charcoal);
}
.btn-outline:hover { background: var(--color-charcoal); color: #fff; }

/* ==========================================================================
   SKELETON GRID HELPERS
   ========================================================================== */
.grid { display: grid; gap: var(--space-5); }

.two-col-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	.two-col-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}
}
