/* ==========================================================================
   Komponen bersama
   ========================================================================== */

/* ---------------- Header / navbar ---------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--on-dark); background: rgba(25, 25, 25, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line-dark); transition: background var(--t-med), height var(--t-med) var(--ease); }
.site-header.is-scrolled { background: rgba(25, 25, 25, .94); }
.site-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark { width: 42px; height: 42px; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.06); }
.brand__word { font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1; }
.brand__word b { color: var(--orange); font-weight: 800; }

.nav ul { display: flex; gap: 4px; }
.nav__link { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 12px 16px; font-family: var(--f-ui); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); transition: color var(--t-fast); }
.nav__idx { font-size: .6rem; color: var(--orange); opacity: .0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t-med) var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover .nav__idx, .nav__link[aria-current="page"] .nav__idx { opacity: 1; transform: none; }

.site-header__tools { display: flex; align-items: center; gap: 10px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 14px; border: 1px solid var(--line-dark-strong); border-radius: 99px; background: transparent; color: var(--on-dark); font-family: var(--f-ui); font-weight: 600; font-size: .86rem; transition: border-color var(--t-fast), box-shadow var(--t-med), background var(--t-fast); }
.search-btn:hover { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 150, 0, .14); background: rgba(255, 150, 0, .06); }
.search-btn svg { width: 18px; height: 18px; }
.search-btn .lens-h { transform-origin: 14px 14px; transition: transform var(--t-med) var(--ease); }
.search-btn:hover .lens-h { transform: translate(1.5px, 1.5px) scale(1.1); }
.search-btn kbd { font-family: var(--f-ui); font-size: .7rem; font-weight: 700; padding: 2px 7px; border: 1px solid var(--line-dark-strong); border-radius: 4px; color: var(--on-dark-soft); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark-strong); border-radius: 50%; background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--dark); border-top: 1px solid var(--line-dark); padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-in-out); overflow-y: auto; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu a.mm-link { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.02em; color: var(--white); }
.mm-link small { font-family: var(--f-ui); font-size: .8rem; color: var(--orange); letter-spacing: .12em; }
.mm-link[aria-current="page"] { color: var(--orange); }
.mobile-menu__foot { margin-top: 32px; color: var(--on-dark-soft); font-size: var(--fs-small); }

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .search-btn__text, .search-btn kbd { display: none; }
  .search-btn { width: 44px; padding: 0; justify-content: center; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* ---------------- Overlay pencarian ---------------- */
