@charset "UTF-8";
/* ==========================================================
   Dato' Seri Mohamed Khaled Nordin — Official Website
   Editorial design system · mobile-first · light & dark
   ========================================================== */

:root {
  --navy-900: #070d22;
  --navy-800: #0b1430;
  --navy-700: #12204a;
  --navy-600: #1a2d63;
  --kn: #1a1a64;
  --gold: #b8913a;
  --gold-2: #d6b467;
  --gold-text: #7d5d17;   /* 5.6:1 on #fff, 5.2:1 on #f6f4ef */
  --on-gold: #0b1430;     /* 8.9:1 on --gold-2 */

  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --paper: #fbfaf7;
  --ink: #0b1430;
  --ink-2: #33405f;
  --muted: #586179;
  --line: rgba(11, 20, 48, .12);
  --line-2: rgba(11, 20, 48, .06);
  --accent: var(--kn);
  --shadow-sm: 0 1px 2px rgba(11,20,48,.06), 0 4px 14px -6px rgba(11,20,48,.12);
  --shadow: 0 2px 6px rgba(11,20,48,.06), 0 24px 48px -24px rgba(11,20,48,.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 64px;
  --radius: 14px;
  --gutter: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070d22;
  --bg-2: #0b1430;
  --paper: #0d1836;
  --ink: #eef1f8;
  --ink-2: #c3cbe0;
  --muted: #9aa4bf;
  --line: rgba(214, 180, 103, .18);
  --line-2: rgba(255, 255, 255, .06);
  --accent: #9fb0ff;
  --gold: #d6b467;
  --gold-text: #dcbd76;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -8px rgba(0,0,0,.6);
  --shadow: 0 2px 6px rgba(0,0,0,.4), 0 30px 60px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold-2); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: calc(100% - 2 * var(--gutter)); max-width: 1200px; margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Preloader & progress ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--navy-900); transition: opacity .6s var(--ease), visibility .6s; }
.preloader img { width: 150px; }
.pl-bar { width: 120px; height: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.pl-bar::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: translateX(-100%); animation: load 1.1s var(--ease) infinite; }
@keyframes load { to { transform: translateX(100%); } }
.preloader.done { opacity: 0; visibility: hidden; }
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease); }
.site-header.scrolled, .site-header.menu-open { background: color-mix(in srgb, var(--bg-2) 92%, transparent); color: var(--ink); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.utility { display: none; font-size: .76rem; letter-spacing: .02em; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header.scrolled .utility { border-color: var(--line-2); }
.utility-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.u-left { display: flex; align-items: center; gap: 10px; opacity: .85; }
.u-flag { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(#cc0001 0 14%, #fff 14% 28%, #cc0001 28% 42%, #fff 42% 56%, #cc0001 56% 70%, #fff 70% 84%, #cc0001 84%); position: relative; overflow: hidden; }
.u-flag::before { content: ""; position: absolute; inset: 0 50% 43% 0; background: #010066; }
.u-right { display: flex; align-items: center; gap: 14px; }
.u-right time { opacity: .75; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { width: 52px; height: 30px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: .005em; }
.brand-text small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; opacity: .65; }
.lang-switch button.on { background: var(--gold-2); color: var(--on-gold); opacity: 1; }
.theme-btn { border: 1px solid currentColor; background: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
:root[data-theme="light"] .i-sun, :root[data-theme="dark"] .i-moon { display: none; }

/* Mobile nav (default) */
.menu-btn { width: 44px; height: 44px; border: 0; background: none; position: relative; flex: none; margin-right: -10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100svh - var(--header-h)); z-index: 49; display: flex; flex-direction: column;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--bg-2); color: var(--ink); overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease), visibility .5s; visibility: hidden;
}
.nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
.nav a { text-decoration: none; font-family: var(--serif); font-size: 1.6rem; padding: 16px 2px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.nav a::after { content: "\2192 "; font-family: var(--sans); font-size: 1rem; color: var(--gold-text); }
.nav-extras { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; font-size: .85rem; }
.nav-extras .lang-switch button { padding: 8px 16px; font-size: .8rem; }
.nav-extras .theme-btn { width: 40px; height: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .92rem; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-2); color: var(--on-gold); }
.btn-gold:hover { background: #e2c47f; }
.btn-gold svg { transition: transform .3s var(--ease); } .btn-gold:hover svg { transform: translateX(4px); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-line.dark { color: var(--ink); border-color: var(--line); }
.btn-line.dark:hover { border-color: var(--ink); background: transparent; }

/* ---------- Hero: official portrait on navy ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 50% 38%, rgba(54, 86, 190, .55), transparent 70%),
  radial-gradient(90% 60% at 50% 110%, rgba(214, 180, 103, .14), transparent 70%),
  linear-gradient(180deg, #08102a 0%, #070d22 100%); }
.hero-arc { position: absolute; left: 50%; top: 14svh; width: min(130vw, 720px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  border: 1px solid rgba(214, 180, 103, .35); box-shadow: 0 0 0 28px rgba(214,180,103,.04), 0 0 0 56px rgba(214,180,103,.025); animation: arcIn 1.6s var(--ease) both; }
@keyframes arcIn { from { opacity: 0; transform: scale(.92); } }
.hero-lines { display: none; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-mark { position: absolute; right: -6vw; bottom: 6svh; width: 70vw; max-width: 760px; opacity: .035; filter: grayscale(1) brightness(3); }
.hero-grid { flex: 1; display: grid; grid-template-rows: 1fr auto; padding-top: var(--header-h); }
.hero-portrait { grid-row: 1; margin: 0; display: flex; align-items: flex-end; justify-content: center; min-height: 0; position: relative; }
.hero-portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, var(--navy-900)); }
.hero-portrait img { height: min(58svh, 560px); width: auto; max-width: none; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); animation: portraitIn 1.4s var(--ease) .15s both; will-change: transform; }
@keyframes portraitIn { from { opacity: 0; transform: translateY(40px); } }
.hero-text { grid-row: 2; position: relative; z-index: 2; margin-top: -9svh; padding-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #e3c784; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 10.5vw, 5.4rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 18px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .line:nth-child(3) > span { animation-delay: .2s; font-style: italic; color: #e3c784; }
@keyframes rise { to { transform: none; } }
.hero-roles { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: #fff; }
.hero-roles li { display: flex; align-items: center; gap: 10px; }
.hero-roles li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #e3c784; margin-right: 8px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { flex: 1 1 auto; }
.fade-in { opacity: 0; animation: fade .9s var(--ease) forwards; animation-delay: var(--d, .5s); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Latest strip */
.latest { background: var(--navy-800); color: #fff; border-top: 1px solid rgba(214,180,103,.25); }
.latest-inner { display: flex; flex-direction: column; gap: 4px; padding: 18px 0 10px; }
.latest-label { display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #e3c784; }
.latest-label i { width: 8px; height: 8px; border-radius: 50%; background: #e3c784; box-shadow: 0 0 0 0 rgba(227,199,132,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(227,199,132,0); } 100% { box-shadow: 0 0 0 0 rgba(227,199,132,0); } }
.latest-list { display: grid; }
.latest-item { display: grid; gap: 2px; text-align: left; border: 0; background: none; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.latest-item:last-child { border-bottom: 0; }
.latest-item time { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.latest-item span { font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.latest-item:hover span { color: #e3c784; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 6.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 18px; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 30px; }
.head-note { max-width: 420px; margin: 0; }

/* ---------- Biography ---------- */
.bio { background: var(--bg-2); }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.bio-grid > *, .lead-stories > *, .contact > *, .footer-grid > * { min-width: 0; }
.bio-portrait { position: relative; margin: 0; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--navy-700); }
.bio-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.bio-portrait figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.bio-portrait figcaption img { width: 84px; }
.factsheet { margin: 22px 0 0; border-top: 1px solid var(--line); }
.factsheet div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.factsheet dt { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.factsheet dd { margin: 0; font-weight: 500; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 8px calc(-1 * var(--gutter)) 26px; padding: 0 var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 14px 12px; min-height: 48px; font-size: .9rem; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { transform: scaleX(1); }
.tab-panel { min-height: 240px; }
.tab-panel > * { animation: fade .5s var(--ease) both; }
.tab-panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 14px; }
.tab-panel p { color: var(--ink-2); font-size: 1.03rem; margin: 0 0 16px; }
.tab-panel ul { list-style: none; margin: 0; padding: 0; }
.tab-panel li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.tab-panel li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.tab-panel li b { color: var(--ink); font-weight: 600; }
.honours { display: grid; gap: 10px; }
.honour { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.honour .yr { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-text); }
.honour b { display: block; font-weight: 600; font-size: .95rem; }
.honour small { color: var(--muted); }
.timeline-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 64px 0 22px; }
.chrono { list-style: none; margin: 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.chrono li { position: relative; padding: 0 0 22px 30px; }
.chrono li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--gold); }
.chrono li.now::before { background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 25%, transparent); }
.chrono .y { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--gold-text); line-height: 1.3; }
.chrono .t { color: var(--ink-2); font-size: .95rem; }

/* ---------- Highlights ---------- */
.hscroll { position: relative; background: var(--navy-900); color: #fff; padding: 72px 0; --gold-text: #dcbd76; }
.hscroll .kicker { color: var(--gold-2); }
.hscroll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.hscroll-head h2 { margin: 0; max-width: 640px; }
.hs-progress { display: none; width: 160px; height: 2px; background: rgba(255,255,255,.15); flex: none; }
.hs-progress span { display: block; height: 100%; width: 0; background: var(--gold-2); }
.hscroll-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hl-card { position: relative; flex: 0 0 82vw; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: var(--navy-700); color: #fff; text-align: left; scroll-snap-align: start; }
.hl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hl-card:hover img { transform: scale(1.05); }
.hl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,13,34,.92)); }
.hl-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.hl-body time { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.hl-body h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-num { position: absolute; top: 16px; left: 20px; z-index: 1; font-family: var(--serif); font-size: .95rem; color: rgba(255,255,255,.85); }
.hl-num::after { content: ""; display: inline-block; width: 24px; height: 1px; background: rgba(255,255,255,.5); margin-left: 8px; vertical-align: middle; }

/* ---------- News ---------- */
.lead-stories { display: grid; gap: 18px; margin-bottom: 44px; }
.lead-side { display: grid; gap: 18px; }
.story { position: relative; display: block; border: 0; padding: 0; text-align: left; background: none; color: inherit; width: 100%; }
.story .img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/10; background: var(--navy-700); }
.story .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .img img { transform: scale(1.04); }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story .meta { margin: 14px 0 6px; }
.story h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; margin: 0; }
.story p { color: var(--ink-2); margin: 8px 0 0; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story.main h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.story.side { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.story.side .img { aspect-ratio: 1; border-radius: 10px; }
.story.side .meta { margin-top: 0; }
.story.side h3 { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story.side p { display: none; }
.date { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }

.toolbar { position: sticky; top: 0; z-index: 6; background: var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px; border-bottom: 1px solid var(--line); }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 8px 14px; font-size: .84rem; font-weight: 600; color: var(--ink-2); min-height: 40px; transition: all .25s; }
.cat-tabs button small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.cat-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cat-tabs button.on small { color: inherit; opacity: .7; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); min-height: 44px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.filters select { appearance: none; -webkit-appearance: none; font: inherit; font-size: .9rem; color: var(--ink); background: var(--bg-2) 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' stroke='%23888' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 999px; padding: 0 34px 0 14px; min-height: 44px; }
.result-count { margin: 18px 0; font-size: .85rem; }

.grid { display: grid; gap: 30px; }
.card { display: flex; flex-direction: column; border: 0; padding: 0; background: none; text-align: left; color: inherit; width: 100%; }
.card .thumb { position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); background: var(--navy-700); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.badge-count, .badge-play { position: absolute; display: flex; align-items: center; gap: 6px; color: #fff; font-size: .74rem; font-weight: 600; background: rgba(7,13,34,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; }
.badge-count { right: 10px; bottom: 10px; padding: 5px 10px; }
.badge-play { left: 10px; bottom: 10px; padding: 6px 12px 6px 8px; }
.thumb.statement { display: flex; align-items: flex-end; padding: 22px; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); }
.thumb.statement::before { content: "\201c "; position: absolute; top: -8px; left: 16px; font-family: var(--serif); font-size: 6rem; color: var(--gold-2); opacity: .5; }
.thumb.statement span { font-family: var(--serif); color: #fff; font-size: 1.1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: 14px 0 6px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.empty { text-align: center; padding: 50px 0; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Video ---------- */
.section-dark { background: var(--navy-800); color: #eef1f8; --ink: #eef1f8; --ink-2: #c3cbe0; --muted: #9aa4bf; --line: rgba(255,255,255,.18); --gold-text: #dcbd76; }
.section-dark .kicker { color: var(--gold-2); }
.video-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
.video-rail::-webkit-scrollbar { display: none; }
.v-card { position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: var(--navy-700); color: #fff; text-align: left; scroll-snap-align: start; }
.v-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.v-card:hover img { transform: scale(1.05); }
.v-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,13,34,.92)); }
.v-card .play { position: absolute; top: 12px; right: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); }
.v-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; }
.v-body time { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.v-body p { margin: 4px 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Gallery ---------- */
.gallery { columns: 2; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--navy-700); }
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact-sec { background: var(--bg-2); }
.contact { display: grid; gap: 30px; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.socials a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; transition: border-color .3s, transform .3s var(--ease); background: var(--paper); min-width: 0; }
.socials a:hover { border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; flex: none; color: var(--kn); }
:root[data-theme="dark"] .socials svg { color: var(--gold-2); }
.socials span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.socials small { font-weight: 400; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.f-brand img { width: 120px; margin-bottom: 14px; }
.f-brand p { margin: 0; max-width: 420px; font-size: .9rem; }
.f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.f-nav a { text-decoration: none; font-size: .92rem; padding: 4px 0; } .f-nav a:hover { color: var(--gold-2); }
.f-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; font-size: .8rem; }
.f-bottom p { margin: 0; } .site-footer .muted { color: rgba(255,255,255,.5); }
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow-sm); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal (mobile: full-screen sheet) ---------- */
body.modal-open { overflow: hidden; }
.modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--bg-2); color: var(--ink); overflow: hidden; }
.modal[open] { animation: sheet .45s var(--ease); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.modal::backdrop { background: rgba(4, 8, 22, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(7,13,34,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal.text-only .modal-close { color: var(--ink); background: var(--bg); }
.modal-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.m-media { position: relative; background: #000; display: flex; flex-direction: column; }
.m-stage { position: relative; display: grid; place-items: center; background: #000; min-height: 240px; }
.m-stage img { width: 100%; max-height: 68svh; object-fit: contain; animation: fadeImg .35s ease; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
@keyframes fadeImg { from { opacity: .3; } }
.m-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.m-nav.prev { left: 8px; } .m-nav.next { right: 8px; }
.m-count { position: absolute; left: 12px; top: calc(18px + env(safe-area-inset-top)); color: #fff; font-size: .78rem; font-weight: 600; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 999px; z-index: 2; }
.m-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #05070d; scrollbar-width: none; }
.m-thumbs::-webkit-scrollbar { display: none; }
.m-thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .5; background: none; }
.m-thumbs button.on { border-color: var(--gold-2); opacity: 1; }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Video keeps Facebook's original aspect ratio (--ar set from its thumbnail). Never cropped. */
.m-video-wrap { display: grid; place-items: center; background: #000; padding-top: env(safe-area-inset-top); }
.m-video { position: relative; width: min(100%, calc(var(--vh-max) * var(--ar, .5625))); aspect-ratio: var(--ar, .5625); --vh-max: 78svh; background: #000; }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-video .m-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.m-video .m-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.m-video .m-loading::after { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--gold-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-text { padding: 24px var(--gutter) calc(48px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.modal.text-only .m-text { padding-top: calc(70px + env(safe-area-inset-top)); }
.m-text .meta { margin-bottom: 12px; }
.m-text h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin: 0 0 16px; }
.post-text { white-space: pre-line; color: var(--ink-2); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-text a { color: var(--accent); }
.fb-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- Reveal animations (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(12% 0 0 0 round var(--radius)); opacity: 0; transition: clip-path 1.2s var(--ease), opacity .8s; }
.clip-reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
.clip-reveal > img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.clip-reveal.in > img { transform: scale(1); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.split.in .split-word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .clip-reveal, .fade-in { opacity: 1; transform: none; clip-path: none; }
  .split-word > span, .hero-title .line > span { transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   ≥ 600px
   ========================================================== */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .gallery { columns: 3; column-gap: 14px; } .gallery button { margin-bottom: 14px; }
  .socials { grid-template-columns: repeat(4, 1fr); }
  .socials a { flex-direction: column; align-items: flex-start; }
  .video-rail { grid-auto-columns: 36vw; }
  .hl-card { flex-basis: 54vw; }
  .filters { grid-template-columns: 1fr 150px 160px; }
  .search { grid-column: auto; }
  .chrono { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .chrono::before { display: none; }
  .chrono li { border-left: 1px solid var(--line); }
  .chrono li::before { left: -5px; }
}

/* ==========================================================
   ≥ 960px (desktop)
   ========================================================== */
@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 40px; }
  .utility { display: block; }
  html { scroll-padding-top: calc(var(--header-h) + 44px); }
  .menu-btn, .nav-extras { display: none; }
  .nav { position: static; height: auto; flex-direction: row; gap: 2px; padding: 0; background: none; color: inherit; clip-path: none; visibility: visible; overflow: visible; }
  .nav a { font-family: var(--sans); font-size: .9rem; font-weight: 500; padding: 10px 14px; border: 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
  .section { padding: 120px 0; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
  .bio-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 80px; align-items: start; }
  .bio-aside { position: sticky; top: calc(var(--header-h) + 60px); }
  .tabs { margin-left: 0; margin-right: 0; padding: 0; }
  .honours { grid-template-columns: 1fr 1fr; }
  .chrono { grid-template-columns: repeat(3, 1fr); }

  /* Pinned horizontal scroll (desktop only) */
  .hscroll { height: 300vh; padding: 0; }
  .hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .hs-progress { display: block; }
  .hscroll-track { overflow: visible; padding-left: max(var(--gutter), calc((100vw - 1200px) / 2)); gap: 24px; will-change: transform; scroll-snap-type: none; }
  .hl-card { flex: 0 0 clamp(300px, 28vw, 400px); }
  .hl-card:nth-child(even) { margin-top: 60px; }

  .lead-stories { grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
  .lead-side { gap: 22px; }
  .story.side { grid-template-columns: 140px 1fr; }
  .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; margin: 0; }
  .cat-tabs { padding: 0; }
  .filters { grid-template-columns: 220px 130px 150px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
  .video-rail { grid-auto-columns: 240px; margin: 0; padding: 0 0 6px; }
  .gallery { columns: 4; column-gap: 16px; } .gallery button { margin-bottom: 16px; }
  .contact { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .f-bottom { flex-direction: row; justify-content: space-between; }

  /* Modal becomes a centred two-column dialog */
  .modal { width: min(1180px, calc(100% - 48px)); height: auto; max-height: calc(100svh - 48px); margin: auto; border-radius: 18px; box-shadow: var(--shadow); }
  .modal-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); height: auto; max-height: calc(100svh - 48px); overflow: hidden; }
  .modal.text-only { width: min(760px, calc(100% - 48px)); }
  .modal.text-only .modal-body { grid-template-columns: 1fr; }
  .modal.is-video .modal-body { grid-template-columns: auto minmax(360px, 1fr); }
  .m-media { justify-content: center; min-height: 0; }
  .m-stage { flex: 1; min-height: 0; }
  .m-stage img { max-height: calc(100svh - 140px); }
  .m-video-wrap { height: 100%; padding: 0; }
  .m-video { --vh-max: calc(100svh - 48px); width: min(62vw, calc(var(--vh-max) * var(--ar, .5625))); }
  .m-text { overflow-y: auto; padding: 48px 40px; max-height: calc(100svh - 48px); }
  .modal.text-only .m-text { padding-top: 56px; }
  .m-count { top: 14px; }
  .modal-close { top: 14px; right: 14px; }
}

/* ---------- Sub-page header (biografi.html) ---------- */
.page-hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 0%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%); padding: calc(var(--header-h) + 48px) 0 56px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 340px; height: 260px; background: url("../img/logo-kn-mark.svg?v=5") no-repeat center / contain; opacity: .06; pointer-events: none; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 26px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 8vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; max-width: 880px; }
.page-lead { max-width: 620px; color: rgba(255,255,255,.8); font-size: 1.02rem; margin: 0; }
@media (min-width: 960px) { .page-hero { padding: calc(var(--header-h) + 130px) 0 90px; } }

/* ---------- Contrast details ---------- */
.search input::placeholder { color: var(--muted); opacity: 1; }
.filters select, .search input { color: var(--ink); }
.cat-tabs button.on small { opacity: .85; }
.btn-line.dark { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.badge-count, .badge-play { background: rgba(7,13,34,.78); }
.hl-body time, .v-body time { color: #e3c784; }
.thumb.statement span { color: #fff; }
.site-footer { color: rgba(255,255,255,.86); }
.site-footer .muted { color: rgba(255,255,255,.66); }
.crumbs { color: rgba(255,255,255,.78); }
.page-lead { color: rgba(255,255,255,.88); }
.modal.text-only .modal-close { border: 1px solid var(--line); }
.socials small { color: var(--muted); }

/* ---------- Hero / latest — desktop ---------- */
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 980px); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr; align-items: end; padding-top: calc(var(--header-h) + 36px); }
  .hero-text { grid-row: 1; grid-column: 1; margin: 0; align-self: center; padding: 0 0 40px; }
  .hero-portrait { grid-row: 1; grid-column: 2; height: 100%; }
  .hero-portrait::after { height: 18%; }
  .hero-portrait img { height: min(82svh, 820px); }
  .hero-arc { left: auto; right: max(-80px, calc((100vw - 1200px) / 2 - 80px)); top: 18svh; translate: 0 0; width: min(54vw, 720px); }
  .hero-glow { background:
    radial-gradient(45% 60% at 75% 45%, rgba(54, 86, 190, .55), transparent 70%),
    radial-gradient(50% 50% at 10% 100%, rgba(214, 180, 103, .1), transparent 70%),
    linear-gradient(120deg, #070d22 0%, #0a1433 60%, #0b1638 100%); }
  .hero-mark { left: -4vw; right: auto; bottom: -8svh; width: 46vw; }
  .hero-roles { font-size: 1.05rem; }
  .hero-cta .btn { flex: 0 0 auto; }
  .latest-inner { flex-direction: row; align-items: stretch; gap: 32px; padding: 0; }
  .latest-label { flex: none; padding: 26px 0; }
  .latest-list { grid-template-columns: repeat(3, 1fr); flex: 1; }
  .latest-item { padding: 22px 24px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.1); }
  .latest-item:last-child { border-bottom: 0; }
}
/* Gold ring centred behind the portrait */
.hero-arc { display: none; }
.hero-portrait::before { content: ""; position: absolute; left: 50%; bottom: 6%; width: min(118vw, 560px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  border: 1px solid rgba(214, 180, 103, .38); box-shadow: 0 0 0 26px rgba(214,180,103,.04), 0 0 0 54px rgba(214,180,103,.022);
  background: radial-gradient(closest-side, rgba(60, 96, 210, .35), transparent 75%); animation: arcIn 1.6s var(--ease) both; z-index: -1; }
@media (min-width: 960px) { .hero-portrait::before { width: min(46vw, 660px); bottom: 10%; } }
@media (max-width: 599px) {
  .hero-roles { flex-direction: column; gap: 6px; }
  .hero-roles li + li::before { display: none; }
  .hero-roles li::before { content: ""; width: 14px; height: 1px; background: #e3c784; }
}

/* ---------- v13 polish ---------- */
/* toolbar: categories on their own row, filters beneath (desktop) */
@media (min-width: 960px) {
  .toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .cat-tabs { flex-wrap: wrap; overflow: visible; }
  .filters { grid-template-columns: 1fr 150px 170px; }
  .lead-side { gap: 18px; }
  .story.side { grid-template-columns: 128px 1fr; padding-top: 16px; }
  .story.side .img { aspect-ratio: 4/3; }
}
/* lead side: show 2 on phones, 4 on desktop */
.lead-side .story.side:nth-child(n+3) { display: none; }
@media (min-width: 960px) { .lead-side .story.side:nth-child(n+3) { display: grid; } }

/* footer statement */
.f-motto { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(214,180,103,.25); }
.f-motto p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 5.5vw, 3rem); line-height: 1.12; letter-spacing: -.015em; color: #fff; max-width: 900px; }
.f-top { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .85rem; font-weight: 600; color: #e3c784; text-decoration: none; }
.f-top::after { content: "\2191 "; }
@media (min-width: 960px) { .f-motto { flex-direction: row; justify-content: space-between; align-items: flex-end; } .f-top { align-self: auto; } }
.f-brand img { filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }

/* biography page header with portrait */
.page-hero { isolation: isolate; }
.page-hero-inner { position: relative; z-index: 2; }
.page-portrait { display: none; }
@media (min-width: 960px) {
  .page-hero { padding-bottom: 0; }
  .page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; }
  .page-hero-inner { padding-bottom: 90px; }
  .page-portrait { display: block; margin: 0; position: relative; justify-self: center; align-self: end; }
  .page-portrait::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 420px; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 1px solid rgba(214,180,103,.38); background: radial-gradient(closest-side, rgba(60,96,210,.35), transparent 75%); z-index: -1; }
  .page-portrait img { height: 460px; width: auto; max-width: none; filter: drop-shadow(0 24px 50px rgba(0,0,0,.45)); }
}
@media (min-width: 960px) { .tabs { flex-wrap: wrap; overflow: visible; } }

/* ---------- Article-style post text ---------- */
.post-text { white-space: normal; max-width: 68ch; font-size: 1.02rem; line-height: 1.8; color: var(--ink-2); }
.post-text > * { margin: 0 0 1.05em; }
.post-text > :last-child { margin-bottom: 0; }
.post-text p.lead { font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; color: var(--ink); font-weight: 400; }
.post-text h4 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-top: 1.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.post-text ul { list-style: none; padding: 0; }
.post-text li { position: relative; padding: .55em 0 .55em 1.6em; border-bottom: 1px solid var(--line-2); }
.post-text li:last-child { border-bottom: 0; }
.post-text li::before { content: ""; position: absolute; left: .2em; top: 1.25em; width: 7px; height: 7px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.post-text blockquote { margin-left: 0; padding: .4em 0 .4em 1.2em; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink); }
.post-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-word; }
.m-text h3 { font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .post-text p.lead { font-size: 1.3rem; } }

/* ==========================================================
   Hero background: Kuala Lumpur skyline at dusk + waving Jalur Gemilang
   ========================================================== */
.hero-glow { background:
  radial-gradient(70% 45% at 50% 100%, rgba(214, 180, 103, .30), transparent 70%),
  radial-gradient(60% 50% at 50% 35%, rgba(54, 86, 190, .45), transparent 70%),
  linear-gradient(180deg, #060b1d 0%, #0a1536 45%, #1a2b62 78%, #3a3f6e 100%); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46svh; object-fit: cover; object-position: 50% 100%; opacity: .95; will-change: transform; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent 0%, rgba(7,13,34,.55) 45%, rgba(7,13,34,.92) 100%); }
.hero-portrait::before { background: radial-gradient(closest-side, rgba(60, 96, 210, .28), transparent 75%); }

/* Flag: N vertical slices of the same image, each offset in a travelling sine wave */
.hero-flag { position: absolute; left: 7%; top: calc(var(--header-h) + 3svh); width: 96px; z-index: 0; }
.hero-flag .pole { position: absolute; left: -4px; top: -10px; width: 3px; height: 70svh; border-radius: 2px;
  background: linear-gradient(90deg, #8d96ad, #f1f3f8 45%, #7b8399); box-shadow: 0 0 6px rgba(0,0,0,.4); }
.hero-flag .pole::before { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, #d6b467 55%, #8a6a1f); }
.hero-flag .flag { --w: 96px; display: flex; width: var(--w); height: calc(var(--w) / 2); filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.hero-flag .flag span { flex: 1; height: 100%;
  background: url("../img/jalur-gemilang.svg") no-repeat; background-size: var(--w) 100%;
  background-position: calc(var(--i) * var(--w) / var(--n) * -1) 0;
  animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s);
  transform-origin: 0 50%; }
.hero-flag .flag span::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.12), rgba(0,0,0,.12)); animation: shade 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s); }
@keyframes wave { 0%, 100% { transform: translateY(calc(var(--i) * .12px)); } 50% { transform: translateY(calc(var(--i) * .12px + 5px)); } }
@keyframes shade { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (min-width: 960px) {
  .hero-skyline { height: 62svh; }
  .hero-flag { left: auto; right: 5%; top: calc(var(--header-h) + 60px); width: 150px; }
  .hero-flag .flag { --w: 150px; }
  .hero-fade { height: 45%; }
}
@media (prefers-reduced-motion: reduce) { .hero-flag .flag span, .hero-flag .flag span::after { animation: none; } }
/* hero refinements */
.hero-portrait::after { display: none; }
.hero-flag .pole { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
@media (max-width: 959px) {
  .hero-flag { left: 5%; width: 84px; }
  .hero-flag .flag { --w: 84px; }
  .hero-flag .pole { height: 34svh; }
}
@media (max-width: 599px) {
  .hero-roles li + li::before { display: block; content: ""; width: 14px; height: 1px; border-radius: 0; background: #e3c784; margin-right: 0; }
}
.hero-portrait img { -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0,0,0,.35) 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, rgba(0,0,0,.35) 84%, transparent 100%); }
@media (min-width: 960px) { .hero-portrait img { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); } }

/* ==========================================================
   Hero portrait: seamless blend + depth (replaces rings/discs)
   ========================================================== */
.hero-grid { perspective: 1400px; }
.hero-portrait { transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s var(--ease); }
/* one soft spotlight, no edges */
.hero-portrait::before { content: ""; position: absolute; left: 50%; bottom: 12%; width: 150%; aspect-ratio: 1; translate: -50% 0; border: 0; box-shadow: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 124, 240, .34), rgba(60, 96, 210, .14) 45%, rgba(60, 96, 210, 0) 72%);
  filter: blur(10px); animation: none; z-index: -1; pointer-events: none; }
/* soft floor shadow anchoring the figure */
.hero-portrait::after { display: block; content: ""; position: absolute; left: 50%; bottom: 2%; width: 70%; height: 26px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); z-index: -1; }
.hero-portrait img { filter: drop-shadow(0 0 .6px rgba(227, 199, 132, .55)) drop-shadow(-8px 0 18px rgba(90, 130, 255, .18)) drop-shadow(0 14px 22px rgba(0, 0, 0, .35));
  animation: portraitIn 1.4s var(--ease) .15s both, bob 9s ease-in-out 1.6s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hero-skyline, .hero-flag, .hero-glow { transition: transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .hero-portrait img { animation: none; } .hero-portrait { transform: none; } }
@media (min-width: 960px) { .hero-portrait::before { width: 120%; bottom: 18%; } }

/* depth layers driven by --px/--py (pointer, -.5….5) and --sy (scroll px) */
.hero { --px: 0; --py: 0; --sy: 0; }
.hero-glow    { transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0); transition: none; }
.hero-skyline { transform: translate3d(calc(var(--px) * -22px), calc(var(--sy) * .06px + var(--py) * -6px), 0); transition: none; }
.hero-flag    { transform: translate3d(calc(var(--px) * -34px), calc(var(--py) * -10px), 0); transition: none; }
.hero-portrait { transform: translate3d(calc(var(--px) * 16px), calc(var(--sy) * .12px), 0) rotateY(calc(var(--px) * 6deg)) rotateX(calc(var(--py) * -4deg)); transition: none; }
@media (min-width: 960px) { .hero-text { transform: translate3d(calc(var(--px) * 8px), calc(var(--sy) * .22px), 0); } }

/* ==========================================================
   Pagination (news, videos, gallery)
   ========================================================== */
.pager-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pager { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; }
.pager ol { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pg-num, .pg-step { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink);
  font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  transition: background .25s, border-color .25s, color .25s, transform .2s; font-variant-numeric: tabular-nums; }
.pg-num:hover { border-color: var(--line); background: var(--bg-2); }
.pg-num.on { background: var(--ink); color: var(--bg); cursor: default; }
.pg-step { border-color: var(--line); background: var(--bg-2); padding: 0 16px; }
.pg-step:hover:not(:disabled) { border-color: var(--ink); }
.pg-step:active:not(:disabled), .pg-num:active { transform: scale(.96); }
.pg-step:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 4px; }
.pg-status { display: none; font-size: .85rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.section-dark .pg-num.on { background: var(--gold-2); color: var(--on-gold); }
.section-dark .pg-step { background: rgba(255,255,255,.06); }
/* phones: compact — arrows + "Halaman x / y"; nearby numbers only */
@media (max-width: 599px) {
  .pager ol { display: none; }
  .pg-status { display: block; }
  .pg-step span { display: inline; }
}
@media (min-width: 600px) and (max-width: 959px) { .pager li.far { display: none; } .pg-step span { display: none; } .pg-step { padding: 0 12px; } }
@media (min-width: 960px) { .pager { justify-content: center; gap: 14px; } }

/* list swap: gentle fade between pages */
#feed, #videoRail, #gallery { transition: opacity .35s var(--ease), transform .35s var(--ease); }
#feed.swap, #videoRail.swap, #gallery.swap { opacity: 0; transform: translateY(8px); transition: none; }
.result-count { font-variant-numeric: tabular-nums; }

/* Videos: paginated grid instead of a horizontal rail */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .video-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.video-grid .v-card { aspect-ratio: 4 / 5; }

/* Gallery: uniform tiles with caption on hover/focus */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery button { position: relative; margin: 0; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; color: #fff; font-size: .8rem; line-height: 1.35; text-align: left;
  background: linear-gradient(transparent, rgba(7,13,34,.9)); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-cap time { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.gallery button:hover .g-cap, .gallery button:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { display: none; } }
.m-text h3.long { font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.3; }
/* page jump + compact phone pager */
.pg-status { align-items: center; gap: 8px; white-space: nowrap; }
.pg-jump { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; color: var(--ink); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 26px 0 12px; min-height: 40px; cursor: pointer; }
.section-dark .pg-jump { background-color: rgba(255,255,255,.06); color: #fff; }
@media (max-width: 599px) {
  .pg-status { display: flex; font-size: .85rem; }
  .pg-step { padding: 0 14px; }
  .toolbar { position: static; border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 380px) { .pg-step span { display: none; } }
@media (min-width: 600px) { .pg-status { display: flex; margin-left: 8px; } }
@media (min-width: 600px) and (max-width: 959px) { .pg-status > span:first-child { display: none; } }

/* ==========================================================
   Achievements & Policy
   ========================================================== */
.achieve { background: var(--bg-2); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: none; padding: 10px 18px; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .3s, color .3s; white-space: nowrap; }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.ach-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.ach-figures[hidden] { display: none; }
.ach-figures div { background: var(--bg-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.ach-figures b { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ach-figures span { font-size: .8rem; color: var(--muted); }
.ach-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ach-list > li { border-bottom: 1px solid var(--line); }
.ach-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; width: 100%; padding: 22px 0; text-align: left; background: none; border: 0; color: inherit; align-items: start; }
button.ach-item { cursor: pointer; }
.ach-year { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-text); padding-top: 2px; font-variant-numeric: tabular-nums; }
.ach-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ach-tag { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ach-body strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.ach-desc { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.ach-more { margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ach-more::after { content: "\2192 "; color: var(--gold-text); transition: transform .3s var(--ease); }
button.ach-item:hover .ach-more::after { transform: translateX(4px); }
button.ach-item:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ach-img { display: none; }
@media (min-width: 600px) {
  .ach-figures { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .ach-item { grid-template-columns: 90px 1fr 220px; gap: 32px; padding: 28px 0; }
  .ach-year { font-size: 1.5rem; }
  .ach-body strong { font-size: 1.4rem; }
  .ach-img { display: block; aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; background: var(--navy-700); }
  .ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
  button.ach-item:hover .ach-img img { transform: scale(1.05); }
}

/* ==========================================================
   Premium buttons
   ========================================================== */
.btn { position: relative; overflow: hidden; letter-spacing: .02em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: linear-gradient(180deg, #e6c983 0%, #d1ad5c 55%, #b8913a 100%); color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.12), 0 10px 24px -10px rgba(184,145,58,.75); border: 0; }
.btn-gold:hover { background: linear-gradient(180deg, #ecd294 0%, #d8b668 55%, #c09a43 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 16px 30px -12px rgba(184,145,58,.85); }
.btn-line { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn-line:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); }

/* ==========================================================
   Pagination v2 — premium controls; icon-only on phones & tablets
   ========================================================== */
.pg-step { width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; color: #fff;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 22px -12px rgba(11,20,48,.7); }
.pg-step:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 26px -12px rgba(11,20,48,.8); }
.pg-step:disabled { opacity: .28; box-shadow: none; }
.pg-step span { display: none !important; }
:root[data-theme="dark"] .pg-step, .section-dark .pg-step { background: linear-gradient(180deg, #e6c983, #c39d4b); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 22px -12px rgba(0,0,0,.8); }
.pg-num { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
.pg-num.on { background: linear-gradient(180deg, var(--navy-600), var(--navy-800)); color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold-2), 0 8px 18px -10px rgba(11,20,48,.7); }
:root[data-theme="dark"] .pg-num.on, .section-dark .pg-num.on { background: linear-gradient(180deg, #e6c983, #c39d4b); color: var(--on-gold); box-shadow: 0 0 0 2px var(--navy-800), 0 0 0 3px var(--gold-2); }
.pg-status > span:first-child { display: none; }               /* no "Halaman" word anywhere */
.pg-jump { min-height: 44px; padding: 0 30px 0 16px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--shadow-sm); }
@media (max-width: 959px) {
  .pager { justify-content: center; gap: 14px; }
  .pager ol { display: none !important; }                      /* phones & tablets: ‹  [12] / 355  › */
  .pg-status { display: flex !important; font-size: .9rem; }
}
@media (min-width: 960px) { .pg-status { margin-left: 6px; } }
.src-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; text-decoration: none !important; color: var(--ink) !important; }
.src-link:hover { border-color: var(--gold); }
/* placeholder shown only if an image still fails after retries */
img.img-failed { visibility: hidden; }
.thumb:has(img.img-failed), .gallery button:has(img.img-failed), .v-card:has(img.img-failed), .story .img:has(img.img-failed), .hl-card:has(img.img-failed), .ach-img:has(img.img-failed) {
  background: url("../img/logo-kn-mark.svg?v=5") no-repeat center / 34% auto, linear-gradient(145deg, var(--navy-700), var(--navy-900)); }
/* gallery caption: no clipped lines — the clamp sits on the text only */
.g-cap { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; inset: 0; padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(7,13,34,0) 30%, rgba(7,13,34,.55) 55%, rgba(7,13,34,.94) 100%);
  -webkit-line-clamp: unset; overflow: visible; font-size: .82rem; line-height: 1.45; }
.g-cap time { flex: none; }
.g-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--serif); font-size: .92rem; line-height: 1.35; }
@media (max-width: 599px) {
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg button { padding: 10px 6px; font-size: .82rem; }
  .ach-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .ach-year { font-size: .8rem; font-family: var(--sans); font-weight: 700; letter-spacing: .12em; padding: 0; }
}

/* ===================== v41: premium type, filters, year chips, dock ===================== */
:root { --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --read: "Source Serif 4", Georgia, serif; }
body { font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.post-text, .post-text p, .post-text li { font-family: var(--read); font-size: 1.08rem; line-height: 1.75; }
.post-text p.lead { font-family: var(--read); font-weight: 500; }
.post-text h4 { font-family: var(--sans); }
.ach-desc, .head-note { font-family: var(--read); }

/* ---- Achievements: year chips ---- */
.ach-years { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px 0 22px; padding: 2px; }
.ach-years::-webkit-scrollbar { display: none; }
.ach-years button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font: 700 .88rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; transition: all .3s var(--ease); }
.ach-years button small { font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.ach-years button:hover { border-color: var(--gold); }
.ach-years button.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: var(--on-gold); box-shadow: 0 6px 18px -8px rgba(184,145,58,.7); }
.ach-years button.on small { background: rgba(11,20,48,.14); color: var(--on-gold); }
.ach-year small { display: block; margin-top: 4px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 599px) { .ach-year small { display: inline; margin: 0 0 0 8px; } }
#achPager { margin-top: 28px; }

/* ---- News filters: glass control deck ---- */
.toolbar { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.cat-tabs { gap: 8px; padding-bottom: 12px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cat-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 16px; font: 600 .86rem/1 var(--sans); letter-spacing: .005em;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--shadow-sm); transition: transform .25s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; }
.cat-tabs button small { margin: 0; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.cat-tabs button:hover { border-color: var(--gold); transform: translateY(-1px); }
.cat-tabs button:active { transform: scale(.96); }
.cat-tabs button.on { background: linear-gradient(135deg, #14235a, #0b1430); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(11,20,48,.7), inset 0 1px 0 rgba(255,255,255,.12); }
.cat-tabs button.on small { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); opacity: 1; }
:root[data-theme="dark"] .cat-tabs button { box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .cat-tabs button.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); }
:root[data-theme="dark"] .cat-tabs button.on small { background: rgba(11,20,48,.18); color: var(--on-gold); }
.search, .filters select { min-height: 48px; border-radius: 16px; background-color: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.search { padding: 0 16px; gap: 10px; }
.search svg { color: var(--gold-text); width: 18px; height: 18px; }
.search:focus-within, .filters select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent), var(--shadow-sm); outline: none; }
.filters select { font: 600 .9rem/1 var(--sans); padding: 0 40px 0 16px; cursor: pointer;
  background-image: 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' stroke='%23b8913a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.filters select:hover, .search:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.filters { gap: 10px; }
#resultCount { font: 500 .86rem/1.4 var(--sans); letter-spacing: .01em; }

/* ---- Modal thumbnails centred ---- */
.m-thumbs { justify-content: safe center; gap: 8px; padding: 10px 12px; }
.m-thumbs button { flex: 0 0 56px; border-radius: 10px; transition: opacity .25s, transform .25s var(--ease), border-color .25s; }
.m-thumbs button:hover { opacity: .85; }
.m-thumbs button.on { transform: translateY(-2px); box-shadow: 0 6px 16px -6px rgba(214,180,103,.6); }

/* ---- Bottom dock (super app) ---- */
.dock { position: fixed; z-index: 45; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 24px), 460px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: color-mix(in srgb, var(--bg-2) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 18px 40px -14px rgba(11,20,48,.45), 0 2px 8px rgba(11,20,48,.08), inset 0 1px 0 rgba(255,255,255,.55); }
:root[data-theme="dark"] .dock { border-color: rgba(214,180,103,.2); box-shadow: 0 18px 40px -14px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 18px;
  text-decoration: none; color: var(--muted); -webkit-tap-highlight-color: transparent; transition: color .3s, background .35s var(--ease); }
.dock .dk-ic { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 999px; transition: background .35s var(--ease), transform .35s var(--ease); }
.dock .dk-lb { font: 600 .66rem/1 var(--sans); letter-spacing: .02em; }
.dock a:hover { color: var(--ink); }
.dock a.on { color: var(--ink); }
.dock a.on .dk-ic { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); box-shadow: 0 6px 14px -6px rgba(184,145,58,.8); }
.dock a.on .dk-lb { font-weight: 800; }
.dock a.tap .dk-ic { transform: scale(.86); }
.site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
body.modal-open .dock, html:has(dialog[open]) .dock { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
.dock { transition: opacity .3s, transform .4s var(--ease); }
@media (min-width: 960px) {
  .dock { width: auto; grid-template-columns: repeat(5, auto); gap: 4px; padding: 6px; bottom: 20px; }
  .dock a { flex-direction: row; gap: 8px; min-height: 46px; padding: 0 16px 0 8px; }
  .dock .dk-ic { width: 34px; height: 34px; }
  .dock .dk-lb { font-size: .82rem; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .to-top { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .dock, .dock a, .dock .dk-ic { transition: none; } }

/* ===================== v42: premium surfaces ===================== */
:root { --card-r: 20px; --card-bd: color-mix(in srgb, var(--ink) 8%, transparent);
  --lift: 0 1px 2px rgba(11,20,48,.04), 0 10px 30px -14px rgba(11,20,48,.22); --lift-h: 0 2px 4px rgba(11,20,48,.05), 0 24px 48px -18px rgba(11,20,48,.32); }
:root[data-theme="dark"] { --card-bd: rgba(214,180,103,.14); --lift: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.7); --lift-h: 0 2px 4px rgba(0,0,0,.35), 0 28px 54px -18px rgba(0,0,0,.85); }

/* news cards → framed cards */
.card { background: var(--bg-2); border: 1px solid var(--card-bd); border-radius: var(--card-r); overflow: hidden; box-shadow: var(--lift);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--lift-h); border-color: color-mix(in srgb, var(--gold) 45%, var(--card-bd)); }
.card .thumb { border-radius: 0; }
.card .meta { margin: 16px 18px 8px; }
.card h3 { margin: 0 18px 20px; font-size: 1.14rem; line-height: 1.32; letter-spacing: -.005em; }
.card .thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(7,13,34,.28)); pointer-events: none; }

/* lead stories */
.story.main { background: var(--bg-2); border: 1px solid var(--card-bd); border-radius: calc(var(--card-r) + 4px); overflow: hidden; box-shadow: var(--lift); transition: box-shadow .45s var(--ease), transform .45s var(--ease); }
.story.main:hover { transform: translateY(-3px); box-shadow: var(--lift-h); }
.story.main .img { border-radius: 0; }
.story.main .meta { margin: 20px 22px 8px; }
.story.main h3 { margin: 0 22px; letter-spacing: -.012em; }
.story.main p { margin: 10px 22px 24px; font-family: var(--read); font-size: 1rem; line-height: 1.6; }
.story.side { padding: 14px; border: 1px solid var(--card-bd); border-radius: 16px; background: var(--bg-2); box-shadow: var(--lift); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.story.side + .story.side, .lead-side .story.side { border-top: 1px solid var(--card-bd); }
.story.side:hover { transform: translateY(-2px); box-shadow: var(--lift-h); }
.story.side .img { border-radius: 12px; }
.lead-side { gap: 12px; }

/* achievements → premium cards */
.ach-list { border-top: 0; display: grid; gap: 14px; }
.ach-list > li { border-bottom: 0; }
.ach-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; border-radius: var(--card-r); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.ach-item:hover { transform: translateY(-3px); box-shadow: var(--lift-h); border-color: color-mix(in srgb, var(--gold) 45%, var(--card-bd)); }
.ach-item strong { text-decoration: none !important; }
.ach-img { display: block; order: -1; position: relative; aspect-ratio: 16/8; overflow: hidden; background: var(--navy-700); }
.ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ach-item:hover .ach-img img { transform: scale(1.04); }
.ach-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,13,34,.45)); }
.ach-year { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(7,13,34,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font: 800 .78rem/1 var(--sans) !important; letter-spacing: .06em !important; }
.ach-year small { display: inline !important; margin: 0 !important; color: var(--gold-2) !important; font-weight: 700; }
.ach-item:not(:has(.ach-img)) .ach-year { position: static; margin: 18px 18px 0; align-self: start; justify-self: start; background: var(--line); color: var(--ink); border-color: transparent; }
.ach-body { padding: 18px 20px 22px; gap: 8px; }
.ach-tag { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-text); letter-spacing: .12em; }
.ach-body strong { font-size: 1.22rem; letter-spacing: -.008em; }
.ach-desc { font-size: .98rem; line-height: 1.65; }
.ach-more { margin-top: 6px; color: var(--gold-text); font-weight: 700; }
@media (min-width: 600px) { .ach-list { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 960px) {
  .ach-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .ach-item { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .ach-year { font-size: .78rem !important; }
  .ach-img { aspect-ratio: 16/10; }
}
.ach-figures { border-radius: var(--card-r); box-shadow: var(--lift); }
.ach-figures b { color: var(--gold-text); }

/* video cards */
.v-card { border-radius: var(--card-r); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); outline: 1px solid rgba(255,255,255,.08); outline-offset: -1px; transition: transform .45s var(--ease); }
.v-card:hover { transform: translateY(-4px); }
.v-card::after { background: linear-gradient(180deg, rgba(7,13,34,0) 30%, rgba(7,13,34,.55) 58%, rgba(7,13,34,.96) 100%); }
.v-card .play { top: auto; bottom: auto; right: 12px; top: 12px; width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); border: 0; box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); }
.v-body { padding: 16px 14px 16px; }
.v-body time { display: inline-block; font-size: .62rem; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; background: rgba(7,13,34,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v-body p { margin-top: 8px; font-size: .98rem; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* highlights rail */
.hl-card { border-radius: calc(var(--card-r) + 4px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.85); outline: 1px solid rgba(255,255,255,.08); outline-offset: -1px; }

/* socials */
.socials a { border-radius: 16px; background: var(--bg-2); border-color: var(--card-bd); box-shadow: var(--lift); padding: 18px 16px; }
.socials a:hover { box-shadow: var(--lift-h); }
.socials svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--kn, #1f3fbf) 10%, transparent); }

/* gallery & latest strip */
.gallery button, .g-item { border-radius: 14px; }
.latest-item { transition: background .3s; border-radius: 12px; }

/* section rhythm */
.kicker { letter-spacing: .2em; font-weight: 700; }
h2 { letter-spacing: -.02em; }

.cat-tabs button { padding: 0 18px; }
.ach-years button { padding: 0 20px; }

/* ===================== v44: premium dock ===================== */
.dock { --dk-cut: #e2c47e; padding: 7px; gap: 0; border-radius: 28px; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 86%, transparent), color-mix(in srgb, var(--bg-2) 70%, transparent));
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent), 0 24px 48px -18px rgba(11,20,48,.5), 0 6px 14px -8px rgba(11,20,48,.25), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(11,20,48,.04); }
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 140% at 50% -40%, rgba(214,180,103,.18), transparent 60%); }
.dock::after { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(214,180,103,.85), transparent); }
:root[data-theme="dark"] .dock { background: linear-gradient(180deg, rgba(18,30,66,.82), rgba(9,16,40,.78));
  box-shadow: 0 0 0 1px rgba(214,180,103,.22), 0 26px 50px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); }

/* sliding gold indicator */
.dk-ind { position: absolute; top: 0; left: 0; z-index: 0; width: 52px; height: 34px; border-radius: 999px; opacity: 0;
  background: linear-gradient(140deg, #f0d898 0%, var(--gold-2) 38%, var(--gold) 100%);
  box-shadow: 0 8px 18px -8px rgba(184,145,58,.95), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(120,88,20,.25);
  transition: transform .55s cubic-bezier(.3,1.35,.4,1), width .4s var(--ease), opacity .3s; }
.dock.ready .dk-ind { opacity: 1; }
.dock a { z-index: 1; gap: 4px; min-height: 58px; color: color-mix(in srgb, var(--ink) 58%, transparent); }
.dock .dk-ic { width: 52px; height: 34px; background: none !important; box-shadow: none !important; transition: transform .45s cubic-bezier(.3,1.4,.4,1); }
.dock a.on .dk-ic { color: var(--on-gold); }
.dock:not(.ready) a.on .dk-ic { background: linear-gradient(140deg, #f0d898, var(--gold)) !important; border-radius: 999px; }
.dock a:active .dk-ic, .dock a.tap .dk-ic { transform: scale(.88); }
.dock .dk-lb { font: 600 .64rem/1 var(--sans); letter-spacing: .03em; transition: color .3s; }
.dock a.on .dk-lb { color: var(--ink); font-weight: 800; }
:root[data-theme="dark"] .dock a { color: rgba(220,228,248,.62); }
:root[data-theme="dark"] .dock a.on .dk-lb { color: var(--gold-2); }

/* duotone icons: soft outline at rest, solid with cut-out detail when active */
.dock svg { overflow: visible; }
.dock svg .ln { fill: currentColor; fill-opacity: .1; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: fill-opacity .35s; }
.dock svg .bk { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; opacity: .55; }
.dock svg .dt { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s, fill .35s; }
.dock svg .dt.fl { fill: currentColor; stroke: none; }
.dock a.on svg .ln { fill-opacity: 1; }
.dock a.on svg .bk { opacity: 1; }
.dock a.on svg .dt { stroke: var(--dk-cut); }
.dock a.on svg .dt.fl { fill: var(--dk-cut); stroke: none; }
.dock a:hover:not(.on) svg .ln { fill-opacity: .2; }

@media (min-width: 960px) {
  .dock { padding: 7px 8px; border-radius: 26px; }
  .dock a { min-height: 48px; padding: 0 16px 0 6px; gap: 6px; }
  .dock .dk-ic { width: 44px; height: 36px; }
  .dk-ind { height: 36px; }
  .dock .dk-lb { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .dk-ind { transition: none; } }
@media (min-width: 960px) { .dock a.on .dk-lb, :root[data-theme="dark"] .dock a.on .dk-lb { color: var(--on-gold); } .dk-ind { border-radius: 20px; } }

/* ===================== v45: category dropdown + area chips ===================== */
.toolbar { display: block !important; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .search { grid-column: 1 / -1; }
.filters #cat { grid-column: 1 / -1; }
.filters select.set { border-color: var(--gold); background-color: color-mix(in srgb, var(--gold) 9%, var(--bg-2)); color: var(--ink); }
@media (min-width: 600px) { .filters { grid-template-columns: 1fr 1fr 1fr; } .filters #cat { grid-column: auto; } }
@media (min-width: 960px) { .filters { grid-template-columns: minmax(260px, 1fr) 240px 160px 170px; } .filters .search { grid-column: auto; } }

.ach-areas { display: flex; gap: 6px; padding: 5px; margin: -6px 0 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); }
.ach-areas[hidden] { display: none; }
.ach-areas::-webkit-scrollbar { display: none; }
.ach-areas button { flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 .84rem/1 var(--sans); transition: background .3s, color .3s; }
.ach-areas button.on { background: var(--ink); color: var(--bg); }
@media (max-width: 599px) { .ach-areas { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; } .ach-areas button { padding: 0 6px; font-size: .78rem; } }
.ach-desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ach-figures { grid-template-columns: repeat(2, 1fr); }


/* ===================== v47: share bar + media protection ===================== */
.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -2px 0 26px; padding: 12px 12px 12px 16px;
  border-radius: 18px; background: var(--bg); border: 1px solid var(--card-bd); }
.share-end .share-bar { margin: 34px 0 6px; }
.sh-lbl { font: 800 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.sh-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--card-bd); background: var(--bg-2); color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.sh-btn:hover, .sh-btn:focus-visible { transform: translateY(-2px); color: #fff; border-color: transparent; }
.sh-btn:active { transform: scale(.92); }
.sh-facebook:hover, .sh-facebook:focus-visible { background: #1877f2; }
.sh-whatsapp:hover, .sh-whatsapp:focus-visible { background: #1faa53; }
.sh-telegram:hover, .sh-telegram:focus-visible { background: #229ed9; }
.sh-threads:hover, .sh-threads:focus-visible { background: #101010; }
.sh-link:hover, .sh-link:focus-visible, .sh-native:hover, .sh-native:focus-visible { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); }
@media (max-width: 420px) { .share-bar { justify-content: center; } .sh-lbl { width: 100%; text-align: center; } .sh-btn { width: 44px; height: 44px; } }

.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: #0b1430; color: #fff; font: 600 .86rem/1.3 var(--sans); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  border: 1px solid rgba(214,180,103,.35); transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal .toast { bottom: calc(28px + env(safe-area-inset-bottom)); }

/* protection: no selection, drag or long-press save on any media */
img, picture, video, .m-media, .thumb, .gallery, .v-card, .hl-card, .story .img, .ach-img {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
img { pointer-events: auto; }
.m-stage { position: relative; }
.m-stage::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 54px; height: 22px; opacity: .55; pointer-events: none; z-index: 3;
  background: url("../img/logo-kn.svg?v=5") no-repeat center / contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)) brightness(0) invert(1); }
html.shield img, html.shield .m-video, html.shield .hero-portrait { filter: blur(24px) !important; transition: none; }
@media print { body * { visibility: hidden !important; } body::after { content: "Kandungan ini dilindungi \2014  sila kongsi pautan laman."; visibility: visible; display: block; padding: 40px; font: 600 16px sans-serif; } }


/* ===================== v48: auto slideshow ===================== */
.m-stage { overflow: hidden; }
.ss-imgs { display: grid; width: 100%; place-items: center; }
.ss-imgs > img { grid-area: 1 / 1; width: 100%; max-height: 68svh; object-fit: contain; opacity: 0; animation: none; touch-action: pan-y;
  transition: opacity .85s ease; }
.ss-imgs > img.in { opacity: 1; animation: kenburns 6.5s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (min-width: 960px) { .ss-imgs, .ss-imgs > img { height: 100%; } .ss-imgs > img { max-height: calc(100svh - 140px); } }
@media (prefers-reduced-motion: reduce) { .ss-imgs > img.in { animation: none; } }
/* progress segments */
.ss-bar { position: absolute; z-index: 4; left: 12px; right: 64px; top: calc(12px + env(safe-area-inset-top)); display: flex; gap: 4px; pointer-events: none; }
.ss-seg { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.28); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ss-seg i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #f0d898, var(--gold-2)); }
.ss-seg.done i { transform: scaleX(1); }
/* count + play/pause */
.ss-top { position: absolute; z-index: 4; left: 12px; top: calc(26px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; }
.ss-top .m-count { position: static; }
.ss-toggle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.ss-toggle:hover { background: rgba(0,0,0,.65); transform: scale(1.06); }
.m-stage.paused .ss-toggle { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); border-color: transparent; }
.m-nav { z-index: 4; transition: background .3s, transform .3s var(--ease); }
.m-nav:hover { background: rgba(255,255,255,.3); }
@media (min-width: 960px) { .ss-bar { top: 14px; right: 70px; } .ss-top { top: 26px; } }
.m-thumbs button { transition: opacity .3s, transform .3s var(--ease), border-color .3s; }


/* ===================== v49: mixed video + photo posts (video first) ===================== */
.ss-imgs > .ss-vid { grid-area: 1 / 1; --vh-max: 62svh; }
@media (min-width: 960px) { .ss-imgs > .ss-vid { --vh-max: calc(100svh - 160px); } }
.m-stage.on-video .ss-toggle { opacity: .4; pointer-events: none; }
.m-stage.on-video::after { display: none; }
.m-stage.on-video .m-nav { top: auto; bottom: 18px; translate: none; }
.ss-seg.v i { background: linear-gradient(90deg, #fff, #f0d898); }
.m-thumbs button { position: relative; }
.th-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(7,13,34,.35); }
.th-play svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--on-gold); }

/* ===================== v50: every phone — small, foldable, dual-screen ===================== */
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
.filters > *, .filters select, .search, .search input { min-width: 0; }
.filters select { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.story.side { grid-template-columns: 96px minmax(0, 1fr); }
.brand-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1, h2, h3, .hero-title { overflow-wrap: break-word; hyphens: manual; }
.tag, .meta .tag { font-size: .7rem; }
.dock .dk-lb { font-size: .68rem; }

/* compact phones (iPhone SE / mini, 320–374px) */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .brand-logo { width: 44px; height: 26px; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 1rem; }
  .story.side { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .story.main .meta, .story.main h3 { margin-left: 18px; margin-right: 18px; }
  .story.main p { margin: 10px 18px 20px; }
  .card .meta { margin: 14px 16px 6px; } .card h3 { margin: 0 16px 18px; font-size: 1.06rem; }
  .ach-body { padding: 16px 16px 20px; }
  .ach-body strong { font-size: 1.1rem; }
  .filters { grid-template-columns: 1fr; }
  .filters #cat, .filters .search { grid-column: auto; }
  .sh-btn { width: 40px; height: 40px; }
  .share-bar { padding: 12px; }
  .m-text { padding-left: 18px !important; padding-right: 18px !important; }
  .post-text, .post-text p, .post-text li { font-size: 1.02rem; }
}
/* foldable cover screens & very narrow (Galaxy Z Fold outer ≈ 280–344px) */
@media (max-width: 344px) {
  :root { --gutter: 14px; }
  .utility .u-left, .utility time { display: none; }
  .hero-title { font-size: 2.15rem; }
  .btn-gold, .btn-line { padding-left: 18px; padding-right: 18px; }
  h2 { font-size: 1.75rem; }
  .dock { width: calc(100% - 16px); bottom: calc(8px + env(safe-area-inset-bottom)); padding: 5px; border-radius: 22px; }
  .dock a { min-height: 52px; }
  .dock .dk-ic { width: 40px; height: 30px; }
  .dk-ind { border-radius: 999px; }
  .dock .dk-lb { font-size: .64rem; letter-spacing: 0; }
  .seg button { font-size: .74rem; padding: 10px 4px; }
  .ach-areas button { font-size: .72rem; }
  .socials { grid-template-columns: 1fr; }
  .video-grid { gap: 10px; }
  .v-body { padding: 12px 10px; } .v-body p { font-size: .9rem; }
  .gallery { gap: 8px; }
  .pager { gap: 6px; }
  .sh-row { gap: 6px; } .sh-btn { width: 38px; height: 38px; }
  .to-top { right: 10px; width: 42px; height: 42px; }
}
/* large phones (Pro Max / Plus, 414px+) keep generous spacing */
@media (min-width: 414px) and (max-width: 599px) { :root { --gutter: 22px; } }

/* foldables opened (≈ 600–900px, near-square): use the width, keep reading line comfortable */
@media (min-width: 600px) and (max-width: 959px) {
  .lead-stories { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .story.main h3 { font-size: 1.6rem; }
  .post-text { max-width: 640px; }
  .feed, #feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock { width: min(560px, calc(100% - 48px)); }
}
@media (min-width: 600px) and (max-width: 959px) and (min-aspect-ratio: 4/5) {
  .hero-portrait img { max-height: 70svh; width: auto; margin-inline: auto; }
}
/* landscape phones: short viewport */
@media (max-height: 500px) and (orientation: landscape) {
  .dock { bottom: 6px; padding: 4px; } .dock a { min-height: 44px; } .dock .dk-lb { display: none; }
  .ss-imgs > img { max-height: 78svh; }
  .m-video { --vh-max: 80svh; }
}

/* dual-screen / hinge devices (Surface Duo, Galaxy Fold spanned): keep content off the hinge */
@media (horizontal-viewport-segments: 2) {
  :root { --hinge-l: env(viewport-segment-right 0 0, 50vw); --hinge-r: env(viewport-segment-left 1 0, 50vw); }
  .modal[open] { display: grid !important; grid-template-columns: var(--hinge-l) calc(var(--hinge-r) - var(--hinge-l)) 1fr; }
  .modal[open] .modal-body { grid-column: 1 / -1; display: grid; grid-template-columns: var(--hinge-l) calc(var(--hinge-r) - var(--hinge-l)) 1fr; height: 100%; }
  .modal[open] .m-media { grid-column: 1; height: 100%; overflow: hidden; }
  .modal[open] .m-text { grid-column: 3; overflow-y: auto; }
  .dock { left: calc(var(--hinge-r) + (100vw - var(--hinge-r)) / 2); width: min(420px, calc(100vw - var(--hinge-r) - 24px)); }
}
@media (vertical-viewport-segments: 2) {
  .modal[open] .m-media { max-height: env(viewport-segment-bottom 0 0, 50vh); }
}
@media (max-width: 374px) { .seg button { white-space: normal; line-height: 1.15; font-size: .76rem; padding: 8px 4px; min-height: 46px; } }
.v-body time { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 374px) {
  .v-body time { font-size: .56rem; letter-spacing: .06em; padding: 3px 6px; }
  .v-body p { -webkit-line-clamp: 2; font-size: .88rem; }
  .v-card .play { width: 32px; height: 32px; top: 8px; right: 8px; }
  .v-card .play svg { width: 14px; height: 14px; }
}


/* ===================== v54: premium display serif ===================== */
:root { --serif: "Playfair Display", "Times New Roman", Georgia, serif; }
h1, h2, h3, .hero-title, .page-title, .f-motto p, .brand-text strong { font-feature-settings: "lnum", "kern", "liga"; font-optical-sizing: auto; }
.hero-title { font-weight: 600; letter-spacing: -.015em; line-height: 1.02; }
.hero-title em, .hero-title i { font-weight: 500; }
h2 { font-weight: 600; letter-spacing: -.012em; line-height: 1.1; }
.card h3, .story h3, .hl-body h3, .ach-body strong, .m-text h3, .v-body p, .g-txt, .latest-item span { font-weight: 600; letter-spacing: -.005em; }
.card h3, .story.side h3 { line-height: 1.28; }
.m-text h3 { line-height: 1.2; letter-spacing: -.01em; }
.brand-text strong { font-weight: 700; letter-spacing: .01em; }
.f-motto p { font-weight: 500; font-style: italic; }


/* ===================== v58: cinematic video reel hero + roles ===================== */
.hero-reel { position: absolute; inset: 0; overflow: hidden; background: #070d22; }
.reel-frame { position: absolute; inset: -4%; background: center / cover no-repeat; opacity: 0; transform-origin: var(--ox, 50%) var(--oy, 40%);
  filter: saturate(.85) contrast(1.05) brightness(.8); transition: opacity 1.6s ease; }
.reel-frame.live { opacity: 1; animation: reelPush 7s linear both; }
.reel-frame.out { opacity: 0; }
@keyframes reelPush { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
/* navy duotone so the portrait and name stay the hero */
.hero-tint { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(20,40,110,.15), rgba(7,13,34,.55) 70%),
    linear-gradient(180deg, rgba(7,13,34,.82) 0%, rgba(11,22,64,.55) 35%, rgba(7,13,34,.78) 72%, rgba(7,13,34,.97) 100%); }
.hero-tint::after { content: ""; position: absolute; inset: 0; background: rgba(18,38,110,.35); mix-blend-mode: color; }
.hero-sweep { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(105deg, transparent 35%, rgba(214,180,103,.10) 48%, transparent 60%); background-size: 250% 100%; animation: sweep 9s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.hero-glow { z-index: 1; mix-blend-mode: screen; opacity: .8; }
.hero-flag { z-index: 2; }
.hero-fade { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .reel-frame.live { animation: none; } .hero-sweep { animation: none; } }

.hero-roles { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-roles li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .02em; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(214,180,103,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-roles li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #f0d898, var(--gold)); box-shadow: 0 0 8px rgba(214,180,103,.8); flex: none; }
.hero-roles li:first-child { background: linear-gradient(135deg, rgba(240,216,152,.22), rgba(184,145,58,.18)); border-color: rgba(214,180,103,.6); }
@media (max-width: 374px) { .hero-roles li { font-size: .72rem; padding: 7px 11px; } }
@media (min-width: 960px) { .hero-roles { gap: 10px 12px; margin-bottom: 34px; } .hero-roles li { font-size: .88rem; padding: 9px 16px; } }
.f-roles { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--gold-2); font: 600 .82rem/1.4 var(--sans); }
.f-roles li + li::before { content: "\b7 "; margin-right: 14px; color: rgba(255,255,255,.35); }
.hero-roles { flex-direction: row !important; align-items: center; }
.hero-roles li { width: auto !important; flex: none; margin: 0 !important; }
.hero-roles li::before, .hero-roles li + li::before { content: "" !important; width: 6px; height: 6px; margin: 0 !important; border-radius: 50%; background: linear-gradient(135deg, #f0d898, var(--gold)); }
.hero-tint { background:
    radial-gradient(70% 55% at 50% 40%, rgba(20,40,110,0) 0%, rgba(7,13,34,.45) 75%),
    linear-gradient(180deg, rgba(7,13,34,.6) 0%, rgba(11,22,64,.28) 30%, rgba(11,22,64,.35) 55%, rgba(7,13,34,.85) 82%, rgba(7,13,34,.98) 100%); }
.hero-tint::after { background: rgba(22,44,120,.42); }
.reel-frame { filter: saturate(.9) contrast(1.08) brightness(.92); }


/* ===================== v60: biography hero = same cinematic reel ===================== */
.page-hero { background: #070d22; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .page-hero-grid, .page-hero-inner, .page-portrait { position: relative; z-index: 2; }
.page-hero::after { z-index: 1; }
.page-hero .page-title { margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.page-hero .hero-roles { margin-bottom: 18px; }
.page-hero .crumbs { position: relative; z-index: 2; }
.page-lead { color: rgba(255,255,255,.82); }
.page-portrait img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
/* biography body: framed cards */
.bio-portrait { border-radius: var(--card-r); overflow: hidden; box-shadow: var(--lift); border: 1px solid var(--card-bd); }
.factsheet { background: var(--bg-2); border: 1px solid var(--card-bd); border-radius: var(--card-r); box-shadow: var(--lift); padding: 6px 18px; }
.factsheet > div:last-child { border-bottom: 0; }
.tab-panel { background: var(--bg-2); border: 1px solid var(--card-bd); border-radius: var(--card-r); box-shadow: var(--lift); padding: 24px 22px; }
@media (max-width: 959px) { .bio-aside .bio-portrait { display: none; } }


/* ===================== v61: biography — animated, premium ===================== */
/* hero */
.page-hero { min-height: min(92svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.bio-name { font-size: clamp(2.5rem, 10vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.bio-name .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.bio-name .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s cubic-bezier(.2,.8,.2,1) forwards; }
.bio-name .w:nth-child(2) > span { animation-delay: .12s; }
.bio-name .w:nth-child(3) > span { animation-delay: .24s; font-style: italic; color: #e3c784; }
@keyframes wordUp { to { transform: none; } }
.page-hero .hero-roles li { opacity: 0; animation: chipIn .7s var(--ease) forwards; }
.page-hero .hero-roles li:nth-child(1) { animation-delay: .5s; } .page-hero .hero-roles li:nth-child(2) { animation-delay: .62s; } .page-hero .hero-roles li:nth-child(3) { animation-delay: .74s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.page-lead { opacity: 0; animation: chipIn .8s .9s var(--ease) forwards; font-family: var(--read); font-size: 1.08rem; }
.page-portrait { perspective: 900px; }
.page-portrait img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); animation: portraitIn 1.2s .2s var(--ease) both; }
@keyframes portraitIn { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-particles { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 30%, #f0d898 50%, transparent 51%), radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 22%, #e3c784 50%, transparent 51%), radial-gradient(1px 1px at 64% 58%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 34%, #f0d898 50%, transparent 51%), radial-gradient(1px 1px at 90% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 86%, #e3c784 50%, transparent 51%), radial-gradient(1px 1px at 54% 90%, #fff 50%, transparent 51%);
  animation: drift 18s linear infinite; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-60px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #e3c784; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 959px) { .scroll-cue { display: none; } .page-hero { min-height: 0; } }

/* factsheet: glass ID card that floats over the hero edge */
.bio { position: relative; }
.factsheet { position: relative; overflow: hidden; padding: 8px 20px; }
.factsheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #f0d898, var(--gold), #14235a); }
.factsheet div { transition: background .3s; }
.factsheet div:hover { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.factsheet dd { font-weight: 600; color: var(--ink); }
@media (min-width: 960px) { .bio-aside { position: relative; margin-top: -140px; z-index: 3; } .bio-aside .bio-portrait { display: none; } .factsheet { position: sticky; top: 110px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }

/* tabs: segmented pills with a sliding gold indicator */
.tabs { position: relative; gap: 4px; border: 1px solid var(--card-bd); border-radius: 999px; padding: 5px; margin: 6px 0 22px; background: var(--bg-2); box-shadow: var(--lift); }
.tabs button { z-index: 1; border-radius: 999px; padding: 10px 16px; min-height: 42px; transition: color .3s; }
.tabs button::after { display: none; }
.tabs button.on { color: var(--on-gold); }
.tab-ind { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: linear-gradient(135deg, #f0d898, var(--gold)); box-shadow: 0 6px 16px -6px rgba(184,145,58,.8);
  transition: transform .5s cubic-bezier(.3,1.3,.4,1), width .4s var(--ease); z-index: 0; }
/* panel: slide + stagger */
.tab-panel { position: relative; overflow: hidden; }
.tab-panel::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 200px; height: 150px; background: url("../img/logo-kn-mark.svg?v=5") no-repeat center / contain; opacity: .05; pointer-events: none; }
.tab-panel > * { animation: none; }
.tab-panel.enter h3 { animation: panelIn .6s var(--ease) both; }
.tab-panel.enter p, .tab-panel.enter li, .tab-panel.enter .honour { animation: panelIn .6s var(--ease) both; animation-delay: calc(.08s + var(--k, 0) * .05s); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 1.6rem; font-weight: 600; }
.tab-panel p { font-family: var(--read); font-size: 1.06rem; line-height: 1.75; }
.honour { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.honour:hover { transform: translateY(-3px); box-shadow: var(--lift-h); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }

/* motto band */
.bio-quote { position: relative; margin: 72px 0 24px; padding: 64px 0; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, #1b2f75 0%, #0b1430 55%, #070d22 100%); }
.bio-quote::before { content: "\201c "; position: absolute; left: 4%; top: -40px; font: 700 14rem/1 var(--serif); color: rgba(214,180,103,.14); }
.bio-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(214,180,103,.10) 48%, transparent 60%); background-size: 250% 100%; animation: sweep 9s ease-in-out infinite; }
.bio-quote p { position: relative; z-index: 1; margin: 0; font: italic 600 clamp(1.6rem, 5.4vw, 2.9rem)/1.18 var(--serif); max-width: 860px; }

/* timeline: self-drawing line, lit milestones, alternating cards on desktop */
.timeline-title { margin-top: 8px; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; }
.chrono { --prog: 0; padding: 10px 0 20px; }
.chrono::before { left: 11px; width: 2px; background: var(--line); }
.chrono::after { content: ""; position: absolute; left: 11px; top: 6px; width: 2px; height: calc((100% - 12px) * var(--prog)); background: linear-gradient(180deg, #f0d898, var(--gold)); box-shadow: 0 0 12px rgba(214,180,103,.6); }
.chrono li { padding: 0 0 18px 42px; }
.chrono li::before { display: none; }
.chrono .dot { position: absolute; left: 4px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s, transform .4s var(--ease); }
.chrono li.lit .dot { border-color: var(--gold); background: radial-gradient(circle, #f0d898 0 35%, var(--bg-2) 40%); transform: scale(1.1); }
.chrono li.now .dot { background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 22%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--gold) 0%, transparent); } }
.c-card { display: block; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.chrono li.lit .c-card { border-color: color-mix(in srgb, var(--gold) 35%, var(--card-bd)); }
.c-card:hover { transform: translateY(-3px); box-shadow: var(--lift-h); }
.chrono .y { font: 700 1.5rem/1.1 var(--serif); color: var(--gold-text); margin-bottom: 4px; }
.chrono .t { font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
.chrono li.now .c-card { background: linear-gradient(135deg, #14235a, #0b1430); border-color: transparent; }
.chrono li.now .y { color: #e3c784; } .chrono li.now .t { color: rgba(255,255,255,.88); }
@media (min-width: 960px) {
  .chrono::before, .chrono::after { left: 50%; margin-left: -1px; }
  .chrono li { width: 50%; padding: 0 44px 26px 0; }
  .chrono li.r { margin-left: 50%; padding: 0 0 26px 44px; }
  .chrono li.l .dot { left: auto; right: -8px; }
  .chrono li.r .dot { left: -8px; }
  .chrono li.l .c-card { text-align: right; }
  .chrono li { margin-top: -40px; } .chrono li:first-child { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .bio-name .w > span, .page-hero .hero-roles li, .page-lead, .page-portrait img { animation: none; opacity: 1; transform: none; } .hero-particles, .bio-quote::after { animation: none; } }

/* ===================== cards: professional & tidy (achievements / groundwork) ===================== */
.ach-list > li { display: flex; }
.ach-item { display: flex !important; flex-direction: column; width: 100%; height: 100%; }
.ach-body { flex: 1; display: flex; flex-direction: column; }
.ach-body strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.ach-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.ach-desc.clamp { -webkit-line-clamp: 2; }
.ach-desc:empty { display: none; }
.ach-more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); width: 100%; justify-content: space-between; font-size: .84rem; letter-spacing: .02em; }
.ach-body > .ach-desc + .ach-more, .ach-body > strong + .ach-more { margin-top: auto; }
.ach-tag { font-size: .64rem; padding: 4px 10px; }


/* ===================== v62: brief posts qualified + related coverage ===================== */
.card { position: relative; }
.brief-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 700 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(7,13,34,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
.card.is-brief h3 { font-size: 1.04rem; }
.brief-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; padding: 12px 14px; border-radius: 14px; font: 500 .86rem/1.45 var(--sans); color: var(--muted);
  background: color-mix(in srgb, var(--gold) 8%, var(--bg)); border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); }
.brief-note span { padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); font-weight: 800; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.related { margin: 34px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h4 { margin: 0 0 16px; font: 800 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rel-card { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); color: inherit; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--lift-h); }
.rel-img { position: relative; aspect-ratio: 16/10; background: var(--navy-700); overflow: hidden; }
.rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-play, .rel-n { position: absolute; right: 8px; bottom: 8px; font: 700 .7rem/1 var(--sans); color: #fff; padding: 5px 8px; border-radius: 999px; background: rgba(7,13,34,.65); font-style: normal; }
.rel-play { width: 26px; height: 26px; padding: 0; background: linear-gradient(135deg, #f0d898, var(--gold)) ; clip-path: none; }
.rel-play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--on-gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.rel-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 14px; }
.rel-body time { font: 600 .62rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rel-body b { font: 600 .9rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 960px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lining numerals everywhere for the display serif */
body, .chrono .y, .ach-year, .honour .yr, h1, h2, h3, h4, b, strong, time { font-variant-numeric: lining-nums; }
@media (min-width: 600px) { .chrono { display: block !important; } .chrono::before { display: block !important; } .chrono li { border-left: 0 !important; } }
@media (min-width: 960px) { .chrono li.l .c-card { margin-left: auto; } .c-card { max-width: 460px; } .chrono li.r .c-card { margin-right: auto; } }
@media (min-width: 960px) { .page-portrait img { max-height: 78svh; width: auto; } }


/* ===================== v65: biography tabs — one tidy row ===================== */
.tabs { flex-wrap: nowrap !important; overflow-x: auto !important; width: max-content; max-width: 100%; scroll-behavior: smooth; -webkit-mask-image: none; }
.tabs button { flex: none !important; white-space: nowrap; }
.tab-ind { top: 5px !important; bottom: auto !important; height: calc(100% - 10px); }
@media (min-width: 960px) { .tabs { margin-left: 0; } .tabs button { padding: 10px 18px; font-size: .88rem; } }
.brief-tag, .brief-note { display: none !important; }


/* ===================== v68: Achievements & Policy — calm, scannable ===================== */
#pencapaian .seg { margin-bottom: 14px; }
.ach-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.ach-select { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 38px 0 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--shadow-sm); cursor: pointer; }
.ach-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
.ach-select span { font: 700 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ach-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font: 700 .95rem/1 var(--sans); padding: 0; cursor: pointer; outline: none; }
.ach-select:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent); }
.ach-select[hidden] { display: none; }
.ach-count { margin-left: auto; font: 600 .82rem/1 var(--sans); color: var(--muted); }
.ach-years, .ach-areas, .ach-figures { display: none !important; }

/* phones: compact list rows — thumbnail left, text right, whole row tappable */
@media (max-width: 599px) {
  .ach-list { gap: 10px; }
  .ach-item { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto; align-items: stretch; border-radius: 16px; }
  .ach-img { order: 0; grid-column: 1; grid-row: 1; aspect-ratio: auto; height: 100%; min-height: 112px; }
  .ach-img::after { background: linear-gradient(180deg, transparent 55%, rgba(7,13,34,.55)); }
  .ach-body { grid-column: 2; grid-row: 1; padding: 12px 14px 12px; gap: 5px; }
  .ach-year { top: auto; bottom: 8px; left: 8px; padding: 4px 7px; font-size: .62rem !important; letter-spacing: .04em !important; }
  .ach-year small { display: none !important; }
  .ach-item:not(:has(.ach-img)) { grid-template-columns: minmax(0, 1fr); }
  .ach-item:not(:has(.ach-img)) .ach-body { grid-column: 1; }
  .ach-tag { padding: 3px 8px; font-size: .58rem; }
  .ach-body strong { font-size: 1rem; line-height: 1.28; -webkit-line-clamp: 3; }
  .ach-desc, .ach-desc.clamp { display: none; }
  .ach-more { display: none; }
  .ach-item::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 1.8px solid var(--gold); border-top: 1.8px solid var(--gold); transform: rotate(45deg); opacity: .8; }
  .ach-body { padding-right: 28px; }
  .ach-controls { gap: 8px; }
  .ach-count { width: 100%; margin: 2px 0 0; }
}
@media (max-width: 599px) { .ach-select { flex: 1 1 0; min-width: 0; padding-right: 30px; } .ach-select select { width: 100%; min-width: 0; } .ach-select span { font-size: .6rem; } }


/* ===================== v70: Achievements tabs — refined segmented pills ===================== */
#achTabs { position: relative; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 560px; padding: 5px; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); overflow: hidden; }
#achTabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 8px; border-radius: 13px; background: none !important;
  color: var(--muted); font: 600 .84rem/1.15 var(--sans); letter-spacing: .005em; white-space: normal; text-align: center; box-shadow: none !important; transition: color .35s var(--ease); }
#achTabs button:hover { color: var(--ink); }
#achTabs button.on { color: var(--on-gold); font-weight: 700; }
#achTabs .seg-ind { position: absolute; left: 5px; top: 5px; bottom: 5px; z-index: 0; border-radius: 13px; width: calc((100% - 10px) / 3);
  background: linear-gradient(140deg, #f0d898 0%, var(--gold-2) 40%, var(--gold) 100%); box-shadow: 0 8px 18px -8px rgba(184,145,58,.9), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .5s cubic-bezier(.3,1.3,.4,1), width .4s var(--ease); }
#achTabs:not(.ready) button.on { background: linear-gradient(140deg, #f0d898, var(--gold)) !important; }
#achTabs button + button::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line); transition: opacity .3s; }
#achTabs button.on::before, #achTabs button.on + button::before { opacity: 0; }
@media (max-width: 374px) { #achTabs button { font-size: .76rem; padding: 6px 4px; } }


/* ===================== v71: every achievement card the same size, text always visible ===================== */
.ach-body strong { -webkit-line-clamp: 2 !important; min-height: calc(2 * 1.3em); }
.ach-desc, .ach-desc.clamp { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important; overflow: hidden; min-height: calc(2 * 1.6em); }
@media (min-width: 600px) {
  .ach-list { grid-auto-rows: 1fr; }
  .ach-item { height: 100%; }
  .ach-img { aspect-ratio: 16/9 !important; flex: none; }
}
@media (max-width: 599px) {
  .ach-item { height: 168px; grid-template-columns: 104px minmax(0, 1fr) !important; overflow: hidden; }
  .ach-img { height: 168px !important; min-height: 0 !important; }
  .ach-body { height: 168px; padding: 12px 30px 12px 14px !important; gap: 6px !important; overflow: hidden; justify-content: flex-start; }
  .ach-body strong { font-size: .98rem !important; line-height: 1.28; min-height: calc(2 * 1.28em); }
  .ach-desc, .ach-desc.clamp { font-size: .84rem; line-height: 1.5; min-height: calc(2 * 1.5em); color: var(--muted); }
  .ach-item:not(:has(.ach-img)) { grid-template-columns: minmax(0, 1fr) !important; }
}


/* ===================== v72: no flashing — the photo stage keeps one fixed height while slides change ===================== */
.m-stage { min-height: 0; contain: layout paint; }
.ss-imgs { height: clamp(240px, 72vw, 62svh); }
.ss-imgs > img { width: 100%; height: 100%; max-height: none; object-fit: contain; backface-visibility: hidden; will-change: opacity, transform; }
@media (min-width: 960px) { .ss-imgs { height: calc(100svh - 160px); } }
@media (max-height: 500px) and (orientation: landscape) { .ss-imgs { height: 78svh; } }

#pencapaian .seg { margin-bottom: 24px; }
.ach-controls { display: none !important; }


/* ===================== v74: branded cover for milestones without a photo ===================== */
.ach-cover { display: flex !important; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 18px; color: #fff; text-align: left;
  background: url("../img/logo-kn-mark.svg?v=5") no-repeat right -18px top -10px / 46% auto, radial-gradient(120% 120% at 20% 0%, #22398a 0%, #0f1c4a 55%, #070d22 100%) !important; }
.ach-cover::after { display: none !important; }
.ach-cover b { font: 700 clamp(1.6rem, 6vw, 2.4rem)/1 var(--serif); color: #e3c784; font-variant-numeric: lining-nums; }
.ach-cover i { font: 600 .74rem/1.3 var(--sans); font-style: normal; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.ach-item:has(.ach-cover) .ach-year { display: none; }
@media (max-width: 599px) { .ach-cover { padding: 10px; background-size: 70% auto, auto !important; } .ach-cover b { font-size: 1.35rem; } .ach-cover i { font-size: .6rem; } }


/* ===================== v74: press coverage ===================== */
.press { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--gold) 5%, var(--bg)) 100%); }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.press-list > li { display: flex; }
.press-card { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; border-radius: var(--card-r); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.press-card:hover { transform: translateY(-4px); box-shadow: var(--lift-h); border-color: color-mix(in srgb, var(--gold) 45%, var(--card-bd)); }
.press-img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-700); }
.press-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.press-card:hover .press-img img { transform: scale(1.04); }
.press-img.none { display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, #22398a 0%, #0f1c4a 55%, #070d22 100%); }
.press-img.none b { font: 700 1.5rem/1.1 var(--serif); color: #e3c784; text-align: center; padding: 0 16px; }
.press-outlet { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; font: 800 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-gold); background: linear-gradient(135deg, #f0d898, var(--gold)); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.press-img.none .press-outlet { display: none; }
.press-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.press-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 700 .66rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press-meta span { color: var(--gold-text); }
.press-body strong { font: 600 1.1rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.3em); }
.press-sum { color: var(--muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.55em); }
.press-more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; font: 700 .82rem/1 var(--sans); color: var(--gold-text); }
@media (min-width: 600px) { .press-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .press-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }


/* ===================== v75: no year badge on photos — date sits beside the tag ===================== */
.ach-year { display: none !important; }
.ach-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ach-meta .ach-tag { align-self: auto; }
.ach-meta time { font: 600 .68rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 599px) { .ach-meta time { font-size: .6rem; } }

a.ach-item { text-decoration: none; color: inherit; }
@media (max-width: 599px) { .ach-cover { background-position: right 8px top 10px, 0 0 !important; background-size: 42% auto, auto !important; } }


/* ===================== v78: hero "Khaled" in gold + cinematic splash with the Jalur Gemilang ===================== */
.hero-title em.gold, .bio-name .gold { font-style: italic; color: #e3c784; }
.bio-name .w:nth-child(3) > span { font-style: italic; color: #e3c784; }

.preloader { overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #14245e 0%, #0a1438 45%, #050a1c 100%); display: block; }
.preloader > img { display: none; }
.pl-rays { position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: .22;
  background: repeating-conic-gradient(from 0deg, rgba(214,180,103,.0) 0deg 7deg, rgba(214,180,103,.55) 7deg 8deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 42%); mask-image: radial-gradient(circle, #000 0%, transparent 42%);
  animation: plSpin 24s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-glow { position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,180,103,.35), rgba(214,180,103,0) 62%); animation: plPulse 2.4s ease-in-out infinite; }
@keyframes plPulse { 50% { transform: scale(1.12); opacity: .7; } }
.pl-stars { position: absolute; inset: 0; opacity: .8;
  background-image: radial-gradient(1.5px 1.5px at 14% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 78%, #f0d898 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 18%, #f0d898 50%, transparent 51%), radial-gradient(1px 1px at 86% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 60%, #f0d898 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 10%, #fff 50%, transparent 51%);
  animation: plTwinkle 3s ease-in-out infinite alternate; }
@keyframes plTwinkle { to { opacity: .35; } }
.pl-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; z-index: 2; }

/* waving flag */
.pl-flag { position: relative; padding-left: 8px; opacity: 0; transform: translateY(-24px) scale(.92); animation: plDrop 1s .1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes plDrop { to { opacity: 1; transform: none; } }
.pl-pole { position: absolute; left: 0; top: -10px; width: 4px; height: 150%; border-radius: 2px; background: linear-gradient(90deg, #8a6a1f, #f0d898 50%, #8a6a1f); }
.pl-pole::before { content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 12px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, #d6b467 55%, #8a6a1f); box-shadow: 0 0 14px rgba(240,216,152,.8); }
.pl-flag .flag { --w: min(64vw, 260px); display: flex; width: var(--w); height: calc(var(--w) / 2); filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.pl-flag .flag span { flex: 1; height: 100%; background: url("../img/jalur-gemilang.svg") no-repeat; background-size: var(--w) 100%;
  background-position: calc(var(--i) * var(--w) / var(--n) * -1) 0; transform-origin: 0 50%;
  animation: plWave 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -.07s); }
.pl-flag .flag span::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.16), rgba(0,0,0,.14)); animation: shade 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -.07s); }
@keyframes plWave { 0%, 100% { transform: translateY(calc(var(--i) * .16px)) skewY(0deg); } 50% { transform: translateY(calc(var(--i) * .16px + 8px)) skewY(1.5deg); } }

/* logo with a light sweep */
.pl-logo { position: relative; width: 132px; overflow: hidden; border-radius: 12px; opacity: 0; transform: scale(.8); animation: plPop .8s .45s cubic-bezier(.3,1.4,.4,1) forwards; }
.pl-logo img { display: block; width: 100%; }
.pl-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 62%); transform: translateX(-120%); animation: plShine 1.4s 1s ease-in-out infinite; }
@keyframes plPop { to { opacity: 1; transform: none; } }
@keyframes plShine { 60%, 100% { transform: translateX(120%); } }

/* name, word by word */
.pl-name { margin: 0; font: 600 clamp(1.1rem, 4.6vw, 1.6rem)/1.25 var(--serif); color: #fff; letter-spacing: .01em; }
.pl-name span { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px); animation: plWord .7s cubic-bezier(.2,.8,.2,1) forwards; }
.pl-name span:nth-child(1) { animation-delay: .75s; } .pl-name span:nth-child(2) { animation-delay: .87s; }
.pl-name span:nth-child(3) { animation-delay: .99s; } .pl-name span:nth-child(4) { animation-delay: 1.11s; }
.pl-name .g { color: #e3c784; font-style: italic; }
@keyframes plWord { to { opacity: 1; transform: none; filter: none; } }

/* progress: red–white–blue–yellow sweep (flag colours) */
.pl-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.pl-bar::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); animation: plLoad 1.6s .3s cubic-bezier(.6,0,.2,1) forwards;
  background: linear-gradient(90deg, #cc0001, #fff 30%, #010066 60%, #ffcc00); }
@keyframes plLoad { to { transform: none; } }

/* exit: curtains part */
.pl-curtain { position: absolute; left: 0; right: 0; height: 50%; z-index: 3; background: #050a1c; transform: scaleY(0); pointer-events: none; }
.pl-curtain.top { top: 0; transform-origin: top; } .pl-curtain.bot { bottom: 0; transform-origin: bottom; }
.preloader.open { background: transparent; transition: background .1s .35s; }
.preloader.open .pl-stage { animation: plOut .5s ease-in forwards; }
.preloader.open .pl-rays, .preloader.open .pl-glow, .preloader.open .pl-stars { opacity: 0; transition: opacity .4s; }
@keyframes plOut { to { opacity: 0; transform: scale(1.06); filter: blur(4px); } }
.preloader.done { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .pl-rays, .pl-glow, .pl-stars, .pl-flag .flag span, .pl-flag .flag span::after, .pl-shine { animation: none; } .pl-flag, .pl-logo, .pl-name span { animation: none; opacity: 1; transform: none; filter: none; } }
.preloader.open .pl-curtain { animation: plCurtain .85s .3s cubic-bezier(.7,0,.2,1) forwards; background: linear-gradient(180deg, #0a1438, #050a1c); }
.preloader.open .pl-curtain.bot { background: linear-gradient(0deg, #0a1438, #050a1c); }
.pl-curtain.top::after, .pl-curtain.bot::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #e3c784, transparent); }
.pl-curtain.top::after { bottom: 0; } .pl-curtain.bot::after { top: 0; }
@keyframes plCurtain { 0%, 30% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

.pl-name span { filter: none !important; }
@keyframes plWord { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }


/* ===================== v80: pager shows no totals; result counts hidden ===================== */
#resultCount, .ach-count { display: none !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pg-cur { min-width: 112px; height: 48px; padding: 0 18px; display: inline-grid; place-items: center; border-radius: 999px; font: 700 .9rem/1 var(--sans); letter-spacing: .02em;
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--shadow-sm); white-space: nowrap; }
.pager ol, .pg-status { display: none !important; }


/* ===================== v81: splash without the flag, paced for ~3s ===================== */
.pl-flag { display: none !important; }
.pl-stage { gap: 26px; }
.pl-logo { width: 168px; animation: plPop 1.1s .25s cubic-bezier(.3,1.4,.4,1) forwards; }
.pl-shine { animation: plShine 1.8s 1.1s ease-in-out infinite; }
.pl-name span:nth-child(1) { animation-delay: .9s; } .pl-name span:nth-child(2) { animation-delay: 1.1s; }
.pl-name span:nth-child(3) { animation-delay: 1.3s; } .pl-name span:nth-child(4) { animation-delay: 1.5s; }
.pl-name span { animation-duration: .9s; }
.pl-bar { width: 180px; }
.pl-bar::after { animation: plLoad 2.7s .4s cubic-bezier(.5,0,.2,1) forwards; }
.pl-logo::after { content: ""; position: absolute; inset: -18px; border-radius: 22px; border: 1px solid rgba(227,199,132,.0); animation: plRing 2.4s 1s ease-out infinite; pointer-events: none; }
@keyframes plRing { 0% { border-color: rgba(227,199,132,.55); transform: scale(.9); } 100% { border-color: rgba(227,199,132,0); transform: scale(1.35); } }
.pl-logo { overflow: visible; }
.pl-logo img { border-radius: 12px; }
.pl-logo .pl-shine { border-radius: 12px; overflow: hidden; }
.pl-shine { transform: none !important; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) no-repeat; background-size: 300% 100%; background-position: 150% 0; animation: plShine2 1.8s 1.1s ease-in-out infinite !important; }
@keyframes plShine2 { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }

/* v82: breathing room between the news filters and the first card */
#berita .toolbar { margin-bottom: 28px !important; padding-bottom: 16px !important; }
#feed { margin-top: 8px; }
@media (min-width: 960px) { #berita .toolbar { margin-bottom: 36px !important; } }

/* v83: blog-style standfirst on news cards */
.card h3 { margin-bottom: 10px; }
.card-ex { margin: 0 18px 20px; color: var(--muted); font-family: var(--read); font-size: .94rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story.main p { -webkit-line-clamp: 3; }
@media (max-width: 374px) { .card-ex { margin: 0 16px 18px; font-size: .9rem; } }

/* v84: never show how many photos a post has */
.rel-n, .badge-count, .m-count, .ss-top .m-count { display: none !important; }

/* v85: news filters without search — category full row, year + type below */
.filters { grid-template-columns: 1fr 1fr !important; }
.filters #cat { grid-column: 1 / -1 !important; }
@media (min-width: 600px) { .filters { grid-template-columns: 2fr 1fr 1fr !important; } .filters #cat { grid-column: auto !important; } }
@media (min-width: 960px) { .filters { grid-template-columns: 280px 170px 170px !important; justify-content: start; } }

/* v86: pager = arrows only */
.pg-cur { display: none !important; }
.pager { gap: 18px; }
.pg-step span { display: none !important; }
.pg-step { width: 52px; height: 52px; padding: 0 !important; justify-content: center; }


/* ===================== v87: site-wide search ===================== */
.search-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; flex: none; transition: background .3s; }
.search-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
@media (max-width: 959px) { .search-btn { margin-right: 2px; } }
body.search-open { overflow: hidden; }
.search-ov { position: fixed; inset: 0; z-index: 120; background: rgba(4,8,22,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.search-ov.show { opacity: 1; }
.search-ov[hidden] { display: none; }
.sv-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transform: translateY(14px); transition: transform .35s var(--ease); }
.search-ov.show .sv-panel { transform: none; }
@media (min-width: 960px) { .sv-panel { inset: 6vh auto auto 50%; width: min(760px, 92vw); max-height: 86vh; margin-left: calc(min(760px, 92vw) / -2); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); overflow: hidden; } }
.sv-bar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; border-bottom: 1px solid var(--line); color: var(--gold-text); }
.sv-bar input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--ink); font: 500 1.08rem/1 var(--sans); outline: none; }
.sv-bar input::placeholder { color: var(--muted); }
.sv-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sv-close { border: 1px solid var(--card-bd); background: var(--bg-2); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 700 .78rem/1 var(--sans); cursor: pointer; }
.sv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 0; }
.sv-chips:empty { display: none; }
.sv-chips::-webkit-scrollbar { display: none; }
.sv-chips button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--card-bd); background: var(--bg-2); color: var(--ink-2); font: 700 .78rem/1 var(--sans); cursor: pointer; }
.sv-chips button.on { background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); border-color: transparent; }
.sv-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.sv-hint { color: var(--muted); text-align: center; padding: 40px 10px; font: 500 .95rem/1.6 var(--sans); }
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; text-decoration: none; color: inherit; background: var(--bg-2); border: 1px solid var(--card-bd); transition: border-color .25s, transform .25s var(--ease); }
.sv-item:hover, .sv-item:focus-visible { border-color: color-mix(in srgb, var(--gold) 50%, var(--card-bd)); transform: translateY(-1px); outline: none; }
.sv-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--navy-700); display: block; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sv-thumb.none { display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, #22398a, #070d22); }
.sv-thumb.none b { font: 700 1.6rem/1 var(--serif); color: #e3c784; }
.sv-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv-meta { display: flex; gap: 10px; align-items: center; font: 700 .62rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sv-meta em { font-style: normal; color: var(--gold-text); }
.sv-text strong { font: 600 .98rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-snip { color: var(--muted); font-size: .84rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-item mark { background: color-mix(in srgb, var(--gold) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sv-more { display: block; margin: 16px auto 0; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--card-bd); background: var(--bg-2); color: var(--ink); font: 700 .86rem/1 var(--sans); cursor: pointer; }

.search-ov { z-index: 2000; }
body.search-open .dock, body.search-open .to-top { opacity: 0; pointer-events: none; }


/* ===================== v89: in-site reader ===================== */
.art-cover { min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: calc(28px + env(safe-area-inset-top)) 22px 22px; color: #fff;
  background: url("../img/logo-kn-mark.svg?v=5") no-repeat right 18px top calc(18px + env(safe-area-inset-top)) / 110px auto, radial-gradient(120% 120% at 20% 0%, #22398a 0%, #0f1c4a 55%, #070d22 100%); }
.art-cover b { font: 700 clamp(2rem, 8vw, 3rem)/1 var(--serif); color: #e3c784; }
.art-cover i { font: 600 .82rem/1.3 var(--sans); font-style: normal; color: rgba(255,255,255,.82); }
@media (min-width: 960px) { .art-cover { min-height: 100%; } }
.art-credit { margin: 30px 0 8px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--card-bd)); }
.art-credit > span { display: block; font: 800 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.art-credit div { display: flex; flex-wrap: wrap; gap: 8px; }
.art-credit a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--card-bd); color: var(--ink); text-decoration: none; font: 700 .8rem/1 var(--sans); }
.art-credit a:hover { border-color: var(--gold); }
.art-credit small { display: block; margin-top: 10px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
button.ach-item, a.press-card { cursor: pointer; text-align: left; font: inherit; }


/* ===================== v91: smooth splash (GPU-only) + calm image reveal ===================== */
.pl-rays { width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.pl-glow, .pl-stars, .pl-logo, .pl-name span, .pl-curtain, .pl-stage { will-change: transform, opacity; backface-visibility: hidden; }
.pl-shine { background: none !important; animation: none !important; overflow: hidden; border-radius: 12px; }
.pl-shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; transform: translateX(0) skewX(-18deg); will-change: transform;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: plShine3 2s 1.1s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes plShine3 { 0% { transform: translateX(0) skewX(-18deg); } 55%, 100% { transform: translateX(380%) skewX(-18deg); } }
.pl-bar::after { will-change: transform; }
/* images: soft fade once decoded (no spinners, no layout shift) */
.thumb img, .ach-img img, .press-img img, .rel-img img, .sv-thumb img, .v-card img, .gallery img, .story .img img { opacity: 0; transition: opacity .45s ease; }
.thumb img.ld, .ach-img img.ld, .press-img img.ld, .rel-img img.ld, .sv-thumb img.ld, .v-card img.ld, .gallery img.ld, .story .img img.ld { opacity: 1; }
.thumb, .ach-img, .press-img, .rel-img, .sv-thumb, .v-card, .story .img { background-color: #121d44; }
/* tabs always on one line */
#achTabs { grid-template-columns: auto auto auto !important; justify-content: space-between; }
#achTabs button { white-space: nowrap !important; padding: 6px clamp(8px, 3vw, 18px) !important; font-size: clamp(.7rem, 3.3vw, .86rem) !important; }
@media (max-width: 344px) { #achTabs button { letter-spacing: -.01em; padding: 6px 7px !important; } }
@media (max-width: 344px) { #achTabs { padding: 4px; } #achTabs button { font-size: .64rem !important; padding: 6px 5px !important; letter-spacing: -.015em; } }

.m-video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }


/* ===================== v96: mega menu ===================== */
.mn-ic { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; pointer-events: none; opacity: 0; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .35s var(--ease); }
.mega.open { opacity: 1; transform: none; pointer-events: auto; }
.mg-inner { display: grid; grid-template-columns: 280px 1fr 1.6fr; gap: 36px; padding: 30px 34px 34px; margin-top: 10px; border-radius: 24px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--card-bd); box-shadow: 0 40px 80px -30px rgba(11,20,48,.45), 0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); }
:root[data-theme="dark"] .mg-inner { background: rgba(10,18,44,.94); box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(214,180,103,.18); }
.mg-inner:has(> .mg-intro + .mg-col.mg-feat:last-child) { grid-template-columns: 300px 1fr; }
.mg-intro h3 { margin: 14px 0 8px; font: 600 1.5rem/1.15 var(--serif); }
.mg-intro p { margin: 0 0 18px; color: var(--muted); font: 400 .95rem/1.55 var(--read); }
.mg-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--on-gold); background: linear-gradient(135deg, #f0d898, var(--gold)); box-shadow: 0 10px 20px -10px rgba(184,145,58,.9); }
.mg-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font: 700 .82rem/1 var(--sans) !important; text-decoration: none; }
.mg-cta::after, .mg-links a::after, .mg-press a::after, .mg-card::after { display: none !important; }
.mg-col h4 { margin: 4px 0 14px; font: 800 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.mg-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.mg-links.big { columns: 1; }
.mg-links a { display: block; padding: 8px 10px !important; margin: 0 0 2px; border-radius: 10px; color: var(--ink) !important; font: 600 .9rem/1.3 var(--sans) !important; text-decoration: none; transition: background .2s, color .2s; break-inside: avoid; }
.mg-links.big a { font: 600 1.15rem/1.3 var(--serif) !important; padding: 12px 12px !important; }
.mg-links a:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-text) !important; }
.mg-feat { display: grid; gap: 12px; align-content: start; }
.mg-row { grid-template-columns: repeat(3, 1fr); }
.mg-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 8px !important; border-radius: 16px; text-decoration: none; color: var(--ink) !important; background: var(--bg); border: 1px solid var(--card-bd); transition: border-color .25s, transform .25s var(--ease); }
.mg-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.mg-row .mg-card, .mg-card.wide { grid-template-columns: 1fr; }
.mg-img { display: block; aspect-ratio: 16/10; border-radius: 11px; overflow: hidden; background: #121d44; }
.mg-img img { width: 100%; height: 100%; object-fit: cover; }
.mg-t { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.mg-t time { font: 700 .62rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mg-t b { font: 600 .95rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-press { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mg-press a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px !important; border-radius: 12px; text-decoration: none; color: var(--ink) !important; }
.mg-press a:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.mg-press em { font: 800 .62rem/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.mg-press b { font: 600 .98rem/1.3 var(--serif); }
.mg-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mg-grid a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; padding: 0 !important; }
.mg-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mg-grid a:hover img { transform: scale(1.06); }
.mg-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-socials a { display: flex !important; align-items: center; gap: 10px; padding: 12px !important; border-radius: 14px; border: 1px solid var(--card-bd); text-decoration: none; color: var(--ink) !important; font: 600 .9rem/1.2 var(--sans) !important; }
@media (min-width: 960px) { #nav a.mg-on { color: var(--gold-text); } #nav a.mg-on::after { transform: scaleX(1); } }
@media (max-width: 959px) { .mega { display: none; } }

/* mobile menu: icon tiles */
@media (max-width: 959px) {
  .nav a { display: grid !important; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; font-size: 1.3rem !important; }
  .nav a .mn-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--gold-2);
    background: rgba(214,180,103,.1); border: 1px solid rgba(214,180,103,.25); }
  .nav a:active .mn-ic { background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); }
}


/* ===================== v97: section rhythm — light and dark each alternate clearly ===================== */
#berita { background: var(--bg); }
#pencapaian { background: #ffffff; }
#media { background: var(--bg); }
#galeri { background: #ffffff; }
#hubungi { background: var(--bg); }
#berita, #pencapaian, #media, #galeri, #hubungi { border-top: 0; }
#pencapaian::before, #galeri::before, #media::before, #hubungi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 55%, transparent), transparent); }
#pencapaian .ach-item, #galeri .gallery > * { box-shadow: 0 1px 2px rgba(11,20,48,.05), 0 14px 34px -18px rgba(11,20,48,.28); }
/* dark theme: deep navy family, alternating, with gold hairlines between */
:root[data-theme="dark"] #berita { background: #070d22; }
:root[data-theme="dark"] #sorotan { background: #040817; }
:root[data-theme="dark"] #pencapaian { background: #0b1430; }
:root[data-theme="dark"] #video { background: #050a1c; }
:root[data-theme="dark"] #media { background: #0b1430; }
:root[data-theme="dark"] #galeri { background: #070d22; }
:root[data-theme="dark"] #hubungi { background: #0b1430; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .ach-item, :root[data-theme="dark"] .press-card, :root[data-theme="dark"] .story.main, :root[data-theme="dark"] .story.side { background: #0e1a3d; border-color: rgba(214,180,103,.14); }
:root[data-theme="dark"] #pencapaian .ach-item, :root[data-theme="dark"] #media .press-card { background: #101e46; }
:root[data-theme="dark"] #video { --line: rgba(214,180,103,.16); }
/* light theme: crisp white cards on warm ivory, navy text */
:root:not([data-theme="dark"]) .card, :root:not([data-theme="dark"]) .press-card, :root:not([data-theme="dark"]) .story.main, :root:not([data-theme="dark"]) .story.side { background: #ffffff; }
:root:not([data-theme="dark"]) #pencapaian .ach-item, :root:not([data-theme="dark"]) #galeri .gallery > * { background: #fbfaf7; }

@media (max-width: 959px) { .nav a .mn-t { min-width: 0; } }
@media (min-width: 960px) { .nav a .mn-t { display: inline; } }

/* v101: side column always fills the height of the main story — no empty gap */
@media (min-width: 600px) {
  .lead-stories { align-items: stretch !important; }
  .lead-side { display: grid !important; grid-auto-rows: 1fr; gap: 14px; height: 100%; }
  .lead-side .story.side:nth-child(-n+3) { display: grid !important; }
  .lead-side .story.side:nth-child(n+4) { display: none !important; }
  .lead-side .story.side { align-items: center; }
}
@media (min-width: 960px) { .lead-side .story.side:nth-child(n+4) { display: grid !important; } }


/* ===================== v102: achievement tabs — compact premium pills ===================== */
#achTabs { display: inline-grid !important; grid-template-columns: repeat(3, auto) !important; justify-content: start !important; gap: 4px;
  width: auto !important; max-width: 100%; padding: 6px !important; border-radius: 999px !important; }
#achTabs button { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px !important; border-radius: 999px !important;
  font: 600 .88rem/1 var(--sans) !important; letter-spacing: .01em; }
#achTabs button svg { flex: none; opacity: .75; transition: opacity .3s; }
#achTabs button.on svg { opacity: 1; }
#achTabs .seg-ind { border-radius: 999px !important; top: 6px !important; bottom: 6px !important; left: 6px !important; }
#achTabs button + button::before { display: none !important; }
#achTabs { background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 92%, var(--gold))); }
:root[data-theme="dark"] #achTabs { background: linear-gradient(180deg, #111f4a, #0b1638); border-color: rgba(214,180,103,.22); }
@media (max-width: 599px) {
  #achTabs { display: grid !important; width: 100% !important; justify-content: stretch !important; }
  #achTabs button { padding: 0 10px !important; font-size: clamp(.68rem, 3.3vw, .84rem) !important; gap: 6px; }
}
@media (max-width: 374px) { #achTabs button svg { display: none; } #achTabs button { padding: 0 6px !important; } }
@media (max-width: 459px) { #achTabs button svg { display: none !important; } #achTabs button { padding: 0 8px !important; gap: 0; } }

/* v104: photos in the post viewer are always shown whole (infographics never cropped) */
.ss-imgs { position: relative; display: block !important; width: 100%; }
.ss-imgs > img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain !important; }
.ss-imgs > img.in { animation-name: kbSoft !important; }
@keyframes kbSoft { from { transform: scale(1.015); } to { transform: scale(1); } }
.m-stage { background: #05070d; }

/* v105: role pills — one column on phones/tablets, one line on desktop */
.hero-roles { display: flex !important; flex-direction: column !important; align-items: flex-start !important; flex-wrap: nowrap !important; gap: 8px !important; }
.hero-roles li { white-space: nowrap; }
@media (min-width: 960px) { .hero-roles { flex-direction: row !important; align-items: center !important; gap: 10px !important; } }


/* ===================== v106: blog-style News (no filters) ===================== */
.lead-stories { margin-bottom: 40px !important; }
.feed-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 9%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--card-bd)); font: 500 .9rem/1.3 var(--sans); }
.feed-note[hidden] { display: none; }
.feed-note b { color: var(--gold-text); }
.feed-note button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: var(--bg); font: 700 .78rem/1 var(--sans); cursor: pointer; }
#berita .section-head { margin-bottom: 28px; }

/* v109: Hubungi mega panel — compact, tidy social links */
.mg-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mg-socials a { display: grid !important; grid-template-columns: 38px minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 12px 14px !important;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--card-bd); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.mg-socials a:hover { border-color: var(--gold); transform: translateY(-2px); background: color-mix(in srgb, var(--gold) 6%, var(--bg)); }
.mg-socials svg { width: 18px !important; height: 18px !important; padding: 10px; box-sizing: content-box; border-radius: 12px; color: var(--gold-text);
  background: color-mix(in srgb, var(--gold) 14%, transparent); }
.mg-socials span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 700 .92rem/1.2 var(--sans); color: var(--ink); }
.mg-socials small { font: 500 .76rem/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-socials a::after { content: "" !important; display: block !important; width: 8px; height: 8px; border-right: 1.8px solid var(--gold); border-top: 1.8px solid var(--gold); transform: rotate(45deg); opacity: .7; position: static !important; background: none !important; }
.site-header { z-index: 100 !important; }
.mega { z-index: 101; }
.hero-flag { z-index: 2 !important; }


/* ===================== v110: icon-only socials, floating mobile menu, minimal hero roles ===================== */
/* socials — premium round icon buttons, no names or handles */
#hubungi .socials { display: flex !important; flex-wrap: wrap; gap: 14px; grid-template-columns: none !important; }
#hubungi .socials a { width: 64px; height: 64px; padding: 0 !important; display: grid !important; place-items: center; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--gold) 16%, var(--bg-2)), var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--card-bd)); box-shadow: 0 14px 30px -18px rgba(11,20,48,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s; }
#hubungi .socials a svg { width: 24px !important; height: 24px !important; padding: 0 !important; background: none !important; border-radius: 0; color: var(--gold-text); transition: color .35s; }
#hubungi .socials a:hover, #hubungi .socials a:focus-visible { transform: translateY(-4px); background: linear-gradient(135deg, #f0d898, var(--gold)); border-color: transparent;
  box-shadow: 0 18px 36px -16px rgba(184,145,58,.75); }
#hubungi .socials a:hover svg, #hubungi .socials a:focus-visible svg { color: var(--on-gold, #0b1430); }
:root[data-theme="dark"] #hubungi .socials a { background: radial-gradient(120% 120% at 30% 20%, rgba(214,180,103,.18), #0e1a3d); }
:root[data-theme="dark"] #hubungi .socials a svg { color: #f0d898; }
@media (max-width: 599px) { #hubungi .socials { justify-content: flex-start; gap: 12px; } #hubungi .socials a { width: 58px; height: 58px; } }
/* same treatment inside the mega menu */
.mg-socials { display: flex !important; flex-wrap: wrap; gap: 12px !important; grid-template-columns: none !important; }
.mg-socials a { width: 56px; height: 56px; padding: 0 !important; display: grid !important; place-items: center; grid-template-columns: none !important; border-radius: 50% !important;
  background: color-mix(in srgb, var(--gold) 12%, var(--bg)) !important; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--card-bd)) !important; transition: transform .3s var(--ease), background .3s; }
.mg-socials a::after { display: none !important; content: none !important; }
.mg-socials svg { width: 22px !important; height: 22px !important; padding: 0 !important; background: none !important; color: var(--gold-text); }
.mg-socials a:hover { transform: translateY(-3px); background: linear-gradient(135deg, #f0d898, var(--gold)) !important; }
.mg-socials a:hover svg { color: var(--on-gold, #0b1430); }
.mg-socials span, .mg-socials small { display: none !important; }

/* mobile menu — floating card; the page stays visible around it */
@media (max-width: 959px) {
  .nav { top: calc(var(--header-h) + 8px); left: 12px; right: 12px; height: auto; max-height: calc(100svh - var(--header-h) - 110px);
    padding: 10px 16px 14px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--card-bd));
    background: color-mix(in srgb, var(--bg-2) 86%, transparent); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 60px -24px rgba(5,10,28,.55); clip-path: inset(0 0 100% 0 round 22px); transform-origin: top; }
  .nav.open { clip-path: inset(0 0 0 0 round 22px); }
  :root[data-theme="dark"] .nav { background: rgba(10,18,44,.82); }
  .nav a { font-size: 1.05rem !important; padding: 9px 2px !important; grid-template-columns: 38px 1fr auto !important; gap: 12px !important; }
  .nav a .mn-ic { width: 38px !important; height: 38px !important; border-radius: 12px !important; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav-extras { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); }
}

/* hero roles — clean typographic list, no boxes */
.hero-roles { gap: 10px !important; margin: 10px 0 30px !important; }
.hero-roles li { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  display: inline-flex !important; align-items: center; gap: 12px !important; font: 500 .95rem/1.3 var(--sans) !important; letter-spacing: .02em; color: rgba(255,255,255,.86) !important; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-roles li::before, .hero-roles li + li::before { content: "" !important; display: block !important; width: 18px !important; height: 1px !important; border-radius: 0 !important;
  background: linear-gradient(90deg, var(--gold), #f0d898) !important; box-shadow: none !important; margin: 0 !important; flex: none; }
.hero-roles li:first-child { color: #f0d898 !important; font-weight: 600 !important; }
@media (min-width: 960px) {
  .hero-roles { gap: 0 !important; }
  .hero-roles li { font-size: 1rem !important; }
  .hero-roles li:first-child::before { display: none !important; }
  .hero-roles li + li { margin-left: 18px !important; padding-left: 18px !important; border-left: 1px solid rgba(214,180,103,.45) !important; }
  .hero-roles li + li::before { display: none !important; }
}

/* ===================== v111: stronger contrast — menu, icons, socials, roles ===================== */
@media (max-width: 959px) {
  .nav { background: color-mix(in srgb, var(--bg-2) 97%, transparent) !important; }
  :root[data-theme="dark"] .nav { background: rgba(9,16,40,.97) !important; }
  .nav a { color: var(--ink) !important; font-weight: 600; }
  .nav a::after { color: var(--gold-text) !important; opacity: 1; }
  .nav a .mn-ic { color: var(--gold-text) !important; background: color-mix(in srgb, var(--gold) 16%, var(--bg)) !important; border-color: color-mix(in srgb, var(--gold) 55%, transparent) !important; }
  .nav a .mn-ic svg { stroke-width: 2; }
  :root[data-theme="dark"] .nav a .mn-ic { color: #f0d898 !important; background: rgba(214,180,103,.16) !important; }
  .nav a { border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent) !important; }
}
#hubungi .socials a { border-color: color-mix(in srgb, var(--gold) 60%, transparent) !important; }
#hubungi .socials a svg, .mg-socials svg { color: var(--ink) !important; }
:root[data-theme="dark"] #hubungi .socials a svg, :root[data-theme="dark"] .mg-socials svg { color: #f0d898 !important; }
#hubungi .socials a:hover svg, .mg-socials a:hover svg { color: var(--on-gold) !important; }
.hero-roles li { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 16px rgba(0,0,0,.45) !important; }
.hero-roles li:first-child { color: #f3dc9f !important; }

/* ===================== v112: layered premium mobile menu ===================== */
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4,8,24,.5); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.nav-scrim.on { opacity: 1; visibility: visible; }
@media (min-width: 960px) { .nav-scrim { display: none; } }
@media (max-width: 959px) {
  .site-header.menu-open { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; box-shadow: none !important; color: #fff !important; }
  .nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 12px 14px 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ee 100%) !important;
    border: 1px solid rgba(214,180,103,.45) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(11,20,48,.04), 0 24px 48px -20px rgba(4,8,24,.6), 0 60px 100px -40px rgba(4,8,24,.55) !important; }
  .nav::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); pointer-events: none; }
  :root[data-theme="dark"] .nav { background: linear-gradient(180deg, #13214d 0%, #0b1534 100%) !important; border-color: rgba(214,180,103,.35) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px -20px rgba(0,0,0,.8), 0 60px 100px -40px rgba(0,0,0,.7) !important; }
  .nav a { border-radius: 14px; padding: 9px 10px !important; border-bottom: 0 !important; transition: background .25s; }
  .nav a + a { margin-top: 2px; }
  .nav a.active, .nav a:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
  .nav a.active .mn-ic { background: linear-gradient(135deg, #f0d898, var(--gold)) !important; color: var(--on-gold) !important; border-color: transparent !important; }
  .nav-extras { border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent) !important; margin: 8px 4px 0 !important; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .nav { left: auto !important; right: 16px !important; width: 400px; }
}


/* ===================== v113: a page for every section + "View all" on the home page ===================== */
html[data-page="berita"] main > section:not(#berita):not(#hubungi):not(.page-banner):not(.journey),
html[data-page="pencapaian"] main > section:not(#pencapaian):not(#hubungi):not(.page-banner):not(.journey),
html[data-page="video"] main > section:not(#video):not(#hubungi):not(.page-banner):not(.journey),
html[data-page="media"] main > section:not(#media):not(#hubungi):not(.page-banner):not(.journey),
html[data-page="galeri"] main > section:not(#galeri):not(#hubungi):not(.page-banner):not(.journey) { display: none !important; }
html[data-page] #top, html[data-page] #sorotan, html[data-page] #preloader { display: none !important; }
html[data-page] .page-on .section-head { display: none; }
html[data-page] .page-on { padding-top: 44px !important; }
.page-banner { position: relative; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 44px) 0 46px;
  background: radial-gradient(80% 120% at 85% 0%, rgba(214,180,103,.22), transparent 60%), linear-gradient(160deg, #13235a 0%, #0b1534 55%, #070d22 100%); }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,180,103,.7), transparent); }
.page-banner .crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.page-banner .crumbs a { color: #f0d898; text-decoration: none; }
.page-banner .crumbs a:hover { text-decoration: underline; }
.page-banner h1 { margin: 0 0 12px; font: 600 clamp(2.1rem, 7vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.01em; color: #fff; }
.page-banner p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.82); font: 400 1.02rem/1.6 var(--read, var(--sans)); }
@media (min-width: 960px) { .page-banner { padding: calc(var(--header-h) + 72px) 0 64px; } }
.see-all { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 700 .9rem/1 var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--bg-2);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--card-bd)); box-shadow: 0 12px 26px -16px rgba(11,20,48,.4);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; }
.see-all svg { color: var(--gold-text); transition: transform .3s var(--ease), color .3s; }
.see-all:hover, .see-all:focus-visible { transform: translateY(-2px); background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); border-color: transparent; box-shadow: 0 16px 30px -14px rgba(184,145,58,.7); }
.see-all:hover svg, .see-all:focus-visible svg { color: var(--on-gold); transform: translateX(3px); }
.pager-wrap:has(> .see-all) { display: flex; justify-content: center; margin-top: 34px; }
.pager-wrap.on-dark .see-all, :root[data-theme="dark"] .see-all { color: #f3dc9f; background: rgba(214,180,103,.08); border-color: rgba(214,180,103,.5); }
.pager-wrap.on-dark .see-all svg, :root[data-theme="dark"] .see-all svg { color: #f0d898; }
.pager-wrap.on-dark .see-all:hover, :root[data-theme="dark"] .see-all:hover { color: var(--on-gold); background: linear-gradient(135deg, #f0d898, var(--gold)); }
.pager-wrap.on-dark .see-all:hover svg, :root[data-theme="dark"] .see-all:hover svg { color: var(--on-gold); }

/* ===================== v115: no more broken/empty image slots — official cover for items without a photo ===================== */
.ach-item .ach-img { width: 100%; align-self: stretch; box-sizing: border-box; }
.ach-cover, .press-img.none {
  background:
    url(../img/portrait-cover.webp) right 4% bottom / auto 94% no-repeat,
    radial-gradient(70% 90% at 78% 30%, rgba(214,180,103,.28), transparent 65%),
    linear-gradient(160deg, #1a2d6b 0%, #0e1a42 55%, #070d22 100%) !important;
  background-size: auto 94%, auto, auto !important;
  background-position: right 4% bottom, 0 0, 0 0 !important;
  position: relative; overflow: hidden;
}
.ach-cover::before, .press-img.none::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,13,34,.85) 0%, rgba(7,13,34,.35) 50%, transparent 75%), linear-gradient(0deg, rgba(7,13,34,.6), transparent 45%); }
.ach-cover > *, .press-img.none > * { position: relative; z-index: 1; }
.ach-cover b { text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.ach-cover::after { content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--gold), transparent 70%) !important; }
.press-img.none { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px 18px; }
.press-img.none > b { font: 700 1.25rem/1.15 var(--serif); color: #f0d898; max-width: 60%; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
@media (max-width: 599px) {
  .ach-cover, .press-img.none { background-size: auto 92%, auto, auto !important; background-position: right 2% bottom, 0 0, 0 0 !important; }
}

/* ===================== v116: service journey on the Achievements page ===================== */
.journey { padding: 34px 0 10px; background: var(--bg); }
:root[data-theme="dark"] .journey { background: #0b1430; }
.journey .kicker { margin-bottom: 18px; }
.jr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.jr-list li { position: relative; padding: 0 0 18px 26px; display: flex; flex-direction: column; gap: 3px; }
.jr-list li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); z-index: 1; }
.jr-list li::after { content: ""; position: absolute; left: 8px; top: 14px; bottom: -6px; width: 1px; background: color-mix(in srgb, var(--gold) 45%, transparent); }
.jr-list li:last-child::after { display: none; }
.jr-list li.now::before { background: linear-gradient(135deg, #f0d898, var(--gold)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.jr-yr { font: 700 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.jr-list b { font: 600 1rem/1.35 var(--serif); color: var(--ink); }
.jr-list li.now b { font-size: 1.1rem; }
@media (min-width: 960px) {
  .journey { padding: 48px 0 8px; }
  .jr-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
  .jr-list li { padding: 20px 0 0; }
  .jr-list li::before { left: 0; top: -4px; }
  .jr-list li::after { left: 14px; right: -22px; top: 0; bottom: auto; width: auto; height: 1px; }
  .jr-list li:nth-child(4n)::after { display: none; }
}

/* ===================== v117: every section page has its own layout (distinct from the home page) ===================== */
/* --- Berita: newsroom — wide lead, then a ruled list of stories with the photo on the right --- */
html[data-page="berita"] .lead-stories { display: grid !important; grid-template-columns: 1fr !important; gap: 18px; }
html[data-page="berita"] .lead-side { display: grid !important; grid-template-columns: 1fr; gap: 12px; height: auto !important; grid-auto-rows: auto !important; }
@media (min-width: 960px) {
  html[data-page="berita"] .story.main { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
  html[data-page="berita"] .story.main .img { height: 100%; min-height: 380px; aspect-ratio: auto; }
  html[data-page="berita"] .story.main h3 { font-size: 2.2rem; }
  html[data-page="berita"] .lead-side { grid-template-columns: repeat(3, 1fr); }
  html[data-page="berita"] .lead-side .story.side { display: grid !important; }
}
html[data-page="berita"] #feed { display: flex !important; flex-direction: column; gap: 0 !important; border-top: 2px solid var(--ink); margin-top: 10px; }
html[data-page="berita"] #feed .card { display: grid !important; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "meta thumb" "title thumb" "ex thumb"; align-content: start;
  column-gap: 16px; row-gap: 6px; padding: 20px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; transform: none !important; }
html[data-page="berita"] #feed .card .thumb { grid-area: thumb; aspect-ratio: 1; border-radius: 12px; margin: 0 !important; }
html[data-page="berita"] #feed .card .meta { grid-area: meta; margin: 0 !important; padding: 0 !important; }
html[data-page="berita"] #feed .card h3 { grid-area: title; margin: 0 !important; padding: 0 !important; font-size: 1.08rem; line-height: 1.3; }
html[data-page="berita"] #feed .card .card-ex { grid-area: ex; display: none; margin: 0 !important; padding: 0 !important; }
html[data-page="berita"] #feed .card:hover h3 { color: var(--gold-text); }
html[data-page="berita"] #feed .card .badge-count, html[data-page="berita"] #feed .card .badge-play { display: none; }
@media (min-width: 600px) {
  html[data-page="berita"] #feed .card { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 32px; padding: 28px 0 !important; }
  html[data-page="berita"] #feed .card .thumb { aspect-ratio: 16/10; }
  html[data-page="berita"] #feed .card h3 { font-size: 1.45rem; }
  html[data-page="berita"] #feed .card .card-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 960px) { html[data-page="berita"] #feed .card { grid-template-columns: minmax(0, 1fr) 320px; } html[data-page="berita"] #feed { max-width: 1040px; } }

/* --- Pencapaian: a single vertical timeline, each entry a wide horizontal card --- */
html[data-page="pencapaian"] .ach-list { display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important; position: relative; padding-left: 26px !important; max-width: 1040px; }
html[data-page="pencapaian"] .ach-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 15%, transparent)); }
html[data-page="pencapaian"] .ach-list > li { position: relative; }
html[data-page="pencapaian"] .ach-list > li::before { content: ""; position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); z-index: 1; }
@media (min-width: 700px) {
  html[data-page="pencapaian"] .ach-list { padding-left: 40px !important; }
  html[data-page="pencapaian"] .ach-list::before { left: 10px; }
  html[data-page="pencapaian"] .ach-list > li::before { left: -37px; }
  html[data-page="pencapaian"] .ach-item { display: grid !important; grid-template-columns: 300px minmax(0, 1fr) !important; grid-template-rows: auto !important; align-items: stretch; height: auto !important; min-height: 210px; }
  html[data-page="pencapaian"] .ach-item .ach-img { order: 0 !important; grid-column: 1 !important; grid-row: 1 !important; height: 100% !important; min-height: 210px !important; aspect-ratio: auto !important; border-radius: 0 !important; }
  html[data-page="pencapaian"] .ach-item .ach-body { grid-column: 2 !important; grid-row: 1 !important; padding: 24px 28px !important; justify-content: center; }
  html[data-page="pencapaian"] .ach-item .ach-body strong { font-size: 1.35rem; }
  html[data-page="pencapaian"] .ach-item .ach-desc { -webkit-line-clamp: 3; }
}

/* --- Video: a cinema-style feature for the newest video, then a wide grid --- */
@media (min-width: 700px) {
  html[data-page="video"] .video-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 18px !important; }
  html[data-page="video"] .video-grid .v-card { aspect-ratio: 16 / 10 !important; }
  html[data-page="video"] .video-grid .v-card:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9 !important; }
  html[data-page="video"] .video-grid .v-card:first-child .v-body p { font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1.2 var(--serif); max-width: 30ch; }
  html[data-page="video"] .video-grid .v-card:first-child .play { width: 74px; height: 74px; }
}
@media (max-width: 699px) {
  html[data-page="video"] .video-grid { grid-template-columns: 1fr !important; }
  html[data-page="video"] .video-grid .v-card { aspect-ratio: 16 / 10 !important; }
}

/* --- Media: an editorial index — lead story full width, then horizontal rows --- */
html[data-page="media"] .press-list { grid-template-columns: 1fr !important; gap: 18px !important; max-width: 1080px; }
@media (min-width: 700px) {
  html[data-page="media"] .press-card { display: grid !important; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; }
  html[data-page="media"] .press-card .press-img { height: 100%; min-height: 200px; aspect-ratio: auto !important; }
  html[data-page="media"] .press-card .press-body { padding: 24px 28px !important; justify-content: center; }
  html[data-page="media"] .press-card strong { font-size: 1.3rem; }
  html[data-page="media"] .press-list > li:first-child .press-card { grid-template-columns: 1.3fr 1fr; }
  html[data-page="media"] .press-list > li:first-child .press-img { min-height: 340px; }
  html[data-page="media"] .press-list > li:first-child strong { font-size: 1.8rem; }
}

/* --- Galeri: true masonry — photos keep their natural shape --- */
html[data-page="galeri"] .gallery { display: block !important; columns: 2; column-gap: 10px; }
html[data-page="galeri"] .gallery button { display: block; width: 100%; margin: 0 0 10px !important; aspect-ratio: auto !important; break-inside: avoid; }
html[data-page="galeri"] .gallery img { height: auto !important; object-fit: initial !important; }
@media (min-width: 700px) { html[data-page="galeri"] .gallery { columns: 3; column-gap: 14px; } html[data-page="galeri"] .gallery button { margin-bottom: 14px !important; } }
@media (min-width: 1100px) { html[data-page="galeri"] .gallery { columns: 4; } }

/* v118: Berita page — the standfirst is shown in full, never cut mid-line */
@media (min-width: 600px) { html[data-page="berita"] #feed .card .card-ex { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; height: auto !important; overflow: visible !important; text-overflow: clip !important; -webkit-mask-image: none !important; mask-image: none !important; } }


/* v119: previews are complete sentences — show them in full everywhere, no line clamp */
.card-ex, .story.main p, .story.side p, .lead-side p { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; overflow: visible !important; }


/* v120: writer and photo credits for press coverage */
.press-by { display: block; margin-top: 10px; font: 600 .78rem/1.4 var(--sans); letter-spacing: .02em; color: var(--gold-text); }
.art-by { margin: 10px 0 18px; font: 600 .86rem/1.5 var(--sans); letter-spacing: .02em; color: var(--gold-text); }
.art-photo { margin: 10px 0 6px; font: 500 .8rem/1.5 var(--sans); color: var(--muted); }


/* v121: excerpts and main headlines are always shown in full — no line clamp anywhere they are read */
.card-ex, .ach-desc, .ach-desc.clamp, .ach-item .ach-desc, .press-sum, .story p, .story.main p, .sv-snip,
.card h3, .ach-body strong, .press-body strong, .story.side h3 {
  display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; overflow: visible !important; text-overflow: clip !important; }

/* v122: Pencapaian page — each card sizes to its own content; the photo keeps its shape (no stretching, no cropping) */
html[data-page="pencapaian"] .ach-list { grid-auto-rows: auto !important; align-items: start !important; }
html[data-page="pencapaian"] .ach-list > li { height: auto !important; }
html[data-page="pencapaian"] .ach-item { height: auto !important; min-height: 0 !important; }
html[data-page="pencapaian"] .ach-item .ach-body { min-height: 0 !important; justify-content: flex-start !important; }
html[data-page="pencapaian"] .ach-item .ach-more { margin-top: 18px !important; }
@media (min-width: 700px) {
  html[data-page="pencapaian"] .ach-item { grid-template-columns: 320px minmax(0, 1fr) !important; align-items: start !important; }
  html[data-page="pencapaian"] .ach-item .ach-img { height: auto !important; min-height: 0 !important; aspect-ratio: 3 / 2 !important; align-self: stretch; }
  html[data-page="pencapaian"] .ach-item .ach-img img { height: 100% !important; object-fit: cover; }
  html[data-page="pencapaian"] .ach-item .ach-body { padding: 22px 28px !important; }
}
@media (min-width: 700px) and (max-width: 959px) { html[data-page="pencapaian"] .ach-item { grid-template-columns: 240px minmax(0, 1fr) !important; } }
@media (min-width: 700px) { html[data-page="pencapaian"] .ach-item { grid-template-columns: minmax(0, 40%) minmax(0, 1fr) !important; } }
@media (min-width: 700px) and (max-width: 959px) { html[data-page="pencapaian"] .ach-item { grid-template-columns: minmax(0, 46%) minmax(0, 1fr) !important; } }


/* v123: breadcrumbs — on every section page and inside every article */
.crumbs-v2 { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 18px; font: 600 .8rem/1.3 var(--sans) !important; letter-spacing: .01em !important; text-transform: none !important; }
.crumbs-v2 a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--gold-text);
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); transition: background .25s, color .25s; }
.crumbs-v2 a:hover { background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); }
.crumbs-v2 .cr-sep { color: var(--muted); opacity: .7; flex: none; }
.crumbs-v2 [aria-current] { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 160px; }
.page-banner .crumbs-v2 a { color: #f3dc9f; background: rgba(214,180,103,.14); border-color: rgba(214,180,103,.4); }
.page-banner .crumbs-v2 a:hover { color: var(--on-gold); }
.page-banner .crumbs-v2 [aria-current] { color: rgba(255,255,255,.82); flex: none; }
.page-banner .crumbs-v2 .cr-sep { color: rgba(255,255,255,.55); }
.m-text .crumbs-v2 { margin-bottom: 14px; }


/* ===================== v124: footer — modern, three tidy columns ===================== */
.site-footer.f2 { position: relative; padding: 0 0 calc(110px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.78);
  background: radial-gradient(60% 80% at 90% 0%, rgba(214,180,103,.10), transparent 60%), linear-gradient(180deg, #0a1433 0%, #060b1d 100%); }
.site-footer.f2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,180,103,.7), transparent); }
.f2-motto { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.f2-motto p { margin: 0; max-width: 24ch; font: italic 500 clamp(1.45rem, 4.4vw, 2.3rem)/1.2 var(--serif); color: #fff; letter-spacing: -.01em; }
.f2-top { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #f0d898; text-decoration: none;
  border: 1px solid rgba(214,180,103,.45); background: rgba(214,180,103,.08); transition: transform .3s var(--ease), background .3s, color .3s; }
.f2-top:hover { transform: translateY(-3px); background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); }
.f2-grid { display: grid; gap: 34px; padding-top: 38px; padding-bottom: 34px; }
.f2-brand { display: flex; gap: 16px; align-items: flex-start; }
.f2-brand img { width: 64px; height: auto; flex: none; border-radius: 10px; }
.f2-brand b { display: block; margin-bottom: 6px; font: 600 1.05rem/1.3 var(--serif); color: #fff; }
.f2-brand p { margin: 0; max-width: 42ch; font: 400 .9rem/1.6 var(--sans); color: rgba(255,255,255,.68); }
.f2-col h4 { margin: 0 0 14px; font: 800 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #e3c784; }
.f2-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.f2-links a { padding: 7px 0; text-decoration: none; color: rgba(255,255,255,.82); font: 500 .92rem/1.3 var(--sans); transition: color .2s, transform .2s; }
.f2-links a:hover { color: #f0d898; transform: translateX(3px); }
.f2-links a::after { display: none !important; }
.f2-social { display: flex; flex-wrap: wrap; gap: 10px; }
.f2-social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; color: #f0d898; text-decoration: none;
  border: 1px solid rgba(214,180,103,.4); background: rgba(214,180,103,.08); transition: transform .3s var(--ease), background .3s, color .3s; }
.f2-social a:hover { transform: translateY(-3px); background: linear-gradient(135deg, #f0d898, var(--gold)); color: var(--on-gold); }
.f2-social svg { width: 18px; height: 18px; }
.f2-social span, .f2-social small { display: none; }
.f2-note { margin: 14px 0 0; font: 400 .8rem/1.5 var(--sans); color: rgba(255,255,255,.5); }
.f2-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font: 500 .78rem/1.4 var(--sans); color: rgba(255,255,255,.5); }
.f2-bottom p { margin: 0; }
.f2-made { letter-spacing: .14em; text-transform: uppercase; font-weight: 700 !important; color: rgba(214,180,103,.7); }
@media (min-width: 960px) {
  .f2-motto { padding-top: 64px; padding-bottom: 44px; }
  .f2-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 44px; }
  .f2-brand img { width: 76px; }
}


/* v125: English mode — original Malay statement tucked behind a labelled toggle */
.post-text details.orig { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.post-text details.orig summary { cursor: pointer; font: 700 .78rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); list-style: none; }
.post-text details.orig summary::-webkit-details-marker { display: none; }
.post-text details.orig summary::after { content: " \25be"; }
.post-text details.orig[open] summary::after { content: " \25b4"; }
.post-text details.orig p { color: var(--muted); }


/* v126: reader breadcrumb sits above the media, as its own bar (clear of the close button) */
.m-crumbs { position: relative; z-index: 2; padding: 14px 72px 14px 20px; background: #070d22; border-bottom: 1px solid rgba(214,180,103,.16); }
.m-crumbs .crumbs-v2 { margin: 0; flex-wrap: nowrap; }
.m-crumbs .crumbs-v2 a { color: #f3dc9f; background: rgba(214,180,103,.12); border-color: rgba(214,180,103,.35); white-space: nowrap; flex: none; }
.m-crumbs .crumbs-v2 a:hover { color: var(--on-gold); }
.m-crumbs .crumbs-v2 [aria-current] { color: rgba(255,255,255,.72); }
.m-crumbs .crumbs-v2 .cr-sep { color: rgba(255,255,255,.45); }
@media (max-width: 599px) { .m-crumbs { padding: 12px 60px 12px 14px; } .m-crumbs .crumbs-v2 [aria-current] { display: none; } .m-crumbs .crumbs-v2 a + .cr-sep:last-of-type { display: none; } }
@media (min-width: 960px) { .m-crumbs { padding-left: 28px; } }

/* v127: breadcrumb hover — dark navy text on gold, always readable in both themes */
.crumbs-v2 a:hover, .crumbs-v2 a:focus-visible,
.page-banner .crumbs-v2 a:hover, .page-banner .crumbs-v2 a:focus-visible,
.m-crumbs .crumbs-v2 a:hover, .m-crumbs .crumbs-v2 a:focus-visible {
  color: #0b1430 !important; background: linear-gradient(135deg, #f3dc9f, #d6b467) !important; border-color: #d6b467 !important; }
.crumbs-v2 a:hover svg, .crumbs-v2 a:focus-visible svg { color: #0b1430 !important; }

/* v129: back-to-top — centred horizontally, floating just above the dock; arrow exactly centred in the circle */
.to-top { left: 50% !important; right: auto !important; padding: 0 !important; width: 44px !important; height: 44px !important;
  bottom: calc(112px + env(safe-area-inset-bottom)) !important; transform: translate(-50%, 14px) !important;
  border: 1px solid rgba(214,180,103,.45) !important; background: color-mix(in srgb, var(--bg-2) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 24px -12px rgba(5,10,28,.55) !important; color: var(--gold-text) !important; }
.to-top.show { transform: translate(-50%, 0) !important; }
.to-top:hover { background: linear-gradient(135deg, #f3dc9f, #d6b467) !important; color: #0b1430 !important; }
.to-top svg { display: block; margin: 0 auto; }
:root[data-theme="dark"] .to-top { background: rgba(14,26,61,.9) !important; color: #f0d898 !important; }
@media (min-width: 960px) { .to-top { bottom: 104px !important; } }

/* v131: back-to-top — right edge, vertically centred on the screen */
.to-top { left: auto !important; right: 14px !important; top: 50% !important; bottom: auto !important; transform: translate(16px, -50%) !important; }
.to-top.show { transform: translate(0, -50%) !important; }
@media (min-width: 960px) { .to-top { right: 24px !important; bottom: auto !important; } }


/* v132: English chosen — hold the page invisible for the instant before the English text is applied */
html.i18n-wait body > *:not(#preloader):not(script) { opacity: 0 !important; }
html body > header, html body > main, html body > footer, html body > nav.dock { transition: opacity .25s ease; }


/* ===================== v133: 3D cinematic splash ===================== */
.preloader.sp3d { background: #040817; perspective: 1100px; overflow: hidden; }
.sp3d .pl-rays, .sp3d .pl-glow, .sp3d .pl-stage { display: none !important; }
/* sky: deep navy with a soft gold dawn on the horizon */
.sp-sky { position: absolute; inset: 0; background:
  radial-gradient(60% 40% at 50% 58%, rgba(214,180,103,.22), transparent 70%),
  radial-gradient(120% 80% at 50% 30%, #13245e 0%, #0a1438 45%, #040817 100%); }
/* 3D floor: a gold grid receding to the horizon, drifting toward the viewer */
.sp-floor { position: absolute; left: -50%; right: -50%; top: 58%; height: 90%; transform-origin: top center; transform: rotateX(76deg); opacity: 0;
  animation: spFloorIn 1.2s .1s ease-out forwards; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); }
.sp-floor span { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, rgba(227,199,132,.38) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(227,199,132,.38) 0 1px, transparent 1px 64px);
  animation: spGrid 2.4s linear infinite; will-change: transform; }
@keyframes spGrid { to { transform: translateY(64px); } }
@keyframes spFloorIn { to { opacity: .55; } }
/* stage */
.sp-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-bottom: 6vh; transform-style: preserve-3d; }
.sp-emblem { position: relative; width: 190px; height: 190px; display: grid; place-items: center; transform-style: preserve-3d; animation: spFloat 4s 1.6s ease-in-out infinite; }
@keyframes spFloat { 0%, 100% { transform: translateY(0) rotateX(6deg); } 50% { transform: translateY(-8px) rotateX(-4deg); } }
/* the logo card turns in from the side, in real 3D */
.sp-card { position: relative; width: 150px; border-radius: 18px; overflow: hidden; transform-style: preserve-3d; opacity: 0;
  transform: rotateY(-100deg) translateZ(40px); animation: spTurn 1.25s .25s cubic-bezier(.2,.9,.25,1.15) forwards;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(227,199,132,.45), 0 0 50px rgba(214,180,103,.25); }
.sp-card img { display: block; width: 100%; height: auto; }
@keyframes spTurn { 60% { opacity: 1; } to { opacity: 1; transform: rotateY(0) translateZ(40px); } }
.sp-sheen { position: absolute; inset: 0; overflow: hidden; }
.sp-sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: spSheen 2.6s 1.3s ease-in-out infinite; }
@keyframes spSheen { 0% { left: -70%; } 45%, 100% { left: 140%; } }
/* orbit rings around the emblem, tilted in 3D */
.sp-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid rgba(227,199,132,.55); opacity: 0; pointer-events: none; }
.sp-ring.r1 { width: 250px; height: 250px; margin: -125px 0 0 -125px; animation: spRingIn .9s .9s ease-out forwards, spOrbit1 7s .9s linear infinite; }
.sp-ring.r2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; border-color: rgba(227,199,132,.28); border-style: dashed; animation: spRingIn .9s 1.05s ease-out forwards, spOrbit2 11s 1s linear infinite; }
.sp-ring.r3 { width: 214px; height: 214px; margin: -107px 0 0 -107px; border: 0; border-top: 2px solid #f0d898; border-right: 2px solid transparent; filter: drop-shadow(0 0 6px rgba(240,216,152,.9)); animation: spRingIn .6s 1.2s ease-out forwards, spOrbit3 2.2s 1.2s linear infinite; }
@keyframes spRingIn { to { opacity: 1; } }
@keyframes spOrbit1 { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes spOrbit2 { from { transform: rotateX(64deg) rotateY(14deg) rotateZ(360deg); } to { transform: rotateX(64deg) rotateY(14deg) rotateZ(0); } }
@keyframes spOrbit3 { from { transform: rotateZ(0); } to { transform: rotateZ(360deg); } }
.sp-shadow { position: absolute; left: 50%; bottom: -34px; width: 160px; height: 22px; margin-left: -80px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); opacity: 0; animation: spRingIn .8s .8s forwards; }
/* name and role */
.sp-name { margin: 26px 0 0; font: 600 clamp(1.35rem, 5.2vw, 2.1rem)/1.2 var(--serif); color: #fff; text-align: center; letter-spacing: .01em; }
.sp-name .w { display: inline-block; opacity: 0; transform: translateY(16px) rotateX(-70deg); transform-origin: 50% 100%; animation: spWord .9s cubic-bezier(.2,.8,.2,1) forwards; }
.sp-name .w:nth-child(1) { animation-delay: 1.05s; } .sp-name .w:nth-child(2) { animation-delay: 1.2s; }
.sp-name .w:nth-child(3) { animation-delay: 1.35s; } .sp-name .w:nth-child(4) { animation-delay: 1.5s; }
.sp-name .g { font-style: italic; background: linear-gradient(180deg, #f8e7b8, #d6b467 60%, #b8913a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spWord { to { opacity: 1; transform: none; } }
.sp-role { margin: -6px 0 0; font: 700 .7rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.72); opacity: 0; animation: spFade .9s 1.8s ease forwards; text-align: center; padding: 0 16px; }
.sp-role .en { display: none; } html[lang="en"] .sp-role .en { display: inline; } html[lang="en"] .sp-role .ms { display: none; }
@keyframes spFade { to { opacity: 1; letter-spacing: .26em; } }
.sp-line { width: 200px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; margin-top: 6px; }
.sp-line::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #b8913a, #f8e7b8, #d6b467); box-shadow: 0 0 12px rgba(240,216,152,.8); animation: spLoad 2.6s .4s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes spLoad { to { transform: scaleX(1); } }
/* exit: the emblem flies toward the viewer, then the gold curtains open */
.preloader.sp3d.open { background: transparent; transition: background .1s .45s; }
.preloader.sp3d.open .sp-stage { animation: spOut .6s cubic-bezier(.6,0,.4,1) forwards; }
.preloader.sp3d.open .sp-sky, .preloader.sp3d.open .sp-floor, .preloader.sp3d.open .pl-stars { opacity: 0 !important; transition: opacity .45s; }
@keyframes spOut { to { opacity: 0; transform: translateZ(260px) scale(1.08); } }
@media (max-width: 420px) { .sp-emblem { width: 160px; height: 160px; } .sp-card { width: 124px; } .sp-ring.r1 { width: 210px; height: 210px; margin: -105px 0 0 -105px; } .sp-ring.r2 { width: 252px; height: 252px; margin: -126px 0 0 -126px; } .sp-ring.r3 { width: 180px; height: 180px; margin: -90px 0 0 -90px; } }
@media (prefers-reduced-motion: reduce) { .sp-floor span, .sp-emblem, .sp-ring, .sp-sheen::before { animation: none !important; } .sp-ring { opacity: 1; } .sp-card, .sp-name .w, .sp-role { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* v134: cards — balanced padding, height follows the content (nothing cut off) */
@media (max-width: 599px) {
  .ach-item { height: auto !important; min-height: 160px; grid-template-columns: 112px minmax(0, 1fr) !important; overflow: hidden; align-items: stretch !important; }
  .ach-img { height: auto !important; min-height: 100% !important; align-self: stretch !important; }
  .ach-img img { height: 100% !important; }
  .ach-body { height: auto !important; overflow: visible !important; padding: 16px 36px 16px 16px !important; gap: 8px !important; justify-content: center !important; }
  .ach-body strong { font-size: 1.05rem !important; line-height: 1.3 !important; }
  .ach-desc { font-size: .9rem !important; line-height: 1.55 !important; }
  .ach-item::after { right: 12px !important; }
  .press-card .press-body, .card .card-ex, .card h3, .card .meta { padding-left: 0; }
}
.card { padding-bottom: 4px; }
.card .meta { margin: 18px 20px 8px !important; }
.card h3 { margin: 0 20px 8px !important; }
.card .card-ex { margin: 0 20px 20px !important; }
.press-body { padding: 20px 22px 22px !important; }
.ach-body { gap: 8px; }
@media (min-width: 600px) { .ach-body { padding: 22px 24px 24px !important; } }

/* ===================== v135: premium card system — one consistent, modern language for every card ===================== */
:root { --cd-r: 20px; --cd-bd: rgba(11,20,48,.08); --cd-bg: #ffffff;
  --cd-sh: 0 1px 2px rgba(11,20,48,.04), 0 8px 24px -12px rgba(11,20,48,.16), 0 24px 48px -28px rgba(11,20,48,.22);
  --cd-sh-h: 0 2px 4px rgba(11,20,48,.05), 0 18px 40px -16px rgba(11,20,48,.26), 0 40px 70px -36px rgba(184,145,58,.35); }
:root[data-theme="dark"] { --cd-bd: rgba(214,180,103,.14); --cd-bg: linear-gradient(180deg, #13214d 0%, #0e1a3d 100%);
  --cd-sh: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -22px rgba(0,0,0,.9);
  --cd-sh-h: 0 1px 0 rgba(255,255,255,.07) inset, 0 26px 54px -22px rgba(0,0,0,.95), 0 0 0 1px rgba(214,180,103,.32); }
.card, .story.main, .story.side, .ach-item, .press-card {
  border-radius: var(--cd-r) !important; background: var(--cd-bg) !important; border: 1px solid var(--cd-bd) !important; box-shadow: var(--cd-sh) !important;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s !important; overflow: hidden; }
.card:hover, .story.main:hover, .story.side:hover, .ach-item:hover, .press-card:hover,
.card:focus-visible, .ach-item:focus-visible, .press-card:focus-visible { transform: translateY(-4px); box-shadow: var(--cd-sh-h) !important; border-color: rgba(214,180,103,.45) !important; }
/* photos: gentle zoom and a soft vignette for depth */
.card .thumb, .story .img, .ach-img, .press-img { position: relative; overflow: hidden; }
.card .thumb img, .story .img img, .ach-img img, .press-img img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1) !important; }
.card:hover .thumb img, .story:hover .img img, .ach-item:hover .ach-img img, .press-card:hover .press-img img { transform: scale(1.06); }
.card .thumb::after, .press-img:not(.none)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(7,13,34,.28)); }
/* category / tag pills */
.card .meta .tag, .story .meta .tag, .ach-tag, .press-meta span {
  display: inline-flex; align-items: center; padding: 4px 10px !important; border-radius: 999px; font: 800 .62rem/1.2 var(--sans) !important; letter-spacing: .12em !important; text-transform: uppercase;
  color: var(--gold-text) !important; background: color-mix(in srgb, var(--gold) 13%, transparent) !important; border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.card .meta, .story .meta, .ach-meta, .press-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 10px !important; }
.card .meta .date, .story .meta .date, .ach-meta time, .press-meta time { font: 600 .7rem/1.2 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
/* headline hover: a gold underline that draws in */
.card h3, .story h3, .ach-body strong, .press-body strong { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s cubic-bezier(.2,.8,.2,1), color .3s; }
.card:hover h3, .story:hover h3, .ach-item:hover .ach-body strong, .press-card:hover .press-body strong { background-size: 100% 1.5px; }
/* "read more" affordance */
.ach-more, .press-more { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--sans) !important; color: var(--gold-text) !important; }
.ach-more::after { transition: transform .35s cubic-bezier(.2,.8,.2,1) !important; }
.ach-item:hover .ach-more::after { transform: translateX(5px); }
/* video, highlight and gallery tiles: same radius, depth and hover */
.v-card, .hl-card, .gallery button { border-radius: var(--cd-r) !important; box-shadow: 0 18px 40px -22px rgba(0,0,0,.75) !important; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s !important; }
.v-card:hover, .hl-card:hover, .gallery button:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(214,180,103,.45) !important; }
.v-card img, .hl-card img, .gallery img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1) !important; }
.v-card:hover img, .hl-card:hover img { transform: scale(1.05); }
.v-card .play { box-shadow: 0 10px 24px -8px rgba(0,0,0,.6), 0 0 0 6px rgba(240,216,152,.18) !important; transition: transform .35s cubic-bezier(.2,.8,.2,1) !important; }
.v-card:hover .play { transform: scale(1.1); }
/* the Berita page list stays flat by design (a newsroom list, not cards) */
html[data-page="berita"] #feed .card { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; transform: none !important; }
html[data-page="berita"] #feed .card .thumb { border-radius: 14px; }
html[data-page="berita"] #feed .card .thumb::after { display: none; }
@media (prefers-reduced-motion: reduce) { .card, .story, .ach-item, .press-card, .v-card, .hl-card, .gallery button { transition: none !important; } .card:hover, .ach-item:hover, .press-card:hover, .v-card:hover, .hl-card:hover, .gallery button:hover { transform: none; } }
@media (min-width: 960px) {
  .sp-emblem { width: 250px; height: 250px; } .sp-card { width: 200px; border-radius: 22px; }
  .sp-ring.r1 { width: 330px; height: 330px; margin: -165px 0 0 -165px; } .sp-ring.r2 { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .sp-ring.r3 { width: 284px; height: 284px; margin: -142px 0 0 -142px; } .sp-shadow { width: 220px; margin-left: -110px; bottom: -44px; }
  .sp-name { font-size: 2.6rem; margin-top: 36px; } .sp-role { font-size: .78rem; } .sp-line { width: 260px; }
}


/* v141: Policy and Achievements as two pages; no service-journey block */
html[data-page="dasar"] main > section:not(#pencapaian):not(#hubungi):not(.page-banner) { display: none !important; }
html[data-page="dasar"] #top, html[data-page="dasar"] #sorotan, html[data-page="dasar"] #preloader { display: none !important; }
html[data-page="dasar"] #pencapaian .section-head, html[data-page="dasar"] #achTabs { display: none !important; }
html[data-page="dasar"] #pencapaian { padding-top: 44px !important; }
html[data-page="pencapaian"] #achTabs [data-tab="policy"] { display: none !important; }
html[data-page="pencapaian"] #achTabs { grid-template-columns: repeat(2, auto) !important; }
.journey { display: none !important; }
/* the Policy page shares the Achievements page's timeline layout */
html[data-page="dasar"] .ach-list { display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important; position: relative; padding-left: 26px !important; max-width: 1040px; grid-auto-rows: auto !important; align-items: start !important; }
html[data-page="dasar"] .ach-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 15%, transparent)); }
html[data-page="dasar"] .ach-list > li { position: relative; height: auto !important; }
html[data-page="dasar"] .ach-list > li::before { content: ""; position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); z-index: 1; }
html[data-page="dasar"] .ach-item { height: auto !important; min-height: 0 !important; }
@media (min-width: 700px) {
  html[data-page="dasar"] .ach-list { padding-left: 40px !important; }
  html[data-page="dasar"] .ach-list::before { left: 10px; }
  html[data-page="dasar"] .ach-list > li::before { left: -37px; }
  html[data-page="dasar"] .ach-item { display: grid !important; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) !important; grid-template-rows: auto !important; align-items: start !important; }
  html[data-page="dasar"] .ach-item .ach-img { order: 0 !important; grid-column: 1 !important; grid-row: 1 !important; height: auto !important; min-height: 0 !important; aspect-ratio: 3 / 2 !important; align-self: stretch; border-radius: 0 !important; }
  html[data-page="dasar"] .ach-item .ach-img img { height: 100% !important; object-fit: cover; }
  html[data-page="dasar"] .ach-item .ach-body { grid-column: 2 !important; grid-row: 1 !important; padding: 22px 28px !important; justify-content: flex-start !important; min-height: 0 !important; }
  html[data-page="dasar"] .ach-item .ach-body strong { font-size: 1.35rem; }
}

/* v142: Dasar & Pencapaian pages on phones — photo on its own row above the text, never squashed */
@media (max-width: 699px) {
  html[data-page="dasar"] .ach-item, html[data-page="pencapaian"] .ach-item {
    display: flex !important; flex-direction: column !important; grid-template-columns: none !important; height: auto !important; min-height: 0 !important; }
  html[data-page="dasar"] .ach-item .ach-img, html[data-page="pencapaian"] .ach-item .ach-img {
    order: -1 !important; width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 3 / 2 !important; flex: none; border-radius: 0 !important; }
  html[data-page="dasar"] .ach-item .ach-img img, html[data-page="pencapaian"] .ach-item .ach-img img { width: 100%; height: 100% !important; object-fit: cover; }
  html[data-page="dasar"] .ach-item .ach-body, html[data-page="pencapaian"] .ach-item .ach-body { padding: 18px 20px 20px !important; justify-content: flex-start !important; }
  html[data-page="dasar"] .ach-item::after, html[data-page="pencapaian"] .ach-item::after { display: none !important; }
  html[data-page="dasar"] .ach-list > li::before, html[data-page="pencapaian"] .ach-list > li::before { top: 18px; }
}

/* v143: Berita page on phones and small tablets — clean stacked stories (photo, meta, headline, preview) */
@media (max-width: 759px) {
  html[data-page="berita"] #feed { border-top: 0 !important; gap: 14px !important; }
  html[data-page="berita"] #feed .card { grid-template-columns: 1fr !important; grid-template-areas: "thumb" "meta" "title" "ex" !important; row-gap: 0 !important;
    padding: 0 0 22px !important; border-bottom: 1px solid var(--line) !important; }
  html[data-page="berita"] #feed .card .thumb { aspect-ratio: 16 / 9 !important; width: 100%; border-radius: 16px !important; margin: 0 0 14px !important; }
  html[data-page="berita"] #feed .card .meta { margin: 0 0 8px !important; }
  html[data-page="berita"] #feed .card h3 { font-size: 1.22rem !important; line-height: 1.3 !important; margin: 0 0 8px !important; }
  html[data-page="berita"] #feed .card .card-ex { display: block !important; font-size: .95rem !important; line-height: 1.6 !important; color: var(--muted); margin: 0 !important; }
}

/* v145: Achievements & Policy cards on phones (home page too) — photo on top, one arrow only */
@media (max-width: 699px) {
  #pencapaian .ach-item { display: flex !important; flex-direction: column !important; grid-template-columns: none !important; height: auto !important; min-height: 0 !important; }
  #pencapaian .ach-item .ach-img { order: -1 !important; width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 16 / 9 !important; flex: none; border-radius: 0 !important; }
  #pencapaian .ach-item .ach-img img { width: 100%; height: 100% !important; object-fit: cover; }
  #pencapaian .ach-item .ach-body { padding: 18px 20px 20px !important; justify-content: flex-start !important; height: auto !important; }
  #pencapaian .ach-item::after { display: none !important; }
  #pencapaian .ach-list { gap: 16px !important; }
  #pencapaian .ach-cover { min-height: 0 !important; }
}


/* ===================== v152: emblem-only splash, and the same splash between pages ===================== */
html[data-page] #preloader, html[data-page="dasar"] #preloader { display: block !important; }
.sp-name, .sp-role { display: none !important; }
.sp-stage { gap: 0; padding-bottom: 0; }
.sp-line { margin-top: 56px; width: 140px; }
/* a slow, breathing gold halo behind the emblem */
.sp-halo { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240,216,152,.34), rgba(214,180,103,.12) 45%, transparent 72%); opacity: 0; filter: blur(2px);
  animation: spHaloIn 1.2s .5s ease-out forwards, spBreath 3.6s 1.7s ease-in-out infinite; }
@keyframes spHaloIn { to { opacity: 1; } }
@keyframes spBreath { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .7; } }
@media (min-width: 960px) { .sp-halo { width: 480px; height: 480px; margin: -240px 0 0 -240px; } .sp-line { width: 180px; margin-top: 70px; } }

/* short splash between pages: everything settles in about one second */
html.quick-splash .sp-card { animation-duration: .7s !important; animation-delay: 0s !important; }
html.quick-splash .sp-ring { animation-delay: .15s, .15s !important; }
html.quick-splash .sp-halo { animation-delay: .1s, .9s !important; }
html.quick-splash .sp-shadow { animation-delay: .2s !important; }
html.quick-splash .sp-floor { animation-delay: 0s !important; animation-duration: .5s !important; }
html.quick-splash .sp-line::after { animation-duration: .9s !important; animation-delay: 0s !important; }
html.quick-splash .sp-sheen::before { animation-delay: .4s !important; }

/* leaving a page: the splash fades in smoothly over the current page */
#preloader.leaving { display: block !important; opacity: 0; visibility: visible; animation: spLeave .4s cubic-bezier(.4,0,.2,1) forwards; }
#preloader.leaving .sp-card { opacity: 1; transform: rotateY(0) translateZ(40px); animation: none; }
#preloader.leaving .sp-ring, #preloader.leaving .sp-halo, #preloader.leaving .sp-shadow { opacity: 1; }
#preloader.leaving .sp-line::after { animation: spLoad .6s ease-out forwards; }
@keyframes spLeave { to { opacity: 1; } }
html.page-leaving main, html.page-leaving footer { transition: transform .4s cubic-bezier(.4,0,.2,1), filter .4s; transform: scale(.985); filter: blur(2px); }
@media (prefers-reduced-motion: reduce) { #preloader.leaving { animation-duration: .01s; } html.page-leaving main { transform: none; filter: none; } }

/* v153: page-transition veil — the splash's sky and emblem fade in over the page before the next one loads */
.pg-veil { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; align-content: center; gap: 46px; background: #040817;
  opacity: 0; visibility: hidden; transition: opacity .38s cubic-bezier(.4,0,.2,1), visibility .38s; pointer-events: none; }
.pg-veil.on { opacity: 1; visibility: visible; pointer-events: auto; }
.pg-veil .sp-sky { position: absolute; inset: 0; }
.pv-emb { position: relative; width: 150px; transform: scale(.92); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pg-veil.on .pv-emb { transform: none; }
.pv-emb img { position: relative; z-index: 1; display: block; width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(227,199,132,.45), 0 0 50px rgba(214,180,103,.25); }
.pv-halo { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,216,152,.32), rgba(214,180,103,.1) 45%, transparent 72%); animation: spBreath 3.6s ease-in-out infinite; }
.pv-ring { position: absolute; left: 50%; top: 50%; width: 214px; height: 214px; margin: -107px 0 0 -107px; border-radius: 50%;
  border-top: 2px solid #f0d898; border-right: 2px solid transparent; filter: drop-shadow(0 0 6px rgba(240,216,152,.9)); animation: spOrbit3 1.6s linear infinite; }
.pv-line { position: relative; width: 140px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.pv-line::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #b8913a, #f8e7b8, #d6b467); box-shadow: 0 0 12px rgba(240,216,152,.8); }
.pg-veil.on .pv-line::after { animation: spLoad .9s .1s cubic-bezier(.5,0,.2,1) forwards; }
@media (min-width: 960px) { .pv-emb { width: 200px; } .pv-ring { width: 284px; height: 284px; margin: -142px 0 0 -142px; } .pv-halo { width: 480px; height: 480px; margin: -240px 0 0 -240px; } }
@media (prefers-reduced-motion: reduce) { .pg-veil { transition-duration: .01s; } .pv-ring, .pv-halo { animation: none; } }

/* ===================== v154: every splash animation plays once, then rests — slower, softer easing ===================== */
.sp-floor span { animation: spGridOnce 3s cubic-bezier(.22,.61,.36,1) 1 forwards !important; }
@keyframes spGridOnce { from { transform: translateY(-64px); } to { transform: translateY(0); } }
.sp-floor { animation: spFloorIn 1.4s .1s cubic-bezier(.22,.61,.36,1) forwards !important; }
.sp-emblem { animation: spRise 1.6s .9s cubic-bezier(.22,.61,.36,1) 1 both !important; }
@keyframes spRise { from { transform: translateY(10px); } to { transform: translateY(0); } }
.sp-card { animation: spTurn 1.5s .25s cubic-bezier(.16,1,.3,1) forwards !important; }
@keyframes spTurn { 0% { opacity: 0; transform: rotateY(-100deg) translateZ(40px); } 45% { opacity: 1; } 100% { opacity: 1; transform: rotateY(0) translateZ(40px); } }
.sp-sheen::before { animation: spSheenOnce 1.4s 1.5s cubic-bezier(.4,0,.2,1) 1 forwards !important; }
@keyframes spSheenOnce { from { left: -70%; } to { left: 140%; } }
/* rings sweep into place once and stay */
.sp-ring.r1 { animation: spRing1 1.8s .8s cubic-bezier(.16,1,.3,1) 1 both !important; }
.sp-ring.r2 { animation: spRing2 2.1s .95s cubic-bezier(.16,1,.3,1) 1 both !important; }
.sp-ring.r3 { animation: spRing3 1.6s 1.05s cubic-bezier(.16,1,.3,1) 1 both !important; }
@keyframes spRing1 { from { opacity: 0; transform: rotateX(72deg) rotateZ(-120deg) scale(.85); } to { opacity: 1; transform: rotateX(72deg) rotateZ(0) scale(1); } }
@keyframes spRing2 { from { opacity: 0; transform: rotateX(64deg) rotateY(14deg) rotateZ(140deg) scale(.85); } to { opacity: 1; transform: rotateX(64deg) rotateY(14deg) rotateZ(0) scale(1); } }
@keyframes spRing3 { from { opacity: 0; transform: rotateZ(-200deg); } to { opacity: 1; transform: rotateZ(0); } }
.sp-halo { animation: spHaloIn 1.6s .5s cubic-bezier(.22,.61,.36,1) forwards !important; }
.sp-shadow { animation: spRingIn 1.2s .8s cubic-bezier(.22,.61,.36,1) forwards !important; }
.sp-line::after { animation: spLoad 2.6s .4s cubic-bezier(.65,0,.35,1) forwards !important; }
.pl-stars { animation: none !important; opacity: .6 !important; }
/* short splash between pages */
html.quick-splash .sp-card { animation-duration: .9s !important; animation-delay: 0s !important; }
html.quick-splash .sp-emblem { animation-delay: .2s !important; animation-duration: .9s !important; }
html.quick-splash .sp-ring.r1, html.quick-splash .sp-ring.r2, html.quick-splash .sp-ring.r3 { animation-delay: .1s !important; animation-duration: 1s !important; }
html.quick-splash .sp-halo, html.quick-splash .sp-shadow { animation-delay: 0s !important; animation-duration: .8s !important; }
html.quick-splash .sp-sheen::before { animation-delay: .5s !important; animation-duration: .9s !important; }
html.quick-splash .sp-floor, html.quick-splash .sp-floor span { animation-delay: 0s !important; animation-duration: .9s !important; }
html.quick-splash .sp-line::after { animation-duration: .95s !important; animation-delay: 0s !important; }
/* transition veil: one smooth sweep, no spinning loop */
.pv-ring { animation: spRing3 1s cubic-bezier(.16,1,.3,1) 1 both !important; }
.pv-halo { animation: spHaloIn .8s cubic-bezier(.22,.61,.36,1) 1 both !important; }
.pg-veil { transition: opacity .45s cubic-bezier(.65,0,.35,1), visibility .45s !important; }
.pv-emb { transition: transform .6s cubic-bezier(.16,1,.3,1) !important; }

/* v155: "tap for sound" — only shown if a browser refuses to start a video with sound */
.v-unmute { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .82rem/1 var(--sans); color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467); box-shadow: 0 10px 24px -10px rgba(0,0,0,.7); }

/* v156: no ghost band — a hidden header drops its glass effect entirely (iOS Safari keeps painting backdrop-filter after a transform) */
.site-header.hide { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s, background .35s, color .35s !important; }
.site-header:not(.hide) { visibility: visible; }

/* v157: no loading bar on the splash or the page-transition veil */
.sp-line, .pv-line, .pl-bar { display: none !important; }

/* v158: Policy and Achievements pages both show all three tabs (Dasar & Polisi · Pencapaian · Kerja Lapangan) */
html[data-page="dasar"] #achTabs { display: inline-grid !important; }
html[data-page="pencapaian"] #achTabs [data-tab="policy"] { display: inline-flex !important; }
html[data-page="dasar"] #achTabs, html[data-page="pencapaian"] #achTabs { grid-template-columns: repeat(3, auto) !important; margin-bottom: 28px; }
@media (max-width: 599px) { html[data-page="dasar"] #achTabs, html[data-page="pencapaian"] #achTabs { display: grid !important; width: 100% !important; grid-template-columns: repeat(3, 1fr) !important; } }

/* v160: no shading overlay on card photos (two older rules combined into a hard line across the top 40%) */
.card .thumb::after, .press-img:not(.none)::after { content: none !important; display: none !important; }

/* v161: splash without the orbit rings behind the KN emblem — cleaner */
.sp-ring, .pv-ring { display: none !important; }


/* ===================== v164: Hubungi page — contact form (home shows a button to it) ===================== */
html[data-page="hubungi"] main > section:not(#hubungi):not(.page-banner) { display: none !important; }
html[data-page="hubungi"] #top, html[data-page="hubungi"] #sorotan { display: none !important; }
html[data-page="hubungi"] #hubungi .contact > div:first-child { display: none; }
html[data-page="hubungi"] #hubungi { padding-top: 44px !important; }
.cf { display: none; }
html[data-page="hubungi"] .cf { display: block; }
html[data-page="hubungi"] .cf-cta { display: none; }
.cf-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font: 700 .9rem/1 var(--sans);
  color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467); box-shadow: 0 14px 28px -14px rgba(184,145,58,.8); transition: transform .3s var(--ease); }
.cf-cta::after { content: "\2192"; } .cf-cta:hover { transform: translateY(-2px); }
#hubungi .contact { align-items: start; }
.cf { margin-top: 26px; padding: 26px; border-radius: 22px; background: var(--cd-bg, var(--bg-2)); border: 1px solid var(--cd-bd, var(--card-bd)); box-shadow: var(--cd-sh, var(--lift)); grid-column: 1 / -1; max-width: 820px; }
.cf-grid { display: grid; gap: 0 18px; }
@media (min-width: 700px) { .cf-grid { grid-template-columns: 1fr 1fr; } }
.cf label { display: block; margin: 0 0 16px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.cf input:not([type="checkbox"]), .cf select, .cf textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 500 1rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; transition: border-color .2s, box-shadow .2s; }
.cf textarea { resize: vertical; min-height: 140px; font-family: var(--read, var(--sans)); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-consent { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font: 500 .9rem/1.5 var(--sans) !important; color: var(--muted) !important; }
.cf-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.cf-send { margin-top: 4px; }
.cf-status { margin: 14px 0 0; font: 600 .92rem/1.5 var(--sans); }
.cf-status.good { color: #2e7d4f; } .cf-status.bad { color: #b3261e; }
:root[data-theme="dark"] .cf-status.good { color: #8fd3a8; } :root[data-theme="dark"] .cf-status.bad { color: #ff9b93; }


/* ===================== v166: Aduan · Maklum Balas · Hubungi — three forms, one modern layout ===================== */
html[data-page="aduan"] main > section:not(#hubungi):not(.page-banner), html[data-page="maklum-balas"] main > section:not(#hubungi):not(.page-banner) { display: none !important; }
html[data-page="aduan"] #top, html[data-page="aduan"] #sorotan, html[data-page="maklum-balas"] #top, html[data-page="maklum-balas"] #sorotan { display: none !important; }
html[data-page="aduan"] #hubungi .contact > div:first-child, html[data-page="maklum-balas"] #hubungi .contact > div:first-child { display: none; }
html[data-page="aduan"] #hubungi, html[data-page="maklum-balas"] #hubungi { padding-top: 44px !important; }
html[data-page="aduan"] #hubungi .socials, html[data-page="maklum-balas"] #hubungi .socials { display: none !important; }
.cf-wrap { display: none; grid-column: 1 / -1; width: 100%; max-width: 880px; }
html[data-page="hubungi"] .cf-wrap, html[data-page="aduan"] .cf-wrap, html[data-page="maklum-balas"] .cf-wrap { display: block; }
html[data-page="aduan"] .cf-cta, html[data-page="maklum-balas"] .cf-cta { display: none; }
.cf-wrap .cf { display: block !important; margin-top: 18px; }
.cf-wrap .cf[hidden], .cf-wrap .cf-done[hidden] { display: none !important; }
/* type cards */
.cf-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.cf-type { display: grid; justify-items: start; gap: 6px; padding: 18px 16px; text-align: left; cursor: pointer; border-radius: 18px; color: var(--ink);
  background: var(--cd-bg, var(--bg-2)); border: 1.5px solid var(--cd-bd, var(--card-bd)); box-shadow: var(--cd-sh, var(--lift));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .35s, background .25s; }
.cf-type svg { padding: 10px; box-sizing: content-box; border-radius: 14px; color: var(--gold-text); background: color-mix(in srgb, var(--gold) 14%, transparent); transition: background .25s, color .25s; }
.cf-type b { font: 700 1.02rem/1.2 var(--sans); }
.cf-type small { font: 500 .8rem/1.4 var(--sans); color: var(--muted); }
.cf-type:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.cf-type.on { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent), var(--cd-sh-h, var(--lift)); }
.cf-type.on svg { color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467); }
@media (max-width: 599px) { .cf-types { gap: 8px; } .cf-type { padding: 14px 10px; justify-items: center; text-align: center; } .cf-type small { display: none; } .cf-type b { font-size: .88rem; } }
/* show only the fields for the chosen type */
.cf-only { display: none !important; }
.cf-wrap[data-type="complaint"] .cf-only.complaint, .cf-wrap[data-type="feedback"] .cf-only.feedback, .cf-wrap[data-type="contact"] .cf-only.contact { display: block !important; }
.cf-wrap[data-type="complaint"] .cf-grid .cf-only.complaint { display: block !important; }
.cf fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.cf legend, .cf-l > span { display: block; margin-bottom: 8px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.cf-l { display: block; margin: 0 0 16px; }
.cf-to { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-wrap:not([data-type="complaint"]) .cf-to { display: none !important; }
.cf-to legend { grid-column: 1 / -1; }
.cf-choice { position: relative; display: block; cursor: pointer; }
.cf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cf-choice span { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.cf-choice b { font: 700 .95rem/1.25 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.cf-choice small { font: 500 .8rem/1.4 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.cf-choice input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--bg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.cf-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 599px) { .cf-to { grid-template-columns: 1fr; } }
/* star rating */
.cf-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin-bottom: 16px; }
.cf-stars label { cursor: pointer; margin: 0 !important; }
.cf-stars input { position: absolute; opacity: 0; pointer-events: none; }
.cf-stars span { font-size: 2.1rem; line-height: 1; color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color .2s, transform .2s; display: inline-block; }
.cf-stars label:hover span, .cf-stars label:hover ~ label span, .cf-stars input:checked ~ span, .cf-stars label:has(input:checked) ~ label span { color: #d6b467; }
.cf-stars label:has(input:checked) span { color: #d6b467; transform: scale(1.08); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* inputs, errors, send button */
.cf input:not([type="checkbox"]):not([type="radio"]), .cf select, .cf textarea { display: block; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 500 1rem/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; }
.cf-err input, .cf-err textarea, .cf-err select, fieldset.cf-err .cf-choice span { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217,83,79,.15) !important; }
fieldset.cf-err .cf-stars span { color: rgba(217,83,79,.5); }
label.cf-consent.cf-err span { color: #d9534f !important; }
.cf-send { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .95rem/1 var(--sans); color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467); box-shadow: 0 14px 28px -14px rgba(184,145,58,.8); transition: transform .3s, opacity .2s; }
.cf-send:hover { transform: translateY(-2px); } .cf-send:disabled { opacity: .6; cursor: wait; }
/* thank-you panel */
.cf-done { margin-top: 18px; padding: 40px 28px; text-align: center; border-radius: 22px; background: var(--cd-bg, var(--bg-2)); border: 1px solid var(--cd-bd, var(--card-bd)); box-shadow: var(--cd-sh, var(--lift));
  animation: cfIn .5s cubic-bezier(.16,1,.3,1); }
@keyframes cfIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cf-check { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold) 14%, transparent), 0 18px 36px -16px rgba(184,145,58,.8); animation: cfPop .6s .1s cubic-bezier(.16,1,.3,1) both; }
@keyframes cfPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-done h3 { margin: 22px 0 8px; font: 600 1.8rem/1.2 var(--serif); color: var(--ink); }
.cf-done-msg { max-width: 46ch; margin: 0 auto; color: var(--muted); font: 400 1.02rem/1.6 var(--read, var(--sans)); }
.cf-ref { margin: 18px auto 0; display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; font: 600 .9rem/1 var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.cf-ref[hidden] { display: none; }
.cf-ref b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--gold-text); }
.cf-again { display: block; margin: 22px auto 0; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.cf-again:hover { border-color: var(--gold); }


/* ===================== v167: complaint dropdown, +60 phone field, photo upload ===================== */
.cf-wrap[data-type="complaint"] label.cf-to { display: block !important; }
.cf-tel { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cf-tel b { display: grid; place-items: center; padding: 0 14px; font: 700 .95rem/1 var(--sans); color: var(--gold-text); background: color-mix(in srgb, var(--gold) 10%, transparent); border-right: 1px solid var(--line); }
.cf .cf-tel input, .cf-err .cf-tel input { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; min-width: 0; }
.cf-tel:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.cf-err .cf-tel { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.15); }
.cf-up input[type="file"] { display: none !important; }
.cf-drop { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer; border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 5%, var(--bg)); transition: border-color .2s, background .2s; }
.cf-drop:hover, .cf-drop.over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 11%, var(--bg)); }
.cf-drop svg { color: var(--gold-text); }
.cf-drop b { font: 700 .95rem/1.3 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.cf-drop small { font: 500 .8rem/1.4 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.cf-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 18px; }
.cf-thumbs[hidden] { display: none; }
.cf-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); animation: cfIn .35s cubic-bezier(.16,1,.3,1); }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.65); color: #fff; font: 700 15px/1 var(--sans); }


/* ===================== v167: footer — four columns, services, official links ===================== */
.f2-about .f2-brand { margin-bottom: 20px; }
.f2-about .f2-note { max-width: 36ch; }
.f2-list { grid-template-columns: 1fr 1fr; }
.f2-out { grid-template-columns: 1fr; }
.f2-out a { display: inline-flex; align-items: center; gap: 7px; }
.f2-ext { opacity: .55; transition: opacity .2s, transform .2s; }
.f2-out a:hover .f2-ext { opacity: 1; transform: translate(2px, -2px); }
.f2-svcs { display: grid; gap: 10px; }
.f2-svc { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .25s, border-color .25s, transform .25s; }
.f2-svc::after { display: none !important; }
.f2-svc:hover { background: rgba(214,180,103,.1); border-color: rgba(214,180,103,.45); transform: translateX(3px); }
.f2-svc-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #f0d898; background: rgba(214,180,103,.14); }
.f2-svc b { display: block; font: 700 .92rem/1.25 var(--sans); color: #fff; }
.f2-svc small { display: block; margin-top: 2px; font: 500 .76rem/1.35 var(--sans); color: rgba(255,255,255,.58); }
.f2-mini { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.f2-mini a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.f2-mini a:hover { color: #f0d898; }
.f2-mini a::after { display: none !important; }
@media (min-width: 700px) { .f2-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
@media (min-width: 1080px) { .f2-grid { grid-template-columns: 1.35fr 1fr 1.05fr 1fr; gap: 44px; } }
@media (max-width: 699px) { .f2-bottom { justify-content: center; text-align: center; } .f2-mini { justify-content: center; } }

.f2-top { display: none !important; } /* the floating back-to-top button already does this */

/* footer: three columns after removing the official-links column */
@media (min-width: 1080px) { .f2-grid { grid-template-columns: 1.4fr 1.1fr 1fr; gap: 56px; } }


/* ===================== v171: biography — stats, contents list, all chapters on one page ===================== */
#bio-start { position: relative; top: calc(-1 * var(--header-h)); }
.bio-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 4px; }
.bio-stat { position: relative; overflow: hidden; padding: 20px 18px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); }
.bio-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #f0d898, var(--gold), transparent); }
.bio-stat b { display: block; font: 600 clamp(1.6rem, 3vw, 2.1rem)/1 var(--serif); color: var(--gold-text); }
.bio-stat span { display: block; margin-top: 8px; font: 500 .82rem/1.4 var(--sans); color: var(--muted); }
@media (min-width: 760px) { .bio-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bio-chapters { display: grid; gap: 20px; margin-top: 26px; min-height: 0; }
.bio-ch { position: relative; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 72px); padding: 28px 28px 26px; border-radius: var(--card-r);
  background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); }
.bio-ch::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 140px; background: url("../img/logo-kn-mark.svg?v=5") no-repeat center / contain; opacity: .04; pointer-events: none; }
.bio-ch.now { border-color: color-mix(in srgb, var(--gold) 45%, var(--card-bd)); }
.bio-ch header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2, var(--line)); }
.bio-ch header i { font: 600 1rem/1 var(--serif); font-style: normal; color: var(--gold-text); letter-spacing: .04em; }
.bio-ch h3 { margin: 0; font: 600 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--serif); color: var(--ink); }
.bio-ch p { margin: 0 0 14px; font-family: var(--read, var(--sans)); font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.bio-ch p:last-child { margin-bottom: 0; }
.bio-ch .bio-lead { color: var(--ink); font-weight: 500; }
.bio-ch ul { list-style: none; margin: 0; padding: 0; }
.bio-ch li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line-2, var(--line)); color: var(--ink-2); line-height: 1.6; }
.bio-ch li:last-child { border-bottom: 0; padding-bottom: 0; }
.bio-ch li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.bio-ch li b { color: var(--ink); font-weight: 600; }
@media (max-width: 599px) { .bio-ch { padding: 22px 18px 20px; } }

/* contents: a card under the fact sheet on desktop, a sticky pill bar on phones */
.bio-toc-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font: 500 .9rem/1.3 var(--sans); transition: background .2s, color .2s; }
.bio-toc-list a::after { display: none !important; }
.bio-toc-list a i { min-width: 18px; font: 600 .74rem/1 var(--sans); font-style: normal; color: var(--muted); }
.bio-toc-list a:hover { color: var(--ink); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.bio-toc-list a.on { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--gold) 15%, transparent); }
.bio-toc-list a.on i { color: var(--gold-text); }
.bio-toc-h { margin: 2px 10px 8px; font: 800 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.bio-toc-d { display: none; }
.bio-toc-m { position: sticky; top: calc(var(--header-h) + 4px); z-index: 6; margin: 22px -16px 0; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bio-toc-m .bio-toc-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bio-toc-m .bio-toc-list::-webkit-scrollbar { display: none; }
.bio-toc-m .bio-toc-list a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: .85rem; }
.bio-toc-m .bio-toc-list a.on { border-color: var(--gold); }
.bio-toc-m .bio-toc-list a i { display: none; }
@media (min-width: 960px) {
  .bio-aside { align-self: stretch; }
  .factsheet { position: relative !important; top: auto !important; }
  .bio-side { position: sticky; top: calc(var(--header-h) + 24px); }
  .bio-toc-d { display: block; margin-top: 16px; padding: 14px 8px; border-radius: var(--card-r); background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--lift); }
  .bio-toc-d .bio-toc-list { display: grid; gap: 2px; }
  .bio-toc-m { display: none; }
}

/* ===================== v171: footer slogan — kicker + two balanced lines on every screen ===================== */
.f2-motto-in { display: grid; gap: 14px; min-width: 0; }
.f2-kick { display: inline-flex; align-items: center; gap: 12px; font: 800 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e3c784; }
.f2-kick::before { content: ""; flex: none; width: 34px; height: 1px; background: linear-gradient(90deg, #f0d898, var(--gold)); }
.f2-slogan { margin: 0; font: 600 clamp(1.5rem, 4.2vw, 2.6rem)/1.18 var(--serif); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.f2-slogan span { display: block; }
.f2-slogan span + span { color: #f0d898; }
.f2-motto p.f2-slogan { max-width: none; font-style: normal; }
@media (max-width: 599px) { .f2-kick { letter-spacing: .14em; } .f2-kick::before { width: 22px; } }

/* headline underline is a mouse-hover effect only; on touch screens it used to stay stuck after a tap */
@media (hover: none) { .card:hover h3, .story:hover h3, .ach-item:hover .ach-body strong, .press-card:hover .press-body strong { background-size: 0 1.5px; } }

/* contact CTA: short and compact, never full width */
.cf-cta { width: auto !important; max-width: max-content; justify-self: start; align-self: flex-start; padding: 11px 20px !important; font-size: .86rem !important; gap: 8px; }


/* ===================== v175: biography — motion and mobile ===================== */
/* key figures: rise in one by one, gold sheen passes once */
.bio-stats.reveal { opacity: 1; transform: none; }
.bio-stat { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s, border-color .35s; }
.bio-stats.in .bio-stat { opacity: 1; transform: none; }
.bio-stats.in .bio-stat:nth-child(2) { transition-delay: .1s; } .bio-stats.in .bio-stat:nth-child(3) { transition-delay: .2s; } .bio-stats.in .bio-stat:nth-child(4) { transition-delay: .3s; }
.bio-stat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(240,216,152,.16) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.bio-stats.in .bio-stat::after { animation: bioSheen 1.4s .5s var(--ease) both; }
.bio-stats.in .bio-stat:nth-child(2)::after { animation-delay: .62s; } .bio-stats.in .bio-stat:nth-child(3)::after { animation-delay: .74s; } .bio-stats.in .bio-stat:nth-child(4)::after { animation-delay: .86s; }
@keyframes bioSheen { to { transform: translateX(110%); } }
.bio-stat b { font-variant-numeric: tabular-nums lining-nums; }
@media (hover: hover) { .bio-stat:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--card-bd)); box-shadow: var(--lift-h, var(--lift)); } }

/* chapters: card rises, gold edge draws down, contents follow in sequence */
.bio-ch.reveal { transform: translateY(30px) scale(.985); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.bio-ch.reveal.in { transform: none; }
.bio-ch::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #f0d898, var(--gold) 45%, transparent); transform: scaleY(0); transform-origin: top; transition: transform 1.2s .25s var(--ease); }
.bio-ch.in::before { transform: scaleY(1); }
.bio-ch header { align-items: center; }
.bio-ch header i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #0b1430; font: 700 .9rem/1 var(--sans); letter-spacing: 0;
  background: linear-gradient(135deg, #f3dc9f, #d6b467); box-shadow: 0 10px 22px -12px rgba(184,145,58,.9); transform: scale(.6) rotate(-12deg); opacity: 0; transition: transform .7s .2s cubic-bezier(.34,1.56,.64,1), opacity .5s .2s; }
.bio-ch.in header i { transform: none; opacity: 1; }
.bio-ch:not(.in) p, .bio-ch:not(.in) li, .bio-ch:not(.in) .honour { opacity: 0; }
.bio-ch.in p, .bio-ch.in li, .bio-ch.in .honour { animation: bioUp .7s var(--ease) both; animation-delay: calc(.25s + var(--k, 0) * .06s); }
@keyframes bioUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bio-ch.in li::before { animation: bioDiamond .6s var(--ease) both; animation-delay: calc(.35s + var(--k, 0) * .06s); }
@keyframes bioDiamond { from { transform: rotate(-135deg) scale(0); } to { transform: rotate(45deg) scale(1); } }

/* fact sheet rows slide in */
.factsheet.reveal > div { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s; transition-delay: calc(.1s + var(--k, 0) * .06s); }
.factsheet.reveal.in > div { opacity: 1; transform: none; }

/* contents: active item gets a gold marker */
.bio-toc-d .bio-toc-list a { position: relative; }
.bio-toc-d .bio-toc-list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--gold); transform: translateY(-50%); transition: height .35s var(--ease); }
.bio-toc-d .bio-toc-list a.on::before { height: 60%; }

/* reading bar */
.bio-prog { position: fixed; left: 0; right: 0; top: 0; z-index: 1001; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #d6b467, #f3dc9f); box-shadow: 0 0 12px rgba(240,216,152,.6); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bio-prog.on { opacity: 1; }

/* ---- phones ---- */
@media (max-width: 959px) {
  /* portrait in the header on phones too */
  .page-hero[aria-label="Biografi"] .page-portrait { display: block; margin: 18px auto -1px; justify-self: center; position: relative; }
  .page-hero[aria-label="Biografi"] .page-portrait img { height: clamp(260px, 72vw, 360px); width: auto; max-width: 100%; display: block; margin: 0 auto;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-hero[aria-label="Biografi"] .page-portrait::before { content: ""; position: absolute; left: 50%; bottom: 6%; width: min(78vw, 320px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; z-index: -1;
    border: 1px solid rgba(214,180,103,.35); background: radial-gradient(closest-side, rgba(60,96,210,.35), transparent 75%); }
  .page-hero[aria-label="Biografi"] .scroll-cue { display: none; }
  /* fact sheet: two compact columns, labels above values */
  .factsheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding: 10px 18px 6px !important; }
  .factsheet div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .factsheet div:first-child { grid-column: 1 / -1; }
  .factsheet dt { padding-top: 0; font-size: .64rem; }
  .factsheet dd { font-size: .92rem; line-height: 1.4; }
  .factsheet > div:nth-last-child(2) { border-bottom: 0; }
  .bio-main > h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .bio-grid { gap: 28px; }
  /* contents bar: fades at the edge so it reads as scrollable */
  .bio-toc-m .bio-toc-list { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 30px; }
  .bio-toc-m .bio-toc-list a { padding: 9px 15px; min-height: 40px; display: inline-flex; align-items: center; }
  .bio-toc-m .bio-toc-list a.on { color: #0b1430; background: linear-gradient(135deg, #f3dc9f, #d6b467); border-color: transparent; }
  /* chapters */
  .bio-chapters { gap: 16px; }
  .bio-ch header { gap: 12px; }
  .bio-ch header i { width: 36px; height: 36px; border-radius: 11px; font-size: .8rem; }
  .bio-ch p { font-size: 1rem; line-height: 1.72; }
  .bio-ch li { font-size: .96rem; }
  .bio-stat { padding: 16px 14px 14px; }
  .bio-stat span { font-size: .76rem; }
}
@media (max-width: 599px) { .honours { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .bio-stat, .bio-ch.reveal, .bio-ch p, .bio-ch li, .bio-ch .honour, .bio-ch header i, .factsheet.reveal > div { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .bio-ch::before { transform: scaleY(1); transition: none; }
  .bio-stat::after { display: none; }
}

.bio-toc-m { background: color-mix(in srgb, var(--bg) 95%, transparent); box-shadow: 0 10px 18px -14px rgba(0,0,0,.6); }

/* ===================== v177: Galeri page — even grid instead of masonry, so no column ends short ===================== */
html[data-page="galeri"] .gallery { display: grid !important; columns: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-page="galeri"] .gallery button { margin: 0 !important; aspect-ratio: 4 / 3 !important; }
html[data-page="galeri"] .gallery button.g-wide { aspect-ratio: auto !important; }
html[data-page="galeri"] .gallery img { height: 100% !important; object-fit: cover !important; }
@media (min-width: 700px) { html[data-page="galeri"] .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { html[data-page="galeri"] .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.gallery button.g-wide img, .video-grid .g-wide img { object-position: 50% 35%; }

/* ===================== v179: homepage "Ikuti Perkembangan Terkini" — one framed panel ===================== */
html:not([data-page]) #hubungi, html[data-page=""] #hubungi { padding: clamp(56px, 8vw, 96px) 0 !important; }
html:not([data-page]) #hubungi .contact, html[data-page=""] #hubungi .contact {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; align-items: center;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "social" "cta";
  padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(214,180,103,.16), transparent 55%), linear-gradient(135deg, #14214d, #0b1430 70%);
  border: 1px solid rgba(214,180,103,.28); box-shadow: 0 40px 80px -48px rgba(0,0,0,.9);
}
html:not([data-page]) #hubungi .contact::after, html[data-page=""] #hubungi .contact::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 340px; height: 260px; z-index: -1; pointer-events: none;
  background: url("../img/logo-kn-mark.svg?v=5") no-repeat center / contain; opacity: .06; }
html:not([data-page]) #hubungi .contact > div:first-child, html[data-page=""] #hubungi .contact > div:first-child { grid-area: text; }
html:not([data-page]) #hubungi .contact h2, html[data-page=""] #hubungi .contact h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; margin-bottom: 14px; color: #fff; }
html:not([data-page]) #hubungi .contact .muted, html[data-page=""] #hubungi .contact .muted { max-width: 44ch; margin: 0; color: rgba(255,255,255,.72); }
html:not([data-page]) #hubungi .socials, html[data-page=""] #hubungi .socials { grid-area: social; }
html:not([data-page]) #hubungi .cf-cta, html[data-page=""] #hubungi .cf-cta { grid-area: cta; margin: 0 !important; }
html:not([data-page]) #hubungi .socials a, html[data-page=""] #hubungi .socials a { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
@media (hover: hover) { html:not([data-page]) #hubungi .socials a:hover, html[data-page=""] #hubungi .socials a:hover { transform: translateY(-4px); background: linear-gradient(135deg, #f0d898, var(--gold)); color: #0b1430; } }
@media (min-width: 900px) {
  html:not([data-page]) #hubungi .contact, html[data-page=""] #hubungi .contact {
    grid-template-columns: minmax(0, 1.25fr) auto; grid-template-areas: "text social" "text cta"; column-gap: 64px; row-gap: 22px; }
  html:not([data-page]) #hubungi .socials, html[data-page=""] #hubungi .socials { align-self: end; justify-content: flex-end; }
  html:not([data-page]) #hubungi .cf-cta, html[data-page=""] #hubungi .cf-cta { align-self: start; justify-self: end; }
  html:not([data-page]) #hubungi .contact > div:first-child, html[data-page=""] #hubungi .contact > div:first-child { padding-right: 32px; border-right: 1px solid rgba(255,255,255,.08); }
}

/* footer Khidmat Rakyat: plain links like Jelajah, one per line */
.f2-plain { grid-template-columns: 1fr !important; }

/* ===================== v183: Sorotan — every card the same size and aligned (no stagger) ===================== */
#hlTrack { align-items: stretch; }
#hlTrack .hl-card, #hlTrack .hl-card:nth-child(even) { margin-top: 0 !important; aspect-ratio: 4 / 5; align-self: flex-start; }
#hlTrack .hl-num { font-variant-numeric: tabular-nums lining-nums; }


/* ===================== v186: homepage on phones — previews become swipe rows (photo stays on top) ===================== */
@media (max-width: 599px) {
  html:not([data-page]) #feed, html:not([data-page]) #achList, html:not([data-page]) #pressList {
    display: flex !important; grid-template-columns: none !important; gap: 14px !important; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    margin: 0 -20px !important; padding: 6px 20px 20px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html:not([data-page]) #feed::-webkit-scrollbar, html:not([data-page]) #achList::-webkit-scrollbar, html:not([data-page]) #pressList::-webkit-scrollbar { display: none; }
  html:not([data-page]) #feed > *, html:not([data-page]) #achList > *, html:not([data-page]) #pressList > * {
    flex: 0 0 84% !important; max-width: 84%; min-width: 0; scroll-snap-align: start; margin: 0 !important; }
  html:not([data-page]) #achList > li > .ach-item, html:not([data-page]) #pressList > li > .press-card { height: 100%; }
  html:not([data-page]) #achList { padding-left: 20px !important; }
  html:not([data-page]) #achList::before { display: none !important; }
}

/* ===================== v187: biography "Kronologi" — clear break from the chapters, tidier timeline on phones ===================== */
#biografi > .container:not(.bio-grid) { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
#biografi .timeline-title { margin: 6px 0 clamp(22px, 3vw, 34px); }
@media (max-width: 599px) {
  .chrono { padding: 4px 0 8px; }
  .chrono::before, .chrono::after { left: 7px; }
  .chrono li { padding: 0 0 14px 30px; }
  .chrono li:last-child { padding-bottom: 0; }
  .chrono .dot { left: 0; top: 19px; width: 16px; height: 16px; }
  .chrono .c-card { padding: 15px 16px 14px; border-radius: 14px; }
  .chrono .y { font-size: 1.3rem; margin-bottom: 3px; }
  .chrono .t { font-size: .94rem; line-height: 1.5; }
}

/* footer brand: name sits under the logo, no description */
.f2-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.f2-brand b { margin: 0; font-size: 1.15rem; max-width: 22ch; }


/* ===================== v190: official office addresses + Google Maps directions ===================== */
.offices { margin-top: clamp(48px, 7vw, 80px); }
.off-head { margin-bottom: clamp(20px, 3vw, 30px); }
.off-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.off-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .off-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.off-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 48px -36px rgba(11,20,48,.45); }
.off-map { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.off-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.off-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.6vw, 26px); flex: 1; }
.off-tag { align-self: flex-start; font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.off-body h3 { margin: 0 0 4px; font: 600 clamp(1.15rem, 2vw, 1.35rem)/1.3 var(--serif); color: var(--ink); }
.off-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; text-decoration: none; }
.off-line svg { flex: none; margin-top: 2px; color: var(--kn); }
a.off-line { align-self: flex-start; }
@media (hover: hover) { a.off-line:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.off-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font: 600 .92rem/1 var(--sans); color: #0b1430; background: linear-gradient(135deg, #f0d898, var(--gold)); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.off-body .off-line + .off-go { margin-top: 10px; }
@media (hover: hover) { .off-go:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(214,180,103,.8); } }
:root[data-theme="dark"] .off-line svg { color: var(--gold-2); }
:root[data-theme="dark"] .off-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
@media (max-width: 599px) { .off-go { align-self: stretch; justify-content: center; } }

/* offices: only on the Hubungi page, as tabs; map beside the details on wide screens */
.offices { display: none; }
html[data-page="hubungi"] .offices { display: block; }
.off-tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.off-tabs::-webkit-scrollbar { display: none; }
.off-tab { flex: none; border: 0; cursor: pointer; padding: 11px 18px; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .9rem/1 var(--sans); white-space: nowrap; transition: background .3s, color .3s; }
.off-tab[aria-selected="true"] { background: linear-gradient(135deg, #f0d898, var(--gold)); color: #0b1430; }
@media (hover: hover) { .off-tab[aria-selected="false"]:hover { color: var(--ink); } }
.off-grid { grid-template-columns: minmax(0, 1fr) !important; }
.off-card[hidden] { display: none !important; }
.off-card:not([hidden]) { animation: offIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes offIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 820px) {
  .off-card { flex-direction: row; min-height: 340px; }
  .off-map { flex: 1.35; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .off-body { flex: 1; justify-content: center; padding: 36px; }
}
@media (max-width: 599px) { .off-tabs { display: flex; } .off-tab { flex: 1; padding: 11px 12px; font-size: .84rem; } }


/* ===================== v191: Video page — featured, even grid, then a TikTok row of portrait clips ===================== */
#videoRail .v-card.g-wide { grid-column: auto !important; }
html[data-page="video"] #videoRail .v-card { grid-column: auto; aspect-ratio: 16 / 10 !important; }
html[data-page="video"] #videoRail .v-card:first-child { grid-column: 1 / -1 !important; }
@media (min-width: 700px) { html[data-page="video"] #videoRail .v-card:first-child { aspect-ratio: 21 / 9 !important; } }
@media (max-width: 699px) { html[data-page="video"] #videoRail .v-card:first-child { aspect-ratio: 4 / 3 !important; } html[data-page="video"] #videoRail .v-card:first-child .v-body p { font-size: 1.25rem; } }

.tt-block { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid rgba(255,255,255,.1); }
.tt-block[hidden] { display: none; }
.tt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 3vw, 26px); }
.tt-head h3 { margin: 0; font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--serif); color: #fff; }
.tt-head .kicker { margin-bottom: 8px; }
.tt-follow { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font: 600 .86rem/1 var(--sans);
  color: #f0d898; border: 1px solid rgba(214,180,103,.45); transition: background .3s, color .3s; }
@media (hover: hover) { .tt-follow:hover { background: linear-gradient(135deg, #f0d898, var(--gold)); color: #0b1430; } }

.tt-rail { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .tt-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .tt-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tt-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.tt-card { aspect-ratio: 9 / 16 !important; width: 100%; cursor: pointer; }
.tt-card .v-body p { -webkit-line-clamp: 2; font-size: .92rem; }
.tt-card .play { width: 34px !important; height: 34px !important; }
.tt-card .play svg { width: 14px; height: 14px; }
.tt-badge { position: absolute; top: 12px; left: 12px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(7,13,34,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
/* homepage: one swipeable row */
html:not([data-page]) .tt-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 16px; }
html:not([data-page]) .tt-rail::-webkit-scrollbar { display: none; }
html:not([data-page]) .tt-card { flex: 0 0 clamp(150px, 42vw, 210px); scroll-snap-align: start; }
@media (max-width: 599px) {
  .tt-head { flex-wrap: wrap; align-items: flex-start; }
  .tt-follow { padding: 9px 13px; font-size: .8rem; }
  .tt-badge { top: 8px; left: 8px; width: 24px; height: 24px; }
}
/* video page on tablets: two columns read better than three */
@media (min-width: 700px) and (max-width: 959px) { html[data-page="video"] #videoRail { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }


/* ===================== v192: attachments — photos, videos and documents ===================== */
.cf-thumb.cf-file { width: auto; min-width: 0; max-width: 100%; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 40px 0 12px; background: var(--bg); }
.cf-thumb.cf-file i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--gold-text); background: color-mix(in srgb, var(--gold) 12%, transparent); font-style: normal; }
.cf-fn { display: grid; min-width: 0; line-height: 1.25; }
.cf-fn b { font: 600 .86rem/1.3 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; text-transform: none; letter-spacing: 0; }
.cf-fn small { font: 500 .74rem/1.3 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.cf-thumb.cf-file button { top: 50%; transform: translateY(-50%); right: 8px; background: color-mix(in srgb, var(--ink) 70%, transparent); }
@media (max-width: 599px) { .cf-thumb.cf-file { width: 100%; } .cf-fn b { max-width: none; } }
/* five social icons always stay on one row on phones */
@media (max-width: 599px) { #hubungi .socials { flex-wrap: nowrap !important; gap: 10px !important; } #hubungi .socials a { flex: 0 1 54px; width: auto !important; height: auto !important; aspect-ratio: 1; min-width: 0; padding: 0 !important; justify-content: center; } }
/* office tabs on phones: two equal halves, labels may wrap — nothing is cut off */
@media (max-width: 599px) {
  .off-tabs { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; overflow: visible; border-radius: 18px; gap: 4px; }
  .off-tab { white-space: normal; text-align: center; line-height: 1.25 !important; padding: 11px 10px !important; border-radius: 14px; font-size: .84rem !important; display: grid; place-items: center; }
}


/* ===================== v196: auto slideshow on photo thumbnails (stories with several photos) ===================== */
[data-ss] { position: relative; overflow: hidden; }
[data-ss] .ss-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0 !important; transition: opacity 1.1s ease !important; pointer-events: none; z-index: 0; }
[data-ss] .ss-f.on { opacity: 1 !important; }
[data-ss] > .badge-count, [data-ss] > .badge-play { z-index: 2; }
.ss-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 4px 6px; border-radius: 999px; background: rgba(7,13,34,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
.ss-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .35s ease, background .35s ease; }
.ss-dots i.on { width: 14px; border-radius: 3px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .ss-dots { display: none; } }
/* gallery tiles: same slideshow; caption stays above the photos, dots sit at the top */
.gallery [data-ss] .g-cap, .gallery button[data-ss] .g-cap { z-index: 2; }
.gallery .ss-dots { top: 10px; bottom: auto; left: auto; right: 10px; transform: none; }
/* related coverage cards: slideshow, count badge stays on top */
.rel-img[data-ss] .rel-n, .rel-img[data-ss] .rel-play { z-index: 2; }
.rel-img .ss-dots { bottom: 8px; }


/* ===================== v201: splash — Malaysian theme (Jalur Gemilang, songket, KL skyline); each fades in once ===================== */
.sp-my { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* a large, faint Jalur Gemilang across the sky, turned slightly in 3D */
.sp-flag { position: absolute; left: 50%; top: 40%; width: max(150vw, 1300px); aspect-ratio: 2 / 1; translate: -50% -50%;
  background: url("../img/jalur-gemilang.svg") center / 100% 100% no-repeat;
  transform: perspective(1200px) rotateX(12deg) rotateY(-16deg) rotateZ(-4deg); opacity: 0;
  -webkit-mask-image: radial-gradient(48% 52% at 50% 50%, #000 0%, rgba(0,0,0,.5) 45%, transparent 80%); mask-image: radial-gradient(48% 52% at 50% 50%, #000 0%, rgba(0,0,0,.5) 45%, transparent 80%);
  animation: spMyIn 1.8s .15s cubic-bezier(.22,.61,.36,1) forwards; --o: .17; }
/* songket weave: a gold texture, strongest near the emblem */
.sp-songket { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2256%22%20height%3D%2256%22%20viewBox%3D%220%200%2056%2056%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e3c784%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M28%202%2054%2028%2028%2054%202%2028Z%22%2F%3E%3Cpath%20d%3D%22M28%2012%2044%2028%2028%2044%2012%2028Z%22%20stroke-opacity%3D%22.7%22%2F%3E%3Cpath%20d%3D%22M28%2022%2034%2028%2028%2034%2022%2028Z%22%20fill%3D%22%23e3c784%22%20fill-opacity%3D%22.55%22%2F%3E%3Cpath%20d%3D%22M0%200%206%206M56%200%2050%206M0%2056%206%2050M56%2056%2050%2050%22%20stroke-opacity%3D%22.8%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e3c784%22%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%222%22%20r%3D%221.4%22%2F%3E%3Ccircle%20cx%3D%2254%22%20cy%3D%2228%22%20r%3D%221.4%22%2F%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%2254%22%20r%3D%221.4%22%2F%3E%3Ccircle%20cx%3D%222%22%20cy%3D%2228%22%20r%3D%221.4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 56px 56px repeat; opacity: 0;
  -webkit-mask-image: radial-gradient(55% 45% at 50% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(55% 45% at 50% 45%, #000 0%, transparent 75%);
  animation: spMyIn 1.6s .35s ease-out forwards; --o: .13; }
/* Kuala Lumpur skyline standing on the horizon */
.sp-kl { position: absolute; left: 50%; bottom: 42%; width: max(100vw, 1100px); height: auto; translate: -50% 0; opacity: 0;
  filter: brightness(.62) saturate(.9);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect;
  animation: spKlIn 1.6s .45s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes spMyIn { to { opacity: var(--o); } }
@keyframes spKlIn { from { opacity: 0; transform: translateY(18px); } to { opacity: .7; transform: none; } }
@media (max-width: 599px) { .sp-flag { width: 230vw; top: 38%; } .sp-kl { width: 210vw; bottom: 41%; } .sp-songket { background-size: 44px 44px; } }
.preloader.sp3d.open .sp-my { opacity: 0; transition: opacity .45s; }
html.quick-splash .sp-flag, html.quick-splash .sp-songket, html.quick-splash .sp-kl { animation-delay: 0s !important; animation-duration: .8s !important; }
@media (prefers-reduced-motion: reduce) { .sp-flag, .sp-songket, .sp-kl { animation-duration: .01s !important; animation-delay: 0s !important; } }
/* the skyline is an image inside the preloader: keep it full width (older .preloader img rule sets 150px) */
.preloader .sp-kl { width: max(100vw, 1100px) !important; max-width: none; }
@media (max-width: 599px) { .preloader .sp-kl { width: 210vw !important; } }
/* splash: no grid floor */
.sp-floor { display: none !important; }
/* skyline now stands on the bottom of the screen (the grid floor is gone), fading into the night at its foot */
.preloader .sp-kl { bottom: 0 !important; width: max(118vw, 1200px) !important; filter: brightness(.55) saturate(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(0deg, rgba(0,0,0,.35) 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(0deg, rgba(0,0,0,.35) 0%, #000 30%); }
@media (max-width: 599px) { .preloader .sp-kl { width: 240vw !important; } }
/* splash: no skyline (towers and city removed) */
.sp-kl { display: none !important; }
/* footer name: always one line — the size follows the column width (the name is ~16em wide) */
.f2-brand { container-type: inline-size; width: 100%; }
.f2-brand b { white-space: nowrap; max-width: none !important; font-size: min(1.3rem, 6cqi) !important; }

/* ===================== v207: dock — premium 3D navy glass with a domed gold pill ===================== */
.dock, :root[data-theme="dark"] .dock {
  --dk-cut: #f3dc9c;
  border: 1px solid transparent; border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(34,52,112,.92) 0%, rgba(15,25,62,.94) 55%, rgba(8,14,38,.96) 100%) padding-box,
    linear-gradient(180deg, rgba(246,226,168,.9), rgba(196,156,72,.35) 45%, rgba(120,88,30,.55)) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.28),           /* top bevel catching the light */
    inset 0 -3px 0 rgba(0,0,0,.35),                  /* the thickness of the slab underneath */
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 2px 0 rgba(4,8,24,.55),                         /* edge that sits on the page */
    0 10px 18px -6px rgba(4,8,24,.55),                /* contact shadow */
    0 30px 60px -18px rgba(4,8,24,.65);               /* soft ambient lift */
}
/* glassy sheen over the upper half */
.dock::before { inset: 1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 42%, transparent 52%),
              radial-gradient(90% 120% at 50% -30%, rgba(240,216,152,.22), transparent 60%) !important; }
.dock::after { left: 16% !important; right: 16% !important; background: linear-gradient(90deg, transparent, rgba(255,236,186,.95), transparent) !important; }
/* inactive icons and labels: soft silver */
.dock a, :root[data-theme="dark"] .dock a { color: rgba(214,223,246,.72); }
.dock a .dk-lb { color: rgba(214,223,246,.78); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.dock a.on .dk-lb, :root[data-theme="dark"] .dock a.on .dk-lb { color: #f6e2a8; }
.dock svg { filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); transition: transform .4s cubic-bezier(.3,1.4,.4,1), filter .3s; }
@media (hover: hover) { .dock a:hover:not(.on) { color: #fff; } .dock a:hover:not(.on) svg { transform: translateY(-2px); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); } }
/* the sliding gold pill: domed, polished and raised */
.dk-ind {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #f8e7b8 0%, #e3c784 40%, #c9a14c 75%, #a98132 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 3px rgba(110,78,18,.45), inset 0 0 0 1px rgba(255,240,200,.25),
    0 1px 0 rgba(90,62,12,.6), 0 6px 14px -4px rgba(184,145,58,.75), 0 12px 22px -10px rgba(0,0,0,.55) !important;
}
.dock a.on .dk-ic, :root[data-theme="dark"] .dock a.on .dk-ic { color: #0b1430; }
.dock a.on svg { filter: drop-shadow(0 1px 0 rgba(255,246,214,.7)); transform: translateY(-.5px); }
/* on wide screens the active label sits on the gold pill */
@media (min-width: 960px) { .dock a.on .dk-lb, :root[data-theme="dark"] .dock a.on .dk-lb { color: #0b1430; text-shadow: 0 1px 0 rgba(255,246,214,.6); } }
/* opening the dock: rises into place once */
.dock.ready { animation: dkRise .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes dkRise { from { opacity: 0; transform: translate(-50%, 18px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dock.ready { animation: none; } }

/* ===================== v208: dock — smaller, more compact (the gold pill follows the icon size) ===================== */
.dock { padding: 5px !important; border-radius: 24px !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
.dock a { min-height: 46px !important; gap: 2px !important; }
.dock .dk-ic { width: 40px !important; height: 26px !important; }
.dock svg { width: 20px; height: 20px; }
.dock .dk-lb { font-size: .6rem !important; }
@media (min-width: 600px) and (max-width: 959px) { .dock { width: min(420px, calc(100% - 48px)) !important; } }
@media (min-width: 960px) {
  .dock { padding: 5px 6px !important; border-radius: 22px !important; bottom: 16px !important; }
  .dock a { min-height: 38px !important; padding: 0 13px 0 5px !important; gap: 5px !important; }
  .dock .dk-ic { width: 30px !important; height: 28px !important; }
  .dock .dk-lb { font-size: .74rem !important; }
  .dk-ind { border-radius: 16px !important; }
}
@media (max-width: 599px) { .dock { width: min(400px, calc(100% - 24px)) !important; } }


/* ===================== v209: page headers — photo slideshow (slow zoom + crossfade), unique per page ===================== */
.page-banner.has-bg { min-height: clamp(300px, 46vh, 460px); display: flex; align-items: flex-end; isolation: isolate; }
.page-banner.has-bg > .container { position: relative; z-index: 2; width: calc(100% - 2 * var(--gutter)); max-width: 1200px; margin-inline: auto; }
.pb-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #070d22; }
.pb-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; transform: scale(1.14) translate3d(0, 0, 0);
  transition: opacity 1.8s ease; will-change: transform, opacity; }
.pb-bg img.on { opacity: 1; animation: pbKen 9s linear forwards; }
.pb-bg img:nth-child(even).on { animation-name: pbKen2; }
@keyframes pbKen { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
@keyframes pbKen2 { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.14) translate3d(1%, -1.5%, 0); } }
/* navy veil: deep on the left where the title sits, lighter on the right so the photo shows */
.pb-veil { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,11,30,.96) 0%, rgba(8,15,40,.86) 32%, rgba(10,19,52,.55) 62%, rgba(10,19,52,.3) 100%),
    linear-gradient(0deg, rgba(5,9,26,.92) 0%, rgba(5,9,26,0) 45%),
    radial-gradient(70% 90% at 90% 0%, rgba(214,180,103,.22), transparent 60%); }
.page-banner.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px); background-size: 3px 3px; }
/* slide progress: thin gold bars, bottom right */
.pb-bars { position: absolute; right: max(var(--gutter, 20px), calc((100% - 1200px) / 2)); bottom: 22px; z-index: 2; display: flex; gap: 6px; }
.pb-bars i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.pb-bars i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f0d898, #d6b467); transform: scaleX(0); transform-origin: left; }
.pb-bars i.on::after { animation: pbBar 6s linear forwards; }
@keyframes pbBar { to { transform: scaleX(1); } }
/* title: a touch more presence over the photos */
.page-banner.has-bg h1 { text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.page-banner.has-bg p { color: rgba(255,255,255,.88); text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.page-banner.has-bg h1, .page-banner.has-bg p, .page-banner.has-bg .crumbs { animation: pbIn .9s cubic-bezier(.16,1,.3,1) both; }
.page-banner.has-bg p { animation-delay: .12s; }
@keyframes pbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .page-banner.has-bg { min-height: 300px; }
  .pb-veil { background: linear-gradient(0deg, rgba(5,9,26,.96) 0%, rgba(8,15,40,.8) 45%, rgba(10,19,52,.5) 100%); }
  .pb-bars { bottom: 16px; } .pb-bars i { width: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pb-bg img.on, .pb-bars i.on::after, .page-banner.has-bg h1, .page-banner.has-bg p, .page-banner.has-bg .crumbs { animation: none; } .pb-bg img { transform: none; } }

/* page header text: comfortable spacing from the edges, the photo and the slide bars */
.page-banner.has-bg { padding: calc(var(--header-h) + 56px) 0 clamp(64px, 8vw, 88px) !important; }
.page-banner.has-bg > .container { padding-inline: clamp(4px, 1.5vw, 16px); }
.page-banner.has-bg .crumbs { margin-bottom: clamp(18px, 2.4vw, 26px); }
.page-banner.has-bg h1 { margin-bottom: clamp(12px, 1.6vw, 18px); }
.page-banner.has-bg p { max-width: 44ch; line-height: 1.65; }
@media (max-width: 599px) { .page-banner.has-bg { padding: calc(var(--header-h) + 40px) 0 60px !important; } }

/* endless header slideshow: one thin gold line fills for each photo (no fixed count) */
.pb-bars { display: none !important; }
.pb-line { position: absolute; right: max(var(--gutter, 20px), calc((100% - 1200px) / 2)); bottom: 24px; z-index: 2; width: 120px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.pb-line i { position: absolute; inset: 0; background: linear-gradient(90deg, #f0d898, #d6b467); transform: scaleX(0); transform-origin: left; animation: pbBar 6s linear forwards; }
.pb-bg img:not([src]) { visibility: hidden; }
@media (max-width: 599px) { .pb-line { width: 80px; bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .pb-line { display: none; } }
/* header slideshow: no progress line */
.pb-line { display: none !important; }

/* ===================== v216: story viewer — clean close button, modern premium slideshow controls ===================== */
/* close: a tidy glass circle inside the header bar; the focus ring is drawn inside the button so nothing overlaps or gets cut off */
.modal-close { width: 40px !important; height: 40px !important; top: calc(11px + env(safe-area-inset-top)) !important; right: 14px !important;
  background: rgba(255,255,255,.08) !important; border: 1px solid rgba(214,180,103,.45) !important; color: #f3dc9f !important;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); transition: background .25s, transform .25s cubic-bezier(.2,.8,.2,1), color .25s; }
.modal-close:hover { background: linear-gradient(135deg, #f0d898, var(--gold)) !important; color: #0b1430 !important; transform: rotate(90deg); }
.modal-close:focus { outline: none; }
.modal-close:focus-visible { outline: 2px solid #f0d898; outline-offset: -5px; }
.modal-close svg { width: 16px; height: 16px; }
.modal.text-only .modal-close { color: var(--ink) !important; background: var(--bg) !important; border-color: var(--line) !important; }
/* soft dark fade at the top of the photo so the controls always read clearly */
.m-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,13,.55), transparent); }
/* progress: slim segments across the full width */
.ss-bar { left: 16px !important; right: 16px !important; top: 14px !important; gap: 5px !important; }
.ss-seg { height: 3px !important; background: rgba(255,255,255,.25) !important; box-shadow: none !important; }
.ss-seg i { background: #fff !important; }
.ss-seg.v i { background: linear-gradient(90deg, #fff, #f0d898) !important; }
/* pause + counter: one glass pill */
.ss-top { left: 16px !important; top: 30px !important; gap: 0 !important; padding: 3px; border-radius: 999px; background: rgba(5,7,13,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
.ss-toggle { width: 30px !important; height: 30px !important; border: 0 !important; background: transparent !important; }
.ss-toggle:hover { background: rgba(255,255,255,.12) !important; transform: none !important; }
.m-stage.paused .ss-toggle { background: linear-gradient(135deg, #f0d898, var(--gold)) !important; color: #0b1430 !important; }
.ss-top .m-count { display: inline-block !important; background: none !important; padding: 0 10px 0 4px !important; font: 600 .76rem/1 var(--sans) !important; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
/* previous / next: frosted glass circles, quiet until needed */
.m-nav { width: 44px !important; height: 44px !important; background: rgba(5,7,13,.38) !important; border: 1px solid rgba(255,255,255,.2) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 10px 24px -12px rgba(0,0,0,.7);
  transition: background .25s, transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s !important; }
.m-nav.prev { left: 16px !important; } .m-nav.next { right: 16px !important; }
.m-nav:hover { background: rgba(255,255,255,.92) !important; color: #0b1430 !important; transform: scale(1.06); }
.m-nav:focus { outline: none; } .m-nav:focus-visible { outline: 2px solid #f0d898; outline-offset: 2px; }
@media (hover: hover) { .m-stage .m-nav { opacity: 0; } .m-stage:hover .m-nav, .m-stage:focus-within .m-nav { opacity: 1; } }
@media (hover: none) { .m-nav { width: 38px !important; height: 38px !important; background: rgba(5,7,13,.3) !important; } .m-nav.prev { left: 10px !important; } .m-nav.next { right: 10px !important; } }
/* thumbnails: rounded, the current one lifted with a gold frame */
.m-thumbs { gap: 8px !important; padding: 10px 12px !important; background: #070b16 !important; scroll-snap-type: x proximity; }
.m-thumbs button { flex: 0 0 64px !important; height: 48px !important; border-radius: 10px !important; border: 2px solid transparent !important; opacity: .45 !important; scroll-snap-align: center; }
.m-thumbs button:hover { opacity: .8 !important; }
.m-thumbs button.on { opacity: 1 !important; border-color: #e3c784 !important; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(214,180,103,.8); }
/* desktop viewer: breadcrumb bar runs across the top; photo on the left, story on the right */
@media (min-width: 960px) {
  .modal-body { grid-template-rows: auto minmax(0, 1fr); }
  .modal-body > .m-crumbs { grid-column: 1 / -1; grid-row: 1; }
  .modal-body > .m-media { grid-column: 1; grid-row: 2; min-height: 0; display: flex; flex-direction: column; background: #05070d; }
  .modal-body > .m-text { grid-column: 2; grid-row: 2; max-height: calc(100svh - 48px - 66px); }
  .modal.text-only .modal-body > .m-text { grid-column: 1 / -1; }
  .modal-body > .m-media .m-stage { flex: 1; }
  .modal-body > .m-media .ss-imgs > img, .modal-body > .m-media .m-stage img { max-height: calc(100svh - 48px - 66px - 70px); }
}
/* viewer: no thumbnail strip — the photo gets the space (arrows, swipe, counter and progress bars still move between photos) */
.m-thumbs { display: none !important; }
.ss-imgs > img, .m-stage img { max-height: 76svh; }
@media (min-width: 960px) { .modal-body > .m-media .ss-imgs > img, .modal-body > .m-media .m-stage img { max-height: calc(100svh - 48px - 66px) !important; } }
/* viewer: a soft, blurred copy of the current photo fills the space beside it — no empty black bars */
.ss-imgs { position: relative; overflow: hidden; isolation: isolate; }
.ss-imgs::before { content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none; background: var(--ssbg, none) center / cover no-repeat;
  filter: blur(30px) saturate(1.25) brightness(.55); transform: scale(1.08); transition: opacity .6s; }
.ss-imgs::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 90% at 50% 50%, transparent 40%, rgba(5,7,13,.45) 100%); }
.ss-imgs > img, .ss-imgs > .ss-vid { z-index: 1; }
.ss-imgs > img { filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

/* ===================== v220: footer — a slow photo slideshow behind a deep navy veil ===================== */
.site-footer.f2-has-bg { position: relative; isolation: isolate; overflow: hidden; }
.site-footer.f2-has-bg > .container, .site-footer.f2-has-bg > :not(.f2-bg) { position: relative; z-index: 1; }
.f2-bg { z-index: 0 !important; }
.f2-bg img { object-position: 50% 30%; }
.f2-bg img.on { animation-duration: 12s !important; }
.f2-bg .pb-veil { background:
  linear-gradient(180deg, rgba(6,10,28,.97) 0%, rgba(7,12,32,.86) 28%, rgba(7,12,32,.82) 60%, rgba(5,8,22,.97) 100%),
  radial-gradient(70% 60% at 85% 10%, rgba(214,180,103,.16), transparent 60%) !important; }
.f2-bg .pb-line { display: none !important; }
@media (max-width: 599px) { .f2-bg .pb-veil { background: linear-gradient(180deg, rgba(6,10,28,.97), rgba(7,12,32,.88) 40%, rgba(5,8,22,.97)) !important; } }

/* ===================== v221: Papan Pemuka Pilihan Raya (election dashboard) ===================== */
.pr-page { background: radial-gradient(120% 60% at 80% 0%, #15265e 0%, #0a1330 40%, #060b1f 100%); color: #e8ecf7; padding-bottom: 60px; }
.pr-page .page-banner.has-bg { min-height: 300px; }
.pr-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 26px; }
.pr-seg { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(214,180,103,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.pr-seg button { border: 0; background: none; color: #c9d2ea; font: 700 .86rem/1 var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.pr-seg button.on { background: linear-gradient(180deg, #f8e7b8, #d6b467 60%, #b8913a); color: #0b1430; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px -8px rgba(214,180,103,.8); }
.pr-sel { display: grid; gap: 5px; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.pr-sel select { appearance: none; min-width: 220px; padding: 12px 38px 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23e3c784' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff; font: 600 .92rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.pr-sel select option { color: #0b1430; }
.pr-years { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.pr-years::-webkit-scrollbar { display: none; }
.pr-years button { flex: none; position: relative; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #c9d2ea; padding: 9px 14px; border-radius: 12px; font: 700 .82rem/1 var(--sans); cursor: pointer; transition: all .25s; }
.pr-years button small { position: absolute; top: 3px; right: 5px; font-size: 7px; color: #e3c784; }
.pr-years button:hover { border-color: rgba(214,180,103,.5); color: #fff; }
.pr-years button.on { background: linear-gradient(180deg, #24397e, #13235a); border-color: #d6b467; color: #f3dc9f; box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.14); }
.pr-load { display: flex; align-items: center; gap: 12px; padding: 60px 0; justify-content: center; color: #c9d2ea; }
.pr-load i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: #e3c784; animation: prSpin .8s linear infinite; }
.pr-load.sm { padding: 16px 0; }
@keyframes prSpin { to { transform: rotate(360deg); } }
/* hero: summary + hemicycle */
.pr-hero3d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; margin-top: 14px; padding: clamp(20px, 3vw, 34px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(36,57,126,.55), rgba(10,18,48,.75)); border: 1px solid rgba(214,180,103,.25);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1); }
.pr-kick { font: 800 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e3c784; }
.pr-hero3d h2 { margin: 10px 0 10px; font: 600 clamp(1.6rem, 3.4vw, 2.5rem)/1.12 var(--serif); color: #fff; }
.pr-sub { margin: 0 0 18px; color: rgba(255,255,255,.82); line-height: 1.6; display: block; }
.pr-sub .pr-emb { vertical-align: middle; margin-right: 4px; }
.pr-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pr-kpis div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.pr-kpis small { display: block; color: rgba(255,255,255,.6); font: 600 .72rem/1.3 var(--sans); }
.pr-kpis b { display: block; margin-top: 4px; font: 600 1.55rem/1.1 var(--serif); color: #f3dc9f; font-variant-numeric: tabular-nums; }
.pr-kn { margin-top: 14px; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-align: left; padding: 14px 18px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(214,180,103,.55); background: linear-gradient(135deg, rgba(240,216,152,.16), rgba(214,180,103,.05)); color: #fff; }
.pr-kn span { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.pr-kn b { grid-row: 2; font: 600 1.05rem/1.3 var(--serif); }
.pr-kn i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 1.3rem; color: #e3c784; }
.pr-hemi-wrap { filter: drop-shadow(0 26px 30px rgba(0,0,0,.55)); }
.pr-hemi { width: 100%; height: auto; display: block; transform: perspective(900px) rotateX(18deg); transform-origin: 50% 100%; }
.pr-seat { opacity: 0; animation: prPop .5s cubic-bezier(.2,.9,.3,1.3) forwards; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes prPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.pr-hemi-n { font: 600 .22px var(--serif); fill: #fff; font-size: .2px; }
.pr-hemi-l { font: 800 .05px var(--sans); fill: #e3c784; letter-spacing: .02px; font-size: .055px; }
.pr-majline { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); margin: 14px 8% 0; }
.pr-majline span { position: absolute; left: 0; top: -3px; bottom: -3px; width: var(--w); border-right: 2px dashed #f3dc9f; }
.pr-majline small { position: absolute; right: 0; top: 10px; font-size: .72rem; color: rgba(255,255,255,.65); }
.pr-ref { text-align: center; color: rgba(255,255,255,.6); font-size: .78rem; margin: 8px 0 0; }
/* emblems: polished 3D badges in party colours (official logo files replace them when provided) */
.pr-emb { --s: 44px; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; position: relative;
  background: radial-gradient(120% 120% at 30% 22%, color-mix(in srgb, var(--c) 60%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.45), inset 0 -3px 5px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.85), 0 0 0 3px rgba(0,0,0,.15), 0 6px 12px -4px rgba(0,0,0,.6); }
.pr-emb::after { content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 36%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.pr-emb b { color: #fff; font: 800 calc(var(--s) * var(--fs, .34))/1 var(--sans); letter-spacing: -.02em; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.pr-emb.has-logo { background: #fff; } .pr-emb.has-logo img { width: 78%; height: 78%; object-fit: contain; position: relative; z-index: 1; }
.pr-emb.has-logo::after { display: none; }
/* coalition cards */
.pr-coal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.pr-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 16px; border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 24%, #101a40), #0b1430 70%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 22px 40px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); transform: perspective(700px) rotateX(0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pr-card:hover { transform: perspective(700px) rotateX(6deg) translateY(-4px); }
.pr-cn b { display: block; font: 800 1rem/1.1 var(--sans); color: #fff; } .pr-cn small { color: rgba(255,255,255,.6); font-size: .74rem; }
.pr-cs { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.pr-cs strong { font: 600 2.4rem/1 var(--serif); color: #fff; } .pr-cs span { color: rgba(255,255,255,.6); font-size: .82rem; }
.pr-cs em, .pr-card p em { font-style: normal; font-weight: 800; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
em.up, .up { color: #7ee2a0 !important; } em.down, .down { color: #ff9b9b !important; }
.pr-cv { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pr-cv span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); border-radius: 3px; }
.pr-card p { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: rgba(255,255,255,.75); }
/* panels */
.pr-panel { margin: 18px 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 50px -36px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.pr-panel h3 { margin: 0 0 16px; font: 800 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e3c784; }
.pr-panel h3 small { color: rgba(255,255,255,.55); letter-spacing: 0; }
.pr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .pr-grid2 > .pr-panel { margin: 0; }
.pr-stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.pr-stack span { width: var(--w); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 50%, color-mix(in srgb, var(--c) 75%, #000)); }
.pr-leg { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pr-leg li { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 10px; font-size: .86rem; }
.pr-leg li > i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pr-leg span { color: rgba(255,255,255,.7); text-align: right; } .pr-leg em { font-style: normal; font-weight: 700; color: #fff; min-width: 52px; text-align: right; }
.pr-close { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: c; }
.pr-close button, .pr-flips button { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #fff; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.pr-close button:hover, .pr-flips button:hover, .pr-row:hover { background: rgba(255,255,255,.08); border-color: rgba(214,180,103,.4); }
.pr-close em { font-style: normal; font-size: .76rem; color: rgba(255,255,255,.65); }
.pr-code { font: 800 .72rem/1 var(--sans); letter-spacing: .04em; color: #e3c784; padding: 4px 7px; border-radius: 7px; background: rgba(214,180,103,.12); white-space: nowrap; }
.pr-code.big { font-size: .9rem; padding: 6px 10px; }
.pr-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pr-st { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, transparent), transparent); color: #fff; cursor: pointer; display: grid; gap: 7px; }
.pr-st b { font: 700 .92rem/1.2 var(--sans); } .pr-st small { color: rgba(255,255,255,.6); font-size: .74rem; }
.pr-stbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); } .pr-stbar i { width: var(--w); background: var(--c); }
.pr-flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pr-flips button { grid-template-columns: auto auto auto 1fr; } .pr-flips i { font-style: normal; color: #e3c784; } .pr-flips span { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 3D map */
.pr-mapsec { overflow: hidden; }
.pr-map3d { position: relative; perspective: 1400px; padding: 10px 0 0; }
.pr-map-tilt { transform: rotateX(42deg) rotateZ(-4deg) scale(1.02); transform-origin: 50% 60%; transform-style: preserve-3d; animation: prMapIn 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes prMapIn { from { opacity: 0; transform: rotateX(60deg) rotateZ(-10deg) translateY(40px) scale(.94); } to { opacity: 1; transform: rotateX(42deg) rotateZ(-4deg) scale(1.02); } }
.pr-map3d svg { width: 100%; height: auto; display: block; overflow: visible; }
.pr-shadow use { fill: rgba(0,0,0,.55); filter: blur(10px); }
.pr-mst { cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .3s; }
.pr-mst .pr-face { stroke: rgba(255,255,255,.55); stroke-width: 1.2; stroke-linejoin: round; }
.pr-mst .pr-ext { stroke: none; }
.pr-mst:hover, .pr-mst.focus { transform: translateY(-10px); filter: drop-shadow(0 10px 8px rgba(0,0,0,.45)) brightness(1.12); }
.pr-mst.dim { filter: saturate(.3) brightness(.7); }
.pr-pin { fill: var(--c); stroke: #fff; stroke-width: 2.5; cursor: pointer; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }
.pr-map-note { text-align: center; color: rgba(255,255,255,.55); font-size: .78rem; margin: -6px 0 0; }
/* seat list */
.pr-seats-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pr-seats-h h3 { margin: 0 auto 0 0; }
.pr-seats-h input, .pr-seats-h select { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: 500 .88rem/1.2 var(--sans); }
.pr-seats-h input { min-width: min(320px, 100%); } .pr-seats-h select option { color: #0b1430; }
.pr-list { display: grid; gap: 6px; }
.pr-row { display: grid; grid-template-columns: 70px minmax(0, 1.6fr) auto minmax(110px, .8fr) minmax(120px, .8fr) 70px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,255,255,.07); border-left: 4px solid var(--c); background: rgba(255,255,255,.03); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.pr-row:hover { transform: translateX(3px); }
.pr-nm b { display: block; font: 700 .95rem/1.2 var(--sans); } .pr-nm small { color: rgba(255,255,255,.6); font-size: .76rem; }
.pr-maj b { display: block; font: 700 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; } .pr-maj small, .pr-to small { color: rgba(255,255,255,.55); font-size: .7rem; } .pr-maj em { font-style: normal; font-size: .76rem; color: #e3c784; }
.pr-chg { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; } .pr-chg em { font-style: normal; font: 800 .64rem/1 var(--sans); letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; }
.pr-chg em.flip { background: rgba(255,155,155,.16); color: #ffb0b0; } .pr-chg em.hold { background: rgba(126,226,160,.12); color: #9be3b4; }
.pr-chg small { font-size: .74rem; font-weight: 700; }
.pr-to { text-align: right; font-weight: 700; font-size: .9rem; } .pr-to small { display: block; }
.pr-row.up { grid-template-columns: 70px minmax(0, 1fr) auto auto; } .pr-embs { display: flex; gap: 4px; } .pr-row.up .pr-chg { flex-direction: row; align-items: center; gap: 6px; }
.pr-more { margin: 10px auto 0; display: block; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(214,180,103,.5); background: none; color: #f3dc9f; font-weight: 700; cursor: pointer; }
.pr-muted { color: rgba(255,255,255,.6); } .pr-muted.small, .small { font-size: .82rem; }
.pr-src { margin: 22px 0 0; font-size: .76rem; color: rgba(255,255,255,.5); line-height: 1.6; }
/* upcoming election */
.pr-count { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 16px; } .pr-count b { font: 600 3.4rem/1 var(--serif); color: #f3dc9f; } .pr-count span { color: rgba(255,255,255,.75); }
.pr-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pr-steps li { position: relative; padding-top: 18px; } .pr-steps li i { position: absolute; top: 4px; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); }
.pr-steps li.done i { background: linear-gradient(90deg, #f0d898, #d6b467); } .pr-steps b { display: block; font-size: .8rem; } .pr-steps small { color: rgba(255,255,255,.6); font-size: .72rem; }
/* seat drawer */
.pr-drawer { position: fixed; inset: 0; z-index: 1200; }
.pr-dr-back { position: absolute; inset: 0; background: rgba(3,6,18,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.pr-dr { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(18px, 3vw, 34px) 60px; color: #e8ecf7;
  background: linear-gradient(180deg, #121f4e, #070d22 60%); border-left: 1px solid rgba(214,180,103,.3); box-shadow: -30px 0 60px -20px rgba(0,0,0,.8); transform: translateX(100%); transition: transform .42s cubic-bezier(.16,1,.3,1); }
.pr-drawer.open .pr-dr { transform: none; } .pr-drawer.open .pr-dr-back { opacity: 1; }
body.pr-lock { overflow: hidden; }
.pr-dr-x { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(214,180,103,.45); background: rgba(255,255,255,.06); color: #f3dc9f; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.pr-dh { padding: 4px 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.pr-dh h3 { margin: 10px 0 4px; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); color: #fff; } .pr-dh p { margin: 0; color: rgba(255,255,255,.6); }
.pr-dk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.pr-dk div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); } .pr-dk small { display: block; color: rgba(255,255,255,.55); font-size: .7rem; } .pr-dk b { font: 700 1.05rem/1.3 var(--sans); color: #f3dc9f; }
.pr-cands { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.pr-cands li { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pr-cands li.win { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255,255,255,.03)); }
.pr-cands li b { display: block; font: 700 .95rem/1.25 var(--sans); } .pr-cands li small { color: rgba(255,255,255,.6); font-size: .76rem; }
.pr-cbar { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 7px; overflow: hidden; } .pr-cbar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); }
.pr-cands strong { text-align: right; font: 700 1rem/1.1 var(--sans); font-variant-numeric: tabular-nums; } .pr-cands strong small { display: block; font-weight: 600; }
.pr-cands li em { position: absolute; top: -8px; right: 12px; font-style: normal; font: 800 .6rem/1 var(--sans); letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; background: linear-gradient(180deg, #f8e7b8, #d6b467); color: #0b1430; }
.pr-prev, .pr-hist, .pr-dist { margin: 18px 0; } .pr-prev h4, .pr-hist h4, .pr-dist h4, .pr-dr h4 { margin: 0 0 10px; font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e3c784; }
.pr-dist h4 small { letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.55); }
.pr-prev p { margin: 0; line-height: 1.7; color: rgba(255,255,255,.8); } .pr-prev .pr-emb { vertical-align: middle; }
.pr-tl { display: flex; gap: 8px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; }
.pr-tli { flex: 0 0 64px; display: grid; justify-items: center; gap: 4px; text-align: center; } .pr-tli b { font-size: .76rem; } .pr-tli small { font-size: .68rem; color: rgba(255,255,255,.6); }
.pr-tlb { width: 18px; height: 70px; display: flex; align-items: flex-end; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; } .pr-tlb i { width: 100%; height: var(--h); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); }
.pr-dsum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .pr-dsum span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: .78rem; }
.pr-dq { width: 100%; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: 500 .88rem var(--sans); }
.pr-dtable { display: grid; gap: 6px; }
.pr-d { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.pr-d summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) auto 56px; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; border-left: 3px solid var(--c); }
.pr-d summary::-webkit-details-marker { display: none; }
.pr-dn b { display: block; font-size: .86rem; } .pr-dn small { color: rgba(255,255,255,.5); font-size: .7rem; }
.pr-dbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); } .pr-dbar i { width: var(--w); background: var(--c); }
.pr-dv { display: flex; gap: 6px; font-size: .74rem; font-variant-numeric: tabular-nums; } .pr-dv em { font-style: normal; color: color-mix(in srgb, var(--c) 55%, #fff); font-weight: 700; }
.pr-dt { text-align: right; font-size: .76rem; color: rgba(255,255,255,.7); }
.pr-d table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; }
.pr-d th { text-align: right; padding: 6px 10px; color: rgba(255,255,255,.55); font-weight: 700; border-top: 1px solid rgba(255,255,255,.07); } .pr-d th:first-child, .pr-d td:first-child { text-align: left; }
.pr-d td { text-align: right; padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.05); } .pr-d td.w { color: #fff; font-weight: 800; background: color-mix(in srgb, var(--c) 22%, transparent); }
@media (max-width: 900px) {
  .pr-hero3d { grid-template-columns: 1fr; } .pr-grid2 { grid-template-columns: 1fr; }
  .pr-row { grid-template-columns: 62px minmax(0, 1fr) auto; } .pr-row .pr-chg, .pr-row .pr-to { display: none; } .pr-row .pr-maj { grid-column: 2 / -1; display: flex; gap: 8px; align-items: baseline; }
  .pr-row.up { grid-template-columns: 62px minmax(0, 1fr); } .pr-row.up .pr-embs { grid-column: 2; }
  .pr-dk { grid-template-columns: repeat(2, 1fr); } .pr-steps { grid-template-columns: repeat(2, 1fr); }
  .pr-d summary { grid-template-columns: minmax(0, 1fr) 70px; } .pr-d summary .pr-dv, .pr-d summary .pr-dt { display: none; }
  .pr-map-tilt { transform: rotateX(34deg) rotateZ(-3deg); animation: none; }
  .pr-d table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .pr-seat, .pr-map-tilt { animation: none !important; opacity: 1; } }
.pr-sel[hidden] { display: none !important; }
/* dashboard numbers: clean sans-serif, lining and evenly spaced digits — easy to read at a glance */
.pr-kpis b, .pr-cs strong, .pr-count b, .pr-dk b, .pr-maj b, .pr-cands strong, .pr-to, .pr-leg span, .pr-leg em {
  font-family: var(--sans) !important; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; letter-spacing: -.01em; }
.pr-kpis b { font-weight: 700 !important; font-size: clamp(1.35rem, 2.2vw, 1.6rem) !important; color: #fff !important; }
.pr-kpis b::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, #f0d898, #b8913a); }
.pr-cs strong { font-weight: 800 !important; font-size: 2.2rem !important; letter-spacing: -.02em; }
.pr-count b { font-weight: 800 !important; font-size: 3rem !important; color: #f3dc9f; }
.pr-dk b { font-weight: 700 !important; color: #fff !important; }
.pr-hemi-n { font-family: var(--sans) !important; font-weight: 800; }
/* hemicycle as the Dewan Rakyat: chairs facing the Speaker */
.pr-seat { transform-box: view-box; }
.pr-chair { opacity: 0; animation: prChairIn .5s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: inherit; transform-box: fill-box; transform-origin: center; }
.pr-seat { animation: none !important; opacity: 1 !important; }
.pr-seat .pr-chair { animation-delay: var(--d); }
@keyframes prChairIn { from { opacity: 0; transform: translateY(-.04px) scale(.3); } to { opacity: 1; transform: none; } }
.pr-hemi-sp { font: 800 .03px var(--sans); font-size: .032px; letter-spacing: .006px; fill: #e3c784; }
@media (prefers-reduced-motion: reduce) { .pr-chair { animation: none; opacity: 1; } }
.pr-seat { transform-origin: 0 0 !important; transform-box: view-box !important; }
/* chamber: one light animation for the whole hemicycle (per-chair animation was too heavy) */
.pr-chair { animation: none !important; opacity: 1 !important; transform: none !important; }
.pr-hemi-wrap { filter: none !important; position: relative; animation: prHemiIn .9s cubic-bezier(.16,1,.3,1) both; }
.pr-hemi-wrap::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -4%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: -1; }
@keyframes prHemiIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pr-hemi-wrap { animation: none; } }


/* ===================== v228: typography — premium and easy to read ===================== */
/* headlines: Source Serif 4 (optical sizes, clear at every size) instead of the high-contrast display serif */
:root { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --read: "Source Serif 4", Georgia, serif; }
h1, h2, h3, h4, .split, .page-banner h1, .hero-title, .bio-name, .f2-slogan { font-optical-sizing: auto; }
h1, h2, .page-banner h1, .hero-title { font-weight: 600 !important; letter-spacing: -.018em; }
h3 { letter-spacing: -.01em; }
/* body & interface: slightly larger, steady rhythm, lining numbers */
body { font-size: 16.5px; line-height: 1.68; font-variant-numeric: lining-nums; text-rendering: optimizeLegibility; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .split { text-wrap: balance; }
.post-text p, .m-text .post-text p { font-family: var(--read); font-size: 1.07rem; line-height: 1.78; letter-spacing: .002em; }
.post-text p.lead { font-size: 1.16rem; line-height: 1.7; }
.card h3, .story h3, .v-body p, .ach-item strong, .press-card h3, .hl-card h3, .g-txt { font-weight: 600; letter-spacing: -.008em; }
.card-ex, .muted, .page-banner p { line-height: 1.68; }
.kicker { letter-spacing: .16em; }
time, .date { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 599px) { body { font-size: 16px; } .post-text p, .m-text .post-text p { font-size: 1.04rem; line-height: 1.75; } }


/* ===================== v229: state cards with flags; official logos where available ===================== */
.pr-flag { --fw: 46px; position: relative; flex: none; display: inline-block; width: var(--fw); aspect-ratio: 2 / 1; border-radius: 5px; overflow: hidden; vertical-align: middle;
  transform: perspective(240px) rotateY(-14deg); box-shadow: 0 8px 16px -8px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.22); background: #22305e; }
.pr-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-flag i { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.28) 0%, transparent 22%, rgba(0,0,0,.18) 38%, rgba(255,255,255,.16) 55%, transparent 72%, rgba(0,0,0,.22) 100%); }
.pr-flag.none { display: inline-grid; place-items: center; background: linear-gradient(135deg, #2b3f86, #121d47); } .pr-flag.none b { color: #f3dc9f; font: 800 .72rem/1 var(--sans); letter-spacing: .06em; }
.pr-flag.big { --fw: 64px; margin: 0 12px 10px 0; }
.pr-dh .pr-flag { --fw: 54px; margin: 0 10px 0 0; }
.pr-states { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 12px !important; }
.pr-st { position: relative; overflow: hidden; display: grid !important; gap: 12px !important; padding: 16px !important; border-radius: 18px !important;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 20%, #121c44), #0a1230 75%) !important; border: 1px solid color-mix(in srgb, var(--c) 40%, rgba(255,255,255,.08)) !important;
  box-shadow: 0 20px 36px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.pr-st::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); opacity: .5; pointer-events: none; }
.pr-st:hover { transform: translateY(-3px) perspective(800px) rotateX(4deg); box-shadow: 0 28px 44px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(214,180,103,.45), inset 0 1px 0 rgba(255,255,255,.1); }
.pr-st-h { display: flex; align-items: center; gap: 12px; }
.pr-st-n { flex: 1; min-width: 0; } .pr-st-n b { display: block; font: 700 1rem/1.2 var(--sans) !important; color: #fff; } .pr-st-n small { color: rgba(255,255,255,.6); font-size: .76rem; }
.pr-ring { --p: 0; position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: conic-gradient(#e3c784 calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.pr-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0d1638; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.pr-ring em, .pr-ring small { position: relative; font-style: normal; } .pr-ring em { font: 800 .8rem/1 var(--sans); color: #fff; margin-top: 6px; } .pr-ring small { font-size: .5rem; color: rgba(255,255,255,.55); margin-top: -10px; text-transform: uppercase; letter-spacing: .06em; }
.pr-st .pr-stbar { height: 10px !important; border-radius: 5px; box-shadow: inset 0 2px 3px rgba(0,0,0,.45); }
.pr-st .pr-stbar i { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)) !important; }
.pr-st-leg { display: flex; flex-wrap: wrap; gap: 6px; } .pr-st-leg span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); }
.pr-st-leg b { font: 800 .8rem/1 var(--sans); color: #fff; }
.pr-st > small { display: none; }


/* coalition cards: the winner gets its own full row; the rest share rows that always fill completely */
.pr-coal { display: flex !important; flex-wrap: wrap; gap: 14px; }
.pr-coal .pr-card { flex: 1 1 230px; min-width: 0; }
.pr-coal .pr-card.lead { flex-basis: 100%; grid-template-columns: auto 1fr auto; grid-template-areas: "emb name seats" "bar bar bar" "vote vote vote"; padding: 22px 24px; gap: 10px 18px; }
.pr-card.lead > .pr-emb { grid-area: emb; } .pr-card.lead .pr-cn { grid-area: name; } .pr-card.lead .pr-cs { grid-area: seats; grid-column: auto; justify-self: end; }
.pr-card.lead .pr-seatbar { grid-area: bar; } .pr-card.lead .pr-cv { display: none; } .pr-card.lead p { grid-area: vote; }
.pr-card.lead .pr-cn b { font-size: 1.35rem; } .pr-card.lead .pr-cn small { font-size: .9rem; }
.pr-card.lead .pr-cs strong { font-size: 3.4rem !important; }
.pr-verdict { display: inline-block; margin-top: 8px; padding: 5px 11px; border-radius: 999px; font: 700 .78rem/1 var(--sans); color: #0b1430; background: linear-gradient(180deg, #f8e7b8, #d6b467); }
.pr-seatbar { position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.1); box-shadow: inset 0 2px 4px rgba(0,0,0,.45); }
.pr-seatbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 7px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); }
.pr-seatbar b { position: absolute; left: var(--m); top: -5px; bottom: -5px; width: 2px; background: #f3dc9f; box-shadow: 0 0 8px rgba(243,220,159,.8); }
@media (max-width: 599px) {
  .pr-coal .pr-card.lead { grid-template-columns: auto 1fr; grid-template-areas: "emb name" "seats seats" "bar bar" "vote vote"; }
  .pr-card.lead .pr-cs { justify-self: start; } .pr-card.lead .pr-cs strong { font-size: 2.8rem !important; }
  .pr-coal .pr-card { flex-basis: 100%; }
}
/* seat count style must not reach the text inside an emblem */
.pr-st-leg b { font: inherit; }
.pr-st-leg > span > b { font: 800 .8rem/1 var(--sans); color: #fff; }
.pr-emb > b { font: 800 calc(var(--s) * var(--fs, .34))/1 var(--sans) !important; color: #fff !important; }
/* turnout ring: only the figure sits inside the circle; the label sits underneath — nothing overlaps */
.pr-ring { width: auto !important; height: auto !important; background: none !important; display: grid !important; justify-items: center; gap: 5px; }
.pr-ring::before { content: none !important; }
.pr-ring em { position: relative; display: grid !important; place-items: center; width: 54px; height: 54px; margin: 0 !important; border-radius: 50%;
  font: 800 .82rem/1 var(--sans) !important; color: #fff; font-variant-numeric: tabular-nums;
  background: radial-gradient(closest-side, #0d1638 78%, transparent 80%), conic-gradient(#e3c784 calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.pr-ring small { position: static !important; margin: 0 !important; font: 700 .58rem/1 var(--sans) !important; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
/* big figures never outgrow their box on small screens */
.pr-kpis div { min-width: 0; } .pr-kpis b { font-size: clamp(1.1rem, 5.2vw, 1.6rem) !important; overflow-wrap: anywhere; }
@media (max-width: 380px) { .pr-kpis b { font-size: 1.05rem !important; } }
/* closed district rows: their stream table takes no space and no layout */
.pr-d:not([open]) > table { display: none; }
/* seat panel: its own top bar holds the close button — content scrolls under it, never behind the button */
.pr-dr { padding-top: 0 !important; }
.pr-dr-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 calc(-1 * clamp(18px, 3vw, 34px)) 14px; padding: 12px clamp(18px, 3vw, 34px);
  background: rgba(14,24,62,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(214,180,103,.22); }
.pr-dr-top span { font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e3c784; }
.pr-dr-top .pr-dr-x { position: static !important; float: none !important; flex: none; }
.pr-d td:first-child, .pr-d th:first-child { white-space: nowrap; }


/* ===================== v235: seat panel — every section is a tidy card with the same spacing ===================== */
.pr-dr #prDrBody { display: grid; gap: 14px; }
.pr-dr #prDrBody > * { margin: 0 !important; }
.pr-dh { padding: 0 0 14px !important; }
.pr-dh > .pr-flag, .pr-dh > .pr-code { vertical-align: middle; }
.pr-dk { gap: 10px !important; }
.pr-dk div { padding: 12px 14px !important; }
.pr-prev, .pr-hist, .pr-dist { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.pr-prev h4, .pr-hist h4, .pr-dist h4, .pr-dr #prDrBody > h4 { margin: 0 0 12px !important; }
.pr-prev-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pr-prev-h small, .pr-prev-k small { display: block; color: rgba(255,255,255,.55); font: 600 .7rem/1.3 var(--sans); }
.pr-prev-h b { display: block; font: 700 1rem/1.3 var(--sans); color: #fff; margin-top: 2px; }
.pr-prev-h em { font-style: normal; font: 800 .64rem/1 var(--sans); letter-spacing: .08em; padding: 6px 9px; border-radius: 8px; }
.pr-prev-h em.hold { background: rgba(126,226,160,.14); color: #9be3b4; } .pr-prev-h em.flip { background: rgba(255,155,155,.16); color: #ffb0b0; }
.pr-prev-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.pr-prev-k b { display: block; margin-top: 4px; font: 700 1.05rem/1.2 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.pr-cands { margin: 0 !important; }
.pr-cands li { padding: 14px 16px !important; gap: 14px !important; }
.pr-tl { padding: 4px 2px 2px; gap: 10px; }
.pr-dsum { margin-bottom: 12px !important; }
.pr-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(214,180,103,.1); color: #f3dc9f; }
@media (max-width: 599px) { .pr-prev, .pr-hist, .pr-dist { padding: 14px; } .pr-prev-k b { font-size: .95rem; } .pr-dk div { padding: 10px 12px !important; } }
.pr-d td.no { text-align: center !important; font-weight: 800; color: #e3c784; width: 64px; }
.pr-d th:first-child { text-align: center !important; width: 64px; }
/* seat panel never scrolls sideways; wide stream tables scroll inside their own card */
.pr-dr { overflow-x: hidden !important; }
.pr-d { max-width: 100%; }
.pr-d > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pr-dr #prDrBody { grid-template-columns: minmax(0, 1fr); } .pr-dr #prDrBody > * { min-width: 0; }
.pr-dtable, .pr-d { min-width: 0; }


/* ===================== v239: interactive 3D map ===================== */
.pr-mapwrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 18px; align-items: stretch; }
.pr-map3d { position: relative; perspective: 1500px; border-radius: 20px; overflow: hidden; padding: 18px 10px 8px; touch-action: pan-y; cursor: grab;
  background: radial-gradient(80% 70% at 50% 40%, rgba(46,86,170,.35), transparent 70%), linear-gradient(180deg, #0c1a45, #070f2c); border: 1px solid rgba(255,255,255,.08); }
.pr-map3d:active { cursor: grabbing; }
.pr-sea { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(120,160,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.08) 1px, transparent 1px); background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); }
.pr-map-tilt { transition: transform .5s cubic-bezier(.2,.8,.2,1); animation: none !important; transform: rotateX(42deg) rotateZ(-4deg); }
.pr-mst { transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .3s; outline: none; }
.pr-mst:hover { transform: translateY(-12px); filter: drop-shadow(0 12px 10px rgba(0,0,0,.5)) brightness(1.15); }
.pr-mst.focus { transform: translateY(-22px); filter: drop-shadow(0 18px 14px rgba(0,0,0,.55)) brightness(1.2); }
.pr-mst.focus .pr-face { stroke: #f3dc9f; stroke-width: 2.4; }
.pr-mst:focus-visible .pr-face { stroke: #f3dc9f; stroke-width: 3; }
.pr-pin { cursor: pointer; } .pr-pin circle:last-child { fill: var(--c); stroke: #fff; stroke-width: 2.5; }
.pr-pin-halo { fill: none; stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 2; opacity: .6; transform-box: fill-box; transform-origin: center; animation: prPulse 2.4s ease-out 3; }
.pr-pin.focus circle:last-child { stroke: #f3dc9f; stroke-width: 3.5; }
@keyframes prPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.pr-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: rgba(7,13,34,.92); border: 1px solid rgba(214,180,103,.4); box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); color: #fff; max-width: 240px; }
.pr-tip .pr-flag { grid-row: 1 / 3; --fw: 36px; } .pr-tip b { font: 700 .88rem/1.2 var(--sans); } .pr-tip small { color: rgba(255,255,255,.7); font-size: .74rem; }
.pr-map-note { margin: 4px 0 6px !important; }
.pr-mapcard { border-radius: 20px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.pr-mc h4 { margin: 4px 0 2px; font: 600 1.4rem/1.2 var(--serif); color: #fff; } .pr-mc-sub { margin: 0 0 14px; color: rgba(255,255,255,.65); font-size: .86rem; }
.pr-mc .pr-flag.big, .pr-mc-empty .pr-flag.big { --fw: 72px; margin: 0 0 10px; }
.pr-stbar.big { height: 12px; border-radius: 6px; margin-bottom: 14px; }
.pr-mc-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pr-mc-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pr-mc-list li span b { display: block; font: 700 .88rem/1.2 var(--sans); } .pr-mc-list li span small { color: rgba(255,255,255,.55); font-size: .72rem; }
.pr-mc-list li strong { font: 800 1.1rem/1 var(--sans); color: #fff; }
.pr-mc-go { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(214,180,103,.5); background: linear-gradient(135deg, rgba(240,216,152,.16), rgba(214,180,103,.05)); color: #f3dc9f; font: 700 .88rem/1 var(--sans); cursor: pointer; }
.pr-mc-empty { display: grid; justify-items: start; gap: 6px; } .pr-mc-empty b { font: 700 1.05rem/1.2 var(--sans); color: #fff; } .pr-mc-empty p { margin: 0; color: rgba(255,255,255,.65); font-size: .86rem; }
.pr-mapleg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .pr-mapleg span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.05); }
.pr-mapleg b { font: 700 .8rem/1 var(--sans); } .pr-mapleg small { color: rgba(255,255,255,.55); font-size: .72rem; }
@media (max-width: 900px) { .pr-mapwrap { grid-template-columns: 1fr; } .pr-map-tilt { transform: rotateX(34deg) rotateZ(-3deg); } }
@media (prefers-reduced-motion: reduce) { .pr-map-tilt, .pr-mst { transition: none; } .pr-pin-halo { animation: none; } }


/* ===================== v240: Pusat Analisis BN & UMNO ===================== */
.pr-views { display: inline-flex; gap: 6px; margin-top: 24px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(214,180,103,.3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pr-views button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 10px 16px; border-radius: 12px; background: none; color: #c9d2ea; font: 700 .88rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.pr-views button .pr-emb { --s: 22px; } .pr-views button .pr-emb + .pr-emb { margin-left: -8px; }
.pr-views button.on { background: linear-gradient(180deg, #24397e, #13235a); color: #f3dc9f; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px -12px rgba(0,0,0,.8); }
.pr-bar[hidden], .container[hidden] { display: none !important; }
.pr-ana-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 18px; padding: clamp(20px, 3vw, 30px); border-radius: 24px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(31,63,158,.55), transparent 60%), radial-gradient(60% 120% at 100% 0%, rgba(200,16,46,.35), transparent 60%), linear-gradient(160deg, #101d4c, #090f2a);
  border: 1px solid rgba(214,180,103,.3); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1); }
.pr-ana-t { display: flex; align-items: center; gap: 18px; } .pr-ana-embs { display: flex; } .pr-ana-embs .pr-emb + .pr-emb { margin-left: -14px; }
.pr-ana-t h2 { margin: 6px 0 4px; font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--serif); color: #fff; } .pr-ana-t p { margin: 0; color: rgba(255,255,255,.7); font-size: .88rem; }
.pr-ana-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.pr-ana-k > div { position: relative; overflow: hidden; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, #101a40), #0a1230 75%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 22px 40px -26px rgba(0,0,0,.9); }
.pr-ana-k small { display: block; color: rgba(255,255,255,.65); font: 700 .74rem/1.2 var(--sans); }
.pr-ana-k b { display: inline-block; margin: 8px 8px 4px 0; font: 800 2.2rem/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; } .pr-ana-k b i { font-style: normal; font-size: 1rem; color: rgba(255,255,255,.55); font-weight: 700; }
.pr-ana-k em { font-style: normal; font: 800 .78rem/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.1); vertical-align: middle; }
.pr-ana-k span:not(.pr-mini) { display: block; color: rgba(255,255,255,.6); font-size: .76rem; margin-top: 4px; }
.pr-mini { position: relative; display: block; height: 8px; margin-top: 10px; border-radius: 4px; background: rgba(255,255,255,.1); }
.pr-mini i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); }
.pr-mini u { position: absolute; left: var(--m); top: -4px; bottom: -4px; width: 2px; background: #f3dc9f; }
.pr-trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.pr-gl { stroke: rgba(255,255,255,.07); } .pr-gt { fill: rgba(255,255,255,.45); font: 600 12px var(--sans); }
.pr-mjl { stroke: #f3dc9f; stroke-dasharray: 6 6; stroke-width: 1.5; opacity: .7; }
.pr-tb { cursor: pointer; } .pr-tb .b1 { fill: color-mix(in srgb, #1f3f9e 85%, #fff); opacity: .8; } .pr-tb .b2 { fill: #c8102e; opacity: .85; }
.pr-tb:hover .b1, .pr-tb.on .b1 { opacity: 1; filter: brightness(1.25); } .pr-tb.on .pr-tx { fill: #f3dc9f; font-weight: 800; }
.pr-tx { fill: rgba(255,255,255,.6); font: 600 12px var(--sans); } .pr-tv { fill: #fff; font: 800 12px var(--sans); }
.l1 { fill: none; stroke: #f3dc9f; stroke-width: 3; } .l1-d { fill: #f3dc9f; } .l2 { fill: none; stroke: #ff8fa0; stroke-width: 2.5; stroke-dasharray: 2 0; } .l2-d { fill: #ff8fa0; }
.pr-legend2 { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; font-size: .78rem; color: rgba(255,255,255,.7); } .pr-legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.pr-legend2 i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; } .pr-legend2 .b1 { background: #4f6bbd; } .pr-legend2 .b2 { background: #c8102e; } .pr-legend2 .l1 { height: 3px; background: #f3dc9f; } .pr-legend2 .l2 { height: 3px; background: #ff8fa0; } .pr-legend2 .mj { height: 0; border-top: 2px dashed #f3dc9f; }
.pr-tg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-tg button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); color: #fff; text-align: left; cursor: pointer; }
.pr-tg button:hover { background: rgba(255,255,255,.08); border-color: rgba(214,180,103,.4); }
.pr-tg-n b { display: block; font: 700 .9rem/1.2 var(--sans); } .pr-tg-n small { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); font-size: .74rem; margin-top: 3px; }
.pr-tg-g { text-align: right; } .pr-tg-g b { display: block; font: 800 .98rem/1 var(--sans); color: #9be3b4; font-variant-numeric: tabular-nums; } .pr-tg-g.warn b { color: #ffb0b0; } .pr-tg-g.good b { color: #f3dc9f; }
.pr-tg-g small { color: rgba(255,255,255,.55); font-size: .7rem; }
.pr-bst { display: grid; gap: 8px; }
.pr-bst-r { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; } .pr-bst-r .pr-flag { --fw: 34px; }
.pr-bst-n b { display: block; font: 700 .86rem/1.2 var(--sans); } .pr-bst-n small { color: rgba(255,255,255,.55); font-size: .72rem; }
.pr-bst-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; } .pr-bst-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #4f6bbd, #1f3f9e); border-radius: 4px; }
.pr-bst-v { text-align: right; min-width: 56px; } .pr-bst-v b { display: block; font: 800 .86rem/1 var(--sans); } .pr-bst-v small { font: 700 .7rem/1 var(--sans); }
.pr-tblwrap { overflow-x: auto; } .pr-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; min-width: 680px; }
.pr-tbl th { text-align: right; padding: 8px 10px; color: rgba(255,255,255,.55); font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; } .pr-tbl th:first-child, .pr-tbl td:first-child { text-align: left; }
.pr-tbl td { text-align: right; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.05); } .pr-tbl td small { display: block; color: rgba(255,255,255,.5); font-size: .7rem; }
.pr-tbl tr { cursor: pointer; } .pr-tbl tr:hover td { background: rgba(255,255,255,.04); } .pr-tbl tr.on td { background: rgba(214,180,103,.12); }
@media (max-width: 900px) { .pr-ana-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-ana-k b { font-size: 1.7rem; } .pr-ana-h { align-items: flex-start; } .pr-ana-h .pr-sel select { min-width: 0; width: 100%; } .pr-ana-h .pr-sel { width: 100%; } }
.pr-tip[hidden] { display: none !important; }
@media (max-width: 599px) {
  .pr-views { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .pr-views button { white-space: normal; justify-content: center; text-align: center; line-height: 1.25; padding: 10px; font-size: .8rem; }
  .pr-views button .pr-emb { display: none; }
}


/* analysis tabs */
.pr-atabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; background: rgba(9,15,40,.85); border: 1px solid rgba(255,255,255,.08); position: sticky; top: calc(var(--header-h, 64px) + 6px); z-index: 4; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pr-atabs::-webkit-scrollbar { display: none; }
.pr-atabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 11px 14px; border-radius: 12px; background: none; color: #c9d2ea; font: 700 .84rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.pr-atabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pr-atabs button:hover { color: #fff; background: rgba(255,255,255,.06); }
.pr-atabs button.on { background: linear-gradient(180deg, #f8e7b8, #d6b467 60%, #b8913a); color: #0b1430; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px -8px rgba(214,180,103,.7); }
.pr-atab-body > .pr-panel { margin: 0; animation: prTabIn .35s cubic-bezier(.16,1,.3,1); }
.pr-atab-body > .pr-panel[hidden] { display: none; }
@keyframes prTabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .pr-atabs button { flex: 0 0 auto; padding: 10px 12px; font-size: .8rem; } }
.pr-ana-k em { white-space: nowrap; }
@media (max-width: 599px) { .pr-ana-k b { display: block; margin: 8px 0 6px; } .pr-ana-k em { display: inline-block; } .pr-ana-k > div { padding: 14px; } }


/* voter age profile */
.pr-age h4 { margin: 0 0 12px; font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e3c784; }
.pr-dr .pr-age { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.pr-age-k { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pr-age-k div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); } .pr-age-k small { display: block; color: rgba(255,255,255,.55); font-size: .7rem; } .pr-age-k b { font: 800 1.1rem/1.3 var(--sans); color: #fff; }
.pr-age-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pr-age-bars li { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 10px; font-size: .8rem; }
.pr-age-bars span { color: rgba(255,255,255,.75); font-weight: 600; } .pr-age-bars b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pr-age-bars i { height: 10px; border-radius: 5px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.pr-age-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 5px; background: linear-gradient(90deg, #f0d898, #b8913a); }
.pr-sex { margin-top: 14px; } .pr-sex span { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #4f8df5 var(--w), #f06292 var(--w)); } .pr-sex small { display: block; margin-top: 6px; color: rgba(255,255,255,.65); font-size: .76rem; }
.pr-agesec[hidden] { display: none; }

/* ===================== v243: dashboard controls — consistent premium fields and buttons ===================== */
.pr-page select, .pr-page input[type="search"] {
  -webkit-appearance: none; appearance: none; height: 48px; min-width: 0; border-radius: 14px; color: #fff; font: 600 .92rem/1.2 var(--sans);
  border: 1px solid rgba(214,180,103,.28); background-color: rgba(255,255,255,.05);
  background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px -16px rgba(0,0,0,.8);
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pr-page select { padding: 0 48px 0 16px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23e3c784' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)) !important;
  background-repeat: no-repeat, no-repeat !important; background-position: right 18px center, 0 0 !important; background-size: 14px 14px, 100% 100% !important; }
.pr-page input[type="search"] { padding: 0 16px 0 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23e3c784' stroke-width='2.2'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%23e3c784' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)) !important;
  background-repeat: no-repeat, no-repeat !important; background-position: 16px center, 0 0 !important; background-size: 16px 16px, 100% 100% !important; }
.pr-page input[type="search"]::placeholder { color: rgba(255,255,255,.45); font-weight: 500; }
.pr-page input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.pr-page select:hover, .pr-page input[type="search"]:hover { border-color: rgba(214,180,103,.5); background-color: rgba(255,255,255,.07); }
.pr-page select:focus, .pr-page input[type="search"]:focus { outline: none; border-color: #e3c784; box-shadow: 0 0 0 4px rgba(214,180,103,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.pr-page select option, .pr-page select optgroup { color: #0b1430; background: #fff; }
.pr-seats-h { gap: 12px !important; }
.pr-seats-h input[type="search"] { flex: 1 1 260px; }
.pr-seats-h select { flex: 0 1 230px; }
.pr-sel select { min-width: 240px; }
/* buttons: subtle depth, gold edge, gentle lift */
.pr-more, .pr-mc-go, .pr-kn, .pr-years button, .pr-st, .pr-row, .pr-close button, .pr-flips button, .pr-tg button { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s !important; }
.pr-more, .pr-mc-go { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px !important; border-radius: 14px !important;
  border: 1px solid rgba(214,180,103,.55) !important; color: #f3dc9f !important; font: 700 .9rem/1 var(--sans) !important; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(240,216,152,.16), rgba(214,180,103,.04)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px -16px rgba(0,0,0,.9); }
.pr-more:hover, .pr-mc-go:hover { transform: translateY(-2px); background: linear-gradient(180deg, #f8e7b8, #d6b467 60%, #b8913a) !important; color: #0b1430 !important; box-shadow: 0 14px 26px -12px rgba(214,180,103,.6); }
.pr-more { margin: 14px auto 0 !important; }
.pr-kn:hover { transform: translateY(-2px); border-color: #e3c784 !important; box-shadow: 0 16px 30px -18px rgba(214,180,103,.7); }
.pr-years button { min-height: 40px; padding: 0 16px !important; border-radius: 12px !important; }
.pr-years button:hover { transform: translateY(-1px); }
.pr-page button:focus-visible, .pr-page a:focus-visible { outline: 2px solid #e3c784; outline-offset: 2px; }
@media (max-width: 599px) {
  .pr-seats-h { display: grid !important; grid-template-columns: 1fr; } .pr-seats-h h3 { margin-bottom: 2px !important; }
  .pr-seats-h input[type="search"], .pr-seats-h select, .pr-sel select { width: 100%; min-width: 0; }
  .pr-bar { display: grid !important; grid-template-columns: 1fr; } .pr-sel { width: 100%; } .pr-seg { width: 100%; } .pr-seg button { flex: 1; }
}

/* voter profile: age, sex, ethnicity */
.pr-age-k { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pr-age-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.pr-age h5 { margin: 0 0 10px; font: 700 .72rem/1 var(--sans); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }
.pr-age-cols > div > h5:not(:first-child) { margin-top: 18px; }
.pr-sex small { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; } .pr-sex small i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .pr-sex .m { background: #4f8df5; } .pr-sex .f { background: #f06292; margin-left: 8px; }
.pr-eth-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 2px 3px rgba(0,0,0,.4); } .pr-eth-bar i { width: var(--w); background: var(--c); }
.pr-eth { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; } .pr-eth li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .8rem; color: rgba(255,255,255,.8); }
.pr-eth li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); } .pr-eth b { font-variant-numeric: tabular-nums; }
.pr-agesec .pr-age h4 { font-size: .74rem; }
@media (max-width: 700px) { .pr-age-cols { grid-template-columns: 1fr; } .pr-age-k { grid-template-columns: 1fr 1fr !important; } .pr-age-k div:last-child { grid-column: 1 / -1; } }

/* state cards: the state's own flag as the card background, under a deep navy veil so text stays clear */
.pr-st.has-flag { background: linear-gradient(155deg, rgba(8,13,36,.55) 0%, rgba(8,13,36,.82) 55%, rgba(6,10,28,.94) 100%), var(--flag) center / cover no-repeat !important; }
.pr-st.has-flag::after { background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent) !important; opacity: .35 !important; }
.pr-st.has-flag::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, rgba(255,255,255,.12) 0%, transparent 30%, rgba(0,0,0,.12) 50%, rgba(255,255,255,.08) 70%, transparent 100%); }
.pr-st.has-flag > * { position: relative; z-index: 1; }
.pr-st.has-flag .pr-st-h .pr-flag { display: none; }
.pr-st.has-flag .pr-st-n b { text-shadow: 0 2px 10px rgba(0,0,0,.6); }

.pr-credits { margin-top: 14px; font-size: .76rem; color: rgba(255,255,255,.6); }
.pr-credits summary { cursor: pointer; color: #e3c784; font-weight: 700; }
.pr-credits ul { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 28px; } .pr-credits li { break-inside: avoid; margin-bottom: 4px; } .pr-credits a { color: #c9d2ea; }
@media (max-width: 700px) { .pr-credits ul { columns: 1; } }
/* flag clearly visible at the top of the card, fading into navy where the figures sit */
.pr-st.has-flag { background: linear-gradient(180deg, rgba(8,13,36,.18) 0%, rgba(8,13,36,.55) 45%, rgba(6,10,28,.92) 100%), var(--flag) center 30% / cover no-repeat !important; }
/* official logos: a rounded white tile, a little wider than tall, so wide and flag-shaped logos show clearly */
.pr-emb.has-logo { width: calc(var(--s) * 1.3); border-radius: calc(var(--s) * .24); background: linear-gradient(180deg, #fff, #eef1f7);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(11,20,48,.12), 0 0 0 1.5px rgba(255,255,255,.9), 0 6px 14px -6px rgba(0,0,0,.65); }
.pr-emb.has-logo img { width: 86%; height: 80%; object-fit: contain; }
/* logo tiles in the party's own colour (no white) */
.pr-emb.has-logo { background: radial-gradient(120% 120% at 30% 18%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.45), inset 0 -3px 5px rgba(0,0,0,.35), 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, #fff), 0 6px 14px -6px rgba(0,0,0,.65) !important; }
.pr-emb.has-logo::after { display: block !important; left: 10%; right: 10%; top: 6%; height: 34%; border-radius: 40%; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); z-index: 2; }
.pr-emb.has-logo img { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }

/* legend: abbreviation + full party name */
.pr-leg li:has(> .pr-emb) { grid-template-columns: 10px 32px minmax(0, 1fr) auto auto; }
.pr-leg li > .pr-emb { justify-self: center; }
.pr-leg .pr-ab { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-weight: 700; color: #fff; }
.pr-leg .pr-ab small { font-weight: 500; font-size: .78rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 599px) { .pr-leg .pr-ab { flex-direction: column; gap: 1px; } .pr-leg .pr-ab small { white-space: normal; font-size: .72rem; line-height: 1.25; } }

/* lead card: name, full name and verdict badge each on their own line (no overlap) */
.pr-cn { min-width: 0; }
.pr-card.lead .pr-cn small { display: block; margin-top: 3px; line-height: 1.3; }
.pr-card.lead .pr-verdict { display: table; margin-top: 10px; line-height: 1.15; white-space: normal; max-width: 100%; }
@media (max-width: 599px) {
  .pr-coal .pr-card.lead { gap: 10px 14px; padding: 18px; }
  .pr-card.lead > .pr-emb { --s: 54px !important; }
  .pr-card.lead .pr-verdict { border-radius: 10px; font-size: .72rem; line-height: 1.3; padding: 6px 10px; }
}

/* verdict: plain text that blends into the card (no pill) */
.pr-card .pr-verdict, .pr-card.lead .pr-verdict { display: block; background: none !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 0 !important; margin-top: 8px; color: #e3c784; font: 600 .8rem/1.4 var(--sans); letter-spacing: .01em; white-space: normal; }
@media (max-width: 599px) { .pr-card.lead .pr-verdict { font-size: .74rem; } }

/* BN & UMNO logos side by side, never overlapping */
.pr-ana-embs { gap: 10px; flex-shrink: 0; } .pr-ana-embs .pr-emb + .pr-emb { margin-left: 0 !important; }
.pr-views button .pr-emb + .pr-emb { margin-left: 4px !important; }
@media (max-width: 599px) { .pr-ana-embs { gap: 8px; } .pr-ana-embs .pr-emb { --s: 48px !important; } }
@media (max-width: 599px) { .pr-ana-t { flex-direction: column; align-items: flex-start; gap: 14px; } }


/* ===== premium 3D tabs (views, PRU/PRN, analysis tabs, years) ===== */
.pr-views, .pr-seg, .pr-atabs { padding: 6px !important; gap: 6px !important; border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(6,11,32,.92), rgba(14,22,56,.88)) !important; border: 1px solid rgba(214,180,103,.28) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.06), 0 12px 28px -18px rgba(0,0,0,.9) !important; }
.pr-views button, .pr-seg button, .pr-atabs button, .pr-years button {
  position: relative; border-radius: 13px !important; color: #c9d2ea; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 rgba(0,0,0,.35), 0 6px 12px -8px rgba(0,0,0,.8) !important;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, color .22s, background .22s, border-color .22s !important; }
.pr-views button, .pr-seg button { padding: 11px 18px !important; font-size: .88rem !important; }
.pr-views button:hover, .pr-seg button:hover, .pr-atabs button:hover, .pr-years button:hover {
  color: #fff; transform: translateY(-2px); border-color: rgba(214,180,103,.45) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 0 rgba(0,0,0,.35), 0 14px 22px -10px rgba(214,180,103,.35) !important; }
.pr-views button:active, .pr-seg button:active, .pr-atabs button:active, .pr-years button:active {
  transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.35) !important; }
.pr-views button.on, .pr-seg button.on, .pr-atabs button.on, .pr-years button.on {
  color: #0b1430 !important; border-color: rgba(255,240,200,.7) !important;
  background: linear-gradient(180deg, #fff1c9 0%, #ecd08a 45%, #c9a14c 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(120,85,20,.35), 0 3px 0 #8a6a2a, 0 12px 22px -10px rgba(214,180,103,.75) !important; }
.pr-views button.on:hover, .pr-seg button.on:hover, .pr-atabs button.on:hover, .pr-years button.on:hover { transform: translateY(-1px); }
.pr-years button.on small { color: #7a5a1c; }
.pr-ti { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-views button { gap: 8px !important; }
.pr-seg button { min-width: 72px; }
@media (max-width: 599px) {
  .pr-views { display: flex !important; width: 100%; } .pr-views button { flex: 1 1 0; justify-content: center; padding: 11px 10px !important; font-size: .82rem !important; }
  .pr-views button span { white-space: nowrap; }
}

/* logo always contained inside its tile */
.pr-emb.has-logo { overflow: hidden; }
.pr-emb.has-logo img { max-width: 86%; max-height: 80%; width: 86%; height: 80%; object-fit: contain; }
.pr-emb.has-logo { position: relative; }
.pr-emb.has-logo img { position: absolute !important; inset: 0; margin: auto; width: 86%; height: 80%; max-width: 86%; max-height: 80%; object-fit: contain; z-index: 1; }

/* DAP: red rocket on a white tile */
.pr-emb.has-logo:has(img[alt="DAP"]) { --c: #f6f7fa !important; }


/* seat list pagination */
.pr-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pr-pager button { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer;
  color: #c9d2ea; font: 700 .9rem/1 var(--sans); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 rgba(0,0,0,.35), 0 6px 12px -8px rgba(0,0,0,.8);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, color .2s, border-color .2s; }
.pr-pager button:hover:not(:disabled) { color: #fff; transform: translateY(-2px); border-color: rgba(214,180,103,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 0 rgba(0,0,0,.35), 0 14px 20px -10px rgba(214,180,103,.35); }
.pr-pager button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.pr-pager button.on { color: #0b1430; border-color: rgba(255,240,200,.7); background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 #8a6a2a, 0 12px 20px -10px rgba(214,180,103,.7); }
.pr-pager button:disabled { opacity: .35; cursor: default; }
.pr-pager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-pg-gap { color: rgba(255,255,255,.4); padding: 0 2px; }
.pr-pager small { flex-basis: 100%; text-align: center; color: rgba(255,255,255,.55); font-size: .78rem; margin-top: 2px; }
@media (max-width: 599px) { .pr-pager { gap: 6px; } .pr-pager button { min-width: 36px; height: 38px; padding: 0 8px; font-size: .84rem; } }

/* drawer close button: icon centred exactly */
.pr-dr-x { display: grid !important; place-items: center; padding: 0 !important; line-height: 0 !important; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.pr-dr-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pr-dr-x:hover { transform: rotate(90deg); background: rgba(214,180,103,.16) !important; border-color: rgba(214,180,103,.8) !important; }

/* state flag on seats that changed hands */
.pr-flips button { grid-template-columns: auto auto auto minmax(0, 1fr) auto !important; }
.pr-flag.sm { --fw: 30px; border-radius: 4px; margin-left: 4px; }
.pr-flips { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important; }
.pr-flips button { gap: 8px !important; }
@media (max-width: 599px) { .pr-flips { grid-template-columns: 1fr !important; } }

/* state cards: stronger readable layers over the flag */
.pr-st.has-flag { background:
    linear-gradient(90deg, rgba(6,10,28,.86) 0%, rgba(6,10,28,.62) 50%, rgba(6,10,28,.72) 100%),
    linear-gradient(180deg, rgba(6,10,28,.25) 0%, rgba(6,10,28,.45) 55%, rgba(6,10,28,.92) 100%),
    var(--flag) center 30% / cover no-repeat !important; }
.pr-st.has-flag .pr-st-n b { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 14px rgba(0,0,0,.7) !important; }
.pr-st.has-flag .pr-st-n small { color: rgba(255,255,255,.88) !important; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.6); }
.pr-st.has-flag .pr-ring small, .pr-st.has-flag .pr-ring > span, .pr-st.has-flag .pr-ring { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.6); }
.pr-st.has-flag .pr-ring::before { box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.55) !important; }
/* GPS: official red-and-black hornbill on a white tile */
.pr-emb.has-logo:has(img[alt="GPS"]) { --c: #f6f7fa !important; }


/* ===== year buttons replaced by the election dropdown; bottom sources moved into the § icon ===== */
#prYears { display: none !important; }
#prBody > .pr-credits, #prBody > .pr-src { display: none !important; }

/* ===== hover details & info tips ===== */
.pr-htip { position: fixed; z-index: 9999; max-width: 340px; min-width: 200px; pointer-events: none; padding: 13px 15px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,24,58,.98), rgba(9,14,38,.98)); border: 1px solid rgba(214,180,103,.38);
  box-shadow: 0 22px 48px -14px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); color: #e8ecf7; font: 500 .8rem/1.5 var(--sans); }
.pr-htip.pinned { pointer-events: auto; max-height: min(70vh, 520px); overflow: auto; max-width: min(420px, calc(100vw - 28px)); }
.pr-htip h5 { margin: 0; font: 800 .95rem/1.25 var(--sans); color: #fff; }
.pr-htip p { margin: 6px 0 0; color: rgba(232,236,247,.85); }
.pr-htip .pr-tip-sub { margin-top: 2px; color: rgba(232,236,247,.6); font-size: .76rem; }
.pr-htip b { color: #fff; }
.pr-tip-c { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.pr-tip-c li { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.pr-tip-c i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.pr-tip-c span { min-width: 0; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-tip-c small { display: block; font-weight: 500; color: rgba(232,236,247,.55); font-size: .7rem; }
.pr-tip-c b { font-variant-numeric: tabular-nums; }
.pr-tip-k { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.pr-tip-k span { display: flex; flex-direction: column; font-size: .7rem; color: rgba(232,236,247,.6); }
.pr-tip-k b { font: 800 .9rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.pr-tip-f { font-size: .76rem; }
.pr-tip-h { color: #e3c784 !important; font-size: .72rem; font-weight: 700; }
.pr-tip-cr { margin: 10px 0 0; padding-left: 16px; font-size: .72rem; display: grid; gap: 4px; } .pr-tip-cr a { color: #c9d2ea; word-break: break-word; }
.pr-info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px; border-radius: 50%; vertical-align: 2px; cursor: help;
  font: italic 800 .66rem/1 Georgia, serif; letter-spacing: 0; text-transform: none; color: #0b1430;
  background: linear-gradient(180deg, #f8e7b8, #c9a14c); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 5px -2px rgba(0,0,0,.6);
  transition: transform .2s, box-shadow .2s; }
.pr-info:hover, .pr-info:focus-visible { transform: scale(1.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 3px rgba(214,180,103,.28); outline: none; }
.pr-src-btn { font-style: normal; font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) { #pr [data-seat], #pr .pr-card[data-k], #pr .pr-st, #pr [data-tip] { cursor: pointer; } #pr .pr-stack span[data-tip], #pr .pr-stbar i[data-tip] { cursor: help; } }
.pr-majline small { display: inline-flex; align-items: center; white-space: nowrap; }
.pr-majline .pr-info { position: static !important; width: 17px !important; top: auto; bottom: auto; border: 0 !important; margin-left: 6px; }

/* info tips: small superscript glyph, no background */
#pr .pr-info { display: inline-block !important; position: static !important; width: auto !important; height: auto !important; margin: 0 0 0 3px !important; padding: 0 2px;
  background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0;
  font: italic 700 .62em/1 Georgia, 'Times New Roman', serif !important; color: #e3c784 !important; opacity: .75;
  vertical-align: super; top: auto; bottom: auto; letter-spacing: 0; text-transform: none; transform: none; }
#pr .pr-info:hover, #pr .pr-info:focus-visible { opacity: 1; color: #fff2c9 !important; transform: none; box-shadow: none !important; }
#pr .pr-src-btn { font-style: normal !important; font-family: var(--sans) !important; }
#pr .pr-src-btn { padding: 0 1px; margin-left: 5px !important; }
#pr .pr-src-btn svg { width: 1.25em; height: 1.25em; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
#pr .pr-src-btn svg { width: 1.7em; height: 1.7em; }


/* ===================== v280: immersive splash — waving Jalur Gemilang + batik, shared by the load splash and page veil (every effect plays once) ===================== */
.preloader .sp-sky, .preloader .sp-my, .preloader .sp-floor, .preloader .pl-stars { display: none !important; }
.spx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; --mx: 0; --my: 0; z-index: 0; }
.preloader { --mx: 0; --my: 0; }
.preloader .spx { --mx: inherit; --my: inherit; }
.preloader .sp-stage, .pg-veil .pv-emb, .pg-veil .pv-line { position: relative; z-index: 2; }
.spx > * { position: absolute; inset: 0; will-change: transform, opacity; }
.spx-base { background: radial-gradient(90% 70% at 50% 42%, #1c3a8f 0%, #0f2266 32%, #081440 62%, #040817 100%); }
/* the flag: big, tilted in 3D, tinted like the homepage hero, with a single travelling wave of light and shade */
.spx-flag { inset: auto; left: 50%; top: 44%; width: max(165vw, 1500px); aspect-ratio: 2 / 1;
  background: url("../img/jalur-gemilang.svg") center / 100% 100% no-repeat; opacity: 0;
  transform: translate(-50%, -50%) translate3d(calc(var(--mx) * -38px), calc(var(--my) * -24px), 0) perspective(1400px) rotateX(14deg) rotateY(-18deg) rotateZ(-5deg);
  -webkit-mask-image: radial-gradient(50% 55% at 50% 50%, #000 0%, rgba(0,0,0,.55) 48%, transparent 82%); mask-image: radial-gradient(50% 55% at 50% 50%, #000 0%, rgba(0,0,0,.55) 48%, transparent 82%);
  animation: spxFlagIn 2.4s .1s cubic-bezier(.16,1,.3,1) forwards; }
.spx-flag::before { content: ""; position: absolute; inset: 0; background: rgba(22,44,120,.5); mix-blend-mode: color; }
.spx-flag i { position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(0,0,0,.42) 0%, rgba(255,255,255,.10) 6%, rgba(0,0,0,.42) 12%); background-size: 260% 100%;
  animation: spxWave 4.2s linear forwards; mix-blend-mode: multiply; }
/* batik: two gold layers at different depths that settle into place */
.spx-batik { inset: -12%; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e8c97a%22%20stroke-width%3D%221.15%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20transform%3D%22rotate%280%2060%2060%29%22%20d%3D%22M60%2060c-6-10-14-22-8-32%204-7%2012-7%2016%200%206%2010-2%2022-8%2032z%22/%3E%3Cpath%20transform%3D%22rotate%2872%2060%2060%29%22%20d%3D%22M60%2060c-6-10-14-22-8-32%204-7%2012-7%2016%200%206%2010-2%2022-8%2032z%22/%3E%3Cpath%20transform%3D%22rotate%28144%2060%2060%29%22%20d%3D%22M60%2060c-6-10-14-22-8-32%204-7%2012-7%2016%200%206%2010-2%2022-8%2032z%22/%3E%3Cpath%20transform%3D%22rotate%28216%2060%2060%29%22%20d%3D%22M60%2060c-6-10-14-22-8-32%204-7%2012-7%2016%200%206%2010-2%2022-8%2032z%22/%3E%3Cpath%20transform%3D%22rotate%28288%2060%2060%29%22%20d%3D%22M60%2060c-6-10-14-22-8-32%204-7%2012-7%2016%200%206%2010-2%2022-8%2032z%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%224.5%22/%3E%3Cpath%20d%3D%22M60%2055v-9M57%2047l3-3%203%203%22/%3E%3Cpath%20d%3D%22M0%200c14%204%2018%2014%2014%2026M120%200c-14%204-18%2014-14%2026M0%20120c14-4%2018-14%2014-26M120%20120c-14-4-18-14-14-26%22/%3E%3Cpath%20d%3D%22M14%2026c-6%200-10-4-9-9%204%201%207%204%209%209zM106%2026c6%200%2010-4%209-9-4%201-7%204-9%209zM14%2094c-6%200-10%204-9%209%204-1%207-4%209-9zM106%2094c6%200%2010%204%209%209-4-1-7-4-9-9z%22/%3E%3Cpath%20d%3D%22M60%200c-3%206-3%2010%200%2014%203-4%203-8%200-14zM60%20120c-3-6-3-10%200-14%203%204%203%208%200%2014zM0%2060c6-3%2010-3%2014%200-4%203-8%203-14%200zM120%2060c-6-3-10-3-14%200%204%203%208%203%2014%200z%22/%3E%3C/g%3E%3Cg%20fill%3D%22%23e8c97a%22%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2230%22%20r%3D%221.3%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%2230%22%20r%3D%221.3%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2290%22%20r%3D%221.3%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%221.3%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2222%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2298%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2260%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2298%22%20cy%3D%2260%22%20r%3D%221%22/%3E%3C/g%3E%3C/svg%3E") center / 120px 120px; opacity: 0;
  -webkit-mask-image: radial-gradient(42% 46% at 50% 46%, transparent 0%, #000 34%, rgba(0,0,0,.4) 62%, transparent 85%); mask-image: radial-gradient(42% 46% at 50% 46%, transparent 0%, #000 34%, rgba(0,0,0,.4) 62%, transparent 85%);
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -14px), 0) scale(1.18) rotate(-6deg); animation: spxBatik 2.8s .25s cubic-bezier(.16,1,.3,1) forwards; --o: .2; }
.spx-batik.b2 { background-size: 240px 240px; --o: .09; filter: blur(.4px); transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 18px), 0) scale(1.3) rotate(7deg); animation-delay: .05s; animation-duration: 3.2s;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 46%, transparent 20%, #000 55%, transparent 95%); mask-image: radial-gradient(70% 70% at 50% 46%, transparent 20%, #000 55%, transparent 95%); }
/* gold light rays behind the emblem */
.spx-beam { inset: auto; left: 50%; top: 46%; width: 160vmax; height: 160vmax; translate: -50% -50%; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(243,220,159,.22) 6deg, transparent 14deg, transparent 30deg, rgba(243,220,159,.14) 36deg, transparent 44deg, transparent 60deg, rgba(243,220,159,.2) 66deg, transparent 74deg, transparent 90deg);
  background-size: 100% 100%; -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 18%, transparent 45%); mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 18%, transparent 45%);
  animation: spxBeam 4s .3s cubic-bezier(.16,1,.3,1) forwards; mix-blend-mode: screen; }
/* rising gold dust (one pass) */
.spx-dust { inset: -10% 0; opacity: 0; background:
  radial-gradient(1.6px 1.6px at 12% 78%, #f6e2a6 50%, transparent 51%), radial-gradient(1.2px 1.2px at 24% 64%, #fff3c9 50%, transparent 51%),
  radial-gradient(2px 2px at 37% 88%, #e3c784 50%, transparent 51%), radial-gradient(1.4px 1.4px at 46% 70%, #fff3c9 50%, transparent 51%),
  radial-gradient(1.8px 1.8px at 58% 84%, #f6e2a6 50%, transparent 51%), radial-gradient(1.2px 1.2px at 69% 66%, #fff3c9 50%, transparent 51%),
  radial-gradient(2.2px 2.2px at 81% 80%, #e3c784 50%, transparent 51%), radial-gradient(1.4px 1.4px at 92% 72%, #f6e2a6 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 6% 58%, #fff3c9 50%, transparent 51%), radial-gradient(1.6px 1.6px at 88% 92%, #f6e2a6 50%, transparent 51%);
  animation: spxDust 3.6s .35s cubic-bezier(.3,.6,.3,1) forwards; }
.spx-dust.d2 { transform: scale(1.4); filter: blur(1px); animation-duration: 4.2s; animation-delay: .15s; }
/* a single light sweep across the scene */
.spx-sweep { background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.10) 47%, rgba(255,255,255,.16) 50%, rgba(255,240,200,.10) 53%, transparent 65%);
  transform: translateX(-120%); animation: spxSweep 1.8s .9s cubic-bezier(.45,0,.2,1) forwards; mix-blend-mode: screen; }
.spx-vig { background: radial-gradient(75% 65% at 50% 46%, transparent 40%, rgba(3,6,20,.55) 75%, rgba(2,4,14,.92) 100%); }
@keyframes spxFlagIn { from { opacity: 0; filter: blur(6px) brightness(.7); } to { opacity: .34; filter: none; } }
@keyframes spxWave { from { background-position: 120% 0; } to { background-position: -40% 0; } }
@keyframes spxBatik { to { opacity: var(--o); transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -14px), 0) scale(1) rotate(0deg); } }
.spx-batik.b2 { animation-name: spxBatik2; } @keyframes spxBatik2 { to { opacity: var(--o); transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 18px), 0) scale(1.08) rotate(0deg); } }
@keyframes spxBeam { 0% { opacity: 0; transform: rotate(-20deg) scale(.7); } 35% { opacity: 1; } 100% { opacity: .75; transform: rotate(18deg) scale(1); } }
@keyframes spxDust { 0% { opacity: 0; transform: translateY(40px); } 25% { opacity: .9; } 100% { opacity: .35; transform: translateY(-90px); } }
@keyframes spxSweep { to { transform: translateX(120%); } }
/* exit: the scene pushes forward and dissolves as the splash opens */
.preloader.open .spx { transform: scale(1.14); opacity: 0; filter: blur(4px); transition: transform .8s cubic-bezier(.7,0,.3,1), opacity .7s .1s, filter .7s; }
/* page veil (between pages) */
.pg-veil .spx { opacity: 0; transition: opacity .35s; } .pg-veil.on .spx { opacity: 1; }
.pg-veil:not(.on) .spx * { animation-play-state: paused; }
/* short splash between pages */
html.quick-splash .spx * { animation-duration: 1.1s !important; animation-delay: 0s !important; }
.pg-veil .spx * { animation-duration: 1s !important; animation-delay: 0s !important; }
@media (max-width: 599px) { .spx-flag { width: 260vw; top: 40%; } .spx-batik { background-size: 90px 90px; } .spx-batik.b2 { background-size: 180px 180px; } }
@media (prefers-reduced-motion: reduce) { .spx * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* premium info tips: fine gold ring, used sparingly */
#pr .pr-info:not(.pr-src-btn) { display: inline-grid !important; place-items: center; width: 13px !important; height: 13px !important; padding: 0 !important; margin-left: 5px !important;
  border: 1px solid rgba(227,199,132,.65) !important; border-radius: 50% !important; font: italic 700 8.5px/1 Georgia, 'Times New Roman', serif !important;
  color: #e3c784 !important; opacity: .85; vertical-align: super; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
#pr .pr-info:not(.pr-src-btn):hover, #pr .pr-info:not(.pr-src-btn):focus-visible { opacity: 1; background: rgba(227,199,132,.16) !important; border-color: #f3dc9f !important; color: #fff2c9 !important; }
.pr-htip { border-radius: 16px; border-color: rgba(214,180,103,.28); padding: 14px 16px 13px;
  background: linear-gradient(180deg, rgba(20,30,70,.97), rgba(8,13,36,.98)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); }
.pr-htip::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #e3c784, transparent); }
.pr-htip { animation: prTipIn .18s cubic-bezier(.2,.8,.2,1); } @keyframes prTipIn { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.spx-batik { display: none !important; }


/* ===== interactive charts: hover highlight ===== */
.pr-hl > *, .pr-hemi.pr-hl .pr-seat, .pr-trend svg.pr-hl .pr-tb { transition: opacity .2s, filter .2s, transform .2s; }
.pr-hemi.pr-hl .pr-seat:not(.pr-on) { opacity: .22 !important; }
.pr-hemi .pr-seat.pr-on .pr-chair { filter: brightness(1.25); }
.pr-trend svg.pr-hl .pr-tb:not(.pr-on) { opacity: .35; }
.pr-trend .pr-tb.pr-on .b1 { filter: brightness(1.25); } .pr-trend .pr-tb.pr-on .pr-tx { fill: #f3dc9f; font-weight: 800; }
.pr-trend .pr-tb { cursor: pointer; } .pr-trend .pr-hit { pointer-events: all; }
.pr-stack.pr-hl > :not(.pr-on), .pr-stbar.pr-hl > :not(.pr-on), .pr-dbar.pr-hl > :not(.pr-on), .pr-eth-bar.pr-hl > :not(.pr-on) { opacity: .35; }
.pr-stack > .pr-on, .pr-stbar > .pr-on, .pr-dbar > .pr-on, .pr-eth-bar > .pr-on { filter: brightness(1.2) saturate(1.1); }
.pr-age-bars.pr-hl > li:not(.pr-on) { opacity: .45; }
.pr-tl.pr-hl > .pr-tli:not(.pr-on) { opacity: .4; } .pr-tl > .pr-tli.pr-on { transform: translateY(-3px); }
.pr-seatbar[data-tip] { cursor: help; }
.pr-htip h5 + .pr-tip-k { margin-top: 8px; }
.pr-htip em.up { color: #7ee2a1; font-style: normal; font-size: .72rem; } .pr-htip em.down { color: #ff8f8f; font-style: normal; font-size: .72rem; }


/* ===== flow: jump chips, groups, no source notes ===== */
#pr .pr-src { display: none !important; }
.pr-grp { scroll-margin-top: calc(var(--header-h, 64px) + 70px); }
.pr-grp + .pr-grp { margin-top: 26px; }
.pr-jump { display: flex; gap: 6px; padding: 6px; margin: 0 0 18px; border-radius: 16px; overflow-x: auto; scrollbar-width: none;
  background: rgba(8,13,36,.88); border: 1px solid rgba(214,180,103,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); }
.pr-jump::-webkit-scrollbar { display: none; }
.pr-jump.pg { position: sticky; top: calc(var(--header-h, 64px) + 8px); z-index: 6; }
.pr-jump button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 11px; cursor: pointer;
  background: none; color: #c9d2ea; font: 700 .8rem/1 var(--sans); white-space: nowrap; transition: background .2s, color .2s; }
.pr-jump button:hover { color: #fff; background: rgba(255,255,255,.06); }
.pr-jump button.on { color: #0b1430; background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 6px 14px -8px rgba(214,180,103,.7); }
.pr-jump svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-jump.dr { position: sticky; top: 0; z-index: 5; margin: 14px 0 16px; }
#prDrBody .pr-grp { scroll-margin-top: 70px; }
#prDrBody .pr-grp + .pr-grp { margin-top: 18px; }
.pr-dpager { margin-top: 12px; }
.pr-dtable .pr-d[hidden] { display: none; }
@media (max-width: 599px) { .pr-jump button { flex: 0 0 auto; padding: 9px 11px; } .pr-jump.pg { top: calc(var(--header-h, 56px) + 4px); } }
.pr-foot-src { all: unset; cursor: pointer; color: inherit; text-decoration: underline; text-decoration-color: rgba(227,199,132,.5); text-underline-offset: 3px; }
.pr-foot-src:hover, .pr-foot-src:focus-visible { color: #e3c784; }

/* data-heavy sections: each block on its own full-width row */
#prBody .pr-grid2 { grid-template-columns: 1fr !important; }
.pr-age-cols { grid-template-columns: 1fr !important; gap: 0 !important; }
.pr-age-cols > div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.07); }
.pr-age-cols > div:first-child { border-top: 0; padding-top: 4px; }
.pr-age-cols > div > h5:not(:first-child) { margin-top: 22px; }
.pr-age-bars li { grid-template-columns: 70px 1fr 64px; }
.pr-eth { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 8px 22px !important; }
.pr-eth li { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.pr-sex { max-width: 560px; }
.pr-jump.pg { margin: 26px 0 24px; padding: 7px; gap: 8px; }
.pr-jump.pg button { padding: 11px 16px; }
@media (max-width: 599px) { .pr-jump.pg { margin: 18px 0 18px; gap: 6px; } .pr-jump.pg button { padding: 10px 12px; } }
.pr-jump.dr { top: 66px; z-index: 4; }
.pr-dr-top { z-index: 6; }
#prDrBody .pr-grp { scroll-margin-top: 132px; }


/* party logos inside hover cards */
.pr-tip-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.pr-tip-hd > div { min-width: 0; }
.pr-tip-hd h5 { margin: 0; } .pr-tip-hd .pr-tip-sub { margin: 2px 0 0 !important; }
.pr-tip-hd b { display: block; color: #fff; font-weight: 800; } .pr-tip-hd small { display: block; color: rgba(232,236,247,.6); font-size: .72rem; }
.pr-tip-hd + br { display: none; }
.pr-tip-hd .pr-emb, .pr-tip-c .pr-emb { flex: none; }
.pr-tip-pair { display: inline-flex; gap: 4px; flex: none; }
.pr-htip .pr-tip-c li { grid-template-columns: auto minmax(0, 1fr) auto !important; }
.pr-htip > .pr-tip-hd ~ :not(.pr-tip-k):not(.pr-tip-c):not(p):not(div) { display: block; }
.pr-th { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.pr-th .pr-emb { flex: none; }


/* ===== command centre: coalition builder, swing, pooled votes, demographics ===== */
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.pr-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border-radius: 14px; cursor: pointer; color: #c9d2ea;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.3); transition: transform .18s, border-color .18s, background .18s, opacity .18s; opacity: .72; }
.pr-chip span { display: flex; flex-direction: column; text-align: left; } .pr-chip b { font: 800 .84rem/1.1 var(--sans); color: #fff; } .pr-chip small { font-size: .68rem; color: rgba(232,236,247,.6); }
.pr-chip:hover { transform: translateY(-2px); opacity: 1; }
.pr-chip.on { opacity: 1; border-color: color-mix(in srgb, var(--c) 70%, #fff); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 12%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 rgba(0,0,0,.3), 0 10px 22px -12px var(--c); }
.pr-ccsum { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pr-ccsum.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-ccsum small { display: block; color: rgba(232,236,247,.6); font-size: .72rem; } .pr-ccsum b { font: 800 1.9rem/1.1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; } .pr-ccsum b i { font-style: normal; font-size: .95rem; color: rgba(232,236,247,.5); }
.pr-ccsum b.up { color: #7ee2a1; }
.pr-ccv { font-size: .86rem; color: rgba(232,236,247,.85); margin: 10px 2px 0; } .pr-ccv b.ok { color: #7ee2a1; } .pr-ccv b.no { color: #ff8f8f; }
.pr-ccbar { position: relative; display: flex; height: 16px; margin: 14px 0 6px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: visible; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.pr-ccbar i { width: var(--w); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); first-child: 0; } .pr-ccbar i:first-child { border-radius: 8px 0 0 8px; }
.pr-ccbar u { position: absolute; left: var(--m); top: -5px; bottom: -5px; width: 2px; background: #f3dc9f; box-shadow: 0 0 8px rgba(243,220,159,.6); } .pr-ccbar u.t { background: #ff8fa0; box-shadow: 0 0 8px rgba(255,143,160,.5); }
.pr-cc h4 { margin: 22px 0 10px; font: 800 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; } .pr-cc h4 small { text-transform: none; letter-spacing: 0; color: rgba(232,236,247,.55); font-weight: 600; }
.pr-combos { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pr-combos button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; cursor: pointer; color: #e8ecf7; text-align: left;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s, transform .2s; }
.pr-combos button:hover { background: rgba(255,255,255,.07); border-color: rgba(214,180,103,.45); transform: translateY(-1px); }
.pr-cmb-e { display: inline-flex; gap: 4px; } .pr-cmb-n { font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pr-cmb-n em { font-style: normal; font-size: .68rem; color: #0b1430; background: #e3c784; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.pr-combos b { font: 800 1.05rem/1 var(--sans); font-variant-numeric: tabular-nums; } .pr-combos small { color: #7ee2a1; font-weight: 700; font-size: .76rem; }
.pr-swk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pr-swk > div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pr-swk small { display: block; color: rgba(232,236,247,.6); font-size: .72rem; } .pr-swk b { font: 800 1.45rem/1.2 var(--sans); color: #fff; font-variant-numeric: tabular-nums; } .pr-swk b i { font-style: normal; font-size: .85rem; color: rgba(232,236,247,.5); }
.pr-swk b.up { color: #7ee2a1; } .pr-swk b.down { color: #ff8f8f; } .pr-swk em { margin-left: 8px; font-style: normal; font-size: .78rem; font-weight: 700; } .pr-swk em.up { color: #7ee2a1; } .pr-swk em.down { color: #ff8f8f; }
#prSw { width: 100%; margin: 18px 0 4px; accent-color: #d6b467; height: 28px; cursor: pointer; }
.pr-swl { display: flex; justify-content: space-between; font-size: .7rem; color: rgba(232,236,247,.5); }
.pr-swc svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.pr-swp { fill: none; stroke: #6f8fff; stroke-width: 3.5; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(80,110,255,.45)); }
.pr-swn { stroke: #f3dc9f; stroke-width: 2; stroke-dasharray: 5 5; } .pr-swd { fill: #f3dc9f; stroke: #0b1430; stroke-width: 3; }
.pr-tg-v { display: flex; flex-direction: column; align-items: flex-end; } .pr-tg-v b { font: 800 .95rem/1.1 var(--sans); color: #7ee2a1; } .pr-tg-v small { font-size: .68rem; color: rgba(232,236,247,.55); }
.pr-demo + .pr-demo { margin-top: 18px; }
.pr-demo-k { padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(214,180,103,.14), rgba(214,180,103,.03)); border: 1px solid rgba(214,180,103,.28); color: #f3e7c6; font-size: .88rem; margin: 0 0 6px; }
.pr-dmb { display: inline-block; width: 70px; height: 7px; margin-right: 8px; border-radius: 4px; background: rgba(255,255,255,.08); vertical-align: middle; overflow: hidden; } .pr-dmb i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #4f6bbd, #8fa8ff); }
@media (max-width: 599px) { .pr-ccsum, .pr-ccsum.three, .pr-swk { grid-template-columns: 1fr; } .pr-combos button { grid-template-columns: auto minmax(0, 1fr) auto; } .pr-combos small { display: none; } }

.pr-tip-cred { margin-top: 8px !important; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.07); font-size: .64rem !important; color: rgba(232,236,247,.42) !important; }
.pr-mapwrap { position: relative; }
.pr-map-cred { position: absolute; right: 10px; bottom: 8px; z-index: 3; font-size: .58rem; letter-spacing: .02em; color: rgba(232,236,247,.32); pointer-events: none; }
.pr-foot-src { display: none !important; }
.pr-ccsum .pr-ccv b, .pr-ccv b { font: 800 .9rem/1.3 var(--sans) !important; }
.pr-ccsum .pr-ccv { margin: 0; font-size: .86rem; }


/* ===== swing simulator v2 ===== */
.pr-swk2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pr-swk2 .k { position: relative; padding: 15px 16px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.pr-swk2 .k::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #6f8fff; }
.pr-swk2 .k.up::before { background: #7ee2a1; } .pr-swk2 .k.down::before { background: #ff8f8f; } .pr-swk2 .k.gold::before { background: #e3c784; }
.pr-swk2 small { display: block; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,236,247,.6); }
.pr-swk2 b { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; font: 800 1.7rem/1.1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.pr-swk2 b i { font-style: normal; font-size: .85rem; font-weight: 600; color: rgba(232,236,247,.55); }
.pr-swk2 .k.up b { color: #9af0b9; } .pr-swk2 .k.down b { color: #ffadad; } .pr-swk2 .k.gold b { color: #f6e2a6; }
.pr-swk2 em { font-style: normal; font-size: .78rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; margin-left: 4px; } .pr-swk2 em.up { color: #7ee2a1; background: rgba(126,226,161,.12); } .pr-swk2 em.down { color: #ff8f8f; background: rgba(255,143,143,.12); }
.pr-swk2 p { margin: 8px 0 0; font-size: .76rem; line-height: 1.45; color: rgba(232,236,247,.66); }
.pr-sw2 { margin: 18px 0 6px; padding: 16px 18px 14px; border-radius: 18px; background: rgba(5,9,26,.55); border: 1px solid rgba(255,255,255,.07); }
.pr-swpre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pr-swpre button { padding: 7px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #c9d2ea; font: 700 .78rem/1 var(--sans); cursor: pointer; transition: all .18s; }
.pr-swpre button:hover { color: #fff; border-color: rgba(214,180,103,.5); transform: translateY(-1px); }
.pr-swpre button.on { color: #0b1430; background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c); border-color: transparent; }
.pr-swpre button.maj { margin-left: auto; border-color: rgba(126,226,161,.45); color: #9af0b9; } .pr-swpre button.maj.on { background: linear-gradient(180deg, #b8f5cd, #5fd08a); color: #062a14; }
.pr-swr { position: relative; padding: 4px 0 0; }
.pr-swr .trk { position: relative; height: 10px; border-radius: 6px; overflow: visible; background: rgba(255,255,255,.07); box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.pr-swr .trk .neg, .pr-swr .trk .pos { position: absolute; top: 0; bottom: 0; width: 50%; opacity: .28; } .pr-swr .trk .neg { left: 0; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, #ff6b6b, transparent); } .pr-swr .trk .pos { right: 0; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, transparent, #6f8fff); }
.pr-swr .trk .fill { position: absolute; top: 0; bottom: 0; left: min(50%, var(--p)); width: calc(max(50%, var(--p)) - min(50%, var(--p))); background: linear-gradient(90deg, #f6e2a6, #d6b467); border-radius: 6px; box-shadow: 0 0 12px rgba(214,180,103,.45); }
.pr-swr .trk .need { position: absolute; top: -7px; bottom: -7px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #7ee2a1; box-shadow: 0 0 10px rgba(126,226,161,.7); }
.pr-swr input[type=range] { position: absolute; left: -10px; right: -10px; top: -6px; width: calc(100% + 20px); height: 28px; margin: 0; opacity: 0; cursor: grab; z-index: 2; }
.pr-swr input[type=range]:active { cursor: grabbing; }
.pr-swr::after { content: ""; position: absolute; top: -5px; left: var(--p); width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #e8c97a 45%, #a7802f); box-shadow: 0 0 0 4px rgba(214,180,103,.22), 0 6px 14px rgba(0,0,0,.6), inset 0 -2px 3px rgba(0,0,0,.25); transition: left .08s; }
.pr-swr .tk { position: relative; height: 18px; margin-top: 12px; } .pr-swr .tk span { position: absolute; transform: translateX(-50%); font: 700 .7rem/1 var(--sans); color: rgba(232,236,247,.55); font-variant-numeric: tabular-nums; }
.pr-swr .tk span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: rgba(255,255,255,.25); }
.pr-swr .ends { display: flex; justify-content: space-between; margin-top: 4px; font: 700 .66rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; } .pr-swr .ends span:first-child { color: #ff9a9a; } .pr-swr .ends span:last-child { color: #9db1ff; }
.pr-swc2 { margin-top: 16px; padding: 10px 8px 4px; border-radius: 18px; background: linear-gradient(180deg, rgba(111,143,255,.05), rgba(5,9,26,.4)); border: 1px solid rgba(255,255,255,.06); }
.pr-swc2 svg { width: 100%; height: auto; display: block; }
.pr-swz { fill: rgba(126,226,161,.045); }
.pr-gax { fill: rgba(232,236,247,.5); font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.pr-gl-l { fill: #f3dc9f; font: 800 12px var(--sans); } .pr-gl-l.t { fill: #ff9fb0; }
.pr-twl { stroke: #ff8fa0; stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .7; }
.pr-swneed { stroke: #7ee2a1; stroke-width: 2; stroke-dasharray: 4 5; } .pr-swneed-d { fill: #7ee2a1; stroke: #0b1430; stroke-width: 3; }
.pr-swbub rect { fill: #f3dc9f; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); } .pr-swbub text { fill: #0b1430; font: 800 13px var(--sans); }
.pr-tg-v.neg b { color: #ff8f8f; }
.pr-how { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.pr-how summary { cursor: pointer; font: 700 .8rem/1.2 var(--sans); color: #e3c784; }
.pr-how ul { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; font-size: .78rem; line-height: 1.5; color: rgba(232,236,247,.75); }
@media (max-width: 699px) { .pr-swk2 { grid-template-columns: 1fr; } .pr-swpre button.maj { margin-left: 0; } }

/* party chips: selected vs not selected, clearly different */
.pr-chip { position: relative; opacity: .5 !important; filter: saturate(.35); background: rgba(255,255,255,.025) !important; border-color: rgba(255,255,255,.07) !important; box-shadow: none !important; }
.pr-chip .pr-emb { filter: grayscale(.85) brightness(.85); transition: filter .2s; }
.pr-chip:hover { opacity: .85 !important; filter: saturate(.8); }
.pr-chip.on { opacity: 1 !important; filter: none; transform: translateY(-2px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 62%, #fff 6%), color-mix(in srgb, var(--c) 40%, #0b1430)) !important;
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 color-mix(in srgb, var(--c) 45%, #000), 0 14px 26px -10px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent) !important; }
.pr-chip.on .pr-emb { filter: none; }
.pr-chip.on b { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); } .pr-chip.on small { color: rgba(255,255,255,.85); }
.pr-chip.on::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .7rem/1 var(--sans); color: #0b1430; background: linear-gradient(180deg, #fff1c9, #d6b467); box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 2px #0b1430; }
/* analysis tabs: quieter idle tabs so the active one stands out */
.pr-atabs button:not(.on) { opacity: .72; background: rgba(255,255,255,.02) !important; box-shadow: none !important; }
.pr-atabs button:not(.on):hover { opacity: 1; }
.pr-atabs button.on { transform: translateY(-1px); }


/* ===== more simulations ===== */
.pr-simnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 16px; border-radius: 14px; background: rgba(5,9,26,.55); border: 1px solid rgba(255,255,255,.07); }
.pr-simnav button { flex: 1 1 auto; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: #c9d2ea; font: 700 .82rem/1 var(--sans); cursor: pointer; opacity: .75; transition: all .18s; }
.pr-simnav button:hover { opacity: 1; background: rgba(255,255,255,.05); }
.pr-simnav button.on { opacity: 1; color: #0b1430; background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 6px 14px -8px rgba(214,180,103,.7); }
.pr-simq { margin: 0 0 14px; padding: 13px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.5; color: #e8ecf7; background: linear-gradient(90deg, rgba(111,143,255,.14), rgba(111,143,255,.02)); border: 1px solid rgba(111,143,255,.25); }
.pr-simq b { color: #f6e2a6; }
.pr-simctl { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(5,9,26,.5); border: 1px solid rgba(255,255,255,.07); margin-bottom: 16px; }
.pr-simctl:has(.pr-sims) { grid-template-columns: 1fr 1fr; } .pr-simctl .pr-simr { grid-column: 1 / -1; }
.pr-sims { display: grid; gap: 6px; } .pr-sims span, .pr-simr span { font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,236,247,.6); }
.pr-sims select { width: 100%; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(214,180,103,.35); color: #fff; font: 600 .86rem/1.2 var(--sans); }
.pr-simr { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; } .pr-simr span { grid-column: 1 / -1; }
.pr-simr input { width: 100%; accent-color: #d6b467; height: 26px; cursor: pointer; }
.pr-simr b { min-width: 64px; text-align: right; font: 800 1.1rem/1 var(--sans); color: #f6e2a6; font-variant-numeric: tabular-nums; }
.pr-segs { display: flex; flex-wrap: wrap; gap: 6px; } .pr-segs button { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #c9d2ea; font: 700 .78rem/1 var(--sans); cursor: pointer; opacity: .7; }
.pr-segs button.on { opacity: 1; color: #fff; border-color: #6f8fff; background: linear-gradient(180deg, rgba(111,143,255,.45), rgba(111,143,255,.18)); box-shadow: 0 8px 18px -10px #6f8fff; }
.pr-simres .pr-ccsum b.dn { color: #ff8f8f; }
.pr-simtbl { margin-top: 14px; display: grid; gap: 8px; }
.pr-simtbl .r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
.pr-simtbl .n { display: inline-flex; align-items: center; gap: 8px; } .pr-simtbl .n b { font-size: .84rem; color: #fff; }
.pr-simtbl .bars { position: relative; display: grid; gap: 3px; } .pr-simtbl .bars i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: var(--c); }
.pr-simtbl .bars i.a { opacity: .38; } .pr-simtbl .bars i.b { box-shadow: 0 0 10px -2px var(--c); }
.pr-simtbl .bars u { position: absolute; left: var(--m); top: -3px; bottom: -3px; width: 1.5px; background: #f3dc9f; opacity: .8; }
.pr-simtbl .v { text-align: right; font-size: .84rem; color: rgba(232,236,247,.7); font-variant-numeric: tabular-nums; } .pr-simtbl .v b { color: #fff; font-size: .95rem; }
.pr-simtbl .v em { font-style: normal; font-weight: 800; font-size: .74rem; margin-left: 4px; color: rgba(232,236,247,.5); } .pr-simtbl .v em.up { color: #7ee2a1; } .pr-simtbl .v em.dn { color: #ff8f8f; }
.pr-simleg { display: flex; gap: 16px; margin: 6px 0 0; font-size: .72rem; color: rgba(232,236,247,.6); } .pr-simleg span { display: inline-flex; align-items: center; gap: 6px; }
.pr-simleg i { width: 14px; height: 6px; border-radius: 3px; background: #8fa8ff; } .pr-simleg i.a { opacity: .38; } .pr-simleg i.m { width: 2px; height: 12px; background: #f3dc9f; }
.pr-flipv { display: inline-flex; align-items: center; gap: 6px; } .pr-flipv i { font-style: normal; color: #e3c784; font-weight: 800; }
.pr-simnote { margin: 14px 0 0; padding: 10px 12px; border-left: 2px solid rgba(214,180,103,.5); font-size: .76rem; line-height: 1.5; color: rgba(232,236,247,.65); background: rgba(255,255,255,.02); border-radius: 0 10px 10px 0; }
.pr-sntbl th, .pr-sntbl td { text-align: center; } .pr-sntbl td:first-child { text-align: left; }
.pr-sntbl tr.sub th { font-size: .68rem; color: rgba(232,236,247,.5); padding-top: 0; }
.pr-sntbl td.w { color: #ffb3b3; } .pr-sntbl td.l { color: #9af0b9; }
.pr-snk { display: inline-flex; align-items: center; gap: 8px; } .pr-rng b { color: #f6e2a6; }
@media (max-width: 699px) { .pr-simctl:has(.pr-sims) { grid-template-columns: 1fr; } .pr-simtbl .r { grid-template-columns: 96px minmax(0, 1fr) 92px; gap: 8px; } }

/* analysis view: no fixed KPI cards, slim header, more room for the tabs */
#prBody .pr-ana-k { display: none !important; }
#prBody .pr-ana-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); align-items: center; gap: 18px; padding: 16px 20px !important; margin-bottom: 14px; }
#prBody .pr-ana-h .pr-ana-t { gap: 14px; }
#prBody .pr-ana-h .pr-ana-embs .pr-emb { --s: 40px !important; }
#prBody .pr-ana-h h2 { font-size: 1.35rem !important; margin: 2px 0 2px !important; }
#prBody .pr-ana-h p { font-size: .76rem !important; margin: 0 !important; }
#prBody .pr-ana-h .pr-kick { font-size: .62rem !important; }
#prBody .pr-ana-h .pr-sel { margin: 0 !important; }
#prBody .pr-ana-h .pr-sel select { padding-top: 11px; padding-bottom: 11px; }
#prBody .pr-atabs { margin-top: 0; }
@media (max-width: 760px) {
  #prBody .pr-ana-h { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px !important; }
  #prBody .pr-ana-h .pr-ana-t { flex-direction: row !important; align-items: center !important; }
  #prBody .pr-ana-h .pr-ana-embs .pr-emb { --s: 34px !important; }
  #prBody .pr-ana-h h2 { font-size: 1.15rem !important; }
}


/* ===== Monte Carlo forecast ===== */
.pr-fcctl { display: grid; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(5,9,26,.55); border: 1px solid rgba(255,255,255,.07); }
.pr-fcc > span, .pr-fcc.two span { display: block; margin-bottom: 8px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,236,247,.6); }
.pr-fcc.two { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.pr-fcc .pr-swpre { margin-bottom: 8px; } .pr-fcc .pr-swpre small { opacity: .7; margin-left: 3px; }
.pr-chips.sm { margin: 0; gap: 6px; } .pr-chips.sm .pr-chip { padding: 5px 10px 5px 5px; }
.pr-fcrun { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 0; border-radius: 13px; cursor: pointer;
  color: #0b1430; font: 800 .88rem/1 var(--sans); background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 0 #8a6a2a, 0 14px 24px -12px rgba(214,180,103,.8); transition: transform .15s; }
.pr-fcrun:hover { transform: translateY(-2px); } .pr-fcrun:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.pr-fcrun svg { width: 16px; height: 16px; fill: currentColor; }
.pr-fcprog { position: relative; margin-top: 16px; height: 40px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); }
.pr-fcprog i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(111,143,255,.45), rgba(214,180,103,.55)); transition: width .2s; }
.pr-fcprog span { position: relative; display: grid; place-items: center; height: 100%; font: 700 .82rem/1 var(--sans); color: #fff; }
.pr-fck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pr-fck > div { padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); position: relative; overflow: hidden; }
.pr-fck > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #6f8fff; } .pr-fck > div.ok::before { background: #7ee2a1; } .pr-fck > div.no::before { background: #ff8f8f; }
.pr-fck small { display: block; font: 700 .66rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(232,236,247,.6); }
.pr-fck b { display: block; margin-top: 6px; font: 800 1.6rem/1.1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; } .pr-fck .ok b { color: #9af0b9; } .pr-fck .no b { color: #ffadad; }
.pr-fck p { margin: 6px 0 0; font-size: .72rem; line-height: 1.4; color: rgba(232,236,247,.62); } .pr-fck p b { display: inline; font-size: .78rem; margin: 0; color: #f6e2a6; }
.pr-fch { padding: 10px 8px 6px; border-radius: 16px; background: rgba(5,9,26,.4); border: 1px solid rgba(255,255,255,.06); } .pr-fch svg { width: 100%; height: auto; display: block; }
.pr-fcb { fill: #5f7fe8; } .pr-fcb.maj { fill: #7ee2a1; } .pr-fcb:hover { fill: #f3dc9f; }
.pr-fcband { fill: rgba(111,143,255,.1); } .pr-fcmed { stroke: #fff; stroke-width: 2; stroke-dasharray: 3 4; opacity: .8; }
.pr-simleg i.band { width: 14px; height: 8px; background: rgba(111,143,255,.35); } .pr-simleg i.med { width: 2px; height: 12px; background: #fff; }
.pr-fct { display: grid; gap: 9px; }
.pr-fct .r { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px 96px; gap: 12px; align-items: center; }
.pr-fct .n { display: inline-flex; align-items: center; gap: 8px; } .pr-fct .n b { color: #fff; font-size: .84rem; }
.pr-fct .rg { position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.05); }
.pr-fct .rg i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: color-mix(in srgb, var(--c) 55%, transparent); }
.pr-fct .rg em { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.pr-fct .rg u { position: absolute; left: var(--m); top: -4px; bottom: -4px; width: 1.5px; background: #f3dc9f; }
.pr-fct .v { text-align: right; } .pr-fct .v b { color: #fff; font: 800 1rem/1 var(--sans); } .pr-fct .v small, .pr-fct .pl small { color: rgba(232,236,247,.55); font-size: .7rem; }
.pr-fct .pl { text-align: right; font: 800 .86rem/1 var(--sans); color: #f6e2a6; }
.pr-fctip { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; font-size: .84rem; line-height: 1.5; color: #f3e7c6; background: linear-gradient(90deg, rgba(214,180,103,.14), rgba(214,180,103,.03)); border: 1px solid rgba(214,180,103,.28); }
.pr-fctip button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.pr-fcp { display: grid; grid-template-columns: 80px auto; gap: 8px; align-items: center; } .pr-fcp i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4f6bbd var(--w), rgba(255,255,255,.08) var(--w)); } .pr-fcp b { font: 800 .9rem/1 var(--sans); color: #fff; min-width: 40px; text-align: right; }
@media (max-width: 760px) { .pr-fck { grid-template-columns: 1fr 1fr; } .pr-fcc.two { grid-template-columns: 1fr; } .pr-fct .r { grid-template-columns: 90px minmax(0, 1fr) 80px; } .pr-fct .pl { display: none; } }

/* analysis: election picker sits with the single-election tabs */
#prBody .pr-ana-h { grid-template-columns: 1fr !important; }
.pr-ana-ctx { margin: 0 0 14px; }
.pr-ana-ctx .sel .pr-sel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(5,9,26,.55); border: 1px solid rgba(214,180,103,.2); }
.pr-ana-ctx .sel .pr-sel > span { margin: 0 !important; white-space: nowrap; }
.pr-ana-ctx .glob { display: none; margin: 0; padding: 12px 16px; border-radius: 16px; align-items: center; gap: 10px; font: 700 .84rem/1.3 var(--sans); color: #c9d2ea; background: rgba(111,143,255,.08); border: 1px solid rgba(111,143,255,.22); }
.pr-ana-ctx .glob svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #8fa8ff; stroke-width: 1.8; }
.pr-ana-ctx.is-glob .sel { display: none; } .pr-ana-ctx.is-glob .glob { display: flex; }
@media (max-width: 599px) { .pr-ana-ctx .sel .pr-sel { grid-template-columns: 1fr; gap: 8px; } }

/* mobile menu: every link is icon · title · arrow on one line */
@media (max-width: 959px) {
  .nav a { grid-template-columns: 44px minmax(0, 1fr) auto !important; }
  .nav a .mn-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav a::after { justify-self: end; }
}

/* party chips: slim modern pills */
.pr-chips { gap: 8px !important; }
.pr-chip { min-height: 0 !important; height: 40px; padding: 0 14px 0 5px !important; gap: 9px !important; border-radius: 999px !important; transform: none !important; }
.pr-chip .pr-emb { --s: 28px !important; width: 30px !important; height: 30px !important; border-radius: 50% !important; flex: none; }
.pr-chip .pr-emb.has-logo img { width: 74% !important; height: 74% !important; max-width: 74% !important; max-height: 74% !important; }
.pr-chip > span:last-child { flex-direction: row !important; align-items: baseline; gap: 6px; line-height: 1; }
.pr-chip b { font: 800 .82rem/1 var(--sans) !important; letter-spacing: .01em; }
.pr-chip small { font: 600 .7rem/1 var(--sans) !important; }
.pr-chip.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px color-mix(in srgb, var(--c) 60%, #fff), 0 8px 20px -8px var(--c) !important; border-width: 0 !important; }
.pr-chip.on::after { top: -4px !important; right: -4px !important; width: 16px !important; height: 16px !important; font-size: .58rem !important; box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 0 0 1.5px #0b1430 !important; }
.pr-chips.sm .pr-chip { height: 34px; padding: 0 12px 0 4px !important; gap: 7px !important; }
.pr-chips.sm .pr-chip .pr-emb { --s: 24px !important; width: 26px !important; height: 26px !important; }
.pr-chip .pr-emb:not(.has-logo) { overflow: hidden; display: grid !important; place-items: center; }
.pr-chip .pr-emb:not(.has-logo) b { position: static !important; font-size: 6.5px !important; letter-spacing: 0 !important; line-height: 1 !important; transform: none !important; }
.pr-chips.sm .pr-chip .pr-emb:not(.has-logo) b { font-size: 5.8px !important; }


/* ===== premium sliders (all simulators) ===== */
.pr-simr { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.pr-simr input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --p: 50%; --z: 0%; }
.pr-simr input[type=range]:focus { outline: none; }
.pr-simr input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; box-shadow: inset 0 2px 4px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.05);
  background: linear-gradient(90deg, transparent min(var(--z), var(--p)), #d6b467 min(var(--z), var(--p)), #f6e2a6 max(var(--z), var(--p)), transparent max(var(--z), var(--p))), rgba(255,255,255,.08); }
.pr-simr input[type=range]::-moz-range-track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); box-shadow: inset 0 2px 4px rgba(0,0,0,.55); }
.pr-simr input[type=range]::-moz-range-progress { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #d6b467, #f6e2a6); }
.pr-simr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -7px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #e8c97a 45%, #a7802f); box-shadow: 0 0 0 4px rgba(214,180,103,.22), 0 6px 14px rgba(0,0,0,.6), inset 0 -2px 3px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.pr-simr input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff8dc, #e8c97a 45%, #a7802f); box-shadow: 0 0 0 4px rgba(214,180,103,.22), 0 6px 14px rgba(0,0,0,.6); }
.pr-simr input[type=range]:hover::-webkit-slider-thumb, .pr-simr input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(214,180,103,.25), 0 6px 14px rgba(0,0,0,.6); }
.pr-simr input[type=range]:active::-webkit-slider-thumb { transform: scale(1.05); cursor: grabbing; }
.pr-simr b { padding: 7px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(214,180,103,.22), rgba(214,180,103,.08)); border: 1px solid rgba(214,180,103,.35); color: #fff2c9 !important; font-size: 1rem !important; min-width: 76px; text-align: center !important; }
.pr-fcc .pr-simr { margin-top: 4px; }

/* ===== analysis tabs grouped by flow ===== */
.pr-atabs { align-items: center; }
.pr-atg { flex: none; align-self: center; padding: 0 4px 0 10px; font: 800 .6rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(227,199,132,.7); white-space: nowrap; }
.pr-atg:not(:first-child) { margin-left: 6px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.1); }


/* analysis picker: PRU / PRN · state · election */
.pr-ana-ctx .sel .pr-anapick { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pr-anaseg { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(6,11,32,.9); border: 1px solid rgba(214,180,103,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.55); }
.pr-anaseg button { min-width: 64px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); cursor: pointer; color: #c9d2ea; font: 800 .84rem/1 var(--sans);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 rgba(0,0,0,.35); transition: transform .2s, color .2s; }
.pr-anaseg button:hover { color: #fff; transform: translateY(-1px); }
.pr-anaseg button.on { color: #0b1430; border-color: rgba(255,240,200,.7); background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 #8a6a2a; }
.pr-anas { display: grid; gap: 6px; min-width: 170px; } .pr-anas.grow { flex: 1 1 260px; }
.pr-anas span { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e3c784; }
.pr-anas select { width: 100%; padding: 11px 40px 11px 14px; border-radius: 12px; border: 1px solid rgba(214,180,103,.35); background-color: rgba(255,255,255,.05); color: #fff; font: 600 .88rem/1.2 var(--sans); }
@media (max-width: 599px) { .pr-anas, .pr-anas.grow { flex: 1 1 100%; } }


/* ===== analysis navigation: group cards + sub-tabs ===== */
.pr-anav { position: sticky; top: calc(var(--header-h, 64px) + 6px); z-index: 6; display: grid; gap: 8px; margin: 0 0 14px; padding: 8px; border-radius: 20px;
  background: rgba(8,13,36,.9); border: 1px solid rgba(214,180,103,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 32px -20px rgba(0,0,0,.9); }
.pr-anav .pr-atabs { position: static !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; flex-wrap: wrap; justify-content: center; }
.pr-anav .pr-atabs button { flex: 0 1 auto !important; }
.pr-anav .pr-atabs button[hidden] { display: none !important; }
.pr-agrp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pr-agrp button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left; color: #c9d2ea;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s, transform .2s, color .2s; }
.pr-agrp button:hover { transform: translateY(-1px); border-color: rgba(214,180,103,.4); color: #fff; }
.pr-agrp svg { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; background: rgba(255,255,255,.05); }
.pr-agrp b { display: block; font: 800 .88rem/1.15 var(--sans); color: inherit; }
.pr-agrp small { display: block; margin-top: 2px; font-size: .68rem; line-height: 1.25; color: rgba(232,236,247,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-agrp em { position: absolute; top: 8px; right: 10px; font: 800 .62rem/1 var(--sans); font-style: normal; color: rgba(232,236,247,.45); }
.pr-agrp button.on { color: #0b1430; border-color: rgba(255,240,200,.75); background: linear-gradient(180deg, #fff1c9, #ecd08a 45%, #c9a14c); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 0 #8a6a2a, 0 14px 24px -12px rgba(214,180,103,.75); }
.pr-agrp button.on small { color: rgba(11,20,48,.7); } .pr-agrp button.on svg { background: rgba(11,20,48,.12); } .pr-agrp button.on em { color: rgba(11,20,48,.55); }
.pr-anav .pr-atabs button { padding: 9px 14px !important; font-size: .82rem !important; }
.pr-atg { display: none !important; }
@media (max-width: 760px) {
  .pr-agrp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-agrp small { white-space: normal; }
  .pr-anav { top: calc(var(--header-h, 56px) + 4px); }
}


/* plain-language guide under the analysis tabs */
.pr-ahelp { display: flex; align-items: center; gap: 10px; margin: 2px 4px 2px; padding: 9px 12px; border-radius: 12px; font-size: .82rem; line-height: 1.45; color: #e6ebf8;
  background: linear-gradient(90deg, rgba(111,143,255,.14), rgba(111,143,255,.03)); border: 1px solid rgba(111,143,255,.22); }
.pr-ahelp svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #9db1ff; stroke-width: 2; stroke-linecap: round; }
.pr-ahelp[hidden] { display: none; }
.pr-agrp small { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-agrp button { align-items: start; padding: 12px !important; }
@media (max-width: 760px) { .pr-ahelp { font-size: .78rem; } }
@media (max-width: 760px) { .pr-anav { position: static !important; } .pr-agrp button { grid-template-columns: 1fr !important; gap: 6px !important; } .pr-agrp svg { width: 18px; height: 18px; padding: 6px; } }

/* ===== analysis navigation v3: clean segmented control + underline tabs ===== */
.pr-anav { gap: 4px !important; padding: 8px 10px 4px !important; border-radius: 18px !important; background: rgba(8,13,36,.92) !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 12px 28px -20px rgba(0,0,0,.9) !important; }
.pr-agrp { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 3px !important; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.pr-agrp button { display: flex !important; align-items: center !important; justify-content: center; gap: 8px !important; padding: 9px 10px !important; border-radius: 9px !important; border: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; color: rgba(232,236,247,.7) !important; }
.pr-agrp button:hover { color: #fff !important; background: rgba(255,255,255,.04) !important; }
.pr-agrp button svg { width: 16px !important; height: 16px !important; padding: 0 !important; background: none !important; border-radius: 0 !important; }
.pr-agrp button span { display: block; } .pr-agrp b { font: 700 .84rem/1 var(--sans) !important; white-space: nowrap; }
.pr-agrp small, .pr-agrp em { display: none !important; }
.pr-agrp button.on { color: #0b1430 !important; background: linear-gradient(180deg, #f8e7b8, #d6b467) !important; box-shadow: 0 6px 14px -8px rgba(214,180,103,.8) !important; }
.pr-anav .pr-atabs { justify-content: flex-start !important; gap: 0 !important; padding: 2px 6px 0 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
.pr-anav .pr-atabs button { position: relative; padding: 11px 2px 10px !important; margin-right: 22px; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; opacity: 1 !important;
  color: rgba(232,236,247,.6) !important; font: 700 .82rem/1 var(--sans) !important; }
.pr-anav .pr-atabs button svg { width: 14px !important; height: 14px !important; opacity: .8; }
.pr-anav .pr-atabs button:hover { color: #fff !important; }
.pr-anav .pr-atabs button.on { color: #f6e2a6 !important; }
.pr-anav .pr-atabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f6e2a6, #c9a14c); }
.pr-ahelp { margin: 0 !important; padding: 8px 6px 6px !important; background: none !important; border: 0 !important; font-size: .76rem !important; color: rgba(232,236,247,.62) !important; }
.pr-ahelp svg { width: 14px !important; height: 14px !important; stroke: rgba(227,199,132,.8) !important; }
@media (max-width: 760px) {
  .pr-agrp { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pr-agrp button { justify-content: flex-start; padding: 10px 12px !important; }
  .pr-anav .pr-atabs { overflow-x: auto !important; flex-wrap: nowrap !important; scrollbar-width: none; } .pr-anav .pr-atabs button { flex: none !important; margin-right: 18px; }
}


/* ===== sliders: smoother, with a riding value bubble and ticks ===== */
.pr-simr { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 10px !important; }
.pr-rwrap { position: relative; display: block; padding: 26px 0 18px; }
.pr-rwrap input[type=range] { position: relative; z-index: 2; display: block; }
.pr-rbub { position: absolute; top: 0; left: calc(12px + (100% - 24px) * var(--pf, .5)); transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; font: 800 .72rem/1 var(--sans); font-style: normal; color: #0b1430; white-space: nowrap;
  background: linear-gradient(180deg, #fff1c9, #d6b467); box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transition: opacity .15s; }
.pr-rbub::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: #d6b467; transform: rotate(45deg); }
.pr-rwrap:hover .pr-rbub, .pr-rwrap:focus-within .pr-rbub, .pr-rwrap:active .pr-rbub { opacity: 1; }
.pr-rtk { position: absolute; left: 12px; right: 12px; bottom: 0; height: 14px; pointer-events: none; }
.pr-rtk em { position: absolute; transform: translateX(-50%); font: 700 .62rem/1 var(--sans); font-style: normal; color: rgba(232,236,247,.42); font-variant-numeric: tabular-nums; }
.pr-rtk em::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: rgba(255,255,255,.22); }
.pr-rtk em.z { color: #e3c784; } .pr-rtk em.z::before { height: 9px; top: -12px; background: #e3c784; }
.pr-rwrap:has(input) { --p: inherit; }
.pr-simr > b { align-self: center; }
.pr-simr > .pr-rwrap { grid-column: 1 / 2 !important; }
.pr-simr > b { grid-column: 2 / 3 !important; justify-self: end; width: auto !important; }
.pr-simr > span:first-child { grid-column: 1 / -1 !important; }

/* party chips: just logo + name (no pill) */
.pr-chips { gap: 6px 18px !important; }
.pr-chip, .pr-chip.on, .pr-chip:hover { height: auto !important; padding: 4px 2px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; filter: none; transform: none !important; }
.pr-chip { opacity: .45 !important; }
.pr-chip .pr-emb { filter: grayscale(1) brightness(.8); }
.pr-chip:hover { opacity: .8 !important; }
.pr-chip.on { opacity: 1 !important; }
.pr-chip.on .pr-emb { filter: none; }
.pr-chip.on::after { content: none !important; display: none !important; }
.pr-chip > span:last-child { position: relative; }
.pr-chip.on > span:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f6e2a6, #c9a14c); }
.pr-chip.on b { color: #fff !important; text-shadow: none; } .pr-chip b { color: #c9d2ea; }
.pr-chip small { color: rgba(232,236,247,.55) !important; }


/* search across every election */
.pr-globh { margin: 22px 0 10px; font: 800 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; } .pr-globh small { color: rgba(232,236,247,.5); letter-spacing: 0; text-transform: none; }
.pr-globl { display: grid; gap: 7px; }
.pr-globl button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border-radius: 14px; cursor: pointer; text-align: left; color: #e8ecf7;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s, transform .2s; }
.pr-globl button:hover { background: rgba(255,255,255,.07); border-color: rgba(214,180,103,.45); transform: translateY(-1px); }
.pr-glob-n b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pr-glob-n small { display: block; font-size: .74rem; color: rgba(232,236,247,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-glob-p { display: inline-flex; align-items: center; gap: 8px; } .pr-glob-p em { font-style: normal; font: 800 .66rem/1 var(--sans); padding: 4px 8px; border-radius: 99px; color: rgba(232,236,247,.6); background: rgba(255,255,255,.06); } .pr-glob-p em.win { color: #0b2a17; background: #7ee2a1; }


/* analysis: candidate search */
#prBody .pr-ana-h { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) !important; }
.pr-anaq { position: relative; align-self: center; }
.pr-anaq > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #e3c784; stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1; }
.pr-anaq input { width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1px solid rgba(214,180,103,.35); background: rgba(5,9,26,.6); color: #fff; font: 600 .88rem/1 var(--sans); }
.pr-anaq input::placeholder { color: rgba(232,236,247,.5); } .pr-anaq input:focus { outline: none; border-color: #e3c784; box-shadow: 0 0 0 3px rgba(214,180,103,.18); }
.pr-anaqr { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 620px); overflow: auto; padding: 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,27,64,.98), rgba(8,13,36,.99)); border: 1px solid rgba(214,180,103,.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.pr-anaqh { margin: 2px 4px 10px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,236,247,.55); }
.pr-pcard { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); } .pr-pcard + .pr-pcard { margin-top: 10px; }
.pr-pc-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pr-pc-h > div > b { display: block; color: #fff; font-size: .95rem; } .pr-pc-h > div > small { display: block; color: rgba(232,236,247,.6); font-size: .74rem; }
.pr-pc-k { display: flex; gap: 12px; } .pr-pc-k span { display: grid; text-align: center; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(232,236,247,.55); } .pr-pc-k b { font: 800 1rem/1.1 var(--sans); color: #f6e2a6; letter-spacing: 0; }
.pr-pc-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.pr-pc-l button { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 76px 62px; gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; cursor: pointer; color: #e8ecf7; text-align: left; background: rgba(255,255,255,.03); transition: background .2s; }
.pr-pc-l button:hover { background: rgba(214,180,103,.12); }
.pr-pc-l .y { font: 800 .86rem/1 var(--sans); color: #fff; } .pr-pc-l .y small { display: block; margin-top: 3px; font-size: .6rem; color: rgba(232,236,247,.5); }
.pr-pc-l .s b { display: block; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pr-pc-l .s small { display: block; font-size: .68rem; color: rgba(232,236,247,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-pc-l .p { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--sans); color: rgba(232,236,247,.8); }
.pr-pc-l .v { text-align: right; font: 700 .8rem/1.1 var(--sans); font-variant-numeric: tabular-nums; } .pr-pc-l .v small { display: block; font-size: .66rem; color: rgba(232,236,247,.55); }
.pr-pc-l em { justify-self: end; font-style: normal; font: 800 .64rem/1 var(--sans); padding: 4px 8px; border-radius: 99px; color: rgba(232,236,247,.6); background: rgba(255,255,255,.06); } .pr-pc-l em.win { color: #0b2a17; background: #7ee2a1; }
.pr-pc-more { margin: 8px 4px 0; font-size: .72rem; color: rgba(232,236,247,.55); }
@media (max-width: 760px) {
  #prBody .pr-ana-h { grid-template-columns: 1fr !important; }
  .pr-anaqr { left: 0; right: auto; width: 100%; }
  .pr-pc-l button { grid-template-columns: 40px minmax(0, 1fr) 60px; } .pr-pc-l .p, .pr-pc-l em { display: none; } .pr-pc-h { grid-template-columns: auto minmax(0, 1fr); } .pr-pc-k { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .pr-pc-l button { grid-template-columns: 40px minmax(0, 1fr) 58px 52px !important; } .pr-pc-l em { display: inline-block !important; } }
/* hover card: fade in only when it first appears, not on every content change */
.pr-htip { animation: none !important; transition: opacity .12s ease; }


/* polling districts: bar chart per candidate + stream comparison */
.pr-d summary { grid-template-columns: minmax(150px, .8fr) minmax(0, 2fr) 74px !important; align-items: center; gap: 16px !important; padding: 14px 16px !important; }
.pr-dch { display: grid; gap: 5px; min-width: 0; }
.pr-dch .r { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px 54px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.pr-dch .p { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 700 .72rem/1 var(--sans); color: rgba(232,236,247,.8); }
.pr-dch .p > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-dch .t { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.pr-dch .t i { display: block; height: 100%; width: var(--w); min-width: 2px; border-radius: 5px; background: var(--c); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.pr-dch .r > b { text-align: right; font: 800 .8rem/1 var(--sans); color: #e8ecf7; }
.pr-dch .r > small { text-align: right; font-size: .7rem; color: rgba(232,236,247,.5); }
.pr-dch .r.win > b { color: #fff; } .pr-dch .r.win .p { color: #fff; }
.pr-dch .r:not(.win) .t i { opacity: .75; }
.pr-dt { display: grid !important; gap: 2px; text-align: right; } .pr-dt b { font: 800 .9rem/1 var(--sans); color: #fff; } .pr-dt small { font-size: .64rem; color: rgba(232,236,247,.5); }
.pr-sch { padding: 4px 16px 14px; display: grid; gap: 6px; }
.pr-sch-h { margin: 6px 0 4px; font: 800 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e3c784; }
.pr-schr { display: grid; grid-template-columns: 82px minmax(0, 1fr) 56px; gap: 10px; align-items: center; }
.pr-schr .n { font: 700 .74rem/1 var(--sans); color: rgba(232,236,247,.7); }
.pr-schr .v { text-align: right; font: 700 .74rem/1 var(--sans); color: rgba(232,236,247,.65); font-variant-numeric: tabular-nums; }
.pr-sch .pr-dbar { height: 20px; border-radius: 6px; }
.pr-sch .pr-dbar i { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pr-sch .pr-dbar em { font: 800 .64rem/1 var(--sans); font-style: normal; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
@media (max-width: 760px) {
  .pr-d summary { grid-template-columns: minmax(0, 1fr) 60px !important; }
  .pr-d summary .pr-dch { grid-column: 1 / -1; grid-row: 2; }
  .pr-d summary .pr-dt { display: grid !important; grid-row: 1; grid-column: 2; }
  .pr-dch .r { grid-template-columns: 74px minmax(0, 1fr) 46px; } .pr-dch .r > small { display: none; }
  .pr-schr { grid-template-columns: 64px minmax(0, 1fr) 46px; }
}

/* analysis search: one icon only (svg), drop the generic input icon */
#pr .pr-anaq input, html[data-theme] #pr .pr-anaq input { background-image: none !important; }
.pr-dch .r { grid-template-columns: 112px minmax(0, 1fr) 52px 54px !important; }
@media (max-width: 760px) { .pr-dch .r { grid-template-columns: 104px minmax(0, 1fr) 46px !important; } }


/* record table: grouped header, inline bars, clean rows */
.pr-rec { margin-top: 6px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.pr-rectbl { min-width: 760px; font-size: .86rem; }
.pr-rectbl thead th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; text-align: right; font: 700 .64rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,236,247,.6); background: rgba(12,19,48,.96); border-bottom: 1px solid rgba(255,255,255,.08); }
.pr-rectbl thead tr.g th { padding-top: 14px; padding-bottom: 6px; color: #e3c784; border-bottom: 0; }
.pr-rectbl thead tr.g th[colspan] { text-align: center; } .pr-rectbl thead tr.g th[colspan]::after { content: ""; display: block; height: 2px; margin: 7px 8px 0; border-radius: 2px; background: rgba(214,180,103,.35); }
.pr-rectbl thead tr.g th.bn::after { background: #3b5bdb; } .pr-rectbl thead tr.g th.um::after { background: #d6283a; }
.pr-rectbl thead tr.g th.bn { color: #8ea2ff; } .pr-rectbl thead tr.g th.um { color: #ff7d8a; }
.pr-rectbl thead tr.g th[rowspan] { vertical-align: bottom; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pr-rectbl th:first-child, .pr-rectbl td:first-child { text-align: left; padding-left: 18px; }
.pr-rectbl td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; color: #e8ecf7; }
.pr-rectbl tbody tr:last-child td { border-bottom: 0; }
.pr-rectbl td:first-child b { display: block; font: 800 .92rem/1.1 var(--sans); color: #fff; } .pr-rectbl td:first-child small { margin-top: 3px; font-size: .7rem; color: rgba(232,236,247,.5); }
.pr-rectbl td.mut { color: rgba(232,236,247,.55); }
.pr-rectbl td.big { font: 800 1rem/1 var(--sans); color: #fff; white-space: nowrap; } .pr-rectbl td.big .of { display: inline; margin-left: 3px; font: 600 .74rem/1 var(--sans); color: rgba(232,236,247,.45); }
.pr-rectbl td.bc { min-width: 104px; }
.pr-rv { display: block; font-weight: 700; font-size: .82rem; }
.pr-rb { position: relative; display: block; height: 5px; margin-top: 6px; margin-left: auto; width: 88px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: visible; }
.pr-rb i { position: absolute; right: auto; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--c); }
.pr-rb em { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: rgba(232,236,247,.55); z-index: 1; }
.pr-rectbl tbody tr { transition: background .2s; }
.pr-rectbl tbody tr:hover td { background: rgba(255,255,255,.035); }
.pr-rectbl tbody tr.on td { background: rgba(214,180,103,.1); } .pr-rectbl tbody tr.on td:first-child { box-shadow: inset 3px 0 0 #d6b467; }
.pr-rectbl tbody tr.maj td:nth-child(3)::after { content: "✓"; margin-left: 5px; font-size: .7rem; color: #7ee2a1; }

/* forecast rows: roomier name column, inset track, row cards */
.pr-fct { gap: 6px !important; }
.pr-fct .r { grid-template-columns: 150px minmax(0, 1fr) 104px 92px !important; gap: 20px !important; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.pr-fct .n { gap: 10px !important; min-width: 0; } .pr-fct .n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-fct .rg { height: 16px !important; margin: 0 10px; border-radius: 8px; background: rgba(255,255,255,.07) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
@media (max-width: 760px) { .pr-fct .r { grid-template-columns: 104px minmax(0, 1fr) 72px !important; gap: 12px !important; padding: 8px 10px; } .pr-fct .rg { margin: 0 4px; } }

/* thumbnail photos: shorter fade, no lingering double image */
[data-ss] .ss-f { transition: opacity .6s ease !important; }
@media (hover: none) { .ss-dots { display: none; } }

/* lead stories: every story on its own full-width row */
.lead-stories { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; align-items: stretch !important; }
.lead-side { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; height: auto !important; grid-auto-rows: auto !important; }
.lead-side .story.side { display: grid !important; grid-template-columns: 112px minmax(0, 1fr) !important; gap: 16px !important; align-items: center !important; padding: 14px !important; }
.lead-side .story.side .img { aspect-ratio: 4/3 !important; }
.lead-side .story.side h3 { -webkit-line-clamp: 2 !important; }
.lead-side .story.side .side-ex { display: none !important; }
@media (min-width: 760px) {
  .story.main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .story.main .img { height: 100%; min-height: 340px; aspect-ratio: auto; }
  .story.main > :not(.img) { grid-column: 2; }
  .story.main .img { grid-row: 1 / span 3; }
  .lead-side .story.side { grid-template-columns: 220px minmax(0, 1fr) !important; gap: 24px !important; padding: 16px 24px 16px 16px !important; }
  .lead-side .story.side h3 { font-size: 1.22rem !important; -webkit-line-clamp: 2 !important; }
  .lead-side .story.side .side-ex { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical; overflow: hidden !important; max-height: 3.2em !important; margin: 8px 0 0; font-family: var(--read); font-size: .92rem; line-height: 1.6; color: var(--muted, rgba(238,241,248,.7)); }
}

/* card photos: slow, soft crossfade with a gentle drift */
[data-ss] .ss-f { transition: opacity 1.6s cubic-bezier(.4,0,.2,1) !important; transform: scale(1.06); }
[data-ss] .ss-f.on { animation: ssDrift 9s ease-out both; }
@keyframes ssDrift { from { transform: scale(1.06); } to { transform: scale(1); } }
.ss-dots i { transition: width .6s cubic-bezier(.4,0,.2,1), background .6s ease !important; }
@media (hover: none) { .ss-dots { display: flex; } }
@media (prefers-reduced-motion: reduce) { [data-ss] .ss-f.on { animation: none; } }

/* achievement cards: same rhythm on every card — 3-line title, 3-line excerpt (full text opens in the post) */
#achList .ach-item .ach-body strong { display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; overflow: hidden !important; min-height: calc(3 * 1.28em); }
#achList .ach-item .ach-desc, #achList .ach-item .ach-desc.clamp { display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; overflow: hidden !important; max-height: none !important; min-height: calc(3 * 1.6em); }
#achList .ach-item .ach-desc:empty { display: block !important; visibility: hidden; }
#achList .ach-item .ach-body strong { min-height: 0 !important; }

/* achievement excerpts: whole sentences written to fit — no clamp, no ellipsis */
#achList .ach-item .ach-desc, #achList .ach-item .ach-desc.clamp { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; overflow: visible !important; min-height: calc(3 * 1.6em); }
#achList .ach-item .ach-body strong { -webkit-line-clamp: unset !important; line-clamp: unset !important; display: block !important; overflow: visible !important; }

/* pager: show the current page between the arrows (no total) */
.pager .pg-cur { display: inline-grid !important; min-width: 0; height: 52px; padding: 0 22px; font: 700 .86rem/1 var(--sans); letter-spacing: .04em; color: var(--ink); background: var(--bg-2); border: 1px solid var(--card-bd); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .pager .pg-cur { color: #f3dc9f; background: rgba(214,180,103,.08); border-color: rgba(214,180,103,.35); }
@media (max-width: 1100px) { #achList .ach-item .ach-desc { font-size: .825rem !important; line-height: 1.55 !important; min-height: calc(3 * 1.55em); } }

/* no logo mark on photos */
.m-stage::after, .lb-stage::after, .lightbox::after { content: none !important; display: none !important; }

/* no-flash crossfades: the incoming photo fades in on top; the outgoing one stays lit underneath (no dip to dark, no zoom jump) */
.pb-bg img { z-index: 0; transition: none !important; }
.pb-bg img.top { z-index: 1; transition: opacity 1.8s ease !important; }
.pb-bg .pb-veil { z-index: 2; } .pb-bg .pb-line { z-index: 3; }
.reel-frame.out { transition: none; }
[data-ss] .ss-f { z-index: 0; }

/* hero: contrast layers behind the white text (bottom scrim for the name + roles, left wash, top band for the header) */
.hero .hero-fade { position: absolute; inset: 0; height: auto !important; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5,9,26,.94) 0%, rgba(5,9,26,.82) 24%, rgba(5,9,26,.5) 44%, rgba(5,9,26,.12) 62%, rgba(5,9,26,0) 72%),
    linear-gradient(90deg, rgba(5,9,26,.55) 0%, rgba(5,9,26,.18) 45%, rgba(5,9,26,0) 70%),
    linear-gradient(180deg, rgba(5,9,26,.6) 0%, rgba(5,9,26,0) 16%) !important; }
.hero .hero-title, .hero .hero-roles { text-shadow: 0 2px 18px rgba(3,6,20,.6), 0 1px 3px rgba(3,6,20,.5); }
.hero .hero-title .gold, .hero .hero-roles li:first-child { text-shadow: 0 2px 18px rgba(3,6,20,.7), 0 1px 2px rgba(3,6,20,.6); }
.hero-reel { z-index: 0; isolation: isolate; }
.hero .hero-tint { z-index: 1; } .hero .hero-fade { z-index: 2; }

/* portrait: no glow, halo or shadow behind it */
.hero-portrait::before, .hero-portrait::after { content: none !important; display: none !important; }
.hero-portrait img { filter: none !important; box-shadow: none !important; }
.hero-portrait { box-shadow: none !important; background: none !important; }

/* footer slideshow: let the photos show through, keep text readable */
.f2-bg .pb-veil { background:
  linear-gradient(180deg, rgba(6,10,28,.9) 0%, rgba(7,12,32,.68) 26%, rgba(7,12,32,.62) 58%, rgba(5,8,22,.9) 100%),
  radial-gradient(70% 60% at 85% 10%, rgba(214,180,103,.14), transparent 60%) !important; }
@media (max-width: 599px) { .f2-bg .pb-veil { background: linear-gradient(180deg, rgba(6,10,28,.9), rgba(7,12,32,.66) 40%, rgba(5,8,22,.9)) !important; } }
.site-footer.f2-has-bg .f2-slogan, .site-footer.f2-has-bg .f2-brand b, .site-footer.f2-has-bg a { text-shadow: 0 1px 10px rgba(3,6,20,.6); }


/* footer: slower, softer photo changes */
.f2-bg img.top { transition: opacity 3s cubic-bezier(.45,0,.25,1) !important; }
.f2-bg img.on { animation-duration: 16s !important; animation-timing-function: cubic-bezier(.25,.1,.25,1) !important; }

/* footer veil: text side darker, photo side open */
.site-footer.f2-has-bg .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(5,9,26,.88) 0%, rgba(5,9,26,.7) 45%, rgba(5,9,26,.4) 75%, rgba(5,9,26,.3) 100%),
  linear-gradient(180deg, rgba(6,10,28,.55) 0%, rgba(7,12,32,0) 30%, rgba(5,8,22,.6) 100%) !important; }

/* sharper slideshows: gentler zoom so photos are never enlarged much past their real size */
.pb-bg img { transform: scale(1.03) translate3d(0, 0, 0); image-rendering: auto; backface-visibility: hidden; }
@keyframes pbKen { from { transform: scale(1.06) translate3d(.6%, .4%, 0); } to { transform: scale(1.0) translate3d(0, 0, 0); } }
@keyframes pbKen2 { from { transform: scale(1.0) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-.6%, -.4%, 0); } }
.reel-frame { inset: -1.5% !important; }
@keyframes reelPush { from { transform: scale(1.0) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-.6%, -.4%, 0); } }
@keyframes ssDrift { from { transform: scale(1.03); } to { transform: scale(1); } }
[data-ss] .ss-f { transform: scale(1.03); }
[data-ss] .ss-f { transition: opacity 1.2s cubic-bezier(.4,0,.2,1) !important; }

/* footer: layered contrast — dimmed photo, even base, text-side band, top/bottom shade */
.site-footer .f2-bg img { filter: brightness(.82) saturate(.85) contrast(1.02); }
.site-footer.f2-has-bg .f2-bg .pb-veil, .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(5,9,26,.82) 0%, rgba(5,9,26,.66) 40%, rgba(5,9,26,.38) 72%, rgba(5,9,26,.28) 100%),
  linear-gradient(180deg, rgba(5,9,26,.7) 0%, rgba(5,9,26,.15) 28%, rgba(5,9,26,.15) 70%, rgba(5,9,26,.8) 100%),
  linear-gradient(rgba(5,9,26,.32), rgba(5,9,26,.32)) !important; }
@media (max-width: 599px) { .site-footer.f2-has-bg .f2-bg .pb-veil, .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(5,9,26,.78) 0%, rgba(5,9,26,.55) 60%, rgba(5,9,26,.4) 100%),
  linear-gradient(180deg, rgba(5,9,26,.75) 0%, rgba(5,9,26,.25) 30%, rgba(5,9,26,.25) 70%, rgba(5,9,26,.85) 100%),
  linear-gradient(rgba(5,9,26,.3), rgba(5,9,26,.3)) !important; } }
.site-footer.f2-has-bg .f2-grid a, .site-footer.f2-has-bg .f2-grid b, .site-footer.f2-has-bg .f2-slogan, .site-footer.f2-has-bg .f2-kick, .site-footer.f2-has-bg h4 { text-shadow: 0 1px 2px rgba(3,6,20,.8), 0 2px 14px rgba(3,6,20,.65); }

/* pager number: readable on light and dark backgrounds */
.pager .pg-cur { color: #7a5c17 !important; background: rgba(214,180,103,.14) !important; border: 1.5px solid rgba(184,146,66,.55) !important; box-shadow: none !important; }
.section-dark .pager .pg-cur, .on-dark .pager .pg-cur, :root[data-theme="dark"] .pager .pg-cur { color: #f6e2a6 !important; background: rgba(214,180,103,.12) !important; border-color: rgba(214,180,103,.5) !important; }

/* light theme: dark sections (Videos etc.) follow the light theme; video cards keep their own dark photo overlay */
:root:not([data-theme="dark"]) .section-dark { background: linear-gradient(180deg, #f6f4ef 0%, #efece3 100%) !important; color: #0b1430;
  --ink: #0b1430; --ink-2: #33405f; --muted: #586179; --line: rgba(11,20,48,.12); --gold-text: #7d5d17; }
:root:not([data-theme="dark"]) .section-dark .kicker { color: #7d5d17; }
:root:not([data-theme="dark"]) .section-dark h2, :root:not([data-theme="dark"]) .section-dark h2 .split-word span, :root:not([data-theme="dark"]) .tt-head h3 { color: #0b1430; }
:root:not([data-theme="dark"]) .tt-block { border-top-color: rgba(11,20,48,.12); }
:root:not([data-theme="dark"]) .tt-follow { color: #7d5d17; border-color: rgba(184,146,66,.55); }
:root:not([data-theme="dark"]) .section-dark .pager .pg-cur { color: #7a5c17 !important; background: rgba(214,180,103,.14) !important; border-color: rgba(184,146,66,.55) !important; }
:root:not([data-theme="dark"]) .section-dark .pg-jump { background-color: #fff; color: #0b1430; }
:root:not([data-theme="dark"]) .section-dark .v-card { box-shadow: 0 1px 2px rgba(16,24,64,.08), 0 18px 34px -22px rgba(16,24,64,.45); }

/* light theme: Highlights strip and the homepage contact card follow the light theme */
:root:not([data-theme="dark"]) .hscroll { background: linear-gradient(180deg, #f6f4ef, #efece3) !important; color: #0b1430; --gold-text: #7d5d17; }
:root:not([data-theme="dark"]) .hscroll .kicker { color: #7d5d17; }
:root:not([data-theme="dark"]) .hscroll h2, :root:not([data-theme="dark"]) .hscroll h2 * { color: #0b1430; }
:root:not([data-theme="dark"]) #hlTrack .hl-card { box-shadow: 0 1px 2px rgba(16,24,64,.08), 0 18px 34px -22px rgba(16,24,64,.45); }
:root:not([data-theme="dark"]) html:not([data-page]) #hubungi .contact, :root:not([data-theme="dark"]):not([data-page]) #hubungi .contact, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact {
  background: radial-gradient(90% 120% at 100% 0%, rgba(214,180,103,.14), transparent 55%), linear-gradient(135deg, #ffffff, #f4f2ea 80%) !important;
  border-color: rgba(184,146,66,.35) !important; box-shadow: 0 1px 2px rgba(16,24,64,.06), 0 30px 60px -40px rgba(16,24,64,.4) !important; }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .contact h2, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact h2 { color: #0b1430; }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .contact .muted, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact .muted { color: #4a5470; }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .contact .kicker, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact .kicker { color: #7d5d17; }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .contact::after, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact::after { opacity: .05; }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .contact > div:first-child, :root:not([data-theme="dark"])[data-page=""] #hubungi .contact > div:first-child { border-right-color: rgba(11,20,48,.08); }
:root:not([data-theme="dark"]):not([data-page]) #hubungi .socials a, :root:not([data-theme="dark"])[data-page=""] #hubungi .socials a { color: #0b1430; background: #fff; border: 1px solid rgba(11,20,48,.14); box-shadow: 0 6px 14px -10px rgba(16,24,64,.4); }

/* Biografi on phones: portrait moves into the section below the header, above the profile card */
@media (max-width: 959px) {
  .page-portrait.in-bio { display: flex !important; justify-content: center; position: relative; margin: 0 auto 18px !important; padding-top: 8px; }
  .page-portrait.in-bio img { height: clamp(280px, 82vw, 380px); width: auto; max-width: 100%; display: block; position: relative; z-index: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); }
  /* no ring: the cut-out blends into the page, with depth from a soft contact shadow and a grounded drop shadow */
  .page-portrait.in-bio::before { content: none !important; display: none !important; }
  .page-portrait.in-bio::after { content: ""; position: absolute; left: 50%; bottom: 2%; width: min(62vw, 240px); height: 26px; translate: -50% 0; border-radius: 50%; z-index: 0;
    background: radial-gradient(closest-side, rgba(11,20,48,.32), transparent); filter: blur(4px); }
  .page-portrait.in-bio img { filter: drop-shadow(0 22px 26px rgba(11,20,48,.28)) drop-shadow(0 4px 6px rgba(11,20,48,.18)); }
  .page-hero[aria-label="Biografi"] .page-hero-grid { padding-bottom: 8px; }
}
@media (max-width: 959px) { .page-portrait.in-bio img { filter: none !important; } .page-portrait.in-bio::after { bottom: 4%; width: min(70vw, 270px); height: 30px; background: radial-gradient(closest-side, rgba(11,20,48,.38), rgba(11,20,48,.12) 60%, transparent); filter: blur(6px); } }
@media (max-width: 959px) { .page-portrait.in-bio::after { width: min(52vw, 200px); height: 18px; bottom: 5%; background: radial-gradient(closest-side, rgba(11,20,48,.26), transparent); filter: blur(5px); } .page-portrait.in-bio, .page-portrait.in-bio img { box-shadow: none !important; background: none !important; } }

/* homepage hero: no portrait cut-out — the photo slideshow carries the hero */
.hero .hero-portrait { display: none !important; }


/* header brand: the official KN logo (name plate included) and a small cut-out of him; no flag in the home hero */
.hero .hero-flag { display: none !important; }
#header .brand { display: inline-flex !important; align-items: center; gap: 10px; }
#header .brand .brand-text { display: none !important; }
#header .brand .brand-logo.brand-official { width: auto !important; height: 46px !important; max-width: none; filter: none; }
#header .brand .brand-face { height: 50px; width: auto; align-self: flex-end; margin-bottom: -6px;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
@media (min-width: 960px) { #header .brand .brand-logo.brand-official { height: 50px !important; } #header .brand .brand-face { height: 56px; } }


/* splash screens: Khaled Nordin's cut-out beside the KN logo (the pair stays centred) */
.sp-emblem { translate: 34px 0; }
.sp-face { position: absolute; right: calc(50% + 70px); bottom: 22%; height: 62%; width: auto; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent);
  opacity: 0; animation: spFaceIn 1s .35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes spFaceIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .sp-emblem { translate: 30px 0; } .sp-face { right: calc(50% + 58px); height: 60%; } }
@media (min-width: 960px) { .sp-emblem { translate: 46px 0; } .sp-face { right: calc(50% + 96px); } }
.pv-emb .pv-face { position: absolute; right: calc(50% + 52px); bottom: 14%; height: 70%; width: auto !important; z-index: 2;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent); }
.pv-emb { translate: 28px 0; }
@media (prefers-reduced-motion: reduce) { .sp-face { animation: none; opacity: 1; } }
.pv-emb img.pv-face { box-shadow: none !important; border-radius: 0 !important; position: absolute !important; }
/* splash: centre the face + logo pair as one group (offset = half the face's overhang) */
.sp-emblem { translate: 64px 0 !important; }
@media (max-width: 420px) { .sp-emblem { translate: 54px 0 !important; } }
@media (min-width: 960px) { .sp-emblem { translate: 85px 0 !important; } }
.pv-emb { translate: 33px 0 !important; }
@media (min-width: 960px) { .pv-emb { translate: 35px 0 !important; } }
.sp-emblem { translate: 70px 0 !important; }
@media (max-width: 420px) { .sp-emblem { translate: 71px 0 !important; } }
@media (min-width: 960px) { .sp-emblem { translate: 70px 0 !important; } }

/* ===== splash face + logo: one consistent pair on every splash (face = 80% of the logo's height, bottom-aligned, 12px gap, pair centred) ===== */
.sp-emblem { --cw: 150px; translate: calc((var(--cw) * .675 + 12px) / 2) 0 !important; }
@media (max-width: 420px) { .sp-emblem { --cw: 124px; } }
@media (min-width: 960px) { .sp-emblem { --cw: 200px; } }
.sp-face { position: absolute !important; right: calc(50% + var(--cw) / 2 + 12px) !important; top: auto !important; bottom: calc(50% - var(--cw) * .375) !important;
  height: calc(var(--cw) * .6) !important; width: auto !important; }
html.quick-splash .sp-face { animation-delay: 0s !important; animation-duration: .5s !important; }
.pv-emb { --cw: 150px; width: var(--cw) !important; translate: calc((var(--cw) * .675 + 12px) / 2) 0 !important; }
@media (min-width: 960px) { .pv-emb { --cw: 200px; } }
.pv-emb img.pv-face { right: calc(100% + 12px) !important; left: auto !important; top: auto !important; bottom: 0 !important; height: calc(var(--cw) * .6) !important; width: auto !important; }
/* splash: the cut-out is larger than the KN logo (≈1.3× its height), bottom-aligned, pair centred */
.sp-emblem { translate: calc((var(--cw) * 1.097 + 12px) / 2) 0 !important; }
.sp-face { height: calc(var(--cw) * .975) !important; }
.pv-emb { translate: calc((var(--cw) * 1.097 + 12px) / 2) 0 !important; }
.pv-emb img.pv-face { height: calc(var(--cw) * .975) !important; }
@media (max-width: 420px) { .sp-emblem { --cw: 112px; } }
.sp-emblem .sp-card { width: var(--cw) !important; }
/* splash: KN logo sits at the vertical middle of the cut-out (centres aligned) */
.sp-face { bottom: calc(50% - var(--cw) * .4875) !important; }
.pv-emb img.pv-face { bottom: calc(var(--cw) * -.1125) !important; }
/* splash: no gold frame, glow or rings behind the KN logo */
.sp-card { box-shadow: 0 24px 44px -22px rgba(0,0,0,.7) !important; }
.sp-ring, .pv-ring { display: none !important; }
.pv-emb img:not(.pv-face) { box-shadow: 0 24px 44px -22px rgba(0,0,0,.7) !important; }
.pv-emb { translate: calc((var(--cw) * 1.097 + 12px) / 2 - var(--cw) * .05) 0 !important; }

/* splash: the gold rays and glow radiate from Khaled Nordin's cut-out, not from the logo */
.preloader, .pg-veil { --cw: 150px; }
@media (max-width: 420px) { .preloader { --cw: 112px; } }
@media (min-width: 960px) { .preloader, .pg-veil { --cw: 200px; } }
.preloader .spx-beam, .pg-veil .spx-beam { left: calc(50% - (var(--cw) + 12px) / 2) !important; }
.sp-halo { left: calc(50% - var(--cw) * 1.0485 - 12px) !important; }
.pv-halo { left: calc(50% - var(--cw) * 1.0485 - 12px) !important; }


/* SEO: the plain-HTML copy of each page is for crawlers and visitors without JavaScript; the app shows the full page */
html.js .ssr { display: none !important; }
.ssr { max-width: 860px; margin: 0 auto; padding: 120px 20px 60px; font: 400 1rem/1.7 var(--read, Georgia, serif); color: #0b1430; }
.ssr h1 { font-size: 2rem; line-height: 1.2; } .ssr h2 { margin-top: 2em; } .ssr img { max-width: 100%; height: auto; border-radius: 12px; }
.ssr ul, .ssr ol { padding-left: 1.2em; } .ssr li { margin: .6em 0; } .ssr nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; }

/* splash: the flag is there from the first frame (short fade, no long blur-in) */
.spx-flag { animation: spxFlagIn .5s 0s cubic-bezier(.16,1,.3,1) forwards !important; }
html.quick-splash .spx-flag { animation-duration: .35s !important; animation-delay: 0s !important; }
@keyframes spxFlagIn { from { opacity: 0; } to { opacity: .34; } }

/* ---- Mega menu v2: three balanced columns on every panel, no empty space ---- */
.mg-inner, .mg-inner:has(> .mg-intro + .mg-col.mg-feat:last-child) { grid-template-columns: 290px minmax(0, 1fr) minmax(0, 1.45fr); gap: 0; padding: 0; overflow: hidden; align-items: stretch; }
.mg-inner > * { padding: 30px 30px 32px; min-width: 0; }
.mg-inner > * + * { border-left: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.mg-intro { display: flex; flex-direction: column; position: relative; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 13%, transparent), transparent 62%), color-mix(in srgb, var(--ink) 3%, transparent); }
.mg-intro::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%); }
.mg-intro h3 { margin: 18px 0 10px; font-size: 1.6rem; letter-spacing: -.01em; }
.mg-intro p { flex: 1; margin-bottom: 22px; }
.mg-intro .mg-cta { align-self: flex-start; padding: 11px 18px; box-shadow: 0 10px 22px -14px rgba(11,20,48,.7); transition: transform .25s var(--ease), gap .25s var(--ease); }
.mg-intro .mg-cta:hover { transform: translateY(-1px); gap: 12px; }
.mg-col { display: flex; flex-direction: column; }
.mg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 16px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.mg-h h4 { margin: 0; }
.mg-more { display: inline-flex; align-items: center; gap: 6px; font: 700 .74rem/1 var(--sans); color: var(--gold-text) !important; text-decoration: none; white-space: nowrap; }
.mg-more::after { display: none !important; }
.mg-arw { flex: none; transition: transform .25s var(--ease); }
a:hover > .mg-arw { transform: translateX(3px); }
/* category + tab links */
.mg-links { columns: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.mg-links.big { grid-template-columns: 1fr; gap: 8px; }
.mg-links a { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 12px !important; }
.mg-links small { font: 700 .68rem/1 var(--sans); color: var(--muted); padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mg-links.big a { padding: 16px 16px !important; border: 1px solid var(--card-bd); background: var(--bg); border-radius: 14px; }
.mg-links.big a:hover { border-color: var(--gold); }
.mg-links.big .mg-arw { color: var(--gold-text); }
/* stacked cards fill the right column evenly */
.mg-stack { display: grid; gap: 10px; flex: 1; align-content: start; }
.mg-feat { display: flex; gap: 0; }
.mg-card { grid-template-columns: 112px minmax(0, 1fr); padding: 7px !important; box-shadow: 0 1px 0 rgba(11,20,48,.03); }
.mg-card:hover { box-shadow: 0 14px 28px -20px rgba(11,20,48,.55); }
.mg-card .mg-img { aspect-ratio: 16/10; }
.mg-card .mg-img img { transition: transform .5s var(--ease); }
.mg-card:hover .mg-img img { transform: scale(1.05); }
.mg-t time { color: var(--gold-text); }
/* big feature (video / gallery) */
.mg-hero { position: relative; display: block; flex: 1; min-height: 230px; border-radius: 18px; overflow: hidden; padding: 0 !important; text-decoration: none; color: #fff !important; background: #0b1430; isolation: isolate; }
.mg-hero::after { display: none !important; }
.mg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.mg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,36,0) 30%, rgba(8,14,36,.55) 60%, rgba(8,14,36,.92)); }
.mg-hero:hover img { transform: scale(1.05); }
.mg-hero-t { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.mg-hero-t em { align-self: flex-start; font: 800 .62rem/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); padding: 6px 9px; border-radius: 999px; }
.mg-hero-t b { font: 600 1.12rem/1.3 var(--serif); text-shadow: 0 2px 10px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mg-hero-t time { font: 700 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.mg-play { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #0b1430;
  background: rgba(255,255,255,.92); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.mg-hero:hover .mg-play { transform: scale(1.08); }
/* gallery grid */
.mg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; align-content: stretch; }
.mg-grid a { aspect-ratio: auto; min-height: 100px; border-radius: 12px; }
/* media */
.mg-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-chips a { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px !important; border-radius: 12px; border: 1px solid var(--card-bd); background: var(--bg);
  color: var(--ink) !important; text-decoration: none; font: 700 .84rem/1.2 var(--sans) !important; transition: border-color .25s, transform .25s var(--ease); }
.mg-chips a::after { display: none !important; }
.mg-chips a:hover { border-color: var(--gold); transform: translateY(-1px); }
.mg-chips span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-chips small { flex: none; font: 800 .66rem/1 var(--sans); color: var(--gold-text); }
.mg-note { margin: auto 0 0; padding-top: 16px; font: 500 .8rem/1.4 var(--sans); color: var(--muted); }
.mg-press { grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.mg-press li { display: flex; }
.mg-press a { flex: 1; gap: 8px; padding: 14px 16px !important; border-radius: 14px; border: 1px solid var(--card-bd); background: var(--bg); transition: border-color .25s, transform .25s var(--ease); }
.mg-press a:hover { border-color: var(--gold); transform: translateY(-2px); background: var(--bg); }
.mg-press b { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* contact channels */
.mg-chan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.mg-chan li { display: flex; }
.mg-chan a, .mg-soc a { flex: 1; display: grid !important; grid-template-columns: 42px minmax(0, 1fr) 14px; align-items: center; gap: 14px; padding: 13px 15px !important; border-radius: 14px;
  border: 1px solid var(--card-bd); background: var(--bg); color: var(--ink) !important; text-decoration: none; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.mg-chan a::after, .mg-soc a::after { display: none !important; }
.mg-chan a:hover, .mg-soc a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(11,20,48,.55); }
.mg-chan-ic, .mg-soc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-text);
  background: color-mix(in srgb, var(--gold) 14%, transparent); transition: background .25s, color .25s; }
.mg-chan a:hover .mg-chan-ic, .mg-soc a:hover .mg-soc-ic { background: linear-gradient(135deg, #f0d898, #d6b467); color: #0b1430; }
.mg-soc-ic svg { width: 19px !important; height: 19px !important; color: inherit !important; fill: currentColor; }
.mg-chan-t, .mg-soc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mg-chan-t b, .mg-soc-t b { font: 700 .95rem/1.2 var(--sans); }
.mg-chan-t small { font: 400 .8rem/1.4 var(--read); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-soc-t small { font: 500 .76rem/1.2 var(--sans); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-chan .mg-arw, .mg-soc .mg-arw { color: var(--gold-text); }
.mg-soc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; align-content: stretch; }
.mg-soc a { grid-template-columns: 40px minmax(0, 1fr) 14px; gap: 12px; padding: 12px 13px !important; }
.mg-soc-ic { width: 40px; height: 40px; }
.mg-reply { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--gold-text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, transparent), color-mix(in srgb, var(--gold) 5%, transparent)); border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); }
.mg-reply svg { flex: none; }
.mg-reply span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mg-reply b { font: 700 .9rem/1.2 var(--sans); color: var(--ink); }
.mg-reply small { font: 500 .74rem/1.3 var(--sans); color: var(--muted); }
:root[data-theme="dark"] .mg-inner > * + * { border-left-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .mg-card, :root[data-theme="dark"] .mg-chips a, :root[data-theme="dark"] .mg-press a, :root[data-theme="dark"] .mg-chan a,
:root[data-theme="dark"] .mg-soc a, :root[data-theme="dark"] .mg-links.big a { background: rgba(255,255,255,.035); }
@media (max-width: 1180px) { .mg-inner, .mg-inner:has(> .mg-intro + .mg-col.mg-feat:last-child) { grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.3fr); } .mg-inner > * { padding: 26px 22px; } .mg-press, .mg-soc { grid-template-columns: 1fr; } }
.mg-links.big { flex: 1; grid-auto-rows: 1fr; }
.mg-links.big li { display: flex; } .mg-links.big a { flex: 1; }
.mg-chan-t small { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.mg-stack { grid-auto-rows: 1fr; align-content: stretch; }
.mg-stack > .mg-card { align-items: center; }
.mg-inner.mg-berita { grid-template-columns: 270px minmax(0, 1.2fr) minmax(0, 1.25fr); }
.mg-berita .mg-links { gap: 2px 8px; }
.mg-berita .mg-links a { padding: 9px 10px !important; font-size: .86rem !important; }
.mg-berita .mg-links span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-links { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.mg-links li { display: flex; } .mg-links li > a { flex: 1; }
.mg-card .mg-t b { -webkit-line-clamp: 4; font-size: .9rem; line-height: 1.28; }
.mg-press b { -webkit-line-clamp: 5; }
.mg-chan-t small { white-space: normal; display: block; -webkit-line-clamp: unset; overflow: visible; }
.mg-soc-t small { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.mg-chips { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.mg-chips li { display: flex; } .mg-chips li > a { flex: 1; }
.mg-note { padding-top: 14px; }

/* ---- "Lihat semua" button: solid, high-contrast in both themes ---- */
.see-all, .pager-wrap.on-dark .see-all { background: #0b1430 !important; color: #fff !important; border: 1px solid #0b1430 !important; font-weight: 700;
  box-shadow: 0 14px 28px -16px rgba(11,20,48,.65); }
.see-all span { color: inherit !important; opacity: 1 !important; }
.see-all svg, .pager-wrap.on-dark .see-all svg { color: #f0d898 !important; }
.see-all:hover, .see-all:focus-visible, .pager-wrap.on-dark .see-all:hover { background: linear-gradient(135deg, #f0d898, #d6b467) !important; color: #0b1430 !important; border-color: transparent !important; }
.see-all:hover svg, .see-all:focus-visible svg, .pager-wrap.on-dark .see-all:hover svg { color: #0b1430 !important; }
:root[data-theme="dark"] .see-all, :root[data-theme="dark"] .pager-wrap.on-dark .see-all { background: linear-gradient(135deg, #f0d898, #d6b467) !important; color: #0b1430 !important; border-color: transparent !important;
  box-shadow: 0 16px 30px -14px rgba(184,145,58,.55); }
:root[data-theme="dark"] .see-all svg { color: #0b1430 !important; }
:root[data-theme="dark"] .see-all:hover { background: #fff !important; color: #0b1430 !important; }

/* ---- Hero: name block centred vertically (portrait is no longer shown) ---- */
.hero .hero-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; align-items: center; align-content: center;
  padding-top: var(--header-h); padding-bottom: calc(var(--header-h) * .6); }
.hero .hero-text { grid-row: 1; margin-top: 0; padding-bottom: 0; }
@media (max-width: 959px) { .hero .hero-grid { padding-bottom: calc(var(--header-h) + 40px); } }   /* leave room for the bottom dock */

/* ---- Hero on phones/tablets: height follows the content, no empty band under the buttons ---- */
@media (max-width: 959px) {
  .hero { min-height: 0 !important; height: auto !important; }
  .hero .hero-grid { flex: none; align-content: start; padding-top: calc(var(--header-h) + clamp(120px, 22svh, 220px)); padding-bottom: 56px; }
}

/* ---- Video viewer: no black bars — the sides show a soft, blurred copy of the video's own cover ---- */
.m-video-wrap { position: relative; overflow: hidden; isolation: isolate; background: #0b1430 !important; }
.m-ambient { position: absolute; inset: -60px; z-index: -1; background: center / cover no-repeat; filter: blur(40px) saturate(1.3) brightness(.6); transform: scale(1.1); }
.m-video-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(11,20,48,0) 30%, rgba(11,20,48,.45) 100%); }
.m-video, .m-video video { background: transparent !important; }
.m-video { box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
html.shield .m-ambient { display: none; }

/* ---- Photo slideshow: the blurred copy fills the whole frame — no black anywhere ---- */
.modal-body > .m-media:not(.m-video-wrap), .m-stage { background: #0b1430 !important; }
.m-stage .ss-imgs { align-self: stretch; justify-self: stretch; width: 100%; height: 100%; min-height: inherit; }
.ss-imgs .ss-vid, .ss-imgs .m-video { background: transparent !important; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
html.shield .ss-imgs::before { display: none; }

/* ---- Video slide inside the slideshow: always fits the frame (never cropped), centred ---- */
.ss-imgs > .ss-vid { grid-area: 1 / 1; place-self: center; height: 100% !important; max-height: 100%; width: auto !important; max-width: 100%; aspect-ratio: var(--ar, .5625); }
.ss-imgs:has(> .ss-vid) { display: grid; place-items: center; }

/* ---- Add to Home Screen card ---- */
.a2hs { position: fixed; z-index: 120; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 24px));
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease);
  padding: 16px; border-radius: 22px; color: #eef1f8; background: linear-gradient(160deg, rgba(23,35,78,.97), rgba(10,18,44,.98));
  border: 1px solid rgba(214,180,103,.35); box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-family: var(--sans); }
.a2hs.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 960px) { .a2hs { left: auto; right: 24px; bottom: 24px; transform: translateY(24px); } .a2hs.in { transform: none; } }
.a2hs-head { display: grid; grid-template-columns: 48px 1fr 28px; gap: 12px; align-items: center; }
.a2hs-head img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); }
.a2hs-head b { display: block; font: 700 1rem/1.25 var(--sans); color: #fff; }
.a2hs-head span { display: block; margin-top: 3px; font: 500 .82rem/1.4 var(--sans); color: #b9c2da; }
.a2hs-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #dfe4f2; font: 400 1.2rem/1 var(--sans); cursor: pointer; align-self: start; }
.a2hs-x:hover { background: rgba(255,255,255,.16); }
.a2hs-steps { list-style: none; margin: 14px 0 0; padding: 12px 14px; display: grid; gap: 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.a2hs-steps li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 500 .86rem/1.4 var(--sans); color: #dfe4f2; }
.a2hs-steps li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-right: 4px; font: 800 .72rem/1 var(--sans); font-style: normal;
  color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); }
.a2hs-steps b { color: #fff; }
.a2hs-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #6fa8ff; background: rgba(255,255,255,.1); }
.a2hs-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.a2hs-act button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 700 .86rem/1 var(--sans); cursor: pointer; border: 1px solid transparent; }
.a2hs-later { background: transparent; color: #dfe4f2; border-color: rgba(255,255,255,.2) !important; }
.a2hs-later:hover { background: rgba(255,255,255,.08); }
.a2hs-go { color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); box-shadow: 0 12px 24px -12px rgba(214,180,103,.8); }
.a2hs-go:hover { filter: brightness(1.06); }
body.modal-open .a2hs, html:has(dialog[open]) .a2hs { opacity: 0; pointer-events: none; }
/* footer link */
.f2-bottom:has(.a2hs-link) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.a2hs-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font: 700 .8rem/1 var(--sans);
  color: #f0d898; background: rgba(214,180,103,.1); border: 1px solid rgba(214,180,103,.4); }
.a2hs-link:hover { background: linear-gradient(135deg, #f0d898, #d6b467); color: #0b1430; }
/* opened from the home screen: room for the iPhone status bar */
html.is-app .site-header, html.is-app #header { padding-top: env(safe-area-inset-top); }
.a2hs-steps li { display: block; position: relative; padding-left: 32px; min-height: 28px; line-height: 28px; }
.a2hs-steps li > i { position: absolute; left: 0; top: 3px; margin: 0; }
.a2hs-ic { vertical-align: middle; margin: 0 2px; }

/* ---- Video slide: centred absolutely inside the frame; its size is set by script ---- */
.ss-imgs > .ss-vid { position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important;
  margin: 0 !important; max-width: 100% !important; max-height: 100% !important; aspect-ratio: auto !important; place-self: auto; }

/* ---- Article viewer: breadcrumb bar stays pinned at the top while reading ---- */
.modal-body > .m-crumbs { position: sticky; top: 0; z-index: 30; background: rgba(7,13,34,.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 24px -18px rgba(0,0,0,.8); }
#postModal > #modalClose { z-index: 40 !important; }

/* ---- "New version available" notice ---- */
.kn-update { position: fixed; z-index: 130; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; transition: opacity .3s, transform .4s var(--ease);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; max-width: calc(100vw - 24px);
  color: #eef1f8; background: rgba(10,18,44,.96); border: 1px solid rgba(214,180,103,.4); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); font: 600 .86rem/1.3 var(--sans); }
.kn-update.in { opacity: 1; transform: translate(-50%, 0); }
.kn-update button { flex: none; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; font: 700 .82rem/1 var(--sans); color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); }

/* ---- Article viewer on notched phones / installed app: the pinned breadcrumb bar sits BELOW the status bar ----
   --sat = status-bar height (measured on the page by script; env() alone reads 0 inside the viewer on some iPhones) */
:root { --sat: env(safe-area-inset-top, 0px); }
.modal-body > .m-crumbs { padding-top: calc(12px + var(--sat)) !important; }
#postModal > #modalClose { top: calc(8px + var(--sat)) !important; }
/* everything inside the viewer already sits under the bar, so it no longer needs its own status-bar gap */
.modal-body:has(> .m-crumbs) .m-video-wrap { padding-top: 0; }
.modal-body:has(> .m-crumbs) .ss-bar { top: 12px; }
.modal-body:has(> .m-crumbs) .ss-top { top: 26px; }
.modal-body:has(> .m-crumbs) .m-count { top: 18px; }
/* smooth, natural scrolling inside the viewer on every phone (no "hold to scroll") */
.modal-body { overscroll-behavior: contain; }   /* (no -webkit-overflow-scrolling: it blocks taps on embedded players on iPhone) */

/* ---- Swipe rows (news / achievements / press / TikTok): bleed exactly to the screen edge at every phone width ---- */
@media (max-width: 599px) {
  html:not([data-page]) #feed, html:not([data-page]) #achList, html:not([data-page]) #pressList {
    margin-inline: calc(-1 * var(--gutter)) !important; padding-inline: var(--gutter) !important; scroll-padding: 0 var(--gutter); }
}
html:not([data-page]) .tt-rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

/* ---- Splash screens: truly full screen and clean — nothing else shows while a splash is up ---- */
.preloader, .pg-veil { inset: 0 0 auto 0 !important; height: 100vh; height: 100lvh; min-height: 100%; }
html:has(.preloader:not(.done)) .dock, html:has(.pg-veil.on) .dock,
html:has(.preloader:not(.done)) .site-header, html:has(.pg-veil.on) .site-header,
html:has(.preloader:not(.done)) .a2hs, html:has(.pg-veil.on) .a2hs, html:has(.preloader:not(.done)) .kn-update {
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: none !important; }
/* after the splash, the bar rises in gently */
.dock { transition: opacity .45s ease, transform .5s var(--ease), visibility 0s; }

/* ===================== Dock v3: clean, premium — flat navy glass, even icons, soft gold capsule on the active item ===================== */
.dock, :root[data-theme="dark"] .dock {
  --dk-cut: #0c1636;
  padding: 6px !important; border-radius: 26px !important; border: 1px solid rgba(214,180,103,.26) !important;
  background: linear-gradient(180deg, rgba(20,31,70,.9), rgba(9,16,40,.94)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px -16px rgba(2,5,18,.85), 0 2px 8px -2px rgba(2,5,18,.5) !important;
}
.dock::before { background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 45%) !important; }
.dock::after { opacity: 0 !important; }
.dock a { min-height: 50px !important; gap: 4px !important; border-radius: 18px; color: rgba(222,229,246,.6) !important; transition: color .3s ease; }
.dock .dk-ic { width: 26px !important; height: 24px !important; background: none !important; box-shadow: none !important; }
.dock svg { width: 22px !important; height: 22px !important; filter: none !important; transform: none !important; }
.dock svg .ln, .dock svg .bk, .dock svg .dt { stroke-width: 1.65; }
.dock .dk-lb { font: 600 .62rem/1 var(--sans) !important; letter-spacing: .02em; color: rgba(222,229,246,.66) !important; text-shadow: none !important; }
/* active item: soft gold capsule around icon + label, solid gold glyph with navy details */
.dk-ind { border-radius: 18px !important; background: linear-gradient(180deg, rgba(240,216,152,.2), rgba(214,180,103,.1)) !important;
  box-shadow: inset 0 0 0 1px rgba(240,216,152,.34), inset 0 1px 0 rgba(255,244,214,.18) !important; }
.dock a.on, :root[data-theme="dark"] .dock a.on { color: #f0d898 !important; }
.dock a.on .dk-ic, :root[data-theme="dark"] .dock a.on .dk-ic { color: #f0d898 !important; }
.dock a.on svg .ln { fill: #f0d898; fill-opacity: 1; stroke: #f0d898; }
.dock a.on svg .bk { stroke: #f0d898; opacity: .85; }
.dock a.on svg .dt { stroke: var(--dk-cut); }
.dock a.on svg .dt.fl { fill: var(--dk-cut); stroke: none; }
.dock a.on .dk-lb, :root[data-theme="dark"] .dock a.on .dk-lb { color: #f0d898 !important; font-weight: 700 !important; }
@media (hover: hover) { .dock a:hover:not(.on) { color: #fff !important; } .dock a:hover:not(.on) .dk-lb { color: #fff !important; } }
.dock a:active .dk-ic, .dock a.tap .dk-ic { transform: scale(.9); transition: transform .15s; }
/* desktop: icon and label side by side inside the capsule */
@media (min-width: 960px) {
  .dock a { min-height: 40px !important; padding: 0 14px 0 10px !important; gap: 7px !important; border-radius: 16px; }
  .dock .dk-lb { font-size: .76rem !important; }
  .dock a.on .dk-lb, :root[data-theme="dark"] .dock a.on .dk-lb { color: #f0d898 !important; text-shadow: none !important; }
  .dk-ind { border-radius: 16px !important; }
}

/* ---- Header KN logo: drawn inline as vector so it is razor-sharp on every screen (incl. iPhone home-screen app) ---- */
#header .brand svg.brand-official { display: block; flex: none; height: 46px !important; width: calc(46px * 4 / 3) !important; overflow: visible;
  shape-rendering: geometricPrecision; text-rendering: geometricPrecision; }
@media (min-width: 960px) { #header .brand svg.brand-official { height: 50px !important; width: calc(50px * 4 / 3) !important; } }

/* ---- Header: keep the logo and photo out of any blurred/composited layer so iPhone draws them at full sharpness ----
   the frosted glass now lives on a background layer (::before) behind the header's content */
.site-header { isolation: isolate; }
.site-header, .site-header.scrolled, .site-header.menu-open { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.site-header.scrolled::before { opacity: 1; }
.site-header.hide::before, .site-header.menu-open::before { opacity: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body > header.site-header { transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease); will-change: auto; }
#header .brand, #header .brand * { will-change: auto !important; transform: none; filter: none; }
.a2hs-note { margin: 12px 0 0; font: 500 .8rem/1.45 var(--sans); color: #c9d1e8; }
.a2hs-steps small { font-size: .74rem; color: #9fa9c6; font-weight: 500; }


/* ---- Update notice v2: wide card, one tidy line of text beside the button, below the status bar ---- */
.kn-update { width: min(440px, calc(100vw - 24px)); max-width: none; top: calc(12px + var(--sat, env(safe-area-inset-top, 0px))) !important;
  display: grid !important; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px !important;
  padding: 10px 10px 10px 12px !important; border-radius: 18px !important; }
.kn-update .ku-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); }
.kn-update .ku-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kn-update .ku-t b { font: 700 .9rem/1.2 var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-update .ku-t small { font: 500 .74rem/1.25 var(--sans); color: #aeb8d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-update button { white-space: nowrap; padding: 10px 14px !important; border-radius: 12px !important; }
@media (max-width: 359px) { .kn-update .ku-t small { display: none; } }
.kn-update .ku-t small { white-space: normal; overflow: visible; text-overflow: clip; }
/* taps go straight through the cover image / spinner to the video player underneath */
.m-video .m-poster, .m-video .m-loading { pointer-events: none; }
/* no double-tap-zoom wait on the video area: a single tap goes straight to the player */
.m-video, .m-video iframe, .m-video-wrap, .ss-imgs .ss-vid { touch-action: manipulation; }

/* ---- Header KN logo as a high-resolution PNG (iPhone home-screen app drew the SVG's masks at low resolution) ---- */
#header .brand img.brand-official { display: block; flex: none; height: 46px !important; width: calc(46px * 4 / 3) !important; object-fit: contain; image-rendering: auto; }
@media (min-width: 960px) { #header .brand img.brand-official { height: 50px !important; width: calc(50px * 4 / 3) !important; } }

/* ---- Home-screen app on iOS 26+: iOS lays a soft blur over the top ~30pt below the status bar.
       The header's logo row sits just below that band (the band itself stays navy), so the logo, photo and icons
       stay fully sharp; --header-h grows by the same amount, so every page section moves down with it. ---- */
html.is-app { --app-gap: 28px; --header-h: calc(64px + var(--app-gap)); }
@media (min-width: 960px) { html.is-app { --header-h: calc(76px + var(--app-gap)); } }
html.is-app .site-header, html.is-app #header { padding-top: calc(env(safe-area-inset-top, 0px) + var(--app-gap)) !important; }
html.is-app .header-inner { height: calc(var(--header-h) - var(--app-gap)) !important; }

/* ---- Command Centre link (admin sign-in) ---- */
.cc-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; font: 700 .78rem/1 var(--sans); letter-spacing: .01em;
  color: #f0d898 !important; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(214,180,103,.42); background: rgba(214,180,103,.08); transition: background .2s, color .2s; }
.cc-link::after { display: none !important; }
.cc-link:hover { background: linear-gradient(135deg, #f0d898, #d6b467); color: #0b1430 !important; }
.nav-extras .cc-m { margin-left: auto; margin-right: 10px; padding: 11px 14px; }
.utility .cc-d { padding: 5px 11px; font-size: .72rem; margin-right: 6px; }
:root[data-theme="light"] .utility .cc-d { color: var(--gold-text) !important; }
/* phone menu: Command Centre gets its own full-width row under BM/EN + theme */
.nav-extras { flex-wrap: wrap; }
#nav .nav-extras a.cc-m { order: 3; flex: 1 0 100%; justify-content: center; margin: 12px 0 0 !important; padding: 13px 16px !important; min-height: 0 !important;
  font: 700 .88rem/1 var(--sans) !important; letter-spacing: .01em; color: #f0d898 !important; border: 1px solid rgba(214,180,103,.42) !important; border-radius: 14px !important;
  background: rgba(214,180,103,.08) !important; box-shadow: none !important; }
#nav .nav-extras a.cc-m svg { width: 17px; height: 17px; }
#nav .nav-extras a.cc-m:hover { background: linear-gradient(135deg, #f0d898, #d6b467) !important; color: #0b1430 !important; }
/* phone menu: Command Centre as a plain text link (no button), in the row between BM/EN and the theme toggle */
.nav-extras { flex-wrap: nowrap; }
#nav .nav-extras a.cc-m { order: 0; flex: 0 1 auto; justify-content: flex-start; margin: 0 8px 0 auto !important; padding: 8px 4px !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; min-width: 0;
  font: 700 .84rem/1.2 var(--sans) !important; color: #f0d898 !important; gap: 6px; white-space: nowrap; }
#nav .nav-extras a.cc-m span { overflow: hidden; text-overflow: clip; }
#nav .nav-extras a.cc-m:hover { background: none !important; color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
#nav .nav-extras a.cc-m { flex: 0 0 auto !important; width: auto !important; gap: 6px !important; display: inline-flex !important; align-items: center; }
#nav .nav-extras a.cc-m > span, #nav .nav-extras a.cc-m > svg { flex: none !important; width: auto; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: none !important; border: 0 !important; }
#nav .nav-extras a.cc-m > svg { width: 16px !important; height: 16px !important; }
.nav-extras .theme-btn, .nav-extras .lang-switch { flex: none !important; }
.nav-extras .theme-btn { width: 40px !important; height: 40px !important; }

/* ---- Election dashboard embedded in the Command Centre: dashboard only ---- */
html.embed .site-header, html.embed .utility, html.embed .site-footer, html.embed .dock, html.embed #preloader, html.embed .pg-veil,
html.embed .progress, html.embed .pr-banner, html.embed .a2hs, html.embed .kn-update, html.embed .nav-scrim, html.embed .back-top, html.embed #toTop, html.embed .to-top { display: none !important; }
html.embed, html.embed body { background: transparent !important; }
html.embed body { padding: 0 !important; overflow-x: hidden; }
html.embed main.pr-page { padding: 0 !important; margin: 0 !important; }
html.embed #pr { padding-top: 6px; padding-bottom: 24px; }
html.embed body, html.embed main.pr-page { min-height: 0 !important; height: auto !important; }
html.embed #pr { padding-bottom: 8px !important; }

/* ---- Election dashboard: no "i" tip icons ---- */
.pr-info { display: none !important; }
html body #pr .pr-info, html body #pr .pr-info:not(.pr-src-btn), html body .pr-info { display: none !important; }
/* embedded dashboard: pop-up panels (seat details etc.) cover only the part of the dashboard that is on screen */
html.embed .pr-drawer { position: absolute !important; inset: auto 0 auto 0 !important; top: var(--vp-top, 0px) !important; height: var(--vp-h, 100vh) !important; }
html.embed .pr-drawer .pr-dr, html.embed .pr-drawer .pr-dr-back { height: 100% !important; max-height: 100% !important; }
html.embed .pr-drawer .pr-dr { overflow-y: auto !important; overscroll-behavior: contain; }
/* hemicycle side labels + majority line spacing */
.pr-hemi .pr-side { font-size: .034px; letter-spacing: .006px; fill: rgba(255,255,255,.6); }
html[data-theme="light"] .pr-hemi .pr-side { fill: rgba(20,27,58,.6); }
.pr-majline { margin: 18px 8% 34px !important; }
.pr-majline small { top: 14px !important; padding-right: 2px; letter-spacing: .01em; }
/* majority bar: seats by side vs the majority and two-thirds lines */
.pr-majbar { margin: 16px 6% 4px; }
.pr-majbar .trk { position: relative; display: flex; height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.pr-majbar .trk i { width: 0; background: var(--c); height: 100%; cursor: pointer; transition: width .9s cubic-bezier(.2,.8,.2,1), filter .2s; animation: prMajIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.pr-majbar .trk i:first-child { border-radius: 999px 0 0 999px; } .pr-majbar .trk i:last-of-type { border-radius: 0 999px 999px 0; }
.pr-majbar .trk i:hover { filter: brightness(1.25); }
@keyframes prMajIn { to { width: var(--w); } }
.pr-majbar .trk u { position: absolute; left: var(--m); top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #f3dc9f; border-radius: 2px; box-shadow: 0 0 0 2px rgba(10,16,40,.6); cursor: help; }
.pr-majbar .trk u.two { background: rgba(255,255,255,.55); }
.pr-majbar .trk u::after { content: ''; position: absolute; inset: -6px -8px; }
.pr-majbar .lbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pr-majbar .lbl span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pr-majbar .lbl small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pr-majbar .lbl b { font: 800 1.05rem/1 var(--sans); color: #fff; }
.pr-majbar .lbl .up b { color: #7ee2a8; } .pr-majbar .lbl .dn b { color: #ff8a8a; }
html[data-theme="light"] .pr-majbar .trk { background: rgba(16,24,64,.08); }
html[data-theme="light"] .pr-majbar .lbl span { background: rgba(16,24,64,.04); }
html[data-theme="light"] .pr-majbar .lbl small { color: rgba(20,27,58,.55); } html[data-theme="light"] .pr-majbar .lbl b { color: #141b3a; }
html[data-theme="light"] .pr-majbar .lbl .up b { color: #1a8f52; } html[data-theme="light"] .pr-majbar .lbl .dn b { color: #c62f2f; }
/* match the hemicycle: government fills from the right (Speaker's right) */
.pr-majbar .trk { flex-direction: row-reverse; }
.pr-majbar .trk i:first-child { border-radius: 0 999px 999px 0; } .pr-majbar .trk i:last-of-type { border-radius: 999px 0 0 999px; }
.pr-majbar .trk u { left: auto; right: var(--m); margin: 0 -1px 0 0; }
.pr-majbar .lbl span:first-child { order: 3; } .pr-majbar .lbl span:nth-child(3) { order: 1; }
.pr-majbar .lbl span:nth-child(2) { order: 2; }
.pr-st-leg > span > em { font: 600 .74rem/1 var(--sans); font-style: normal; color: rgba(255,255,255,.72); margin-right: -1px; }
html[data-theme="light"] .pr-st-leg > span > em { color: rgba(20,27,58,.7); }
/* map: dominant party */
.pr-tip .pr-tip-dom { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; color: #fff; font-weight: 700; }
.pr-mc-dom { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pr-mc-dom > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pr-mc-dom small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.pr-mc-dom b { font: 800 .95rem/1.1 var(--sans); } .pr-mc-dom em { font-style: normal; font-size: .74rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-mc-dom strong { font: 800 1.3rem/1 var(--sans); white-space: nowrap; } .pr-mc-dom strong small { font-size: .7rem; text-transform: none; letter-spacing: 0; }
.pr-leg li:has(> .pr-emb) { grid-template-columns: 34px minmax(0, 1fr) auto auto !important; }
/* live counting banner */
.pr-counting { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(226,29,36,.12); border: 1px solid rgba(226,29,36,.35); color: #fff; }
.pr-counting i { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 0 rgba(255,77,79,.6); animation: prLive 1.6s infinite; }
.pr-counting b { font: 800 .9rem/1.2 var(--sans); } .pr-counting span { font-size: .8rem; opacity: .75; }
@keyframes prLive { to { box-shadow: 0 0 0 10px rgba(255,77,79,0); } }
html[data-theme="light"] .pr-counting { color: #141b3a; }
.pr-tip .pr-tip-parties { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 3px; }
.pr-tip .pr-tip-parties span { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.85); }
.pr-tip .pr-tip-parties b { font-weight: 800; color: #fff; }
.pr-tip { max-width: 280px; }
#prMap .pr-tip .pr-flag { --fw: 44px; }
#prMap .pr-tip .pr-tip-parties { gap: 4px 9px; font-size: .72rem; }
/* party logos: plain, flat 2D (no gloss, bevel or shadow) */
html body .pr-emb, html body .pr-emb.has-logo, html[data-theme] body .pr-emb.has-logo { background: var(--c) !important; box-shadow: none !important; border: 0 !important; outline: 0 !important; }
html .pr-emb.has-logo { background: var(--c) !important; border-radius: calc(var(--s) * .18) !important; }
html .pr-emb::before, html .pr-emb::after, html .pr-emb.has-logo::after { display: none !important; content: none !important; }
html .pr-emb img { filter: none !important; }
html .pr-emb b { text-shadow: none !important; }
/* each logo sits on a single colour that matches it */
html body .pr-emb.has-logo, html[data-theme] body .pr-emb.has-logo { background: var(--lb, var(--c)) !important; }
html body .pr-emb.has-logo.full img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
/* the state legend's pill styles must not leak onto the logo inside it */
html body .pr-st-leg span.pr-emb { padding: 0 !important; gap: 0 !important; display: inline-grid !important; }
.pr-ordtag { flex: none; align-self: center; padding: 0 6px 0 2px; font: 800 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e3c784; white-space: nowrap; }
/* candidate photo with the party logo as a small badge */
.pr-face { --s: 40px; position: relative; flex: none; display: inline-block; width: var(--s); height: var(--s); }
.pr-face > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #1a2550; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.pr-face > .pr-emb { position: absolute; right: -4px; bottom: -3px; box-shadow: 0 0 0 2px #0d1738 !important; }
html[data-theme="light"] .pr-face > .pr-emb { box-shadow: 0 0 0 2px #fff !important; }
.pr-cands li.win .pr-face > img { box-shadow: 0 0 0 2px #e3c784; }
/* government view: cabinet and state leadership */
.pr-gv-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; margin-top: 10px; }
.pr-gv-tabs::-webkit-scrollbar { display: none; }
.pr-gv-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #c9d2ea; font: 700 .8rem/1 var(--sans); cursor: pointer; }
.pr-gv-tabs button .pr-flag { --fw: 26px; }
.pr-gv-tabs button.on { background: linear-gradient(180deg, #f3dc9f, #d6b467); color: #141b3a; border-color: transparent; }
.pr-gv-hero { display: flex; gap: 18px; align-items: flex-start; margin-top: 8px; padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: linear-gradient(160deg, rgba(36,57,126,.55), rgba(10,16,40,.9)); border: 1px solid rgba(214,180,103,.22); }
.pr-gv-hero > .pr-flag { flex: none; }
.pr-gv-ht { min-width: 0; flex: 1; }
.pr-gv-head { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pr-gv-head > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pr-gv-head small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #e3c784; }
.pr-gv-head b { font: 800 1.15rem/1.2 var(--sans); color: #fff; } .pr-gv-head em { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.65); }
.pr-gv-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(243,220,159,.1); color: #f3dc9f; font-size: .82rem; }
.pr-gv-asof { margin: 10px 0 0; font-size: .76rem; color: rgba(255,255,255,.55); }
.pr-gv .pr-panel h3 small { font-size: .7em; opacity: .6; margin-left: 6px; }
.pr-gv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pr-gv-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.pr-gv-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pr-gv-m b { font: 700 .9rem/1.25 var(--sans); color: #fff; } .pr-gv-m span { font-size: .8rem; line-height: 1.3; color: rgba(255,255,255,.78); } .pr-gv-m small { font-size: .72rem; color: rgba(255,255,255,.5); }
.pr-gv-seat { flex: none; align-self: center; max-width: 130px; padding: 5px 9px; border-radius: 9px; border: 1px solid rgba(214,180,103,.35); background: transparent; color: #e3c784; font: 700 .7rem/1.25 var(--sans); text-align: center; cursor: pointer; }
span.pr-gv-seat { cursor: default; }
.pr-gv-head .pr-gv-seat { align-self: flex-start; margin-top: 4px; }
.pr-gv-src ul { margin: 10px 0 0; padding-left: 18px; font-size: .8rem; line-height: 1.6; } .pr-gv-src a { color: #c9d2ea; } .pr-gv-src small { opacity: .55; }
@media (max-width: 599px) { .pr-gv-hero { flex-direction: column; gap: 12px; } .pr-gv-list li { flex-wrap: wrap; } .pr-gv-seat { margin-left: 56px; } }
html[data-theme="light"] .pr-gv-hero { background: linear-gradient(160deg, #ffffff, #f3f5fc); border-color: rgba(16,24,64,.08); }
html[data-theme="light"] .pr-gv-head b, html[data-theme="light"] .pr-gv-m b { color: #141b3a; }
html[data-theme="light"] .pr-gv-head em, html[data-theme="light"] .pr-gv-m span, html[data-theme="light"] .pr-gv-m small, html[data-theme="light"] .pr-gv-asof { color: rgba(20,27,58,.65); }
html[data-theme="light"] .pr-gv-list li, html[data-theme="light"] .pr-gv-tabs button { background: rgba(16,24,64,.03); border-color: rgba(16,24,64,.08); color: #141b3a; }
html[data-theme="light"] .pr-gv-src a { color: #24397e; } html[data-theme="light"] .pr-gv-seat { color: #8f6a22; border-color: rgba(143,106,34,.4); }
/* candidate profile */
.pr-cands li[data-prof] { cursor: pointer; transition: background .2s; } .pr-cands li[data-prof]:hover { background: rgba(255,255,255,.06); }
.pr-prof-back { margin: 0 0 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(214,180,103,.35); background: transparent; color: #e3c784; font: 700 .78rem/1 var(--sans); cursor: pointer; }
.pr-prof-h { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pr-prof-h h3 { margin: 4px 0 4px; font-size: 1.25rem; line-height: 1.2; } .pr-prof-h p { margin: 0; font-size: .82rem; opacity: .7; }
.pr-prof-parties { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pr-prof-parties span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); font: 700 .76rem/1 var(--sans); }
.pr-prof h4 { margin: 18px 0 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.pr-prof-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-prof-l button { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "y s v" "y p e"; gap: 4px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: inherit; cursor: pointer; font: inherit; }
.pr-prof-l .y { grid-area: y; font: 800 .95rem/1 var(--sans); display: flex; flex-direction: column; gap: 3px; } .pr-prof-l .y small { font-size: .62rem; opacity: .6; letter-spacing: .08em; }
.pr-prof-l .s { grid-area: s; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pr-prof-l .s b { font-size: .86rem; } .pr-prof-l .s small { font-size: .7rem; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-prof-l .p { grid-area: p; display: flex; align-items: center; gap: 6px; font-size: .74rem; opacity: .85; }
.pr-prof-l .v { grid-area: v; text-align: right; font: 800 .86rem/1.1 var(--sans); } .pr-prof-l .v small { display: block; font-size: .66rem; font-weight: 500; opacity: .6; }
.pr-prof-l em { grid-area: e; justify-self: end; font-style: normal; font: 800 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.pr-prof-l em.win { background: #e3c784; color: #141b3a; } .pr-prof-l em.dep { color: #ff9a9a; } .pr-prof-l em.pend { color: #8fd3ff; }
.pr-pc-prof { margin: 8px 0 0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(214,180,103,.35); background: transparent; color: #e3c784; font: 700 .74rem/1 var(--sans); cursor: pointer; }
html[data-theme="light"] .pr-prof-l button, html[data-theme="light"] .pr-prof-parties span { background: rgba(16,24,64,.03); border-color: rgba(16,24,64,.08); }
html[data-theme="light"] .pr-prof-l em { background: rgba(16,24,64,.06); color: rgba(20,27,58,.7); } html[data-theme="light"] .pr-prof-l em.win { background: #d6b467; color: #141b3a; }
/* forecast: per-party swings, custom uncertainty, precision line */
.pr-fcmore { margin: 12px 0 4px; } .pr-fcmore summary { cursor: pointer; font: 700 .8rem/1.4 var(--sans); color: #e3c784; }
.pr-fcsws { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pr-fcsw { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pr-fcsw b { font: 700 .78rem/1 var(--sans); } .pr-fcsw em, .pr-fcsig em { font-style: normal; font: 800 .78rem/1 var(--sans); text-align: right; color: #f3dc9f; }
.pr-fcsw input, .pr-fcsig input { width: 100%; accent-color: #d6b467; }
.pr-fcsig { display: grid; gap: 6px; margin-top: 10px; } .pr-fcsig label { display: grid; grid-template-columns: 90px minmax(0, 1fr) 30px; align-items: center; gap: 8px; } .pr-fcsig small { font-size: .7rem; opacity: .7; }
.pr-fcmeta { margin: 14px 0 0; font-size: .78rem; color: rgba(255,255,255,.6); } .pr-fcmeta b { color: #fff; }
html[data-theme="light"] .pr-fcsw { background: rgba(16,24,64,.04); } html[data-theme="light"] .pr-fcmeta { color: rgba(20,27,58,.6); } html[data-theme="light"] .pr-fcmeta b { color: #141b3a; }
/* forecast: plain-language help and summary */
.pr-fchelp { margin: 4px 0 8px; font-size: .78rem; line-height: 1.45; color: rgba(255,255,255,.62); }
.pr-fchelp b { color: rgba(255,255,255,.85); }
.pr-fcsum { margin: 16px 0 0; padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(243,220,159,.1), rgba(243,220,159,.03)); border: 1px solid rgba(214,180,103,.35); }
.pr-fcsum h4 { margin: 0 0 8px !important; }
.pr-fcsum p { margin: 6px 0 0; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.88); }
.pr-fcsum b.w.ok { color: #7ee2a8; } .pr-fcsum b.w.no { color: #ffb4b4; }
.pr-fcsum button { border: 0; background: none; padding: 0; color: #f3dc9f; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="light"] .pr-fchelp { color: rgba(20,27,58,.62); } html[data-theme="light"] .pr-fchelp b, html[data-theme="light"] .pr-fcsum p { color: rgba(20,27,58,.88); }
html[data-theme="light"] .pr-fcsum b.w.ok { color: #1a8f52; } html[data-theme="light"] .pr-fcsum b.w.no { color: #c62f2f; } html[data-theme="light"] .pr-fcsum button { color: #8f6a22; }
/* one shape for every party logo, everywhere: a 1.3:1 rounded rectangle; size comes only from --s */
html body .pr-emb, html body .pr-chip .pr-emb, html body .pr-chips.sm .pr-chip .pr-emb, html body .pr-emb.has-logo {
  width: calc(var(--s) * 1.3) !important; height: var(--s) !important; min-width: 0 !important; border-radius: calc(var(--s) * .2) !important; overflow: hidden !important; }
html body .pr-emb.has-logo:not(.full) img, html body .pr-chip .pr-emb.has-logo:not(.full) img { position: absolute !important; inset: 0 !important; margin: auto !important; width: 86% !important; height: 80% !important; max-width: 86% !important; max-height: 80% !important; object-fit: contain !important; }
html body .pr-emb.has-logo.full img, html body .pr-chip .pr-emb.has-logo.full img { position: absolute !important; inset: 0 !important; margin: auto !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
html body .pr-emb:not(.has-logo) b { font-size: calc(var(--s) * var(--fs, .34) * .95) !important; }
html body .pr-emb:not(.has-logo) b { letter-spacing: -.01em !important; white-space: nowrap; }
/* forecast method tabs and alternative views */
.pr-fcm { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pr-fcm::-webkit-scrollbar { display: none; }
.pr-fcm button { flex: none; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: #c9d2ea; font: 700 .78rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.pr-fcm button.on { background: linear-gradient(180deg, #f3dc9f, #d6b467); color: #141b3a; }
.pr-fcl { fill: none; stroke-width: 3; stroke-linejoin: round; } .pr-fcl.u { stroke: #e3c784; } .pr-fcl.p { stroke: #7aa2ff; } .pr-fcl.g { stroke: rgba(255,255,255,.3); stroke-dasharray: 6 5; }
.pr-fcnow { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .6; }
.pr-fcens { display: grid; gap: 8px; margin-top: 14px; }
.pr-fcens .r { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(0, 2fr) 70px 80px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pr-fcens .n { font: 700 .82rem/1.2 var(--sans); }
.pr-fcens .rg { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.pr-fcens .rg i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 999px; background: #1f3f9e; }
.pr-fcens .rg u { position: absolute; top: -4px; bottom: -4px; left: var(--m); width: 2px; background: #f3dc9f; }
.pr-fcens .v { text-align: right; } .pr-fcens .v b { font: 800 1rem/1 var(--sans); } .pr-fcens small { font-size: .68rem; opacity: .6; } .pr-fcens .pl { text-align: right; font: 700 .8rem/1.2 var(--sans); }
@media (max-width: 599px) { .pr-fcens .r { grid-template-columns: minmax(0, 1fr) auto auto; } .pr-fcens .rg { grid-column: 1 / -1; order: 4; } }
html[data-theme="light"] .pr-fcm, html[data-theme="light"] .pr-fcens .r { background: rgba(16,24,64,.04); } html[data-theme="light"] .pr-fcm button { color: #24397e; } html[data-theme="light"] .pr-fcnow { stroke: #141b3a; } html[data-theme="light"] .pr-fcl.g { stroke: rgba(20,27,58,.3); }
.pr-gv-name[data-prof] { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(227,199,132,.45); text-underline-offset: 3px; }
.pr-gv-name[data-prof]:hover { color: #f3dc9f !important; }
.pr-cands li[data-prof] b { text-decoration: underline; text-decoration-color: rgba(227,199,132,.4); text-underline-offset: 3px; }
/* premium candidate profile */
.pr-prof-hero { display: flex; gap: 18px; align-items: center; padding: 18px; margin-bottom: 14px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(243,220,159,.16), rgba(243,220,159,0) 55%), linear-gradient(160deg, #18265a, #0c1433); border: 1px solid rgba(214,180,103,.3); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.pr-prof-photo { position: relative; flex: none; width: 112px; height: 136px; }
.pr-prof-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 18px; box-shadow: 0 0 0 3px rgba(243,220,159,.55), 0 14px 30px -12px rgba(0,0,0,.7); background: #c9d1e2; }
.pr-prof-ph { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pr-prof-badge { position: absolute; right: -10px; bottom: -8px; } .pr-prof-badge .pr-emb { box-shadow: 0 0 0 3px #0f1a40 !important; }
.pr-prof-id { min-width: 0; flex: 1; }
.pr-prof-id h3 { margin: 4px 0 6px; font: 400 1.45rem/1.15 var(--serif, Georgia, serif); color: #fff; }
.pr-prof-now { margin: 0; display: flex; align-items: center; gap: 7px; font: 700 .82rem/1.3 var(--sans); color: #f3dc9f; }
.pr-prof-now i { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 3px rgba(126,226,168,.2); flex: none; }
.pr-prof-now.off { color: rgba(255,255,255,.5); font-weight: 600; }
.pr-prof-post { margin: 4px 0 0; font-size: .8rem; color: rgba(255,255,255,.78); }
.pr-prof-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .pr-prof-tags span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .72rem; color: rgba(255,255,255,.8); }
.pr-prof-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pr-prof-kpi div { padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 4px; }
.pr-prof-kpi b { font: 800 1.15rem/1 var(--sans); color: #fff; } .pr-prof-kpi .g b { color: #f3dc9f; } .pr-prof-kpi small { font-size: .68rem; color: rgba(255,255,255,.55); line-height: 1.3; }
.pr-prof-chart { padding: 10px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.pr-prof-line { fill: none; stroke: rgba(243,220,159,.6); stroke-width: 2.5; }
.pr-prof-dot { stroke: #0c1433; stroke-width: 2; cursor: pointer; } .pr-prof-dot.w { fill: #f3dc9f; } .pr-prof-dot.l { fill: #6b7799; }
.pr-simleg i.w { background: #f3dc9f; border-radius: 50%; width: 10px; height: 10px; } .pr-simleg i.l { background: #6b7799; border-radius: 50%; width: 10px; height: 10px; }
.pr-prof-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-prof-j { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-prof-j li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.035); }
.pr-prof-j li > span:not(.pr-emb):not(.pr-code) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .pr-prof-j b { font-size: .82rem; } .pr-prof-j small { font-size: .68rem; opacity: .6; }
.pr-prof-j em { font-style: normal; font: 700 .72rem/1 var(--sans); color: rgba(255,255,255,.6); white-space: nowrap; }
@media (max-width: 520px) { .pr-prof-two { grid-template-columns: 1fr; } .pr-prof-hero { flex-direction: column; align-items: flex-start; } .pr-prof-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-theme="light"] .pr-prof-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(214,180,103,.18), rgba(214,180,103,0) 55%), linear-gradient(160deg, #ffffff, #f1f4fb); border-color: rgba(16,24,64,.1); }
html[data-theme="light"] .pr-prof-id h3, html[data-theme="light"] .pr-prof-kpi b { color: #141b3a; } html[data-theme="light"] .pr-prof-now { color: #8f6a22; } html[data-theme="light"] .pr-prof-post, html[data-theme="light"] .pr-prof-tags span { color: rgba(20,27,58,.75); }
html[data-theme="light"] .pr-prof-kpi div, html[data-theme="light"] .pr-prof-j li, html[data-theme="light"] .pr-prof-chart, html[data-theme="light"] .pr-prof-tags span { background: rgba(16,24,64,.035); border-color: rgba(16,24,64,.07); }
html[data-theme="light"] .pr-prof-kpi small, html[data-theme="light"] .pr-prof-j em { color: rgba(20,27,58,.55); } html[data-theme="light"] .pr-prof-kpi .g b { color: #8f6a22; } html[data-theme="light"] .pr-prof-badge .pr-emb { box-shadow: 0 0 0 3px #fff !important; }
.pr-prof-chart { position: relative; }
.pr-prof-area { fill: url(#prProfFill); }
.pr-prof-line { stroke: #f3dc9f !important; stroke-width: 3 !important; stroke-linecap: round; stroke-linejoin: round; }
.pr-prof-val { font: 800 12px/1 var(--sans); fill: #fff; paint-order: stroke; stroke: #0c1433; stroke-width: 3px; }
.pr-gl.mid { stroke: rgba(243,220,159,.35); stroke-dasharray: 4 4; }
.pr-prof-trend { position: absolute; top: 10px; right: 14px; margin: 0; padding: 4px 10px; border-radius: 999px; font: 800 .74rem/1 var(--sans); }
.pr-prof-trend.up { background: rgba(126,226,168,.14); color: #7ee2a8; } .pr-prof-trend.dn { background: rgba(255,138,138,.14); color: #ff9a9a; }
html[data-theme="light"] .pr-prof-val { fill: #141b3a; stroke: #fff; } html[data-theme="light"] .pr-prof-line { stroke: #b8913a !important; }
html[data-theme="light"] .pr-prof-trend.up { color: #1a8f52; } html[data-theme="light"] .pr-prof-trend.dn { color: #c62f2f; }
/* profile: party journey and seats each get their own full-width row */
html body .pr-prof-two { grid-template-columns: 1fr !important; gap: 4px; }
.pr-prof-two > div:first-child .pr-prof-j { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pr-prof-two > div:last-child .pr-prof-j { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
/* dashboard global search */
.pr-gsearch { position: relative; margin-top: 14px; }
.pr-gsearch > svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: #e3c784; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.pr-gsearch input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 16px; border: 1px solid rgba(214,180,103,.35); background: rgba(255,255,255,.05); color: #fff; font: 600 .92rem/1 var(--sans); outline: none; transition: border-color .2s, background .2s; }
.pr-gsearch input::placeholder { color: rgba(255,255,255,.45); font-weight: 500; }
.pr-gsearch input:focus { border-color: #e3c784; background: rgba(255,255,255,.08); }
.pr-gres { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 520px); overflow-y: auto; padding: 10px; border-radius: 18px; background: #0d1738; border: 1px solid rgba(214,180,103,.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.pr-gs-sec + .pr-gs-sec { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.pr-gs-sec h5 { margin: 4px 8px 6px; font: 800 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.pr-gs-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pr-gs-i:hover, .pr-gs-i:focus-visible { background: rgba(255,255,255,.06); }
.pr-gs-i > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pr-gs-i b { font: 700 .86rem/1.25 var(--sans); color: #fff; } .pr-gs-i small { font-size: .72rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-gs-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(243,220,159,.5); }
.pr-gs-i .pr-flag { --fw: 34px; flex: none; }
.pr-gs-note { margin: 8px; font-size: .82rem; color: rgba(255,255,255,.6); }
html[data-theme="light"] .pr-gsearch input { background: #fff; color: #141b3a; border-color: rgba(16,24,64,.15); } html[data-theme="light"] .pr-gsearch input::placeholder { color: rgba(20,27,58,.45); }
html[data-theme="light"] .pr-gres { background: #fff; border-color: rgba(16,24,64,.12); } html[data-theme="light"] .pr-gs-i b { color: #141b3a; } html[data-theme="light"] .pr-gs-i small, html[data-theme="light"] .pr-gs-note { color: rgba(20,27,58,.6); } html[data-theme="light"] .pr-gs-i:hover { background: rgba(16,24,64,.04); }
/* context strip: which election and chamber is on screen */
.pr-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(214,180,103,.22); }
.pr-ctx-k { padding: 5px 10px; border-radius: 999px; font: 800 .66rem/1 var(--sans); letter-spacing: .12em; }
.pr-ctx-k.par { background: #e3c784; color: #141b3a; } .pr-ctx-k.dun { background: #7aa2ff; color: #0b1433; }
.pr-ctx b { font: 700 .9rem/1.2 var(--sans); color: #fff; } .pr-ctx small { font-size: .76rem; color: rgba(255,255,255,.6); }
.pr-ctx-s { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(214,180,103,.35); background: transparent; cursor: pointer; }
.pr-ctx-s svg { width: 17px; height: 17px; fill: none; stroke: #e3c784; stroke-width: 2; stroke-linecap: round; }
html[data-theme="light"] .pr-ctx { background: #fff; border-color: rgba(16,24,64,.1); } html[data-theme="light"] .pr-ctx b { color: #141b3a; } html[data-theme="light"] .pr-ctx small { color: rgba(20,27,58,.6); }
html body .pr-hemi-n { font-size: .17px !important; }
html body .pr-hemi-l { font-size: .042px !important; }
/* slimmer context line: just the chamber */
html body .pr-ctx { padding: 0; margin: 2px 2px 12px; background: none; border: 0; gap: 10px; }
html body .pr-ctx small { font-size: .8rem; }
/* map: Parlimen / DUN tabs */
.pr-maphd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pr-maphd h3 { margin: 0 !important; }
.pr-maptabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.pr-maptabs button { padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: #c9d2ea; font: 700 .8rem/1 var(--sans); cursor: pointer; }
.pr-maptabs button.on { background: linear-gradient(180deg, #f3dc9f, #d6b467); color: #141b3a; }
.pr-mapsub { margin: 8px 0 4px; font-size: .78rem; line-height: 1.45; color: rgba(255,255,255,.6); }
html[data-theme="light"] .pr-maptabs { background: rgba(16,24,64,.04); border-color: rgba(16,24,64,.08); } html[data-theme="light"] .pr-maptabs button { color: #24397e; } html[data-theme="light"] .pr-mapsub { color: rgba(20,27,58,.6); }
/* chamber line: a tidy pill with breathing room */
html body .pr-ctx { display: inline-flex; margin: 16px 0 18px; padding: 6px 14px 6px 6px; gap: 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html body .pr-ctx-k { padding: 6px 12px; }
html body .pr-ctx small { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .01em; }
html[data-theme="light"] body .pr-ctx { background: #fff; border-color: rgba(16,24,64,.1); } html[data-theme="light"] body .pr-ctx small { color: rgba(20,27,58,.7); }
/* parliament / assembly terms and next elections */
.pr-term-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; } .pr-term-top p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.65); }
.pr-term-st { padding: 5px 11px; border-radius: 999px; font: 800 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: rgba(126,226,168,.14); color: #7ee2a8; }
.pr-term-st.on { background: rgba(255,138,138,.14); color: #ff9a9a; }
.pr-term-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pr-term-k div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 4px; }
.pr-term-k div.hi { border-color: rgba(214,180,103,.45); background: rgba(243,220,159,.08); }
.pr-term-k small { font-size: .68rem; color: rgba(255,255,255,.6); line-height: 1.3; } .pr-term-k b { font: 800 1rem/1.2 var(--sans); color: #fff; } .pr-term-k em { font-style: normal; font-size: .72rem; color: #e3c784; }
.pr-term-h { margin-top: 10px; } .pr-term-h summary { cursor: pointer; font: 700 .8rem/1.4 var(--sans); color: #e3c784; } .pr-term-h table { margin-top: 8px; width: 100%; }
.pr-term-list { display: grid; gap: 6px; margin-top: 10px; }
.pr-term-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pr-term-row:hover { border-color: rgba(214,180,103,.4); } .pr-term-row .pr-flag { --fw: 36px; flex: none; }
.pr-term-row > span:not(.pr-flag) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .pr-term-row .d { flex: none; text-align: right; align-items: flex-end; }
.pr-term-row b { font: 700 .88rem/1.2 var(--sans); color: #fff; } .pr-term-row small { font-size: .72rem; color: rgba(255,255,255,.55); }
.pr-dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; } .pr-dates span { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font: 700 .82rem/1.2 var(--sans); }
.pr-dates small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #e3c784; font-weight: 800; }
@media (max-width: 560px) { .pr-term-k { grid-template-columns: 1fr; } }
html[data-theme="light"] .pr-term-k div, html[data-theme="light"] .pr-term-row, html[data-theme="light"] .pr-dates span { background: rgba(16,24,64,.035); border-color: rgba(16,24,64,.08); }
html[data-theme="light"] .pr-term-k b, html[data-theme="light"] .pr-term-row b { color: #141b3a; } html[data-theme="light"] .pr-term-k small, html[data-theme="light"] .pr-term-row small, html[data-theme="light"] .pr-term-top p { color: rgba(20,27,58,.6); }
/* cut-out portraits on the page's own background */
html body .pr-prof-photo { width: 128px; height: 140px; }
html body .pr-prof-photo::before { content: ""; position: absolute; inset: 18% 6% 0; border-radius: 50% 50% 18px 18px; background: radial-gradient(70% 70% at 50% 35%, rgba(243,220,159,.28), rgba(243,220,159,0) 70%); }
html body .pr-prof-photo > img { position: relative; background: transparent !important; box-shadow: none !important; border-radius: 0 0 18px 18px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
html body .pr-prof-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(243,220,159,.6), transparent); }
html body .pr-gs-face { background: rgba(255,255,255,.06); object-fit: cover; object-position: 50% 20%; }
html[data-theme="light"] body .pr-prof-photo > img { filter: drop-shadow(0 8px 14px rgba(16,24,64,.25)); }
/* panels inside the Command Centre: smooth, contained scrolling and comfortable reading width */
html.embed .pr-drawer .pr-dr { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-bottom: 90px !important; }
html.embed .pr-drawer .pr-dr-top { position: sticky; top: 0; z-index: 5; background: inherit; }
/* profile facts: label over value, divided, no pills */
.pr-prof-facts { display: flex; flex-wrap: wrap; margin: 14px 0 0; padding: 0; }
.pr-prof-facts div { padding: 0 16px; border-left: 1px solid rgba(255,255,255,.12); } .pr-prof-facts div:first-child { padding-left: 0; border-left: 0; }
.pr-prof-facts dt { font: 800 .6rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e3c784; margin-bottom: 5px; }
.pr-prof-facts dd { margin: 0; font: 600 .88rem/1.2 var(--sans); color: #fff; }
@media (max-width: 520px) { .pr-prof-facts { row-gap: 10px; } .pr-prof-facts div { padding: 0 12px; } }
html[data-theme="light"] .pr-prof-facts div { border-color: rgba(16,24,64,.12); } html[data-theme="light"] .pr-prof-facts dd { color: #141b3a; } html[data-theme="light"] .pr-prof-facts dt { color: #8f6a22; }
/* profile header v3: cleaner, balanced */
html body .pr-prof-hero { align-items: stretch; gap: 22px; padding: 22px; border-radius: 24px; background: radial-gradient(130% 120% at 0% 0%, rgba(243,220,159,.14), rgba(243,220,159,0) 50%), linear-gradient(165deg, #1a2a63 0%, #0e1739 70%); }
html body .pr-prof-photo { width: 150px; height: 180px; flex: none; align-self: center; }
html body .pr-prof-photo > img { border-radius: 20px; }
.pr-prof-id { display: flex; flex-direction: column; justify-content: center; }
.pr-prof-party { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pr-prof-party b { font: 800 .74rem/1 var(--sans); letter-spacing: .04em; color: #fff; } .pr-prof-party small { font: 600 .7rem/1 var(--sans); color: rgba(255,255,255,.55); }
.pr-prof-party small::before { content: "·"; margin-right: 6px; opacity: .6; }
html body .pr-prof-id h3 { font-size: 1.6rem; margin: 10px 0 8px; letter-spacing: -.005em; }
html body .pr-prof-post { font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.8); margin-top: 6px; }
html body .pr-prof-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
html body .pr-prof-facts div, html body .pr-prof-facts div:first-child { padding: 0; border: 0; }
@media (max-width: 560px) { html body .pr-prof-hero { flex-direction: column; align-items: flex-start; } html body .pr-prof-photo { width: 132px; height: 158px; align-self: flex-start; } html body .pr-prof-id h3 { font-size: 1.35rem; } }
html[data-theme="light"] body .pr-prof-hero { background: radial-gradient(130% 120% at 0% 0%, rgba(214,180,103,.16), rgba(214,180,103,0) 50%), linear-gradient(165deg, #ffffff, #f2f5fc); }
html[data-theme="light"] .pr-prof-party { background: rgba(16,24,64,.04); border-color: rgba(16,24,64,.1); } html[data-theme="light"] .pr-prof-party b { color: #141b3a; } html[data-theme="light"] body .pr-prof-post { color: rgba(20,27,58,.75); } html[data-theme="light"] body .pr-prof-facts { border-color: rgba(16,24,64,.08); }
/* portrait: no glow, no drop shadow, no underline — just the cut-out on the card */
html body .pr-prof-photo::before, html body .pr-prof-photo::after { content: none !important; display: none !important; }
html body .pr-prof-photo > img, html[data-theme="light"] body .pr-prof-photo > img { filter: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; object-fit: contain; object-position: 50% 100%; }
html body .pr-prof-photo { width: 160px; height: 160px; }
/* profile history rows: never clip; give each line its own room */
html body .pr-prof-l button { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; padding: 14px 16px !important; row-gap: 8px !important; align-items: center; line-height: 1.3; }
html body .pr-prof-l .s, html body .pr-prof-l .p, html body .pr-prof-l .v { overflow: visible; }
html body .pr-prof-l .s b { white-space: normal; }
html body .pr-prof-l li + li { margin-top: 2px; }
/* panel title bar: solid frosted backdrop, content slides cleanly underneath */
html body .pr-dr-top { position: sticky !important; top: 0; z-index: 6; margin: -26px calc(-1 * clamp(18px, 3vw, 34px)) 14px !important; padding: 18px clamp(18px, 3vw, 34px) 14px !important; background: rgba(10,16,40,.86) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(255,255,255,.07); }
html[data-theme="light"] body .pr-dr-top { background: rgba(255,255,255,.88) !important; border-color: rgba(16,24,64,.08); }
/* panel reaches the bottom of the screen; leave room for the Command Centre dock */
html.embed .pr-drawer .pr-dr { padding-bottom: 130px !important; }
/* PKR's wide flag-logo fills its badge (no red frame) */
html body .pr-emb.has-logo.full img[alt="PKR"] { object-fit: cover !important; }
/* government header card */
.pr-gv-hero2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: end; margin-top: 8px; padding: 22px 24px 18px; border-radius: 24px; background: radial-gradient(120% 120% at 0% 0%, rgba(243,220,159,.14), rgba(243,220,159,0) 50%), linear-gradient(165deg, #1a2a63, #0e1739 75%); border: 1px solid rgba(214,180,103,.28); }
.pr-gv-face { width: 132px; height: 132px; grid-row: 1; } .pr-gv-face img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pr-gv-face.nf { display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.04); }
.pr-gv-hb { align-self: center; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-gv-kick { display: flex; align-items: center; gap: 8px; } .pr-gv-kick .pr-flag { --fw: 26px; }
.pr-gv-kick span { font: 800 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e3c784; }
.pr-gv-role { margin-top: 8px; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pr-gv-hb h3 { margin: 2px 0 6px; font: 400 1.55rem/1.15 var(--serif, Georgia, serif); color: #fff; text-decoration: none !important; }
.pr-gv-hb h3.pr-gv-name[data-prof] { cursor: pointer; } .pr-gv-hb h3.pr-gv-name[data-prof]:hover { color: #f3dc9f; }
.pr-gv-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-gv-pty { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pr-gv-pty b { font: 800 .74rem/1 var(--sans); color: #fff; } .pr-gv-pty small { font: 600 .7rem/1 var(--sans); color: rgba(255,255,255,.55); } .pr-gv-pty small::before { content: "·"; margin-right: 6px; opacity: .6; }
.pr-gv-meta .pr-gv-seat { margin: 0 !important; align-self: auto !important; border-radius: 999px; padding: 6px 12px; }
.pr-gv-note2 { grid-column: 1 / -1; display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(243,220,159,.07); border: 1px solid rgba(243,220,159,.18); color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.5; }
.pr-gv-note2 i { flex: none; width: 6px; border-radius: 3px; background: #e3c784; }
.pr-gv-asof2 { grid-column: 1 / -1; margin: 10px 0 0; font-size: .74rem; color: rgba(255,255,255,.5); }
@media (max-width: 560px) { .pr-gv-hero2 { grid-template-columns: 1fr; padding: 18px; } .pr-gv-face { width: 120px; height: 120px; } .pr-gv-hb h3 { font-size: 1.35rem; } }
html[data-theme="light"] .pr-gv-hero2 { background: radial-gradient(120% 120% at 0% 0%, rgba(214,180,103,.16), rgba(214,180,103,0) 50%), linear-gradient(165deg, #ffffff, #f2f5fc); border-color: rgba(16,24,64,.1); }
html[data-theme="light"] .pr-gv-hb h3, html[data-theme="light"] .pr-gv-pty b { color: #141b3a; } html[data-theme="light"] .pr-gv-role, html[data-theme="light"] .pr-gv-asof2 { color: rgba(20,27,58,.6); } html[data-theme="light"] .pr-gv-note2 { color: rgba(20,27,58,.8); } html[data-theme="light"] .pr-gv-pty { background: rgba(16,24,64,.04); border-color: rgba(16,24,64,.1); }
/* small official originals: shown nearer their native size so they stay crisp */
html body .pr-prof-photo.lr { width: 118px; height: 118px; }
/* seat in the government lists: plain text link, no pill */
html body .pr-gv-seat { border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; max-width: 140px; text-align: right; font: 700 .76rem/1.35 var(--sans) !important; color: #e3c784; }
html body button.pr-gv-seat:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { html body .pr-gv-list .pr-gv-seat { margin-left: 56px !important; text-align: left; max-width: none; } }
html[data-theme="light"] body .pr-gv-seat { color: #8f6a22; }
/* trend label on the heading line, not over the chart */
.pr-prof-h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html body .pr-prof-trend { position: static !important; padding: 0 !important; background: none !important; font: 800 .78rem/1 var(--sans) !important; letter-spacing: 0; text-transform: none; }
.pr-prof-trend small { font-weight: 600; color: rgba(255,255,255,.5); margin-left: 2px; }
html[data-theme="light"] .pr-prof-trend small { color: rgba(20,27,58,.5); }
/* panel title bar sits in normal flow at the very top (no negative-margin trick), content starts below it */
html body .pr-dr { padding-top: 0 !important; }
html body .pr-dr-top { margin: 0 calc(-1 * clamp(18px, 3vw, 34px)) 16px !important; top: 0 !important; }
/* government member cards: logo + full-width text, party and seat share the last line */
html body .pr-gv-list li { display: grid !important; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "logo body" "logo foot"; column-gap: 14px; row-gap: 6px; align-items: start; padding: 14px 16px !important; }
html body .pr-gv-list li > .pr-emb { grid-area: logo; --s: 30px !important; margin-top: 2px; }
html body .pr-gv-list .pr-gv-m { grid-area: body; gap: 4px; }
html body .pr-gv-list .pr-gv-m b { font-size: .95rem; line-height: 1.3; text-decoration: none !important; }
html body .pr-gv-list .pr-gv-m b[data-prof]:hover { color: #f3dc9f; }
html body .pr-gv-list .pr-gv-m span { font-size: .82rem; line-height: 1.45; }
html body .pr-gv-list .pr-gv-m small { display: none; }
html body .pr-gv-list li > .pr-gv-seat { grid-area: foot; justify-self: start; text-align: left !important; max-width: none; margin: 0 !important; font-size: .74rem !important; }
html body .pr-gv-list li::after { content: attr(data-party); grid-area: foot; justify-self: end; font: 600 .72rem/1.35 var(--sans); color: rgba(255,255,255,.5); }
html[data-theme="light"] body .pr-gv-list li::after { color: rgba(20,27,58,.5); }
.pr-term-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pr-term-row { padding: 12px 14px !important; gap: 14px !important; }
.pr-term-list::before { content: ""; } .pr-term-h4 {}
/* each detail on its own row: name / post / party / seat */
html body .pr-gv-list li::after { content: none !important; }
html body .pr-gv-list .pr-gv-m small { display: block !important; margin-top: 2px; font-size: .74rem; color: rgba(255,255,255,.55); }
html body .pr-gv-list li > .pr-gv-seat { margin-top: 2px !important; padding-top: 8px !important; border-top: 1px solid rgba(255,255,255,.07) !important; width: 100%; }
html[data-theme="light"] body .pr-gv-list .pr-gv-m small { color: rgba(20,27,58,.55); } html[data-theme="light"] body .pr-gv-list li > .pr-gv-seat { border-color: rgba(16,24,64,.08) !important; }
html body .pr-prof-photo.lr { width: 140px; height: 140px; }
/* dissolution history: a compact timeline instead of a wide table */
.pr-dtl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; position: relative; }
.pr-dtl li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.pr-dtl li:first-child { border-color: rgba(214,180,103,.35); background: rgba(243,220,159,.06); }
.pr-dtl-y { display: flex; flex-direction: column; gap: 2px; } .pr-dtl-y b { font: 800 .86rem/1 var(--sans); color: #fff; } .pr-dtl-y small { font-size: .68rem; color: rgba(255,255,255,.5); }
.pr-dtl-d { display: flex; align-items: center; gap: 10px; min-width: 0; font: 600 .8rem/1.2 var(--sans); color: rgba(255,255,255,.88); }
.pr-dtl-d > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: nowrap; }
.pr-dtl-d small { font: 800 .56rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e3c784; }
.pr-dtl-d i { font-style: normal; color: rgba(255,255,255,.3); }
.pr-dtl em { font-style: normal; text-align: right; font: 800 1rem/1 var(--sans); color: #f3dc9f; } .pr-dtl em small { display: block; font: 600 .6rem/1.4 var(--sans); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; } .pr-dtl em.na { color: rgba(255,255,255,.3); }
@media (max-width: 420px) { .pr-dtl li { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; } .pr-dtl-d { gap: 6px; font-size: .74rem; } }
html[data-theme="light"] .pr-dtl li { background: rgba(16,24,64,.03); border-color: rgba(16,24,64,.07); } html[data-theme="light"] .pr-dtl-y b, html[data-theme="light"] .pr-dtl-d { color: #141b3a; } html[data-theme="light"] .pr-dtl em { color: #8f6a22; } html[data-theme="light"] .pr-dtl-d small { color: #8f6a22; }
/* ===== simplified control area (v2): fewer, slimmer blocks above the results ===== */
html body #pr .pr-views { margin-top: 16px !important; padding: 4px !important; border-radius: 14px !important; gap: 4px !important; }
html body #pr .pr-views button { padding: 9px 10px !important; font-size: .8rem !important; border-radius: 10px !important; box-shadow: none !important; min-height: 0 !important; }
html body #pr .pr-views button .pr-ti { width: 15px; height: 15px; }
html body #pr .pr-gsearch { margin-top: 10px; }
html body #pr .pr-gsearch input { height: 44px; border-radius: 12px; font-size: .86rem; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
/* PRU|PRN toggle + state + election on one compact row */
html body #pr .pr-bar { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; padding-top: 10px !important; }
html body #pr .pr-bar .pr-seg { width: auto !important; flex: none; padding: 3px !important; border-radius: 12px !important; box-shadow: none !important; border-color: rgba(255,255,255,.12) !important; }
html body #pr .pr-bar .pr-seg button { padding: 9px 14px !important; min-width: 0 !important; font-size: .8rem !important; border-radius: 9px !important; box-shadow: none !important; }
html body #pr .pr-bar .pr-sel { flex: 1 1 160px; width: auto !important; gap: 0 !important; }
html body #pr .pr-bar .pr-sel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html body #pr .pr-bar .pr-sel select { min-width: 0 !important; width: 100%; height: 44px; padding: 0 34px 0 12px !important; border-radius: 12px !important; font-size: .86rem !important; }
html body #pr .pr-bar .pr-state:not([hidden]) { order: 3; flex-basis: 100%; }
@media (min-width: 700px) { html body #pr .pr-bar .pr-state:not([hidden]) { order: 0; flex-basis: 180px; flex-grow: 0; } }
/* the chamber strip is redundant with the toggle and the summary card */
html body #pr .pr-ctx { display: none !important; }
/* section tabs and summary heading: lighter */
html body #pr .pr-jump.pg { margin: 14px 0 12px !important; padding: 4px !important; border-radius: 14px !important; }
html body #pr .pr-jump.pg button { padding: 8px 12px !important; font-size: .78rem !important; }
html body #pr .pr-hero3d h2 { font-size: clamp(1.25rem, 4.6vw, 1.7rem) !important; line-height: 1.2; margin: 8px 0 12px !important; }
html body #pr .pr-hero3d { margin-top: 6px !important; }
@media (max-width: 560px) { html body #pr .pr-hero3d .pr-kick { letter-spacing: .06em !important; font-size: .64rem !important; line-height: 1.5; } html body #pr .pr-hero3d .pr-h-l > .pr-flag { --fw: 44px; } }
/* search: press stories without a photo show the outlet's name as a neat wordmark tile */
.sv-thumb .sv-outlet { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px; text-align: center; font: 800 .82rem/1.1 var(--serif, Georgia, serif); font-style: normal; letter-spacing: -.01em; color: #141b3a; background: linear-gradient(160deg, #fbf7ee, #e9e2cf); }
/* outlet wordmarks in house colours */
.sv-outlet[data-o="kosmo"] { background: #e30613; color: #fff; font: italic 900 1rem/1 "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.sv-outlet[data-o="bernama"] { background: #fff; color: #0a3d8f; font-family: Arial, sans-serif; }
.sv-outlet[data-o="the-star"] { background: #c8102e; color: #fff; }
.sv-outlet[data-o="utusan-malaysia"] { background: #fff; color: #d71920; }
.sv-outlet[data-o="new-straits-times"] { background: #111; color: #fff; }
.sv-outlet[data-o="harian-metro"] { background: #e2001a; color: #fff; font-family: Arial, sans-serif; }
.sv-outlet[data-o="malay-mail"] { background: #00599c; color: #fff; }
.sv-outlet[data-o="sinar-harian"] { background: #fff; color: #e4002b; font-family: Arial, sans-serif; }
.sv-outlet[data-o="the-edge-malaysia"] { background: #1a1a1a; color: #f5a800; }
.sv-outlet[data-o="malaysiakini"] { background: #fff; color: #e2231a; font-family: Arial, sans-serif; }
.sv-outlet[data-o="free-malaysia-today"] { background: #0b3a6e; color: #fff; }
/* v-search: calmer, premium result cards */
.sv-list { gap: 12px; }
.sv-item { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border-radius: 18px; }
.sv-thumb { width: 68px; height: 68px; border-radius: 12px; margin-top: 2px; }
.sv-text { gap: 6px; }
.sv-meta { font-size: .6rem; letter-spacing: .12em; }
.sv-meta em { font-style: normal; color: var(--gold-text); }
.sv-text strong { font: 600 1.02rem/1.32 var(--serif); color: var(--ink); }
.sv-item .sv-snip { font: 400 .84rem/1.6 var(--sans); color: var(--muted); letter-spacing: 0; word-spacing: normal; text-wrap: pretty; }
.sv-item mark { background: none; color: var(--gold-text); padding: 0; border-radius: 0; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--gold) 55%, transparent); }
.sv-item .sv-snip mark { color: var(--ink); font-weight: 600; }
/* search excerpt: one clean sentence, held to two calm lines */
.search-ov .sv-item .sv-snip { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; overflow: hidden !important; font: 400 .83rem/1.55 var(--sans); color: color-mix(in srgb, var(--ink) 58%, transparent); }
.search-ov .sv-item .sv-snip mark { color: var(--ink); font-weight: 600; box-shadow: none; }
.search-ov .sv-text strong { margin-bottom: 2px; }

/* ===== v410 — mega menu: unified premium pass ===== */
.mega .mg-inner, .mega .mg-inner:has(> .mg-intro + .mg-col.mg-feat:last-child), .mega .mg-inner.mg-berita { grid-template-columns: 272px minmax(0, 1fr) minmax(0, 1.2fr); min-height: 392px; }
.mega .mg-inner > * { padding: 30px 32px; min-width: 0; }
.mega .mg-h { margin: 0 0 16px; padding-bottom: 12px; }
.mega .mg-h h4 { font: 700 .66rem/1 var(--sans); letter-spacing: .22em; }
.mega .mg-intro h3 { font-size: 1.5rem; margin: 18px 0 8px; }
.mega .mg-intro p { font-size: .95rem; line-height: 1.6; }
/* categories: compact two-column list with hairlines, no stretched gaps, nothing spills */
.mega .mg-links:not(.big) { flex: none; grid-auto-rows: auto; align-content: start; gap: 0 18px; }
.mega .mg-links:not(.big) li { min-width: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.mega .mg-links:not(.big) li > a { min-width: 0; padding: 12px 8px !important; margin: 0 -8px; border-radius: 10px; font: 500 .9rem/1.25 var(--sans) !important; color: var(--ink) !important; transition: background .2s, color .2s; }
.mega .mg-links:not(.big) li > a span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega .mg-links:not(.big) li > a small { flex: none; min-width: 34px; text-align: center; font: 600 .68rem/1 var(--sans); font-variant-numeric: tabular-nums; padding: 5px 8px; color: var(--muted); transition: background .2s, color .2s; }
.mega .mg-links:not(.big) li > a:hover { background: color-mix(in srgb, var(--gold) 9%, transparent); color: var(--gold-text) !important; }
.mega .mg-links:not(.big) li > a:hover small { background: linear-gradient(135deg, #f0d898, #d6b467); color: #0b1430; }
:root[data-theme="dark"] .mega .mg-links:not(.big) li { border-bottom-color: rgba(255,255,255,.06); }
:root[data-theme="dark"] .mega .mg-links:not(.big) li > a:hover { color: #f0d898 !important; }
/* story cards: tidy thumbnail, kicker date, two-line serif title */
.mega .mg-stack { grid-auto-rows: auto; align-content: start; gap: 10px; flex: none; }
.mega .mg-card { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 8px 14px 8px 8px !important; border-radius: 14px; align-items: center; }
.mega .mg-card .mg-img { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; }
.mega .mg-card .mg-img img { width: 100%; height: 100%; object-fit: cover; }
.mega .mg-card .mg-t { gap: 5px; min-width: 0; }
.mega .mg-card .mg-t time { font: 700 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.mega .mg-card .mg-t b { font: 600 .93rem/1.35 var(--serif) !important; -webkit-line-clamp: 2 !important; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
/* media: press cards keep the same rhythm */
.mega .mg-press { grid-auto-rows: auto; align-content: start; flex: none; }
.mega .mg-press a { padding: 14px 16px !important; }
.mega .mg-press em { font: 700 .62rem/1.2 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.mega .mg-press b { font: 600 .92rem/1.38 var(--serif) !important; -webkit-line-clamp: 3 !important; }
.mega .mg-chips { flex: none; grid-auto-rows: auto; align-content: start; }
.mega .mg-chips a { padding: 12px 14px !important; font: 500 .88rem/1.2 var(--sans) !important; }
/* gallery grid: even square-ish tiles */
.mega .mg-grid { flex: none; align-content: start; gap: 10px; }
.mega .mg-grid a { aspect-ratio: 4/3; min-height: 0; overflow: hidden; }
.mega .mg-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mega .mg-grid a:hover img { transform: scale(1.06); }
/* contact: icon-only socials row + reply note */
.mega .mg-soc.mg-soc-icons { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 10px; }
.mega .mg-soc-icons a { aspect-ratio: auto; height: 76px; max-height: none; border-radius: 16px; }
.mega .mg-soc-icons .mg-soc-ic { width: 46px; height: 46px; border-radius: 13px; }
.mega .mg-feat:has(.mg-soc-icons) .mg-reply { margin-top: 0; }
.mega .mg-chan a { padding: 13px 16px !important; }
@media (max-width: 1180px) {
  .mega .mg-inner, .mega .mg-inner:has(> .mg-intro + .mg-col.mg-feat:last-child), .mega .mg-inner.mg-berita { grid-template-columns: 236px minmax(0, 1fr) minmax(0, 1.15fr); }
  .mega .mg-inner > * { padding: 26px 22px; }
  .mega .mg-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .mega .mg-soc-icons a { height: 62px; }
}
.mega .mg-feat:has(.mg-soc-icons) { flex-direction: column; }
.mega .mg-soc.mg-soc-icons { display: grid !important; flex: none; margin-bottom: 14px; }
.mega .mg-soc-icons a { display: grid !important; place-items: center; padding: 0 !important; grid-template-columns: none !important; }
.mega .mg-soc-icons .mg-soc-ic svg { width: 21px !important; height: 21px !important; }
.mega .mg-inner.mg-berita { grid-template-columns: 272px minmax(0, 1.25fr) minmax(0, 1fr); }
.mega .mg-links:not(.big) li > a { font-size: .875rem !important; gap: 10px; }
.mega .mg-links:not(.big) li > a span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1180px) { .mega .mg-inner.mg-berita { grid-template-columns: 236px minmax(0, 1.25fr) minmax(0, 1fr); } }
/* balance: card columns fill the panel height evenly */
.mega .mg-grid { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.mega .mg-grid a { aspect-ratio: auto; min-height: 90px; }
.mega .mg-press { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.mega .mg-soc.mg-soc-icons { flex: 1; grid-auto-rows: minmax(76px, 1fr); }
.mega .mg-soc-icons a { height: auto; }
.mega .mg-soc.mg-soc-icons { flex: none; grid-auto-rows: 84px; }
.mega .mg-feat:has(.mg-soc-icons) .mg-reply { margin-top: auto; }
.mega .mg-stack { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.mega .mg-links:not(.big) li > a { padding: 14px 8px !important; }
/* v412 — media panel: intro + latest coverage only */
.mega .mg-inner.mg-media { grid-template-columns: 272px minmax(0, 1fr) !important; }
.mega .mg-media .mg-press { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1180px) { .mega .mg-inner.mg-media { grid-template-columns: 236px minmax(0, 1fr) !important; } }

/* v419 — Dasar & Pencapaian: filter chips (office held / groundwork type) */
.ach-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px 0 26px; padding: 2px 1px 4px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ach-chips::-webkit-scrollbar { display: none; }
.ach-chips:empty { display: none; }
.ach-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 .84rem/1 var(--sans); white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ach-chips button small { font: 700 .68rem/1 var(--sans); font-variant-numeric: tabular-nums; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.ach-chips button:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.ach-chips button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ach-chips button.on small { background: linear-gradient(135deg, #f0d898, #d6b467); color: #0b1430; }
:root[data-theme="dark"] .ach-chips button { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
:root[data-theme="dark"] .ach-chips button.on { background: linear-gradient(135deg, #f0d898, #d6b467); border-color: transparent; color: #0b1430; }
:root[data-theme="dark"] .ach-chips button.on small { background: rgba(11,20,48,.14); color: #0b1430; }
@media (max-width: 640px) { .ach-chips { margin: -12px -16px 20px; padding: 2px 16px 4px; } .ach-chips button { min-height: 38px; font-size: .8rem; } }

/* v425 — portrait videos (TikTok / reels) fit the pane under the breadcrumb bar: never cropped top or bottom */
@media (min-width: 960px) {
  .modal-body:has(> .m-crumbs) .m-video { --vh-max: calc(100svh - 48px - var(--crumbs-h, 60px) - 12px); }
  .modal-body:has(> .m-crumbs) .m-video-wrap { align-items: center; justify-content: center; }
}

/* v426 — card slideshow: the general ".card .thumb img" transform-only transition was overriding the fade,
   so photos cut in/out abruptly (flashing). Restore a soft crossfade; the slow zoom is a transition too,
   so a photo leaving never snaps back mid-fade. */
html [data-ss] img.ss-f { transform: scale(1.04); animation: none !important;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), transform 9s cubic-bezier(.2, .6, .3, 1) !important; will-change: opacity, transform; backface-visibility: hidden; }
html [data-ss] img.ss-f.on { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { html [data-ss] img.ss-f { transition: opacity .8s ease !important; transform: none; } }

/* v427 — story slideshow: the blurred backdrop crossfades with each photo (it used to swap instantly = flash) */
.ss-imgs > .ss-bgl { position: absolute; inset: -40px; z-index: 0; pointer-events: none; background: center / cover no-repeat;
  filter: blur(30px) saturate(1.25) brightness(.55); transform: scale(1.08); opacity: 0; transition: opacity .85s ease; }
.ss-imgs > .ss-bgl.in { opacity: 1; }
.ss-imgs:has(> .ss-bgl)::before { opacity: 0; }
html.shield .ss-imgs > .ss-bgl { display: none; }

/* v428 — story slideshow: the outgoing photo fades out (shorter, slightly later) instead of being removed in one frame */
.ss-imgs > img.leaving, .ss-imgs > .ss-bgl.leaving, .ss-imgs > .ss-vid.leaving { opacity: 0 !important; transition: opacity .7s ease .15s !important; z-index: 0; }
.ss-imgs > img.in { z-index: 1; }

/* v430 — story slideshow: no counter or pause button over the photo (hold-to-pause and swipe still work) */
#stage .ss-top, .m-stage .ss-top { display: none !important; }

/* v432 — card slideshow, final: each photo is decoded before it fades in (app.js), every frame keeps its own
   GPU layer so no re-paint flicker at the start/end of a fade, and no zoom on the frames (the scale change could
   look like a jump). One property animates: opacity. */
html [data-ss] img.ss-f { transform: none !important; animation: none !important; will-change: opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1) !important; }
html [data-ss] img.ss-f.on { transform: none !important; }
html [data-ss] > img:not(.ss-f) { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* v433 — story slideshow, final: no cross-fade "dip". The outgoing photo stays fully opaque (and keeps its zoom) beneath
   the incoming one, which fades in on top; only then does the old layer fade out behind it and leave (app.js showPhoto).
   Never fade two layers at the same time over the dark stage. */
.ss-imgs > .old { z-index: 0 !important; opacity: 1 !important; transition: none !important; }
.ss-imgs > .old.gone { opacity: 0 !important; transition: opacity .45s linear !important; }
.ss-imgs > img.in:not(.old) { z-index: 1; }
.ss-imgs > img, .ss-imgs > .ss-bgl { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* v438 — footer "Add to Home Screen": same size as the copyright line (a slim text link, not a big pill), with more room below it */
html .f2-bottom .a2hs-link { gap: 6px !important; padding: 5px 11px !important; min-height: 0 !important; font: 600 .78rem/1.2 var(--sans) !important; letter-spacing: 0 !important; border-width: 1px !important; }
html .f2-bottom .a2hs-link svg { width: 13px !important; height: 13px !important; flex: none; }
html .f2-bottom:has(.a2hs-link) { gap: 10px 16px; padding-bottom: 28px; }
@media (max-width: 959px) { html .site-footer { padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important; } }
/* v439 — guide card: "I've added it" hides the button for good on browsers that can't detect the install (iPhone, iPad, Firefox…) */
.a2hs-done { color: #0b1430; background: linear-gradient(135deg, #f0d898, #d6b467); box-shadow: 0 12px 24px -12px rgba(214,180,103,.8); }
.a2hs-done:hover { filter: brightness(1.06); }

/* v440 — election dashboard start screen: three big cards (Results, Analysis, Government), "All sections" back button */
#pr .pr-views[hidden], #pr .pr-home-back[hidden], #pr .pr-bar[hidden] { display: none !important; }
#pr .pr-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 8px; }
@media (max-width: 760px) { #pr .pr-home { grid-template-columns: 1fr; gap: 12px; } }
#pr .pr-hcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 210px; padding: 24px 22px 20px; text-align: left; cursor: pointer;
  border-radius: 22px; border: 1px solid rgba(214,180,103,.28); color: #e8ecf7; font: inherit;
  background: radial-gradient(120% 90% at 0% 0%, rgba(214,180,103,.16), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
#pr .pr-hcard:hover, #pr .pr-hcard:focus-visible { transform: translateY(-3px); border-color: rgba(240,216,152,.6); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(240,216,152,.25); outline: none; }
#pr .pr-hc-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); box-shadow: 0 12px 24px -12px rgba(214,180,103,.8); }
#pr .pr-hc-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#pr .pr-hc-t { margin-top: 6px; font: 700 1.35rem/1.2 var(--sans); color: #fff; }
#pr .pr-hc-d { font: 500 .92rem/1.5 var(--sans); color: #aeb8d6; }
#pr .pr-hc-m { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding-top: 8px; font: 700 .85rem/1 var(--sans); color: #f0d898; }
#pr .pr-hc-m svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
#pr .pr-hcard:hover .pr-hc-m svg { transform: translateX(4px); }
@media (max-width: 760px) { #pr .pr-hcard { min-height: 0; padding: 18px; display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; }
  #pr .pr-hc-ic { grid-row: 1 / span 3; width: 50px; height: 50px; } #pr .pr-hc-t { margin: 0; font-size: 1.12rem; } #pr .pr-hc-d { font-size: .85rem; } #pr .pr-hc-m { padding-top: 2px; } }
#pr .pr-home-back { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(214,180,103,.3); background: rgba(255,255,255,.04); color: #f0d898; font: 700 .85rem/1 var(--sans); }
#pr .pr-home-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#pr .pr-home-back:hover { background: rgba(214,180,103,.12); }
html[data-theme="light"] #pr .pr-hcard { color: #141b3a; background: radial-gradient(120% 90% at 0% 0%, rgba(214,180,103,.18), transparent 55%), linear-gradient(180deg, #fff, #f6f7fb); border-color: rgba(36,57,126,.14); box-shadow: 0 20px 40px -28px rgba(20,27,58,.45); }
html[data-theme="light"] #pr .pr-hc-t { color: #141b3a; } html[data-theme="light"] #pr .pr-hc-d { color: #4a5578; } html[data-theme="light"] #pr .pr-hc-m, html[data-theme="light"] #pr .pr-home-back { color: #8a6510; }
html[data-theme="light"] #pr .pr-home-back { background: #fff; border-color: rgba(36,57,126,.16); }

/* v441 — Analysis: one clear flow — header → election analysed → summary numbers → 4 numbered steps → view → previous / next */
#pr .pr-gsearch[hidden] { display: none !important; }
#prBody .pr-ana-k { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
#prBody .pr-ana-k > div { padding: 12px 14px; border-radius: 16px; }
#prBody .pr-ana-k b { margin: 6px 6px 2px 0; font-size: 1.5rem; }
#prBody .pr-ana-k .pr-mini { display: none; }
#prBody .pr-ana-k span:not(.pr-mini) { font-size: .72rem; }
@media (max-width: 900px) { #prBody .pr-ana-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#prBody .pr-anav { position: static !important; top: auto !important; }
#prBody .pr-ana-ctx { margin: 0 0 12px; }
.pr-agrp em.pr-step { position: static; display: none; }
.pr-agrp button { grid-template-columns: auto auto minmax(0, 1fr) !important; }
.pr-agrp button::before { counter-increment: prstep; content: counter(prstep); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 800 .72rem/1 var(--sans); color: #f0d898; border: 1px solid rgba(214,180,103,.45); background: rgba(214,180,103,.08); }
.pr-agrp { counter-reset: prstep; }
.pr-agrp button.on::before { color: #0b1430; background: rgba(255,255,255,.55); border-color: rgba(11,20,48,.25); }
.pr-agrp small { white-space: normal !important; }
.pr-anext { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.pr-anext button { display: inline-flex; align-items: center; gap: 12px; max-width: 49%; padding: 12px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid rgba(214,180,103,.28); background: rgba(255,255,255,.04); color: #e8ecf7; font: inherit; transition: border-color .2s ease, background .2s ease; }
.pr-anext button:hover { border-color: rgba(240,216,152,.6); background: rgba(214,180,103,.1); }
.pr-anext button.next { margin-left: auto; text-align: right; }
.pr-anext svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #f0d898; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-anext small { display: block; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8f9cc4; }
.pr-anext b { display: block; margin-top: 4px; font: 700 .9rem/1.25 var(--sans); color: #fff; }
@media (max-width: 599px) { .pr-anext button { padding: 10px 12px; } .pr-anext b { font-size: .82rem; } }
html[data-theme="light"] .pr-anext button { background: #fff; color: #141b3a; border-color: rgba(36,57,126,.16); }
html[data-theme="light"] .pr-anext b { color: #141b3a; } html[data-theme="light"] .pr-anext svg { stroke: #8a6510; }
html[data-theme="light"] .pr-agrp button::before { color: #8a6510; border-color: rgba(138,101,16,.4); }

/* v442 — Results: numbered steps, one section at a time, previous / next (same flow as Analysis) */
#prBody > .pr-grp[hidden] { display: none !important; }
#prBody .pr-jump.pr-steps { counter-reset: prres; }
#prBody .pr-jump.pr-steps button::before { counter-increment: prres; content: counter(prres); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 2px; border-radius: 50%;
  font: 800 .68rem/1 var(--sans); color: #f0d898; border: 1px solid rgba(214,180,103,.45); background: rgba(214,180,103,.08); flex: none; }
#prBody .pr-jump.pr-steps button.on::before { color: #0b1430; background: rgba(255,255,255,.55); border-color: rgba(11,20,48,.25); }
#prBody .pr-jump.pr-steps button[hidden] { display: none !important; }
.pr-rnext { margin-top: 14px; }
html[data-theme="light"] #prBody .pr-jump.pr-steps button::before { color: #8a6510; border-color: rgba(138,101,16,.4); }

/* v443 — audit fixes */
.cf-stars label { position: relative; }
html { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { html[data-theme="light"] #nav a.mg-on { color: #f0d898; } }

/* v444 — breadcrumbs: smaller and lighter everywhere (page banners and the bar on top of an opened story) */
html .crumbs-v2 { gap: 6px !important; }
html .crumbs-v2 a, html .crumbs-v2 [aria-current] { font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .01em; line-height: 1.2 !important; }
html .crumbs-v2 a { padding: 4px 10px !important; min-height: 0 !important; gap: 5px !important; }
html .crumbs-v2 a svg { width: 12px !important; height: 12px !important; }
html .crumbs-v2 .cr-sep { width: 10px !important; height: 10px !important; opacity: .55; }
html .modal-body > .m-crumbs { padding-top: calc(9px + var(--sat, 0px)) !important; padding-bottom: 9px !important; }

/* v447 — "Official Website" flag: the real Jalur Gemilang (crescent and 14-point star), not drawn stripes, at the flag's own 2:1 shape */
html .u-flag { width: 20px; height: 10px; border-radius: 1.5px; background: url("../img/jalur-gemilang.svg") center / 100% 100% no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
html .u-flag::before { content: none !important; display: none !important; }

/* v449 — story close button: smaller, centred in the 43px breadcrumb bar so it never crosses the bar's bottom border */
html .modal-close { width: 30px !important; height: 30px !important; top: calc(6.5px + var(--sat, env(safe-area-inset-top, 0px))) !important; right: 12px !important; }
html .modal-close svg { width: 14px !important; height: 14px !important; }

/* v453 — home TikTok row glide: sub-pixel offset for an even, continuous movement (set by app.js) */
html:not([data-page]) #ttRail > .tt-card { translate: calc(-1 * var(--tt-sub, 0px)) 0; will-change: translate; }

/* v454 — story photo arrows: small and in ONE place everywhere — vertically centred on the left / right edge of the photo frame,
   on photos and video slides alike, desktop and phone; always visible but quiet, solid on hover / focus */
html .m-stage .m-nav, html #stage .m-nav { width: 32px !important; height: 32px !important; top: 50% !important; bottom: auto !important; translate: 0 -50% !important;
  opacity: .72 !important; background: rgba(5,7,13,.42) !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: none !important; transform: none !important; }
html .m-stage .m-nav svg, html #stage .m-nav svg { width: 14px !important; height: 14px !important; }
html .m-stage .m-nav.prev, html #stage .m-nav.prev { left: 12px !important; right: auto !important; }
html .m-stage .m-nav.next, html #stage .m-nav.next { right: 12px !important; left: auto !important; }
html .m-stage .m-nav:hover, html #stage .m-nav:hover, html .m-stage .m-nav:focus-visible, html #stage .m-nav:focus-visible { opacity: 1 !important; background: rgba(255,255,255,.92) !important; color: #0b1430 !important; }
@media (hover: none) { html .m-stage .m-nav, html #stage .m-nav { width: 30px !important; height: 30px !important; } html .m-stage .m-nav.prev, html #stage .m-nav.prev { left: 8px !important; } html .m-stage .m-nav.next, html #stage .m-nav.next { right: 8px !important; } }

/* ===== v456 — mega menu, modern refresh: floating glass panel, clean category tiles (no counts), gold CTA, lifted cards ===== */
@media (min-width: 960px) {
  html .mega { padding-top: 10px; }
  html .mega .mg-inner {
    position: relative; overflow: hidden; gap: 0 !important; padding: 0 !important; border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(20,30,72,.86), rgba(9,15,40,.94)) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(214,180,103,.08), inset 0 1px 0 rgba(255,255,255,.06) !important; }
  html .mega .mg-inner::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240,216,152,.7), transparent); pointer-events: none; }
  /* opening: a short fade and rise of the content */
  html .mega .mg-inner > * { animation: mgIn .38s cubic-bezier(.2,.8,.2,1) both; }
  html .mega .mg-inner > *:nth-child(2) { animation-delay: .04s; } html .mega .mg-inner > *:nth-child(3) { animation-delay: .08s; }
  @keyframes mgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* intro column */
  html .mega .mg-intro { padding: 28px 26px !important; border-right: 1px solid rgba(255,255,255,.07);
    background: radial-gradient(120% 80% at 0% 0%, rgba(214,180,103,.16), transparent 60%), rgba(255,255,255,.02) !important; }
  html .mega .mg-intro .mg-ic { width: 46px !important; height: 46px !important; border-radius: 14px !important; color: #0b1430 !important;
    background: linear-gradient(135deg, #f6e2a8, #d6b467) !important; box-shadow: 0 12px 26px -12px rgba(214,180,103,.9) !important; border: 0 !important; }
  html .mega .mg-intro h3 { margin: 18px 0 8px !important; font-size: 1.5rem !important; letter-spacing: -.01em; }
  html .mega .mg-intro p { font-size: .9rem !important; line-height: 1.55 !important; color: rgba(232,236,247,.66) !important; }
  html .mega .mg-cta { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 18px !important; padding: 10px 16px !important; border-radius: 999px !important;
    font-weight: 700 !important; font-size: .82rem !important; color: #0b1430 !important; background: linear-gradient(135deg, #f6e2a8, #d6b467) !important;
    border: 0 !important; box-shadow: 0 10px 22px -12px rgba(214,180,103,.85) !important; transition: transform .2s ease, filter .2s ease !important; }
  html .mega .mg-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

  /* columns and headings */
  html .mega .mg-col { padding: 24px 24px 26px !important; min-width: 0; }
  html .mega .mg-col + .mg-col { border-left: 1px solid rgba(255,255,255,.07); }
  html .mega .mg-h { margin-bottom: 14px !important; }
  html .mega .mg-h h4 { font-size: .68rem !important; letter-spacing: .18em !important; color: #d6b467 !important; }

  /* category / section links: clean tiles with an arrow that slides in on hover */
  html .mega .mg-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px 8px !important; }
  html .mega .mg-links.big { grid-template-columns: 1fr; gap: 8px !important; }
  html .mega .mg-links li { border: 0 !important; }
  html .mega .mg-links a { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px !important; border-radius: 12px !important;
    font-size: .88rem !important; font-weight: 600 !important; color: #e3e8f5 !important; background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.05); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important; }
  html .mega .mg-links.big a { padding: 14px 16px !important; font-size: .98rem !important; }
  html .mega .mg-links a .mg-arw { opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; color: #f0d898; flex: none; }
  html .mega .mg-links a:hover, html .mega .mg-links a:focus-visible { background: rgba(214,180,103,.12); border-color: rgba(214,180,103,.35); color: #fff !important; }
  html .mega .mg-links a:hover .mg-arw, html .mega .mg-links a:focus-visible .mg-arw { opacity: 1; transform: none; }
  html .mega .mg-links small { display: none !important; }

  /* latest / featured cards */
  html .mega .mg-stack { gap: 8px !important; }
  html .mega .mg-card { padding: 8px !important; border-radius: 14px !important; border: 1px solid transparent !important; background: transparent !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease !important; }
  html .mega .mg-card:hover { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.08) !important; transform: translateX(2px); }
  html .mega .mg-card .mg-img { border-radius: 10px !important; overflow: hidden; box-shadow: 0 8px 18px -10px rgba(0,0,0,.8); }
  html .mega .mg-card .mg-img img { transition: transform .5s ease !important; }
  html .mega .mg-card:hover .mg-img img { transform: scale(1.06); }
  html .mega .mg-card time { font-size: .64rem !important; letter-spacing: .12em !important; text-transform: uppercase; color: #d6b467 !important; font-weight: 700 !important; }
  html .mega .mg-card b { font-size: .9rem !important; line-height: 1.35 !important; color: #f1f4fb !important; }

  /* hero (video / gallery), press list, channels, socials */
  html .mega .mg-hero { border-radius: 16px !important; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
  html .mega .mg-hero img { transition: transform .6s ease !important; } html .mega .mg-hero:hover img { transform: scale(1.04); }
  html .mega .mg-press a { border-radius: 12px !important; padding: 12px 14px !important; transition: background .2s ease !important; }
  html .mega .mg-press a:hover { background: rgba(255,255,255,.05) !important; }
  html .mega .mg-press em { color: #d6b467 !important; font-size: .66rem !important; letter-spacing: .1em; text-transform: uppercase; font-style: normal; font-weight: 700; }
  html .mega .mg-chan a { border-radius: 14px !important; transition: background .2s ease, border-color .2s ease !important; }
  html .mega .mg-chan a:hover { background: rgba(214,180,103,.1) !important; }
  html .mega .mg-grid a { border-radius: 10px !important; overflow: hidden; }
  html .mega .mg-grid img { transition: transform .5s ease !important; } html .mega .mg-grid a:hover img { transform: scale(1.07); }
  html .mega .mg-soc-icons a { border-radius: 14px !important; transition: background .2s ease, transform .2s ease !important; }
  html .mega .mg-soc-icons a:hover { transform: translateY(-2px); }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) { html .mega .mg-inner > * { animation: none; } }
/* v457 — mega: section tiles keep their natural height (they were stretched to the column height) */
@media (min-width: 960px) { html .mega .mg-links { align-content: start !important; grid-auto-rows: min-content !important; } html .mega .mg-links.big a { font: 600 .98rem/1.3 var(--sans) !important; } }

/* v458 — story viewer on narrow/tablet widths (< 960px): the photo box has a real height again (it had collapsed to 0, hiding the photo) */
@media (max-width: 959px) { html .modal-body > .m-media .m-stage .ss-imgs { height: clamp(240px, 72vw, 62svh); min-height: 240px; } }
@media (max-width: 959px) and (max-height: 500px) and (orientation: landscape) { html .modal-body > .m-media .m-stage .ss-imgs { height: 78svh; } }

/* v459 — press cards: the title no longer reserves three lines when cards stack one per row (phones) or on the In the News list, so a short headline sits close to its summary */
@media (max-width: 699px) { html .press-body strong { min-height: 0 !important; } }
html[data-page="media"] .press-body strong { min-height: 0 !important; }

/* v460 — homepage press cards too: the title takes only the lines it needs at every width */
html .press-body strong { min-height: 0 !important; }

/* ===== v461 — mega menu: photos never cropped (whole photo on a soft blurred fill), caption under the album photo, premium finish ===== */
@media (min-width: 960px) {
  /* panel: deeper navy, warm gold edge, richer depth */
  html .mega .mg-inner {
    background: radial-gradient(90% 120% at 100% 0%, rgba(214,180,103,.07), transparent 55%), linear-gradient(180deg, rgba(18,28,68,.94), rgba(8,13,36,.97)) !important;
    border: 1px solid rgba(214,180,103,.16) !important;
    box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 18px 40px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07) !important; }
  html .mega .mg-inner::before { left: 0; right: 0; background: linear-gradient(90deg, transparent, rgba(240,216,152,.85) 30%, rgba(240,216,152,.85) 70%, transparent) !important; }

  /* intro: serif title, a short gold rule under the description */
  html .mega .mg-intro h3 { font-family: var(--serif) !important; font-weight: 600 !important; font-size: 1.62rem !important; color: #fff !important; }
  html .mega .mg-intro p { position: relative; padding-bottom: 18px; }
  html .mega .mg-intro p::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f0d898, rgba(214,180,103,0)); }

  /* column headings: small caps label followed by a hairline */
  html .mega .mg-h { display: flex !important; align-items: center; gap: 12px; }
  html .mega .mg-h h4 { flex: none; margin: 0 !important; font-weight: 800 !important; }
  html .mega .mg-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214,180,103,.35), rgba(214,180,103,0)); }
  html .mega .mg-h .mg-more { order: 2; }

  /* cards and tiles: a thin gold edge on hover */
  html .mega .mg-card:hover { border-color: rgba(214,180,103,.28) !important; background: rgba(214,180,103,.06) !important; }
  html .mega .mg-links a:hover, html .mega .mg-links a:focus-visible { box-shadow: inset 3px 0 0 #d6b467; }

  /* soft blurred fill behind any photo shown whole */
  html .mega .mg-bg { position: absolute; inset: -18px; z-index: 0; background: center / cover no-repeat; filter: blur(18px) saturate(1.15) brightness(.55); transform: scale(1.05); pointer-events: none; }

  /* album / video hero: photo on top (whole), caption underneath */
  html .mega .mg-hero { display: flex !important; flex-direction: column; min-height: 0 !important; background: rgba(255,255,255,.03) !important;
    border: 1px solid rgba(255,255,255,.07); transition: border-color .25s ease, transform .25s ease; }
  html .mega .mg-hero:hover { border-color: rgba(214,180,103,.4); transform: translateY(-2px); }
  html .mega .mg-hero::before { display: none !important; }
  html .mega .mg-hero .mg-ph { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; background: #070c20; }
  html .mega .mg-hero .mg-ph img { position: absolute !important; inset: 0; z-index: 1 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; transform: none !important; transition: transform .6s ease !important; }
  html .mega .mg-hero:hover .mg-ph img { transform: scale(1.03) !important; }
  html .mega .mg-hero .mg-play { z-index: 2; }
  html .mega .mg-hero-t { position: static !important; padding: 14px 16px 16px; gap: 7px !important; }
  html .mega .mg-hero-t b { text-shadow: none !important; font-size: 1.04rem !important; -webkit-line-clamp: 2 !important; }
  html .mega .mg-hero-t time { color: rgba(214,180,103,.9) !important; }

  /* selected moments: square frames, whole photo inside */
  html .mega .mg-grid { grid-template-columns: repeat(4, 1fr) !important; grid-auto-rows: auto !important; align-content: start !important; gap: 10px !important; flex: none !important; }
  html .mega .mg-grid a { position: relative; display: block; aspect-ratio: 1 !important; min-height: 0 !important; overflow: hidden; isolation: isolate; border-radius: 12px !important;
    background: #070c20; border: 1px solid rgba(255,255,255,.07); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
  html .mega .mg-grid a img { position: relative; z-index: 1; width: 100% !important; height: 100% !important; object-fit: contain !important; transform: none !important; }
  html .mega .mg-grid a:hover { border-color: rgba(214,180,103,.55); transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(0,0,0,.9); }
  html .mega .mg-grid a:hover img { transform: none !important; }
}

/* v462 — mega: 3×3 moments fill the column beside the album; gold rule sits right under the intro title */
@media (min-width: 960px) {
  html .mega .mg-grid { grid-template-columns: repeat(3, 1fr) !important; }
  html .mega .mg-grid a { aspect-ratio: 4 / 3 !important; }
  html .mega .mg-intro p { padding-bottom: 0 !important; }
  html .mega .mg-intro p::after { content: none !important; }
  html .mega .mg-intro h3::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, #f0d898, rgba(214,180,103,0)); }
}

/* v463 — contact / complaint / feedback: the channel cards and the form use the full content width, like every other page */
html .cf-wrap { max-width: none !important; width: 100% !important; }
html .cf-wrap .cf-types { width: 100% !important; max-width: none !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html .cf-wrap .cf { width: 100% !important; max-width: none !important; box-sizing: border-box; }

/* ===== v464 — news cards: small category label (no pill), one quiet meta line, premium card finish ===== */
/* meta line: date · CATEGORY — small caps, no outline pill */
html .meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0 !important; row-gap: 4px !important; }
html .meta .date, html .meta time { font: 600 .64rem/1.2 var(--sans) !important; letter-spacing: .12em !important; text-transform: uppercase; color: rgba(232,236,247,.6) !important; }
html .meta .tag { display: inline-flex !important; align-items: center; border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font: 800 .62rem/1.2 var(--sans) !important; letter-spacing: .14em !important; text-transform: uppercase; color: #d6b467 !important; }
html .meta .tag::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(214,180,103,.75); margin: 0 9px; flex: none; }
:root[data-theme="light"] .meta .date, :root[data-theme="light"] .meta time { color: rgba(11,20,48,.55) !important; }
:root[data-theme="light"] .meta .tag { color: #9a7a2f !important; }

/* cards: soft glass surface, hairline border, deep shadow, gold edge when touched/hovered */
html .card, html .story.main, html .story.side {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 55%), var(--bg-2, #0f1a3f) !important;
  border: 1px solid rgba(255,255,255,.075) !important; border-radius: 20px !important;
  box-shadow: 0 22px 44px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05) !important;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease !important; }
html .card:hover, html .story.main:hover, html .story.side:hover, html .card:active, html .story.side:active {
  border-color: rgba(214,180,103,.38) !important; box-shadow: 0 26px 50px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(214,180,103,.08), inset 0 1px 0 rgba(255,255,255,.06) !important; }
:root[data-theme="light"] .card, :root[data-theme="light"] .story.main, :root[data-theme="light"] .story.side { background: #fff !important; border-color: rgba(11,20,48,.08) !important; box-shadow: 0 18px 40px -30px rgba(11,20,48,.35) !important; }
html .card h3, html .story h3 { letter-spacing: -.005em; }

/* photo slideshow dots: tiny, no dark pill behind them */
html .ss-dots { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; gap: 4px !important; }
html .ss-dots i { width: 4px !important; height: 4px !important; box-shadow: 0 0 4px rgba(0,0,0,.55); }
html .ss-dots i.on { width: 12px !important; }

/* phones: compact list card — square photo, small meta line, three-line headline */
@media (max-width: 599px) {
  html .lead-side .story.side { grid-template-columns: 104px minmax(0, 1fr) !important; gap: 14px !important; padding: 12px 14px 12px 12px !important; align-items: center !important; border-radius: 18px !important; }
  html .lead-side .story.side .img { aspect-ratio: 1 !important; border-radius: 12px !important; overflow: hidden; }
  html .lead-side .story.side .meta { margin: 0 0 7px !important; }
  html .lead-side .story.side h3 { font-size: 1rem !important; line-height: 1.32 !important; -webkit-line-clamp: 3 !important; margin: 0 !important; }
  html .lead-side .story.side .ss-dots { display: none !important; }
}

/* v465 — beat the older pill rule (.story .meta .tag / .card .meta .tag / .press-meta span / .ach-tag) */
html .meta .tag.tag, html .press-meta span.press-meta span, html body .press-meta > span, html body .ach-tag.ach-tag {
  border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font: 800 .62rem/1.2 var(--sans) !important; letter-spacing: .14em !important; text-transform: uppercase; color: #d6b467 !important; }
html body .press-meta > span::before, html body .ach-tag.ach-tag::after { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: rgba(214,180,103,.75); margin: 0 9px; vertical-align: middle; }
:root[data-theme="light"] .meta .tag.tag, :root[data-theme="light"] .press-meta > span, :root[data-theme="light"] .ach-tag.ach-tag { color: #9a7a2f !important; }
/* phones, narrow list cards: date on one line, category under it (no dot) */
@media (max-width: 599px) {
  html .lead-side .story.side .meta { flex-direction: column; align-items: flex-start; row-gap: 5px !important; }
  html .lead-side .story.side .meta .tag::before { display: none !important; }
}

/* ===== v466 — News page as a newsroom: toolbar (categories · search · year), Top Stories (lead + side column), Latest News grid, numbered pages ===== */
html[data-page="berita"] #berita { padding-top: 28px !important; }
/* toolbar */
html[data-page="berita"] .nz-bar { position: sticky; top: var(--nz-top, 0px); z-index: 30; display: flex; align-items: center; gap: 16px; margin: 0 0 30px; padding: 10px 12px 10px 10px;
  border-radius: 16px; background: rgba(10,17,44,.86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px -28px rgba(0,0,0,.9); transition: top .2s ease; }
html[data-page="berita"] .nz-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
html[data-page="berita"] .nz-tabs::-webkit-scrollbar { display: none; }
html[data-page="berita"] .nz-tabs button { flex: none; padding: 9px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 600 .84rem/1 var(--sans); color: rgba(232,236,247,.72); transition: background .2s ease, color .2s ease; }
html[data-page="berita"] .nz-tabs button:hover { color: #fff; background: rgba(255,255,255,.06); }
html[data-page="berita"] .nz-tabs button.on { color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); box-shadow: 0 8px 18px -10px rgba(214,180,103,.9); }
html[data-page="berita"] .nz-tools { display: flex; gap: 8px; flex: none; }
html[data-page="berita"] .nz-search { position: relative; display: flex; align-items: center; }
html[data-page="berita"] .nz-search svg { position: absolute; left: 12px; color: rgba(232,236,247,.55); pointer-events: none; }
html[data-page="berita"] .nz-search input, html[data-page="berita"] .nz-year select { height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #eef1f8;
  font: 500 .84rem/1 var(--sans); outline: none; transition: border-color .2s ease, background .2s ease; }
html[data-page="berita"] .nz-search input { width: 220px; padding: 0 12px 0 36px; }
html[data-page="berita"] .nz-search input::placeholder { color: rgba(232,236,247,.45); }
html[data-page="berita"] .nz-year select { padding: 0 30px 0 12px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23d6b467' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
html[data-page="berita"] .nz-year select option { color: #0b1430; }
html[data-page="berita"] .nz-search input:focus, html[data-page="berita"] .nz-year select:focus { border-color: rgba(214,180,103,.6); background-color: rgba(255,255,255,.08); }
:root[data-theme="light"] html[data-page="berita"] .nz-bar, :root[data-theme="light"][data-page="berita"] .nz-bar { background: rgba(255,255,255,.9); border-color: rgba(11,20,48,.08); }

/* section headings: label + hairline, like a news front page */
html[data-page="berita"] .nz-h { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
html[data-page="berita"] .nz-h[hidden] { display: none !important; }
html[data-page="berita"] .nz-h h2 { margin: 0; font: 600 1.35rem/1.2 var(--serif); color: #fff; letter-spacing: -.01em; white-space: nowrap; }
html[data-page="berita"] .nz-h h2 span { color: #d6b467; }
html[data-page="berita"] .nz-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214,180,103,.45), rgba(214,180,103,0)); order: 2; }
html[data-page="berita"] .nz-h .nz-count { order: 3; flex: none; font: 700 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(232,236,247,.6); }
html[data-page="berita"] #nzLatest { margin-top: 44px; }
html[data-page="berita"] #leadStories[hidden] + .feed-note + #nzLatest, html[data-page="berita"] #leadStories[hidden] ~ #nzLatest { margin-top: 0; }
html[data-page="berita"] #leadStories[hidden] { display: none !important; }
html[data-page="berita"] .feed-note { display: none !important; }

/* Latest News: card grid */
html[data-page="berita"] #feed { max-width: none !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }
html[data-page="berita"] #feed .card { display: flex !important; flex-direction: column; grid-template-columns: none !important; padding: 0 !important; overflow: hidden;
  border: 1px solid rgba(255,255,255,.075) !important; border-radius: 18px !important; background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 55%), #0f1a3f !important;
  box-shadow: 0 22px 44px -30px rgba(0,0,0,.95) !important; transition: border-color .25s ease, transform .25s ease !important; text-align: left; }
html[data-page="berita"] #feed .card:hover { border-color: rgba(214,180,103,.4) !important; transform: translateY(-3px) !important; }
html[data-page="berita"] #feed .card .thumb { order: 0; width: 100%; aspect-ratio: 16 / 10 !important; margin: 0 !important; border-radius: 0 !important; }
html[data-page="berita"] #feed .card .meta { order: 1; margin: 16px 18px 8px !important; padding: 0 !important; }
html[data-page="berita"] #feed .card h3 { order: 2; margin: 0 18px 8px !important; padding: 0 !important; font-size: 1.1rem !important; line-height: 1.34 !important; color: #f4f6fb; }
html[data-page="berita"] #feed .card:hover h3 { color: #f6e2a8 !important; }
html[data-page="berita"] #feed .card .card-ex { order: 3; margin: 0 18px 18px !important; padding: 0 !important; font-size: .9rem !important; line-height: 1.55 !important; color: rgba(232,236,247,.66);
  display: -webkit-box !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; max-height: none !important; }
html[data-page="berita"] #feed .card .badge-count, html[data-page="berita"] #feed .card .badge-play { display: inline-flex !important; }
html[data-page="berita"] #feed .empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: rgba(232,236,247,.6); }
:root[data-theme="light"][data-page="berita"] #feed .card { background: #fff !important; border-color: rgba(11,20,48,.08) !important; }
:root[data-theme="light"][data-page="berita"] #feed .card h3, :root[data-theme="light"][data-page="berita"] .nz-h h2 { color: #0b1430 !important; }

/* Top Stories: lead story on the left, four headlines in a column on the right */
@media (min-width: 960px) {
  html[data-page="berita"] .lead-stories { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) !important; gap: 22px !important; align-items: stretch !important; margin-bottom: 0 !important; }
  html[data-page="berita"] .story.main { display: flex !important; flex-direction: column; grid-template-columns: none !important; padding: 0 !important; overflow: hidden; }
  html[data-page="berita"] .story.main .img { width: 100%; height: auto !important; min-height: 0 !important; aspect-ratio: 16 / 9 !important; grid-row: auto !important; }
  html[data-page="berita"] .story.main > :not(.img) { grid-column: auto !important; }
  html[data-page="berita"] .story.main .meta { margin: 20px 24px 10px !important; }
  html[data-page="berita"] .story.main h3 { margin: 0 24px 10px !important; font-size: 1.9rem !important; line-height: 1.2 !important; }
  html[data-page="berita"] .story.main p { margin: 0 24px 24px !important; font-size: .98rem; line-height: 1.6; color: rgba(232,236,247,.7); display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical; overflow: hidden !important; }
  html[data-page="berita"] .lead-side { display: flex !important; flex-direction: column; gap: 0 !important; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.075); background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 55%), #0f1a3f; }
  html[data-page="berita"] .lead-side .story.side { flex: 1; display: grid !important; grid-template-columns: minmax(0, 1fr) 108px !important; gap: 14px !important; align-items: center !important;
    padding: 16px 18px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
  html[data-page="berita"] .lead-side .story.side + .story.side { border-top: 1px solid rgba(255,255,255,.07) !important; }
  html[data-page="berita"] .lead-side .story.side:hover { background: rgba(214,180,103,.06) !important; }
  html[data-page="berita"] .lead-side .story.side .img { order: 2; aspect-ratio: 1 !important; border-radius: 10px !important; overflow: hidden; }
  html[data-page="berita"] .lead-side .story.side > div:not(.img) { order: 1; }
  html[data-page="berita"] .lead-side .story.side .meta { margin: 0 0 6px !important; }
  html[data-page="berita"] .lead-side .story.side h3 { font-size: .98rem !important; line-height: 1.34 !important; margin: 0 !important; }
  html[data-page="berita"] .lead-side .story.side:hover h3 { color: #f6e2a8; }
  html[data-page="berita"] .lead-side .story.side .side-ex, html[data-page="berita"] .lead-side .story.side .ss-dots { display: none !important; }
}
/* tablets */
@media (min-width: 600px) and (max-width: 959px) {
  html[data-page="berita"] #feed { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-page="berita"] .story.main { display: flex !important; flex-direction: column; padding: 0 !important; overflow: hidden; }
  html[data-page="berita"] .story.main .img { aspect-ratio: 16 / 9 !important; min-height: 0 !important; height: auto !important; }
  html[data-page="berita"] .lead-side { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px !important; }
  html[data-page="berita"] .nz-search input { width: 170px; }
}
/* phones: tabs scroll on their own row, tools under them; latest news as a compact list (headline left, photo right) */
@media (max-width: 599px) {
  html[data-page="berita"] #berita { padding-top: 18px !important; }
  html[data-page="berita"] .nz-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; margin: 0 -4px 22px; border-radius: 14px; }
  html[data-page="berita"] .nz-tabs button { padding: 8px 12px; font-size: .8rem; }
  html[data-page="berita"] .nz-tools { width: 100%; }
  html[data-page="berita"] .nz-search { flex: 1; } html[data-page="berita"] .nz-search input { width: 100%; }
  html[data-page="berita"] .nz-h h2 { font-size: 1.15rem; }
  html[data-page="berita"] #nzLatest { margin-top: 30px; }
  html[data-page="berita"] #feed { grid-template-columns: 1fr !important; gap: 0 !important; }
  html[data-page="berita"] #feed .card { display: grid !important; grid-template-columns: minmax(0, 1fr) 96px !important; grid-template-areas: "meta thumb" "title thumb" !important; column-gap: 14px; row-gap: 0;
    align-items: start; padding: 16px 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
  html[data-page="berita"] #feed .card:first-child { padding-top: 0 !important; }
  html[data-page="berita"] #feed .card .thumb { grid-area: thumb; width: 96px; aspect-ratio: 1 !important; border-radius: 12px !important; align-self: center; }
  html[data-page="berita"] #feed .card .meta { grid-area: meta; margin: 0 0 6px !important; }
  html[data-page="berita"] #feed .card h3 { grid-area: title; margin: 0 !important; font-size: 1rem !important; line-height: 1.34 !important; }
  html[data-page="berita"] #feed .card .card-ex, html[data-page="berita"] #feed .card .badge-count, html[data-page="berita"] #feed .card .badge-play, html[data-page="berita"] #feed .card .ss-dots { display: none !important; }
  html[data-page="berita"] #feed .card .meta { flex-direction: column; align-items: flex-start; row-gap: 4px !important; }
  html[data-page="berita"] #feed .card .meta .tag::before { display: none !important; }
}

/* numbered pages (every list on the site) */
.pager .pg-num { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: rgba(232,236,247,.85); font: 700 .86rem/1 var(--sans); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.pager .pg-num:hover { border-color: rgba(214,180,103,.55); color: #fff; background: rgba(214,180,103,.1); }
.pager .pg-gap { color: rgba(232,236,247,.45); font-weight: 700; padding: 0 2px; }
html .pager { gap: 8px !important; flex-wrap: wrap; justify-content: center; }
html .pager .pg-cur { height: 44px !important; min-width: 44px; padding: 0 12px !important; border-radius: 12px !important; }
html .pager .pg-step { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
:root[data-theme="light"] .pager .pg-num { color: #0b1430; border-color: rgba(11,20,48,.12); background: #fff; }
@media (max-width: 599px) { .pager .pg-num, html .pager .pg-cur, html .pager .pg-step { min-width: 38px; height: 38px !important; } html .pager .pg-step { width: 38px !important; } }

/* v467 — News page: left-aligned lead story text; side-column date and category on two clean lines */
html[data-page="berita"] .story.main, html[data-page="berita"] .story.side, html[data-page="berita"] #feed .card { text-align: left !important; }
html[data-page="berita"] .story.main .meta, html[data-page="berita"] #feed .card .meta { justify-content: flex-start !important; }
@media (min-width: 960px) {
  html[data-page="berita"] .lead-side .story.side .meta { flex-direction: column; align-items: flex-start; row-gap: 4px !important; }
  html[data-page="berita"] .lead-side .story.side .meta .tag::before { display: none !important; }
}
/* v468 — the News toolbar moves with the header (same timing) */
html[data-page="berita"] .nz-bar { transition: top .4s var(--ease) !important; }
/* v469 — News page on phones: toolbar scrolls with the page (more room to read); lead summary kept to three lines */
@media (max-width: 599px) {
  html[data-page="berita"] .nz-bar { position: relative !important; top: auto !important; }
  html[data-page="berita"] .story.main p { display: -webkit-box !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
}

/* ===== v470 — News search bar (page header): large field, gold Search button, live suggestions ===== */
html[data-page="berita"] .page-banner, html[data-page="berita"] .page-banner .container { overflow: visible !important; }
html[data-page="berita"] .page-banner { z-index: 40; }
.nz-sbar { position: relative; z-index: 5; display: flex; align-items: center; width: 100%; max-width: 720px; margin-top: 24px; padding: 6px 6px 6px 18px; border-radius: 16px;
  background: rgba(8,14,38,.72); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px -28px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); transition: border-color .2s ease, box-shadow .2s ease; }
.nz-sbar:focus-within { border-color: rgba(214,180,103,.7); box-shadow: 0 24px 50px -28px rgba(0,0,0,.95), 0 0 0 4px rgba(214,180,103,.14); }
.nz-sbar .nz-ic { flex: none; color: #d6b467; }
.nz-sbar input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; outline: none; background: none; color: #fff; font: 500 1rem/1 var(--sans); }
.nz-sbar input::placeholder { color: rgba(232,236,247,.5); }
.nz-sbar input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); cursor: pointer; }
.nz-sbar .nz-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 .9rem/1 var(--sans); color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); box-shadow: 0 10px 22px -12px rgba(214,180,103,.9); transition: filter .2s ease, transform .2s ease; }
.nz-sbar .nz-go:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* suggestions */
.nz-sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(440px, 60vh); overflow-y: auto; padding: 6px; border-radius: 16px;
  background: rgba(11,19,48,.98); border: 1px solid rgba(214,180,103,.22); box-shadow: 0 30px 60px -24px rgba(0,0,0,.95); }
.nz-sug[hidden] { display: none; }
.nz-hit { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; color: inherit; }
.nz-hit img, .nz-hit i { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); display: block; }
.nz-hit time { display: block; margin-bottom: 4px; font: 700 .6rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #d6b467; }
.nz-hit b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 .92rem/1.35 var(--serif); color: #f1f4fb; }
.nz-hit mark { background: none; color: #f6e2a8; box-shadow: inset 0 -2px 0 rgba(214,180,103,.6); }
.nz-hit:hover, .nz-hit.act, .nz-all:hover, .nz-all.act { background: rgba(214,180,103,.1); }
.nz-all { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 12px; border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 12px 12px;
  background: none; cursor: pointer; font: 700 .8rem/1 var(--sans); letter-spacing: .04em; color: #f0d898; }
.nz-none { margin: 0; padding: 18px; text-align: center; color: rgba(232,236,247,.6); font-size: .9rem; }
:root[data-theme="light"] .nz-sug { background: #fff; border-color: rgba(11,20,48,.1); }
:root[data-theme="light"] .nz-hit b { color: #0b1430; }
/* toolbar now holds categories + year only */
html[data-page="berita"] .nz-search { display: none !important; }
@media (max-width: 599px) {
  .nz-sbar { margin-top: 18px; padding: 5px 5px 5px 14px; border-radius: 14px; }
  .nz-sbar input { height: 42px; font-size: 16px; padding: 0 8px; }   /* 16px stops iPhone zooming into the field */
  .nz-sbar .nz-go { height: 42px; width: 42px; padding: 0; justify-content: center; border-radius: 10px; }
  .nz-sbar .nz-go span { display: none; }
  html[data-page="berita"] .nz-tools { width: auto; }
  html[data-page="berita"] .nz-bar { flex-direction: row !important; align-items: center !important; }
  html[data-page="berita"] .nz-tabs { flex: 1; }
}
/* v476 — search hint fits whole on small phones (typed text stays 16px) */
@media (max-width: 599px) { .nz-sbar input::placeholder { font-size: 14px; } }
/* v477 — search suggestions: smaller text so headlines show in full (up to 3 lines), date line on one row */
.nz-hit { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 7px 8px; align-items: start; }
.nz-hit img, .nz-hit i { width: 56px; height: 42px; margin-top: 2px; }
.nz-hit time { font-size: .54rem; letter-spacing: .1em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-hit b { font-size: .8rem; line-height: 1.32; -webkit-line-clamp: 3; line-clamp: 3; }
@media (max-width: 599px) { .nz-hit b { font-size: .78rem; } }
/* v479 — home Policy & Achievements row (phones): sub-pixel part of the glide moves the cards themselves, so it is perfectly even */
html:not([data-page]) #achList > * { translate: calc(-1 * var(--g-sub, 0px)) 0; }
html:not([data-page]) #achList > .g-clone { opacity: 1 !important; transform: none !important; }
/* v482 — News toolbar: categories only (no year filter), tabs use the full width */
html[data-page="berita"] .nz-tools { display: none !important; }
html[data-page="berita"] .nz-tabs { -webkit-mask-image: none; mask-image: none; }

/* v483 — News page header: deeper dark layers behind the photo so the title, description and search read clearly */
html[data-page="berita"] .page-banner .pb-veil {
  background:
    linear-gradient(90deg, rgba(4,8,24,.92) 0%, rgba(5,10,30,.82) 38%, rgba(6,12,34,.55) 70%, rgba(6,12,34,.4) 100%),   /* left side, where the text sits */
    linear-gradient(0deg, rgba(4,7,22,.97) 0%, rgba(5,9,28,.6) 40%, rgba(6,11,32,.35) 75%, rgba(4,8,24,.75) 100%),     /* bottom and top edges */
    rgba(6,11,32,.35) !important;                                                                                       /* overall tint */
  opacity: 1 !important; }
html[data-page="berita"] .page-banner h1, html[data-page="berita"] .page-banner #pageTitle { text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
html[data-page="berita"] .page-banner .container > p, html[data-page="berita"] .page-banner .crumbs { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
html[data-page="berita"] .page-banner .container > p { color: rgba(240,243,250,.92) !important; }
@media (max-width: 599px) {
  html[data-page="berita"] .page-banner .pb-veil {
    background: linear-gradient(180deg, rgba(4,8,24,.88) 0%, rgba(5,10,30,.78) 45%, rgba(4,7,22,.96) 100%), rgba(6,11,32,.3) !important; }
}

/* v484 — every page header gets the same dark layers as News & Activities (consistent, readable) */
.page-banner .pb-veil {
  background:
    linear-gradient(90deg, rgba(4,8,24,.92) 0%, rgba(5,10,30,.82) 38%, rgba(6,12,34,.55) 70%, rgba(6,12,34,.4) 100%),
    linear-gradient(0deg, rgba(4,7,22,.97) 0%, rgba(5,9,28,.6) 40%, rgba(6,11,32,.35) 75%, rgba(4,8,24,.75) 100%),
    rgba(6,11,32,.35) !important;
  opacity: 1 !important; }
.page-banner h1, .page-banner #pageTitle { text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.page-banner .container > p, .page-banner .crumbs { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.page-banner .container > p { color: rgba(240,243,250,.92) !important; }
@media (max-width: 599px) {
  .page-banner .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.88) 0%, rgba(5,10,30,.78) 45%, rgba(4,7,22,.96) 100%), rgba(6,11,32,.3) !important; }
}
/* v485 — Biography and home headers: the same dark layers over their photo reel (text side darkest), so every page matches */
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,8,24,.9) 0%, rgba(5,10,30,.78) 40%, rgba(6,12,34,.45) 72%, rgba(6,12,34,.3) 100%),
    linear-gradient(0deg, rgba(4,7,22,.95) 0%, rgba(5,9,28,.5) 38%, rgba(6,11,32,.25) 75%, rgba(4,8,24,.7) 100%),
    rgba(6,11,32,.28); }
.hero-bg .hero-sweep, .hero-bg .hero-particles { z-index: 2; }
.page-hero h1, #top .hero-title, #top h1 { text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
@media (max-width: 599px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(4,8,24,.85) 0%, rgba(5,10,30,.72) 45%, rgba(4,7,22,.95) 100%), rgba(6,11,32,.28); }
}

/* v486 — footer: the same dark layers as the page headers; stronger overall tint because its text spans every column */
html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.9) 0%, rgba(5,10,30,.78) 40%, rgba(6,12,34,.62) 72%, rgba(6,12,34,.55) 100%),
  linear-gradient(180deg, rgba(4,8,24,.85) 0%, rgba(5,9,28,.4) 30%, rgba(5,9,28,.4) 70%, rgba(4,7,22,.95) 100%),
  rgba(6,11,32,.4) !important; opacity: 1 !important; }
html .site-footer.f2-has-bg h2, html .site-footer.f2-has-bg h3, html .site-footer.f2-has-bg h4, html .site-footer.f2-has-bg .f2-name { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
html .site-footer.f2-has-bg p, html .site-footer.f2-has-bg li, html .site-footer.f2-has-bg small, html .site-footer.f2-has-bg address { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 599px) { html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background:
  linear-gradient(180deg, rgba(4,8,24,.9) 0%, rgba(5,10,30,.8) 45%, rgba(4,7,22,.96) 100%), rgba(6,11,32,.35) !important; } }

/* v487 — footer veil eased: darker than the original for readable text, but the photo behind clearly shows */
html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.78) 0%, rgba(5,10,30,.6) 40%, rgba(6,12,34,.4) 72%, rgba(6,12,34,.32) 100%),
  linear-gradient(180deg, rgba(4,8,24,.6) 0%, rgba(5,9,28,.12) 30%, rgba(5,9,28,.12) 70%, rgba(4,7,22,.82) 100%),
  rgba(6,11,32,.22) !important; }
@media (max-width: 599px) { html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background:
  linear-gradient(180deg, rgba(4,8,24,.75) 0%, rgba(5,10,30,.55) 45%, rgba(4,7,22,.88) 100%), rgba(6,11,32,.18) !important; } }

/* v488 — homepage hero: lighter veil so the photos behind show clearly; only the text side and bottom edge stay a little darker */
#top .hero-bg::after { background:
  linear-gradient(90deg, rgba(4,8,24,.55) 0%, rgba(5,10,30,.35) 40%, rgba(6,12,34,.12) 72%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.6) 0%, rgba(5,9,28,.12) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.25) 100%) !important; }
@media (max-width: 599px) { #top .hero-bg::after { background: linear-gradient(180deg, rgba(4,8,24,.35) 0%, rgba(5,10,30,.2) 45%, rgba(4,7,22,.65) 100%) !important; } }
/* v489 — homepage hero: lighter base tint and full-brightness photos (the photos behind now show clearly; the text keeps a soft shade) */
#top .hero-bg .hero-tint { background:
  radial-gradient(70% 55% at 50% 40%, rgba(20,40,110,0) 0%, rgba(7,13,34,.25) 80%),
  linear-gradient(180deg, rgba(7,13,34,.3) 0%, rgba(7,13,34,.08) 35%, rgba(7,13,34,.2) 70%, rgba(7,13,34,.7) 100%) !important; }
#top .hero-reel > * { filter: saturate(1) contrast(1.04) brightness(1) !important; }
#top .hero-title, #top h1, #top .hero-roles, #top .hero p { text-shadow: 0 2px 18px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.55); }

/* v490 — every page header as light as the homepage hero: photos show clearly; only the text side and bottom edge keep a soft shade */
.page-banner .pb-veil, html[data-page="berita"] .page-banner .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.6) 0%, rgba(5,10,30,.4) 40%, rgba(6,12,34,.15) 72%, rgba(6,12,34,.05) 100%),
  linear-gradient(0deg, rgba(4,7,22,.75) 0%, rgba(5,9,28,.15) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.3) 100%) !important; }
.hero-bg::after { background:
  linear-gradient(90deg, rgba(4,8,24,.55) 0%, rgba(5,10,30,.35) 40%, rgba(6,12,34,.12) 72%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.6) 0%, rgba(5,9,28,.12) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.25) 100%) !important; }
.page-hero .hero-bg .hero-tint { background:
  radial-gradient(70% 55% at 50% 40%, rgba(20,40,110,0) 0%, rgba(7,13,34,.25) 80%),
  linear-gradient(180deg, rgba(7,13,34,.3) 0%, rgba(7,13,34,.08) 35%, rgba(7,13,34,.2) 70%, rgba(7,13,34,.7) 100%) !important; }
.page-hero .hero-reel > * { filter: saturate(1) contrast(1.04) brightness(1) !important; }
@media (max-width: 599px) {
  .page-banner .pb-veil, html[data-page="berita"] .page-banner .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.4) 0%, rgba(5,10,30,.3) 45%, rgba(4,7,22,.75) 100%) !important; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(4,8,24,.35) 0%, rgba(5,10,30,.2) 45%, rgba(4,7,22,.65) 100%) !important; }
}
/* v491 — balance: a solid shade only behind the text (left), the rest of the photo stays bright and visible */
.page-banner .pb-veil, html[data-page="berita"] .page-banner .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.84) 0%, rgba(5,10,30,.74) 32%, rgba(6,12,34,.38) 58%, rgba(6,12,34,.1) 80%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.75) 0%, rgba(5,9,28,.12) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.3) 100%) !important; }
.hero-bg::after { background:
  linear-gradient(90deg, rgba(4,8,24,.78) 0%, rgba(5,10,30,.64) 32%, rgba(6,12,34,.3) 58%, rgba(6,12,34,.06) 80%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.6) 0%, rgba(5,9,28,.1) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.25) 100%) !important; }
@media (max-width: 599px) {
  .page-banner .pb-veil, html[data-page="berita"] .page-banner .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.55) 0%, rgba(5,10,30,.5) 45%, rgba(4,7,22,.82) 100%) !important; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(4,8,24,.45) 0%, rgba(5,10,30,.35) 45%, rgba(4,7,22,.72) 100%) !important; }
}

/* ===== v492 — hero text, premium and consistent on every page and device ===== */
/* shared gold accent: a soft metallic gradient on the gold word */
.hero-title .gold, .bio-name .gold, .page-hero .gold { background: linear-gradient(100deg, #f8e7b4 0%, #e3c27a 45%, #c9a258 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; text-shadow: none !important; filter: drop-shadow(0 2px 14px rgba(0,0,0,.45)); }

/* page headers: eyebrow · title · gold rule · description */
.page-banner .pb-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 12px; font: 700 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e3c27a; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.page-banner .pb-eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, #e3c27a, rgba(227,194,122,.2)); }
html .page-banner h1, html .page-banner #pageTitle { margin: 0 !important; font: 500 clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem)/1.04 var(--serif) !important; letter-spacing: -.022em !important; color: #fff; text-wrap: balance; }
.page-banner #pageTitle::after { content: ""; display: block; width: 56px; height: 2px; margin: 20px 0 18px; border-radius: 2px; background: linear-gradient(90deg, #f6e2a8, #d6b467 60%, rgba(214,180,103,0)); }
html .page-banner .container > p { max-width: 54ch; margin: 0 !important; font: 400 clamp(.98rem, .9rem + .3vw, 1.12rem)/1.65 var(--sans) !important; letter-spacing: .003em; color: rgba(240,243,250,.86) !important; text-wrap: pretty; }
.page-banner .crumbs { margin-bottom: 0 !important; }

/* home + biography: name, roles, buttons */
html .hero .hero-title { font-size: clamp(2.7rem, 1.5rem + 4.8vw, 5.8rem) !important; line-height: 1.02 !important; letter-spacing: -.026em !important; font-weight: 500 !important; }
html .page-hero .bio-name { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem) !important; line-height: 1.04 !important; letter-spacing: -.024em !important; font-weight: 500 !important; }
html .hero-roles { margin-top: 26px !important; row-gap: 10px !important; }
html .hero-roles li { font: 500 clamp(.84rem, .8rem + .2vw, .98rem)/1.3 var(--sans) !important; letter-spacing: .015em !important; color: rgba(255,255,255,.88) !important; }
html .hero-roles li:first-child { color: #f0d898 !important; font-weight: 600 !important; }
@media (min-width: 960px) {
  html .hero-roles li + li { border-left: 0 !important; margin-left: 16px !important; padding-left: 16px !important; position: relative; }
  html .hero-roles li + li::before { content: "" !important; display: block !important; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #d6b467; opacity: .8; }
}
html .page-hero .page-lead { max-width: 54ch; margin-top: 22px !important; font: 400 clamp(.98rem, .9rem + .3vw, 1.12rem)/1.65 var(--sans) !important; color: rgba(240,243,250,.86) !important; }
html .hero-cta { gap: 12px !important; margin-top: 34px !important; }
html .hero-cta .btn { height: 52px; padding: 0 26px !important; border-radius: 999px !important; font: 700 .9rem/1 var(--sans) !important; letter-spacing: .02em; }
html .hero-cta .btn-line { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.28) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff !important; }
html .hero-cta .btn-line:hover { border-color: rgba(240,216,152,.7) !important; background: rgba(214,180,103,.12) !important; }

/* phones: comfortable sizes, full-width buttons, roles as a neat list */
@media (max-width: 599px) {
  .page-banner .pb-eyebrow { margin: 14px 0 10px; font-size: .62rem; letter-spacing: .16em; }
  .page-banner #pageTitle::after { margin: 16px 0 14px; width: 44px; }
  html .hero-roles { margin-top: 20px !important; }
  html .hero-cta { display: grid !important; grid-template-columns: 1fr; margin-top: 28px !important; }
  html .hero-cta .btn { width: 100%; justify-content: center; height: 50px; }
}
/* v493 — desktop role separators: small gold dots (beat the older dash rule) */
@media (min-width: 960px) {
  html body .hero-roles li + li::before { width: 4px !important; height: 4px !important; border-radius: 50% !important; background: #d6b467 !important; background-image: none !important; left: -2px !important; top: 50% !important; margin-top: -2px !important; transform: none !important; opacity: .85 !important; }
  html body .hero-roles li:first-child::before { display: none !important; }
}

/* v494 — News & Activities header: its photo has bright lettering behind the text, so a deeper shade sits behind the text column only; the right side keeps the photo visible */
html[data-page="berita"] .page-banner .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.94) 0%, rgba(5,10,30,.9) 30%, rgba(5,10,30,.72) 46%, rgba(6,12,34,.3) 64%, rgba(6,12,34,.08) 82%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.8) 0%, rgba(5,9,28,.15) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.35) 100%) !important; }
@media (max-width: 599px) {
  html[data-page="berita"] .page-banner .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.82) 0%, rgba(5,10,30,.8) 50%, rgba(4,7,22,.9) 100%) !important; }
}
/* v495 — News header: the strong shade covers the whole text column; description kept to a shorter line */
html[data-page="berita"] .page-banner .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.94) 0%, rgba(5,10,30,.9) 40%, rgba(5,10,30,.78) 52%, rgba(6,12,34,.4) 66%, rgba(6,12,34,.1) 82%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.8) 0%, rgba(5,9,28,.15) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.35) 100%) !important; }
html[data-page="berita"] .page-banner .container > p { max-width: 44ch; }

/* v496 — Policy, Achievements, Videos and Gallery headers: same rule as News & Activities (deep shade behind the text column, photo visible on the right) */
html:is([data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"]) .page-banner .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.94) 0%, rgba(5,10,30,.9) 40%, rgba(5,10,30,.78) 52%, rgba(6,12,34,.4) 66%, rgba(6,12,34,.1) 82%, rgba(6,12,34,0) 100%),
  linear-gradient(0deg, rgba(4,7,22,.8) 0%, rgba(5,9,28,.15) 35%, rgba(6,11,32,0) 70%, rgba(4,8,24,.35) 100%) !important; }
html:is([data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"]) .page-banner .container > p { max-width: 44ch; }
@media (max-width: 599px) {
  html:is([data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"]) .page-banner .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.82) 0%, rgba(5,10,30,.8) 50%, rgba(4,7,22,.9) 100%) !important; }
}

/* ===== v497 — elections: one shared PRU/PRN picker for Results, Analysis and Government, with "Overall" ===== */
#pr .pr-anapick { display: none !important; }                  /* Analysis follows the shared picker above */
#pr .pr-years .pr-yall { font-weight: 800; letter-spacing: .02em; border-color: rgba(214,180,103,.45); color: #f0d898; }
#pr .pr-years .pr-yall.on { color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); border-color: transparent; }
#pr .pr-ana-all { display: inline-block; margin: 6px 0 2px; padding: 4px 10px; border-radius: 999px; font: 700 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); }
#pr .pr-gv-past { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.5;
  background: rgba(214,180,103,.1); border: 1px solid rgba(214,180,103,.35); color: inherit; }
#pr .pr-gv-past i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #d6b467; }
/* Results · Overall */
#pr .pr-ov-h { margin: 8px 0 16px; } #pr .pr-ov-h h2 { margin: 6px 0 6px; font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--serif); } #pr .pr-ov-h p { margin: 0; opacity: .75; font-size: .92rem; }
#pr .pr-ov-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
#pr .pr-ov-k > div { padding: 14px 16px; border-radius: 14px; background: var(--bg-2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.08)); }
#pr .pr-ov-k small { display: block; font: 700 .64rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: 6px; }
#pr .pr-ov-k b { font: 700 1.35rem/1.1 var(--sans); }
#pr .pr-ov-list { display: grid; gap: 8px; }
#pr .pr-ov-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(0, 2.4fr) minmax(110px, .9fr) 56px; gap: 14px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.08)); background: var(--bg-2, rgba(255,255,255,.03)); color: inherit; transition: border-color .2s ease, transform .2s ease; }
#pr .pr-ov-row:hover { border-color: rgba(214,180,103,.5); transform: translateY(-1px); }
#pr .pr-ov-n b { display: block; font: 700 .95rem/1.2 var(--sans); } #pr .pr-ov-n small { font-size: .74rem; opacity: .65; }
#pr .pr-ov-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(127,127,127,.18); }
#pr .pr-ov-bar i { width: var(--w); background: var(--c); } #pr .pr-ov-bar i + i { box-shadow: inset 1px 0 0 rgba(0,0,0,.25); }
#pr .pr-ov-w { display: flex; align-items: center; gap: 8px; min-width: 0; } #pr .pr-ov-w b { font: 700 .86rem/1 var(--sans); } #pr .pr-ov-w small { opacity: .65; font-size: .78rem; }
#pr .pr-ov-bn { text-align: right; } #pr .pr-ov-bn small { display: block; font: 700 .6rem/1 var(--sans); letter-spacing: .1em; opacity: .6; } #pr .pr-ov-bn b { font: 800 1.05rem/1.2 var(--sans); }
#pr .pr-ov-row.bn .pr-ov-bn b { color: #4f7cff; }
@media (max-width: 599px) {
  #pr .pr-ov-k { grid-template-columns: 1fr 1fr; } #pr .pr-ov-k > div:last-child { grid-column: 1 / -1; }
  #pr .pr-ov-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n bn" "bar bar" "w w"; row-gap: 8px; }
  #pr .pr-ov-n { grid-area: n; } #pr .pr-ov-bn { grid-area: bn; } #pr .pr-ov-bar { grid-area: bar; } #pr .pr-ov-w { grid-area: w; }
}

/* v498 — footer: the same layered shade as the page headers (deep behind the text, photo still visible), tuned for text that spans the full width */
html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background:
  linear-gradient(90deg, rgba(4,8,24,.94) 0%, rgba(5,10,30,.88) 40%, rgba(5,10,30,.74) 62%, rgba(6,12,34,.58) 82%, rgba(6,12,34,.5) 100%),
  linear-gradient(180deg, rgba(4,8,24,.7) 0%, rgba(5,9,28,.15) 30%, rgba(5,9,28,.15) 70%, rgba(4,7,22,.85) 100%) !important; opacity: 1 !important; }
@media (max-width: 599px) { html .site-footer.f2-has-bg .f2-bg .pb-veil, html .f2-bg .pb-veil { background: linear-gradient(180deg, rgba(4,8,24,.86) 0%, rgba(5,10,30,.8) 50%, rgba(4,7,22,.92) 100%) !important; } }

/* ===== v499 — election board: continuous pages in numbered chapters with a sticky chapter bar ===== */
#pr .pr-chapbar { position: sticky; top: var(--pr-top, 80px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 8px; padding: 6px;
  border-radius: 14px; background: rgba(10,17,44,.9); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 34px -24px rgba(0,0,0,.9); transition: top .4s var(--ease, ease); }
#pr .pr-chapbar::-webkit-scrollbar { display: none; }
#pr .pr-chapbar button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: 600 .84rem/1 var(--sans); color: rgba(232,236,247,.72); white-space: nowrap; transition: background .2s ease, color .2s ease; }
#pr .pr-chapbar button em { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 .7rem/1 var(--sans); font-style: normal; background: rgba(255,255,255,.08); color: inherit; }
#pr .pr-chapbar button:hover { color: #fff; background: rgba(255,255,255,.06); }
#pr .pr-chapbar button.on { color: #0b1430; background: linear-gradient(135deg, #f6e2a8, #d6b467); }
#pr .pr-chapbar button.on em { background: rgba(11,20,48,.15); }
#pr .pr-chapbar button svg { display: none; }
/* chapters */
#pr .pr-chap { scroll-margin-top: calc(var(--pr-top, 80px) + 66px); margin-top: 34px; }
#pr .pr-chap[hidden] { display: none !important; }
#pr .pr-ch { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; padding-top: 22px; border-top: 1px solid rgba(214,180,103,.22); }
#pr .pr-chap:first-of-type .pr-ch { border-top: 0; padding-top: 0; }
#pr .pr-ch > em { flex: none; font: 600 2rem/1 var(--serif); font-style: normal; color: #d6b467; opacity: .9; min-width: 44px; }
#pr .pr-ch h2 { margin: 2px 0 6px; font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.7rem)/1.2 var(--serif); }
#pr .pr-ch p { margin: 0; font-size: .92rem; line-height: 1.55; opacity: .75; max-width: 64ch; }
#pr .pr-ch .pr-ch-scope { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font-size: .76rem; opacity: 1; background: rgba(214,180,103,.1); color: #f0d898; }
#pr .pr-ch .pr-ch-scope svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#pr .pr-chap > .pr-ahelp { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0 10px; font-size: .86rem; line-height: 1.5; opacity: .8; }
#pr .pr-chap > .pr-ahelp:first-of-type { margin-top: 4px; }
#pr .pr-chap > .pr-ahelp svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: #d6b467; stroke-width: 1.8; }
#pr .pr-chap > .pr-panel + .pr-panel { margin-top: 14px; }
/* old one-at-a-time controls are gone */
#pr .pr-anext, #pr .pr-anav, #pr .pr-atabs, #pr .pr-agrp, #pr .pr-ana-ctx, #pr .pr-steps:not(.pr-chapbar) { display: none !important; }
:root[data-theme="light"] #pr .pr-chapbar { background: rgba(255,255,255,.92); border-color: rgba(11,20,48,.08); }
:root[data-theme="light"] #pr .pr-chapbar button { color: rgba(11,20,48,.7); }
@media (max-width: 599px) {
  #pr .pr-chapbar { margin: 14px -4px 6px; border-radius: 12px; }
  #pr .pr-chapbar button { padding: 7px 12px 7px 7px; font-size: .8rem; }
  #pr .pr-ch { gap: 12px; } #pr .pr-ch > em { font-size: 1.5rem; min-width: 32px; }
  #pr .pr-chap { margin-top: 26px; }
}

/* ===== v500 — premium hero veil everywhere: no hard half-split. A soft oval of shade sits only behind the text and fades out in every
   direction; a light top/bottom fade frames the photo. Khaled Nordin's portrait (right side) and the photo subjects stay clear. ===== */
html .page-banner .pb-veil, html[data-page] .page-banner .pb-veil,
html:is([data-page="berita"], [data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"], [data-page="media"], [data-page="hubungi"], [data-page="aduan"], [data-page="maklum-balas"]) .page-banner .pb-veil { background:
  radial-gradient(ellipse 62% 105% at 14% 58%, rgba(4,8,24,.9) 0%, rgba(4,8,24,.78) 30%, rgba(5,10,30,.5) 52%, rgba(5,10,30,.18) 72%, rgba(5,10,30,0) 88%),
  linear-gradient(0deg, rgba(4,7,22,.78) 0%, rgba(4,7,22,.25) 22%, rgba(4,7,22,0) 42%),
  linear-gradient(180deg, rgba(4,8,24,.5) 0%, rgba(4,8,24,0) 26%),
  rgba(6,11,32,.1) !important; opacity: 1 !important; }
html .hero-bg::after, html #top .hero-bg::after { background:
  radial-gradient(ellipse 58% 100% at 16% 56%, rgba(4,8,24,.82) 0%, rgba(4,8,24,.66) 30%, rgba(5,10,30,.4) 52%, rgba(5,10,30,.12) 72%, rgba(5,10,30,0) 86%),
  linear-gradient(0deg, rgba(4,7,22,.7) 0%, rgba(4,7,22,.2) 22%, rgba(4,7,22,0) 40%),
  linear-gradient(180deg, rgba(4,8,24,.42) 0%, rgba(4,8,24,0) 24%) !important; }
/* the portraits always sit in front of every shade layer */
html .hero-portrait, html .page-portrait { position: relative; z-index: 3; }
html .hero-portrait img, html .page-portrait img { filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
@media (max-width: 599px) {
  html .page-banner .pb-veil, html[data-page] .page-banner .pb-veil,
  html:is([data-page="berita"], [data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"], [data-page="media"], [data-page="hubungi"], [data-page="aduan"], [data-page="maklum-balas"]) .page-banner .pb-veil { background:
    radial-gradient(ellipse 120% 70% at 30% 62%, rgba(4,8,24,.82) 0%, rgba(4,8,24,.6) 45%, rgba(5,10,30,.25) 75%, rgba(5,10,30,.1) 100%),
    linear-gradient(0deg, rgba(4,7,22,.8) 0%, rgba(4,7,22,0) 40%), linear-gradient(180deg, rgba(4,8,24,.5) 0%, rgba(4,8,24,0) 30%) !important; }
  html .hero-bg::after, html #top .hero-bg::after { background:
    radial-gradient(ellipse 120% 65% at 30% 60%, rgba(4,8,24,.72) 0%, rgba(4,8,24,.5) 45%, rgba(5,10,30,.18) 78%, rgba(5,10,30,0) 100%),
    linear-gradient(0deg, rgba(4,7,22,.7) 0%, rgba(4,7,22,0) 38%), linear-gradient(180deg, rgba(4,8,24,.4) 0%, rgba(4,8,24,0) 26%) !important; }
}
/* v501 — tighter oval: the shade hugs the text column and is almost gone by mid-width, so people in the middle of the photo stay clear */
@media (min-width: 600px) {
  html .page-banner .pb-veil, html[data-page] .page-banner .pb-veil,
  html:is([data-page="berita"], [data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"], [data-page="media"], [data-page="hubungi"], [data-page="aduan"], [data-page="maklum-balas"]) .page-banner .pb-veil { background:
    radial-gradient(ellipse 46% 95% at 12% 58%, rgba(4,8,24,.88) 0%, rgba(4,8,24,.74) 32%, rgba(5,10,30,.42) 56%, rgba(5,10,30,.12) 78%, rgba(5,10,30,0) 92%),
    linear-gradient(0deg, rgba(4,7,22,.78) 0%, rgba(4,7,22,.25) 22%, rgba(4,7,22,0) 42%),
    linear-gradient(180deg, rgba(4,8,24,.5) 0%, rgba(4,8,24,0) 26%),
    rgba(6,11,32,.08) !important; }
  html .hero-bg::after, html #top .hero-bg::after { background:
    radial-gradient(ellipse 46% 95% at 14% 56%, rgba(4,8,24,.8) 0%, rgba(4,8,24,.64) 32%, rgba(5,10,30,.36) 56%, rgba(5,10,30,.1) 78%, rgba(5,10,30,0) 92%),
    linear-gradient(0deg, rgba(4,7,22,.7) 0%, rgba(4,7,22,.2) 22%, rgba(4,7,22,0) 40%),
    linear-gradient(180deg, rgba(4,8,24,.42) 0%, rgba(4,8,24,0) 24%) !important; }
}
/* v502 — elections: simulations are labelled as estimates */
#pr .pr-ch .pr-ch-est { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: .8rem; line-height: 1.5; opacity: 1;
  background: rgba(240,170,60,.1); border: 1px solid rgba(240,170,60,.35); color: #f3d6a1; max-width: 70ch; }
#pr .pr-ch .pr-ch-est svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
:root[data-theme="light"] #pr .pr-ch .pr-ch-est { color: #8a5a10; }

/* ===== v504 — ONE hero style for every page (home, biography, section pages, elections): the same shade, the same text treatment ===== */
/* the shade: an oval behind the text (darkest where the words are), light top and bottom fades; right side and portraits stay clear */
@media (min-width: 600px) {
  html .page-banner .pb-veil, html[data-page] .page-banner .pb-veil, html .pr-banner .pb-veil,
  html:is([data-page="berita"], [data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"], [data-page="media"], [data-page="hubungi"], [data-page="aduan"], [data-page="maklum-balas"]) .page-banner .pb-veil,
  html .hero-bg::after, html #top .hero-bg::after { background:
    radial-gradient(ellipse 52% 100% at 13% 58%, rgba(4,8,24,.9) 0%, rgba(4,8,24,.84) 38%, rgba(5,10,30,.56) 60%, rgba(5,10,30,.18) 82%, rgba(5,10,30,0) 96%),
    linear-gradient(0deg, rgba(4,7,22,.8) 0%, rgba(4,7,22,.25) 22%, rgba(4,7,22,0) 42%),
    linear-gradient(180deg, rgba(4,8,24,.5) 0%, rgba(4,8,24,0) 26%),
    rgba(6,11,32,.08) !important; opacity: 1 !important; }
}
@media (max-width: 599px) {
  html .page-banner .pb-veil, html[data-page] .page-banner .pb-veil, html .pr-banner .pb-veil,
  html:is([data-page="berita"], [data-page="dasar"], [data-page="pencapaian"], [data-page="video"], [data-page="galeri"], [data-page="media"], [data-page="hubungi"], [data-page="aduan"], [data-page="maklum-balas"]) .page-banner .pb-veil,
  html .hero-bg::after, html #top .hero-bg::after { background:
    radial-gradient(ellipse 125% 72% at 30% 62%, rgba(4,8,24,.86) 0%, rgba(4,8,24,.68) 45%, rgba(5,10,30,.3) 76%, rgba(5,10,30,.12) 100%),
    linear-gradient(0deg, rgba(4,7,22,.82) 0%, rgba(4,7,22,0) 40%),
    linear-gradient(180deg, rgba(4,8,24,.55) 0%, rgba(4,8,24,0) 30%) !important; }
}
/* the older extra tint on home and biography is replaced by the shared shade above, so every hero looks the same */
html .hero-bg .hero-tint { background: none !important; }
html .hero-bg .hero-reel > *, html .page-banner .pb-bg img { filter: none !important; }

/* the same text treatment everywhere: titles, gold label, breadcrumb, roles, descriptions */
html .page-banner h1, html .page-banner #pageTitle, html .hero .hero-title, html .page-hero .bio-name, html .page-hero h1 {
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.55) !important; }
html .page-banner .pb-eyebrow, html .page-banner .crumbs, html .page-banner .crumbs a, html .page-hero .crumbs, html .page-hero .crumbs a, html .hero-roles li {
  text-shadow: 0 1px 10px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.6) !important; }
html .page-banner .container > p, html .page-hero .page-lead, html .hero p {
  color: rgba(244,246,251,.94) !important; text-shadow: 0 1px 12px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.55) !important; }
html .page-banner .crumbs a, html .page-hero .crumbs a { background: rgba(6,11,32,.45); }
/* v505 — home and biography get the same gold label above the title as every other page */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e3c27a;
  text-shadow: 0 1px 10px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.6); }
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, #e3c27a, rgba(227,194,122,.2)); }
.page-hero .hero-eyebrow { margin-top: 14px; }
@media (max-width: 599px) { .hero-eyebrow { font-size: .62rem; letter-spacing: .16em; margin-bottom: 12px; } }

/* v513 — story source: no box around it, just the label, outlet link and photo credit (a thin rule separates it from the story) */
html .art-credit { padding: 18px 0 0 !important; border: 0 !important; border-top: 1px solid rgba(214,180,103,.2) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }

/* v514 — homepage hero: the slogan is the title, "Official Website of Dato' Seri Mohamed Khaled Nordin" the description */
html .hero .hero-title.hero-slogan { font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem) !important; line-height: 1.06 !important; letter-spacing: -.025em !important; max-width: 13ch; }
html .hero .hero-title.hero-slogan .line { display: block; }
html .hero .hero-desc { margin: 22px 0 0; max-width: 44ch; font: 500 clamp(1rem, .92rem + .35vw, 1.2rem)/1.55 var(--sans); letter-spacing: .005em; color: rgba(244,246,251,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.55); }
html .hero .hero-desc::before { content: ""; display: block; width: 56px; height: 2px; margin: 0 0 18px; border-radius: 2px; background: linear-gradient(90deg, #f6e2a8, #d6b467 60%, rgba(214,180,103,0)); }
@media (max-width: 599px) { html .hero .hero-title.hero-slogan { max-width: none; } html .hero .hero-desc { margin-top: 18px; } html .hero .hero-desc::before { width: 44px; margin-bottom: 14px; } }
/* v515 — slogan on two lines on wider screens: one phrase per line */
@media (min-width: 760px) {
  html .hero .hero-title.hero-slogan { max-width: none; font-size: clamp(2.6rem, 1rem + 3.6vw, 4.4rem) !important; }
  html .hero .hero-title.hero-slogan .line { white-space: nowrap; }
}

/* v517 — homepage description on ONE line at every screen size (it shrinks a little on narrow phones instead of wrapping) */
html .hero .hero-desc { max-width: none !important; white-space: nowrap; font-size: clamp(.74rem, 3.3vw, 1.2rem) !important; }
@media (min-width: 600px) { html .hero .hero-desc { font-size: clamp(1rem, .92rem + .35vw, 1.2rem) !important; } }

/* v519 — top bar: the "Official Website" label is gone (the homepage says it), so the date, language and theme switch sit on the right */
html .utility-inner .u-right { margin-left: auto; }

/* v520 — premium button motion everywhere: soft lift on hover, a springy press, a light sweep across the main buttons,
   a ripple from the tap point, livelier icons and a gold focus ring. Uses the separate translate/scale properties so it never
   fights a button's own positioning transform. Everything calms down for visitors who ask for reduced motion. */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --glide: cubic-bezier(.22, 1, .36, 1); }
:where(.btn, .cf-send, .cf-cta, .a2hs-go, .a2hs-link, .nz-go, .pr-mc-go, .sv-more, .cf-again,
       .cf-type, .pr-chip, .off-tab, .a2hs-later, .a2hs-done, .pr-yall, .nz-all, .pr-prof-back, .pr-home-back, .sh-btn, .pg-num, .pg-step,
       .lang-switch button, .seg button, .theme-btn, .search-btn, .menu-btn, .modal-close, .sv-close, .a2hs-x, .pr-dr-x, .to-top, .m-nav, .ss-toggle) {
  transition: translate .45s var(--spring), scale .3s var(--spring), box-shadow .4s var(--glide), background-color .3s, border-color .3s, color .3s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
/* main and pill buttons: lift and glow */
@media (hover: hover) {
  :where(.cf-send, .cf-cta, .a2hs-go, .a2hs-link, .nz-go, .pr-mc-go, .sv-more, .cf-again, .cf-type, .pr-chip, .off-tab, .a2hs-later, .a2hs-done,
         .pr-yall, .nz-all, .pr-prof-back, .pr-home-back, .sh-btn):not(:disabled):hover { translate: 0 -2px; box-shadow: 0 12px 24px -14px rgba(11, 20, 48, .55); }
  :where(.pg-num):not(.on):hover { translate: 0 -2px; }
  :where(.lang-switch button):not(.on):hover { opacity: 1; scale: 1.06; }
  /* round icon buttons: a gentle swell, the icon does the rest */
  :where(.theme-btn, .search-btn, .menu-btn, .modal-close, .sv-close, .a2hs-x, .pr-dr-x, .to-top, .m-nav, .ss-toggle):hover { scale: 1.08; }
  .modal-close:hover svg, .sv-close:hover svg, .a2hs-x:hover svg, .pr-dr-x:hover svg { rotate: 90deg; }
  .theme-btn:hover svg { rotate: 25deg; }
  .search-btn:hover svg { scale: 1.12; rotate: -8deg; }
  .to-top:hover svg { animation: kn-bob .9s var(--glide) infinite; }
  .m-nav.next:hover svg { translate: 3px 0; } .m-nav.prev:hover svg { translate: -3px 0; }
  .sh-btn:hover svg { scale: 1.15; }
  /* tabs: the gold underline peeks in on hover before it is chosen */
  .tabs button:not(.on):hover { color: var(--ink); }
  .tabs button:not(.on):hover::after { transform: scaleX(.35); }
}
:where(.theme-btn, .search-btn, .menu-btn, .modal-close, .sv-close, .a2hs-x, .pr-dr-x, .to-top, .m-nav, .ss-toggle, .sh-btn, .btn) svg { transition: rotate .5s var(--spring), scale .4s var(--spring), translate .4s var(--spring); }
.tabs button { transition: color .3s; }
/* a springy press on every button */
:where(.btn, .cf-send, .cf-cta, .a2hs-go, .a2hs-link, .nz-go, .pr-mc-go, .sv-more, .cf-again, .cf-type, .pr-chip, .off-tab, .a2hs-later, .a2hs-done,
       .pr-yall, .nz-all, .pr-prof-back, .pr-home-back, .sh-btn, .pg-num, .pg-step, .lang-switch button, .seg button, .tabs button,
       .theme-btn, .search-btn, .menu-btn, .modal-close, .sv-close, .a2hs-x, .pr-dr-x, .to-top, .m-nav, .ss-toggle):not(:disabled):active { scale: .95; transition-duration: .12s; }
/* light sweep across the main call-to-action buttons (the .btn family already has its own) */
.kn-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.kn-fx::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); opacity: 0; }
@media (hover: hover) { :hover > .kn-fx.kn-shine::before { animation: kn-sweep .9s var(--glide); } }
.kn-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; scale: 0; animation: kn-ripple .65s var(--glide) forwards; }
@keyframes kn-ripple { to { scale: 1; opacity: 0; } }
@keyframes kn-sweep { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@keyframes kn-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
/* the homepage's main gold button breathes softly so it draws the eye */
.hero .btn-gold { animation: kn-breathe 3.6s ease-in-out 2.5s infinite; }
.hero .btn-gold:hover { animation: none; }
@keyframes kn-breathe { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 24px -14px rgba(184,145,58,.7), 0 0 0 0 rgba(226,196,127,0); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 30px -12px rgba(184,145,58,.9), 0 0 0 6px rgba(226,196,127,.16); } }
/* keyboard users: a clear gold ring */
:where(button, .btn, a.cf-cta):focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  :where(button, .btn, .cf-cta) { translate: none !important; scale: none !important; animation: none !important; }
  .kn-ripple, .kn-fx::before, :where(button, .btn) svg { animation: none !important; transition: none !important; }
}

/* v521 — bottom menu: the icon hops up on hover and springs on tap, matching the other buttons */
.dock .dk-ic { transition: translate .45s var(--spring), scale .3s var(--spring), rotate .45s var(--spring), background .3s, box-shadow .3s; }
@media (hover: hover) { .dock a:not(.on):hover .dk-ic { translate: 0 -3px; rotate: -6deg; } }
.dock a:active .dk-ic { scale: .86; transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) { .dock .dk-ic { translate: none !important; rotate: none !important; scale: none !important; } }

/* v522 — footer bottom row on phones: more breathing room between the copyright line and the Add to Home Screen button */
@media (max-width: 699px) {
  html .f2-bottom:has(.a2hs-link) { row-gap: 20px; padding-top: 22px; }
  html .f2-bottom .a2hs-link { margin-top: 2px; }
}

/* v523 — office tabs: short labels kept on one line */
.off-tab { white-space: nowrap; }
@media (max-width: 420px) { .off-tab { padding-left: 10px !important; padding-right: 10px !important; font-size: .86rem; } }

/* v524 — premium story cards + one distinct "Read more" button everywhere
   Cards: soft glass surface, gold hairline, gentle top light, image vignette, smooth lift and zoom on hover.
   Read more: a gold pill with a navy arrow disc, pinned to the foot of every card so rows line up. */
html .card, html .press-card, html button.ach-item, html .story.main, html .story.side {
  --rm-gold: linear-gradient(135deg, #f1dc9f 0%, #d9b768 48%, #bf9741 100%);
  position: relative; isolation: isolate;
}
html .card, html .press-card {
  border-radius: 22px !important; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-2) 22%, transparent) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 100%, #fff 3%) 0%, var(--bg-2) 60%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.18), 0 18px 40px -24px rgba(0,0,0,.55) !important;
  transition: translate .5s var(--glide, cubic-bezier(.22,1,.36,1)), box-shadow .5s, border-color .5s !important;
}
@media (hover: hover) {
  html .card:hover, html .press-card:hover {
    translate: 0 -5px; transform: none !important;
    border-color: color-mix(in srgb, var(--gold-2) 55%, transparent) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.2), 0 30px 60px -26px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--gold-2) 20%, transparent) !important;
  }
  html .card:hover .thumb img, html .press-card:hover .press-img img, html .story:hover .img img { transform: scale(1.05) !important; }
}
/* image vignette so the photo melts into the card */
html .card .thumb::after, html .press-card .press-img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 32, .38));
}
html .card .thumb > *:not(img), html .press-card .press-img > *:not(img) { z-index: 2; }
/* outlet badge: frosted dark glass with a gold dot instead of a flat gold pill */
html .press-outlet {
  background: rgba(8, 14, 36, .62) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: inline-flex !important; align-items: center; gap: 7px; letter-spacing: .08em !important; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6) !important;
}
html .press-outlet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(214,180,103,.25); }
/* bodies: room to breathe, consistent rhythm, the button sits at the bottom */
html .card { display: flex !important; flex-direction: column; }
html .card .card-ex { margin-bottom: 0 !important; }
html .press-body { display: flex !important; flex-direction: column; flex: 1; }
html .press-card { display: flex !important; flex-direction: column; height: 100%; }
html .press-card strong, html .card h3 { letter-spacing: -.01em; }
html .press-sum, html .card .card-ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- the Read more button ---- */
html .rm {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  height: 40px; padding: 0 5px 0 18px; border-radius: 999px;
  background: var(--rm-gold); color: #0b1430;
  font: 700 .8rem/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.12), 0 10px 22px -12px rgba(191,151,65,.85);
  transition: box-shadow .4s, gap .4s var(--spring, cubic-bezier(.34,1.56,.64,1)), translate .4s var(--spring, cubic-bezier(.34,1.56,.64,1));
  position: relative; overflow: hidden;
}
html .rm-t { position: relative; z-index: 1; }
html .rm-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #0b1430; color: #f1dc9f; font-style: normal; box-shadow: 0 4px 10px -4px rgba(11,20,48,.7);
  transition: translate .45s var(--spring, cubic-bezier(.34,1.56,.64,1)), rotate .45s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
html .rm::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); pointer-events: none; }
@media (hover: hover) {
  html :is(.card, .press-card, .ach-item, .story):hover .rm { gap: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 28px -12px rgba(191,151,65,1); }
  html :is(.card, .press-card, .ach-item, .story):hover .rm-ic { translate: 2px 0; }
  html :is(.card, .press-card, .ach-item, .story):hover .rm::before { animation: kn-sweep .9s cubic-bezier(.22,1,.36,1); }
}
html :is(.card, .press-card, .ach-item, .story):active .rm { translate: 0 1px; }
/* where it sits in each card type */
html .card .rm { margin: 16px 18px 20px; margin-top: auto; }
html .card .card-ex + .rm, html .card h3 + .rm { margin-top: 16px; }
html .card { padding-bottom: 0 !important; }
html .card > .rm { margin-top: auto !important; }
html .card > p.card-ex, html .card > h3 { flex: none; }
html .card > h3 + p.card-ex { margin-bottom: 16px !important; }
html .card > h3:not(:has(+ p)) { margin-bottom: 16px !important; }
html .press-more { margin-top: auto !important; padding-top: 18px !important; border-top: 0 !important; display: block !important; width: auto !important; }
html .press-more > svg { display: none; }
html .ach-more { border-top: 0 !important; padding-top: 12px !important; width: auto !important; display: block !important; }
html .ach-more::after { content: none !important; }
html .story .rm { margin-top: 16px; }
html .story.side .rm { height: 34px; padding-left: 14px; font-size: .74rem; margin-top: 10px; }
html .story.side .rm-ic { width: 26px; height: 26px; }
/* external links (Read on Harian Metro): navy outline version of the same button, with an outward arrow */
html .press-card[target="_blank"] .rm { background: transparent; color: var(--gold-text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold-2) 70%, transparent); }
html .press-card[target="_blank"] .rm-ic { background: var(--rm-gold); color: #0b1430; rotate: -45deg; }
@media (hover: hover) { html .press-card[target="_blank"]:hover .rm { background: var(--rm-gold); color: #0b1430; } }
@media (max-width: 599px) { html .card .rm { margin-left: 16px; margin-right: 16px; } }
@media (prefers-reduced-motion: reduce) { html .rm, html .rm-ic, html .card, html .press-card { transition: none !important; } html .rm::before { animation: none !important; } }

/* v525 — Read more always last in the card and aligned with the text above it */
html .card > .rm { order: 9; margin: auto 18px 20px !important; }
html .card > .meta, html .card > h3, html .card > .card-ex { flex: none; }
html .card > .card-ex, html .card > h3:last-of-type { margin-bottom: 18px !important; }
html .story.main > .rm { order: 9; margin: 20px 24px 24px !important; align-self: flex-start; }
html .story.main > .meta { align-self: flex-start; }
@media (max-width: 599px) { html .card > .rm { margin: auto 16px 18px !important; } html .story.main > .rm { margin: 16px 18px 20px !important; } }

/* v526 — phone news list (title + small photo rows): a compact Read more under the title */
html .card > .rm { grid-column: 1; justify-self: start; }
@media (max-width: 599px) {
  html .card[style] > .rm, html .card > .rm { margin: 12px 0 0 !important; }
  html .card:not(:has(> .thumb)) > .rm { margin: 12px 16px 0 !important; }
  html .card > .rm { height: 34px; padding-left: 14px; font-size: .76rem; gap: 8px; }
  html .card > .rm .rm-ic { width: 26px; height: 26px; }
  html .press-card .rm, html .ach-item .rm { height: 38px; }
}

/* v527 — two distinct buttons
   1) "Read more" inside cards: a quiet editorial link — gold text with a growing underline and an outlined arrow disc
      that fills on hover. Many cards on one screen no longer shout.
   2) "View all" under each section: the one bold call to action — solid gold, small-caps tracking, a hairline divider before
      the arrow, and a navy inversion on hover. */
html .rm {
  height: auto !important; padding: 4px 0 !important; gap: 12px !important; background: none !important; box-shadow: none !important;
  color: var(--gold-text) !important; font: 700 .8rem/1 var(--sans) !important; letter-spacing: .04em !important; overflow: visible !important;
}
html .rm::before { content: none !important; }
html .rm-t { position: relative; padding-bottom: 5px; }
html .rm-t::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2), color-mix(in srgb, var(--gold-2) 25%, transparent));
  transform-origin: left; transform: scaleX(.35); transition: transform .5s cubic-bezier(.22,1,.36,1); }
html .rm-ic { width: 30px !important; height: 30px !important; background: transparent !important; color: var(--gold-text) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold-2) 65%, transparent) !important; rotate: 0deg !important;
  transition: background .35s, color .35s, box-shadow .35s, translate .45s cubic-bezier(.34,1.56,.64,1) !important; }
@media (hover: hover) {
  html :is(.card, .press-card, .ach-item, .story):hover .rm-t::after { transform: scaleX(1); }
  html :is(.card, .press-card, .ach-item, .story):hover .rm-ic { background: linear-gradient(135deg, #f1dc9f, #c9a24f) !important; color: #0b1430 !important; box-shadow: 0 6px 14px -6px rgba(191,151,65,.9) !important; translate: 3px 0; }
  html :is(.card, .press-card, .ach-item, .story):hover .rm { gap: 12px !important; }
}
/* external article: same quiet link, arrow tilted up-right to show it opens the newspaper's site */
html .press-card[target="_blank"] .rm { background: none !important; color: var(--gold-text) !important; box-shadow: none !important; }
html .press-card[target="_blank"] .rm-ic { rotate: -45deg !important; }
@media (hover: hover) { html .press-card[target="_blank"]:hover .rm { background: none !important; color: var(--gold-text) !important; } }
html .story.side .rm, html .card > .rm { height: auto !important; padding: 4px 0 !important; font-size: .78rem !important; }
html .story.side .rm-ic, html .card > .rm .rm-ic { width: 28px !important; height: 28px !important; }

/* ---- View all ---- */
html .see-all, html .pager-wrap.on-dark .see-all, :root[data-theme="dark"] .see-all {
  display: inline-flex !important; align-items: center; gap: 0 !important; height: 52px; padding: 0 !important; border-radius: 14px !important;
  background: linear-gradient(135deg, #f1dc9f 0%, #d9b768 50%, #bf9741 100%) !important; color: #0b1430 !important; border: 0 !important;
  font: 800 .76rem/1 var(--sans) !important; letter-spacing: .16em !important; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,88,24,.25), 0 18px 36px -18px rgba(191,151,65,.9) !important;
  overflow: hidden; position: relative; transition: background .4s, color .35s, box-shadow .4s, translate .4s cubic-bezier(.34,1.56,.64,1) !important;
}
html .see-all > span { padding: 0 22px 0 26px; }
html .see-all > svg { box-sizing: content-box; width: 16px; height: 16px; padding: 0 20px; height: 100%; border-left: 1px solid rgba(11,20,48,.18);
  color: #0b1430 !important; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
html .see-all::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); pointer-events: none; }
@media (hover: hover) {
  html .see-all:hover, :root[data-theme="dark"] .see-all:hover, html .pager-wrap.on-dark .see-all:hover {
    background: #0b1430 !important; color: #f1dc9f !important; translate: 0 -2px;
    box-shadow: inset 0 0 0 1.5px #d9b768, 0 22px 40px -18px rgba(0,0,0,.8) !important; }
  html .see-all:hover > svg { color: #f1dc9f !important; border-left-color: rgba(241,220,159,.3); transform: translateX(4px); }
  html .see-all:hover::after { animation: kn-sweep .9s cubic-bezier(.22,1,.36,1); }
}
html .see-all:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
@media (max-width: 599px) { html .see-all { height: 50px; } html .see-all > span { padding: 0 18px 0 22px; } }
/* v528 — keep the View all arrow visible (gold) on the navy hover state in every theme */
@media (hover: hover) { html:root .see-all.see-all:hover > svg { color: #f1dc9f !important; } }

/* v529 — "View all": slimmer, quieter luxury — a fine gold-outlined capsule on glass, small tracked capitals,
   a short arrow; on hover it fills with gold. Clearly different from the in-card "Read more" link. */
html .see-all, html .pager-wrap.on-dark .see-all, :root[data-theme="dark"] .see-all {
  height: 40px !important; border-radius: 999px !important; gap: 10px !important; padding: 0 18px 0 22px !important;
  background: linear-gradient(180deg, rgba(214,180,103,.10), rgba(214,180,103,.03)) !important; color: #ecd59a !important;
  border: 1px solid rgba(214,180,103,.55) !important;
  font: 700 .68rem/1 var(--sans) !important; letter-spacing: .2em !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px -16px rgba(0,0,0,.8) !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
html .see-all > span { padding: 0 !important; }
html .see-all > svg { width: 14px !important; height: 14px !important; padding: 0 !important; border-left: 0 !important; color: currentColor !important; }
html .see-all::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent) !important; }
@media (hover: hover) {
  html:root .see-all.see-all:hover {
    background: linear-gradient(135deg, #f1dc9f, #c9a24f) !important; color: #0b1430 !important; border-color: transparent !important;
    box-shadow: 0 12px 26px -12px rgba(191,151,65,.85) !important; translate: 0 -1px; }
  html:root .see-all.see-all:hover > svg { color: #0b1430 !important; transform: translateX(3px); }
}
/* light theme on a light section: navy text and hairline instead of gold-on-white */
:root[data-theme="light"] .section:not(.section-dark) .see-all { color: #0b1430 !important; border-color: rgba(11,20,48,.28) !important; background: rgba(11,20,48,.03) !important; }
@media (max-width: 599px) { html .see-all { height: 40px !important; } }
/* v530 — View all arrow follows the label colour at rest */
html:root .see-all.see-all > svg { color: #ecd59a !important; }
html:root[data-theme="light"] .section:not(.section-dark) .see-all.see-all > svg { color: #0b1430 !important; }

/* v531 — clean button placement everywhere
   - homepage news row on phones (side-scrolling cards): the button keeps the card's side and bottom padding
   - the compact phone list on the News page keeps its tight spacing
   - top story: button lines up exactly with the headline
   - Policy / Achievements: every button sits on the card's bottom edge, same distance in every card */
@media (max-width: 599px) {
  html .card > .rm, html .card[style] > .rm { margin: auto 18px 20px !important; }
  html[data-page] #feed .card > .rm, html[data-page] #feed .card[style] > .rm { margin: 12px 0 0 !important; }
}
html .story.main > .rm { margin-left: 22px !important; margin-right: 22px !important; }
html button.ach-item .ach-body { align-self: stretch; }
html button.ach-item .ach-more { margin-top: auto !important; }

/* v532 — "Read more" is text only (no arrow disc) */
html .rm .rm-ic { display: none !important; }
html .rm { gap: 0 !important; }

/* v533 — "Read more": clean text only — no underline, no arrow; a soft brighten on hover */
html .rm-t::after { content: none !important; display: none !important; }
html .rm-t { padding-bottom: 0 !important; }
html .rm { padding: 2px 0 !important; transition: color .3s, opacity .3s !important; }
@media (hover: hover) { html :is(.card, .press-card, .ach-item, .story):hover .rm { color: #f1dc9f !important; } }
:root[data-theme="light"] .section:not(.section-dark) :is(.card, .press-card, .ach-item, .story):hover .rm { color: #5e4410 !important; }

/* v534 — no underline lines anywhere on story cards: headlines no longer draw a gold line on hover/tap,
   and Read more stays plain text */
html :is(.card h3, .story h3, .ach-body strong, .press-body strong) { background-image: none !important; text-decoration: none !important; }
html button.ach-item:hover strong { text-decoration: none !important; }
html .rm, html .rm * { text-decoration: none !important; border-bottom: 0 !important; }
html .rm-t::before, html .rm-t::after, html .rm::after { content: none !important; }

/* v535 — hero typing effect: blinking gold caret; the line keeps its height while it types (no jumping) */
.hero [data-i18n="hero.t2"] { display: inline-block; min-height: 1.06em; white-space: nowrap; }
.hero .tw-caret { display: inline-block; width: .06em; min-width: 2px; height: .86em; margin-left: .06em; vertical-align: -.06em;
  background: linear-gradient(180deg, #f8e7b4, #c9a258); border-radius: 2px; box-shadow: 0 0 12px rgba(227,194,122,.55);
  animation: kn-caret 1s steps(1) infinite; transition: opacity .6s; }
.hero .tw-caret.done { opacity: 0; animation: none; }
@keyframes kn-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (max-width: 599px) { .hero [data-i18n="hero.t2"] { white-space: normal; } }

/* v536 — Berita mega-menu categories: tiles never overlap (old negative margins removed), glass tiles with a gold icon chip */
html .mega .mg-berita .mg-links:not(.big), html .mega .mg-links:not(.big) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; align-content: start !important; grid-auto-rows: 1fr !important; }
html .mega .mg-links:not(.big) li { display: flex !important; min-width: 0; margin: 0 !important; border: 0 !important; }
html .mega .mg-links:not(.big) li > a { flex: 1; min-width: 0; margin: 0 !important; display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px !important;
  padding: 11px 14px 11px 11px !important; border-radius: 14px !important; font: 600 .9rem/1.25 var(--sans) !important; letter-spacing: .005em; color: #e8ecf7 !important;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)) !important; border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px -14px rgba(0,0,0,.9) !important;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease, border-color .25s ease, box-shadow .25s ease !important; }
html .mega .mg-links:not(.big) li > a span { flex: 1; min-width: 0; white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html .mega .mg-ci { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #f0d898; font-style: normal;
  background: radial-gradient(120% 120% at 30% 20%, rgba(240,216,152,.24), rgba(214,180,103,.06) 60%, rgba(214,180,103,.02)); border: 1px solid rgba(214,180,103,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px -8px rgba(214,180,103,.55); transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease; }
html .mega .mg-ci svg { display: block; }
html .mega .mg-links:not(.big) li > a .mg-arw { flex: none; margin-left: auto; opacity: 0; transform: translateX(-6px); color: #f0d898; transition: opacity .25s ease, transform .25s ease; }
html .mega .mg-links:not(.big) li > a:hover, html .mega .mg-links:not(.big) li > a:focus-visible { transform: translateY(-2px); color: #fff !important;
  background: linear-gradient(145deg, rgba(214,180,103,.16), rgba(214,180,103,.04)) !important; border-color: rgba(214,180,103,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 26px -16px rgba(214,180,103,.6) !important; }
html .mega .mg-links:not(.big) li > a:hover .mg-ci, html .mega .mg-links:not(.big) li > a:focus-visible .mg-ci { transform: scale(1.08) rotate(-4deg); color: #0b1430;
  background: linear-gradient(135deg, #f6e2a8, #d6b467); }
html .mega .mg-links:not(.big) li > a:hover .mg-arw, html .mega .mg-links:not(.big) li > a:focus-visible .mg-arw { opacity: 1; transform: none; }
@media (max-width: 420px) { html .mega .mg-links:not(.big) { gap: 8px !important; } html .mega .mg-links:not(.big) li > a { gap: 9px !important; padding: 9px 10px 9px 9px !important; font-size: .84rem !important; } html .mega .mg-ci { width: 32px; height: 32px; border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { html .mega .mg-links:not(.big) li > a, html .mega .mg-ci { transition: none !important; } }
