/*
Theme Name: AZULA GAME
Theme URI: https://122fenwickstreet.com/
Author: AZULA GAME
Description: Tema klasik AZULA GAME — Karakter Berani, Tantangan Penuh Aksi. Layout toko/katalog dengan sidebar filter, kartu pilihan game, SEO (meta, canonical, robots, Open Graph) dan schema JSON-LD bawaan.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azula-game
Tags: one-column, two-columns, left-sidebar, custom-menu, theme-options, translation-ready
*/

/* ===== Fonts (self-hosted, SIL OFL) ===== */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/cinzel-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); }

/* ===== Tokens (diambil dari logo api biru & elemen langit malam) ===== */
:root {
	--navy-950: #031e39;
	--navy-900: #061d34;
	--navy-850: #082544;
	--navy-800: #0a2f55;
	--navy-700: #0c3964;
	--blue-600: #165a85;
	--blue-500: #1670b4;
	--sky-400: #3fb8f5;
	--sky-300: #7fd0f8;
	--ice-100: #c8ebf8;
	--snow: #fafeff;
	--air: #22b8cf;
	--tanah: #c9a46a;
	--udara: #8fb8ff;

	--ink: #0b1f33;
	--muted: #546a80;
	--line: #dbe7f1;
	--bg: #ffffff;
	--bg-soft: #eef5fb;

	--font-display: "Cinzel", "Times New Roman", serif;
	--font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 10px;
	--shadow: 0 6px 22px rgba(3, 30, 57, .10);
	--shadow-lg: 0 18px 40px rgba(3, 30, 57, .18);
	--container: 1180px;
	--gutter: 16px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--navy-850); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