.search-ov { position: fixed; inset: 0; z-index: 300; background: rgba(18, 18, 18, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--on-dark); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; overflow-y: auto; overscroll-behavior: contain; }
.search-ov.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.search-ov::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(230,230,230,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(230,230,230,.04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(90% 70% at 50% 0, #000, transparent); mask-image: radial-gradient(90% 70% at 50% 0, #000, transparent); }
.search-ov__inner { position: relative; width: min(100% - 2 * var(--gutter), 960px); margin: 0 auto; padding: clamp(24px, 6vh, 72px) 0 64px; transform: translateY(-16px); transition: transform .6s var(--ease); }
.search-ov.is-open .search-ov__inner { transform: none; }
.search-ov__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(20px, 4vh, 44px); }
.search-ov__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: transparent; color: var(--white); display: grid; place-items: center; transition: transform var(--t-med) var(--ease), border-color var(--t-fast); }
.search-ov__close:hover { transform: rotate(90deg); border-color: var(--orange); }
.search-field { position: relative; display: flex; align-items: center; gap: 16px; padding-bottom: 14px; }
.search-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-dark-strong); }
.search-field::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 1; }
.search-field:focus-within::before { transform: scaleX(1); }
.search-field svg { width: 28px; height: 28px; flex: none; color: var(--orange); }
.search-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--white); font-family: var(--f-head); font-weight: 700; font-size: clamp(1.6rem, 1rem + 3vw, 3rem); letter-spacing: -.02em; padding: 4px 0; }
.search-input::placeholder { color: rgba(230, 230, 230, .35); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { background: none; border: 0; color: var(--on-dark-soft); font-family: var(--f-ui); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px; }
.search-clear:hover { color: var(--orange); }
.search-meta { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 8px; font-family: var(--f-ui); font-weight: 600; font-size: .82rem; color: var(--on-dark-soft); min-height: 1.6em; }
.search-results { border-top: 1px solid var(--line-dark); }
.sr-item { position: relative; border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(10px); animation: sr-in .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes sr-in { to { opacity: 1; transform: none; } }
.sr-item a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 16px; align-items: start; padding: 20px 14px 20px 10px; transition: background var(--t-fast), padding var(--t-med) var(--ease); }
.sr-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transition: transform var(--t-med) var(--ease); }
.sr-item[aria-selected="true"]::before, .sr-item:hover::before { transform: scaleY(1); }
.sr-item[aria-selected="true"] a, .sr-item a:hover { background: rgba(255, 150, 0, .07); padding-left: 22px; }
.sr-no { font-family: var(--f-ui); font-weight: 700; font-size: .8rem; color: var(--orange); padding-top: 6px; }
.sr-cat { font-family: var(--f-ui); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.sr-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); color: var(--white); margin: 4px 0; line-height: 1.2; }
.sr-author { font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 2px 0 0; }
.sr-snip { color: var(--on-dark-soft); font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-arrow { padding-top: 6px; color: var(--orange); opacity: 0; transform: translateX(-8px); transition: opacity var(--t-fast), transform var(--t-med) var(--ease); }
.sr-item[aria-selected="true"] .sr-arrow, .sr-item:hover .sr-arrow { opacity: 1; transform: none; }
.search-all { display: inline-flex; margin-top: 24px; }
.search-empty { padding: 36px 0; color: var(--on-dark-soft); }
.search-empty strong { display: block; color: var(--white); font-family: var(--f-head); font-size: 1.4rem; margin-bottom: 6px; }
.search-hints { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-ui); font-weight: 600; font-size: .78rem; color: var(--on-dark-soft); }
.search-hints kbd { font-family: var(--f-ui); font-weight: 700; padding: 2px 7px; border: 1px solid var(--line-dark-strong); border-radius: 4px; margin-right: 6px; color: var(--on-dark); }
html.is-locked { overflow: hidden; }

