/* ==========================================================================
   Lapisan situs — tipografi & warna mengikuti apple.com
   Berlaku untuk header, footer, artikel, dan halaman tema JNews/Elementor.
   ========================================================================== */

:root {
	--a-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--a-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--a-text: #1d1d1f;      /* teks utama */
	--a-text-2: #424245;    /* teks sekunder kuat */
	--a-text-3: #6e6e73;    /* teks sekunder / meta */
	--a-link: #0066cc;      /* tautan */
	--a-blue: #0071e3;      /* tombol utama */
	--a-fill: #f5f5f7;      /* latar abu Apple */
	--a-line: #d2d2d7;      /* garis pemisah */
}

/* Elementor: arahkan variabel tipografi kit ke font Apple. */
.elementor-kit-6 {
	--e-global-typography-primary-font-family: var(--a-font-display);
	--e-global-typography-secondary-font-family: var(--a-font-display);
	--e-global-typography-text-font-family: var(--a-font);
	--e-global-typography-accent-font-family: var(--a-font);
}

/* ---------- Tipografi global ---------- */
html body {
	font-family: var(--a-font) !important;
	color: var(--a-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body :where(p, a, li, span, div, button, input, select, textarea, label, td, th, dt, dd, blockquote, figcaption, time, strong, em, b, small, nav, header, footer, article, section, aside):not(.fa):not([class*="fa-"]):not([class*="jegicon"]):not([class*="jeg-icon"]):not(#wpadminbar):not(#wpadminbar *) {
	font-family: var(--a-font) !important;
}
body :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .jeg_post_title, .jeg_post_title a):not(#wpadminbar *) {
	font-family: var(--a-font-display) !important;
	color: var(--a-text);
}
body :where(pre, code, kbd, samp) { font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace !important; }

/* Judul artikel: rapat seperti apple.com/newsroom. */
.jeg_post_title, .entry-header .jeg_post_title { letter-spacing: -0.015em; font-weight: 600; }
.content-inner h2, .entry-content h2 { letter-spacing: -0.01em; font-weight: 600; }
.content-inner h3, .entry-content h3 { letter-spacing: -0.005em; font-weight: 600; }
.content-inner, .entry-content { letter-spacing: -0.012em; }

/* ---------- Tautan ---------- */
.content-inner a, .entry-content a { color: var(--a-link) !important; }
.content-inner a:hover, .entry-content a:hover { text-decoration: underline; }
.ez-toc-link, #ez-toc-container a { color: var(--a-link) !important; }

/* ---------- Meta artikel: kontras cukup (≥ 4.5:1) & minimal 12px ---------- */
.jeg_meta_date, .jeg_meta_date a, .jeg_post_meta, .jeg_post_meta a, .jeg_meta_author, .jeg_meta_author a,
.jeg_meta_category, .jeg_meta_category a, .meta_text, .jeg_meta_comment a, .jeg_post_tags span {
	color: var(--a-text-3) !important;
}
.jeg_meta_date, .jeg_meta_date a, .jeg_post_meta, .jeg_postblock .jeg_post_meta, .jeg_post_tags, .jeg_post_tags a { font-size: max(12px, 1em) !important; }
.jeg_postblock .jeg_meta_date, .jeg_postblock .jeg_meta_date a { font-size: 12px !important; }
.jeg_post_tags a { color: var(--a-text-2) !important; }

/* ---------- Header ---------- */
.jeg_main_menu > li > a, .jeg_menu > li > a { color: var(--a-text) !important; letter-spacing: -0.01em; }
.jeg_button_1 .btn, .jeg_button_mobile .btn {
	background: var(--a-blue) !important;
	border-radius: 980px !important;
	text-transform: none !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	letter-spacing: -0.016em !important;
}
.jeg_button_1 .btn:hover { background: #0077ed !important; }
.jeg_navbar .jeg_search_toggle, .jeg_navbar_mobile .toggle_btn, .jeg_navbar_mobile .jeg_search_toggle { color: var(--a-text) !important; }

/* ---------- Header: wordmark teks + navigasi ringkas (dirender plugin, header JNews disembunyikan) ---------- */
.jeg_header_wrapper, .jeg_header_sticky, .jeg_navbar_mobile_wrapper, #jeg_off_canvas, .jeg_mobile_wrapper { display: none !important; }
.sgx { position: relative; z-index: 9990; padding: 0 22px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -.5px 0 rgba(0,0,0,.16); font-family: var(--a-font); -webkit-font-smoothing: antialiased; }
.sgx * { box-sizing: border-box; }
.sgx-in { display: flex; align-items: center; gap: 32px; max-width: 1140px; height: 52px; margin: 0 auto; }
.sgx a { text-decoration: none !important; }
.sgx .sgx-logo { display: flex; align-items: center; align-self: stretch; flex: none; margin-right: auto; font-family: var(--a-font-display); font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--a-text) !important; text-rendering: optimizeLegibility; }
.sgx-menu { display: flex; align-items: center; gap: 32px; }
.sgx-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.sgx-links li { margin: 0; }
.sgx-links a { display: flex; align-items: center; height: 52px; font-size: 14px; letter-spacing: -.016em; color: rgba(0,0,0,.8) !important; transition: color .2s; }
.sgx-links a:hover { color: var(--a-text) !important; }
.sgx-links a { flex-direction: column; justify-content: center; }
.sgx-links a[aria-current="page"] { color: var(--a-text) !important; font-weight: 600; }
/* Cadangan lebar teks tebal: tautan aktif tidak menggeser menu saat berpindah halaman. */
.sgx-links a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; pointer-events: none; user-select: none; }
.sgx .sgx-cta { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 980px; background: var(--a-blue); color: #fff !important; font-size: 14px; letter-spacing: -.016em; white-space: nowrap; transition: background-color .2s; }
.sgx .sgx-cta:hover { background: #0077ed; }
.sgx-cta svg { width: 14px; height: 14px; fill: currentColor; }
.sgx a:focus-visible, .sgx button:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; border-radius: 6px; }
.sgx .sgx-wa { display: none; place-items: center; width: 44px; height: 44px; color: var(--a-text) !important; }
.sgx-wa svg { width: 19px; height: 19px; fill: currentColor; }
.sgx-burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; cursor: pointer; }
.sgx-burger span { position: absolute; left: 14px; width: 16px; height: 1.5px; border-radius: 1px; background: var(--a-text); transition: transform .3s ease, top .3s ease; }
.sgx-burger span:first-child { top: 18px; }
.sgx-burger span:last-child { top: 25px; }
.sgx.is-open .sgx-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.sgx.is-open .sgx-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
@media (max-width: 833px) {
	.sgx { padding: 0 16px; }
	.sgx-in { height: 48px; }
	.sgx .sgx-logo { font-size: 20px; }
	.sgx-burger { display: block; }
	.sgx .sgx-wa { display: grid; margin-right: -32px; } /* area sentuh 44 px bersebelahan dengan tombol menu (gap nav dibatalkan) */
	.sgx-links a::after { display: none; }
	.sgx.is-open .sgx-wa { visibility: hidden; }
	/* Menu layar penuh seperti apple.com di iPhone: tautan besar, tombol WhatsApp di bawahnya. */
	.sgx-menu { display: none; position: fixed; inset: 48px 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px max(32px, env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; }
	.sgx.is-open { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	.sgx.is-open .sgx-menu { display: flex; animation: sgx-in .3s ease both; }
	.sgx-links { flex-direction: column; gap: 0; }
	.sgx-links a { display: block; height: auto; padding: 8px 0; font-family: var(--a-font-display); font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: .007em; color: var(--a-text) !important; }
	.sgx-links a[aria-current="page"] { color: var(--a-text-3) !important; }
	.sgx .sgx-cta { align-self: flex-start; height: 44px; margin-top: 28px; padding: 0 22px; font-size: 17px; }
	.sgx-cta svg { width: 17px; height: 17px; }
	html.sgx-lock, html.sgx-lock body { overflow: hidden; }
}
@keyframes sgx-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sgx.is-open .sgx-menu { animation: none; } .sgx-burger span { transition: none; } }

/* ---------- Footer: gaya apple.com (dirender plugin, footer tema disembunyikan) ---------- */
#footer.footer-holder, .jeg_footer, .jscroll-to-top { display: none !important; }
.sfx { background: var(--a-fill); color: var(--a-text-3); font-family: var(--a-font); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; -webkit-text-size-adjust: 100%; }
.sfx * { box-sizing: border-box; }
.sfx-in { max-width: 1184px; margin: 0 auto; padding: 20px 22px max(21px, env(safe-area-inset-bottom)); } /* lebar isi = kontainer halaman (1140 px) */
.sfx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfx p, .sfx ul, .sfx h3 { margin: 0; padding: 0; }
.sfx ul { list-style: none; }
.sfx a { color: var(--a-text-2) !important; text-decoration: none; }
.sfx a:hover { text-decoration: underline; }
.sfx a:focus-visible, .sfx button:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; border-radius: 4px; }
/* Catatan kaki */
.sfx-notes { padding-bottom: 16px; border-bottom: 1px solid var(--a-line); }
.sfx-notes p + p { margin-top: 8px; }
.sfx-notes a { text-decoration: underline !important; }
/* Direktori */
.sfx-dir { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px 32px; padding: 20px 0 32px; }
.sfx-brand strong { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--a-text); }
.sfx-brand p { max-width: 260px; }
/* Kartu kepercayaan: tumpukan avatar + angka, gaya kartu ringkas apple.com. */
.sfx .sfx-trust { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05); }
.sfx-trust-av { display: flex; flex: none; }
.sfx-trust-av i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; overflow: hidden; }
.sfx-trust-av i:first-child { margin-left: 0; }
.sfx-trust-av i svg { width: 20px; height: 20px; margin-top: 8px; fill: rgba(255,255,255,.92); }
.sfx-trust-av i:nth-child(1) { background: linear-gradient(160deg, #a1c4fd, #5b8def); }
.sfx-trust-av i:nth-child(2) { background: linear-gradient(160deg, #f6c7a8, #e8875f); }
.sfx-trust-av i:nth-child(3) { background: linear-gradient(160deg, #b8e0c2, #4fae74); }
.sfx-trust-av i.is-ok { background: var(--a-blue); }
.sfx-trust-av i.is-ok svg { width: 14px; height: 14px; margin: 0; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sfx-trust-tx { display: flex; flex-direction: column; line-height: 1.3; }
.sfx .sfx-trust-tx strong { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.016em; color: var(--a-text); }
.sfx-trust-tx span { font-size: 12px; color: var(--a-text-2); }
.sfx-col h3 button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: -0.01em; color: var(--a-text); text-align: left; cursor: default; }
.sfx-col h3 svg { display: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.sfx-col li + li { margin-top: 9px; }
.sfx-col li span { color: var(--a-text-3); }
/* Baris bawah */
.sfx-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--a-line); }
.sfx-copy { margin-right: auto !important; }
.sfx-legal { display: flex; flex-wrap: wrap; }
.sfx-legal li + li { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--a-line); }
.sfx-social { display: flex; gap: 6px; }
.sfx-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .05); color: var(--a-text-2) !important; transition: color .2s, background-color .2s, transform .2s; }
.sfx-social a:hover { color: #fff !important; background: var(--a-text); text-decoration: none; }
.sfx-social a:active { transform: scale(.92); }
.sfx-social svg { width: 16px; height: 16px; fill: currentColor; }
.sfx-loc { color: var(--a-text-2); }
/* HP: kelompok tautan jadi daftar buka-tutup 44 px */
@media (max-width: 833px) {
	.sfx-in { padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
	.sfx-dir { display: block; padding: 4px 0 24px; }
	.sfx-brand { padding: 16px 0; border-bottom: 1px solid var(--a-line); }
	.sfx-brand p { max-width: none; }
	.sfx-col { border-bottom: 1px solid var(--a-line); }
	.sfx-legal a { position: relative; }
	.sfx-legal a::after { content: ""; position: absolute; inset: -15px -4px; } /* area sentuh 44 px */
	.sfx-col h3 button { min-height: 44px; margin: 0; font-size: 14px; font-weight: 400; color: var(--a-text-2); cursor: pointer; }
	.sfx-col h3 svg { display: block; width: 14px; height: 14px; color: var(--a-text-3); }
	.sfx-col.is-open h3 svg { transform: rotate(180deg); }
	.sfx-col ul { display: none; padding: 0 0 14px 12px; }
	.sfx-col.is-open ul { display: block; }
	.sfx-col li { font-size: 14px; line-height: 1.3; }
	.sfx-col li + li { margin-top: 0; }
	.sfx-col li a, .sfx-col li span { display: flex; align-items: center; min-height: 36px; }
	.sfx-bot { flex-direction: column; align-items: flex-start; gap: 12px; border-top: 0; padding-top: 0; }
	.sfx-copy { margin-right: 0 !important; }
	.sfx-social { gap: 10px; }
	.sfx-social a { width: 40px; height: 40px; }
	.sfx-social a::after { content: ""; position: absolute; inset: -2px; } /* area sentuh 44 px */
	.sfx-social a { position: relative; }
	.sfx-social svg { width: 18px; height: 18px; }
}