[id] { scroll-margin-top: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section-pad { padding-top: 48px; padding-bottom: 64px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--snow); color: var(--navy-950); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 6px; border: 2px solid var(--blue-500); background: var(--blue-500); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn--small { padding: 7px 12px; font-size: .8rem; border-radius: 5px; }
.btn--ghost { background: transparent; color: var(--blue-500); }
.btn--ghost:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.btn--accent { background: var(--sky-400); border-color: var(--sky-400); color: var(--navy-950); box-shadow: 0 6px 20px rgba(63, 184, 245, .35); }
.btn--accent:hover { background: var(--ice-100); border-color: var(--ice-100); color: var(--navy-950); }
.link-btn { background: none; border: 0; color: var(--blue-500); text-decoration: underline; cursor: pointer; padding: 0; }

/* ===== Top bar ===== */
.topbar { background: var(--navy-950); color: var(--ice-100); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar__welcome { margin: 0; letter-spacing: .02em; }
.topbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 14px; }
.topbar__links a { color: var(--ice-100); }
.topbar__links a:hover { color: #fff; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.social a { display: inline-block; font-weight: 700; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s; }
.social--top a { color: var(--sky-300); font-size: .72rem; padding: 2px 8px; border: 1px solid rgba(127, 208, 248, .3); border-radius: 999px; }
.social--top a:hover { background: var(--sky-400); color: var(--navy-950); border-color: var(--sky-400); }
.social--footer { gap: 8px; }
.social--footer a { color: var(--ice-100); font-size: .85rem; padding: 7px 14px; border: 1px solid rgba(200, 235, 248, .25); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.social--footer a:hover { background: var(--sky-400); color: var(--navy-950); border-color: var(--sky-400); }

/* ===== Header & logo ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy-850); }
.brand:hover { color: var(--navy-850); }
.brand__icon { width: 76px; height: 76px; filter: drop-shadow(0 6px 14px rgba(22, 112, 180, .35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: .06em; color: var(--navy-850); }
.brand__name span { background: linear-gradient(180deg, var(--sky-400), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__slogan { margin-top: 6px; font-family: var(--font-body); font-weight: 800; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-600); }
.brand--footer .brand__icon { width: 56px; height: 56px; }
.brand--footer .brand__name { font-size: 1.6rem; color: var(--snow); }
.brand--footer .brand__slogan { color: var(--sky-300); letter-spacing: .12em; font-size: .6rem; }

.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.nav__list a { display: block; padding: 12px 18px; font-weight: 700; font-size: .92rem; color: var(--navy-850); letter-spacing: .03em; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--sky-400); transform: scaleX(0); transition: transform .2s; }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nav__list .sub-menu { display: none; }

/* ===== Langit malam (dari elemen warna) ===== */
.hero, .page-hero, .guides, .site-footer {
	background:
		radial-gradient(60% 80% at 15% 30%, rgba(22, 90, 133, .55), transparent 70%),
		radial-gradient(50% 70% at 85% 70%, rgba(22, 90, 133, .45), transparent 70%),
		linear-gradient(180deg, var(--navy-700) 0%, var(--navy-850) 55%, var(--navy-950) 100%);
	color: var(--snow);
	position: relative;
	isolation: isolate;
}
.hero__stars, .guides__stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
	background-image:
		radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
		radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,.8), transparent),
		radial-gradient(2px 2px at 160px 60px, rgba(255,255,255,.9), transparent),
		radial-gradient(1px 1px at 210px 180px, rgba(255,255,255,.7), transparent),
		radial-gradient(1.5px 1.5px at 60px 200px, rgba(200,235,248,.9), transparent),
		radial-gradient(1px 1px at 130px 10px, rgba(255,255,255,.6), transparent);
	background-size: 240px 220px;
	animation: twinkle 6s ease-in-out infinite alternate;
}
.hero__stars::after { content: ""; position: absolute; inset: 0;
	background-image:
		radial-gradient(1px 1px at 40px 80px, rgba(255,255,255,.8), transparent),
		radial-gradient(2px 2px at 300px 40px, rgba(200,235,248,.95), transparent),
		radial-gradient(1.5px 1.5px at 180px 260px, rgba(255,255,255,.8), transparent),
		radial-gradient(1px 1px at 330px 200px, rgba(255,255,255,.7), transparent);
	background-size: 380px 320px;
	animation: twinkle 4s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

/* ===== Hero ===== */
.hero { overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; min-height: 380px; padding-top: 40px; padding-bottom: 40px; }
.hero__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--sky-300); letter-spacing: .06em; margin-bottom: 10px; }
.hero__title { font-size: clamp(1.9rem, 4.1vw, 3.05rem); font-weight: 800; color: var(--snow); max-width: 19ch; margin-bottom: 14px; text-shadow: 0 4px 24px rgba(3, 30, 57, .6); }
.hero__text { color: var(--ice-100); max-width: 46ch; font-size: 1.02rem; margin-bottom: 26px; }
.hero__art { position: relative; justify-self: center; width: min(340px, 80vw); aspect-ratio: 1; }
.hero__art img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(63, 184, 245, .55)); animation: float 6s ease-in-out infinite; }
.hero__ring { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(127, 208, 248, .35); animation: spin 40s linear infinite; }
.orb { position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 18px currentColor; background: currentColor; }
.orb--air { color: var(--air); top: 8%; left: 2%; }
.orb--tanah { color: var(--tanah); bottom: 10%; left: -4%; width: 14px; height: 14px; }
.orb--udara { color: var(--udara); top: 18%; right: -2%; width: 12px; height: 12px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Breadcrumb ===== */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .85rem; }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9fb3c6; }
.crumbs a { color: var(--navy-700); font-weight: 600; }

/* ===== Section headings ===== */
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--sky-400), var(--blue-500)); }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 auto; }
.section-head--light .section-title { color: var(--snow); }
.section-head--light .section-sub { color: var(--ice-100); }

/* ===== Shop layout ===== */
.shop { padding: 48px 0 64px; }
.shop__layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; border: 1px solid #edf3f8; }
.widget__title { font-family: var(--font-display); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-align: center; color: var(--navy-850); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.range input[type="range"] { width: 100%; accent-color: var(--blue-500); margin: 4px 0 14px; }
.range__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); }