/* ---------------- Tombol ---------------- */
.btn { --bg: var(--orange); --fg: var(--dark); --hbg: var(--white); --hfg: var(--dark); position: relative; display: inline-flex; align-items: center; gap: .8em; padding: 1em 1.6em; font-family: var(--f-ui); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); border-radius: 2px; overflow: hidden; isolation: isolate; transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform .25s var(--ease), box-shadow var(--t-med); }
.btn::before { content: ""; position: absolute; inset: -1px; background: var(--hbg); transform: translateY(102%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--hfg); border-color: var(--hbg); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.15em; height: 1.15em; transition: transform .4s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: currentColor; --hbg: var(--orange); --hfg: var(--dark); border-color: var(--line-dark-strong); }
.btn--ghost:hover { border-color: var(--orange); }
.btn--dark { --bg: var(--dark); --fg: var(--white); --hbg: var(--orange); --hfg: var(--dark); }
.btn--outline-dark { --bg: transparent; --fg: var(--ink); --hbg: var(--dark); --hfg: var(--white); border-color: var(--line-light-strong); }
.btn--outline-dark:hover { border-color: var(--dark); }
.btn--sm { padding: .85em 1.2em; font-size: .74rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-ui); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .5s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 1.2em; height: 1.2em; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------------- Chip & kontrol ---------------- */
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .62em 1.05em; border: 1px solid var(--line-light-strong); border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--f-ui); font-weight: 700; font-size: .78rem; letter-spacing: .04em; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform .25s var(--ease); }
.chip:hover { border-color: var(--dark); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--white); }
.chip[aria-pressed="true"] .chip__n { color: var(--orange); }
.chip__n { font-size: .72rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.on-dark .chip { border-color: var(--line-dark-strong); color: var(--on-dark); }
.on-dark .chip:hover { border-color: var(--orange); }
.on-dark .chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.on-dark .chip__n { color: var(--on-dark-soft); }
.on-dark .chip[aria-pressed="true"] .chip__n { color: var(--dark); }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { appearance: none; -webkit-appearance: none; background: var(--white); border: 1px solid var(--line-light-strong); border-radius: 2px; padding: .8em 2.6em .8em 1em; font-family: var(--f-ui); font-weight: 700; font-size: .82rem; color: var(--ink); cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.select-wrap select:hover { border-color: var(--dark); }
.select-wrap::after { content: ""; position: absolute; right: 14px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); pointer-events: none; }

/* ---------------- Cover seni (SVG) ---------------- */
.cover { position: relative; overflow: hidden; background: var(--dark); aspect-ratio: 8 / 5; }
.cover .art, .cover .imgart { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.cover .imgart { background: var(--dark-2); }
.cover .imgart img, .cover .imgart__fb, .cover .imgart__fb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__cat { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: .5em .85em; background: var(--orange); color: var(--dark); font-family: var(--f-ui); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.cover__ph { position: absolute; right: 12px; top: 12px; z-index: 2; color: var(--on-dark); background: rgba(25, 25, 25, .6); }
/* Placeholder saat artikel tidak punya gambar — sama dengan blog_item.php. */
.cover__empty { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,150,0,.18), rgba(25,25,25,.85)); display: grid; place-items: center; color: var(--orange); }
.cover__empty img { width: 56px; height: 56px; object-fit: contain; display: block; }
@keyframes drift { to { transform: translateX(-40px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swing { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
.art .a-spin, .art .a-breathe { transform-box: fill-box; transform-origin: center; }
.is-live .a-drift, .acard:hover .a-drift, .evt:hover .a-drift, .tile:hover .a-drift { animation: drift 5s linear infinite; }
.is-live .a-spin, .acard:hover .a-spin, .evt:hover .a-spin, .tile:hover .a-spin { animation: spin 26s linear infinite; }
.is-live .a-swing, .acard:hover .a-swing, .evt:hover .a-swing, .tile:hover .a-swing { animation: swing 2.2s ease-in-out infinite alternate; }
.is-live .a-breathe, .acard:hover .a-breathe, .evt:hover .a-breathe, .tile:hover .a-breathe { animation: breathe 2.4s ease-in-out infinite; }

/* ---------------- Kartu artikel ---------------- */
.acard { position: relative; display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.acard::before, .acard::after { content: ""; position: absolute; width: 0; height: 0; border: 0 solid var(--orange); transition: width .5s var(--ease), height .5s var(--ease); pointer-events: none; z-index: 3; }
.acard::before { left: -8px; top: -8px; border-width: 2px 0 0 2px; }
.acard::after { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; }
.acard:hover::before, .acard:hover::after, .acard:focus-within::before, .acard:focus-within::after { width: 26px; height: 26px; }
.acard:hover .cover .art, .acard:hover .cover .imgart img { transform: scale(1.06); }
.acard__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.acard__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.2rem, 1.02rem + .7vw, 1.55rem); line-height: 1.18; letter-spacing: -.01em; }
.acard__title a { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.acard__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.acard:hover .acard__title a { background-size: 100% 3px; }
.acard__sum { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard__snip { font-size: .92rem; color: var(--ink-soft); border-left: 3px solid var(--orange); padding-left: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-ui); font-weight: 600; font-size: .78rem; color: var(--ink-faint); margin-top: auto; padding-top: 6px; }
.meta span + span::before { content: "·"; margin-right: 12px; color: var(--orange); font-weight: 800; }
.on-dark .meta { color: var(--on-dark-soft); }
.acard--wide .acard__title { font-size: clamp(1.45rem, 1rem + 1.3vw, 2.15rem); }
@media (min-width: 1000px) {
  .acard--wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
  .acard--wide .cover { height: 100%; aspect-ratio: auto; min-height: 280px; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; padding-top: clamp(64px, 9vw, 120px); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.site-footer h2 { font-family: var(--f-ui); font-weight: 700; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.site-footer p { color: var(--on-dark-soft); max-width: 44ch; }
.site-footer li a { display: inline-block; padding: 5px 0; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--on-dark); background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color var(--t-fast); }
.site-footer li a:hover { background-size: 100% 2px; color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-ph { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line-dark-strong); border-radius: 4px; font-size: .88rem; }
.footer-word { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.6rem, 17vw, 17rem); line-height: .78; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(230, 230, 230, .16); white-space: nowrap; user-select: none; margin-bottom: -.06em; transition: -webkit-text-stroke-color .6s; }
.footer-word:hover { -webkit-text-stroke-color: rgba(255, 150, 0, .55); }
.footer-bar { border-top: 1px solid var(--line-dark); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--f-ui); font-weight: 600; font-size: .8rem; color: var(--on-dark-soft); position: relative; background: var(--dark); }
.to-top { background: none; border: 1px solid var(--line-dark-strong); color: var(--on-dark); border-radius: 99px; padding: .6em 1.1em; font-family: var(--f-ui); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; transition: border-color var(--t-fast), color var(--t-fast); }
.to-top:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Transisi halaman ---------------- */
.pt { position: fixed; inset: 0; z-index: 999; display: flex; pointer-events: none; }
.pt__bar { flex: 1; position: relative; background: var(--dark); transform: scaleY(0); transform-origin: bottom; }
.pt__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--orange); }
.pt__bar:nth-child(even)::after { background: var(--sky); }
html.pt-cover .pt__bar { transform: scaleY(1); transition: none; }
.pt.is-leaving { pointer-events: all; }
.pt.is-leaving .pt__bar { transform: scaleY(1); transform-origin: bottom; transition: transform .52s var(--ease-in-out); transition-delay: calc(var(--i) * 50ms); }
.pt.is-entering .pt__bar { transform: scaleY(0); transform-origin: top; transition: transform .62s var(--ease-in-out); transition-delay: calc(var(--i) * 50ms); }
.reduce-motion .pt, .pt[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* ---------------- Kepala halaman ---------------- */
.page-head { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 9vw, 130px)) 0 clamp(56px, 8vw, 110px); }
.page-head__inner { position: relative; z-index: 2; display: grid; gap: clamp(20px, 3vw, 36px); }
.page-head h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h1); letter-spacing: -.035em; line-height: .96; color: var(--white); max-width: 14ch; }
.page-head__mark { position: absolute; right: -6%; top: 50%; width: min(56vw, 640px); aspect-ratio: 1; opacity: .13; transform: translateY(-46%) rotate(-8deg); pointer-events: none; z-index: 1; }
.page-head__mark img { width: 100%; height: 100%; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--orange); }
.crumbs i { width: 28px; height: 1px; background: var(--orange); }