.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list__btn { display: flex; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; color: var(--blue-500); font-weight: 600; font-size: .92rem; cursor: pointer; }
.filter-list__btn span { color: var(--muted); font-weight: 400; }
.filter-list__btn:hover { background: var(--bg-soft); color: var(--navy-700); }
.filter-list__btn.is-active { background: var(--navy-850); color: #fff; }
.filter-list__btn.is-active span { color: var(--ice-100); }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-list__item { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.mini-list__item img { width: 52px; height: 52px; border-radius: 8px; flex: none; }
.mini-list__item strong { display: block; font-size: .85rem; line-height: 1.3; color: var(--navy-850); margin-bottom: 2px; }
.mini-list__item:hover strong { color: var(--blue-500); }

.widget--community { padding: 0; overflow: hidden; text-align: center; }
.widget--community img { width: 100%; height: auto; image-rendering: auto; }
.widget--community__body { padding: 4px 18px 20px; margin-top: -42px; position: relative; }
.widget--community__title { font-family: var(--font-display); font-weight: 800; color: var(--snow); font-size: 1.05rem; margin-bottom: 18px; text-shadow: 0 2px 10px rgba(3, 30, 57, .8); }
.widget--community__body p:not(.widget--community__title) { font-size: .85rem; color: var(--muted); }

/* toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar__count { margin: 0; color: var(--muted); font-size: .9rem; }
.toolbar select { font: inherit; font-size: .88rem; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c3964' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }

/* ===== Cards ===== */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border: 1px solid #edf3f8; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 1 / .82; overflow: hidden; background: var(--navy-950); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 16px 16px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.card__cat { margin: 0 0 6px; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; display: flex; gap: 6px; align-items: center; justify-content: center; }
.card__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.card__excerpt { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.card__actions { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: var(--sky-400); color: var(--navy-950); box-shadow: 0 4px 12px rgba(3, 30, 57, .35); }
.badge--unggulan { background: var(--snow); color: var(--navy-850); }
.badge--baru { background: var(--air); color: var(--navy-950); }
.badge--pilihan { background: var(--tanah); color: var(--navy-950); }

.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .68rem; letter-spacing: .06em; color: var(--navy-950); }
.chip--api { background: var(--ice-100); }
.chip--air { background: #c6f1f6; }
.chip--tanah { background: #f1e3c8; }
.chip--udara { background: #dce8ff; }

.diff { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.diff__pips { display: inline-flex; gap: 3px; }
.diff__pips i { width: 8px; height: 12px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: var(--line); }
.diff__pips i.on { background: linear-gradient(180deg, var(--sky-300), var(--blue-500)); }

.grid__empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }

/* ===== Guides ===== */
.guides { padding: 72px 0 80px; }
.guides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide { background: rgba(255, 255, 255, .06); border: 1px solid rgba(200, 235, 248, .16); border-radius: var(--radius); padding: 26px 24px; backdrop-filter: blur(4px); }
.guide__num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--sky-400); opacity: .7; }
.guide__title { color: var(--snow); font-size: 1.3rem; margin-top: 6px; }
.guide p { color: var(--ice-100); font-size: .95rem; }
.guide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.guide li { padding-left: 22px; position: relative; color: var(--snow); font-size: .92rem; }
.guide li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 13px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: linear-gradient(180deg, var(--ice-100), var(--sky-400)); }

/* ===== Elements ===== */
.elements { padding: 64px 0; background: var(--bg-soft); }
.elements__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.element { background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--sky-400)); }
.element h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.element h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.element p { margin: 0; color: var(--muted); font-size: .92rem; }
.element--api { --c: var(--sky-400); }
.element--air { --c: var(--air); }
.element--tanah { --c: var(--tanah); }
.element--udara { --c: var(--udara); }

/* ===== FAQ ===== */
.faq { padding: 64px 0 80px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--navy-850); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-500); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ===== Quick view ===== */
.quickview { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.quickview::backdrop { background: rgba(3, 30, 57, .7); backdrop-filter: blur(3px); }
.quickview__grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.quickview__grid > img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.quickview__grid > div { padding: 30px 28px; }
.quickview__grid .card__cat { justify-content: flex-start; }
.quickview__title { font-size: 1.5rem; }
.quickview__detail { margin: 14px 0 20px; color: var(--muted); font-size: .95rem; }
.quickview__detail ul { padding-left: 18px; color: var(--ink); }
.quickview__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--navy-850); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }

/* ===== Page (About, Policy) ===== */
.page-hero { padding: 56px 0 52px; text-align: center; overflow: hidden; }
.page-hero__title { color: var(--snow); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.page-hero__lead { color: var(--ice-100); max-width: 62ch; margin: 0 auto; }
.page-hero--404 .btn { margin-top: 22px; }
.page-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.page-toc { position: sticky; top: 20px; }
.toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--blue-500); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--sky-400); font-family: var(--font-display); font-weight: 800; font-size: .8rem; padding-top: 1px; }
.toc a:hover, .toc a.is-active { background: var(--bg-soft); color: var(--navy-700); }

.entry { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #edf3f8; padding: 36px 40px; min-width: 0; }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: 1.45rem; margin: 2em 0 .6em; padding-left: 14px; border-left: 4px solid var(--sky-400); }
.entry__content h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.entry__content p, .entry__content li { color: #2b3d50; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .35em; }
.entry__content li::marker { color: var(--blue-500); }
.entry__content strong { color: var(--navy-850); }
.entry__content .wp-block-table table, .entry__content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry__content th { background: var(--bg-soft); color: var(--navy-850); }
.entry__content .callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: 8px; padding: 16px 18px; }
.entry__updated { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-list__item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.post-list__item h2 { font-size: 1.2rem; }

/* ===== Footer ===== */
.site-footer { margin-top: 0; padding-top: 56px; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cpath d='M0 16V9c6 0 6-7 12-7s6 7 12 7 6-7 12-7 6 7 12 7v7z' fill='%230c3964'/%3E%3C/svg%3E") repeat-x; background-size: 48px 16px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer__brand p { color: var(--ice-100); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.site-footer__title { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--snow); margin-bottom: 14px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__links a { color: var(--ice-100); font-size: .92rem; }
.site-footer__links a:hover { color: var(--sky-400); }
.site-footer__bottom { border-top: 1px solid rgba(200, 235, 248, .14); background: rgba(3, 30, 57, .6); }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: .82rem; color: var(--ice-100); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--sky-300); }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-400); color: var(--navy-950); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.elements__grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 36px; padding-bottom: 44px; }
	.hero__title, .hero__text { margin-left: auto; margin-right: auto; }
	.hero__art { width: min(200px, 60vw); grid-row: 1; }
	.shop__layout { display: flex; flex-direction: column; }
	.sidebar { display: contents; }
	.widget--diff, .widget--featured { display: none; }
	.widget--elements { order: 0; padding: 14px; }
	.widget--elements .widget__title { display: none; }
	.widget--elements .filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
	.widget--elements .filter-list__btn { width: auto; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
	.shop__main { order: 1; width: 100%; }
	.widget--community { order: 2; }
	.guides__grid { grid-template-columns: 1fr; }
	.page-layout { grid-template-columns: 1fr; padding-top: 28px; }
	.page-toc { position: static; }
	.page-toc .widget:last-child { display: none; }
	.entry { padding: 24px 20px; }
	.quickview__grid { grid-template-columns: 1fr; }
	.quickview__grid > img { min-height: 0; max-height: 220px; }
}
@media (max-width: 560px) {
	.topbar__inner { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
	.topbar__welcome { display: none; }
	.topbar__right { justify-content: center; gap: 10px; }
	.brand { gap: 10px; }
	.brand__icon { width: 54px; height: 54px; }
	.brand__name { font-size: 1.5rem; }
	.brand__slogan { font-size: .54rem; letter-spacing: .14em; }
	.social--top { display: none; }
	.grid { grid-template-columns: 1fr; gap: 14px; }
	.card { flex-direction: row; }
	.card__media { aspect-ratio: auto; width: 38%; flex: none; }
	.card__body { text-align: left; align-items: flex-start; padding: 14px 14px 14px 14px; }
	.card__cat { justify-content: flex-start; font-size: .68rem; }
	.card__title { font-size: .95rem; }
	.card__excerpt { display: none; }
	.card__actions { justify-content: flex-start; padding-top: 10px; gap: 6px; }
	.card__actions .btn--small { padding: 6px 9px; font-size: .74rem; }
	.badge { top: 8px; left: 8px; font-size: .6rem; padding: 3px 7px; }
	.elements__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
	.toolbar { justify-content: center; text-align: center; }
}

/* Admin bar (saat login) */
.admin-bar [id] { scroll-margin-top: 56px; }
.admin-bar .page-toc { top: 52px; }