/* ---------------- Dialog ---------------- */
dialog.dlg { border: 0; padding: 0; width: min(100% - 24px, 920px); max-height: min(92dvh, 900px); background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
dialog.dlg::backdrop { background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.dlg[open] { animation: dlg-in .5s var(--ease); display: flex; flex-direction: column; }
dialog.dlg[open]::backdrop { animation: dlg-fade .4s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.975); } }
@keyframes dlg-fade { from { opacity: 0; } }
.dlg__close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: rgba(25, 25, 25, .7); color: var(--white); display: grid; place-items: center; transition: transform var(--t-med) var(--ease), border-color var(--t-fast); }
.dlg__close:hover { transform: rotate(90deg); border-color: var(--orange); }
.dlg__scroll { overflow-y: auto; overscroll-behavior: contain; }

/* ---------------- 404 ---------------- */
.nf { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.nf__in { display: grid; gap: 24px; }
.nf__t { font-size: var(--fs-h1); color: var(--white); }

/* ---------------- Utilitas halaman ---------------- */
.latest__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sec-title { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1; margin-block: clamp(20px, 3vw, 36px) clamp(32px, 5vw, 64px); }
.on-dark .sec-title { color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-inline { padding: 28px 0; color: var(--ink-soft); font-family: var(--f-ui); font-weight: 600; }
.on-dark .empty-inline { color: var(--on-dark-soft); }

/* Kartu aktivitas (dipakai juga di halaman Aktivitas) */
.evt { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-light); color: var(--ink); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s; }
.evt:hover, .evt:focus-within { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(0,0,0,.35); border-color: var(--dark); }
.evt .cover { aspect-ratio: 16 / 10; }
.evt:hover .cover .art, .evt:hover .cover .imgart img { transform: scale(1.06); }
.evt__date { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--dark); color: var(--white); padding: 8px 12px 7px; text-align: center; border-top: 3px solid var(--orange); font-family: var(--f-ui); font-weight: 700; line-height: 1.1; }
.evt__date strong { display: block; font-size: 1.7rem; font-family: var(--f-display); font-weight: 800; }
.evt__date span { font-size: .66rem; letter-spacing: .16em; color: var(--on-dark-soft); }
.evt__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.evt__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-family: var(--f-ui); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.status { font-family: var(--f-ui); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.status--up { background: var(--orange); color: var(--dark); } .status--done { background: var(--gray); color: var(--ink-soft); }
.evt__title { font-family: var(--f-head); font-weight: 700; font-size: 1.4rem; line-height: 1.18; letter-spacing: -.01em; }
.evt__open { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.evt__open::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.evt__sum { color: var(--ink-soft); font-size: 1rem; }
.evt__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-family: var(--f-ui); font-weight: 600; font-size: .8rem; color: var(--ink-faint); }
.evt__meta svg { width: 15px; height: 15px; flex: none; color: var(--orange); }


/* ---------------- PPS: merek, meta, gambar eksternal, berlangganan ---------------- */
.brand__full { display: none; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-dark-strong); font-family: var(--f-ui); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); line-height: 1.2; max-width: 11em; }
@media (min-width: 1240px) { .brand__full { display: inline-block; } }
.brand__word { display: inline-flex; align-items: center; }
.meta__views { display: inline-flex; align-items: center; gap: 6px; }
.meta__views svg { width: 15px; height: 15px; color: var(--orange); }
.meta span.meta__views::before { content: "·"; margin-right: 12px; color: var(--orange); font-weight: 800; }
.footer-en { margin-top: 10px; font-style: italic; font-size: .92rem; }
.imgart { position: absolute; inset: 0; background: var(--dark-2); }
.imgart img, .imgart__fb, .imgart__fb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__tier { position: absolute; right: 8px; top: 8px; z-index: 2; font-family: var(--f-ui); font-weight: 700; font-size: .62rem; letter-spacing: .08em; padding: .3em .55em; background: var(--dark); color: var(--orange); border: 1px solid var(--line-dark-strong); }
.nl__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.nl__title { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1; color: var(--white); text-transform: none; }
.nl__text { color: var(--on-dark-soft); margin-top: 12px; max-width: 40ch; }
.nl__form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl__form input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark-strong); border-radius: 2px; color: var(--white); font-size: 1rem; transition: border-color .2s, background .2s; }
.nl__form input::placeholder { color: rgba(230,230,230,.45); }
.nl__form input:focus { border-color: var(--orange); background: rgba(255,150,0,.06); outline: none; }
.nl__status { margin-top: 12px; min-height: 1.4em; color: var(--on-dark-soft); font-family: var(--f-ui); font-weight: 600; font-size: .86rem; }

/* Pesan balasan form berlangganan (js/ui/subscribe.js). Kelas ini juga dipakai
   modul newsletter, jadi dideklarasikan di sini — bukan inline di modul — supaya
   tetap ada walau modul diedit dan skrip inline-nya hilang. */
.pps-msg { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 20px; width: fit-content; max-width: 100%; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.4; font-family: var(--f-ui); animation: ppsFadeIn .45s ease both; }
.pps-msg:empty { display: none; }
.pps-msg.success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.5); color: #4ade80; }
.pps-msg.warn { background: rgba(250,204,21,.14); border: 1px solid rgba(250,204,21,.55); color: #fde047; }
.pps-msg.error { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.5); color: #f87171; }
.pps-msg.loading { background: rgba(255,150,0,.12); border: 1px solid rgba(255,150,0,.45); color: var(--orange); }
.pps-msg svg { flex: none; }
@keyframes ppsFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pps-spin { animation: ppsSpin .8s linear infinite; }
@keyframes ppsSpin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .nl__in { grid-template-columns: minmax(0, 1fr); } }
